UNPKG

kintone-as-code

Version:

A CLI tool for managing kintone applications as code with type-safe TypeScript schemas

73 lines 4.85 kB
import { Schema } from 'effect'; export declare const UpdatableFieldTypeSchema: Schema.Union<[Schema.Literal<["SINGLE_LINE_TEXT"]>, Schema.Literal<["MULTI_LINE_TEXT"]>, Schema.Literal<["RICH_TEXT"]>, Schema.Literal<["NUMBER"]>, Schema.Literal<["CALC"]>, Schema.Literal<["RADIO_BUTTON"]>, Schema.Literal<["CHECK_BOX"]>, Schema.Literal<["MULTI_SELECT"]>, Schema.Literal<["DROP_DOWN"]>, Schema.Literal<["DATE"]>, Schema.Literal<["TIME"]>, Schema.Literal<["DATETIME"]>, Schema.Literal<["LINK"]>, Schema.Literal<["USER_SELECT"]>, Schema.Literal<["ORGANIZATION_SELECT"]>, Schema.Literal<["GROUP_SELECT"]>, Schema.Literal<["FILE"]>, Schema.Literal<["SUBTABLE"]>]>; export type UpdatableFieldType = Schema.Schema.Type<typeof UpdatableFieldTypeSchema>; export declare const FieldOptionSchema: Schema.Struct<{ label: typeof Schema.String; index: typeof Schema.String; }>; export declare const FieldUpdatePayloadSchema: Schema.Struct<{ type: typeof Schema.String; code: typeof Schema.String; label: Schema.optional<typeof Schema.String>; noLabel: Schema.optional<typeof Schema.Boolean>; required: Schema.optional<typeof Schema.Boolean>; defaultValue: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>, Schema.Array$<typeof Schema.Unknown>]>>; minLength: Schema.optional<typeof Schema.String>; maxLength: Schema.optional<typeof Schema.String>; expression: Schema.optional<typeof Schema.String>; hideExpression: Schema.optional<typeof Schema.Boolean>; unique: Schema.optional<typeof Schema.Boolean>; align: Schema.optional<Schema.Union<[Schema.Literal<["HORIZONTAL"]>, Schema.Literal<["VERTICAL"]>]>>; options: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Struct<{ label: typeof Schema.String; index: typeof Schema.String; }>>>; entities: Schema.optional<Schema.Array$<typeof Schema.Unknown>>; displayScale: Schema.optional<typeof Schema.String>; unit: Schema.optional<typeof Schema.String>; unitPosition: Schema.optional<Schema.Union<[Schema.Literal<["BEFORE"]>, Schema.Literal<["AFTER"]>]>>; format: Schema.optional<typeof Schema.String>; protocol: Schema.optional<Schema.Union<[Schema.Literal<["WEB"]>, Schema.Literal<["CALL"]>, Schema.Literal<["MAIL"]>]>>; defaultNowValue: Schema.optional<typeof Schema.Boolean>; }>; export type FieldUpdatePayload = Schema.Schema.Type<typeof FieldUpdatePayloadSchema>; export declare const UpdateFormFieldsPayloadSchema: Schema.Struct<{ app: typeof Schema.String; revision: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>; properties: Schema.Record$<typeof Schema.String, Schema.Struct<{ type: typeof Schema.String; code: typeof Schema.String; label: Schema.optional<typeof Schema.String>; noLabel: Schema.optional<typeof Schema.Boolean>; required: Schema.optional<typeof Schema.Boolean>; defaultValue: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>, Schema.Array$<typeof Schema.Unknown>]>>; minLength: Schema.optional<typeof Schema.String>; maxLength: Schema.optional<typeof Schema.String>; expression: Schema.optional<typeof Schema.String>; hideExpression: Schema.optional<typeof Schema.Boolean>; unique: Schema.optional<typeof Schema.Boolean>; align: Schema.optional<Schema.Union<[Schema.Literal<["HORIZONTAL"]>, Schema.Literal<["VERTICAL"]>]>>; options: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Struct<{ label: typeof Schema.String; index: typeof Schema.String; }>>>; entities: Schema.optional<Schema.Array$<typeof Schema.Unknown>>; displayScale: Schema.optional<typeof Schema.String>; unit: Schema.optional<typeof Schema.String>; unitPosition: Schema.optional<Schema.Union<[Schema.Literal<["BEFORE"]>, Schema.Literal<["AFTER"]>]>>; format: Schema.optional<typeof Schema.String>; protocol: Schema.optional<Schema.Union<[Schema.Literal<["WEB"]>, Schema.Literal<["CALL"]>, Schema.Literal<["MAIL"]>]>>; defaultNowValue: Schema.optional<typeof Schema.Boolean>; }>>; }>; export type UpdateFormFieldsPayload = Schema.Schema.Type<typeof UpdateFormFieldsPayloadSchema>; export declare const AppSchemaConfigSchema: Schema.Struct<{ appId: typeof Schema.String; name: typeof Schema.String; description: Schema.optional<typeof Schema.String>; fieldsConfig: Schema.Union<[Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, Schema.Struct<{ properties: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>; }>]>; }>; export type AppSchemaConfig = Schema.Schema.Type<typeof AppSchemaConfigSchema>; //# sourceMappingURL=apply.d.ts.map