Skip to content

Commit

Permalink
fix: re-add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbrugger committed Jan 4, 2024
1 parent 5dbb864 commit 1ccf19d
Show file tree
Hide file tree
Showing 12 changed files with 178 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api/resources/mapping/types/GetEnumWeightsRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface GetEnumWeightsRequest {
/** Source field key */
sourceField: string;
/** Source field values */
sourceValues: string[];
/** Destination field key */
destinationField: string;
/** Destination field values */
destinationValues: string[];
}
10 changes: 10 additions & 0 deletions src/api/resources/mapping/types/GetFieldWeightsRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface GetFieldWeightsRequest {
/** Source field keys */
sourceFields: string[];
/** Destination field keys */
destinationFields: string[];
}
12 changes: 12 additions & 0 deletions src/api/resources/mapping/types/SourceDestinationWeight.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface SourceDestinationWeight {
/** Source key */
source: string;
/** Destination key */
destination: string;
/** Weight of the pair */
weight: number;
}
9 changes: 9 additions & 0 deletions src/api/resources/mapping/types/SourceDestinationWeights.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flatfile from "../../..";

export interface SourceDestinationWeights {
weights: Flatfile.SourceDestinationWeight[];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flatfile from "../../..";

export interface SourceDestinationWeightsResponse {
data: Flatfile.SourceDestinationWeights;
}
5 changes: 5 additions & 0 deletions src/api/resources/mapping/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ export * from "./MappingRuleOrConfig";
export * from "./CreateMappingRulesRequest";
export * from "./MappingRuleResponse";
export * from "./MappingRulesResponse";
export * from "./GetFieldWeightsRequest";
export * from "./GetEnumWeightsRequest";
export * from "./SourceDestinationWeight";
export * from "./SourceDestinationWeights";
export * from "./SourceDestinationWeightsResponse";
26 changes: 26 additions & 0 deletions src/serialization/resources/mapping/types/GetEnumWeightsRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../..";
import * as Flatfile from "../../../../api";
import * as core from "../../../../core";

export const GetEnumWeightsRequest: core.serialization.ObjectSchema<
serializers.GetEnumWeightsRequest.Raw,
Flatfile.GetEnumWeightsRequest
> = core.serialization.object({
sourceField: core.serialization.string(),
sourceValues: core.serialization.list(core.serialization.string()),
destinationField: core.serialization.string(),
destinationValues: core.serialization.list(core.serialization.string()),
});

export declare namespace GetEnumWeightsRequest {
interface Raw {
sourceField: string;
sourceValues: string[];
destinationField: string;
destinationValues: string[];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../..";
import * as Flatfile from "../../../../api";
import * as core from "../../../../core";

export const GetFieldWeightsRequest: core.serialization.ObjectSchema<
serializers.GetFieldWeightsRequest.Raw,
Flatfile.GetFieldWeightsRequest
> = core.serialization.object({
sourceFields: core.serialization.list(core.serialization.string()),
destinationFields: core.serialization.list(core.serialization.string()),
});

export declare namespace GetFieldWeightsRequest {
interface Raw {
sourceFields: string[];
destinationFields: string[];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../..";
import * as Flatfile from "../../../../api";
import * as core from "../../../../core";

export const SourceDestinationWeight: core.serialization.ObjectSchema<
serializers.SourceDestinationWeight.Raw,
Flatfile.SourceDestinationWeight
> = core.serialization.object({
source: core.serialization.string(),
destination: core.serialization.string(),
weight: core.serialization.number(),
});

export declare namespace SourceDestinationWeight {
interface Raw {
source: string;
destination: string;
weight: number;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../..";
import * as Flatfile from "../../../../api";
import * as core from "../../../../core";

export const SourceDestinationWeights: core.serialization.ObjectSchema<
serializers.SourceDestinationWeights.Raw,
Flatfile.SourceDestinationWeights
> = core.serialization.object({
weights: core.serialization.list(
core.serialization.lazyObject(async () => (await import("../../..")).SourceDestinationWeight)
),
});

export declare namespace SourceDestinationWeights {
interface Raw {
weights: serializers.SourceDestinationWeight.Raw[];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../..";
import * as Flatfile from "../../../../api";
import * as core from "../../../../core";

export const SourceDestinationWeightsResponse: core.serialization.ObjectSchema<
serializers.SourceDestinationWeightsResponse.Raw,
Flatfile.SourceDestinationWeightsResponse
> = core.serialization.object({
data: core.serialization.lazyObject(async () => (await import("../../..")).SourceDestinationWeights),
});

export declare namespace SourceDestinationWeightsResponse {
interface Raw {
data: serializers.SourceDestinationWeights.Raw;
}
}
5 changes: 5 additions & 0 deletions src/serialization/resources/mapping/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ export * from "./MappingRuleOrConfig";
export * from "./CreateMappingRulesRequest";
export * from "./MappingRuleResponse";
export * from "./MappingRulesResponse";
export * from "./GetFieldWeightsRequest";
export * from "./GetEnumWeightsRequest";
export * from "./SourceDestinationWeight";
export * from "./SourceDestinationWeights";
export * from "./SourceDestinationWeightsResponse";

0 comments on commit 1ccf19d

Please sign in to comment.