sdk

Radroots SDK and bindings
git clone https://radroots.dev/git/sdk.git
Log | Files | Refs | README

types.ts (32659B)


      1 // @generated by cargo xtask generate ts
      2 // Do not edit by hand.
      3 import type {
      4     IResult,
      5     IResultList,
      6     IResultPass,
      7 } from "@radroots/types-bindings";
      8 
      9 export type Farm = { id: string, created_at: string, updated_at: string, d_tag: string, pubkey: string, name: string, about: string | null, website: string | null, picture: string | null, banner: string | null, location_primary: string | null, location_city: string | null, location_region: string | null, location_country: string | null, };
     10 
     11 export type FarmGcsLocation = { id: string, created_at: string, updated_at: string, farm_id: string, gcs_location_id: string, role: string, };
     12 
     13 export type FarmGcsLocationQueryBindValues = { id: string, } | { farm_id: string, } | { gcs_location_id: string, };
     14 
     15 export type FarmMember = { id: string, created_at: string, updated_at: string, farm_id: string, member_pubkey: string, role: string, };
     16 
     17 export type FarmMemberClaim = { id: string, created_at: string, updated_at: string, member_pubkey: string, farm_pubkey: string, };
     18 
     19 export type FarmMemberClaimQueryBindValues = { id: string, } | { member_pubkey: string, } | { farm_pubkey: string, };
     20 
     21 export type FarmMemberQueryBindValues = { id: string, } | { farm_id: string, } | { member_pubkey: string, };
     22 
     23 export type FarmQueryBindValues = { id: string, } | { d_tag: string, } | { pubkey: string, };
     24 
     25 export type FarmTag = { id: string, created_at: string, updated_at: string, farm_id: string, tag: string, };
     26 
     27 export type FarmTagQueryBindValues = { id: string, } | { farm_id: string, } | { tag: string, };
     28 
     29 export type GcsLocation = { id: string, created_at: string, updated_at: string, d_tag: string, lat: number, lng: number, geohash: string, point: string, polygon: string, accuracy: number | null, altitude: number | null, tag_0: string | null, label: string | null, area: number | null, elevation: number | null, soil: string | null, climate: string | null, gc_id: string | null, gc_name: string | null, gc_admin1_id: string | null, gc_admin1_name: string | null, gc_country_id: string | null, gc_country_name: string | null, };
     30 
     31 export type GcsLocationFarmArgs = { id: string, };
     32 
     33 export type GcsLocationFindManyRel = { on_trade_product: GcsLocationTradeProductArgs, } | { off_trade_product: GcsLocationTradeProductArgs, } | { on_farm: GcsLocationFarmArgs, } | { off_farm: GcsLocationFarmArgs, } | { on_plot: GcsLocationPlotArgs, } | { off_plot: GcsLocationPlotArgs, };
     34 
     35 export type GcsLocationPlotArgs = { id: string, };
     36 
     37 export type GcsLocationQueryBindValues = { id: string, } | { d_tag: string, } | { geohash: string, };
     38 
     39 export type GcsLocationTradeProductArgs = { id: string, };
     40 
     41 export type IFarmCreate = IFarmFields;
     42 
     43 export type IFarmCreateResolve = IResult<Farm>;
     44 
     45 export type IFarmDelete = IFarmFindOne;
     46 
     47 export type IFarmDeleteResolve = IResult<string>;
     48 
     49 export type IFarmFields = { d_tag: string, pubkey: string, name: string, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, location_primary?: string | null, location_city?: string | null, location_region?: string | null, location_country?: string | null, };
     50 
     51 export type IFarmFieldsFilter = { id?: string, created_at?: string, updated_at?: string, d_tag?: string, pubkey?: string, name?: string, about?: string, website?: string, picture?: string, banner?: string, location_primary?: string, location_city?: string, location_region?: string, location_country?: string, };
     52 
     53 export type IFarmFieldsPartial = { d_tag?: ReplicaDbJsonValue | null, pubkey?: ReplicaDbJsonValue | null, name?: ReplicaDbJsonValue | null, about?: ReplicaDbJsonValue | null, website?: ReplicaDbJsonValue | null, picture?: ReplicaDbJsonValue | null, banner?: ReplicaDbJsonValue | null, location_primary?: ReplicaDbJsonValue | null, location_city?: ReplicaDbJsonValue | null, location_region?: ReplicaDbJsonValue | null, location_country?: ReplicaDbJsonValue | null, };
     54 
     55 export type IFarmFindMany = IFarmFindManyArgs;
     56 
     57 export type IFarmFindManyArgs = { filter: IFarmFieldsFilter | null, };
     58 
     59 export type IFarmFindManyResolve = IResultList<Farm>;
     60 
     61 export type IFarmFindOne = IFarmFindOneArgs;
     62 
     63 export type IFarmFindOneArgs = { on: FarmQueryBindValues, };
     64 
     65 export type IFarmFindOneResolve = IResult<Farm | null>;
     66 
     67 export type IFarmGcsLocationCreate = IFarmGcsLocationFields;
     68 
     69 export type IFarmGcsLocationCreateResolve = IResult<FarmGcsLocation>;
     70 
     71 export type IFarmGcsLocationDelete = IFarmGcsLocationFindOne;
     72 
     73 export type IFarmGcsLocationDeleteResolve = IResult<string>;
     74 
     75 export type IFarmGcsLocationFields = { farm_id: string, gcs_location_id: string, role: string, };
     76 
     77 export type IFarmGcsLocationFieldsFilter = { id?: string, created_at?: string, updated_at?: string, farm_id?: string, gcs_location_id?: string, role?: string, };
     78 
     79 export type IFarmGcsLocationFieldsPartial = { farm_id?: ReplicaDbJsonValue | null, gcs_location_id?: ReplicaDbJsonValue | null, role?: ReplicaDbJsonValue | null, };
     80 
     81 export type IFarmGcsLocationFindMany = IFarmGcsLocationFindManyArgs;
     82 
     83 export type IFarmGcsLocationFindManyArgs = { filter: IFarmGcsLocationFieldsFilter | null, };
     84 
     85 export type IFarmGcsLocationFindManyResolve = IResultList<FarmGcsLocation>;
     86 
     87 export type IFarmGcsLocationFindOne = IFarmGcsLocationFindOneArgs;
     88 
     89 export type IFarmGcsLocationFindOneArgs = { on: FarmGcsLocationQueryBindValues, };
     90 
     91 export type IFarmGcsLocationFindOneResolve = IResult<FarmGcsLocation | null>;
     92 
     93 export type IFarmGcsLocationUpdate = IFarmGcsLocationUpdateArgs;
     94 
     95 export type IFarmGcsLocationUpdateArgs = { on: FarmGcsLocationQueryBindValues, fields: IFarmGcsLocationFieldsPartial, };
     96 
     97 export type IFarmGcsLocationUpdateResolve = IResult<FarmGcsLocation>;
     98 
     99 export type IFarmMemberClaimCreate = IFarmMemberClaimFields;
    100 
    101 export type IFarmMemberClaimCreateResolve = IResult<FarmMemberClaim>;
    102 
    103 export type IFarmMemberClaimDelete = IFarmMemberClaimFindOne;
    104 
    105 export type IFarmMemberClaimDeleteResolve = IResult<string>;
    106 
    107 export type IFarmMemberClaimFields = { member_pubkey: string, farm_pubkey: string, };
    108 
    109 export type IFarmMemberClaimFieldsFilter = { id?: string, created_at?: string, updated_at?: string, member_pubkey?: string, farm_pubkey?: string, };
    110 
    111 export type IFarmMemberClaimFieldsPartial = { member_pubkey?: ReplicaDbJsonValue | null, farm_pubkey?: ReplicaDbJsonValue | null, };
    112 
    113 export type IFarmMemberClaimFindMany = IFarmMemberClaimFindManyArgs;
    114 
    115 export type IFarmMemberClaimFindManyArgs = { filter: IFarmMemberClaimFieldsFilter | null, };
    116 
    117 export type IFarmMemberClaimFindManyResolve = IResultList<FarmMemberClaim>;
    118 
    119 export type IFarmMemberClaimFindOne = IFarmMemberClaimFindOneArgs;
    120 
    121 export type IFarmMemberClaimFindOneArgs = { on: FarmMemberClaimQueryBindValues, };
    122 
    123 export type IFarmMemberClaimFindOneResolve = IResult<FarmMemberClaim | null>;
    124 
    125 export type IFarmMemberClaimUpdate = IFarmMemberClaimUpdateArgs;
    126 
    127 export type IFarmMemberClaimUpdateArgs = { on: FarmMemberClaimQueryBindValues, fields: IFarmMemberClaimFieldsPartial, };
    128 
    129 export type IFarmMemberClaimUpdateResolve = IResult<FarmMemberClaim>;
    130 
    131 export type IFarmMemberCreate = IFarmMemberFields;
    132 
    133 export type IFarmMemberCreateResolve = IResult<FarmMember>;
    134 
    135 export type IFarmMemberDelete = IFarmMemberFindOne;
    136 
    137 export type IFarmMemberDeleteResolve = IResult<string>;
    138 
    139 export type IFarmMemberFields = { farm_id: string, member_pubkey: string, role: string, };
    140 
    141 export type IFarmMemberFieldsFilter = { id?: string, created_at?: string, updated_at?: string, farm_id?: string, member_pubkey?: string, role?: string, };
    142 
    143 export type IFarmMemberFieldsPartial = { farm_id?: ReplicaDbJsonValue | null, member_pubkey?: ReplicaDbJsonValue | null, role?: ReplicaDbJsonValue | null, };
    144 
    145 export type IFarmMemberFindMany = IFarmMemberFindManyArgs;
    146 
    147 export type IFarmMemberFindManyArgs = { filter: IFarmMemberFieldsFilter | null, };
    148 
    149 export type IFarmMemberFindManyResolve = IResultList<FarmMember>;
    150 
    151 export type IFarmMemberFindOne = IFarmMemberFindOneArgs;
    152 
    153 export type IFarmMemberFindOneArgs = { on: FarmMemberQueryBindValues, };
    154 
    155 export type IFarmMemberFindOneResolve = IResult<FarmMember | null>;
    156 
    157 export type IFarmMemberUpdate = IFarmMemberUpdateArgs;
    158 
    159 export type IFarmMemberUpdateArgs = { on: FarmMemberQueryBindValues, fields: IFarmMemberFieldsPartial, };
    160 
    161 export type IFarmMemberUpdateResolve = IResult<FarmMember>;
    162 
    163 export type IFarmTagCreate = IFarmTagFields;
    164 
    165 export type IFarmTagCreateResolve = IResult<FarmTag>;
    166 
    167 export type IFarmTagDelete = IFarmTagFindOne;
    168 
    169 export type IFarmTagDeleteResolve = IResult<string>;
    170 
    171 export type IFarmTagFields = { farm_id: string, tag: string, };
    172 
    173 export type IFarmTagFieldsFilter = { id?: string, created_at?: string, updated_at?: string, farm_id?: string, tag?: string, };
    174 
    175 export type IFarmTagFieldsPartial = { farm_id?: ReplicaDbJsonValue | null, tag?: ReplicaDbJsonValue | null, };
    176 
    177 export type IFarmTagFindMany = IFarmTagFindManyArgs;
    178 
    179 export type IFarmTagFindManyArgs = { filter: IFarmTagFieldsFilter | null, };
    180 
    181 export type IFarmTagFindManyResolve = IResultList<FarmTag>;
    182 
    183 export type IFarmTagFindOne = IFarmTagFindOneArgs;
    184 
    185 export type IFarmTagFindOneArgs = { on: FarmTagQueryBindValues, };
    186 
    187 export type IFarmTagFindOneResolve = IResult<FarmTag | null>;
    188 
    189 export type IFarmTagUpdate = IFarmTagUpdateArgs;
    190 
    191 export type IFarmTagUpdateArgs = { on: FarmTagQueryBindValues, fields: IFarmTagFieldsPartial, };
    192 
    193 export type IFarmTagUpdateResolve = IResult<FarmTag>;
    194 
    195 export type IFarmUpdate = IFarmUpdateArgs;
    196 
    197 export type IFarmUpdateArgs = { on: FarmQueryBindValues, fields: IFarmFieldsPartial, };
    198 
    199 export type IFarmUpdateResolve = IResult<Farm>;
    200 
    201 export type IGcsLocationCreate = IGcsLocationFields;
    202 
    203 export type IGcsLocationCreateResolve = IResult<GcsLocation>;
    204 
    205 export type IGcsLocationDelete = IGcsLocationFindOne;
    206 
    207 export type IGcsLocationDeleteResolve = IResult<string>;
    208 
    209 export type IGcsLocationFields = { d_tag: string, lat: number, lng: number, geohash: string, point: string, polygon: string, accuracy?: number | null, altitude?: number | null, tag_0?: string | null, label?: string | null, area?: number | null, elevation?: number | null, soil?: string | null, climate?: string | null, gc_id?: string | null, gc_name?: string | null, gc_admin1_id?: string | null, gc_admin1_name?: string | null, gc_country_id?: string | null, gc_country_name?: string | null, };
    210 
    211 export type IGcsLocationFieldsFilter = { id?: string, created_at?: string, updated_at?: string, d_tag?: string, lat?: number, lng?: number, geohash?: string, point?: string, polygon?: string, accuracy?: number, altitude?: number, tag_0?: string, label?: string, area?: number, elevation?: number, soil?: string, climate?: string, gc_id?: string, gc_name?: string, gc_admin1_id?: string, gc_admin1_name?: string, gc_country_id?: string, gc_country_name?: string, };
    212 
    213 export type IGcsLocationFieldsPartial = { d_tag?: ReplicaDbJsonValue | null, lat?: ReplicaDbJsonValue | null, lng?: ReplicaDbJsonValue | null, geohash?: ReplicaDbJsonValue | null, point?: ReplicaDbJsonValue | null, polygon?: ReplicaDbJsonValue | null, accuracy?: ReplicaDbJsonValue | null, altitude?: ReplicaDbJsonValue | null, tag_0?: ReplicaDbJsonValue | null, label?: ReplicaDbJsonValue | null, area?: ReplicaDbJsonValue | null, elevation?: ReplicaDbJsonValue | null, soil?: ReplicaDbJsonValue | null, climate?: ReplicaDbJsonValue | null, gc_id?: ReplicaDbJsonValue | null, gc_name?: ReplicaDbJsonValue | null, gc_admin1_id?: ReplicaDbJsonValue | null, gc_admin1_name?: ReplicaDbJsonValue | null, gc_country_id?: ReplicaDbJsonValue | null, gc_country_name?: ReplicaDbJsonValue | null, };
    214 
    215 export type IGcsLocationFindMany = { filter: IGcsLocationFieldsFilter | null, } | { rel: GcsLocationFindManyRel, };
    216 
    217 export type IGcsLocationFindManyResolve = IResultList<GcsLocation>;
    218 
    219 export type IGcsLocationFindOne = IGcsLocationFindOneArgs | IGcsLocationFindOneRelArgs;
    220 
    221 export type IGcsLocationFindOneArgs = { on: GcsLocationQueryBindValues, };
    222 
    223 export type IGcsLocationFindOneRelArgs = { rel: GcsLocationFindManyRel, };
    224 
    225 export type IGcsLocationFindOneResolve = IResult<GcsLocation | null>;
    226 
    227 export type IGcsLocationUpdate = IGcsLocationUpdateArgs;
    228 
    229 export type IGcsLocationUpdateArgs = { on: GcsLocationQueryBindValues, fields: IGcsLocationFieldsPartial, };
    230 
    231 export type IGcsLocationUpdateResolve = IResult<GcsLocation>;
    232 
    233 export type ILogErrorCreate = ILogErrorFields;
    234 
    235 export type ILogErrorCreateResolve = IResult<LogError>;
    236 
    237 export type ILogErrorDelete = ILogErrorFindOne;
    238 
    239 export type ILogErrorDeleteResolve = IResult<string>;
    240 
    241 export type ILogErrorFields = { error: string, message: string, stack_trace?: string | null, cause?: string | null, app_system: string, app_version: string, nostr_pubkey: string, data?: string | null, };
    242 
    243 export type ILogErrorFieldsFilter = { id?: string, created_at?: string, updated_at?: string, error?: string, message?: string, stack_trace?: string, cause?: string, app_system?: string, app_version?: string, nostr_pubkey?: string, data?: string, };
    244 
    245 export type ILogErrorFieldsPartial = { error?: ReplicaDbJsonValue | null, message?: ReplicaDbJsonValue | null, stack_trace?: ReplicaDbJsonValue | null, cause?: ReplicaDbJsonValue | null, app_system?: ReplicaDbJsonValue | null, app_version?: ReplicaDbJsonValue | null, nostr_pubkey?: ReplicaDbJsonValue | null, data?: ReplicaDbJsonValue | null, };
    246 
    247 export type ILogErrorFindMany = ILogErrorFindManyArgs;
    248 
    249 export type ILogErrorFindManyArgs = { filter: ILogErrorFieldsFilter | null, };
    250 
    251 export type ILogErrorFindManyResolve = IResultList<LogError>;
    252 
    253 export type ILogErrorFindOne = ILogErrorFindOneArgs;
    254 
    255 export type ILogErrorFindOneArgs = { on: LogErrorQueryBindValues, };
    256 
    257 export type ILogErrorFindOneResolve = IResult<LogError | null>;
    258 
    259 export type ILogErrorUpdate = ILogErrorUpdateArgs;
    260 
    261 export type ILogErrorUpdateArgs = { on: LogErrorQueryBindValues, fields: ILogErrorFieldsPartial, };
    262 
    263 export type ILogErrorUpdateResolve = IResult<LogError>;
    264 
    265 export type IMediaImageCreate = IMediaImageFields;
    266 
    267 export type IMediaImageCreateResolve = IResult<MediaImage>;
    268 
    269 export type IMediaImageDelete = IMediaImageFindOne;
    270 
    271 export type IMediaImageDeleteResolve = IResult<string>;
    272 
    273 export type IMediaImageFields = { file_path: string, mime_type: string, res_base: string, res_path: string, label?: string | null, description?: string | null, };
    274 
    275 export type IMediaImageFieldsFilter = { id?: string, created_at?: string, updated_at?: string, file_path?: string, mime_type?: string, res_base?: string, res_path?: string, label?: string, description?: string, };
    276 
    277 export type IMediaImageFieldsPartial = { file_path?: ReplicaDbJsonValue | null, mime_type?: ReplicaDbJsonValue | null, res_base?: ReplicaDbJsonValue | null, res_path?: ReplicaDbJsonValue | null, label?: ReplicaDbJsonValue | null, description?: ReplicaDbJsonValue | null, };
    278 
    279 export type IMediaImageFindMany = { filter: IMediaImageFieldsFilter | null, } | { rel: MediaImageFindManyRel, };
    280 
    281 export type IMediaImageFindManyResolve = IResultList<MediaImage>;
    282 
    283 export type IMediaImageFindOne = IMediaImageFindOneArgs | IMediaImageFindOneRelArgs;
    284 
    285 export type IMediaImageFindOneArgs = { on: MediaImageQueryBindValues, };
    286 
    287 export type IMediaImageFindOneRelArgs = { rel: MediaImageFindManyRel, };
    288 
    289 export type IMediaImageFindOneResolve = IResult<MediaImage | null>;
    290 
    291 export type IMediaImageUpdate = IMediaImageUpdateArgs;
    292 
    293 export type IMediaImageUpdateArgs = { on: MediaImageQueryBindValues, fields: IMediaImageFieldsPartial, };
    294 
    295 export type IMediaImageUpdateResolve = IResult<MediaImage>;
    296 
    297 export type INostrEventHeadCreate = INostrEventHeadFields;
    298 
    299 export type INostrEventHeadCreateResolve = IResult<NostrEventHead>;
    300 
    301 export type INostrEventHeadDelete = INostrEventHeadFindOne;
    302 
    303 export type INostrEventHeadDeleteResolve = IResult<string>;
    304 
    305 export type INostrEventHeadFields = { key: string, kind: number, pubkey: string, d_tag: string, last_event_id: string, last_created_at: number, content_hash: string, };
    306 
    307 export type INostrEventHeadFieldsFilter = { id?: string, created_at?: string, updated_at?: string, key?: string, kind?: number, pubkey?: string, d_tag?: string, last_event_id?: string, last_created_at?: number, content_hash?: string, };
    308 
    309 export type INostrEventHeadFieldsPartial = { key?: ReplicaDbJsonValue | null, kind?: ReplicaDbJsonValue | null, pubkey?: ReplicaDbJsonValue | null, d_tag?: ReplicaDbJsonValue | null, last_event_id?: ReplicaDbJsonValue | null, last_created_at?: ReplicaDbJsonValue | null, content_hash?: ReplicaDbJsonValue | null, };
    310 
    311 export type INostrEventHeadFindMany = INostrEventHeadFindManyArgs;
    312 
    313 export type INostrEventHeadFindManyArgs = { filter: INostrEventHeadFieldsFilter | null, };
    314 
    315 export type INostrEventHeadFindManyResolve = IResultList<NostrEventHead>;
    316 
    317 export type INostrEventHeadFindOne = INostrEventHeadFindOneArgs;
    318 
    319 export type INostrEventHeadFindOneArgs = { on: NostrEventHeadQueryBindValues, };
    320 
    321 export type INostrEventHeadFindOneResolve = IResult<NostrEventHead | null>;
    322 
    323 export type INostrEventHeadUpdate = INostrEventHeadUpdateArgs;
    324 
    325 export type INostrEventHeadUpdateArgs = { on: NostrEventHeadQueryBindValues, fields: INostrEventHeadFieldsPartial, };
    326 
    327 export type INostrEventHeadUpdateResolve = IResult<NostrEventHead>;
    328 
    329 export type INostrProfileCreate = INostrProfileFields;
    330 
    331 export type INostrProfileCreateResolve = IResult<NostrProfile>;
    332 
    333 export type INostrProfileDelete = INostrProfileFindOne;
    334 
    335 export type INostrProfileDeleteResolve = IResult<string>;
    336 
    337 export type INostrProfileFields = { public_key: string, profile_type: string, name: string, display_name?: string | null, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, nip05?: string | null, lud06?: string | null, lud16?: string | null, };
    338 
    339 export type INostrProfileFieldsFilter = { id?: string, created_at?: string, updated_at?: string, public_key?: string, profile_type?: string, name?: string, display_name?: string, about?: string, website?: string, picture?: string, banner?: string, nip05?: string, lud06?: string, lud16?: string, };
    340 
    341 export type INostrProfileFieldsPartial = { public_key?: ReplicaDbJsonValue | null, profile_type?: ReplicaDbJsonValue | null, name?: ReplicaDbJsonValue | null, display_name?: ReplicaDbJsonValue | null, about?: ReplicaDbJsonValue | null, website?: ReplicaDbJsonValue | null, picture?: ReplicaDbJsonValue | null, banner?: ReplicaDbJsonValue | null, nip05?: ReplicaDbJsonValue | null, lud06?: ReplicaDbJsonValue | null, lud16?: ReplicaDbJsonValue | null, };
    342 
    343 export type INostrProfileFindMany = { filter: INostrProfileFieldsFilter | null, } | { rel: NostrProfileFindManyRel, };
    344 
    345 export type INostrProfileFindManyResolve = IResultList<NostrProfile>;
    346 
    347 export type INostrProfileFindOne = INostrProfileFindOneArgs | INostrProfileFindOneRelArgs;
    348 
    349 export type INostrProfileFindOneArgs = { on: NostrProfileQueryBindValues, };
    350 
    351 export type INostrProfileFindOneRelArgs = { rel: NostrProfileFindManyRel, };
    352 
    353 export type INostrProfileFindOneResolve = IResult<NostrProfile | null>;
    354 
    355 export type INostrProfileRelayRelation = { nostr_profile: NostrProfileQueryBindValues, nostr_relay: NostrRelayQueryBindValues, };
    356 
    357 export type INostrProfileRelayResolve = IResultPass;
    358 
    359 export type INostrProfileUpdate = INostrProfileUpdateArgs;
    360 
    361 export type INostrProfileUpdateArgs = { on: NostrProfileQueryBindValues, fields: INostrProfileFieldsPartial, };
    362 
    363 export type INostrProfileUpdateResolve = IResult<NostrProfile>;
    364 
    365 export type INostrRelayCreate = INostrRelayFields;
    366 
    367 export type INostrRelayCreateResolve = IResult<NostrRelay>;
    368 
    369 export type INostrRelayDelete = INostrRelayFindOne;
    370 
    371 export type INostrRelayDeleteResolve = IResult<string>;
    372 
    373 export type INostrRelayFields = { url: string, relay_id?: string | null, name?: string | null, description?: string | null, pubkey?: string | null, contact?: string | null, supported_nips?: string | null, software?: string | null, version?: string | null, data?: string | null, };
    374 
    375 export type INostrRelayFieldsFilter = { id?: string, created_at?: string, updated_at?: string, url?: string, relay_id?: string, name?: string, description?: string, pubkey?: string, contact?: string, supported_nips?: string, software?: string, version?: string, data?: string, };
    376 
    377 export type INostrRelayFieldsPartial = { url?: ReplicaDbJsonValue | null, relay_id?: ReplicaDbJsonValue | null, name?: ReplicaDbJsonValue | null, description?: ReplicaDbJsonValue | null, pubkey?: ReplicaDbJsonValue | null, contact?: ReplicaDbJsonValue | null, supported_nips?: ReplicaDbJsonValue | null, software?: ReplicaDbJsonValue | null, version?: ReplicaDbJsonValue | null, data?: ReplicaDbJsonValue | null, };
    378 
    379 export type INostrRelayFindMany = { filter: INostrRelayFieldsFilter | null, } | { rel: NostrRelayFindManyRel, };
    380 
    381 export type INostrRelayFindManyResolve = IResultList<NostrRelay>;
    382 
    383 export type INostrRelayFindOne = INostrRelayFindOneArgs | INostrRelayFindOneRelArgs;
    384 
    385 export type INostrRelayFindOneArgs = { on: NostrRelayQueryBindValues, };
    386 
    387 export type INostrRelayFindOneRelArgs = { rel: NostrRelayFindManyRel, };
    388 
    389 export type INostrRelayFindOneResolve = IResult<NostrRelay | null>;
    390 
    391 export type INostrRelayUpdate = INostrRelayUpdateArgs;
    392 
    393 export type INostrRelayUpdateArgs = { on: NostrRelayQueryBindValues, fields: INostrRelayFieldsPartial, };
    394 
    395 export type INostrRelayUpdateResolve = IResult<NostrRelay>;
    396 
    397 export type IPlotCreate = IPlotFields;
    398 
    399 export type IPlotCreateResolve = IResult<Plot>;
    400 
    401 export type IPlotDelete = IPlotFindOne;
    402 
    403 export type IPlotDeleteResolve = IResult<string>;
    404 
    405 export type IPlotFields = { d_tag: string, farm_id: string, name: string, about?: string | null, location_primary?: string | null, location_city?: string | null, location_region?: string | null, location_country?: string | null, };
    406 
    407 export type IPlotFieldsFilter = { id?: string, created_at?: string, updated_at?: string, d_tag?: string, farm_id?: string, name?: string, about?: string, location_primary?: string, location_city?: string, location_region?: string, location_country?: string, };
    408 
    409 export type IPlotFieldsPartial = { d_tag?: ReplicaDbJsonValue | null, farm_id?: ReplicaDbJsonValue | null, name?: ReplicaDbJsonValue | null, about?: ReplicaDbJsonValue | null, location_primary?: ReplicaDbJsonValue | null, location_city?: ReplicaDbJsonValue | null, location_region?: ReplicaDbJsonValue | null, location_country?: ReplicaDbJsonValue | null, };
    410 
    411 export type IPlotFindMany = IPlotFindManyArgs;
    412 
    413 export type IPlotFindManyArgs = { filter: IPlotFieldsFilter | null, };
    414 
    415 export type IPlotFindManyResolve = IResultList<Plot>;
    416 
    417 export type IPlotFindOne = IPlotFindOneArgs;
    418 
    419 export type IPlotFindOneArgs = { on: PlotQueryBindValues, };
    420 
    421 export type IPlotFindOneResolve = IResult<Plot | null>;
    422 
    423 export type IPlotGcsLocationCreate = IPlotGcsLocationFields;
    424 
    425 export type IPlotGcsLocationCreateResolve = IResult<PlotGcsLocation>;
    426 
    427 export type IPlotGcsLocationDelete = IPlotGcsLocationFindOne;
    428 
    429 export type IPlotGcsLocationDeleteResolve = IResult<string>;
    430 
    431 export type IPlotGcsLocationFields = { plot_id: string, gcs_location_id: string, role: string, };
    432 
    433 export type IPlotGcsLocationFieldsFilter = { id?: string, created_at?: string, updated_at?: string, plot_id?: string, gcs_location_id?: string, role?: string, };
    434 
    435 export type IPlotGcsLocationFieldsPartial = { plot_id?: ReplicaDbJsonValue | null, gcs_location_id?: ReplicaDbJsonValue | null, role?: ReplicaDbJsonValue | null, };
    436 
    437 export type IPlotGcsLocationFindMany = IPlotGcsLocationFindManyArgs;
    438 
    439 export type IPlotGcsLocationFindManyArgs = { filter: IPlotGcsLocationFieldsFilter | null, };
    440 
    441 export type IPlotGcsLocationFindManyResolve = IResultList<PlotGcsLocation>;
    442 
    443 export type IPlotGcsLocationFindOne = IPlotGcsLocationFindOneArgs;
    444 
    445 export type IPlotGcsLocationFindOneArgs = { on: PlotGcsLocationQueryBindValues, };
    446 
    447 export type IPlotGcsLocationFindOneResolve = IResult<PlotGcsLocation | null>;
    448 
    449 export type IPlotGcsLocationUpdate = IPlotGcsLocationUpdateArgs;
    450 
    451 export type IPlotGcsLocationUpdateArgs = { on: PlotGcsLocationQueryBindValues, fields: IPlotGcsLocationFieldsPartial, };
    452 
    453 export type IPlotGcsLocationUpdateResolve = IResult<PlotGcsLocation>;
    454 
    455 export type IPlotTagCreate = IPlotTagFields;
    456 
    457 export type IPlotTagCreateResolve = IResult<PlotTag>;
    458 
    459 export type IPlotTagDelete = IPlotTagFindOne;
    460 
    461 export type IPlotTagDeleteResolve = IResult<string>;
    462 
    463 export type IPlotTagFields = { plot_id: string, tag: string, };
    464 
    465 export type IPlotTagFieldsFilter = { id?: string, created_at?: string, updated_at?: string, plot_id?: string, tag?: string, };
    466 
    467 export type IPlotTagFieldsPartial = { plot_id?: ReplicaDbJsonValue | null, tag?: ReplicaDbJsonValue | null, };
    468 
    469 export type IPlotTagFindMany = IPlotTagFindManyArgs;
    470 
    471 export type IPlotTagFindManyArgs = { filter: IPlotTagFieldsFilter | null, };
    472 
    473 export type IPlotTagFindManyResolve = IResultList<PlotTag>;
    474 
    475 export type IPlotTagFindOne = IPlotTagFindOneArgs;
    476 
    477 export type IPlotTagFindOneArgs = { on: PlotTagQueryBindValues, };
    478 
    479 export type IPlotTagFindOneResolve = IResult<PlotTag | null>;
    480 
    481 export type IPlotTagUpdate = IPlotTagUpdateArgs;
    482 
    483 export type IPlotTagUpdateArgs = { on: PlotTagQueryBindValues, fields: IPlotTagFieldsPartial, };
    484 
    485 export type IPlotTagUpdateResolve = IResult<PlotTag>;
    486 
    487 export type IPlotUpdate = IPlotUpdateArgs;
    488 
    489 export type IPlotUpdateArgs = { on: PlotQueryBindValues, fields: IPlotFieldsPartial, };
    490 
    491 export type IPlotUpdateResolve = IResult<Plot>;
    492 
    493 export type ITradeProductCreate = ITradeProductFields;
    494 
    495 export type ITradeProductCreateResolve = IResult<TradeProduct>;
    496 
    497 export type ITradeProductDelete = ITradeProductFindOne;
    498 
    499 export type ITradeProductDeleteResolve = IResult<string>;
    500 
    501 export type ITradeProductFields = { key: string, category: string, title: string, summary: string, process: string, lot: string, profile: string, year: bigint, qty_amt: number, qty_amt_exact: string, qty_unit: string, qty_label?: string | null, qty_avail?: bigint | null, price_amt: number, price_amt_exact: string, price_currency: string, price_qty_amt: number, price_qty_amt_exact: string, price_qty_unit: string, listing_addr?: string | null, primary_bin_id?: string | null, verified_primary_bin_id?: string | null, notes?: string | null, };
    502 
    503 export type ITradeProductFieldsFilter = { id?: string, created_at?: string, updated_at?: string, key?: string, category?: string, title?: string, summary?: string, process?: string, lot?: string, profile?: string, year?: bigint, qty_amt?: number, qty_amt_exact?: string, qty_unit?: string, qty_label?: string, qty_avail?: bigint, price_amt?: number, price_amt_exact?: string, price_currency?: string, price_qty_amt?: number, price_qty_amt_exact?: string, price_qty_unit?: string, listing_addr?: string, primary_bin_id?: string, verified_primary_bin_id?: string, notes?: string, };
    504 
    505 export type ITradeProductFieldsPartial = { key?: ReplicaDbJsonValue | null, category?: ReplicaDbJsonValue | null, title?: ReplicaDbJsonValue | null, summary?: ReplicaDbJsonValue | null, process?: ReplicaDbJsonValue | null, lot?: ReplicaDbJsonValue | null, profile?: ReplicaDbJsonValue | null, year?: ReplicaDbJsonValue | null, qty_amt?: ReplicaDbJsonValue | null, qty_amt_exact?: ReplicaDbJsonValue | null, qty_unit?: ReplicaDbJsonValue | null, qty_label?: ReplicaDbJsonValue | null, qty_avail?: ReplicaDbJsonValue | null, price_amt?: ReplicaDbJsonValue | null, price_amt_exact?: ReplicaDbJsonValue | null, price_currency?: ReplicaDbJsonValue | null, price_qty_amt?: ReplicaDbJsonValue | null, price_qty_amt_exact?: ReplicaDbJsonValue | null, price_qty_unit?: ReplicaDbJsonValue | null, listing_addr?: ReplicaDbJsonValue | null, primary_bin_id?: ReplicaDbJsonValue | null, verified_primary_bin_id?: ReplicaDbJsonValue | null, notes?: ReplicaDbJsonValue | null, };
    506 
    507 export type ITradeProductFindMany = ITradeProductFindManyArgs;
    508 
    509 export type ITradeProductFindManyArgs = { filter: ITradeProductFieldsFilter | null, };
    510 
    511 export type ITradeProductFindManyResolve = IResultList<TradeProduct>;
    512 
    513 export type ITradeProductFindOne = ITradeProductFindOneArgs;
    514 
    515 export type ITradeProductFindOneArgs = { on: TradeProductQueryBindValues, };
    516 
    517 export type ITradeProductFindOneResolve = IResult<TradeProduct | null>;
    518 
    519 export type ITradeProductLocationRelation = { trade_product: TradeProductQueryBindValues, gcs_location: GcsLocationQueryBindValues, };
    520 
    521 export type ITradeProductLocationResolve = IResultPass;
    522 
    523 export type ITradeProductMediaRelation = { trade_product: TradeProductQueryBindValues, media_image: MediaImageQueryBindValues, };
    524 
    525 export type ITradeProductMediaResolve = IResultPass;
    526 
    527 export type ITradeProductUpdate = ITradeProductUpdateArgs;
    528 
    529 export type ITradeProductUpdateArgs = { on: TradeProductQueryBindValues, fields: ITradeProductFieldsPartial, };
    530 
    531 export type ITradeProductUpdateResolve = IResult<TradeProduct>;
    532 
    533 export type LogError = { id: string, created_at: string, updated_at: string, error: string, message: string, stack_trace: string | null, cause: string | null, app_system: string, app_version: string, nostr_pubkey: string, data: string | null, };
    534 
    535 export type LogErrorQueryBindValues = { id: string, } | { nostr_pubkey: string, };
    536 
    537 export type MediaImage = { id: string, created_at: string, updated_at: string, file_path: string, mime_type: string, res_base: string, res_path: string, label: string | null, description: string | null, };
    538 
    539 export type MediaImageFindManyRel = { on_trade_product: MediaImageTradeProductArgs, } | { off_trade_product: MediaImageTradeProductArgs, };
    540 
    541 export type MediaImageQueryBindValues = { id: string, } | { file_path: string, };
    542 
    543 export type MediaImageTradeProductArgs = { id: string, };
    544 
    545 export type NostrEventHead = { id: string, created_at: string, updated_at: string, key: string, kind: number, pubkey: string, d_tag: string, last_event_id: string, last_created_at: number, content_hash: string, };
    546 
    547 export type NostrEventHeadQueryBindValues = { id: string, } | { key: string, };
    548 
    549 export type NostrProfile = { id: string, created_at: string, updated_at: string, public_key: string, profile_type: string, name: string, display_name: string | null, about: string | null, website: string | null, picture: string | null, banner: string | null, nip05: string | null, lud06: string | null, lud16: string | null, };
    550 
    551 export type NostrProfileFindManyRel = { on_relay: NostrProfileRelayArgs, } | { off_relay: NostrProfileRelayArgs, };
    552 
    553 export type NostrProfileQueryBindValues = { id: string, } | { public_key: string, };
    554 
    555 export type NostrProfileRelayArgs = { id: string, };
    556 
    557 export type NostrRelay = { id: string, created_at: string, updated_at: string, url: string, relay_id: string | null, name: string | null, description: string | null, pubkey: string | null, contact: string | null, supported_nips: string | null, software: string | null, version: string | null, data: string | null, };
    558 
    559 export type NostrRelayFindManyRel = { on_profile: NostrRelayProfileArgs, } | { off_profile: NostrRelayProfileArgs, };
    560 
    561 export type NostrRelayProfileArgs = { public_key: string, };
    562 
    563 export type NostrRelayQueryBindValues = { id: string, } | { url: string, };
    564 
    565 export type Plot = { id: string, created_at: string, updated_at: string, d_tag: string, farm_id: string, name: string, about: string | null, location_primary: string | null, location_city: string | null, location_region: string | null, location_country: string | null, };
    566 
    567 export type PlotGcsLocation = { id: string, created_at: string, updated_at: string, plot_id: string, gcs_location_id: string, role: string, };
    568 
    569 export type PlotGcsLocationQueryBindValues = { id: string, } | { plot_id: string, } | { gcs_location_id: string, };
    570 
    571 export type PlotQueryBindValues = { id: string, } | { d_tag: string, } | { farm_id: string, };
    572 
    573 export type PlotTag = { id: string, created_at: string, updated_at: string, plot_id: string, tag: string, };
    574 
    575 export type PlotTagQueryBindValues = { id: string, } | { plot_id: string, } | { tag: string, };
    576 
    577 export type ReplicaDbJsonValue = null | boolean | number | string | Array<ReplicaDbJsonValue> | { [key: string]: ReplicaDbJsonValue };
    578 
    579 export type TradeProduct = { id: string, created_at: string, updated_at: string, key: string, category: string, title: string, summary: string, process: string, lot: string, profile: string, year: bigint, qty_amt: number, qty_amt_exact: string | null, qty_unit: string, qty_label: string | null, qty_avail: bigint | null, price_amt: number, price_amt_exact: string | null, price_currency: string, price_qty_amt: number, price_qty_amt_exact: string | null, price_qty_unit: string, listing_addr: string | null, primary_bin_id: string | null, verified_primary_bin_id: string | null, notes: string | null, };
    580 
    581 export type TradeProductQueryBindValues = { id: string, };