diff --git a/src/api/resources/mapping/types/GetEnumWeightsRequest.ts b/src/api/resources/mapping/types/GetEnumWeightsRequest.ts new file mode 100644 index 00000000..e4471d80 --- /dev/null +++ b/src/api/resources/mapping/types/GetEnumWeightsRequest.ts @@ -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[]; +} diff --git a/src/api/resources/mapping/types/GetFieldWeightsRequest.ts b/src/api/resources/mapping/types/GetFieldWeightsRequest.ts new file mode 100644 index 00000000..2243384c --- /dev/null +++ b/src/api/resources/mapping/types/GetFieldWeightsRequest.ts @@ -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[]; +} diff --git a/src/api/resources/mapping/types/SourceDestinationWeight.ts b/src/api/resources/mapping/types/SourceDestinationWeight.ts new file mode 100644 index 00000000..0da0bd1a --- /dev/null +++ b/src/api/resources/mapping/types/SourceDestinationWeight.ts @@ -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; +} diff --git a/src/api/resources/mapping/types/SourceDestinationWeights.ts b/src/api/resources/mapping/types/SourceDestinationWeights.ts new file mode 100644 index 00000000..226608a0 --- /dev/null +++ b/src/api/resources/mapping/types/SourceDestinationWeights.ts @@ -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[]; +} diff --git a/src/api/resources/mapping/types/SourceDestinationWeightsResponse.ts b/src/api/resources/mapping/types/SourceDestinationWeightsResponse.ts new file mode 100644 index 00000000..597442d1 --- /dev/null +++ b/src/api/resources/mapping/types/SourceDestinationWeightsResponse.ts @@ -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; +} diff --git a/src/api/resources/mapping/types/index.ts b/src/api/resources/mapping/types/index.ts index e680b72e..b1c06a4a 100644 --- a/src/api/resources/mapping/types/index.ts +++ b/src/api/resources/mapping/types/index.ts @@ -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"; diff --git a/src/serialization/resources/mapping/types/GetEnumWeightsRequest.ts b/src/serialization/resources/mapping/types/GetEnumWeightsRequest.ts new file mode 100644 index 00000000..e22d038c --- /dev/null +++ b/src/serialization/resources/mapping/types/GetEnumWeightsRequest.ts @@ -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[]; + } +} diff --git a/src/serialization/resources/mapping/types/GetFieldWeightsRequest.ts b/src/serialization/resources/mapping/types/GetFieldWeightsRequest.ts new file mode 100644 index 00000000..8b1c7d52 --- /dev/null +++ b/src/serialization/resources/mapping/types/GetFieldWeightsRequest.ts @@ -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[]; + } +} diff --git a/src/serialization/resources/mapping/types/SourceDestinationWeight.ts b/src/serialization/resources/mapping/types/SourceDestinationWeight.ts new file mode 100644 index 00000000..5a7bb4e9 --- /dev/null +++ b/src/serialization/resources/mapping/types/SourceDestinationWeight.ts @@ -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; + } +} diff --git a/src/serialization/resources/mapping/types/SourceDestinationWeights.ts b/src/serialization/resources/mapping/types/SourceDestinationWeights.ts new file mode 100644 index 00000000..443eaaf4 --- /dev/null +++ b/src/serialization/resources/mapping/types/SourceDestinationWeights.ts @@ -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[]; + } +} diff --git a/src/serialization/resources/mapping/types/SourceDestinationWeightsResponse.ts b/src/serialization/resources/mapping/types/SourceDestinationWeightsResponse.ts new file mode 100644 index 00000000..4e36fc2f --- /dev/null +++ b/src/serialization/resources/mapping/types/SourceDestinationWeightsResponse.ts @@ -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; + } +} diff --git a/src/serialization/resources/mapping/types/index.ts b/src/serialization/resources/mapping/types/index.ts index e680b72e..b1c06a4a 100644 --- a/src/serialization/resources/mapping/types/index.ts +++ b/src/serialization/resources/mapping/types/index.ts @@ -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";