{"version":3,"file":"PointDetectConfig.cjs","names":["t","ChipType","DetectPointType","ThresholdType"],"sources":["../generated/PointDetectConfig.ts"],"sourcesContent":["import * as t from 'io-ts';\nimport * as common from '../lib/common';\nimport { ChipType, ChipTypeEnum } from './ChipType'; // import\nimport { DetectPointType, DetectPointTypeEnum } from './DetectPointType'; // import\nimport { ThresholdType, ThresholdTypeEnum } from './ThresholdType'; // import\n/**\n * Codec for interface {@link PointDetectConfig}\n * @category Codecs\n * @see Automatically generated from ../decompiled/Nova.GigabitController.ProgramInnerData.decompiled.cs:487\n */\nexport const PointDetectConfig = t.intersection(\n  [\n    t.type({\n      ScreenSN: common.string_empty, // #520\n      ComPort: common.string_empty, // #532\n      ScreenIndex: common.Int32_0, // #544\n      ScreenChipType: common.withDefault(ChipType, 'Unknown'), // #556\n      DetectType: common.withDefault(DetectPointType, 'None'), // #568\n      DetectThreshold: common.withDefault(ThresholdType, 'None'), // #580\n      IsUseGain: common.Bool_true, // #592\n      DetectRedGainStep: common.Int32_32, // #604\n      DetectGreenGainStep: common.Int32_32, // #616\n      DetectBlueGainStep: common.Int32_32, // #628\n      IsSynchronousGain: common.Bool_true, // #640\n      IsUsedResistor: common.Bool_false, // #652\n      RedResistor: common.Int32_300, // #664\n      GreenResistor: common.Int32_300, // #676\n      BlueResistor: common.Int32_300,\n    }),\n    t.partial({}),\n  ],\n  'PointDetectConfig'\n);\nexport interface PointDetectConfig extends t.TypeOf<typeof PointDetectConfig> {\n  ScreenChipType: ChipTypeEnum;\n  DetectType: DetectPointTypeEnum;\n  DetectThreshold: ThresholdTypeEnum;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAUA,MAAa,oBAAoBA,MAAE,aACjC,CACEA,MAAE,KAAK;CACL;CACA;CACA;CACA,2CAAmCC,2BAAU,SAAS;CACtD,uCAA+BC,yCAAiB,MAAM;CACtD,4CAAoCC,qCAAe,MAAM;CACzD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,GACDH,MAAE,QAAQ,CAAC,CAAC,CACd,GACA,mBACF"}