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