Skip to content

Commit 07f39fb

Browse files
committed
fix: update variant names from "INPUT_TYPE" to "INPUT_TYPES" for consistency across services
1 parent 7c1d5d8 commit 07f39fb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/d-flow/data-type/DFlowDataType.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export abstract class DFlowDataTypeReactiveService extends ReactiveArrayService<
106106
}
107107

108108
if (ruleThatIncludesGenericKey
109-
&& ruleThatIncludesGenericKey.variant == "INPUT_TYPE"
109+
&& ruleThatIncludesGenericKey.variant == "INPUT_TYPES"
110110
&& dataType.variant === "NODE") {
111111
return {
112112
sourceDataTypeIdentifiers: [{

src/components/d-flow/suggestion/DFlowSuggestion.hook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export const useRefObjects = (flowId: Flow['id']): Array<ReferenceValue> => {
253253
if (!pType || pType.variant === "NODE") continue;
254254

255255
const inputTypeRules =
256-
pType.rules?.nodes?.filter((r) => r?.variant === "INPUT_TYPE") ?? [];
256+
pType.rules?.nodes?.filter((r) => r?.variant === "INPUT_TYPES") ?? [];
257257

258258
if (inputTypeRules.length) {
259259
const paramInstance = current.parameters.find((p) => p.id === pDef.id);

src/components/d-flow/type/DFlowType.view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class FlowTypeView {
1919
/** Flow type settings of the flow type */
2020
private readonly _flowTypeSettings?: Maybe<Array<FlowTypeSetting>>;
2121
/** Global ID of this FlowType */
22-
private readonly _id?: Maybe<Scalars['TypesFlowTypeID']['output']>;
22+
private readonly _id?: Maybe<Scalars['FlowTypeID']['output']>;
2323
/** Identifier of the flow type */
2424
private readonly _identifier?: Maybe<Scalars['String']['output']>;
2525
/** Input type of the flow type */
@@ -62,7 +62,7 @@ export class FlowTypeView {
6262
return this._flowTypeSettings;
6363
}
6464

65-
get id(): Maybe<Scalars["TypesFlowTypeID"]["output"]> | undefined {
65+
get id(): Maybe<Scalars["FlowTypeID"]["output"]> | undefined {
6666
return this._id;
6767
}
6868

src/utils/generics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function ruleMatches(sourceRule: DataTypeRule, targetRule: DataTypeRule): boolea
446446
if (sourceConfig.key !== targetConfig.key) return false;
447447
return identifiersMatch(sourceConfig.dataTypeIdentifier, targetConfig.dataTypeIdentifier);
448448
}
449-
case "INPUT_TYPE": {
449+
case "INPUT_TYPES": {
450450
const sourceConfig = sourceRule.config as { inputTypes?: Array<{ dataTypeIdentifier: DataTypeIdentifier }> };
451451
const targetConfig = targetRule.config as { inputTypes?: Array<{ dataTypeIdentifier: DataTypeIdentifier }> };
452452
const targetInputTypes = targetConfig.inputTypes ?? [];

0 commit comments

Comments
 (0)