From 592be544f07ddefc457f5bb10c8a2d9e434abb58 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Thu, 30 Oct 2025 15:52:31 -0700 Subject: [PATCH 01/35] feat: update cypress config base url based on environment --- cypress.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress.config.ts b/cypress.config.ts index 4cac7711..3b4c5aee 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -9,7 +9,9 @@ export default defineConfig({ }, e2e: { - baseUrl: 'http://localhost:4173', + baseUrl: process.env.CI + ? "http://localhost:4173" + : "http://localhost:5173", setupNodeEvents(on, config) { process.env.NODE_ENV = 'test' }, From 6d100a4dddfcc76e53b2920f417febd858d85376 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Thu, 30 Oct 2025 15:52:57 -0700 Subject: [PATCH 02/35] feat: type and zod schema regeneration --- openapi-auth.json | 2 +- src/generated/types.gen.ts | 10511 ++++++++++++++++++----------------- src/generated/zod.gen.ts | 4675 +++++++--------- 3 files changed, 7527 insertions(+), 7661 deletions(-) diff --git a/openapi-auth.json b/openapi-auth.json index 77e95fb1..dabe586a 100644 --- a/openapi-auth.json +++ b/openapi-auth.json @@ -1 +1 @@ -{"openapi":"3.1.0","info":{"title":"Ocotillo API (Full)","description":"Full API schema (authorized users)","version":"0.0.1"},"paths":{"/asset/upload":{"post":{"tags":["asset"],"summary":"Upload Asset","operationId":"upload_asset_asset_upload_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"client","in":"query","required":false,"schema":{"title":"Client"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_asset_asset_upload_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Asset Asset Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asset":{"post":{"tags":["asset"],"summary":"Add Asset","operationId":"add_asset_asset_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAsset"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["asset"],"summary":"List Assets","description":"List all assets or assets associated with a specific thing.","operationId":"list_assets_asset_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AssetResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asset/{asset_id}":{"get":{"tags":["asset"],"summary":"Get Asset","description":"Retrieve an asset by its ID.","operationId":"get_asset_asset__asset_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}},{"name":"client","in":"query","required":false,"schema":{"title":"Client"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["asset"],"summary":"Update Asset","description":"Update an existing asset.","operationId":"update_asset_asset__asset_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAsset"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["asset"],"summary":"Delete Asset","operationId":"delete_asset_asset__asset_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asset/{asset_id}/remove":{"delete":{"tags":["asset"],"summary":"Remove Asset","operationId":"remove_asset_asset__asset_id__remove_delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}},{"name":"client","in":"query","required":false,"schema":{"title":"Client"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/author/{author_id}/publications":{"get":{"tags":["author"],"summary":"Get Author Publications","description":"Retrieve all publications for a specific author.","operationId":"get_author_publications_author__author_id__publications_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"integer","title":"Author Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicationResponse"},"title":"Response Get Author Publications Author Author Id Publications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact":{"post":{"tags":["contact"],"summary":"Create a new contact","operationId":"create_contact_contact_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContact"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get contacts","description":"Retrieve all contacts from the database.\n:param session:\n:return:","operationId":"get_contacts_contact_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContactResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/address":{"post":{"tags":["contact"],"summary":"Add an address to a contact","description":"Add a new address to an existing contact in the database.\n:param contact_id: ID of the contact to add the address to\n:param address_data: Data for the new address\n:param session: Database session\n:return: Response containing the added address","operationId":"create_address_contact_address_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAddress"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get all addresses","description":"Retrieve all addresses from the database.\n:param session:\n:return:","operationId":"get_addresses_contact_address_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AddressResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/email":{"post":{"tags":["contact"],"summary":"Add an email to a contact","operationId":"create_email_contact_email_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEmail"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get all emails","description":"Retrieve all emails from the database.\n:param session:\n:return:","operationId":"get_emails_contact_email_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EmailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/phone":{"post":{"tags":["contact"],"summary":"Add a phone number to a contact","operationId":"create_phone_contact_phone_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePhone"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get all phones","description":"Retrieve all phone numbers from the database.\n:param session:\n:return:","operationId":"get_phones_contact_phone_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/email/{email_id}":{"patch":{"tags":["contact"],"summary":"Update Contact Email","description":"Update an existing contact's email in the database.","operationId":"update_contact_email_contact_email__email_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEmail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get email by ID","description":"Retrieve an email by ID from the database.","operationId":"get_email_by_id_contact_email__email_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact email","description":"Delete a contact email by ID from the database.","operationId":"delete_contact_email_contact_email__email_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/phone/{phone_id}":{"patch":{"tags":["contact"],"summary":"Update Contact Phone","description":"Update an existing contact's phone number in the database.\n:param contact_id: ID of the contact to update\n:param phone_type: Type of the phone to update\n:param phone_number: New phone number\n:param session: Database session\n:return: Updated contact response","operationId":"update_contact_phone_contact_phone__phone_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePhone"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get phone by ID","description":"Retrieve a phone by ID from the database.","operationId":"get_phone_by_id_contact_phone__phone_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact phone","description":"Delete a contact phone by ID from the database.","operationId":"delete_contact_phone_contact_phone__phone_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/address/{address_id}":{"patch":{"tags":["contact"],"summary":"Update Contact Address","description":"Update an existing contact's address in the database.\n\n:param address_id:\n:param address_data:\n:param session:\n:return:","operationId":"update_contact_address_contact_address__address_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAddress"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get address by ID","description":"Retrieve an address by ID from the database.","operationId":"get_address_by_id_contact_address__address_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact address","description":"Delete a contact address by ID from the database.","operationId":"delete_contact_address_contact_address__address_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}":{"patch":{"tags":["contact"],"summary":"Update contact","description":"Update an existing contact in the database.\n:param contact_id: ID of the contact to update\n:param contact_data: Data to update the contact with\n:param session: Database session\n:return: Updated contact response","operationId":"update_contact_contact__contact_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContact"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get contact by ID","description":"Retrieve a contact by ID from the database.","operationId":"get_contact_by_id_contact__contact_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact","description":"Delete a contact by ID from the database.","operationId":"delete_contact_contact__contact_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}/email":{"get":{"tags":["contact"],"summary":"Get contact emails","description":"Retrieve all emails associated with a contact.","operationId":"get_contact_emails_contact__contact_id__email_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EmailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}/phone":{"get":{"tags":["contact"],"summary":"Get contact phones","description":"Retrieve all phone numbers associated with a contact.","operationId":"get_contact_phones_contact__contact_id__phone_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}/address":{"get":{"tags":["contact"],"summary":"Get contact addresses","description":"Retrieve all addresses associated with a contact.","operationId":"get_contact_addresses_contact__contact_id__address_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AddressResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geospatial":{"get":{"tags":["geospatial"],"summary":"Get Geospatial","description":"Endpoint to retrieve a GeoJSON FeatureCollection or a shapefile.\nIf the request is for a shapefile, it will return a zip file containing the shapefile.\nOtherwise, it returns a GeoJSON FeatureCollection.","operationId":"get_geospatial_geospatial_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_type","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"thing_type"}},{"name":"group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"group"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(geojson|shapefile)$","title":"format","description":"Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile.","default":"geojson"},"description":"Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geospatial/project-area/{group_id}":{"get":{"tags":["geospatial"],"summary":"Get project area for group","operationId":"get_project_area_geospatial_project_area__group_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/group":{"post":{"tags":["group"],"summary":"Create a new group","description":"Create a new group in the database.","operationId":"create_group_group_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGroup"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["group"],"summary":"Get groups","description":"Retrieve all groups from the database.","operationId":"get_groups_group_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_GroupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/group/{group_id}":{"get":{"tags":["group"],"summary":"Get group by ID","description":"Retrieve a group by ID from the database.","operationId":"get_group_by_id_group__group_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["group"],"summary":"Update a group by ID","description":"Update a group by ID in the database.","operationId":"update_group_group__group_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroup"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["group"],"summary":"Delete a group by ID","operationId":"delete_group_group__group_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/category":{"post":{"tags":["lexicon"],"summary":"Add Category","description":"Endpoint to add a category to the lexicon.","operationId":"add_category_lexicon_category_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLexiconCategory"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Categories","description":"Endpoint to retrieve lexicon categories.","operationId":"get_lexicon_categories_lexicon_category_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"name","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LexiconCategoryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/term":{"post":{"tags":["lexicon"],"summary":"Add term","description":"Endpoint to add a term to the lexicon.","operationId":"add_term_lexicon_term_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLexiconTerm"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTermResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get lexicon terms","description":"Endpoint to retrieve lexicon terms.","operationId":"get_lexicon_terms_lexicon_term_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LexiconTermResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/triple":{"post":{"tags":["lexicon"],"summary":"Add triple","operationId":"add_triple_lexicon_triple_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLexiconTriple"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTripleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get lexicon triples","description":"Endpoint to retrieve lexicon triples.","operationId":"get_lexicon_triples_lexicon_triple_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"subject","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LexiconTripleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/term/{term_id}":{"patch":{"tags":["lexicon"],"summary":"Update Lexicon Term","operationId":"update_lexicon_term_lexicon_term__term_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"integer","title":"Term Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLexiconTerm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTermResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Term","operationId":"get_lexicon_term_lexicon_term__term_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"integer","title":"Term Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTermResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lexicon"],"summary":"Delete a lexicon term by ID","operationId":"delete_lexicon_term_lexicon_term__term_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"integer","title":"Term Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/category/{category_id}":{"patch":{"tags":["lexicon"],"summary":"Update Lexicon Category","operationId":"update_lexicon_category_lexicon_category__category_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLexiconCategory"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Category","operationId":"get_lexicon_category_lexicon_category__category_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lexicon"],"summary":"Delete a lexicon category by ID","operationId":"delete_lexicon_category_lexicon_category__category_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/triple/{triple_id}":{"patch":{"tags":["lexicon"],"summary":"Update Lexicon Triple","operationId":"update_lexicon_triple_lexicon_triple__triple_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"triple_id","in":"path","required":true,"schema":{"type":"integer","title":"Triple Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLexiconTriple"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTripleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Triple","operationId":"get_lexicon_triple_lexicon_triple__triple_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"triple_id","in":"path","required":true,"schema":{"type":"integer","title":"Triple Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTripleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lexicon"],"summary":"Delete a lexicon triple by ID","operationId":"delete_lexicon_triple_lexicon_triple__triple_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"triple_id","in":"path","required":true,"schema":{"type":"integer","title":"Triple Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/location":{"post":{"tags":["location"],"summary":"Create a new sample location","description":"Create a new sample location in the database.","operationId":"create_location_location_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLocation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["location"],"summary":"Get all locations","description":"Retrieve all wells from the database.","operationId":"get_location_location_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"nearby_point","in":"query","required":false,"schema":{"type":"string","title":"Nearby Point"}},{"name":"nearby_distance_km","in":"query","required":false,"schema":{"type":"number","default":1,"title":"Nearby Distance Km"}},{"name":"within","in":"query","required":false,"schema":{"type":"string","title":"Within"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LocationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/location/{location_id}":{"patch":{"tags":["location"],"summary":"Update a location","description":"Update a sample location in the database.","operationId":"update_location_location__location_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["location"],"summary":"Get location by ID","description":"Retrieve a sample location by ID from the database.","operationId":"get_location_by_id_location__location_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["location"],"summary":"Delete location by ID","description":"Delete a sample location by ID from the database.","operationId":"delete_location_location__location_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/groundwater-level":{"post":{"tags":["observation"],"summary":"Add Groundwater Level Observation","description":"Add a new groundwater observation to the database.","operationId":"add_groundwater_level_observation_observation_groundwater_level_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGroundwaterLevelObservation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get groundwater level observations","description":"Retrieve all groundwater level observations from the database.","operationId":"get_groundwater_level_observations_observation_groundwater_level_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sensor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"}},{"name":"sample_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_GroundwaterLevelObservationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/water-chemistry":{"post":{"tags":["observation"],"summary":"Add Water Chemistry Observation","description":"Add a new water chemistry observation to the database.\nThis endpoint is currently a placeholder and does not implement any functionality.","operationId":"add_water_chemistry_observation_observation_water_chemistry_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWaterChemistryObservation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get water chemistry observations","description":"Retrieve all water chemistry observations from the database.","operationId":"get_water_chemistry_observations_observation_water_chemistry_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sensor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"}},{"name":"sample_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WaterChemistryObservationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/groundwater-level/{observation_id}":{"patch":{"tags":["observation"],"summary":"Update Groundwater Level Observation","description":"Update an existing groundwater level observation in the database.","operationId":"update_groundwater_level_observation_observation_groundwater_level__observation_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroundwaterLevelObservation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get groundwater level observation by ID","operationId":"get_groundwater_level_observation_by_id_observation_groundwater_level__observation_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/water-chemistry/{observation_id}":{"patch":{"tags":["observation"],"summary":"Update Water Chemistry Observation","description":"Update an existing water chemistry observation in the database.","operationId":"update_water_chemistry_observation_observation_water_chemistry__observation_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWaterChemistryObservation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get water chemistry observation by ID","operationId":"get_water_chemistry_observation_by_id_observation_water_chemistry__observation_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation":{"get":{"tags":["observation"],"summary":"Get all observations","operationId":"get_all_observations_observation_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sensor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"}},{"name":"sample_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ObservationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/{observation_id}":{"get":{"tags":["observation"],"summary":"Get an observation by its ID","operationId":"get_observation_by_id_observation__observation_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["observation"],"summary":"Delete an observation","operationId":"delete_observation_observation__observation_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/publication/add":{"post":{"tags":["publication"],"summary":"Post Publication","description":"Add a new publication.","operationId":"post_publication_publication_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublication"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2AuthorizationCodeBearer":[]}]}},"/sample":{"post":{"tags":["sample"],"summary":"Add Sample","description":"Endpoint to add a sample.","operationId":"add_sample_sample_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSample"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sample"],"summary":"Get Samples","description":"Endpoint to retrieve samples.","operationId":"get_samples_sample_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SampleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sample/{sample_id}":{"patch":{"tags":["sample"],"summary":"Update Sample","description":"Endpoint to update a sample.","operationId":"update_sample_sample__sample_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sample_id","in":"path","required":true,"schema":{"type":"integer","title":"Sample Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSample"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SampleResponse"},{"$ref":"#/components/schemas/ResourceNotFoundResponse"}],"title":"Response Update Sample Sample Sample Id Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sample"],"summary":"Get Sample by ID","description":"Endpoint to retrieve a sample by its ID.","operationId":"get_sample_by_id_sample__sample_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sample_id","in":"path","required":true,"schema":{"type":"integer","title":"Sample Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SampleResponse"},{"$ref":"#/components/schemas/ResourceNotFoundResponse"}],"title":"Response Get Sample By Id Sample Sample Id Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sample"],"summary":"Delete Sample by ID","operationId":"delete_sample_by_id_sample__sample_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sample_id","in":"path","required":true,"schema":{"type":"integer","title":"Sample Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sensor":{"post":{"tags":["sensor"],"summary":"Add Sensor","description":"Add a sensor to the system.","operationId":"add_sensor_sensor_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSensor"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sensor"],"summary":"Get Sensors","description":"Retrieve all sensors from the system.\nThis endpoint is a placeholder and should be implemented with actual logic.","operationId":"get_sensors_sensor_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"type":"integer","title":"Thing Id"}},{"name":"observed_property","in":"query","required":false,"schema":{"type":"string","title":"Observed Property"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SensorResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sensor/{sensor_id}":{"patch":{"tags":["sensor"],"summary":"Update Sensor","description":"Update a sensor in the system.","operationId":"update_sensor_sensor__sensor_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSensor"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sensor"],"summary":"Delete Sensor","description":"Delete a sensor in the system","operationId":"delete_sensor_sensor__sensor_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sensor"],"summary":"Get Sensor","description":"Retrieve a sensor by its ID.","operationId":"get_sensor_sensor__sensor_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search":{"get":{"tags":["search"],"summary":"Search Api","description":"Search endpoint for the collaborative network.","operationId":"search_api_search_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/water-well":{"get":{"tags":["thing"],"summary":"Get all water wells","description":"Retrieve all wells from the database.","operationId":"get_water_wells_thing_water_well_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WellResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a water well","description":"Create a new water well in the database.","operationId":"create_well_thing_water_well_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWell"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/water-well/{thing_id}":{"get":{"tags":["thing"],"summary":"Get water well by ID","description":"Retrieve a water well by ID from the database.","operationId":"get_well_by_id_thing_water_well__thing_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["thing"],"summary":"Update well by parent thing ID","description":"Update an existing well by ID.","operationId":"update_water_well_thing_water_well__thing_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWell"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/water-well/{thing_id}/well-screen":{"get":{"tags":["thing"],"summary":"Get well screens by water well ID","description":"Retrieve all well screens for a specific water well by its ID.","operationId":"get_well_screens_by_well_id_thing_water_well__thing_id__well_screen_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WellScreenResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/well-screen":{"get":{"tags":["thing"],"summary":"Get well screens","description":"Retrieve all well screens from the database.","operationId":"get_well_screens_thing_well_screen_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WellScreenResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a new well screen","description":"Create a new well screen in the database.","operationId":"create_wellscreen_thing_well_screen_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWellScreen"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellScreenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/well-screen/{wellscreen_id}":{"get":{"tags":["thing"],"summary":"Get well screen by ID","description":"Retrieve a well screen by ID from the database.","operationId":"get_well_screen_by_id_thing_well_screen__wellscreen_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"wellscreen_id","in":"path","required":true,"schema":{"type":"integer","title":"Wellscreen Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellScreenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/spring":{"get":{"tags":["thing"],"summary":"Get all springs","description":"Retrieve all springs from the database.","operationId":"get_springs_thing_spring_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SpringResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a new spring","description":"Create a new well in the database.","operationId":"create_spring_thing_spring_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpring"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpringResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/spring/{thing_id}":{"get":{"tags":["thing"],"summary":"Get spring by ID","description":"Retrieve a spring by ID from the database.","operationId":"get_spring_by_id_thing_spring__thing_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpringResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["thing"],"summary":"Update spring by parent thing ID","description":"Update an existing spring by ID.","operationId":"update_spring_thing_spring__thing_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSpring"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpringResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/id-link":{"get":{"tags":["thing"],"summary":"Get all thing links","description":"Retrieve all thing links, optionally filtered and sorted.","operationId":"get_thing_id_links_thing_id_link_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ThingIdLinkResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a new thing link","description":"Create a new link between a thing and an alternate ID.","operationId":"create_thing_id_link_thing_id_link_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateThingIdLink"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingIdLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/id-link/{link_id}":{"get":{"tags":["thing"],"summary":"Get thing links by link ID","description":"Retrieve all links for a specific thing by its ID.","operationId":"get_thing_id_links_thing_id_link__link_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingIdLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["thing"],"summary":"Update thing link by ID","operationId":"update_thing_id_link_thing_id_link__link_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThingIdLink"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingIdLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["thing"],"summary":"Delete thing link by ID","description":"Delete a thing link by ID.","operationId":"delete_thing_id_link_thing_id_link__link_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing":{"get":{"tags":["thing"],"summary":"Get all things","description":"Retrieve all things or filter by type.","operationId":"get_things_thing_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"within","in":"query","required":false,"schema":{"type":"string","title":"Within"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ThingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/{thing_id}":{"get":{"tags":["thing"],"summary":"Get thing by ID","description":"Retrieve a thing by ID from the database.","operationId":"get_thing_by_id_thing__thing_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["thing"],"summary":"Delete thing by ID","description":"Delete a thing by ID.","operationId":"delete_thing_thing__thing_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/{thing_id}/id-link":{"get":{"tags":["thing"],"summary":"Get thing links by thing ID","description":"Retrieve all links for a specific thing by its ID.","operationId":"get_thing_id_links_thing__thing_id__id_link_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ThingIdLinkResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/well-screen/{well_screen_id}":{"patch":{"tags":["thing"],"summary":"Update Well Screen by ID","operationId":"update_well_screen_thing_well_screen__well_screen_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"well_screen_id","in":"path","required":true,"schema":{"type":"integer","title":"Well Screen Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWellScreen"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellScreenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["thing"],"summary":"Delete well screen by ID","description":"Delete a well screen by ID.","operationId":"delete_well_screen_thing_well_screen__well_screen_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"well_screen_id","in":"path","required":true,"schema":{"type":"integer","title":"Well Screen Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddressResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"contact_id":{"type":"integer","title":"Contact Id"},"address_line_1":{"type":"string","title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","title":"Country"},"address_type":{"type":"string","title":"Address Type"}},"type":"object","required":["id","created_at","release_status","contact_id","address_line_1","city","state","postal_code","country","address_type"],"title":"AddressResponse","description":"Response schema for address details."},"AssetResponse":{"properties":{"name":{"type":"string","title":"Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"storage_path":{"type":"string","title":"Storage Path"},"mime_type":{"type":"string","title":"Mime Type"},"size":{"type":"integer","title":"Size"},"uri":{"type":"string","title":"Uri"},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"storage_service":{"type":"string","title":"Storage Service"},"signed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Url"}},"type":"object","required":["name","storage_path","mime_type","size","uri","id","created_at","release_status","storage_service"],"title":"AssetResponse"},"AuthorResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"affiliation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation"}},"type":"object","required":["id","name"],"title":"AuthorResponse","description":"Schema for the response of an author."},"Body_upload_asset_asset_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_asset_asset_upload_post"},"ContactResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"role":{"type":"string","title":"Role"},"contact_type":{"type":"string","title":"Contact Type"},"emails":{"items":{"$ref":"#/components/schemas/EmailResponse"},"type":"array","title":"Emails","default":[]},"phones":{"items":{"$ref":"#/components/schemas/PhoneResponse"},"type":"array","title":"Phones","default":[]},"addresses":{"items":{"$ref":"#/components/schemas/AddressResponse"},"type":"array","title":"Addresses","default":[]},"things":{"items":{"$ref":"#/components/schemas/ThingResponse"},"type":"array","title":"Things","default":[]}},"type":"object","required":["id","created_at","release_status","name","organization","role","contact_type"],"title":"ContactResponse","description":"Response schema for contact details."},"CreateAddress":{"properties":{"release_status":{"type":"string","title":"Release Status"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"address_line_1":{"type":"string","title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State","default":"NM"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","title":"Country","default":"United States"},"address_type":{"type":"string","title":"Address Type","default":"Primary"}},"type":"object","required":["release_status","address_line_1","city","postal_code"],"title":"CreateAddress","description":"Schema for creating an address."},"CreateAsset":{"properties":{"name":{"type":"string","title":"Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"storage_path":{"type":"string","title":"Storage Path"},"mime_type":{"type":"string","title":"Mime Type"},"size":{"type":"integer","title":"Size"},"uri":{"type":"string","title":"Uri"},"release_status":{"type":"string","title":"Release Status"},"thing_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},"type":"object","required":["name","storage_path","mime_type","size","uri","release_status"],"title":"CreateAsset"},"CreateContact":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"release_status":{"type":"string","title":"Release Status"},"thing_id":{"type":"integer","title":"Thing Id"},"role":{"type":"string","title":"Role"},"contact_type":{"type":"string","title":"Contact Type","default":"Primary"},"emails":{"anyOf":[{"items":{"$ref":"#/components/schemas/CreateEmail"},"type":"array"},{"type":"null"}],"title":"Emails"},"phones":{"anyOf":[{"items":{"$ref":"#/components/schemas/CreatePhone"},"type":"array"},{"type":"null"}],"title":"Phones"},"addresses":{"anyOf":[{"items":{"$ref":"#/components/schemas/CreateAddress"},"type":"array"},{"type":"null"}],"title":"Addresses"}},"type":"object","required":["release_status","thing_id","role"],"title":"CreateContact","description":"Schema for creating a contact."},"CreateEmail":{"properties":{"email":{"type":"string","title":"Email"},"release_status":{"type":"string","title":"Release Status"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"email_type":{"type":"string","title":"Email Type","default":"Primary"}},"type":"object","required":["email","release_status"],"title":"CreateEmail","description":"Schema for creating an email."},"CreateGroundwaterLevelObservation":{"properties":{"parameter_id":{"type":"integer","title":"Parameter Id"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"release_status":{"type":"string","title":"Release Status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"type":"integer","title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"measuring_point_height":{"type":"number","title":"Measuring Point Height"},"groundwater_level_reason":{"type":"string","title":"Groundwater Level Reason"}},"type":"object","required":["parameter_id","observation_datetime","release_status","sample_id","sensor_id","value","unit","measuring_point_height","groundwater_level_reason"],"title":"CreateGroundwaterLevelObservation"},"CreateGroup":{"properties":{"project_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Area"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Group Id"},"release_status":{"type":"string","title":"Release Status"},"name":{"type":"string","title":"Name"}},"type":"object","required":["release_status","name"],"title":"CreateGroup","description":"Schema for creating a group."},"CreateLexiconCategory":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"CreateLexiconCategory","description":"Pydantic model for creating a lexicon category.\nThis model can be extended to include additional fields as needed."},"CreateLexiconTerm":{"properties":{"term":{"type":"string","title":"Term"},"definition":{"type":"string","title":"Definition"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"}},"type":"object","required":["term","definition","categories"],"title":"CreateLexiconTerm","description":"Pydantic model for creating a lexicon term.\nThis model can be extended to include additional fields as needed."},"CreateLexiconTriple":{"properties":{"subject":{"$ref":"#/components/schemas/CreateLexiconTerm"},"predicate":{"type":"string","title":"Predicate"},"object_":{"$ref":"#/components/schemas/CreateLexiconTerm"}},"type":"object","required":["subject","predicate","object_"],"title":"CreateLexiconTriple","description":"Pydantic model for creating a triple.\nThis model can be extended to include additional fields as needed."},"CreateLocation":{"properties":{"point":{"type":"string","title":"Point"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status","default":"draft"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"elevation":{"type":"number","title":"Elevation"},"elevation_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Accuracy"},"elevation_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elevation Method"},"coordinate_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coordinate Accuracy"},"coordinate_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coordinate Method"}},"type":"object","required":["point","elevation"],"title":"CreateLocation","description":"Schema for creating a sample location."},"CreatePhone":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"release_status":{"type":"string","title":"Release Status"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"phone_type":{"type":"string","title":"Phone Type","default":"Primary"}},"type":"object","required":["phone_number","release_status"],"title":"CreatePhone","description":"Schema for creating a phone number."},"CreatePublication":{"properties":{"title":{"type":"string","title":"Title"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"year":{"type":"integer","title":"Year"},"doi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doi"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"publication_type":{"type":"string","title":"Publication Type"}},"type":"object","required":["title","authors","year","publication_type"],"title":"CreatePublication","description":"Schema for creating a new publication."},"CreateSample":{"properties":{"sample_date":{"type":"string","format":"date-time","title":"Sample Date"},"depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Top"},"depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Bottom"},"release_status":{"type":"string","title":"Release Status"},"field_activity_id":{"type":"integer","title":"Field Activity Id"},"field_event_participant_id":{"type":"integer","title":"Field Event Participant Id"},"sample_name":{"type":"string","title":"Sample Name"},"sample_matrix":{"type":"string","title":"Sample Matrix"},"sample_method":{"type":"string","title":"Sample Method"},"qc_type":{"type":"string","title":"Qc Type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["sample_date","release_status","field_activity_id","field_event_participant_id","sample_name","sample_matrix","sample_method","qc_type"],"title":"CreateSample"},"CreateSensor":{"properties":{"datetime_installed":{"type":"string","format":"date-time","title":"Datetime Installed"},"datetime_removed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datetime Removed"},"release_status":{"type":"string","title":"Release Status"},"name":{"type":"string","title":"Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial No"},"recording_interval":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Interval"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["datetime_installed","release_status","name"],"title":"CreateSensor","description":"Schema for creating a new sensor."},"CreateSpring":{"properties":{"release_status":{"type":"string","title":"Release Status"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Id"},"name":{"type":"string","title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spring Type"}},"type":"object","required":["release_status","location_id","name"],"title":"CreateSpring","description":"Schema for creating a spring."},"CreateThingIdLink":{"properties":{"thing_id":{"type":"integer","title":"Thing Id"},"relation":{"type":"string","title":"Relation"},"alternate_id":{"type":"string","title":"Alternate Id"},"alternate_organization":{"type":"string","title":"Alternate Organization"}},"type":"object","required":["thing_id","relation","alternate_id","alternate_organization"],"title":"CreateThingIdLink","description":"Schema for creating a link between a thing and its ID."},"CreateWaterChemistryObservation":{"properties":{"parameter_id":{"type":"integer","title":"Parameter Id"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"release_status":{"type":"string","title":"Release Status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"type":"integer","title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},"type":"object","required":["parameter_id","observation_datetime","release_status","sample_id","sensor_id","value","unit"],"title":"CreateWaterChemistryObservation"},"CreateWell":{"properties":{"well_depth":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Well Depth","description":"Well depth in feet"},"hole_depth":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Hole Depth","description":"Hole depth in feet"},"well_casing_depth":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Well Casing Depth","description":"Well casing depth in feet"},"release_status":{"type":"string","title":"Release Status"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Id"},"name":{"type":"string","title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"well_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Purpose"},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"},"well_casing_diameter":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Well Casing Diameter","description":"Well casing diameter in inches"},"well_casing_material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Casing Material"}},"type":"object","required":["release_status","location_id","name"],"title":"CreateWell","description":"Schema for creating a well."},"CreateWellScreen":{"properties":{"release_status":{"type":"string","title":"Release Status"},"thing_id":{"type":"integer","title":"Thing Id"},"screen_depth_bottom":{"type":"number","exclusiveMinimum":0.0,"title":"Screen Depth Bottom","description":"Screen depth bottom in feet"},"screen_depth_top":{"type":"number","exclusiveMinimum":0.0,"title":"Screen Depth Top","description":"Screen depth top in feet"},"screen_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Type"},"screen_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Description"}},"type":"object","required":["release_status","thing_id","screen_depth_bottom","screen_depth_top"],"title":"CreateWellScreen","description":"Schema for creating a well screen."},"EmailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"contact_id":{"type":"integer","title":"Contact Id"},"email":{"type":"string","title":"Email"},"email_type":{"type":"string","title":"Email Type"}},"type":"object","required":["id","created_at","release_status","contact_id","email","email_type"],"title":"EmailResponse","description":"Response schema for email details."},"Feature":{"properties":{"type":{"type":"string","title":"Type","default":"Feature"},"geometry":{"$ref":"#/components/schemas/GeoJSONGeometry"},"properties":{"additionalProperties":true,"type":"object","title":"Properties","default":{}}},"type":"object","required":["geometry"],"title":"Feature","description":"Feature schema for GeoJSON response."},"FeatureCollectionResponse":{"properties":{"type":{"type":"string","title":"Type","default":"FeatureCollection"},"features":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array","title":"Features","default":[]}},"type":"object","title":"FeatureCollectionResponse","description":"Response schema for GeoJSON FeatureCollection."},"FieldActivityResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"field_event_id":{"type":"integer","title":"Field Event Id"},"activity_type":{"type":"string","title":"Activity Type"}},"type":"object","required":["id","created_at","release_status","field_event_id","activity_type"],"title":"FieldActivityResponse"},"FieldEventResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"thing_id":{"type":"integer","title":"Thing Id"},"event_date":{"type":"string","format":"date-time","title":"Event Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","release_status","thing_id","event_date","notes"],"title":"FieldEventResponse"},"GeoJSONGeometry":{"properties":{"type":{"type":"string","title":"Type"},"coordinates":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},{"items":{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},"type":"array"},{"items":{"items":{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},"type":"array"},"type":"array"}],"title":"Coordinates"}},"type":"object","required":["type","coordinates"],"title":"GeoJSONGeometry","description":"Geometry schema for GeoJSON response."},"GroundwaterLevelObservationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"parameter":{"$ref":"#/components/schemas/ParameterResponse"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"type":"string","title":"Unit"},"depth_to_water_bgs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth To Water Bgs"},"measuring_point_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Measuring Point Height"},"groundwater_level_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groundwater Level Reason"}},"type":"object","required":["id","created_at","release_status","sample_id","sensor_id","observation_datetime","parameter","value","unit","depth_to_water_bgs","measuring_point_height","groundwater_level_reason"],"title":"GroundwaterLevelObservationResponse"},"GroupResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"name":{"type":"string","title":"Name"},"project_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Area"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Group Id"}},"type":"object","required":["id","created_at","release_status","name","project_area","description","parent_group_id"],"title":"GroupResponse","description":"Pydantic model for the response of a group.\nThis model can be extended to include additional fields as needed."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LexiconCategoryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","created_at","name"],"title":"LexiconCategoryResponse","description":"Pydantic model for the response of a lexicon category.\nThis model can be extended to include additional fields as needed."},"LexiconTermResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"term":{"type":"string","title":"Term"},"definition":{"type":"string","title":"Definition"},"categories":{"items":{"$ref":"#/components/schemas/LexiconCategoryResponse"},"type":"array","title":"Categories","default":[]}},"type":"object","required":["id","created_at","term","definition"],"title":"LexiconTermResponse","description":"Pydantic model for the response of a lexicon term.\nThis model can be extended to include additional fields as needed."},"LexiconTripleResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"subject":{"type":"string","title":"Subject"},"predicate":{"type":"string","title":"Predicate"},"object_":{"type":"string","title":"Object"}},"type":"object","required":["id","created_at","subject","predicate","object_"],"title":"LexiconTripleResponse"},"LocationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"point":{"type":"string","title":"Point"},"elevation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation"},"horizontal_datum":{"type":"string","title":"Horizontal Datum","default":"WGS84"},"vertical_daum":{"type":"string","title":"Vertical Daum","default":"NAVD88"},"elevation_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Accuracy"},"elevation_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elevation Method"},"coordinate_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coordinate Accuracy"},"coordinate_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coordinate Method"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"},"quad_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quad Name"}},"type":"object","required":["id","created_at","release_status","notes","point","elevation","elevation_accuracy","elevation_method","coordinate_accuracy","coordinate_method","state","county","quad_name"],"title":"LocationResponse","description":"Response schema for sample location details."},"ObservationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"parameter":{"$ref":"#/components/schemas/ParameterResponse"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"type":"string","title":"Unit"},"depth_to_water_bgs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth To Water Bgs"},"measuring_point_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Measuring Point Height"},"groundwater_level_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groundwater Level Reason"}},"type":"object","required":["id","created_at","release_status","sample_id","sensor_id","observation_datetime","parameter","value","unit","depth_to_water_bgs","measuring_point_height","groundwater_level_reason"],"title":"ObservationResponse","description":"Response model for observations.\nCombines groundwater level and geothermal observation responses."},"Page_AddressResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AddressResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AddressResponse]"},"Page_AssetResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AssetResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AssetResponse]"},"Page_ContactResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContactResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ContactResponse]"},"Page_EmailResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EmailResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[EmailResponse]"},"Page_GroundwaterLevelObservationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[GroundwaterLevelObservationResponse]"},"Page_GroupResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GroupResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[GroupResponse]"},"Page_LexiconCategoryResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LexiconCategoryResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LexiconCategoryResponse]"},"Page_LexiconTermResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LexiconTermResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LexiconTermResponse]"},"Page_LexiconTripleResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LexiconTripleResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LexiconTripleResponse]"},"Page_LocationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LocationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LocationResponse]"},"Page_ObservationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ObservationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ObservationResponse]"},"Page_PhoneResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PhoneResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[PhoneResponse]"},"Page_SampleResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SampleResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[SampleResponse]"},"Page_SensorResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SensorResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[SensorResponse]"},"Page_SpringResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SpringResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[SpringResponse]"},"Page_ThingIdLinkResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ThingIdLinkResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ThingIdLinkResponse]"},"Page_ThingResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ThingResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ThingResponse]"},"Page_WaterChemistryObservationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WaterChemistryObservationResponse]"},"Page_WellResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WellResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WellResponse]"},"Page_WellScreenResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WellScreenResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WellScreenResponse]"},"Page_dict_":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[dict]"},"ParameterResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"parameter_name":{"type":"string","title":"Parameter Name"},"matrix":{"type":"string","title":"Matrix"},"parameter_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parameter Type"},"cas_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cas Number"},"default_unit":{"type":"string","title":"Default Unit"}},"type":"object","required":["id","created_at","release_status","parameter_name","matrix","parameter_type","cas_number","default_unit"],"title":"ParameterResponse","description":"Pydantic model for the response of a parameter.\nThis model can be extended to include additional fields as needed."},"PhoneResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"contact_id":{"type":"integer","title":"Contact Id"},"phone_number":{"type":"string","title":"Phone Number"},"phone_type":{"type":"string","title":"Phone Type"}},"type":"object","required":["id","created_at","release_status","contact_id","phone_number","phone_type"],"title":"PhoneResponse","description":"Response schema for phone details."},"PublicationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","title":"Title"},"authors":{"items":{"$ref":"#/components/schemas/AuthorResponse"},"type":"array","title":"Authors"},"year":{"type":"integer","title":"Year"},"doi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doi"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"publication_type":{"type":"string","title":"Publication Type"}},"type":"object","required":["id","title","authors","year","publication_type"],"title":"PublicationResponse","description":"Schema for the response of a publication."},"ResourceNotFoundResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ResourceNotFoundResponse"},"SampleResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"thing":{"$ref":"#/components/schemas/ThingResponse"},"field_event":{"$ref":"#/components/schemas/FieldEventResponse"},"field_activity":{"$ref":"#/components/schemas/FieldActivityResponse"},"contact":{"$ref":"#/components/schemas/ContactResponse"},"sample_date":{"type":"string","format":"date-time","title":"Sample Date"},"sample_name":{"type":"string","title":"Sample Name"},"sample_matrix":{"type":"string","title":"Sample Matrix"},"sample_method":{"type":"string","title":"Sample Method"},"qc_type":{"type":"string","title":"Qc Type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Top"},"depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Bottom"}},"type":"object","required":["id","created_at","release_status","thing","field_event","field_activity","contact","sample_date","sample_name","sample_matrix","sample_method","qc_type","notes","depth_top","depth_bottom"],"title":"SampleResponse","description":"Developer's note\n\nThe frontend uses multiple fields for a thing, field_even, and field_activity,\nwhich is why full ThingResponse, FieldEventResponse, and FieldActivityResponse\nare returned. If the response becomes too large and slow, we can use\n.model_dump() and exlude fields to reduce the size."},"SensorResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"name":{"type":"string","title":"Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial No"},"datetime_installed":{"type":"string","format":"date-time","title":"Datetime Installed"},"datetime_removed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datetime Removed"},"recording_interval":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Interval"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","release_status","name","model","serial_no","datetime_installed","datetime_removed","recording_interval","notes"],"title":"SensorResponse"},"SpringResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"name":{"type":"string","title":"Name"},"thing_type":{"type":"string","title":"Thing Type"},"current_location":{"anyOf":[{"$ref":"#/components/schemas/LocationResponse"},{"type":"null"}]},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spring Type"}},"type":"object","required":["id","created_at","release_status","name","thing_type","current_location","first_visit_date"],"title":"SpringResponse","description":"Response schema for spring details."},"ThingIdLinkResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"thing_id":{"type":"integer","title":"Thing Id"},"thing":{"$ref":"#/components/schemas/ThingResponse"},"relation":{"type":"string","title":"Relation"},"alternate_id":{"type":"string","title":"Alternate Id"},"alternate_organization":{"type":"string","title":"Alternate Organization"}},"type":"object","required":["id","created_at","release_status","thing_id","thing","relation","alternate_id","alternate_organization"],"title":"ThingIdLinkResponse"},"ThingResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"name":{"type":"string","title":"Name"},"thing_type":{"type":"string","title":"Thing Type"},"current_location":{"anyOf":[{"$ref":"#/components/schemas/LocationResponse"},{"type":"null"}]},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spring Type"},"well_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Purpose"},"well_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Depth"},"well_depth_unit":{"type":"string","title":"Well Depth Unit","default":"ft"},"hole_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hole Depth"},"hole_depth_unit":{"type":"string","title":"Hole Depth Unit","default":"ft"},"well_casing_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Diameter"},"well_casing_diameter_unit":{"type":"string","title":"Well Casing Diameter Unit","default":"in"},"well_casing_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Depth"},"well_casing_depth_unit":{"type":"string","title":"Well Casing Depth Unit","default":"ft"},"well_casing_material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Casing Material"},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"}},"type":"object","required":["id","created_at","release_status","name","thing_type","current_location","first_visit_date"],"title":"ThingResponse"},"UpdateAddress":{"properties":{"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"address_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Type"}},"type":"object","title":"UpdateAddress","description":"Schema for updating address information."},"UpdateAsset":{"properties":{"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"UpdateAsset"},"UpdateContact":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"contact_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Type"},"thing_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},"type":"object","title":"UpdateContact","description":"Schema for updating contact information."},"UpdateEmail":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"email_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Type"}},"type":"object","title":"UpdateEmail","description":"Schema for updating email information."},"UpdateGroundwaterLevelObservation":{"properties":{"parameter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parameter Id"},"observation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observation Datetime"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"sample_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"measuring_point_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Measuring Point Height"},"groundwater_level_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groundwater Level Reason"}},"type":"object","title":"UpdateGroundwaterLevelObservation"},"UpdateGroup":{"properties":{"project_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Area"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Group Id"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"UpdateGroup","description":"Pydantic model for updating a group.\nThis model can be extended to include additional fields as needed."},"UpdateLexiconCategory":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateLexiconCategory"},"UpdateLexiconTerm":{"properties":{"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition"}},"type":"object","title":"UpdateLexiconTerm"},"UpdateLexiconTriple":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"predicate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predicate"},"object_":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"}},"type":"object","title":"UpdateLexiconTriple"},"UpdateLocation":{"properties":{"point":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Point"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"elevation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation"},"elevation_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Accuracy"},"elevation_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elevation Method"},"coordinate_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coordinate Accuracy"},"coordinate_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coordinate Method"}},"type":"object","title":"UpdateLocation","description":"Schema for updating a location."},"UpdatePhone":{"properties":{"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"phone_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Type"}},"type":"object","title":"UpdatePhone","description":"Schema for updating phone information."},"UpdateSample":{"properties":{"sample_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sample Date"},"depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Top"},"depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Bottom"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"field_activity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Field Activity Id"},"field_event_participant_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Field Event Participant Id"},"sample_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Name"},"sample_matrix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Matrix"},"sample_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Method"},"qc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qc Type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"UpdateSample"},"UpdateSensor":{"properties":{"datetime_installed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datetime Installed"},"datetime_removed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datetime Removed"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial No"},"recording_interval":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Interval"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"UpdateSensor"},"UpdateSpring":{"properties":{"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spring Type"}},"type":"object","title":"UpdateSpring"},"UpdateThingIdLink":{"properties":{"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"alternate_organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternate Organization"},"alternate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternate Id"},"relation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relation"}},"type":"object","title":"UpdateThingIdLink"},"UpdateWaterChemistryObservation":{"properties":{"parameter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parameter Id"},"observation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observation Datetime"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"sample_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},"type":"object","title":"UpdateWaterChemistryObservation"},"UpdateWell":{"properties":{"well_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Depth"},"hole_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hole Depth"},"well_casing_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Depth"},"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"well_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Purpose"},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"},"well_casing_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Diameter"},"well_casing_material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Casing Material"}},"type":"object","title":"UpdateWell"},"UpdateWellScreen":{"properties":{"release_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Status"},"screen_depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Screen Depth Bottom"},"screen_depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Screen Depth Top"},"screen_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Description"},"screen_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Type"}},"type":"object","title":"UpdateWellScreen"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WaterChemistryObservationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"parameter":{"$ref":"#/components/schemas/ParameterResponse"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"type":"string","title":"Unit"}},"type":"object","required":["id","created_at","release_status","sample_id","sensor_id","observation_datetime","parameter","value","unit"],"title":"WaterChemistryObservationResponse"},"WellResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"name":{"type":"string","title":"Name"},"thing_type":{"type":"string","title":"Thing Type"},"current_location":{"anyOf":[{"$ref":"#/components/schemas/LocationResponse"},{"type":"null"}]},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"well_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Purpose"},"well_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Depth"},"well_depth_unit":{"type":"string","title":"Well Depth Unit","default":"ft"},"hole_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hole Depth"},"hole_depth_unit":{"type":"string","title":"Hole Depth Unit","default":"ft"},"well_casing_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Diameter"},"well_casing_diameter_unit":{"type":"string","title":"Well Casing Diameter Unit","default":"in"},"well_casing_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Depth"},"well_casing_depth_unit":{"type":"string","title":"Well Casing Depth Unit","default":"ft"},"well_casing_material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Casing Material"},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"}},"type":"object","required":["id","created_at","release_status","name","thing_type","current_location","first_visit_date"],"title":"WellResponse","description":"Response schema for well details."},"WellScreenResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"release_status":{"type":"string","title":"Release Status"},"thing_id":{"type":"integer","title":"Thing Id"},"thing":{"$ref":"#/components/schemas/WellResponse"},"screen_depth_bottom":{"type":"number","title":"Screen Depth Bottom"},"screen_depth_bottom_unit":{"type":"string","title":"Screen Depth Bottom Unit","default":"ft"},"screen_depth_top":{"type":"number","title":"Screen Depth Top"},"screen_depth_top_unit":{"type":"string","title":"Screen Depth Top Unit","default":"ft"},"screen_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Type"},"screen_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Description"}},"type":"object","required":["id","created_at","release_status","thing_id","thing","screen_depth_bottom","screen_depth_top"],"title":"WellScreenResponse","description":"Response schema for well screen details."}},"securitySchemes":{"OAuth2AuthorizationCodeBearer":{"type":"oauth2","flows":{"authorizationCode":{"scopes":{"openid":"openid","offline_access":"offline_access"},"authorizationUrl":"https://authentik.newmexicowaterdata.org/application/o/authorize/","tokenUrl":"https://authentik.newmexicowaterdata.org/application/o/token/"}}}}}} \ No newline at end of file +{"openapi":"3.1.0","info":{"title":"Ocotillo API (Full)","description":"Full API schema (authorized users)","version":"0.0.1"},"paths":{"/asset/upload":{"post":{"tags":["asset"],"summary":"Upload Asset","operationId":"upload_asset_asset_upload_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"client","in":"query","required":false,"schema":{"title":"Client"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_asset_asset_upload_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Asset Asset Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asset":{"post":{"tags":["asset"],"summary":"Add Asset","operationId":"add_asset_asset_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAsset"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["asset"],"summary":"List Assets","description":"List all assets or assets associated with a specific thing.","operationId":"list_assets_asset_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AssetResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asset/{asset_id}":{"get":{"tags":["asset"],"summary":"Get Asset","description":"Retrieve an asset by its ID.","operationId":"get_asset_asset__asset_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}},{"name":"client","in":"query","required":false,"schema":{"title":"Client"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["asset"],"summary":"Update Asset","description":"Update an existing asset.","operationId":"update_asset_asset__asset_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAsset"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["asset"],"summary":"Delete Asset","operationId":"delete_asset_asset__asset_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asset/{asset_id}/remove":{"delete":{"tags":["asset"],"summary":"Remove Asset","operationId":"remove_asset_asset__asset_id__remove_delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}},{"name":"client","in":"query","required":false,"schema":{"title":"Client"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/author/{author_id}/publications":{"get":{"tags":["author"],"summary":"Get Author Publications","description":"Retrieve all publications for a specific author.","operationId":"get_author_publications_author__author_id__publications_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"author_id","in":"path","required":true,"schema":{"type":"integer","title":"Author Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicationResponse"},"title":"Response Get Author Publications Author Author Id Publications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact":{"post":{"tags":["contact"],"summary":"Create a new contact","operationId":"create_contact_contact_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContact"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get contacts","description":"Retrieve all contacts from the database.\n:param session:\n:return:","operationId":"get_contacts_contact_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContactResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/address":{"post":{"tags":["contact"],"summary":"Add an address to a contact","description":"Add a new address to an existing contact in the database.\n:param contact_id: ID of the contact to add the address to\n:param address_data: Data for the new address\n:param session: Database session\n:return: Response containing the added address","operationId":"create_address_contact_address_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAddress"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get all addresses","description":"Retrieve all addresses from the database.\n:param session:\n:return:","operationId":"get_addresses_contact_address_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AddressResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/email":{"post":{"tags":["contact"],"summary":"Add an email to a contact","operationId":"create_email_contact_email_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEmail"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get all emails","description":"Retrieve all emails from the database.\n:param session:\n:return:","operationId":"get_emails_contact_email_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EmailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/phone":{"post":{"tags":["contact"],"summary":"Add a phone number to a contact","operationId":"create_phone_contact_phone_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePhone"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get all phones","description":"Retrieve all phone numbers from the database.\n:param session:\n:return:","operationId":"get_phones_contact_phone_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/email/{email_id}":{"patch":{"tags":["contact"],"summary":"Update Contact Email","description":"Update an existing contact's email in the database.","operationId":"update_contact_email_contact_email__email_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEmail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get email by ID","description":"Retrieve an email by ID from the database.","operationId":"get_email_by_id_contact_email__email_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact email","description":"Delete a contact email by ID from the database.","operationId":"delete_contact_email_contact_email__email_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/phone/{phone_id}":{"patch":{"tags":["contact"],"summary":"Update Contact Phone","description":"Update an existing contact's phone number in the database.\n:param contact_id: ID of the contact to update\n:param phone_type: Type of the phone to update\n:param phone_number: New phone number\n:param session: Database session\n:return: Updated contact response","operationId":"update_contact_phone_contact_phone__phone_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePhone"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get phone by ID","description":"Retrieve a phone by ID from the database.","operationId":"get_phone_by_id_contact_phone__phone_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact phone","description":"Delete a contact phone by ID from the database.","operationId":"delete_contact_phone_contact_phone__phone_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"phone_id","in":"path","required":true,"schema":{"type":"integer","title":"Phone Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/address/{address_id}":{"patch":{"tags":["contact"],"summary":"Update Contact Address","description":"Update an existing contact's address in the database.\n\n:param address_id:\n:param address_data:\n:param session:\n:return:","operationId":"update_contact_address_contact_address__address_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAddress"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get address by ID","description":"Retrieve an address by ID from the database.","operationId":"get_address_by_id_contact_address__address_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact address","description":"Delete a contact address by ID from the database.","operationId":"delete_contact_address_contact_address__address_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"address_id","in":"path","required":true,"schema":{"type":"integer","title":"Address Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}":{"patch":{"tags":["contact"],"summary":"Update contact","description":"Update an existing contact in the database.\n:param contact_id: ID of the contact to update\n:param contact_data: Data to update the contact with\n:param session: Database session\n:return: Updated contact response","operationId":"update_contact_contact__contact_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContact"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contact"],"summary":"Get contact by ID","description":"Retrieve a contact by ID from the database.","operationId":"get_contact_by_id_contact__contact_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contact"],"summary":"Delete contact","description":"Delete a contact by ID from the database.","operationId":"delete_contact_contact__contact_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}/email":{"get":{"tags":["contact"],"summary":"Get contact emails","description":"Retrieve all emails associated with a contact.","operationId":"get_contact_emails_contact__contact_id__email_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EmailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}/phone":{"get":{"tags":["contact"],"summary":"Get contact phones","description":"Retrieve all phone numbers associated with a contact.","operationId":"get_contact_phones_contact__contact_id__phone_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/{contact_id}/address":{"get":{"tags":["contact"],"summary":"Get contact addresses","description":"Retrieve all addresses associated with a contact.","operationId":"get_contact_addresses_contact__contact_id__address_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AddressResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geospatial":{"get":{"tags":["geospatial"],"summary":"Get Geospatial","description":"Endpoint to retrieve a GeoJSON FeatureCollection or a shapefile.\nIf the request is for a shapefile, it will return a zip file containing the shapefile.\nOtherwise, it returns a GeoJSON FeatureCollection.","operationId":"get_geospatial_geospatial_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_type","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"thing_type"}},{"name":"group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"group"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(geojson|shapefile)$","title":"format","description":"Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile.","default":"geojson"},"description":"Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geospatial/project-area/{group_id}":{"get":{"tags":["geospatial"],"summary":"Get project area for group","operationId":"get_project_area_geospatial_project_area__group_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCollectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/group":{"post":{"tags":["group"],"summary":"Create a new group","description":"Create a new group in the database.","operationId":"create_group_group_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGroup"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["group"],"summary":"Get groups","description":"Retrieve all groups from the database.","operationId":"get_groups_group_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_GroupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/group/{group_id}":{"get":{"tags":["group"],"summary":"Get group by ID","description":"Retrieve a group by ID from the database.","operationId":"get_group_by_id_group__group_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["group"],"summary":"Update a group by ID","description":"Update a group by ID in the database.","operationId":"update_group_group__group_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroup"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["group"],"summary":"Delete a group by ID","operationId":"delete_group_group__group_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/category":{"post":{"tags":["lexicon"],"summary":"Add Category","description":"Endpoint to add a category to the lexicon.","operationId":"add_category_lexicon_category_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLexiconCategory"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Categories","description":"Endpoint to retrieve lexicon categories.","operationId":"get_lexicon_categories_lexicon_category_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"name","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LexiconCategoryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/term":{"post":{"tags":["lexicon"],"summary":"Add term","description":"Endpoint to add a term to the lexicon.","operationId":"add_term_lexicon_term_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLexiconTerm"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTermResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get lexicon terms","description":"Endpoint to retrieve lexicon terms.","operationId":"get_lexicon_terms_lexicon_term_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LexiconTermResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/triple":{"post":{"tags":["lexicon"],"summary":"Add triple","operationId":"add_triple_lexicon_triple_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLexiconTriple"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTripleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get lexicon triples","description":"Endpoint to retrieve lexicon triples.","operationId":"get_lexicon_triples_lexicon_triple_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"subject","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LexiconTripleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/term/{term_id}":{"patch":{"tags":["lexicon"],"summary":"Update Lexicon Term","operationId":"update_lexicon_term_lexicon_term__term_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"integer","title":"Term Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLexiconTerm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTermResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Term","operationId":"get_lexicon_term_lexicon_term__term_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"integer","title":"Term Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTermResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lexicon"],"summary":"Delete a lexicon term by ID","operationId":"delete_lexicon_term_lexicon_term__term_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"integer","title":"Term Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/category/{category_id}":{"patch":{"tags":["lexicon"],"summary":"Update Lexicon Category","operationId":"update_lexicon_category_lexicon_category__category_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLexiconCategory"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Category","operationId":"get_lexicon_category_lexicon_category__category_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lexicon"],"summary":"Delete a lexicon category by ID","operationId":"delete_lexicon_category_lexicon_category__category_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","title":"Category Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lexicon/triple/{triple_id}":{"patch":{"tags":["lexicon"],"summary":"Update Lexicon Triple","operationId":"update_lexicon_triple_lexicon_triple__triple_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"triple_id","in":"path","required":true,"schema":{"type":"integer","title":"Triple Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLexiconTriple"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTripleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["lexicon"],"summary":"Get Lexicon Triple","operationId":"get_lexicon_triple_lexicon_triple__triple_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"triple_id","in":"path","required":true,"schema":{"type":"integer","title":"Triple Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LexiconTripleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lexicon"],"summary":"Delete a lexicon triple by ID","operationId":"delete_lexicon_triple_lexicon_triple__triple_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"triple_id","in":"path","required":true,"schema":{"type":"integer","title":"Triple Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/location":{"post":{"tags":["location"],"summary":"Create a new sample location","description":"Create a new sample location in the database.","operationId":"create_location_location_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLocation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["location"],"summary":"Get all locations","description":"Retrieve all wells from the database.","operationId":"get_location_location_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"nearby_point","in":"query","required":false,"schema":{"type":"string","title":"Nearby Point"}},{"name":"nearby_distance_km","in":"query","required":false,"schema":{"type":"number","default":1,"title":"Nearby Distance Km"}},{"name":"within","in":"query","required":false,"schema":{"type":"string","title":"Within"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LocationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/location/{location_id}":{"patch":{"tags":["location"],"summary":"Update a location","description":"Update a sample location in the database.","operationId":"update_location_location__location_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["location"],"summary":"Get location by ID","description":"Retrieve a sample location by ID from the database.","operationId":"get_location_by_id_location__location_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["location"],"summary":"Delete location by ID","description":"Delete a sample location by ID from the database.","operationId":"delete_location_location__location_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/groundwater-level":{"post":{"tags":["observation"],"summary":"Add Groundwater Level Observation","description":"Add a new groundwater observation to the database.","operationId":"add_groundwater_level_observation_observation_groundwater_level_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGroundwaterLevelObservation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get groundwater level observations","description":"Retrieve all groundwater level observations from the database.","operationId":"get_groundwater_level_observations_observation_groundwater_level_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sensor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"}},{"name":"sample_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_GroundwaterLevelObservationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/water-chemistry":{"post":{"tags":["observation"],"summary":"Add Water Chemistry Observation","description":"Add a new water chemistry observation to the database.\nThis endpoint is currently a placeholder and does not implement any functionality.","operationId":"add_water_chemistry_observation_observation_water_chemistry_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWaterChemistryObservation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get water chemistry observations","description":"Retrieve all water chemistry observations from the database.","operationId":"get_water_chemistry_observations_observation_water_chemistry_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sensor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"}},{"name":"sample_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WaterChemistryObservationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/groundwater-level/{observation_id}":{"patch":{"tags":["observation"],"summary":"Update Groundwater Level Observation","description":"Update an existing groundwater level observation in the database.","operationId":"update_groundwater_level_observation_observation_groundwater_level__observation_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroundwaterLevelObservation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get groundwater level observation by ID","operationId":"get_groundwater_level_observation_by_id_observation_groundwater_level__observation_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/water-chemistry/{observation_id}":{"patch":{"tags":["observation"],"summary":"Update Water Chemistry Observation","description":"Update an existing water chemistry observation in the database.","operationId":"update_water_chemistry_observation_observation_water_chemistry__observation_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWaterChemistryObservation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["observation"],"summary":"Get water chemistry observation by ID","operationId":"get_water_chemistry_observation_by_id_observation_water_chemistry__observation_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/transducer-groundwater-level":{"get":{"tags":["observation"],"summary":"Get transducer groundwater level observations","operationId":"get_transducer_groundwater_level_observations_observation_transducer_groundwater_level_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"parameter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parameter Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_TransducerObservationWithBlockResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation":{"get":{"tags":["observation"],"summary":"Get all observations","operationId":"get_all_observations_observation_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sensor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"}},{"name":"sample_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ObservationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/observation/{observation_id}":{"get":{"tags":["observation"],"summary":"Get an observation by its ID","operationId":"get_observation_by_id_observation__observation_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["observation"],"summary":"Delete an observation","operationId":"delete_observation_observation__observation_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"observation_id","in":"path","required":true,"schema":{"type":"integer","title":"Observation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/publication/add":{"post":{"tags":["publication"],"summary":"Post Publication","description":"Add a new publication.","operationId":"post_publication_publication_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublication"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2AuthorizationCodeBearer":[]}]}},"/sample":{"post":{"tags":["sample"],"summary":"Add Sample","description":"Endpoint to add a sample.","operationId":"add_sample_sample_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSample"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sample"],"summary":"Get Samples","description":"Endpoint to retrieve samples.","operationId":"get_samples_sample_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SampleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sample/{sample_id}":{"patch":{"tags":["sample"],"summary":"Update Sample","description":"Endpoint to update a sample.","operationId":"update_sample_sample__sample_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sample_id","in":"path","required":true,"schema":{"type":"integer","title":"Sample Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSample"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SampleResponse"},{"$ref":"#/components/schemas/ResourceNotFoundResponse"}],"title":"Response Update Sample Sample Sample Id Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sample"],"summary":"Get Sample by ID","description":"Endpoint to retrieve a sample by its ID.","operationId":"get_sample_by_id_sample__sample_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sample_id","in":"path","required":true,"schema":{"type":"integer","title":"Sample Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SampleResponse"},{"$ref":"#/components/schemas/ResourceNotFoundResponse"}],"title":"Response Get Sample By Id Sample Sample Id Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sample"],"summary":"Delete Sample by ID","operationId":"delete_sample_by_id_sample__sample_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sample_id","in":"path","required":true,"schema":{"type":"integer","title":"Sample Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sensor":{"post":{"tags":["sensor"],"summary":"Add Sensor","description":"Add a sensor to the system.","operationId":"add_sensor_sensor_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSensor"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sensor"],"summary":"Get Sensors","description":"Retrieve all sensors from the system.\nThis endpoint is a placeholder and should be implemented with actual logic.","operationId":"get_sensors_sensor_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"type":"integer","title":"Thing Id"}},{"name":"parameter_id","in":"query","required":false,"schema":{"type":"integer","title":"Parameter Id"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SensorResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sensor/{sensor_id}":{"patch":{"tags":["sensor"],"summary":"Update Sensor","description":"Update a sensor in the system.","operationId":"update_sensor_sensor__sensor_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSensor"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sensor"],"summary":"Delete Sensor","description":"Delete a sensor in the system","operationId":"delete_sensor_sensor__sensor_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sensor"],"summary":"Get Sensor","description":"Retrieve a sensor by its ID.","operationId":"get_sensor_sensor__sensor_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sensor_id","in":"path","required":true,"schema":{"type":"integer","title":"Sensor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SensorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search":{"get":{"tags":["search"],"summary":"Search Api","description":"Search endpoint for the collaborative network.","operationId":"search_api_search_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/water-well":{"get":{"tags":["thing"],"summary":"Get all water wells","description":"Retrieve all wells from the database.","operationId":"get_water_wells_thing_water_well_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"name","in":"query","required":false,"schema":{"type":"string","title":"Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WellResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a water well","description":"Create a new water well in the database.","operationId":"create_well_thing_water_well_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWell"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/water-well/{thing_id}":{"get":{"tags":["thing"],"summary":"Get water well by ID","description":"Retrieve a water well by ID from the database.","operationId":"get_well_by_id_thing_water_well__thing_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["thing"],"summary":"Update well by parent thing ID","description":"Update an existing well by ID.","operationId":"update_water_well_thing_water_well__thing_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWell"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/water-well/{thing_id}/well-screen":{"get":{"tags":["thing"],"summary":"Get well screens by water well ID","description":"Retrieve all well screens for a specific water well by its ID.","operationId":"get_well_screens_by_well_id_thing_water_well__thing_id__well_screen_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WellScreenResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/well-screen":{"get":{"tags":["thing"],"summary":"Get well screens","description":"Retrieve all well screens from the database.","operationId":"get_well_screens_thing_well_screen_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"query","required":false,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WellScreenResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a new well screen","description":"Create a new well screen in the database.","operationId":"create_wellscreen_thing_well_screen_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWellScreen"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellScreenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/well-screen/{wellscreen_id}":{"get":{"tags":["thing"],"summary":"Get well screen by ID","description":"Retrieve a well screen by ID from the database.","operationId":"get_well_screen_by_id_thing_well_screen__wellscreen_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"wellscreen_id","in":"path","required":true,"schema":{"type":"integer","title":"Wellscreen Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellScreenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/spring":{"get":{"tags":["thing"],"summary":"Get all springs","description":"Retrieve all springs from the database.","operationId":"get_springs_thing_spring_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SpringResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a new spring","description":"Create a new well in the database.","operationId":"create_spring_thing_spring_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpring"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpringResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/spring/{thing_id}":{"get":{"tags":["thing"],"summary":"Get spring by ID","description":"Retrieve a spring by ID from the database.","operationId":"get_spring_by_id_thing_spring__thing_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpringResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["thing"],"summary":"Update spring by parent thing ID","description":"Update an existing spring by ID.","operationId":"update_spring_thing_spring__thing_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSpring"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpringResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/id-link":{"get":{"tags":["thing"],"summary":"Get all thing links","description":"Retrieve all thing links, optionally filtered and sorted.","operationId":"get_thing_id_links_thing_id_link_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ThingIdLinkResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["thing"],"summary":"Create a new thing link","description":"Create a new link between a thing and an alternate ID.","operationId":"create_thing_id_link_thing_id_link_post","security":[{"OAuth2AuthorizationCodeBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateThingIdLink"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingIdLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/id-link/{link_id}":{"get":{"tags":["thing"],"summary":"Get thing links by link ID","description":"Retrieve all links for a specific thing by its ID.","operationId":"get_thing_id_links_thing_id_link__link_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingIdLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["thing"],"summary":"Update thing link by ID","operationId":"update_thing_id_link_thing_id_link__link_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThingIdLink"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingIdLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["thing"],"summary":"Delete thing link by ID","description":"Delete a thing link by ID.","operationId":"delete_thing_id_link_thing_id_link__link_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing":{"get":{"tags":["thing"],"summary":"Get all things","description":"Retrieve all things or filter by type.","operationId":"get_things_thing_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"within","in":"query","required":false,"schema":{"type":"string","title":"Within"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","title":"Filter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ThingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/{thing_id}":{"get":{"tags":["thing"],"summary":"Get thing by ID","description":"Retrieve a thing by ID from the database.","operationId":"get_thing_by_id_thing__thing_id__get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["thing"],"summary":"Delete thing by ID","description":"Delete a thing by ID.","operationId":"delete_thing_thing__thing_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/{thing_id}/id-link":{"get":{"tags":["thing"],"summary":"Get thing links by thing ID","description":"Retrieve all links for a specific thing by its ID.","operationId":"get_thing_id_links_thing__thing_id__id_link_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ThingIdLinkResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/{thing_id}/deployment":{"get":{"tags":["thing"],"summary":"Get deployments by thing ID","description":"Retrieve all deployments for a specific thing by its ID.","operationId":"get_thing_deployments_thing__thing_id__deployment_get","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"thing_id","in":"path","required":true,"schema":{"type":"integer","title":"Thing Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":25,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_DeploymentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/thing/well-screen/{well_screen_id}":{"patch":{"tags":["thing"],"summary":"Update Well Screen by ID","operationId":"update_well_screen_thing_well_screen__well_screen_id__patch","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"well_screen_id","in":"path","required":true,"schema":{"type":"integer","title":"Well Screen Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWellScreen"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WellScreenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["thing"],"summary":"Delete well screen by ID","description":"Delete a well screen by ID.","operationId":"delete_well_screen_thing_well_screen__well_screen_id__delete","security":[{"OAuth2AuthorizationCodeBearer":[]}],"parameters":[{"name":"well_screen_id","in":"path","required":true,"schema":{"type":"integer","title":"Well Screen Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddressResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"contact_id":{"type":"integer","title":"Contact Id"},"address_line_1":{"type":"string","title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","title":"Country"},"address_type":{"$ref":"#/components/schemas/address_type"}},"type":"object","required":["id","created_at","release_status","contact_id","address_line_1","city","state","postal_code","country","address_type"],"title":"AddressResponse","description":"Response schema for address details."},"AssetResponse":{"properties":{"name":{"type":"string","title":"Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"storage_path":{"type":"string","title":"Storage Path"},"mime_type":{"type":"string","title":"Mime Type"},"size":{"type":"integer","title":"Size"},"uri":{"type":"string","title":"Uri"},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"storage_service":{"type":"string","title":"Storage Service"},"signed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Url"}},"type":"object","required":["name","storage_path","mime_type","size","uri","id","created_at","release_status","storage_service"],"title":"AssetResponse"},"AuthorResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"affiliation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation"}},"type":"object","required":["id","name"],"title":"AuthorResponse","description":"Schema for the response of an author."},"Body_upload_asset_asset_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_asset_asset_upload_post"},"ContactResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"role":{"$ref":"#/components/schemas/role"},"contact_type":{"$ref":"#/components/schemas/contact_type"},"emails":{"items":{"$ref":"#/components/schemas/EmailResponse"},"type":"array","title":"Emails","default":[]},"phones":{"items":{"$ref":"#/components/schemas/PhoneResponse"},"type":"array","title":"Phones","default":[]},"addresses":{"items":{"$ref":"#/components/schemas/AddressResponse"},"type":"array","title":"Addresses","default":[]},"things":{"items":{"$ref":"#/components/schemas/ThingResponse"},"type":"array","title":"Things","default":[]}},"type":"object","required":["id","created_at","release_status","name","organization","role","contact_type"],"title":"ContactResponse","description":"Response schema for contact details."},"CreateAddress":{"properties":{"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"address_line_1":{"type":"string","title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State","default":"NM"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","title":"Country","default":"United States"},"address_type":{"$ref":"#/components/schemas/address_type","default":"Primary"}},"type":"object","required":["address_line_1","city","postal_code"],"title":"CreateAddress","description":"Schema for creating an address."},"CreateAsset":{"properties":{"name":{"type":"string","title":"Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"storage_path":{"type":"string","title":"Storage Path"},"mime_type":{"type":"string","title":"Mime Type"},"size":{"type":"integer","title":"Size"},"uri":{"type":"string","title":"Uri"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"thing_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},"type":"object","required":["name","storage_path","mime_type","size","uri"],"title":"CreateAsset"},"CreateContact":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"thing_id":{"type":"integer","title":"Thing Id"},"role":{"$ref":"#/components/schemas/role"},"contact_type":{"$ref":"#/components/schemas/contact_type","default":"Primary"},"emails":{"anyOf":[{"items":{"$ref":"#/components/schemas/CreateEmail"},"type":"array"},{"type":"null"}],"title":"Emails"},"phones":{"anyOf":[{"items":{"$ref":"#/components/schemas/CreatePhone"},"type":"array"},{"type":"null"}],"title":"Phones"},"addresses":{"anyOf":[{"items":{"$ref":"#/components/schemas/CreateAddress"},"type":"array"},{"type":"null"}],"title":"Addresses"}},"type":"object","required":["thing_id","role"],"title":"CreateContact","description":"Schema for creating a contact."},"CreateEmail":{"properties":{"email":{"type":"string","title":"Email"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"email_type":{"$ref":"#/components/schemas/email_type","default":"Primary"}},"type":"object","required":["email"],"title":"CreateEmail","description":"Schema for creating an email."},"CreateGroundwaterLevelObservation":{"properties":{"parameter_id":{"type":"integer","title":"Parameter Id"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"type":"integer","title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"$ref":"#/components/schemas/unit"},{"type":"null"}]},"measuring_point_height":{"type":"number","title":"Measuring Point Height"},"groundwater_level_reason":{"type":"string","title":"Groundwater Level Reason"}},"type":"object","required":["parameter_id","observation_datetime","sample_id","sensor_id","value","unit","measuring_point_height","groundwater_level_reason"],"title":"CreateGroundwaterLevelObservation"},"CreateGroup":{"properties":{"project_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Area"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Group Id"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CreateGroup","description":"Schema for creating a group."},"CreateLexiconCategory":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"CreateLexiconCategory","description":"Pydantic model for creating a lexicon category.\nThis model can be extended to include additional fields as needed."},"CreateLexiconTerm":{"properties":{"term":{"type":"string","title":"Term"},"definition":{"type":"string","title":"Definition"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"}},"type":"object","required":["term","definition","categories"],"title":"CreateLexiconTerm","description":"Pydantic model for creating a lexicon term.\nThis model can be extended to include additional fields as needed."},"CreateLexiconTriple":{"properties":{"subject":{"$ref":"#/components/schemas/CreateLexiconTerm"},"predicate":{"type":"string","title":"Predicate"},"object_":{"$ref":"#/components/schemas/CreateLexiconTerm"}},"type":"object","required":["subject","predicate","object_"],"title":"CreateLexiconTriple","description":"Pydantic model for creating a triple.\nThis model can be extended to include additional fields as needed."},"CreateLocation":{"properties":{"point":{"type":"string","title":"Point"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"elevation":{"type":"number","title":"Elevation"},"elevation_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Accuracy"},"elevation_method":{"anyOf":[{"$ref":"#/components/schemas/elevation_method"},{"type":"null"}]},"coordinate_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coordinate Accuracy"},"coordinate_method":{"anyOf":[{"$ref":"#/components/schemas/coordinate_method"},{"type":"null"}]}},"type":"object","required":["point","elevation"],"title":"CreateLocation","description":"Schema for creating a sample location."},"CreatePhone":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"phone_type":{"$ref":"#/components/schemas/phone_type","default":"Primary"},"nma_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nma Phone Number"}},"type":"object","required":["phone_number"],"title":"CreatePhone","description":"Schema for creating a phone number."},"CreatePublication":{"properties":{"title":{"type":"string","title":"Title"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"year":{"type":"integer","title":"Year"},"doi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doi"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"publication_type":{"$ref":"#/components/schemas/publication_type"}},"type":"object","required":["title","authors","year","publication_type"],"title":"CreatePublication","description":"Schema for creating a new publication."},"CreateSample":{"properties":{"sample_date":{"type":"string","format":"date-time","title":"Sample Date"},"depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Top"},"depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Bottom"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"field_activity_id":{"type":"integer","title":"Field Activity Id"},"field_event_participant_id":{"type":"integer","title":"Field Event Participant Id"},"sample_name":{"type":"string","title":"Sample Name"},"sample_matrix":{"$ref":"#/components/schemas/sample_matrix"},"sample_method":{"$ref":"#/components/schemas/sample_method"},"qc_type":{"$ref":"#/components/schemas/qc_type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["sample_date","field_activity_id","field_event_participant_id","sample_name","sample_matrix","sample_method","qc_type"],"title":"CreateSample"},"CreateSensor":{"properties":{"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"name":{"type":"string","title":"Name"},"sensor_type":{"$ref":"#/components/schemas/sensor_type"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial No"},"pcn_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pcn Number"},"owner_agency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agency"},"sensor_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensor Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name","sensor_type"],"title":"CreateSensor","description":"Schema for creating a new sensor."},"CreateSpring":{"properties":{"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Id"},"name":{"type":"string","title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"$ref":"#/components/schemas/spring_type"},{"type":"null"}]}},"type":"object","required":["location_id","name"],"title":"CreateSpring","description":"Schema for creating a spring."},"CreateThingIdLink":{"properties":{"thing_id":{"type":"integer","title":"Thing Id"},"relation":{"type":"string","title":"Relation"},"alternate_id":{"type":"string","title":"Alternate Id"},"alternate_organization":{"type":"string","title":"Alternate Organization"}},"type":"object","required":["thing_id","relation","alternate_id","alternate_organization"],"title":"CreateThingIdLink","description":"Schema for creating a link between a thing and its ID."},"CreateWaterChemistryObservation":{"properties":{"parameter_id":{"type":"integer","title":"Parameter Id"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"type":"integer","title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"$ref":"#/components/schemas/unit"},{"type":"null"}]}},"type":"object","required":["parameter_id","observation_datetime","sample_id","sensor_id","value","unit"],"title":"CreateWaterChemistryObservation"},"CreateWell":{"properties":{"well_depth":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Well Depth","description":"Well depth in feet"},"hole_depth":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Hole Depth","description":"Hole depth in feet"},"well_casing_depth":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Well Casing Depth","description":"Well casing depth in feet"},"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Id"},"name":{"type":"string","title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"well_purposes":{"anyOf":[{"items":{"$ref":"#/components/schemas/well_purpose"},"type":"array"},{"type":"null"}],"title":"Well Purposes"},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"},"well_casing_diameter":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Well Casing Diameter","description":"Well casing diameter in inches"},"well_casing_materials":{"anyOf":[{"items":{"$ref":"#/components/schemas/casing_material"},"type":"array"},{"type":"null"}],"title":"Well Casing Materials"}},"type":"object","required":["location_id","name"],"title":"CreateWell","description":"Schema for creating a well."},"CreateWellScreen":{"properties":{"release_status":{"$ref":"#/components/schemas/release_status","default":"draft"},"thing_id":{"type":"integer","title":"Thing Id"},"screen_depth_bottom":{"type":"number","exclusiveMinimum":0.0,"title":"Screen Depth Bottom","description":"Screen depth bottom in feet"},"screen_depth_top":{"type":"number","exclusiveMinimum":0.0,"title":"Screen Depth Top","description":"Screen depth top in feet"},"screen_type":{"anyOf":[{"$ref":"#/components/schemas/screen_type"},{"type":"null"}]},"screen_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Description"}},"type":"object","required":["thing_id","screen_depth_bottom","screen_depth_top"],"title":"CreateWellScreen","description":"Schema for creating a well screen."},"DeploymentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"thing_id":{"type":"integer","title":"Thing Id"},"sensor":{"$ref":"#/components/schemas/SensorResponse"},"installation_date":{"type":"string","format":"date","title":"Installation Date"},"removal_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Removal Date"},"recording_interval":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Interval"},"recording_interval_units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Interval Units"},"hanging_cable_length":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hanging Cable Length"},"hanging_point_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hanging Point Height"},"hanging_point_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hanging Point Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","release_status","thing_id","sensor","installation_date","removal_date","recording_interval","recording_interval_units","hanging_cable_length","hanging_point_height","hanging_point_description","notes"],"title":"DeploymentResponse"},"EmailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"contact_id":{"type":"integer","title":"Contact Id"},"email":{"type":"string","title":"Email"},"email_type":{"$ref":"#/components/schemas/email_type"}},"type":"object","required":["id","created_at","release_status","contact_id","email","email_type"],"title":"EmailResponse","description":"Response schema for email details."},"Feature":{"properties":{"type":{"type":"string","title":"Type","default":"Feature"},"geometry":{"$ref":"#/components/schemas/GeoJSONGeometry"},"properties":{"additionalProperties":true,"type":"object","title":"Properties","default":{}}},"type":"object","required":["geometry"],"title":"Feature","description":"Feature schema for GeoJSON response."},"FeatureCollectionResponse":{"properties":{"type":{"type":"string","title":"Type","default":"FeatureCollection"},"features":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array","title":"Features","default":[]}},"type":"object","title":"FeatureCollectionResponse","description":"Response schema for GeoJSON FeatureCollection."},"FieldActivityResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"field_event_id":{"type":"integer","title":"Field Event Id"},"activity_type":{"$ref":"#/components/schemas/activity_type"}},"type":"object","required":["id","created_at","release_status","field_event_id","activity_type"],"title":"FieldActivityResponse"},"FieldEventResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"thing_id":{"type":"integer","title":"Thing Id"},"event_date":{"type":"string","format":"date-time","title":"Event Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","release_status","thing_id","event_date","notes"],"title":"FieldEventResponse"},"GeoJSONGeometry":{"properties":{"type":{"type":"string","title":"Type"},"coordinates":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},{"items":{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},"type":"array"},{"items":{"items":{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},"type":"array"},"type":"array"}],"title":"Coordinates"}},"type":"object","required":["type","coordinates"],"title":"GeoJSONGeometry","description":"Geometry schema for GeoJSON response."},"GroundwaterLevelObservationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"observation_datetime":{"type":"string","title":"Observation Datetime"},"parameter":{"$ref":"#/components/schemas/ParameterResponse"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"$ref":"#/components/schemas/unit"},"depth_to_water_bgs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth To Water Bgs"},"measuring_point_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Measuring Point Height"},"groundwater_level_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groundwater Level Reason"}},"type":"object","required":["id","created_at","release_status","sample_id","sensor_id","observation_datetime","parameter","value","unit","depth_to_water_bgs","measuring_point_height","groundwater_level_reason"],"title":"GroundwaterLevelObservationResponse"},"GroupResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"name":{"type":"string","title":"Name"},"project_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Area"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Group Id"}},"type":"object","required":["id","created_at","release_status","name","project_area","description","parent_group_id"],"title":"GroupResponse","description":"Pydantic model for the response of a group.\nThis model can be extended to include additional fields as needed."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LexiconCategoryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","created_at","name"],"title":"LexiconCategoryResponse","description":"Pydantic model for the response of a lexicon category.\nThis model can be extended to include additional fields as needed."},"LexiconTermResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"term":{"type":"string","title":"Term"},"definition":{"type":"string","title":"Definition"},"categories":{"items":{"$ref":"#/components/schemas/LexiconCategoryResponse"},"type":"array","title":"Categories","default":[]}},"type":"object","required":["id","created_at","term","definition"],"title":"LexiconTermResponse","description":"Pydantic model for the response of a lexicon term.\nThis model can be extended to include additional fields as needed."},"LexiconTripleResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"subject":{"type":"string","title":"Subject"},"predicate":{"type":"string","title":"Predicate"},"object_":{"type":"string","title":"Object"}},"type":"object","required":["id","created_at","subject","predicate","object_"],"title":"LexiconTripleResponse"},"LocationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"point":{"type":"string","title":"Point"},"elevation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation"},"horizontal_datum":{"type":"string","title":"Horizontal Datum","default":"WGS84"},"vertical_datum":{"type":"string","title":"Vertical Datum","default":"NAVD88"},"elevation_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Accuracy"},"elevation_method":{"anyOf":[{"$ref":"#/components/schemas/elevation_method"},{"type":"null"}]},"coordinate_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coordinate Accuracy"},"coordinate_method":{"anyOf":[{"$ref":"#/components/schemas/coordinate_method"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"},"quad_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quad Name"}},"type":"object","required":["id","created_at","release_status","notes","point","elevation","elevation_accuracy","elevation_method","coordinate_accuracy","coordinate_method","state","county","quad_name"],"title":"LocationResponse","description":"Response schema for sample location details."},"ObservationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"observation_datetime":{"type":"string","title":"Observation Datetime"},"parameter":{"$ref":"#/components/schemas/ParameterResponse"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"$ref":"#/components/schemas/unit"},"depth_to_water_bgs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth To Water Bgs"},"measuring_point_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Measuring Point Height"},"groundwater_level_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groundwater Level Reason"}},"type":"object","required":["id","created_at","release_status","sample_id","sensor_id","observation_datetime","parameter","value","unit","depth_to_water_bgs","measuring_point_height","groundwater_level_reason"],"title":"ObservationResponse","description":"Response model for observations.\nCombines groundwater level and geothermal observation responses."},"Page_AddressResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AddressResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AddressResponse]"},"Page_AssetResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AssetResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AssetResponse]"},"Page_ContactResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContactResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ContactResponse]"},"Page_DeploymentResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeploymentResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[DeploymentResponse]"},"Page_EmailResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EmailResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[EmailResponse]"},"Page_GroundwaterLevelObservationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GroundwaterLevelObservationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[GroundwaterLevelObservationResponse]"},"Page_GroupResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GroupResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[GroupResponse]"},"Page_LexiconCategoryResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LexiconCategoryResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LexiconCategoryResponse]"},"Page_LexiconTermResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LexiconTermResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LexiconTermResponse]"},"Page_LexiconTripleResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LexiconTripleResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LexiconTripleResponse]"},"Page_LocationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LocationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LocationResponse]"},"Page_ObservationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ObservationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ObservationResponse]"},"Page_PhoneResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PhoneResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[PhoneResponse]"},"Page_SampleResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SampleResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[SampleResponse]"},"Page_SensorResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SensorResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[SensorResponse]"},"Page_SpringResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SpringResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[SpringResponse]"},"Page_ThingIdLinkResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ThingIdLinkResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ThingIdLinkResponse]"},"Page_ThingResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ThingResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ThingResponse]"},"Page_TransducerObservationWithBlockResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TransducerObservationWithBlockResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[TransducerObservationWithBlockResponse]"},"Page_WaterChemistryObservationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WaterChemistryObservationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WaterChemistryObservationResponse]"},"Page_WellResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WellResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WellResponse]"},"Page_WellScreenResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WellScreenResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WellScreenResponse]"},"Page_dict_":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[dict]"},"ParameterResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"parameter_name":{"$ref":"#/components/schemas/parameter_name"},"matrix":{"type":"string","title":"Matrix"},"parameter_type":{"anyOf":[{"$ref":"#/components/schemas/parameter_type"},{"type":"null"}]},"cas_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cas Number"},"default_unit":{"anyOf":[{"$ref":"#/components/schemas/unit"},{"type":"null"}]}},"type":"object","required":["id","created_at","release_status","parameter_name","matrix","parameter_type","cas_number","default_unit"],"title":"ParameterResponse","description":"Pydantic model for the response of a parameter.\nThis model can be extended to include additional fields as needed."},"PhoneResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"contact_id":{"type":"integer","title":"Contact Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"phone_type":{"type":"string","title":"Phone Type"},"nma_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nma Phone Number"}},"type":"object","required":["id","created_at","release_status","contact_id","phone_type"],"title":"PhoneResponse","description":"Response schema for phone details."},"PublicationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","title":"Title"},"authors":{"items":{"$ref":"#/components/schemas/AuthorResponse"},"type":"array","title":"Authors"},"year":{"type":"integer","title":"Year"},"doi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doi"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"publication_type":{"$ref":"#/components/schemas/publication_type"}},"type":"object","required":["id","title","authors","year","publication_type"],"title":"PublicationResponse","description":"Schema for the response of a publication."},"ResourceNotFoundResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ResourceNotFoundResponse"},"SampleResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"thing":{"$ref":"#/components/schemas/ThingResponse"},"field_event":{"$ref":"#/components/schemas/FieldEventResponse"},"field_activity":{"$ref":"#/components/schemas/FieldActivityResponse"},"contact":{"$ref":"#/components/schemas/ContactResponse"},"sample_date":{"type":"string","title":"Sample Date"},"sample_name":{"type":"string","title":"Sample Name"},"sample_matrix":{"$ref":"#/components/schemas/sample_matrix"},"sample_method":{"$ref":"#/components/schemas/sample_method"},"qc_type":{"$ref":"#/components/schemas/qc_type"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Top"},"depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Bottom"}},"type":"object","required":["id","created_at","release_status","thing","field_event","field_activity","contact","sample_date","sample_name","sample_matrix","sample_method","qc_type","notes","depth_top","depth_bottom"],"title":"SampleResponse","description":"Developer's note\n\nThe frontend uses multiple fields for a thing, field_even, and field_activity,\nwhich is why full ThingResponse, FieldEventResponse, and FieldActivityResponse\nare returned. If the response becomes too large and slow, we can use\n.model_dump() and exlude fields to reduce the size."},"SensorResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"name":{"type":"string","title":"Name"},"sensor_type":{"$ref":"#/components/schemas/sensor_type"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial No"},"pcn_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pcn Number"},"owner_agency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agency"},"sensor_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensor Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","created_at","release_status","name","sensor_type","model","serial_no","pcn_number","owner_agency","sensor_status","notes"],"title":"SensorResponse"},"SpringResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"name":{"type":"string","title":"Name"},"thing_type":{"type":"string","title":"Thing Type"},"current_location":{"anyOf":[{"$ref":"#/components/schemas/LocationResponse"},{"type":"null"}]},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spring Type"}},"type":"object","required":["id","created_at","release_status","name","thing_type","current_location","first_visit_date"],"title":"SpringResponse","description":"Response schema for spring details."},"ThingIdLinkResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"thing_id":{"type":"integer","title":"Thing Id"},"thing":{"$ref":"#/components/schemas/ThingResponse"},"relation":{"type":"string","title":"Relation"},"alternate_id":{"type":"string","title":"Alternate Id"},"alternate_organization":{"type":"string","title":"Alternate Organization"}},"type":"object","required":["id","created_at","release_status","thing_id","thing","relation","alternate_id","alternate_organization"],"title":"ThingIdLinkResponse"},"ThingResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"name":{"type":"string","title":"Name"},"thing_type":{"type":"string","title":"Thing Type"},"current_location":{"anyOf":[{"$ref":"#/components/schemas/LocationResponse"},{"type":"null"}]},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spring Type"},"well_purposes":{"items":{"$ref":"#/components/schemas/well_purpose"},"type":"array","title":"Well Purposes","default":[]},"well_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Depth"},"well_depth_unit":{"type":"string","title":"Well Depth Unit","default":"ft"},"hole_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hole Depth"},"hole_depth_unit":{"type":"string","title":"Hole Depth Unit","default":"ft"},"well_casing_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Diameter"},"well_casing_diameter_unit":{"type":"string","title":"Well Casing Diameter Unit","default":"in"},"well_casing_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Depth"},"well_casing_depth_unit":{"type":"string","title":"Well Casing Depth Unit","default":"ft"},"well_casing_materials":{"items":{"$ref":"#/components/schemas/casing_material"},"type":"array","title":"Well Casing Materials","default":[]},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"}},"type":"object","required":["id","created_at","release_status","name","thing_type","current_location","first_visit_date"],"title":"ThingResponse"},"TransducerObservationBlockResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"review_status":{"$ref":"#/components/schemas/review_status"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"parameter_id":{"type":"integer","title":"Parameter Id"}},"type":"object","required":["id","created_at","release_status","review_status","start_datetime","end_datetime","parameter_id"],"title":"TransducerObservationBlockResponse"},"TransducerObservationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"value":{"type":"number","title":"Value"},"observation_datetime":{"type":"string","format":"date-time","title":"Observation Datetime"},"parameter_id":{"type":"integer","title":"Parameter Id"},"deployment_id":{"type":"integer","title":"Deployment Id"}},"type":"object","required":["id","created_at","release_status","value","observation_datetime","parameter_id","deployment_id"],"title":"TransducerObservationResponse"},"TransducerObservationWithBlockResponse":{"properties":{"observation":{"$ref":"#/components/schemas/TransducerObservationResponse"},"block":{"$ref":"#/components/schemas/TransducerObservationBlockResponse"}},"type":"object","required":["observation","block"],"title":"TransducerObservationWithBlockResponse"},"UpdateAddress":{"properties":{"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"address_type":{"anyOf":[{"$ref":"#/components/schemas/address_type"},{"type":"null"}]}},"type":"object","title":"UpdateAddress","description":"Schema for updating address information."},"UpdateAsset":{"properties":{"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"UpdateAsset"},"UpdateContact":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"role":{"anyOf":[{"$ref":"#/components/schemas/role"},{"type":"null"}]},"contact_type":{"anyOf":[{"$ref":"#/components/schemas/contact_type"},{"type":"null"}]},"thing_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thing Id"}},"type":"object","title":"UpdateContact","description":"Schema for updating contact information."},"UpdateEmail":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"email_type":{"anyOf":[{"$ref":"#/components/schemas/email_type"},{"type":"null"}]}},"type":"object","title":"UpdateEmail","description":"Schema for updating email information."},"UpdateGroundwaterLevelObservation":{"properties":{"parameter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parameter Id"},"observation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observation Datetime"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"sample_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"$ref":"#/components/schemas/unit"},{"type":"null"}]},"measuring_point_height":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Measuring Point Height"},"groundwater_level_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groundwater Level Reason"}},"type":"object","title":"UpdateGroundwaterLevelObservation"},"UpdateGroup":{"properties":{"project_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Area"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_group_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Group Id"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"UpdateGroup","description":"Pydantic model for updating a group.\nThis model can be extended to include additional fields as needed."},"UpdateLexiconCategory":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateLexiconCategory"},"UpdateLexiconTerm":{"properties":{"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition"}},"type":"object","title":"UpdateLexiconTerm"},"UpdateLexiconTriple":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"predicate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predicate"},"object_":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object"}},"type":"object","title":"UpdateLexiconTriple"},"UpdateLocation":{"properties":{"point":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Point"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"elevation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation"},"elevation_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Accuracy"},"elevation_method":{"anyOf":[{"$ref":"#/components/schemas/elevation_method"},{"type":"null"}]},"coordinate_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coordinate Accuracy"},"coordinate_method":{"anyOf":[{"$ref":"#/components/schemas/coordinate_method"},{"type":"null"}]}},"type":"object","title":"UpdateLocation","description":"Schema for updating a location."},"UpdatePhone":{"properties":{"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"phone_type":{"anyOf":[{"$ref":"#/components/schemas/phone_type"},{"type":"null"}]}},"type":"object","title":"UpdatePhone","description":"Schema for updating phone information."},"UpdateSample":{"properties":{"sample_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sample Date"},"depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Top"},"depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Bottom"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"field_activity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Field Activity Id"},"field_event_participant_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Field Event Participant Id"},"sample_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Name"},"sample_matrix":{"anyOf":[{"$ref":"#/components/schemas/sample_matrix"},{"type":"null"}]},"sample_method":{"anyOf":[{"$ref":"#/components/schemas/sample_method"},{"type":"null"}]},"qc_type":{"anyOf":[{"$ref":"#/components/schemas/qc_type"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"UpdateSample"},"UpdateSensor":{"properties":{"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"sensor_type":{"anyOf":[{"$ref":"#/components/schemas/sensor_type"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial No"},"pcn_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pcn Number"},"owner_agency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Agency"},"sensor_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensor Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"UpdateSensor"},"UpdateSpring":{"properties":{"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"spring_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spring Type"}},"type":"object","title":"UpdateSpring"},"UpdateThingIdLink":{"properties":{"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"alternate_organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternate Organization"},"alternate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternate Id"},"relation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relation"}},"type":"object","title":"UpdateThingIdLink"},"UpdateWaterChemistryObservation":{"properties":{"parameter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parameter Id"},"observation_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observation Datetime"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"sample_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"$ref":"#/components/schemas/unit"},{"type":"null"}]}},"type":"object","title":"UpdateWaterChemistryObservation"},"UpdateWell":{"properties":{"well_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Depth"},"hole_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hole Depth"},"well_casing_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Depth"},"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"well_purposes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Well Purposes"},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"},"well_casing_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Diameter"},"well_casing_materials":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Well Casing Materials"}},"type":"object","title":"UpdateWell"},"UpdateWellScreen":{"properties":{"release_status":{"anyOf":[{"$ref":"#/components/schemas/release_status"},{"type":"null"}]},"screen_depth_bottom":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Screen Depth Bottom"},"screen_depth_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Screen Depth Top"},"screen_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Description"},"screen_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Type"}},"type":"object","title":"UpdateWellScreen"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WaterChemistryObservationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"sample_id":{"type":"integer","title":"Sample Id"},"sensor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sensor Id"},"observation_datetime":{"type":"string","title":"Observation Datetime"},"parameter":{"$ref":"#/components/schemas/ParameterResponse"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"$ref":"#/components/schemas/unit"}},"type":"object","required":["id","created_at","release_status","sample_id","sensor_id","observation_datetime","parameter","value","unit"],"title":"WaterChemistryObservationResponse"},"WellResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"name":{"type":"string","title":"Name"},"thing_type":{"type":"string","title":"Thing Type"},"current_location":{"anyOf":[{"$ref":"#/components/schemas/LocationResponse"},{"type":"null"}]},"first_visit_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Visit Date"},"well_purposes":{"items":{"$ref":"#/components/schemas/well_purpose"},"type":"array","title":"Well Purposes","default":[]},"well_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Depth"},"well_depth_unit":{"type":"string","title":"Well Depth Unit","default":"ft"},"hole_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hole Depth"},"hole_depth_unit":{"type":"string","title":"Hole Depth Unit","default":"ft"},"well_casing_diameter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Diameter"},"well_casing_diameter_unit":{"type":"string","title":"Well Casing Diameter Unit","default":"in"},"well_casing_depth":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Well Casing Depth"},"well_casing_depth_unit":{"type":"string","title":"Well Casing Depth Unit","default":"ft"},"well_casing_materials":{"items":{"$ref":"#/components/schemas/casing_material"},"type":"array","title":"Well Casing Materials","default":[]},"well_construction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Well Construction Notes"}},"type":"object","required":["id","created_at","release_status","name","thing_type","current_location","first_visit_date"],"title":"WellResponse","description":"Response schema for well details."},"WellScreenResponse":{"properties":{"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","title":"Created At"},"release_status":{"$ref":"#/components/schemas/release_status"},"thing_id":{"type":"integer","title":"Thing Id"},"thing":{"$ref":"#/components/schemas/WellResponse"},"screen_depth_bottom":{"type":"number","title":"Screen Depth Bottom"},"screen_depth_bottom_unit":{"type":"string","title":"Screen Depth Bottom Unit","default":"ft"},"screen_depth_top":{"type":"number","title":"Screen Depth Top"},"screen_depth_top_unit":{"type":"string","title":"Screen Depth Top Unit","default":"ft"},"screen_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Type"},"screen_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Description"}},"type":"object","required":["id","created_at","release_status","thing_id","thing","screen_depth_bottom","screen_depth_top"],"title":"WellScreenResponse","description":"Response schema for well screen details."},"activity_type":{"type":"string","enum":["groundwater level","water chemistry"],"title":"activity_type"},"address_type":{"type":"string","enum":["Primary","Work","Personal","Mailing","Physical"],"title":"address_type"},"casing_material":{"type":"string","enum":["PVC","Steel","Concrete"],"title":"casing_material"},"contact_type":{"type":"string","enum":["Primary","Secondary","Field Event Participant"],"title":"contact_type"},"coordinate_method":{"type":"string","enum":["Unknown","Differentially corrected GPS","Survey-grade global positioning system (SGPS)","GPS, uncorrected","Interpolated from map","Interpolated from DEM","Reported","Transit, theodolite, or other survey method"],"title":"coordinate_method"},"elevation_method":{"type":"string","enum":["Altimeter","Differentially corrected GPS","Survey-grade GPS","Global positioning system (GPS)","LiDAR DEM","Level or other survey method","Interpolated from topographic map","Interpolated from digital elevation model (DEM)","Reported","Survey-grade Global Navigation Satellite Sys, Lvl1","USGS National Elevation Dataset (NED)","Unknown"],"title":"elevation_method"},"email_type":{"type":"string","enum":["Primary","Work","Personal"],"title":"email_type"},"parameter_name":{"type":"string","enum":["groundwater level","temperature","pH","Alkalinity, Total","Alkalinity as CaCO3","Alkalinity as OH-","Calcium","Calcium, total, unfiltered","Chloride","Carbonate","Conductivity, laboratory","Bicarbonate","Hardness (CaCO3)","Ion Balance","Potassium","Potassium, total, unfiltered","Magnesium","Magnesium, total, unfiltered","Sodium","Sodium, total, unfiltered","Sodium and Potassium combined","Sulfate","Total Anions","Total Cations","Total Dissolved Solids","Tritium","Age of Water using dissolved gases","Silver","Silver, total, unfiltered","Aluminum","Aluminum, total, unfiltered","Arsenic","Arsenic, total, unfiltered","Boron","Boron, total, unfiltered","Barium","Barium, total, unfiltered","Beryllium","Beryllium, total, unfiltered","Bromide","13C:12C ratio","14C content, pmc","Uncorrected C14 age","Cadmium","Cadmium, total, unfiltered","Chlorofluorocarbon-11 avg age","Chlorofluorocarbon-113 avg age","Chlorofluorocarbon-113/12 avg RATIO age","Chlorofluorocarbon-12 avg age","Cobalt","Cobalt, total, unfiltered","Chromium","Chromium, total, unfiltered","Copper","Copper, total, unfiltered","delta O18 sulfate","Sulfate 34 isotope ratio","Fluoride","Iron","Iron, total, unfiltered","Deuterium:Hydrogen ratio","Mercury","Mercury, total, unfiltered","Lithium","Lithium, total, unfiltered","Manganese","Manganese, total, unfiltered","Molybdenum","Molybdenum, total, unfiltered","Nickel","Nickel, total, unfiltered","Nitrite (as NO2)","Nitrite (as N)","Nitrate (as NO3)","Nitrate (as N)","18O:16O ratio","Lead","Lead, total, unfiltered","Phosphate","Antimony","Antimony, total, unfiltered","Selenium","Selenium, total, unfiltered","Sulfur hexafluoride","Silicon","Silicon, total, unfiltered","Silica","Tin","Tin, total, unfiltered","Strontium","Strontium, total, unfiltered","Strontium 87:86 ratio","Thorium","Thorium, total, unfiltered","Titanium","Titanium, total, unfiltered","Thallium","Thallium, total, unfiltered","Uranium (total, by ICP-MS)","Uranium, total, unfiltered","Vanadium","Vanadium, total, unfiltered","Zinc","Zinc, total, unfiltered","Corrected C14 in years","Arsenite (arsenic species)","Arsenate (arsenic species)","Cyanide","Estimated recharge temperature","Hydrogen sulfide","Ammonia","Ammonium","Total nitrogen","Total Kjeldahl nitrogen","Dissolved organic carbon","Total organic carbon","delta C13 of dissolved inorganic carbon"],"title":"parameter_name"},"parameter_type":{"type":"string","enum":["Field Parameter","Metal","Radionuclide","Major Element","Minor Element","Physical property"],"title":"parameter_type"},"phone_type":{"type":"string","enum":["Primary","Work","Home","Mobile"],"title":"phone_type"},"publication_type":{"type":"string","enum":["Map","Report","Dataset","Model","Software","Paper","Thesis","Book","Conference","Webpage"],"title":"publication_type"},"qc_type":{"type":"string","enum":["Normal","Duplicate","Split","Field Blank","Trip Blank","Equipment Blank"],"title":"qc_type"},"release_status":{"type":"string","enum":["draft","provisional","final","published","archived","public","private"],"title":"release_status"},"review_status":{"type":"string","enum":["approved","not reviewed"],"title":"review_status"},"role":{"type":"string","enum":["Unknown","Owner","Manager","Operator","Driller","Geologist","Hydrologist","Hydrogeologist","Engineer","Organization","Specialist","Technician","Research Assistant","Research Scientist","Graduate Student","Biologist","Lab Manager","Publications Manager","Software Developer"],"title":"role"},"sample_matrix":{"type":"string","enum":["water","groundwater","soil"],"title":"sample_matrix"},"sample_method":{"type":"string","enum":["Unknown","Airline measurement","Analog or graphic recorder","Calibrated airline measurement","Differential GPS; especially applicable to surface expression of ground water","Estimated","Transducer","Pressure-gage measurement","Calibrated pressure-gage measurement","Interpreted from geophysical logs","Manometer","Non-recording gage","Observed (required for F, N, and W water level status)","Sonic water level meter (acoustic pulse)","Reported, method not known","Steel-tape measurement","Electric tape measurement (E-probe)","Unknown (for legacy data only; not for new data entry)","Calibrated electric tape; accuracy of equipment has been checked","Calibrated electric cable","Uncalibrated electric cable","Continuous acoustic sounder","Measurement not attempted","null placeholder","bailer","faucet at well head","faucet or outlet at house","grab sample","pump","thief sampler"],"title":"sample_method"},"screen_type":{"type":"string","enum":["PVC","Steel","Concrete"],"title":"screen_type"},"sensor_type":{"type":"string","enum":["Pressure Transducer","Data Logger","Barometer","Acoustic Sounder","Precip Collector","Camera","Soil Moisture Sensor","Tipping Bucket"],"title":"sensor_type"},"spring_type":{"type":"string","enum":["Artesian","Ephemeral","Perennial","Thermal","Mineral"],"title":"spring_type"},"unit":{"type":"string","enum":["dimensionless","ft","ftbgs","F","mg/L","mW/m²","W/m²","W/m·K","m²/s","deg C","deg second","deg minute","second","minute","hour"],"title":"unit"},"well_purpose":{"type":"string","enum":["Unknown","Open, unequipped well","Commercial","Domestic","Power generation","Irrigation","Livestock","Mining","Industrial","Observation","Public supply","Shared domestic","Institutional","Unused","Exploration","Monitoring","Production","Injection"],"title":"well_purpose"}},"securitySchemes":{"OAuth2AuthorizationCodeBearer":{"type":"oauth2","flows":{"authorizationCode":{"scopes":{"openid":"openid","offline_access":"offline_access"},"authorizationUrl":"https://authentik.newmexicowaterdata.org/application/o/authorize/","tokenUrl":"https://authentik.newmexicowaterdata.org/application/o/token/"}}}}}} \ No newline at end of file diff --git a/src/generated/types.gen.ts b/src/generated/types.gen.ts index 87bf76ba..8eef71be 100644 --- a/src/generated/types.gen.ts +++ b/src/generated/types.gen.ts @@ -5,350 +5,350 @@ * Response schema for address details. */ export type AddressResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Contact Id - */ - contact_id: number; - /** - * Address Line 1 - */ - address_line_1: string; - /** - * Address Line 2 - */ - address_line_2?: string | null; - /** - * City - */ - city: string; - /** - * State - */ - state: string; - /** - * Postal Code - */ - postal_code: string; - /** - * Country - */ - country: string; - address_type: AddressType; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Contact Id + */ + contact_id: number + /** + * Address Line 1 + */ + address_line_1: string + /** + * Address Line 2 + */ + address_line_2?: string | null + /** + * City + */ + city: string + /** + * State + */ + state: string + /** + * Postal Code + */ + postal_code: string + /** + * Country + */ + country: string + address_type: AddressType +} /** * AssetResponse */ export type AssetResponse = { - /** - * Name - */ - name: string; - /** - * Label - */ - label?: string | null; - /** - * Storage Path - */ - storage_path: string; - /** - * Mime Type - */ - mime_type: string; - /** - * Size - */ - size: number; - /** - * Uri - */ - uri: string; - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Storage Service - */ - storage_service: string; - /** - * Signed Url - */ - signed_url?: string | null; -}; + /** + * Name + */ + name: string + /** + * Label + */ + label?: string | null + /** + * Storage Path + */ + storage_path: string + /** + * Mime Type + */ + mime_type: string + /** + * Size + */ + size: number + /** + * Uri + */ + uri: string + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Storage Service + */ + storage_service: string + /** + * Signed Url + */ + signed_url?: string | null +} /** * AuthorResponse * Schema for the response of an author. */ export type AuthorResponse = { - /** - * Id - */ - id: number; - /** - * Name - */ - name: string; - /** - * Email - */ - email?: string | null; - /** - * Affiliation - */ - affiliation?: string | null; -}; + /** + * Id + */ + id: number + /** + * Name + */ + name: string + /** + * Email + */ + email?: string | null + /** + * Affiliation + */ + affiliation?: string | null +} /** * Body_upload_asset_asset_upload_post */ export type BodyUploadAssetAssetUploadPost = { - /** - * File - */ - file: Blob | File; -}; + /** + * File + */ + file: Blob | File +} /** * ContactResponse * Response schema for contact details. */ export type ContactResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Name - */ - name: string | null; - /** - * Organization - */ - organization: string | null; - role: Role; - contact_type: ContactType; - /** - * Emails - */ - emails?: Array; - /** - * Phones - */ - phones?: Array; - /** - * Addresses - */ - addresses?: Array; - /** - * Things - */ - things?: Array; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Name + */ + name: string | null + /** + * Organization + */ + organization: string | null + role: Role + contact_type: ContactType + /** + * Emails + */ + emails?: Array + /** + * Phones + */ + phones?: Array + /** + * Addresses + */ + addresses?: Array + /** + * Things + */ + things?: Array +} /** * CreateAddress * Schema for creating an address. */ export type CreateAddress = { - release_status?: ReleaseStatus; - /** - * Contact Id - */ - contact_id?: number | null; - /** - * Address Line 1 - */ - address_line_1: string; - /** - * Address Line 2 - */ - address_line_2?: string | null; - /** - * City - */ - city: string; - /** - * State - */ - state?: string; - /** - * Postal Code - */ - postal_code: string; - /** - * Country - */ - country?: string; - address_type?: AddressType; -}; + release_status?: ReleaseStatus + /** + * Contact Id + */ + contact_id?: number | null + /** + * Address Line 1 + */ + address_line_1: string + /** + * Address Line 2 + */ + address_line_2?: string | null + /** + * City + */ + city: string + /** + * State + */ + state?: string + /** + * Postal Code + */ + postal_code: string + /** + * Country + */ + country?: string + address_type?: AddressType +} /** * CreateAsset */ export type CreateAsset = { - /** - * Name - */ - name: string; - /** - * Label - */ - label?: string | null; - /** - * Storage Path - */ - storage_path: string; - /** - * Mime Type - */ - mime_type: string; - /** - * Size - */ - size: number; - /** - * Uri - */ - uri: string; - release_status?: ReleaseStatus; - /** - * Thing Id - */ - thing_id?: number | null; -}; + /** + * Name + */ + name: string + /** + * Label + */ + label?: string | null + /** + * Storage Path + */ + storage_path: string + /** + * Mime Type + */ + mime_type: string + /** + * Size + */ + size: number + /** + * Uri + */ + uri: string + release_status?: ReleaseStatus + /** + * Thing Id + */ + thing_id?: number | null +} /** * CreateContact * Schema for creating a contact. */ export type CreateContact = { - /** - * Name - */ - name?: string | null; - /** - * Organization - */ - organization?: string | null; - release_status?: ReleaseStatus; - /** - * Thing Id - */ - thing_id: number; - role: Role; - contact_type?: ContactType; - /** - * Emails - */ - emails?: Array | null; - /** - * Phones - */ - phones?: Array | null; - /** - * Addresses - */ - addresses?: Array | null; -}; + /** + * Name + */ + name?: string | null + /** + * Organization + */ + organization?: string | null + release_status?: ReleaseStatus + /** + * Thing Id + */ + thing_id: number + role: Role + contact_type?: ContactType + /** + * Emails + */ + emails?: Array | null + /** + * Phones + */ + phones?: Array | null + /** + * Addresses + */ + addresses?: Array | null +} /** * CreateEmail * Schema for creating an email. */ export type CreateEmail = { - /** - * Email - */ - email: string; - release_status?: ReleaseStatus; - /** - * Contact Id - */ - contact_id?: number | null; - email_type?: EmailType; -}; + /** + * Email + */ + email: string + release_status?: ReleaseStatus + /** + * Contact Id + */ + contact_id?: number | null + email_type?: EmailType +} /** * CreateGroundwaterLevelObservation */ export type CreateGroundwaterLevelObservation = { - /** - * Parameter Id - */ - parameter_id: number; - /** - * Observation Datetime - */ - observation_datetime: string; - release_status?: ReleaseStatus; - /** - * Sample Id - */ - sample_id: number; - /** - * Sensor Id - */ - sensor_id: number; - /** - * Value - */ - value: number | null; - unit: Unit | null; - /** - * Measuring Point Height - */ - measuring_point_height: number; - /** - * Groundwater Level Reason - */ - groundwater_level_reason: string; -}; + /** + * Parameter Id + */ + parameter_id: number + /** + * Observation Datetime + */ + observation_datetime: string + release_status?: ReleaseStatus + /** + * Sample Id + */ + sample_id: number + /** + * Sensor Id + */ + sensor_id: number + /** + * Value + */ + value: number | null + unit: Unit | null + /** + * Measuring Point Height + */ + measuring_point_height: number + /** + * Groundwater Level Reason + */ + groundwater_level_reason: string +} /** * CreateGroup * Schema for creating a group. */ export type CreateGroup = { - /** - * Project Area - */ - project_area?: string | null; - /** - * Description - */ - description?: string | null; - /** - * Parent Group Id - */ - parent_group_id?: number | null; - release_status?: ReleaseStatus; - /** - * Name - */ - name: string; -}; + /** + * Project Area + */ + project_area?: string | null + /** + * Description + */ + description?: string | null + /** + * Parent Group Id + */ + parent_group_id?: number | null + release_status?: ReleaseStatus + /** + * Name + */ + name: string +} /** * CreateLexiconCategory @@ -356,15 +356,15 @@ export type CreateGroup = { * This model can be extended to include additional fields as needed. */ export type CreateLexiconCategory = { - /** - * Name - */ - name: string; - /** - * Description - */ - description?: string | null; -}; + /** + * Name + */ + name: string + /** + * Description + */ + description?: string | null +} /** * CreateLexiconTerm @@ -372,19 +372,19 @@ export type CreateLexiconCategory = { * This model can be extended to include additional fields as needed. */ export type CreateLexiconTerm = { - /** - * Term - */ - term: string; - /** - * Definition - */ - definition: string; - /** - * Categories - */ - categories: Array; -}; + /** + * Term + */ + term: string + /** + * Definition + */ + definition: string + /** + * Categories + */ + categories: Array +} /** * CreateLexiconTriple @@ -392,546 +392,547 @@ export type CreateLexiconTerm = { * This model can be extended to include additional fields as needed. */ export type CreateLexiconTriple = { - subject: CreateLexiconTerm; - /** - * Predicate - */ - predicate: string; - object_: CreateLexiconTerm; -}; + subject: CreateLexiconTerm + /** + * Predicate + */ + predicate: string + object_: CreateLexiconTerm +} /** * CreateLocation * Schema for creating a sample location. */ export type CreateLocation = { - /** - * Point - */ - point: string; - release_status?: ReleaseStatus; - /** - * Notes - */ - notes?: string | null; - /** - * Elevation - */ - elevation: number; - /** - * Elevation Accuracy - */ - elevation_accuracy?: number | null; - elevation_method?: ElevationMethod | null; - /** - * Coordinate Accuracy - */ - coordinate_accuracy?: number | null; - coordinate_method?: CoordinateMethod | null; -}; + /** + * Point + */ + point: string + release_status?: ReleaseStatus + /** + * Notes + */ + notes?: string | null + /** + * Elevation + */ + elevation: number + /** + * Elevation Accuracy + */ + elevation_accuracy?: number | null + elevation_method?: ElevationMethod | null + /** + * Coordinate Accuracy + */ + coordinate_accuracy?: number | null + coordinate_method?: CoordinateMethod | null +} /** * CreatePhone * Schema for creating a phone number. */ export type CreatePhone = { - /** - * Phone Number - */ - phone_number: string; - release_status?: ReleaseStatus; - /** - * Contact Id - */ - contact_id?: number | null; - phone_type?: PhoneType; - /** - * Nma Phone Number - */ - nma_phone_number?: string | null; -}; + /** + * Phone Number + */ + phone_number: string + release_status?: ReleaseStatus + /** + * Contact Id + */ + contact_id?: number | null + phone_type?: PhoneType + /** + * Nma Phone Number + */ + nma_phone_number?: string | null +} /** * CreatePublication * Schema for creating a new publication. */ export type CreatePublication = { - /** - * Title - */ - title: string; - /** - * Authors - */ - authors: Array; - /** - * Year - */ - year: number; - /** - * Doi - */ - doi?: string | null; - /** - * Url - */ - url?: string | null; - publication_type: PublicationType; -}; + /** + * Title + */ + title: string + /** + * Authors + */ + authors: Array + /** + * Year + */ + year: number + /** + * Doi + */ + doi?: string | null + /** + * Url + */ + url?: string | null + publication_type: PublicationType +} /** * CreateSample */ export type CreateSample = { - /** - * Sample Date - */ - sample_date: string; - /** - * Depth Top - */ - depth_top?: number | null; - /** - * Depth Bottom - */ - depth_bottom?: number | null; - release_status?: ReleaseStatus; - /** - * Field Activity Id - */ - field_activity_id: number; - /** - * Field Event Participant Id - */ - field_event_participant_id: number; - /** - * Sample Name - */ - sample_name: string; - sample_matrix: SampleMatrix; - sample_method: SampleMethod; - qc_type: QcType; - /** - * Notes - */ - notes?: string | null; -}; + /** + * Sample Date + */ + sample_date: string + /** + * Depth Top + */ + depth_top?: number | null + /** + * Depth Bottom + */ + depth_bottom?: number | null + release_status?: ReleaseStatus + /** + * Field Activity Id + */ + field_activity_id: number + /** + * Field Event Participant Id + */ + field_event_participant_id: number + /** + * Sample Name + */ + sample_name: string + sample_matrix: SampleMatrix + sample_method: SampleMethod + qc_type: QcType + /** + * Notes + */ + notes?: string | null +} /** * CreateSensor * Schema for creating a new sensor. */ export type CreateSensor = { - release_status?: ReleaseStatus; - /** - * Name - */ - name: string; - sensor_type: SensorType; - /** - * Model - */ - model?: string | null; - /** - * Serial No - */ - serial_no?: string | null; - /** - * Pcn Number - */ - pcn_number?: string | null; - /** - * Owner Agency - */ - owner_agency?: string | null; - /** - * Sensor Status - */ - sensor_status?: string | null; - /** - * Notes - */ - notes?: string | null; -}; + release_status?: ReleaseStatus + /** + * Name + */ + name: string + sensor_type: SensorType + /** + * Model + */ + model?: string | null + /** + * Serial No + */ + serial_no?: string | null + /** + * Pcn Number + */ + pcn_number?: string | null + /** + * Owner Agency + */ + owner_agency?: string | null + /** + * Sensor Status + */ + sensor_status?: string | null + /** + * Notes + */ + notes?: string | null +} /** * CreateSpring * Schema for creating a spring. */ export type CreateSpring = { - release_status?: ReleaseStatus; - /** - * Location Id - */ - location_id: number | null; - /** - * Group Id - */ - group_id?: number | null; - /** - * Name - */ - name: string; - /** - * First Visit Date - */ - first_visit_date?: string | null; - spring_type?: SpringType | null; -}; + release_status?: ReleaseStatus + /** + * Location Id + */ + location_id: number | null + /** + * Group Id + */ + group_id?: number | null + /** + * Name + */ + name: string + /** + * First Visit Date + */ + first_visit_date?: string | null + spring_type?: SpringType | null +} /** * CreateThingIdLink * Schema for creating a link between a thing and its ID. */ export type CreateThingIdLink = { - /** - * Thing Id - */ - thing_id: number; - /** - * Relation - */ - relation: string; - /** - * Alternate Id - */ - alternate_id: string; - /** - * Alternate Organization - */ - alternate_organization: string; -}; + /** + * Thing Id + */ + thing_id: number + /** + * Relation + */ + relation: string + /** + * Alternate Id + */ + alternate_id: string + /** + * Alternate Organization + */ + alternate_organization: string +} /** * CreateWaterChemistryObservation */ export type CreateWaterChemistryObservation = { - /** - * Parameter Id - */ - parameter_id: number; - /** - * Observation Datetime - */ - observation_datetime: string; - release_status?: ReleaseStatus; - /** - * Sample Id - */ - sample_id: number; - /** - * Sensor Id - */ - sensor_id: number; - /** - * Value - */ - value: number | null; - unit: Unit | null; -}; + /** + * Parameter Id + */ + parameter_id: number + /** + * Observation Datetime + */ + observation_datetime: string + release_status?: ReleaseStatus + /** + * Sample Id + */ + sample_id: number + /** + * Sensor Id + */ + sensor_id: number + /** + * Value + */ + value: number | null + unit: Unit | null +} /** * CreateWell * Schema for creating a well. */ export type CreateWell = { - /** - * Well Depth - * Well depth in feet - */ - well_depth?: number | null; - /** - * Hole Depth - * Hole depth in feet - */ - hole_depth?: number | null; - /** - * Well Casing Depth - * Well casing depth in feet - */ - well_casing_depth?: number | null; - release_status?: ReleaseStatus; - /** - * Location Id - */ - location_id: number | null; - /** - * Group Id - */ - group_id?: number | null; - /** - * Name - */ - name: string; - /** - * First Visit Date - */ - first_visit_date?: string | null; - /** - * Well Purposes - */ - well_purposes?: Array | null; - /** - * Well Construction Notes - */ - well_construction_notes?: string | null; - /** - * Well Casing Diameter - * Well casing diameter in inches - */ - well_casing_diameter?: number | null; - /** - * Well Casing Materials - */ - well_casing_materials?: Array | null; -}; + /** + * Well Depth + * Well depth in feet + */ + well_depth?: number | null + /** + * Hole Depth + * Hole depth in feet + */ + hole_depth?: number | null + /** + * Well Casing Depth + * Well casing depth in feet + */ + well_casing_depth?: number | null + release_status?: ReleaseStatus + /** + * Location Id + */ + location_id: number | null + /** + * Group Id + */ + group_id?: number | null + /** + * Name + */ + name: string + /** + * First Visit Date + */ + first_visit_date?: string | null + /** + * Well Purposes + */ + well_purposes?: Array | null + /** + * Well Construction Notes + */ + well_construction_notes?: string | null + /** + * Well Casing Diameter + * Well casing diameter in inches + */ + well_casing_diameter?: number | null + /** + * Well Casing Materials + */ + well_casing_materials?: Array | null +} /** * CreateWellScreen * Schema for creating a well screen. */ export type CreateWellScreen = { - release_status?: ReleaseStatus; - /** - * Thing Id - */ - thing_id: number; - /** - * Screen Depth Bottom - * Screen depth bottom in feet - */ - screen_depth_bottom: number; - /** - * Screen Depth Top - * Screen depth top in feet - */ - screen_depth_top: number; - /** - * Screen Type - */ - screen_type?: unknown | null; - /** - * Screen Description - */ - screen_description?: string | null; -}; + release_status?: ReleaseStatus + /** + * Thing Id + */ + thing_id: number + /** + * Screen Depth Bottom + * Screen depth bottom in feet + */ + screen_depth_bottom: number + /** + * Screen Depth Top + * Screen depth top in feet + */ + screen_depth_top: number + screen_type?: ScreenType | null + /** + * Screen Description + */ + screen_description?: string | null +} /** * DeploymentResponse */ export type DeploymentResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Thing Id - */ - thing_id: number; - sensor: SensorResponse; - /** - * Installation Date - */ - installation_date: string; - /** - * Removal Date - */ - removal_date: string | null; - /** - * Recording Interval - */ - recording_interval: number | null; - /** - * Recording Interval Units - */ - recording_interval_units: string | null; - /** - * Hanging Cable Length - */ - hanging_cable_length: number | null; - /** - * Hanging Point Height - */ - hanging_point_height: number | null; - /** - * Hanging Point Description - */ - hanging_point_description: string | null; - /** - * Notes - */ - notes: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Thing Id + */ + thing_id: number + sensor: SensorResponse + /** + * Installation Date + */ + installation_date: string + /** + * Removal Date + */ + removal_date: string | null + /** + * Recording Interval + */ + recording_interval: number | null + /** + * Recording Interval Units + */ + recording_interval_units: string | null + /** + * Hanging Cable Length + */ + hanging_cable_length: number | null + /** + * Hanging Point Height + */ + hanging_point_height: number | null + /** + * Hanging Point Description + */ + hanging_point_description: string | null + /** + * Notes + */ + notes: string | null +} /** * EmailResponse * Response schema for email details. */ export type EmailResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Contact Id - */ - contact_id: number; - /** - * Email - */ - email: string; - email_type: EmailType; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Contact Id + */ + contact_id: number + /** + * Email + */ + email: string + email_type: EmailType +} /** * Feature * Feature schema for GeoJSON response. */ export type Feature = { - /** - * Type - */ - type?: string; - geometry: GeoJsonGeometry; - /** - * Properties - */ - properties?: { - [key: string]: unknown; - }; -}; + /** + * Type + */ + type?: string + geometry: GeoJsonGeometry + /** + * Properties + */ + properties?: { + [key: string]: unknown + } +} /** * FeatureCollectionResponse * Response schema for GeoJSON FeatureCollection. */ export type FeatureCollectionResponse = { - /** - * Type - */ - type?: string; - /** - * Features - */ - features?: Array; -}; + /** + * Type + */ + type?: string + /** + * Features + */ + features?: Array +} /** * FieldActivityResponse */ export type FieldActivityResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Field Event Id - */ - field_event_id: number; - activity_type: ActivityType; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Field Event Id + */ + field_event_id: number + activity_type: ActivityType +} /** * FieldEventResponse */ export type FieldEventResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Thing Id - */ - thing_id: number; - /** - * Event Date - */ - event_date: string; - /** - * Notes - */ - notes: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Thing Id + */ + thing_id: number + /** + * Event Date + */ + event_date: string + /** + * Notes + */ + notes: string | null +} /** * GeoJSONGeometry * Geometry schema for GeoJSON response. */ export type GeoJsonGeometry = { - /** - * Type - */ - type: string; - /** - * Coordinates - */ - coordinates: Array | Array> | Array>> | Array>>>; -}; + /** + * Type + */ + type: string + /** + * Coordinates + */ + coordinates: + | Array + | Array> + | Array>> + | Array>>> +} /** * GroundwaterLevelObservationResponse */ export type GroundwaterLevelObservationResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Sample Id - */ - sample_id: number; - /** - * Sensor Id - */ - sensor_id: number | null; - /** - * Observation Datetime - */ - observation_datetime: string; - parameter: ParameterResponse; - /** - * Value - */ - value: number | null; - unit: Unit; - /** - * Depth To Water Bgs - */ - depth_to_water_bgs: number | null; - /** - * Measuring Point Height - */ - measuring_point_height: number | null; - /** - * Groundwater Level Reason - */ - groundwater_level_reason: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Sample Id + */ + sample_id: number + /** + * Sensor Id + */ + sensor_id: number | null + /** + * Observation Datetime + */ + observation_datetime: string + parameter: ParameterResponse + /** + * Value + */ + value: number | null + unit: Unit + /** + * Depth To Water Bgs + */ + depth_to_water_bgs: number | null + /** + * Measuring Point Height + */ + measuring_point_height: number | null + /** + * Groundwater Level Reason + */ + groundwater_level_reason: string | null +} /** * GroupResponse @@ -939,42 +940,42 @@ export type GroundwaterLevelObservationResponse = { * This model can be extended to include additional fields as needed. */ export type GroupResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Name - */ - name: string; - /** - * Project Area - */ - project_area: string | null; - /** - * Description - */ - description: string | null; - /** - * Parent Group Id - */ - parent_group_id: number | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Name + */ + name: string + /** + * Project Area + */ + project_area: string | null + /** + * Description + */ + description: string | null + /** + * Parent Group Id + */ + parent_group_id: number | null +} /** * HTTPValidationError */ export type HttpValidationError = { - /** - * Detail - */ - detail?: Array; -}; + /** + * Detail + */ + detail?: Array +} /** * LexiconCategoryResponse @@ -982,23 +983,23 @@ export type HttpValidationError = { * This model can be extended to include additional fields as needed. */ export type LexiconCategoryResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - /** - * Name - */ - name: string; - /** - * Description - */ - description?: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + /** + * Name + */ + name: string + /** + * Description + */ + description?: string | null +} /** * LexiconTermResponse @@ -1006,111 +1007,111 @@ export type LexiconCategoryResponse = { * This model can be extended to include additional fields as needed. */ export type LexiconTermResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - /** - * Term - */ - term: string; - /** - * Definition - */ - definition: string; - /** - * Categories - */ - categories?: Array; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + /** + * Term + */ + term: string + /** + * Definition + */ + definition: string + /** + * Categories + */ + categories?: Array +} /** * LexiconTripleResponse */ export type LexiconTripleResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - /** - * Subject - */ - subject: string; - /** - * Predicate - */ - predicate: string; - /** - * Object - */ - object_: string; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + /** + * Subject + */ + subject: string + /** + * Predicate + */ + predicate: string + /** + * Object + */ + object_: string +} /** * LocationResponse * Response schema for sample location details. */ export type LocationResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Notes - */ - notes: string | null; - /** - * Point - */ - point: string; - /** - * Elevation - */ - elevation: number | null; - /** - * Horizontal Datum - */ - horizontal_datum?: string; - /** - * Vertical Datum - */ - vertical_datum?: string; - /** - * Elevation Accuracy - */ - elevation_accuracy: number | null; - elevation_method: ElevationMethod | null; - /** - * Coordinate Accuracy - */ - coordinate_accuracy: number | null; - coordinate_method: CoordinateMethod | null; - /** - * State - */ - state: string | null; - /** - * County - */ - county: string | null; - /** - * Quad Name - */ - quad_name: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Notes + */ + notes: string | null + /** + * Point + */ + point: string + /** + * Elevation + */ + elevation: number | null + /** + * Horizontal Datum + */ + horizontal_datum?: string + /** + * Vertical Datum + */ + vertical_datum?: string + /** + * Elevation Accuracy + */ + elevation_accuracy: number | null + elevation_method: ElevationMethod | null + /** + * Coordinate Accuracy + */ + coordinate_accuracy: number | null + coordinate_method: CoordinateMethod | null + /** + * State + */ + state: string | null + /** + * County + */ + county: string | null + /** + * Quad Name + */ + quad_name: string | null +} /** * ObservationResponse @@ -1118,646 +1119,646 @@ export type LocationResponse = { * Combines groundwater level and geothermal observation responses. */ export type ObservationResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Sample Id - */ - sample_id: number; - /** - * Sensor Id - */ - sensor_id: number | null; - /** - * Observation Datetime - */ - observation_datetime: string; - parameter: ParameterResponse; - /** - * Value - */ - value: number | null; - unit: Unit; - /** - * Depth To Water Bgs - */ - depth_to_water_bgs: number | null; - /** - * Measuring Point Height - */ - measuring_point_height: number | null; - /** - * Groundwater Level Reason - */ - groundwater_level_reason: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Sample Id + */ + sample_id: number + /** + * Sensor Id + */ + sensor_id: number | null + /** + * Observation Datetime + */ + observation_datetime: string + parameter: ParameterResponse + /** + * Value + */ + value: number | null + unit: Unit + /** + * Depth To Water Bgs + */ + depth_to_water_bgs: number | null + /** + * Measuring Point Height + */ + measuring_point_height: number | null + /** + * Groundwater Level Reason + */ + groundwater_level_reason: string | null +} /** * Page[AddressResponse] */ export type PageAddressResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[AssetResponse] */ export type PageAssetResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[ContactResponse] */ export type PageContactResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[DeploymentResponse] */ export type PageDeploymentResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[EmailResponse] */ export type PageEmailResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[GroundwaterLevelObservationResponse] */ export type PageGroundwaterLevelObservationResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[GroupResponse] */ export type PageGroupResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[LexiconCategoryResponse] */ export type PageLexiconCategoryResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[LexiconTermResponse] */ export type PageLexiconTermResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[LexiconTripleResponse] */ export type PageLexiconTripleResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[LocationResponse] */ export type PageLocationResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[ObservationResponse] */ export type PageObservationResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[PhoneResponse] */ export type PagePhoneResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[SampleResponse] */ export type PageSampleResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[SensorResponse] */ export type PageSensorResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[SpringResponse] */ export type PageSpringResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[ThingIdLinkResponse] */ export type PageThingIdLinkResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[ThingResponse] */ export type PageThingResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[TransducerObservationWithBlockResponse] */ export type PageTransducerObservationWithBlockResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[WaterChemistryObservationResponse] */ export type PageWaterChemistryObservationResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[WellResponse] */ export type PageWellResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[WellScreenResponse] */ export type PageWellScreenResponse = { - /** - * Items - */ - items: Array; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * Page[dict] */ export type PageDict = { - /** - * Items - */ - items: Array<{ - [key: string]: unknown; - }>; - /** - * Total - */ - total: number; - /** - * Page - */ - page: number; - /** - * Size - */ - size: number; - /** - * Pages - */ - pages: number; -}; + /** + * Items + */ + items: Array<{ + [key: string]: unknown + }> + /** + * Total + */ + total: number + /** + * Page + */ + page: number + /** + * Size + */ + size: number + /** + * Pages + */ + pages: number +} /** * ParameterResponse @@ -1765,101 +1766,101 @@ export type PageDict = { * This model can be extended to include additional fields as needed. */ export type ParameterResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - parameter_name: ParameterName; - /** - * Matrix - */ - matrix: string; - parameter_type: ParameterType | null; - /** - * Cas Number - */ - cas_number: string | null; - default_unit: Unit | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + parameter_name: ParameterName + /** + * Matrix + */ + matrix: string + parameter_type: ParameterType | null + /** + * Cas Number + */ + cas_number: string | null + default_unit: Unit | null +} /** * PhoneResponse * Response schema for phone details. */ export type PhoneResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Contact Id - */ - contact_id: number; - /** - * Phone Number - */ - phone_number?: string | null; - /** - * Phone Type - */ - phone_type: string; - /** - * Nma Phone Number - */ - nma_phone_number?: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Contact Id + */ + contact_id: number + /** + * Phone Number + */ + phone_number?: string | null + /** + * Phone Type + */ + phone_type: string + /** + * Nma Phone Number + */ + nma_phone_number?: string | null +} /** * PublicationResponse * Schema for the response of a publication. - */ -export type PublicationResponse = { - /** - * Id - */ - id: number; - /** - * Title - */ - title: string; - /** - * Authors - */ - authors: Array; - /** - * Year - */ - year: number; - /** - * Doi - */ - doi?: string | null; - /** - * Url - */ - url?: string | null; - publication_type: PublicationType; -}; + */ +export type PublicationResponse = { + /** + * Id + */ + id: number + /** + * Title + */ + title: string + /** + * Authors + */ + authors: Array + /** + * Year + */ + year: number + /** + * Doi + */ + doi?: string | null + /** + * Url + */ + url?: string | null + publication_type: PublicationType +} /** * ResourceNotFoundResponse */ export type ResourceNotFoundResponse = { - /** - * Detail - */ - detail: string; -}; + /** + * Detail + */ + detail: string +} /** * SampleResponse @@ -1871,425 +1872,422 @@ export type ResourceNotFoundResponse = { * .model_dump() and exlude fields to reduce the size. */ export type SampleResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - thing: ThingResponse; - field_event: FieldEventResponse; - field_activity: FieldActivityResponse; - contact: ContactResponse; - /** - * Sample Date - */ - sample_date: string; - /** - * Sample Name - */ - sample_name: string; - sample_matrix: SampleMatrix; - sample_method: SampleMethod; - qc_type: QcType; - /** - * Notes - */ - notes: string | null; - /** - * Depth Top - */ - depth_top: number | null; - /** - * Depth Bottom - */ - depth_bottom: number | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + thing: ThingResponse + field_event: FieldEventResponse + field_activity: FieldActivityResponse + contact: ContactResponse + /** + * Sample Date + */ + sample_date: string + /** + * Sample Name + */ + sample_name: string + sample_matrix: SampleMatrix + sample_method: SampleMethod + qc_type: QcType + /** + * Notes + */ + notes: string | null + /** + * Depth Top + */ + depth_top: number | null + /** + * Depth Bottom + */ + depth_bottom: number | null +} /** * SensorResponse */ export type SensorResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Name - */ - name: string; - sensor_type: SensorType; - /** - * Model - */ - model: string | null; - /** - * Serial No - */ - serial_no: string | null; - /** - * Pcn Number - */ - pcn_number: string | null; - /** - * Owner Agency - */ - owner_agency: string | null; - /** - * Sensor Status - */ - sensor_status: string | null; - /** - * Notes - */ - notes: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Name + */ + name: string + sensor_type: SensorType + /** + * Model + */ + model: string | null + /** + * Serial No + */ + serial_no: string | null + /** + * Pcn Number + */ + pcn_number: string | null + /** + * Owner Agency + */ + owner_agency: string | null + /** + * Sensor Status + */ + sensor_status: string | null + /** + * Notes + */ + notes: string | null +} /** * SpringResponse * Response schema for spring details. */ export type SpringResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Name - */ - name: string; - /** - * Thing Type - */ - thing_type: string; - current_location: LocationResponse | null; - /** - * First Visit Date - */ - first_visit_date: string | null; - /** - * Spring Type - */ - spring_type?: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Name + */ + name: string + /** + * Thing Type + */ + thing_type: string + current_location: LocationResponse | null + /** + * First Visit Date + */ + first_visit_date: string | null + /** + * Spring Type + */ + spring_type?: string | null +} /** * ThingIdLinkResponse */ export type ThingIdLinkResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Thing Id - */ - thing_id: number; - thing: ThingResponse; - /** - * Relation - */ - relation: string; - /** - * Alternate Id - */ - alternate_id: string; - /** - * Alternate Organization - */ - alternate_organization: string; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Thing Id + */ + thing_id: number + thing: ThingResponse + /** + * Relation + */ + relation: string + /** + * Alternate Id + */ + alternate_id: string + /** + * Alternate Organization + */ + alternate_organization: string +} /** * ThingResponse */ export type ThingResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Name - */ - name: string; - /** - * Thing Type - */ - thing_type: string; - current_location: LocationResponse | null; - /** - * First Visit Date - */ - first_visit_date: string | null; - /** - * Spring Type - */ - spring_type?: string | null; - /** - * Well Purposes - */ - well_purposes?: Array; - /** - * Well Depth - */ - well_depth?: number | null; - /** - * Well Depth Unit - */ - well_depth_unit?: string; - /** - * Hole Depth - */ - hole_depth?: number | null; - /** - * Hole Depth Unit - */ - hole_depth_unit?: string; - /** - * Well Casing Diameter - */ - well_casing_diameter?: number | null; - /** - * Well Casing Diameter Unit - */ - well_casing_diameter_unit?: string; - /** - * Well Casing Depth - */ - well_casing_depth?: number | null; - /** - * Well Casing Depth Unit - */ - well_casing_depth_unit?: string; - /** - * Well Casing Materials - */ - well_casing_materials?: Array; - /** - * Well Construction Notes - */ - well_construction_notes?: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Name + */ + name: string + /** + * Thing Type + */ + thing_type: string + current_location: LocationResponse | null + /** + * First Visit Date + */ + first_visit_date: string | null + /** + * Spring Type + */ + spring_type?: string | null + /** + * Well Purposes + */ + well_purposes?: Array + /** + * Well Depth + */ + well_depth?: number | null + /** + * Well Depth Unit + */ + well_depth_unit?: string + /** + * Hole Depth + */ + hole_depth?: number | null + /** + * Hole Depth Unit + */ + hole_depth_unit?: string + /** + * Well Casing Diameter + */ + well_casing_diameter?: number | null + /** + * Well Casing Diameter Unit + */ + well_casing_diameter_unit?: string + /** + * Well Casing Depth + */ + well_casing_depth?: number | null + /** + * Well Casing Depth Unit + */ + well_casing_depth_unit?: string + /** + * Well Casing Materials + */ + well_casing_materials?: Array + /** + * Well Construction Notes + */ + well_construction_notes?: string | null +} /** * TransducerObservationBlockResponse */ export type TransducerObservationBlockResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * review_status - */ - review_status: unknown; - /** - * Start Datetime - */ - start_datetime: string; - /** - * End Datetime - */ - end_datetime: string; - /** - * Parameter Id - */ - parameter_id: number; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + review_status: ReviewStatus + /** + * Start Datetime + */ + start_datetime: string + /** + * End Datetime + */ + end_datetime: string + /** + * Parameter Id + */ + parameter_id: number +} /** * TransducerObservationResponse */ export type TransducerObservationResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Value - */ - value: number; - /** - * Observation Datetime - */ - observation_datetime: string; - /** - * Parameter Id - */ - parameter_id: number; - /** - * Deployment Id - */ - deployment_id: number; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Value + */ + value: number + /** + * Observation Datetime + */ + observation_datetime: string + /** + * Parameter Id + */ + parameter_id: number + /** + * Deployment Id + */ + deployment_id: number +} /** * TransducerObservationWithBlockResponse */ export type TransducerObservationWithBlockResponse = { - observation: TransducerObservationResponse; - block: TransducerObservationBlockResponse; -}; + observation: TransducerObservationResponse + block: TransducerObservationBlockResponse +} /** * UpdateAddress * Schema for updating address information. */ export type UpdateAddress = { - release_status?: ReleaseStatus | null; - /** - * Contact Id - */ - contact_id?: number | null; - /** - * Address Line 1 - */ - address_line_1?: string | null; - /** - * Address Line 2 - */ - address_line_2?: string | null; - /** - * City - */ - city?: string | null; - /** - * State - */ - state?: string | null; - /** - * Postal Code - */ - postal_code?: string | null; - /** - * Country - */ - country?: string | null; - address_type?: AddressType | null; -}; + release_status?: ReleaseStatus | null + /** + * Contact Id + */ + contact_id?: number | null + /** + * Address Line 1 + */ + address_line_1?: string | null + /** + * Address Line 2 + */ + address_line_2?: string | null + /** + * City + */ + city?: string | null + /** + * State + */ + state?: string | null + /** + * Postal Code + */ + postal_code?: string | null + /** + * Country + */ + country?: string | null + address_type?: AddressType | null +} /** * UpdateAsset */ export type UpdateAsset = { - release_status?: ReleaseStatus | null; - /** - * Name - */ - name?: string | null; - /** - * Label - */ - label?: string | null; -}; + release_status?: ReleaseStatus | null + /** + * Name + */ + name?: string | null + /** + * Label + */ + label?: string | null +} /** * UpdateContact * Schema for updating contact information. */ export type UpdateContact = { - /** - * Name - */ - name?: string | null; - /** - * Organization - */ - organization?: string | null; - release_status?: ReleaseStatus | null; - role?: Role | null; - contact_type?: ContactType | null; - /** - * Thing Id - */ - thing_id?: number | null; -}; + /** + * Name + */ + name?: string | null + /** + * Organization + */ + organization?: string | null + release_status?: ReleaseStatus | null + role?: Role | null + contact_type?: ContactType | null + /** + * Thing Id + */ + thing_id?: number | null +} /** * UpdateEmail * Schema for updating email information. */ export type UpdateEmail = { - /** - * Email - */ - email?: string | null; - release_status?: ReleaseStatus | null; - /** - * Contact Id - */ - contact_id?: number | null; - email_type?: EmailType | null; -}; + /** + * Email + */ + email?: string | null + release_status?: ReleaseStatus | null + /** + * Contact Id + */ + contact_id?: number | null + email_type?: EmailType | null +} /** * UpdateGroundwaterLevelObservation */ export type UpdateGroundwaterLevelObservation = { - /** - * Parameter Id - */ - parameter_id?: number | null; - /** - * Observation Datetime - */ - observation_datetime?: string | null; - release_status?: ReleaseStatus | null; - /** - * Sample Id - */ - sample_id?: number | null; - /** - * Sensor Id - */ - sensor_id?: number | null; - /** - * Value - */ - value?: number | null; - unit?: Unit | null; - /** - * Measuring Point Height - */ - measuring_point_height?: number | null; - /** - * Groundwater Level Reason - */ - groundwater_level_reason?: string | null; -}; + /** + * Parameter Id + */ + parameter_id?: number | null + /** + * Observation Datetime + */ + observation_datetime?: string | null + release_status?: ReleaseStatus | null + /** + * Sample Id + */ + sample_id?: number | null + /** + * Sensor Id + */ + sensor_id?: number | null + /** + * Value + */ + value?: number | null + unit?: Unit | null + /** + * Measuring Point Height + */ + measuring_point_height?: number | null + /** + * Groundwater Level Reason + */ + groundwater_level_reason?: string | null +} /** * UpdateGroup @@ -2297,4179 +2295,4682 @@ export type UpdateGroundwaterLevelObservation = { * This model can be extended to include additional fields as needed. */ export type UpdateGroup = { - /** - * Project Area - */ - project_area?: string | null; - /** - * Description - */ - description?: string | null; - /** - * Parent Group Id - */ - parent_group_id?: number | null; - release_status?: ReleaseStatus | null; - /** - * Name - */ - name?: string | null; -}; + /** + * Project Area + */ + project_area?: string | null + /** + * Description + */ + description?: string | null + /** + * Parent Group Id + */ + parent_group_id?: number | null + release_status?: ReleaseStatus | null + /** + * Name + */ + name?: string | null +} /** * UpdateLexiconCategory */ export type UpdateLexiconCategory = { - /** - * Name - */ - name?: string | null; - /** - * Description - */ - description?: string | null; -}; + /** + * Name + */ + name?: string | null + /** + * Description + */ + description?: string | null +} /** * UpdateLexiconTerm */ export type UpdateLexiconTerm = { - /** - * Term - */ - term?: string | null; - /** - * Definition - */ - definition?: string | null; -}; + /** + * Term + */ + term?: string | null + /** + * Definition + */ + definition?: string | null +} /** * UpdateLexiconTriple */ export type UpdateLexiconTriple = { - /** - * Subject - */ - subject?: string | null; - /** - * Predicate - */ - predicate?: string | null; - /** - * Object - */ - object_?: string | null; -}; + /** + * Subject + */ + subject?: string | null + /** + * Predicate + */ + predicate?: string | null + /** + * Object + */ + object_?: string | null +} /** * UpdateLocation * Schema for updating a location. */ export type UpdateLocation = { - /** - * Point - */ - point?: string | null; - release_status?: ReleaseStatus | null; - /** - * Notes - */ - notes?: string | null; - /** - * Elevation - */ - elevation?: number | null; - /** - * Elevation Accuracy - */ - elevation_accuracy?: number | null; - elevation_method?: ElevationMethod | null; - /** - * Coordinate Accuracy - */ - coordinate_accuracy?: number | null; - coordinate_method?: CoordinateMethod | null; -}; + /** + * Point + */ + point?: string | null + release_status?: ReleaseStatus | null + /** + * Notes + */ + notes?: string | null + /** + * Elevation + */ + elevation?: number | null + /** + * Elevation Accuracy + */ + elevation_accuracy?: number | null + elevation_method?: ElevationMethod | null + /** + * Coordinate Accuracy + */ + coordinate_accuracy?: number | null + coordinate_method?: CoordinateMethod | null +} /** * UpdatePhone * Schema for updating phone information. */ export type UpdatePhone = { - /** - * Phone Number - */ - phone_number?: string | null; - release_status?: ReleaseStatus | null; - /** - * Contact Id - */ - contact_id?: number | null; - phone_type?: PhoneType | null; -}; + /** + * Phone Number + */ + phone_number?: string | null + release_status?: ReleaseStatus | null + /** + * Contact Id + */ + contact_id?: number | null + phone_type?: PhoneType | null +} /** * UpdateSample */ export type UpdateSample = { - /** - * Sample Date - */ - sample_date?: string | null; - /** - * Depth Top - */ - depth_top?: number | null; - /** - * Depth Bottom - */ - depth_bottom?: number | null; - release_status?: ReleaseStatus | null; - /** - * Field Activity Id - */ - field_activity_id?: number | null; - /** - * Field Event Participant Id - */ - field_event_participant_id?: number | null; - /** - * Sample Name - */ - sample_name?: string | null; - sample_matrix?: SampleMatrix | null; - sample_method?: SampleMethod | null; - qc_type?: QcType | null; - /** - * Notes - */ - notes?: string | null; -}; + /** + * Sample Date + */ + sample_date?: string | null + /** + * Depth Top + */ + depth_top?: number | null + /** + * Depth Bottom + */ + depth_bottom?: number | null + release_status?: ReleaseStatus | null + /** + * Field Activity Id + */ + field_activity_id?: number | null + /** + * Field Event Participant Id + */ + field_event_participant_id?: number | null + /** + * Sample Name + */ + sample_name?: string | null + sample_matrix?: SampleMatrix | null + sample_method?: SampleMethod | null + qc_type?: QcType | null + /** + * Notes + */ + notes?: string | null +} /** * UpdateSensor */ export type UpdateSensor = { - release_status?: ReleaseStatus | null; - /** - * Name - */ - name?: string | null; - sensor_type?: SensorType | null; - /** - * Model - */ - model?: string | null; - /** - * Serial No - */ - serial_no?: string | null; - /** - * Pcn Number - */ - pcn_number?: string | null; - /** - * Owner Agency - */ - owner_agency?: string | null; - /** - * Sensor Status - */ - sensor_status?: string | null; - /** - * Notes - */ - notes?: string | null; -}; + release_status?: ReleaseStatus | null + /** + * Name + */ + name?: string | null + sensor_type?: SensorType | null + /** + * Model + */ + model?: string | null + /** + * Serial No + */ + serial_no?: string | null + /** + * Pcn Number + */ + pcn_number?: string | null + /** + * Owner Agency + */ + owner_agency?: string | null + /** + * Sensor Status + */ + sensor_status?: string | null + /** + * Notes + */ + notes?: string | null +} /** * UpdateSpring */ export type UpdateSpring = { - release_status?: ReleaseStatus | null; - /** - * Name - */ - name?: string | null; - /** - * First Visit Date - */ - first_visit_date?: string | null; - /** - * Spring Type - */ - spring_type?: string | null; -}; + release_status?: ReleaseStatus | null + /** + * Name + */ + name?: string | null + /** + * First Visit Date + */ + first_visit_date?: string | null + /** + * Spring Type + */ + spring_type?: string | null +} /** * UpdateThingIdLink */ export type UpdateThingIdLink = { - release_status?: ReleaseStatus | null; - /** - * Alternate Organization - */ - alternate_organization?: string | null; - /** - * Alternate Id - */ - alternate_id?: string | null; - /** - * Relation - */ - relation?: string | null; -}; + release_status?: ReleaseStatus | null + /** + * Alternate Organization + */ + alternate_organization?: string | null + /** + * Alternate Id + */ + alternate_id?: string | null + /** + * Relation + */ + relation?: string | null +} /** * UpdateWaterChemistryObservation */ export type UpdateWaterChemistryObservation = { - /** - * Parameter Id - */ - parameter_id?: number | null; - /** - * Observation Datetime - */ - observation_datetime?: string | null; - release_status?: ReleaseStatus | null; - /** - * Sample Id - */ - sample_id?: number | null; - /** - * Sensor Id - */ - sensor_id?: number | null; - /** - * Value - */ - value?: number | null; - unit?: Unit | null; -}; + /** + * Parameter Id + */ + parameter_id?: number | null + /** + * Observation Datetime + */ + observation_datetime?: string | null + release_status?: ReleaseStatus | null + /** + * Sample Id + */ + sample_id?: number | null + /** + * Sensor Id + */ + sensor_id?: number | null + /** + * Value + */ + value?: number | null + unit?: Unit | null +} /** * UpdateWell */ export type UpdateWell = { - /** - * Well Depth - */ - well_depth?: number | null; - /** - * Hole Depth - */ - hole_depth?: number | null; - /** - * Well Casing Depth - */ - well_casing_depth?: number | null; - release_status?: ReleaseStatus | null; - /** - * Name - */ - name?: string | null; - /** - * First Visit Date - */ - first_visit_date?: string | null; - /** - * Well Purposes - */ - well_purposes?: Array | null; - /** - * Well Construction Notes - */ - well_construction_notes?: string | null; - /** - * Well Casing Diameter - */ - well_casing_diameter?: number | null; - /** - * Well Casing Materials - */ - well_casing_materials?: Array | null; -}; + /** + * Well Depth + */ + well_depth?: number | null + /** + * Hole Depth + */ + hole_depth?: number | null + /** + * Well Casing Depth + */ + well_casing_depth?: number | null + release_status?: ReleaseStatus | null + /** + * Name + */ + name?: string | null + /** + * First Visit Date + */ + first_visit_date?: string | null + /** + * Well Purposes + */ + well_purposes?: Array | null + /** + * Well Construction Notes + */ + well_construction_notes?: string | null + /** + * Well Casing Diameter + */ + well_casing_diameter?: number | null + /** + * Well Casing Materials + */ + well_casing_materials?: Array | null +} /** * UpdateWellScreen */ export type UpdateWellScreen = { - release_status?: ReleaseStatus | null; - /** - * Screen Depth Bottom - */ - screen_depth_bottom?: number | null; - /** - * Screen Depth Top - */ - screen_depth_top?: number | null; - /** - * Screen Description - */ - screen_description?: string | null; - /** - * Screen Type - */ - screen_type?: string | null; -}; + release_status?: ReleaseStatus | null + /** + * Screen Depth Bottom + */ + screen_depth_bottom?: number | null + /** + * Screen Depth Top + */ + screen_depth_top?: number | null + /** + * Screen Description + */ + screen_description?: string | null + /** + * Screen Type + */ + screen_type?: string | null +} /** * ValidationError */ export type ValidationError = { - /** - * Location - */ - loc: Array; - /** - * Message - */ - msg: string; - /** - * Error Type - */ - type: string; -}; + /** + * Location + */ + loc: Array + /** + * Message + */ + msg: string + /** + * Error Type + */ + type: string +} /** * WaterChemistryObservationResponse */ export type WaterChemistryObservationResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Sample Id - */ - sample_id: number; - /** - * Sensor Id - */ - sensor_id: number | null; - /** - * Observation Datetime - */ - observation_datetime: string; - parameter: ParameterResponse; - /** - * Value - */ - value: number | null; - unit: Unit; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Sample Id + */ + sample_id: number + /** + * Sensor Id + */ + sensor_id: number | null + /** + * Observation Datetime + */ + observation_datetime: string + parameter: ParameterResponse + /** + * Value + */ + value: number | null + unit: Unit +} /** * WellResponse * Response schema for well details. */ export type WellResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Name - */ - name: string; - /** - * Thing Type - */ - thing_type: string; - current_location: LocationResponse | null; - /** - * First Visit Date - */ - first_visit_date: string | null; - /** - * Well Purposes - */ - well_purposes?: Array; - /** - * Well Depth - */ - well_depth?: number | null; - /** - * Well Depth Unit - */ - well_depth_unit?: string; - /** - * Hole Depth - */ - hole_depth?: number | null; - /** - * Hole Depth Unit - */ - hole_depth_unit?: string; - /** - * Well Casing Diameter - */ - well_casing_diameter?: number | null; - /** - * Well Casing Diameter Unit - */ - well_casing_diameter_unit?: string; - /** - * Well Casing Depth - */ - well_casing_depth?: number | null; - /** - * Well Casing Depth Unit - */ - well_casing_depth_unit?: string; - /** - * Well Casing Materials - */ - well_casing_materials?: Array; - /** - * Well Construction Notes - */ - well_construction_notes?: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Name + */ + name: string + /** + * Thing Type + */ + thing_type: string + current_location: LocationResponse | null + /** + * First Visit Date + */ + first_visit_date: string | null + /** + * Well Purposes + */ + well_purposes?: Array + /** + * Well Depth + */ + well_depth?: number | null + /** + * Well Depth Unit + */ + well_depth_unit?: string + /** + * Hole Depth + */ + hole_depth?: number | null + /** + * Hole Depth Unit + */ + hole_depth_unit?: string + /** + * Well Casing Diameter + */ + well_casing_diameter?: number | null + /** + * Well Casing Diameter Unit + */ + well_casing_diameter_unit?: string + /** + * Well Casing Depth + */ + well_casing_depth?: number | null + /** + * Well Casing Depth Unit + */ + well_casing_depth_unit?: string + /** + * Well Casing Materials + */ + well_casing_materials?: Array + /** + * Well Construction Notes + */ + well_construction_notes?: string | null +} /** * WellScreenResponse * Response schema for well screen details. */ export type WellScreenResponse = { - /** - * Id - */ - id: number; - /** - * Created At - */ - created_at: string; - release_status: ReleaseStatus; - /** - * Thing Id - */ - thing_id: number; - thing: WellResponse; - /** - * Screen Depth Bottom - */ - screen_depth_bottom: number; - /** - * Screen Depth Bottom Unit - */ - screen_depth_bottom_unit?: string; - /** - * Screen Depth Top - */ - screen_depth_top: number; - /** - * Screen Depth Top Unit - */ - screen_depth_top_unit?: string; - /** - * Screen Type - */ - screen_type?: string | null; - /** - * Screen Description - */ - screen_description?: string | null; -}; + /** + * Id + */ + id: number + /** + * Created At + */ + created_at: string + release_status: ReleaseStatus + /** + * Thing Id + */ + thing_id: number + thing: WellResponse + /** + * Screen Depth Bottom + */ + screen_depth_bottom: number + /** + * Screen Depth Bottom Unit + */ + screen_depth_bottom_unit?: string + /** + * Screen Depth Top + */ + screen_depth_top: number + /** + * Screen Depth Top Unit + */ + screen_depth_top_unit?: string + /** + * Screen Type + */ + screen_type?: string | null + /** + * Screen Description + */ + screen_description?: string | null +} /** * activity_type */ -export type ActivityType = 'groundwater level' | 'water chemistry'; +export type ActivityType = 'groundwater level' | 'water chemistry' /** * address_type */ -export type AddressType = 'Primary' | 'Work' | 'Personal' | 'Mailing' | 'Physical'; +export type AddressType = + | 'Primary' + | 'Work' + | 'Personal' + | 'Mailing' + | 'Physical' /** * casing_material */ -export type CasingMaterial = 'PVC' | 'Steel' | 'Concrete'; +export type CasingMaterial = 'PVC' | 'Steel' | 'Concrete' /** * contact_type */ -export type ContactType = 'Primary' | 'Secondary' | 'Field Event Participant'; +export type ContactType = 'Primary' | 'Secondary' | 'Field Event Participant' /** * coordinate_method */ -export type CoordinateMethod = 'Unknown' | 'Differentially corrected GPS' | 'Survey-grade global positioning system (SGPS)' | 'GPS, uncorrected' | 'Interpolated from map' | 'Interpolated from DEM' | 'Reported' | 'Transit, theodolite, or other survey method'; +export type CoordinateMethod = + | 'Unknown' + | 'Differentially corrected GPS' + | 'Survey-grade global positioning system (SGPS)' + | 'GPS, uncorrected' + | 'Interpolated from map' + | 'Interpolated from DEM' + | 'Reported' + | 'Transit, theodolite, or other survey method' /** * elevation_method */ -export type ElevationMethod = 'Altimeter' | 'Differentially corrected GPS' | 'Survey-grade GPS' | 'Global positioning system (GPS)' | 'LiDAR DEM' | 'Level or other survey method' | 'Interpolated from topographic map' | 'Interpolated from digital elevation model (DEM)' | 'Reported' | 'Survey-grade Global Navigation Satellite Sys, Lvl1' | 'USGS National Elevation Dataset (NED)' | 'Unknown'; +export type ElevationMethod = + | 'Altimeter' + | 'Differentially corrected GPS' + | 'Survey-grade GPS' + | 'Global positioning system (GPS)' + | 'LiDAR DEM' + | 'Level or other survey method' + | 'Interpolated from topographic map' + | 'Interpolated from digital elevation model (DEM)' + | 'Reported' + | 'Survey-grade Global Navigation Satellite Sys, Lvl1' + | 'USGS National Elevation Dataset (NED)' + | 'Unknown' /** * email_type */ -export type EmailType = 'Primary' | 'Work' | 'Personal'; +export type EmailType = 'Primary' | 'Work' | 'Personal' /** * parameter_name */ -export type ParameterName = 'groundwater level' | 'temperature' | 'pH' | 'Alkalinity, Total' | 'Alkalinity as CaCO3' | 'Alkalinity as OH-' | 'Calcium' | 'Calcium, total, unfiltered' | 'Chloride' | 'Carbonate' | 'Conductivity, laboratory' | 'Bicarbonate' | 'Hardness (CaCO3)' | 'Ion Balance' | 'Potassium' | 'Potassium, total, unfiltered' | 'Magnesium' | 'Magnesium, total, unfiltered' | 'Sodium' | 'Sodium, total, unfiltered' | 'Sodium and Potassium combined' | 'Sulfate' | 'Total Anions' | 'Total Cations' | 'Total Dissolved Solids' | 'Tritium' | 'Age of Water using dissolved gases' | 'Silver' | 'Silver, total, unfiltered' | 'Aluminum' | 'Aluminum, total, unfiltered' | 'Arsenic' | 'Arsenic, total, unfiltered' | 'Boron' | 'Boron, total, unfiltered' | 'Barium' | 'Barium, total, unfiltered' | 'Beryllium' | 'Beryllium, total, unfiltered' | 'Bromide' | '13C:12C ratio' | '14C content, pmc' | 'Uncorrected C14 age' | 'Cadmium' | 'Cadmium, total, unfiltered' | 'Chlorofluorocarbon-11 avg age' | 'Chlorofluorocarbon-113 avg age' | 'Chlorofluorocarbon-113/12 avg RATIO age' | 'Chlorofluorocarbon-12 avg age' | 'Cobalt' | 'Cobalt, total, unfiltered' | 'Chromium' | 'Chromium, total, unfiltered' | 'Copper' | 'Copper, total, unfiltered' | 'delta O18 sulfate' | 'Sulfate 34 isotope ratio' | 'Fluoride' | 'Iron' | 'Iron, total, unfiltered' | 'Deuterium:Hydrogen ratio' | 'Mercury' | 'Mercury, total, unfiltered' | 'Lithium' | 'Lithium, total, unfiltered' | 'Manganese' | 'Manganese, total, unfiltered' | 'Molybdenum' | 'Molybdenum, total, unfiltered' | 'Nickel' | 'Nickel, total, unfiltered' | 'Nitrite (as NO2)' | 'Nitrite (as N)' | 'Nitrate (as NO3)' | 'Nitrate (as N)' | '18O:16O ratio' | 'Lead' | 'Lead, total, unfiltered' | 'Phosphate' | 'Antimony' | 'Antimony, total, unfiltered' | 'Selenium' | 'Selenium, total, unfiltered' | 'Sulfur hexafluoride' | 'Silicon' | 'Silicon, total, unfiltered' | 'Silica' | 'Tin' | 'Tin, total, unfiltered' | 'Strontium' | 'Strontium, total, unfiltered' | 'Strontium 87:86 ratio' | 'Thorium' | 'Thorium, total, unfiltered' | 'Titanium' | 'Titanium, total, unfiltered' | 'Thallium' | 'Thallium, total, unfiltered' | 'Uranium (total, by ICP-MS)' | 'Uranium, total, unfiltered' | 'Vanadium' | 'Vanadium, total, unfiltered' | 'Zinc' | 'Zinc, total, unfiltered' | 'Corrected C14 in years' | 'Arsenite (arsenic species)' | 'Arsenate (arsenic species)' | 'Cyanide' | 'Estimated recharge temperature' | 'Hydrogen sulfide' | 'Ammonia' | 'Ammonium' | 'Total nitrogen' | 'Total Kjeldahl nitrogen' | 'Dissolved organic carbon' | 'Total organic carbon' | 'delta C13 of dissolved inorganic carbon'; +export type ParameterName = + | 'groundwater level' + | 'temperature' + | 'pH' + | 'Alkalinity, Total' + | 'Alkalinity as CaCO3' + | 'Alkalinity as OH-' + | 'Calcium' + | 'Calcium, total, unfiltered' + | 'Chloride' + | 'Carbonate' + | 'Conductivity, laboratory' + | 'Bicarbonate' + | 'Hardness (CaCO3)' + | 'Ion Balance' + | 'Potassium' + | 'Potassium, total, unfiltered' + | 'Magnesium' + | 'Magnesium, total, unfiltered' + | 'Sodium' + | 'Sodium, total, unfiltered' + | 'Sodium and Potassium combined' + | 'Sulfate' + | 'Total Anions' + | 'Total Cations' + | 'Total Dissolved Solids' + | 'Tritium' + | 'Age of Water using dissolved gases' + | 'Silver' + | 'Silver, total, unfiltered' + | 'Aluminum' + | 'Aluminum, total, unfiltered' + | 'Arsenic' + | 'Arsenic, total, unfiltered' + | 'Boron' + | 'Boron, total, unfiltered' + | 'Barium' + | 'Barium, total, unfiltered' + | 'Beryllium' + | 'Beryllium, total, unfiltered' + | 'Bromide' + | '13C:12C ratio' + | '14C content, pmc' + | 'Uncorrected C14 age' + | 'Cadmium' + | 'Cadmium, total, unfiltered' + | 'Chlorofluorocarbon-11 avg age' + | 'Chlorofluorocarbon-113 avg age' + | 'Chlorofluorocarbon-113/12 avg RATIO age' + | 'Chlorofluorocarbon-12 avg age' + | 'Cobalt' + | 'Cobalt, total, unfiltered' + | 'Chromium' + | 'Chromium, total, unfiltered' + | 'Copper' + | 'Copper, total, unfiltered' + | 'delta O18 sulfate' + | 'Sulfate 34 isotope ratio' + | 'Fluoride' + | 'Iron' + | 'Iron, total, unfiltered' + | 'Deuterium:Hydrogen ratio' + | 'Mercury' + | 'Mercury, total, unfiltered' + | 'Lithium' + | 'Lithium, total, unfiltered' + | 'Manganese' + | 'Manganese, total, unfiltered' + | 'Molybdenum' + | 'Molybdenum, total, unfiltered' + | 'Nickel' + | 'Nickel, total, unfiltered' + | 'Nitrite (as NO2)' + | 'Nitrite (as N)' + | 'Nitrate (as NO3)' + | 'Nitrate (as N)' + | '18O:16O ratio' + | 'Lead' + | 'Lead, total, unfiltered' + | 'Phosphate' + | 'Antimony' + | 'Antimony, total, unfiltered' + | 'Selenium' + | 'Selenium, total, unfiltered' + | 'Sulfur hexafluoride' + | 'Silicon' + | 'Silicon, total, unfiltered' + | 'Silica' + | 'Tin' + | 'Tin, total, unfiltered' + | 'Strontium' + | 'Strontium, total, unfiltered' + | 'Strontium 87:86 ratio' + | 'Thorium' + | 'Thorium, total, unfiltered' + | 'Titanium' + | 'Titanium, total, unfiltered' + | 'Thallium' + | 'Thallium, total, unfiltered' + | 'Uranium (total, by ICP-MS)' + | 'Uranium, total, unfiltered' + | 'Vanadium' + | 'Vanadium, total, unfiltered' + | 'Zinc' + | 'Zinc, total, unfiltered' + | 'Corrected C14 in years' + | 'Arsenite (arsenic species)' + | 'Arsenate (arsenic species)' + | 'Cyanide' + | 'Estimated recharge temperature' + | 'Hydrogen sulfide' + | 'Ammonia' + | 'Ammonium' + | 'Total nitrogen' + | 'Total Kjeldahl nitrogen' + | 'Dissolved organic carbon' + | 'Total organic carbon' + | 'delta C13 of dissolved inorganic carbon' /** * parameter_type */ -export type ParameterType = 'Field Parameter' | 'Metal' | 'Radionuclide' | 'Major Element' | 'Minor Element' | 'Physical property'; +export type ParameterType = + | 'Field Parameter' + | 'Metal' + | 'Radionuclide' + | 'Major Element' + | 'Minor Element' + | 'Physical property' /** * phone_type */ -export type PhoneType = 'Primary' | 'Work' | 'Home' | 'Mobile'; +export type PhoneType = 'Primary' | 'Work' | 'Home' | 'Mobile' /** * publication_type */ -export type PublicationType = 'Map' | 'Report' | 'Dataset' | 'Model' | 'Software' | 'Paper' | 'Thesis' | 'Book' | 'Conference' | 'Webpage'; +export type PublicationType = + | 'Map' + | 'Report' + | 'Dataset' + | 'Model' + | 'Software' + | 'Paper' + | 'Thesis' + | 'Book' + | 'Conference' + | 'Webpage' /** * qc_type */ -export type QcType = 'Normal' | 'Duplicate' | 'Split' | 'Field Blank' | 'Trip Blank' | 'Equipment Blank'; +export type QcType = + | 'Normal' + | 'Duplicate' + | 'Split' + | 'Field Blank' + | 'Trip Blank' + | 'Equipment Blank' /** * release_status */ -export type ReleaseStatus = 'draft' | 'provisional' | 'final' | 'published' | 'archived' | 'public' | 'private'; +export type ReleaseStatus = + | 'draft' + | 'provisional' + | 'final' + | 'published' + | 'archived' + | 'public' + | 'private' + +/** + * review_status + */ +export type ReviewStatus = 'approved' | 'not reviewed' /** * role */ -export type Role = 'Unknown' | 'Owner' | 'Manager' | 'Operator' | 'Driller' | 'Geologist' | 'Hydrologist' | 'Hydrogeologist' | 'Engineer' | 'Organization' | 'Specialist' | 'Technician' | 'Research Assistant' | 'Research Scientist' | 'Graduate Student' | 'Biologist' | 'Lab Manager' | 'Publications Manager' | 'Software Developer'; +export type Role = + | 'Unknown' + | 'Owner' + | 'Manager' + | 'Operator' + | 'Driller' + | 'Geologist' + | 'Hydrologist' + | 'Hydrogeologist' + | 'Engineer' + | 'Organization' + | 'Specialist' + | 'Technician' + | 'Research Assistant' + | 'Research Scientist' + | 'Graduate Student' + | 'Biologist' + | 'Lab Manager' + | 'Publications Manager' + | 'Software Developer' /** * sample_matrix */ -export type SampleMatrix = 'water' | 'groundwater' | 'soil'; +export type SampleMatrix = 'water' | 'groundwater' | 'soil' /** * sample_method */ -export type SampleMethod = 'Unknown' | 'Airline measurement' | 'Analog or graphic recorder' | 'Calibrated airline measurement' | 'Differential GPS; especially applicable to surface expression of ground water' | 'Estimated' | 'Transducer' | 'Pressure-gage measurement' | 'Calibrated pressure-gage measurement' | 'Interpreted from geophysical logs' | 'Manometer' | 'Non-recording gage' | 'Observed (required for F, N, and W water level status)' | 'Sonic water level meter (acoustic pulse)' | 'Reported, method not known' | 'Steel-tape measurement' | 'Electric tape measurement (E-probe)' | 'Unknown (for legacy data only; not for new data entry)' | 'Calibrated electric tape; accuracy of equipment has been checked' | 'Calibrated electric cable' | 'Uncalibrated electric cable' | 'Continuous acoustic sounder' | 'Measurement not attempted' | 'null placeholder' | 'bailer' | 'faucet at well head' | 'faucet or outlet at house' | 'grab sample' | 'pump' | 'thief sampler'; +export type SampleMethod = + | 'Unknown' + | 'Airline measurement' + | 'Analog or graphic recorder' + | 'Calibrated airline measurement' + | 'Differential GPS; especially applicable to surface expression of ground water' + | 'Estimated' + | 'Transducer' + | 'Pressure-gage measurement' + | 'Calibrated pressure-gage measurement' + | 'Interpreted from geophysical logs' + | 'Manometer' + | 'Non-recording gage' + | 'Observed (required for F, N, and W water level status)' + | 'Sonic water level meter (acoustic pulse)' + | 'Reported, method not known' + | 'Steel-tape measurement' + | 'Electric tape measurement (E-probe)' + | 'Unknown (for legacy data only; not for new data entry)' + | 'Calibrated electric tape; accuracy of equipment has been checked' + | 'Calibrated electric cable' + | 'Uncalibrated electric cable' + | 'Continuous acoustic sounder' + | 'Measurement not attempted' + | 'null placeholder' + | 'bailer' + | 'faucet at well head' + | 'faucet or outlet at house' + | 'grab sample' + | 'pump' + | 'thief sampler' + +/** + * screen_type + */ +export type ScreenType = 'PVC' | 'Steel' | 'Concrete' /** * sensor_type */ -export type SensorType = 'Pressure Transducer' | 'Data Logger' | 'Barometer' | 'Acoustic Sounder' | 'Precip Collector' | 'Camera' | 'Soil Moisture Sensor' | 'Tipping Bucket'; +export type SensorType = + | 'Pressure Transducer' + | 'Data Logger' + | 'Barometer' + | 'Acoustic Sounder' + | 'Precip Collector' + | 'Camera' + | 'Soil Moisture Sensor' + | 'Tipping Bucket' /** * spring_type */ -export type SpringType = 'Artesian' | 'Ephemeral' | 'Perennial' | 'Thermal' | 'Mineral'; +export type SpringType = + | 'Artesian' + | 'Ephemeral' + | 'Perennial' + | 'Thermal' + | 'Mineral' /** * unit */ -export type Unit = 'dimensionless' | 'ft' | 'ftbgs' | 'F' | 'mg/L' | 'mW/m²' | 'W/m²' | 'W/m·K' | 'm²/s' | 'deg C' | 'deg second' | 'deg minute' | 'second' | 'minute' | 'hour'; +export type Unit = + | 'dimensionless' + | 'ft' + | 'ftbgs' + | 'F' + | 'mg/L' + | 'mW/m²' + | 'W/m²' + | 'W/m·K' + | 'm²/s' + | 'deg C' + | 'deg second' + | 'deg minute' + | 'second' + | 'minute' + | 'hour' /** * well_purpose */ -export type WellPurpose = 'Unknown' | 'Open, unequipped well' | 'Commercial' | 'Domestic' | 'Power generation' | 'Irrigation' | 'Livestock' | 'Mining' | 'Industrial' | 'Observation' | 'Public supply' | 'Shared domestic' | 'Institutional' | 'Unused' | 'Exploration' | 'Monitoring' | 'Production' | 'Injection'; +export type WellPurpose = + | 'Unknown' + | 'Open, unequipped well' + | 'Commercial' + | 'Domestic' + | 'Power generation' + | 'Irrigation' + | 'Livestock' + | 'Mining' + | 'Industrial' + | 'Observation' + | 'Public supply' + | 'Shared domestic' + | 'Institutional' + | 'Unused' + | 'Exploration' + | 'Monitoring' + | 'Production' + | 'Injection' export type UploadAssetAssetUploadPostData = { - body: BodyUploadAssetAssetUploadPost; - path?: never; - query?: { - /** - * Client - */ - client?: unknown; - }; - url: '/asset/upload'; -}; - -export type UploadAssetAssetUploadPostErrors = { + body: BodyUploadAssetAssetUploadPost + path?: never + query?: { /** - * Validation Error + * Client */ - 422: HttpValidationError; -}; + client?: unknown + } + url: '/asset/upload' +} -export type UploadAssetAssetUploadPostError = UploadAssetAssetUploadPostErrors[keyof UploadAssetAssetUploadPostErrors]; +export type UploadAssetAssetUploadPostErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UploadAssetAssetUploadPostResponses = { - /** - * Response Upload Asset Asset Upload Post - * Successful Response - */ - 201: { - [key: string]: unknown; - }; -}; +export type UploadAssetAssetUploadPostError = + UploadAssetAssetUploadPostErrors[keyof UploadAssetAssetUploadPostErrors] -export type UploadAssetAssetUploadPostResponse = UploadAssetAssetUploadPostResponses[keyof UploadAssetAssetUploadPostResponses]; +export type UploadAssetAssetUploadPostResponses = { + /** + * Response Upload Asset Asset Upload Post + * Successful Response + */ + 201: { + [key: string]: unknown + } +} + +export type UploadAssetAssetUploadPostResponse = + UploadAssetAssetUploadPostResponses[keyof UploadAssetAssetUploadPostResponses] export type ListAssetsAssetGetData = { - body?: never; - path?: never; - query?: { - /** - * Thing Id - */ - thing_id?: number; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/asset'; -}; - -export type ListAssetsAssetGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Thing Id + */ + thing_id?: number + /** + * Page + * Page number */ - 422: HttpValidationError; -}; + page?: number + /** + * Size + */ + size?: number + } + url: '/asset' +} + +export type ListAssetsAssetGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type ListAssetsAssetGetError = ListAssetsAssetGetErrors[keyof ListAssetsAssetGetErrors]; +export type ListAssetsAssetGetError = + ListAssetsAssetGetErrors[keyof ListAssetsAssetGetErrors] export type ListAssetsAssetGetResponses = { - /** - * Successful Response - */ - 200: PageAssetResponse; -}; + /** + * Successful Response + */ + 200: PageAssetResponse +} -export type ListAssetsAssetGetResponse = ListAssetsAssetGetResponses[keyof ListAssetsAssetGetResponses]; +export type ListAssetsAssetGetResponse = + ListAssetsAssetGetResponses[keyof ListAssetsAssetGetResponses] export type AddAssetAssetPostData = { - body: CreateAsset; - path?: never; - query?: never; - url: '/asset'; -}; + body: CreateAsset + path?: never + query?: never + url: '/asset' +} export type AddAssetAssetPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type AddAssetAssetPostError = AddAssetAssetPostErrors[keyof AddAssetAssetPostErrors]; +export type AddAssetAssetPostError = + AddAssetAssetPostErrors[keyof AddAssetAssetPostErrors] export type AddAssetAssetPostResponses = { - /** - * Successful Response - */ - 201: AssetResponse; -}; + /** + * Successful Response + */ + 201: AssetResponse +} -export type AddAssetAssetPostResponse = AddAssetAssetPostResponses[keyof AddAssetAssetPostResponses]; +export type AddAssetAssetPostResponse = + AddAssetAssetPostResponses[keyof AddAssetAssetPostResponses] export type DeleteAssetAssetAssetIdDeleteData = { - body?: never; - path: { - /** - * Asset Id - */ - asset_id: number; - }; - query?: never; - url: '/asset/{asset_id}'; -}; - -export type DeleteAssetAssetAssetIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Asset Id */ - 422: HttpValidationError; -}; + asset_id: number + } + query?: never + url: '/asset/{asset_id}' +} + +export type DeleteAssetAssetAssetIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteAssetAssetAssetIdDeleteError = DeleteAssetAssetAssetIdDeleteErrors[keyof DeleteAssetAssetAssetIdDeleteErrors]; +export type DeleteAssetAssetAssetIdDeleteError = + DeleteAssetAssetAssetIdDeleteErrors[keyof DeleteAssetAssetAssetIdDeleteErrors] export type DeleteAssetAssetAssetIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteAssetAssetAssetIdDeleteResponse = DeleteAssetAssetAssetIdDeleteResponses[keyof DeleteAssetAssetAssetIdDeleteResponses]; +export type DeleteAssetAssetAssetIdDeleteResponse = + DeleteAssetAssetAssetIdDeleteResponses[keyof DeleteAssetAssetAssetIdDeleteResponses] export type GetAssetAssetAssetIdGetData = { - body?: never; - path: { - /** - * Asset Id - */ - asset_id: number; - }; - query?: { - /** - * Client - */ - client?: unknown; - }; - url: '/asset/{asset_id}'; -}; - -export type GetAssetAssetAssetIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Asset Id */ - 422: HttpValidationError; -}; + asset_id: number + } + query?: { + /** + * Client + */ + client?: unknown + } + url: '/asset/{asset_id}' +} + +export type GetAssetAssetAssetIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetAssetAssetAssetIdGetError = GetAssetAssetAssetIdGetErrors[keyof GetAssetAssetAssetIdGetErrors]; +export type GetAssetAssetAssetIdGetError = + GetAssetAssetAssetIdGetErrors[keyof GetAssetAssetAssetIdGetErrors] export type GetAssetAssetAssetIdGetResponses = { - /** - * Successful Response - */ - 200: AssetResponse; -}; + /** + * Successful Response + */ + 200: AssetResponse +} -export type GetAssetAssetAssetIdGetResponse = GetAssetAssetAssetIdGetResponses[keyof GetAssetAssetAssetIdGetResponses]; +export type GetAssetAssetAssetIdGetResponse = + GetAssetAssetAssetIdGetResponses[keyof GetAssetAssetAssetIdGetResponses] export type UpdateAssetAssetAssetIdPatchData = { - body: UpdateAsset; - path: { - /** - * Asset Id - */ - asset_id: number; - }; - query?: never; - url: '/asset/{asset_id}'; -}; - -export type UpdateAssetAssetAssetIdPatchErrors = { + body: UpdateAsset + path: { /** - * Validation Error + * Asset Id */ - 422: HttpValidationError; -}; + asset_id: number + } + query?: never + url: '/asset/{asset_id}' +} + +export type UpdateAssetAssetAssetIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateAssetAssetAssetIdPatchError = UpdateAssetAssetAssetIdPatchErrors[keyof UpdateAssetAssetAssetIdPatchErrors]; +export type UpdateAssetAssetAssetIdPatchError = + UpdateAssetAssetAssetIdPatchErrors[keyof UpdateAssetAssetAssetIdPatchErrors] export type UpdateAssetAssetAssetIdPatchResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type RemoveAssetAssetAssetIdRemoveDeleteData = { - body?: never; - path: { - /** - * Asset Id - */ - asset_id: number; - }; - query?: { - /** - * Client - */ - client?: unknown; - }; - url: '/asset/{asset_id}/remove'; -}; - -export type RemoveAssetAssetAssetIdRemoveDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Asset Id + */ + asset_id: number + } + query?: { + /** + * Client */ - 422: HttpValidationError; -}; + client?: unknown + } + url: '/asset/{asset_id}/remove' +} + +export type RemoveAssetAssetAssetIdRemoveDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type RemoveAssetAssetAssetIdRemoveDeleteError = RemoveAssetAssetAssetIdRemoveDeleteErrors[keyof RemoveAssetAssetAssetIdRemoveDeleteErrors]; +export type RemoveAssetAssetAssetIdRemoveDeleteError = + RemoveAssetAssetAssetIdRemoveDeleteErrors[keyof RemoveAssetAssetAssetIdRemoveDeleteErrors] export type RemoveAssetAssetAssetIdRemoveDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type RemoveAssetAssetAssetIdRemoveDeleteResponse = RemoveAssetAssetAssetIdRemoveDeleteResponses[keyof RemoveAssetAssetAssetIdRemoveDeleteResponses]; +export type RemoveAssetAssetAssetIdRemoveDeleteResponse = + RemoveAssetAssetAssetIdRemoveDeleteResponses[keyof RemoveAssetAssetAssetIdRemoveDeleteResponses] export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetData = { - body?: never; - path: { - /** - * Author Id - */ - author_id: number; - }; - query?: never; - url: '/author/{author_id}/publications'; -}; - -export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors = { + body?: never + path: { /** - * Validation Error + * Author Id */ - 422: HttpValidationError; -}; + author_id: number + } + query?: never + url: '/author/{author_id}/publications' +} -export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetError = GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors]; +export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetError = + GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors] export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses = { - /** - * Response Get Author Publications Author Author Id Publications Get - * Successful Response - */ - 200: Array; -}; + /** + * Response Get Author Publications Author Author Id Publications Get + * Successful Response + */ + 200: Array +} -export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses]; +export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = + GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses] export type GetContactsContactGetData = { - body?: never; - path?: never; - query?: { - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Thing Id - */ - thing_id?: number | null; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/contact'; -}; - -export type GetContactsContactGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Thing Id + */ + thing_id?: number | null + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/contact' +} + +export type GetContactsContactGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetContactsContactGetError = GetContactsContactGetErrors[keyof GetContactsContactGetErrors]; +export type GetContactsContactGetError = + GetContactsContactGetErrors[keyof GetContactsContactGetErrors] export type GetContactsContactGetResponses = { - /** - * Successful Response - */ - 200: PageContactResponse; -}; + /** + * Successful Response + */ + 200: PageContactResponse +} -export type GetContactsContactGetResponse = GetContactsContactGetResponses[keyof GetContactsContactGetResponses]; +export type GetContactsContactGetResponse = + GetContactsContactGetResponses[keyof GetContactsContactGetResponses] export type CreateContactContactPostData = { - body: CreateContact; - path?: never; - query?: never; - url: '/contact'; -}; + body: CreateContact + path?: never + query?: never + url: '/contact' +} export type CreateContactContactPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateContactContactPostError = CreateContactContactPostErrors[keyof CreateContactContactPostErrors]; +export type CreateContactContactPostError = + CreateContactContactPostErrors[keyof CreateContactContactPostErrors] export type CreateContactContactPostResponses = { - /** - * Successful Response - */ - 201: ContactResponse; -}; + /** + * Successful Response + */ + 201: ContactResponse +} -export type CreateContactContactPostResponse = CreateContactContactPostResponses[keyof CreateContactContactPostResponses]; +export type CreateContactContactPostResponse = + CreateContactContactPostResponses[keyof CreateContactContactPostResponses] export type GetAddressesContactAddressGetData = { - body?: never; - path?: never; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/contact/address'; -}; - -export type GetAddressesContactAddressGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/contact/address' +} + +export type GetAddressesContactAddressGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetAddressesContactAddressGetError = GetAddressesContactAddressGetErrors[keyof GetAddressesContactAddressGetErrors]; +export type GetAddressesContactAddressGetError = + GetAddressesContactAddressGetErrors[keyof GetAddressesContactAddressGetErrors] export type GetAddressesContactAddressGetResponses = { - /** - * Successful Response - */ - 200: PageAddressResponse; -}; + /** + * Successful Response + */ + 200: PageAddressResponse +} -export type GetAddressesContactAddressGetResponse = GetAddressesContactAddressGetResponses[keyof GetAddressesContactAddressGetResponses]; +export type GetAddressesContactAddressGetResponse = + GetAddressesContactAddressGetResponses[keyof GetAddressesContactAddressGetResponses] export type CreateAddressContactAddressPostData = { - body: CreateAddress; - path?: never; - query?: never; - url: '/contact/address'; -}; + body: CreateAddress + path?: never + query?: never + url: '/contact/address' +} export type CreateAddressContactAddressPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateAddressContactAddressPostError = CreateAddressContactAddressPostErrors[keyof CreateAddressContactAddressPostErrors]; +export type CreateAddressContactAddressPostError = + CreateAddressContactAddressPostErrors[keyof CreateAddressContactAddressPostErrors] export type CreateAddressContactAddressPostResponses = { - /** - * Successful Response - */ - 201: AddressResponse; -}; + /** + * Successful Response + */ + 201: AddressResponse +} -export type CreateAddressContactAddressPostResponse = CreateAddressContactAddressPostResponses[keyof CreateAddressContactAddressPostResponses]; +export type CreateAddressContactAddressPostResponse = + CreateAddressContactAddressPostResponses[keyof CreateAddressContactAddressPostResponses] export type GetEmailsContactEmailGetData = { - body?: never; - path?: never; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/contact/email'; -}; - -export type GetEmailsContactEmailGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/contact/email' +} -export type GetEmailsContactEmailGetError = GetEmailsContactEmailGetErrors[keyof GetEmailsContactEmailGetErrors]; +export type GetEmailsContactEmailGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type GetEmailsContactEmailGetError = + GetEmailsContactEmailGetErrors[keyof GetEmailsContactEmailGetErrors] export type GetEmailsContactEmailGetResponses = { - /** - * Successful Response - */ - 200: PageEmailResponse; -}; + /** + * Successful Response + */ + 200: PageEmailResponse +} -export type GetEmailsContactEmailGetResponse = GetEmailsContactEmailGetResponses[keyof GetEmailsContactEmailGetResponses]; +export type GetEmailsContactEmailGetResponse = + GetEmailsContactEmailGetResponses[keyof GetEmailsContactEmailGetResponses] export type CreateEmailContactEmailPostData = { - body: CreateEmail; - path?: never; - query?: never; - url: '/contact/email'; -}; + body: CreateEmail + path?: never + query?: never + url: '/contact/email' +} export type CreateEmailContactEmailPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateEmailContactEmailPostError = CreateEmailContactEmailPostErrors[keyof CreateEmailContactEmailPostErrors]; +export type CreateEmailContactEmailPostError = + CreateEmailContactEmailPostErrors[keyof CreateEmailContactEmailPostErrors] export type CreateEmailContactEmailPostResponses = { - /** - * Successful Response - */ - 201: EmailResponse; -}; + /** + * Successful Response + */ + 201: EmailResponse +} -export type CreateEmailContactEmailPostResponse = CreateEmailContactEmailPostResponses[keyof CreateEmailContactEmailPostResponses]; +export type CreateEmailContactEmailPostResponse = + CreateEmailContactEmailPostResponses[keyof CreateEmailContactEmailPostResponses] export type GetPhonesContactPhoneGetData = { - body?: never; - path?: never; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/contact/phone'; -}; - -export type GetPhonesContactPhoneGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Page + * Page number */ - 422: HttpValidationError; -}; + page?: number + /** + * Size + */ + size?: number + } + url: '/contact/phone' +} + +export type GetPhonesContactPhoneGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetPhonesContactPhoneGetError = GetPhonesContactPhoneGetErrors[keyof GetPhonesContactPhoneGetErrors]; +export type GetPhonesContactPhoneGetError = + GetPhonesContactPhoneGetErrors[keyof GetPhonesContactPhoneGetErrors] export type GetPhonesContactPhoneGetResponses = { - /** - * Successful Response - */ - 200: PagePhoneResponse; -}; + /** + * Successful Response + */ + 200: PagePhoneResponse +} -export type GetPhonesContactPhoneGetResponse = GetPhonesContactPhoneGetResponses[keyof GetPhonesContactPhoneGetResponses]; +export type GetPhonesContactPhoneGetResponse = + GetPhonesContactPhoneGetResponses[keyof GetPhonesContactPhoneGetResponses] export type CreatePhoneContactPhonePostData = { - body: CreatePhone; - path?: never; - query?: never; - url: '/contact/phone'; -}; + body: CreatePhone + path?: never + query?: never + url: '/contact/phone' +} export type CreatePhoneContactPhonePostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreatePhoneContactPhonePostError = CreatePhoneContactPhonePostErrors[keyof CreatePhoneContactPhonePostErrors]; +export type CreatePhoneContactPhonePostError = + CreatePhoneContactPhonePostErrors[keyof CreatePhoneContactPhonePostErrors] export type CreatePhoneContactPhonePostResponses = { - /** - * Successful Response - */ - 201: PhoneResponse; -}; + /** + * Successful Response + */ + 201: PhoneResponse +} -export type CreatePhoneContactPhonePostResponse = CreatePhoneContactPhonePostResponses[keyof CreatePhoneContactPhonePostResponses]; +export type CreatePhoneContactPhonePostResponse = + CreatePhoneContactPhonePostResponses[keyof CreatePhoneContactPhonePostResponses] export type DeleteContactEmailContactEmailEmailIdDeleteData = { - body?: never; - path: { - /** - * Email Id - */ - email_id: number; - }; - query?: never; - url: '/contact/email/{email_id}'; -}; - -export type DeleteContactEmailContactEmailEmailIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Email Id */ - 422: HttpValidationError; -}; + email_id: number + } + query?: never + url: '/contact/email/{email_id}' +} + +export type DeleteContactEmailContactEmailEmailIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteContactEmailContactEmailEmailIdDeleteError = DeleteContactEmailContactEmailEmailIdDeleteErrors[keyof DeleteContactEmailContactEmailEmailIdDeleteErrors]; +export type DeleteContactEmailContactEmailEmailIdDeleteError = + DeleteContactEmailContactEmailEmailIdDeleteErrors[keyof DeleteContactEmailContactEmailEmailIdDeleteErrors] export type DeleteContactEmailContactEmailEmailIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type GetEmailByIdContactEmailEmailIdGetData = { - body?: never; - path: { - /** - * Email Id - */ - email_id: number; - }; - query?: never; - url: '/contact/email/{email_id}'; -}; - -export type GetEmailByIdContactEmailEmailIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Email Id */ - 422: HttpValidationError; -}; + email_id: number + } + query?: never + url: '/contact/email/{email_id}' +} + +export type GetEmailByIdContactEmailEmailIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetEmailByIdContactEmailEmailIdGetError = GetEmailByIdContactEmailEmailIdGetErrors[keyof GetEmailByIdContactEmailEmailIdGetErrors]; +export type GetEmailByIdContactEmailEmailIdGetError = + GetEmailByIdContactEmailEmailIdGetErrors[keyof GetEmailByIdContactEmailEmailIdGetErrors] export type GetEmailByIdContactEmailEmailIdGetResponses = { - /** - * Successful Response - */ - 200: EmailResponse; -}; + /** + * Successful Response + */ + 200: EmailResponse +} -export type GetEmailByIdContactEmailEmailIdGetResponse = GetEmailByIdContactEmailEmailIdGetResponses[keyof GetEmailByIdContactEmailEmailIdGetResponses]; +export type GetEmailByIdContactEmailEmailIdGetResponse = + GetEmailByIdContactEmailEmailIdGetResponses[keyof GetEmailByIdContactEmailEmailIdGetResponses] export type UpdateContactEmailContactEmailEmailIdPatchData = { - body: UpdateEmail; - path: { - /** - * Email Id - */ - email_id: number; - }; - query?: never; - url: '/contact/email/{email_id}'; -}; - -export type UpdateContactEmailContactEmailEmailIdPatchErrors = { + body: UpdateEmail + path: { /** - * Validation Error + * Email Id */ - 422: HttpValidationError; -}; + email_id: number + } + query?: never + url: '/contact/email/{email_id}' +} -export type UpdateContactEmailContactEmailEmailIdPatchError = UpdateContactEmailContactEmailEmailIdPatchErrors[keyof UpdateContactEmailContactEmailEmailIdPatchErrors]; +export type UpdateContactEmailContactEmailEmailIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type UpdateContactEmailContactEmailEmailIdPatchError = + UpdateContactEmailContactEmailEmailIdPatchErrors[keyof UpdateContactEmailContactEmailEmailIdPatchErrors] export type UpdateContactEmailContactEmailEmailIdPatchResponses = { - /** - * Successful Response - */ - 200: EmailResponse; -}; + /** + * Successful Response + */ + 200: EmailResponse +} -export type UpdateContactEmailContactEmailEmailIdPatchResponse = UpdateContactEmailContactEmailEmailIdPatchResponses[keyof UpdateContactEmailContactEmailEmailIdPatchResponses]; +export type UpdateContactEmailContactEmailEmailIdPatchResponse = + UpdateContactEmailContactEmailEmailIdPatchResponses[keyof UpdateContactEmailContactEmailEmailIdPatchResponses] export type DeleteContactPhoneContactPhonePhoneIdDeleteData = { - body?: never; - path: { - /** - * Phone Id - */ - phone_id: number; - }; - query?: never; - url: '/contact/phone/{phone_id}'; -}; - -export type DeleteContactPhoneContactPhonePhoneIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Phone Id */ - 422: HttpValidationError; -}; + phone_id: number + } + query?: never + url: '/contact/phone/{phone_id}' +} + +export type DeleteContactPhoneContactPhonePhoneIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteContactPhoneContactPhonePhoneIdDeleteError = DeleteContactPhoneContactPhonePhoneIdDeleteErrors[keyof DeleteContactPhoneContactPhonePhoneIdDeleteErrors]; +export type DeleteContactPhoneContactPhonePhoneIdDeleteError = + DeleteContactPhoneContactPhonePhoneIdDeleteErrors[keyof DeleteContactPhoneContactPhonePhoneIdDeleteErrors] export type DeleteContactPhoneContactPhonePhoneIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type GetPhoneByIdContactPhonePhoneIdGetData = { - body?: never; - path: { - /** - * Phone Id - */ - phone_id: number; - }; - query?: never; - url: '/contact/phone/{phone_id}'; -}; - -export type GetPhoneByIdContactPhonePhoneIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Phone Id */ - 422: HttpValidationError; -}; + phone_id: number + } + query?: never + url: '/contact/phone/{phone_id}' +} + +export type GetPhoneByIdContactPhonePhoneIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetPhoneByIdContactPhonePhoneIdGetError = GetPhoneByIdContactPhonePhoneIdGetErrors[keyof GetPhoneByIdContactPhonePhoneIdGetErrors]; +export type GetPhoneByIdContactPhonePhoneIdGetError = + GetPhoneByIdContactPhonePhoneIdGetErrors[keyof GetPhoneByIdContactPhonePhoneIdGetErrors] export type GetPhoneByIdContactPhonePhoneIdGetResponses = { - /** - * Successful Response - */ - 200: PhoneResponse; -}; + /** + * Successful Response + */ + 200: PhoneResponse +} -export type GetPhoneByIdContactPhonePhoneIdGetResponse = GetPhoneByIdContactPhonePhoneIdGetResponses[keyof GetPhoneByIdContactPhonePhoneIdGetResponses]; +export type GetPhoneByIdContactPhonePhoneIdGetResponse = + GetPhoneByIdContactPhonePhoneIdGetResponses[keyof GetPhoneByIdContactPhonePhoneIdGetResponses] export type UpdateContactPhoneContactPhonePhoneIdPatchData = { - body: UpdatePhone; - path: { - /** - * Phone Id - */ - phone_id: number; - }; - query?: never; - url: '/contact/phone/{phone_id}'; -}; - -export type UpdateContactPhoneContactPhonePhoneIdPatchErrors = { + body: UpdatePhone + path: { /** - * Validation Error + * Phone Id */ - 422: HttpValidationError; -}; + phone_id: number + } + query?: never + url: '/contact/phone/{phone_id}' +} + +export type UpdateContactPhoneContactPhonePhoneIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateContactPhoneContactPhonePhoneIdPatchError = UpdateContactPhoneContactPhonePhoneIdPatchErrors[keyof UpdateContactPhoneContactPhonePhoneIdPatchErrors]; +export type UpdateContactPhoneContactPhonePhoneIdPatchError = + UpdateContactPhoneContactPhonePhoneIdPatchErrors[keyof UpdateContactPhoneContactPhonePhoneIdPatchErrors] export type UpdateContactPhoneContactPhonePhoneIdPatchResponses = { - /** - * Successful Response - */ - 200: PhoneResponse; -}; + /** + * Successful Response + */ + 200: PhoneResponse +} -export type UpdateContactPhoneContactPhonePhoneIdPatchResponse = UpdateContactPhoneContactPhonePhoneIdPatchResponses[keyof UpdateContactPhoneContactPhonePhoneIdPatchResponses]; +export type UpdateContactPhoneContactPhonePhoneIdPatchResponse = + UpdateContactPhoneContactPhonePhoneIdPatchResponses[keyof UpdateContactPhoneContactPhonePhoneIdPatchResponses] export type DeleteContactAddressContactAddressAddressIdDeleteData = { - body?: never; - path: { - /** - * Address Id - */ - address_id: number; - }; - query?: never; - url: '/contact/address/{address_id}'; -}; - -export type DeleteContactAddressContactAddressAddressIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Address Id */ - 422: HttpValidationError; -}; + address_id: number + } + query?: never + url: '/contact/address/{address_id}' +} -export type DeleteContactAddressContactAddressAddressIdDeleteError = DeleteContactAddressContactAddressAddressIdDeleteErrors[keyof DeleteContactAddressContactAddressAddressIdDeleteErrors]; +export type DeleteContactAddressContactAddressAddressIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type DeleteContactAddressContactAddressAddressIdDeleteError = + DeleteContactAddressContactAddressAddressIdDeleteErrors[keyof DeleteContactAddressContactAddressAddressIdDeleteErrors] export type DeleteContactAddressContactAddressAddressIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type GetAddressByIdContactAddressAddressIdGetData = { - body?: never; - path: { - /** - * Address Id - */ - address_id: number; - }; - query?: never; - url: '/contact/address/{address_id}'; -}; - -export type GetAddressByIdContactAddressAddressIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Address Id */ - 422: HttpValidationError; -}; + address_id: number + } + query?: never + url: '/contact/address/{address_id}' +} + +export type GetAddressByIdContactAddressAddressIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetAddressByIdContactAddressAddressIdGetError = GetAddressByIdContactAddressAddressIdGetErrors[keyof GetAddressByIdContactAddressAddressIdGetErrors]; +export type GetAddressByIdContactAddressAddressIdGetError = + GetAddressByIdContactAddressAddressIdGetErrors[keyof GetAddressByIdContactAddressAddressIdGetErrors] export type GetAddressByIdContactAddressAddressIdGetResponses = { - /** - * Successful Response - */ - 200: AddressResponse; -}; + /** + * Successful Response + */ + 200: AddressResponse +} -export type GetAddressByIdContactAddressAddressIdGetResponse = GetAddressByIdContactAddressAddressIdGetResponses[keyof GetAddressByIdContactAddressAddressIdGetResponses]; +export type GetAddressByIdContactAddressAddressIdGetResponse = + GetAddressByIdContactAddressAddressIdGetResponses[keyof GetAddressByIdContactAddressAddressIdGetResponses] export type UpdateContactAddressContactAddressAddressIdPatchData = { - body: UpdateAddress; - path: { - /** - * Address Id - */ - address_id: number; - }; - query?: never; - url: '/contact/address/{address_id}'; -}; - -export type UpdateContactAddressContactAddressAddressIdPatchErrors = { + body: UpdateAddress + path: { /** - * Validation Error + * Address Id */ - 422: HttpValidationError; -}; + address_id: number + } + query?: never + url: '/contact/address/{address_id}' +} + +export type UpdateContactAddressContactAddressAddressIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateContactAddressContactAddressAddressIdPatchError = UpdateContactAddressContactAddressAddressIdPatchErrors[keyof UpdateContactAddressContactAddressAddressIdPatchErrors]; +export type UpdateContactAddressContactAddressAddressIdPatchError = + UpdateContactAddressContactAddressAddressIdPatchErrors[keyof UpdateContactAddressContactAddressAddressIdPatchErrors] export type UpdateContactAddressContactAddressAddressIdPatchResponses = { - /** - * Successful Response - */ - 200: AddressResponse; -}; + /** + * Successful Response + */ + 200: AddressResponse +} -export type UpdateContactAddressContactAddressAddressIdPatchResponse = UpdateContactAddressContactAddressAddressIdPatchResponses[keyof UpdateContactAddressContactAddressAddressIdPatchResponses]; +export type UpdateContactAddressContactAddressAddressIdPatchResponse = + UpdateContactAddressContactAddressAddressIdPatchResponses[keyof UpdateContactAddressContactAddressAddressIdPatchResponses] export type DeleteContactContactContactIdDeleteData = { - body?: never; - path: { - /** - * Contact Id - */ - contact_id: number; - }; - query?: never; - url: '/contact/{contact_id}'; -}; - -export type DeleteContactContactContactIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Contact Id */ - 422: HttpValidationError; -}; + contact_id: number + } + query?: never + url: '/contact/{contact_id}' +} -export type DeleteContactContactContactIdDeleteError = DeleteContactContactContactIdDeleteErrors[keyof DeleteContactContactContactIdDeleteErrors]; +export type DeleteContactContactContactIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type DeleteContactContactContactIdDeleteError = + DeleteContactContactContactIdDeleteErrors[keyof DeleteContactContactContactIdDeleteErrors] export type DeleteContactContactContactIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type GetContactByIdContactContactIdGetData = { - body?: never; - path: { - /** - * Contact Id - */ - contact_id: number; - }; - query?: never; - url: '/contact/{contact_id}'; -}; - -export type GetContactByIdContactContactIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Contact Id */ - 422: HttpValidationError; -}; + contact_id: number + } + query?: never + url: '/contact/{contact_id}' +} + +export type GetContactByIdContactContactIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetContactByIdContactContactIdGetError = GetContactByIdContactContactIdGetErrors[keyof GetContactByIdContactContactIdGetErrors]; +export type GetContactByIdContactContactIdGetError = + GetContactByIdContactContactIdGetErrors[keyof GetContactByIdContactContactIdGetErrors] export type GetContactByIdContactContactIdGetResponses = { - /** - * Successful Response - */ - 200: ContactResponse; -}; + /** + * Successful Response + */ + 200: ContactResponse +} -export type GetContactByIdContactContactIdGetResponse = GetContactByIdContactContactIdGetResponses[keyof GetContactByIdContactContactIdGetResponses]; +export type GetContactByIdContactContactIdGetResponse = + GetContactByIdContactContactIdGetResponses[keyof GetContactByIdContactContactIdGetResponses] export type UpdateContactContactContactIdPatchData = { - body: UpdateContact; - path: { - /** - * Contact Id - */ - contact_id: number; - }; - query?: never; - url: '/contact/{contact_id}'; -}; - -export type UpdateContactContactContactIdPatchErrors = { + body: UpdateContact + path: { /** - * Validation Error + * Contact Id */ - 422: HttpValidationError; -}; + contact_id: number + } + query?: never + url: '/contact/{contact_id}' +} -export type UpdateContactContactContactIdPatchError = UpdateContactContactContactIdPatchErrors[keyof UpdateContactContactContactIdPatchErrors]; +export type UpdateContactContactContactIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type UpdateContactContactContactIdPatchError = + UpdateContactContactContactIdPatchErrors[keyof UpdateContactContactContactIdPatchErrors] export type UpdateContactContactContactIdPatchResponses = { - /** - * Successful Response - */ - 200: ContactResponse; -}; + /** + * Successful Response + */ + 200: ContactResponse +} -export type UpdateContactContactContactIdPatchResponse = UpdateContactContactContactIdPatchResponses[keyof UpdateContactContactContactIdPatchResponses]; +export type UpdateContactContactContactIdPatchResponse = + UpdateContactContactContactIdPatchResponses[keyof UpdateContactContactContactIdPatchResponses] export type GetContactEmailsContactContactIdEmailGetData = { - body?: never; - path: { - /** - * Contact Id - */ - contact_id: number; - }; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/contact/{contact_id}/email'; -}; - -export type GetContactEmailsContactContactIdEmailGetErrors = { + body?: never + path: { /** - * Validation Error + * Contact Id + */ + contact_id: number + } + query?: { + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/contact/{contact_id}/email' +} + +export type GetContactEmailsContactContactIdEmailGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetContactEmailsContactContactIdEmailGetError = GetContactEmailsContactContactIdEmailGetErrors[keyof GetContactEmailsContactContactIdEmailGetErrors]; +export type GetContactEmailsContactContactIdEmailGetError = + GetContactEmailsContactContactIdEmailGetErrors[keyof GetContactEmailsContactContactIdEmailGetErrors] export type GetContactEmailsContactContactIdEmailGetResponses = { - /** - * Successful Response - */ - 200: PageEmailResponse; -}; + /** + * Successful Response + */ + 200: PageEmailResponse +} -export type GetContactEmailsContactContactIdEmailGetResponse = GetContactEmailsContactContactIdEmailGetResponses[keyof GetContactEmailsContactContactIdEmailGetResponses]; +export type GetContactEmailsContactContactIdEmailGetResponse = + GetContactEmailsContactContactIdEmailGetResponses[keyof GetContactEmailsContactContactIdEmailGetResponses] export type GetContactPhonesContactContactIdPhoneGetData = { - body?: never; - path: { - /** - * Contact Id - */ - contact_id: number; - }; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/contact/{contact_id}/phone'; -}; - -export type GetContactPhonesContactContactIdPhoneGetErrors = { + body?: never + path: { /** - * Validation Error + * Contact Id + */ + contact_id: number + } + query?: { + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/contact/{contact_id}/phone' +} + +export type GetContactPhonesContactContactIdPhoneGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetContactPhonesContactContactIdPhoneGetError = GetContactPhonesContactContactIdPhoneGetErrors[keyof GetContactPhonesContactContactIdPhoneGetErrors]; +export type GetContactPhonesContactContactIdPhoneGetError = + GetContactPhonesContactContactIdPhoneGetErrors[keyof GetContactPhonesContactContactIdPhoneGetErrors] export type GetContactPhonesContactContactIdPhoneGetResponses = { - /** - * Successful Response - */ - 200: PagePhoneResponse; -}; + /** + * Successful Response + */ + 200: PagePhoneResponse +} -export type GetContactPhonesContactContactIdPhoneGetResponse = GetContactPhonesContactContactIdPhoneGetResponses[keyof GetContactPhonesContactContactIdPhoneGetResponses]; +export type GetContactPhonesContactContactIdPhoneGetResponse = + GetContactPhonesContactContactIdPhoneGetResponses[keyof GetContactPhonesContactContactIdPhoneGetResponses] export type GetContactAddressesContactContactIdAddressGetData = { - body?: never; - path: { - /** - * Contact Id - */ - contact_id: number; - }; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/contact/{contact_id}/address'; -}; - -export type GetContactAddressesContactContactIdAddressGetErrors = { + body?: never + path: { /** - * Validation Error + * Contact Id + */ + contact_id: number + } + query?: { + /** + * Page + * Page number */ - 422: HttpValidationError; -}; + page?: number + /** + * Size + */ + size?: number + } + url: '/contact/{contact_id}/address' +} + +export type GetContactAddressesContactContactIdAddressGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetContactAddressesContactContactIdAddressGetError = GetContactAddressesContactContactIdAddressGetErrors[keyof GetContactAddressesContactContactIdAddressGetErrors]; +export type GetContactAddressesContactContactIdAddressGetError = + GetContactAddressesContactContactIdAddressGetErrors[keyof GetContactAddressesContactContactIdAddressGetErrors] export type GetContactAddressesContactContactIdAddressGetResponses = { - /** - * Successful Response - */ - 200: PageAddressResponse; -}; + /** + * Successful Response + */ + 200: PageAddressResponse +} -export type GetContactAddressesContactContactIdAddressGetResponse = GetContactAddressesContactContactIdAddressGetResponses[keyof GetContactAddressesContactContactIdAddressGetResponses]; +export type GetContactAddressesContactContactIdAddressGetResponse = + GetContactAddressesContactContactIdAddressGetResponses[keyof GetContactAddressesContactContactIdAddressGetResponses] export type GetGeospatialGeospatialGetData = { - body?: never; - path?: never; - query?: { - /** - * thing_type - */ - thing_type?: Array; - /** - * group - */ - group?: string | number; - /** - * format - * Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile. - */ - format?: string; - }; - url: '/geospatial'; -}; - -export type GetGeospatialGeospatialGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * thing_type + */ + thing_type?: Array + /** + * group + */ + group?: string | number + /** + * format + * Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile. */ - 422: HttpValidationError; -}; + format?: string + } + url: '/geospatial' +} -export type GetGeospatialGeospatialGetError = GetGeospatialGeospatialGetErrors[keyof GetGeospatialGeospatialGetErrors]; +export type GetGeospatialGeospatialGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type GetGeospatialGeospatialGetError = + GetGeospatialGeospatialGetErrors[keyof GetGeospatialGeospatialGetErrors] export type GetGeospatialGeospatialGetResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type GetProjectAreaGeospatialProjectAreaGroupIdGetData = { - body?: never; - path: { - /** - * Group Id - */ - group_id: number; - }; - query?: never; - url: '/geospatial/project-area/{group_id}'; -}; - -export type GetProjectAreaGeospatialProjectAreaGroupIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Group Id */ - 422: HttpValidationError; -}; + group_id: number + } + query?: never + url: '/geospatial/project-area/{group_id}' +} + +export type GetProjectAreaGeospatialProjectAreaGroupIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetProjectAreaGeospatialProjectAreaGroupIdGetError = GetProjectAreaGeospatialProjectAreaGroupIdGetErrors[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetErrors]; +export type GetProjectAreaGeospatialProjectAreaGroupIdGetError = + GetProjectAreaGeospatialProjectAreaGroupIdGetErrors[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetErrors] export type GetProjectAreaGeospatialProjectAreaGroupIdGetResponses = { - /** - * Successful Response - */ - 200: FeatureCollectionResponse; -}; + /** + * Successful Response + */ + 200: FeatureCollectionResponse +} -export type GetProjectAreaGeospatialProjectAreaGroupIdGetResponse = GetProjectAreaGeospatialProjectAreaGroupIdGetResponses[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetResponses]; +export type GetProjectAreaGeospatialProjectAreaGroupIdGetResponse = + GetProjectAreaGeospatialProjectAreaGroupIdGetResponses[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetResponses] export type GetGroupsGroupGetData = { - body?: never; - path?: never; - query?: { - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/group'; -}; - -export type GetGroupsGroupGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Filter + */ + filter?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/group' +} + +export type GetGroupsGroupGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetGroupsGroupGetError = GetGroupsGroupGetErrors[keyof GetGroupsGroupGetErrors]; +export type GetGroupsGroupGetError = + GetGroupsGroupGetErrors[keyof GetGroupsGroupGetErrors] export type GetGroupsGroupGetResponses = { - /** - * Successful Response - */ - 200: PageGroupResponse; -}; + /** + * Successful Response + */ + 200: PageGroupResponse +} -export type GetGroupsGroupGetResponse = GetGroupsGroupGetResponses[keyof GetGroupsGroupGetResponses]; +export type GetGroupsGroupGetResponse = + GetGroupsGroupGetResponses[keyof GetGroupsGroupGetResponses] export type CreateGroupGroupPostData = { - body: CreateGroup; - path?: never; - query?: never; - url: '/group'; -}; + body: CreateGroup + path?: never + query?: never + url: '/group' +} export type CreateGroupGroupPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateGroupGroupPostError = CreateGroupGroupPostErrors[keyof CreateGroupGroupPostErrors]; +export type CreateGroupGroupPostError = + CreateGroupGroupPostErrors[keyof CreateGroupGroupPostErrors] export type CreateGroupGroupPostResponses = { - /** - * Successful Response - */ - 201: GroupResponse; -}; + /** + * Successful Response + */ + 201: GroupResponse +} -export type CreateGroupGroupPostResponse = CreateGroupGroupPostResponses[keyof CreateGroupGroupPostResponses]; +export type CreateGroupGroupPostResponse = + CreateGroupGroupPostResponses[keyof CreateGroupGroupPostResponses] export type DeleteGroupGroupGroupIdDeleteData = { - body?: never; - path: { - /** - * Group Id - */ - group_id: number; - }; - query?: never; - url: '/group/{group_id}'; -}; - -export type DeleteGroupGroupGroupIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Group Id */ - 422: HttpValidationError; -}; + group_id: number + } + query?: never + url: '/group/{group_id}' +} + +export type DeleteGroupGroupGroupIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteGroupGroupGroupIdDeleteError = DeleteGroupGroupGroupIdDeleteErrors[keyof DeleteGroupGroupGroupIdDeleteErrors]; +export type DeleteGroupGroupGroupIdDeleteError = + DeleteGroupGroupGroupIdDeleteErrors[keyof DeleteGroupGroupGroupIdDeleteErrors] export type DeleteGroupGroupGroupIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteGroupGroupGroupIdDeleteResponse = DeleteGroupGroupGroupIdDeleteResponses[keyof DeleteGroupGroupGroupIdDeleteResponses]; +export type DeleteGroupGroupGroupIdDeleteResponse = + DeleteGroupGroupGroupIdDeleteResponses[keyof DeleteGroupGroupGroupIdDeleteResponses] export type GetGroupByIdGroupGroupIdGetData = { - body?: never; - path: { - /** - * Group Id - */ - group_id: number; - }; - query?: never; - url: '/group/{group_id}'; -}; - -export type GetGroupByIdGroupGroupIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Group Id */ - 422: HttpValidationError; -}; + group_id: number + } + query?: never + url: '/group/{group_id}' +} -export type GetGroupByIdGroupGroupIdGetError = GetGroupByIdGroupGroupIdGetErrors[keyof GetGroupByIdGroupGroupIdGetErrors]; +export type GetGroupByIdGroupGroupIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetGroupByIdGroupGroupIdGetResponses = { - /** - * Successful Response - */ - 200: GroupResponse; -}; +export type GetGroupByIdGroupGroupIdGetError = + GetGroupByIdGroupGroupIdGetErrors[keyof GetGroupByIdGroupGroupIdGetErrors] -export type GetGroupByIdGroupGroupIdGetResponse = GetGroupByIdGroupGroupIdGetResponses[keyof GetGroupByIdGroupGroupIdGetResponses]; +export type GetGroupByIdGroupGroupIdGetResponses = { + /** + * Successful Response + */ + 200: GroupResponse +} -export type UpdateGroupGroupGroupIdPatchData = { - body: UpdateGroup; - path: { - /** - * Group Id - */ - group_id: number; - }; - query?: never; - url: '/group/{group_id}'; -}; +export type GetGroupByIdGroupGroupIdGetResponse = + GetGroupByIdGroupGroupIdGetResponses[keyof GetGroupByIdGroupGroupIdGetResponses] -export type UpdateGroupGroupGroupIdPatchErrors = { +export type UpdateGroupGroupGroupIdPatchData = { + body: UpdateGroup + path: { /** - * Validation Error + * Group Id */ - 422: HttpValidationError; -}; + group_id: number + } + query?: never + url: '/group/{group_id}' +} + +export type UpdateGroupGroupGroupIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateGroupGroupGroupIdPatchError = UpdateGroupGroupGroupIdPatchErrors[keyof UpdateGroupGroupGroupIdPatchErrors]; +export type UpdateGroupGroupGroupIdPatchError = + UpdateGroupGroupGroupIdPatchErrors[keyof UpdateGroupGroupGroupIdPatchErrors] export type UpdateGroupGroupGroupIdPatchResponses = { - /** - * Successful Response - */ - 200: GroupResponse; -}; + /** + * Successful Response + */ + 200: GroupResponse +} -export type UpdateGroupGroupGroupIdPatchResponse = UpdateGroupGroupGroupIdPatchResponses[keyof UpdateGroupGroupGroupIdPatchResponses]; +export type UpdateGroupGroupGroupIdPatchResponse = + UpdateGroupGroupGroupIdPatchResponses[keyof UpdateGroupGroupGroupIdPatchResponses] export type GetLexiconCategoriesLexiconCategoryGetData = { - body?: never; - path?: never; - query?: { - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/lexicon/category'; -}; - -export type GetLexiconCategoriesLexiconCategoryGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Sort */ - 422: HttpValidationError; -}; + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size + */ + size?: number + } + url: '/lexicon/category' +} + +export type GetLexiconCategoriesLexiconCategoryGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetLexiconCategoriesLexiconCategoryGetError = GetLexiconCategoriesLexiconCategoryGetErrors[keyof GetLexiconCategoriesLexiconCategoryGetErrors]; +export type GetLexiconCategoriesLexiconCategoryGetError = + GetLexiconCategoriesLexiconCategoryGetErrors[keyof GetLexiconCategoriesLexiconCategoryGetErrors] export type GetLexiconCategoriesLexiconCategoryGetResponses = { - /** - * Successful Response - */ - 200: PageLexiconCategoryResponse; -}; + /** + * Successful Response + */ + 200: PageLexiconCategoryResponse +} -export type GetLexiconCategoriesLexiconCategoryGetResponse = GetLexiconCategoriesLexiconCategoryGetResponses[keyof GetLexiconCategoriesLexiconCategoryGetResponses]; +export type GetLexiconCategoriesLexiconCategoryGetResponse = + GetLexiconCategoriesLexiconCategoryGetResponses[keyof GetLexiconCategoriesLexiconCategoryGetResponses] export type AddCategoryLexiconCategoryPostData = { - body: CreateLexiconCategory; - path?: never; - query?: never; - url: '/lexicon/category'; -}; + body: CreateLexiconCategory + path?: never + query?: never + url: '/lexicon/category' +} export type AddCategoryLexiconCategoryPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type AddCategoryLexiconCategoryPostError = AddCategoryLexiconCategoryPostErrors[keyof AddCategoryLexiconCategoryPostErrors]; +export type AddCategoryLexiconCategoryPostError = + AddCategoryLexiconCategoryPostErrors[keyof AddCategoryLexiconCategoryPostErrors] export type AddCategoryLexiconCategoryPostResponses = { - /** - * Successful Response - */ - 201: LexiconCategoryResponse; -}; + /** + * Successful Response + */ + 201: LexiconCategoryResponse +} -export type AddCategoryLexiconCategoryPostResponse = AddCategoryLexiconCategoryPostResponses[keyof AddCategoryLexiconCategoryPostResponses]; +export type AddCategoryLexiconCategoryPostResponse = + AddCategoryLexiconCategoryPostResponses[keyof AddCategoryLexiconCategoryPostResponses] export type GetLexiconTermsLexiconTermGetData = { - body?: never; - path?: never; - query?: { - /** - * Category - */ - category?: string | null; - /** - * Term - */ - term?: string | null; - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/lexicon/term'; -}; - -export type GetLexiconTermsLexiconTermGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Category + */ + category?: string | null + /** + * Term + */ + term?: string | null + /** + * Sort + */ + sort?: string + /** + * Order */ - 422: HttpValidationError; -}; + order?: string + /** + * Filter + */ + filter?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size + */ + size?: number + } + url: '/lexicon/term' +} -export type GetLexiconTermsLexiconTermGetError = GetLexiconTermsLexiconTermGetErrors[keyof GetLexiconTermsLexiconTermGetErrors]; +export type GetLexiconTermsLexiconTermGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type GetLexiconTermsLexiconTermGetError = + GetLexiconTermsLexiconTermGetErrors[keyof GetLexiconTermsLexiconTermGetErrors] export type GetLexiconTermsLexiconTermGetResponses = { - /** - * Successful Response - */ - 200: PageLexiconTermResponse; -}; + /** + * Successful Response + */ + 200: PageLexiconTermResponse +} -export type GetLexiconTermsLexiconTermGetResponse = GetLexiconTermsLexiconTermGetResponses[keyof GetLexiconTermsLexiconTermGetResponses]; +export type GetLexiconTermsLexiconTermGetResponse = + GetLexiconTermsLexiconTermGetResponses[keyof GetLexiconTermsLexiconTermGetResponses] export type AddTermLexiconTermPostData = { - body: CreateLexiconTerm; - path?: never; - query?: never; - url: '/lexicon/term'; -}; + body: CreateLexiconTerm + path?: never + query?: never + url: '/lexicon/term' +} export type AddTermLexiconTermPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type AddTermLexiconTermPostError = AddTermLexiconTermPostErrors[keyof AddTermLexiconTermPostErrors]; +export type AddTermLexiconTermPostError = + AddTermLexiconTermPostErrors[keyof AddTermLexiconTermPostErrors] export type AddTermLexiconTermPostResponses = { - /** - * Successful Response - */ - 201: LexiconTermResponse; -}; + /** + * Successful Response + */ + 201: LexiconTermResponse +} -export type AddTermLexiconTermPostResponse = AddTermLexiconTermPostResponses[keyof AddTermLexiconTermPostResponses]; +export type AddTermLexiconTermPostResponse = + AddTermLexiconTermPostResponses[keyof AddTermLexiconTermPostResponses] export type GetLexiconTriplesLexiconTripleGetData = { - body?: never; - path?: never; - query?: { - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/lexicon/triple'; -}; - -export type GetLexiconTriplesLexiconTripleGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/lexicon/triple' +} + +export type GetLexiconTriplesLexiconTripleGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetLexiconTriplesLexiconTripleGetError = GetLexiconTriplesLexiconTripleGetErrors[keyof GetLexiconTriplesLexiconTripleGetErrors]; +export type GetLexiconTriplesLexiconTripleGetError = + GetLexiconTriplesLexiconTripleGetErrors[keyof GetLexiconTriplesLexiconTripleGetErrors] export type GetLexiconTriplesLexiconTripleGetResponses = { - /** - * Successful Response - */ - 200: PageLexiconTripleResponse; -}; + /** + * Successful Response + */ + 200: PageLexiconTripleResponse +} -export type GetLexiconTriplesLexiconTripleGetResponse = GetLexiconTriplesLexiconTripleGetResponses[keyof GetLexiconTriplesLexiconTripleGetResponses]; +export type GetLexiconTriplesLexiconTripleGetResponse = + GetLexiconTriplesLexiconTripleGetResponses[keyof GetLexiconTriplesLexiconTripleGetResponses] export type AddTripleLexiconTriplePostData = { - body: CreateLexiconTriple; - path?: never; - query?: never; - url: '/lexicon/triple'; -}; + body: CreateLexiconTriple + path?: never + query?: never + url: '/lexicon/triple' +} export type AddTripleLexiconTriplePostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type AddTripleLexiconTriplePostError = AddTripleLexiconTriplePostErrors[keyof AddTripleLexiconTriplePostErrors]; +export type AddTripleLexiconTriplePostError = + AddTripleLexiconTriplePostErrors[keyof AddTripleLexiconTriplePostErrors] export type AddTripleLexiconTriplePostResponses = { - /** - * Successful Response - */ - 201: LexiconTripleResponse; -}; + /** + * Successful Response + */ + 201: LexiconTripleResponse +} -export type AddTripleLexiconTriplePostResponse = AddTripleLexiconTriplePostResponses[keyof AddTripleLexiconTriplePostResponses]; +export type AddTripleLexiconTriplePostResponse = + AddTripleLexiconTriplePostResponses[keyof AddTripleLexiconTriplePostResponses] export type DeleteLexiconTermLexiconTermTermIdDeleteData = { - body?: never; - path: { - /** - * Term Id - */ - term_id: number; - }; - query?: never; - url: '/lexicon/term/{term_id}'; -}; - -export type DeleteLexiconTermLexiconTermTermIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Term Id */ - 422: HttpValidationError; -}; + term_id: number + } + query?: never + url: '/lexicon/term/{term_id}' +} -export type DeleteLexiconTermLexiconTermTermIdDeleteError = DeleteLexiconTermLexiconTermTermIdDeleteErrors[keyof DeleteLexiconTermLexiconTermTermIdDeleteErrors]; +export type DeleteLexiconTermLexiconTermTermIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type DeleteLexiconTermLexiconTermTermIdDeleteError = + DeleteLexiconTermLexiconTermTermIdDeleteErrors[keyof DeleteLexiconTermLexiconTermTermIdDeleteErrors] export type DeleteLexiconTermLexiconTermTermIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteLexiconTermLexiconTermTermIdDeleteResponse = DeleteLexiconTermLexiconTermTermIdDeleteResponses[keyof DeleteLexiconTermLexiconTermTermIdDeleteResponses]; +export type DeleteLexiconTermLexiconTermTermIdDeleteResponse = + DeleteLexiconTermLexiconTermTermIdDeleteResponses[keyof DeleteLexiconTermLexiconTermTermIdDeleteResponses] export type GetLexiconTermLexiconTermTermIdGetData = { - body?: never; - path: { - /** - * Term Id - */ - term_id: number; - }; - query?: never; - url: '/lexicon/term/{term_id}'; -}; - -export type GetLexiconTermLexiconTermTermIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Term Id */ - 422: HttpValidationError; -}; + term_id: number + } + query?: never + url: '/lexicon/term/{term_id}' +} + +export type GetLexiconTermLexiconTermTermIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetLexiconTermLexiconTermTermIdGetError = GetLexiconTermLexiconTermTermIdGetErrors[keyof GetLexiconTermLexiconTermTermIdGetErrors]; +export type GetLexiconTermLexiconTermTermIdGetError = + GetLexiconTermLexiconTermTermIdGetErrors[keyof GetLexiconTermLexiconTermTermIdGetErrors] export type GetLexiconTermLexiconTermTermIdGetResponses = { - /** - * Successful Response - */ - 200: LexiconTermResponse; -}; + /** + * Successful Response + */ + 200: LexiconTermResponse +} -export type GetLexiconTermLexiconTermTermIdGetResponse = GetLexiconTermLexiconTermTermIdGetResponses[keyof GetLexiconTermLexiconTermTermIdGetResponses]; +export type GetLexiconTermLexiconTermTermIdGetResponse = + GetLexiconTermLexiconTermTermIdGetResponses[keyof GetLexiconTermLexiconTermTermIdGetResponses] export type UpdateLexiconTermLexiconTermTermIdPatchData = { - body: UpdateLexiconTerm; - path: { - /** - * Term Id - */ - term_id: number; - }; - query?: never; - url: '/lexicon/term/{term_id}'; -}; - -export type UpdateLexiconTermLexiconTermTermIdPatchErrors = { + body: UpdateLexiconTerm + path: { /** - * Validation Error + * Term Id */ - 422: HttpValidationError; -}; + term_id: number + } + query?: never + url: '/lexicon/term/{term_id}' +} + +export type UpdateLexiconTermLexiconTermTermIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateLexiconTermLexiconTermTermIdPatchError = UpdateLexiconTermLexiconTermTermIdPatchErrors[keyof UpdateLexiconTermLexiconTermTermIdPatchErrors]; +export type UpdateLexiconTermLexiconTermTermIdPatchError = + UpdateLexiconTermLexiconTermTermIdPatchErrors[keyof UpdateLexiconTermLexiconTermTermIdPatchErrors] export type UpdateLexiconTermLexiconTermTermIdPatchResponses = { - /** - * Successful Response - */ - 200: LexiconTermResponse; -}; + /** + * Successful Response + */ + 200: LexiconTermResponse +} -export type UpdateLexiconTermLexiconTermTermIdPatchResponse = UpdateLexiconTermLexiconTermTermIdPatchResponses[keyof UpdateLexiconTermLexiconTermTermIdPatchResponses]; +export type UpdateLexiconTermLexiconTermTermIdPatchResponse = + UpdateLexiconTermLexiconTermTermIdPatchResponses[keyof UpdateLexiconTermLexiconTermTermIdPatchResponses] export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteData = { - body?: never; - path: { - /** - * Category Id - */ - category_id: number; - }; - query?: never; - url: '/lexicon/category/{category_id}'; -}; - -export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Category Id */ - 422: HttpValidationError; -}; + category_id: number + } + query?: never + url: '/lexicon/category/{category_id}' +} + +export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteError = DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors]; +export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteError = + DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors] export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses]; +export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = + DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses] export type GetLexiconCategoryLexiconCategoryCategoryIdGetData = { - body?: never; - path: { - /** - * Category Id - */ - category_id: number; - }; - query?: never; - url: '/lexicon/category/{category_id}'; -}; - -export type GetLexiconCategoryLexiconCategoryCategoryIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Category Id */ - 422: HttpValidationError; -}; + category_id: number + } + query?: never + url: '/lexicon/category/{category_id}' +} -export type GetLexiconCategoryLexiconCategoryCategoryIdGetError = GetLexiconCategoryLexiconCategoryCategoryIdGetErrors[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetErrors]; +export type GetLexiconCategoryLexiconCategoryCategoryIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type GetLexiconCategoryLexiconCategoryCategoryIdGetError = + GetLexiconCategoryLexiconCategoryCategoryIdGetErrors[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetErrors] export type GetLexiconCategoryLexiconCategoryCategoryIdGetResponses = { - /** - * Successful Response - */ - 200: LexiconCategoryResponse; -}; + /** + * Successful Response + */ + 200: LexiconCategoryResponse +} -export type GetLexiconCategoryLexiconCategoryCategoryIdGetResponse = GetLexiconCategoryLexiconCategoryCategoryIdGetResponses[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetResponses]; +export type GetLexiconCategoryLexiconCategoryCategoryIdGetResponse = + GetLexiconCategoryLexiconCategoryCategoryIdGetResponses[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetResponses] export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchData = { - body: UpdateLexiconCategory; - path: { - /** - * Category Id - */ - category_id: number; - }; - query?: never; - url: '/lexicon/category/{category_id}'; -}; - -export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors = { + body: UpdateLexiconCategory + path: { /** - * Validation Error + * Category Id */ - 422: HttpValidationError; -}; + category_id: number + } + query?: never + url: '/lexicon/category/{category_id}' +} + +export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchError = UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors]; +export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchError = + UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors] export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses = { - /** - * Successful Response - */ - 200: LexiconCategoryResponse; -}; + /** + * Successful Response + */ + 200: LexiconCategoryResponse +} -export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses]; +export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = + UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses] export type DeleteLexiconTripleLexiconTripleTripleIdDeleteData = { - body?: never; - path: { - /** - * Triple Id - */ - triple_id: number; - }; - query?: never; - url: '/lexicon/triple/{triple_id}'; -}; - -export type DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Triple Id */ - 422: HttpValidationError; -}; + triple_id: number + } + query?: never + url: '/lexicon/triple/{triple_id}' +} + +export type DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteLexiconTripleLexiconTripleTripleIdDeleteError = DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors]; +export type DeleteLexiconTripleLexiconTripleTripleIdDeleteError = + DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors] export type DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses]; +export type DeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = + DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses] export type GetLexiconTripleLexiconTripleTripleIdGetData = { - body?: never; - path: { - /** - * Triple Id - */ - triple_id: number; - }; - query?: never; - url: '/lexicon/triple/{triple_id}'; -}; - -export type GetLexiconTripleLexiconTripleTripleIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Triple Id */ - 422: HttpValidationError; -}; + triple_id: number + } + query?: never + url: '/lexicon/triple/{triple_id}' +} + +export type GetLexiconTripleLexiconTripleTripleIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetLexiconTripleLexiconTripleTripleIdGetError = GetLexiconTripleLexiconTripleTripleIdGetErrors[keyof GetLexiconTripleLexiconTripleTripleIdGetErrors]; +export type GetLexiconTripleLexiconTripleTripleIdGetError = + GetLexiconTripleLexiconTripleTripleIdGetErrors[keyof GetLexiconTripleLexiconTripleTripleIdGetErrors] export type GetLexiconTripleLexiconTripleTripleIdGetResponses = { - /** - * Successful Response - */ - 200: LexiconTripleResponse; -}; + /** + * Successful Response + */ + 200: LexiconTripleResponse +} -export type GetLexiconTripleLexiconTripleTripleIdGetResponse = GetLexiconTripleLexiconTripleTripleIdGetResponses[keyof GetLexiconTripleLexiconTripleTripleIdGetResponses]; +export type GetLexiconTripleLexiconTripleTripleIdGetResponse = + GetLexiconTripleLexiconTripleTripleIdGetResponses[keyof GetLexiconTripleLexiconTripleTripleIdGetResponses] export type UpdateLexiconTripleLexiconTripleTripleIdPatchData = { - body: UpdateLexiconTriple; - path: { - /** - * Triple Id - */ - triple_id: number; - }; - query?: never; - url: '/lexicon/triple/{triple_id}'; -}; - -export type UpdateLexiconTripleLexiconTripleTripleIdPatchErrors = { + body: UpdateLexiconTriple + path: { /** - * Validation Error + * Triple Id */ - 422: HttpValidationError; -}; + triple_id: number + } + query?: never + url: '/lexicon/triple/{triple_id}' +} -export type UpdateLexiconTripleLexiconTripleTripleIdPatchError = UpdateLexiconTripleLexiconTripleTripleIdPatchErrors[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchErrors]; +export type UpdateLexiconTripleLexiconTripleTripleIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type UpdateLexiconTripleLexiconTripleTripleIdPatchError = + UpdateLexiconTripleLexiconTripleTripleIdPatchErrors[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchErrors] export type UpdateLexiconTripleLexiconTripleTripleIdPatchResponses = { - /** - * Successful Response - */ - 200: LexiconTripleResponse; -}; + /** + * Successful Response + */ + 200: LexiconTripleResponse +} -export type UpdateLexiconTripleLexiconTripleTripleIdPatchResponse = UpdateLexiconTripleLexiconTripleTripleIdPatchResponses[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchResponses]; +export type UpdateLexiconTripleLexiconTripleTripleIdPatchResponse = + UpdateLexiconTripleLexiconTripleTripleIdPatchResponses[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchResponses] export type GetLocationLocationGetData = { - body?: never; - path?: never; - query?: { - /** - * Nearby Point - */ - nearby_point?: string; - /** - * Nearby Distance Km - */ - nearby_distance_km?: number; - /** - * Within - */ - within?: string; - /** - * Query - */ - query?: string; - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/location'; -}; - -export type GetLocationLocationGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Nearby Point + */ + nearby_point?: string + /** + * Nearby Distance Km + */ + nearby_distance_km?: number + /** + * Within + */ + within?: string + /** + * Query + */ + query?: string + /** + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Page + * Page number */ - 422: HttpValidationError; -}; + page?: number + /** + * Size + */ + size?: number + } + url: '/location' +} + +export type GetLocationLocationGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetLocationLocationGetError = GetLocationLocationGetErrors[keyof GetLocationLocationGetErrors]; +export type GetLocationLocationGetError = + GetLocationLocationGetErrors[keyof GetLocationLocationGetErrors] export type GetLocationLocationGetResponses = { - /** - * Successful Response - */ - 200: PageLocationResponse; -}; + /** + * Successful Response + */ + 200: PageLocationResponse +} -export type GetLocationLocationGetResponse = GetLocationLocationGetResponses[keyof GetLocationLocationGetResponses]; +export type GetLocationLocationGetResponse = + GetLocationLocationGetResponses[keyof GetLocationLocationGetResponses] export type CreateLocationLocationPostData = { - body: CreateLocation; - path?: never; - query?: never; - url: '/location'; -}; + body: CreateLocation + path?: never + query?: never + url: '/location' +} export type CreateLocationLocationPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateLocationLocationPostError = CreateLocationLocationPostErrors[keyof CreateLocationLocationPostErrors]; +export type CreateLocationLocationPostError = + CreateLocationLocationPostErrors[keyof CreateLocationLocationPostErrors] export type CreateLocationLocationPostResponses = { - /** - * Successful Response - */ - 201: LocationResponse; -}; + /** + * Successful Response + */ + 201: LocationResponse +} -export type CreateLocationLocationPostResponse = CreateLocationLocationPostResponses[keyof CreateLocationLocationPostResponses]; +export type CreateLocationLocationPostResponse = + CreateLocationLocationPostResponses[keyof CreateLocationLocationPostResponses] export type DeleteLocationLocationLocationIdDeleteData = { - body?: never; - path: { - /** - * Location Id - */ - location_id: number; - }; - query?: never; - url: '/location/{location_id}'; -}; + body?: never + path: { + /** + * Location Id + */ + location_id: number + } + query?: never + url: '/location/{location_id}' +} export type DeleteLocationLocationLocationIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type DeleteLocationLocationLocationIdDeleteError = + DeleteLocationLocationLocationIdDeleteErrors[keyof DeleteLocationLocationLocationIdDeleteErrors] + +export type DeleteLocationLocationLocationIdDeleteResponses = { + /** + * Successful Response + */ + 200: unknown +} + +export type GetLocationByIdLocationLocationIdGetData = { + body?: never + path: { /** - * Validation Error + * Location Id */ - 422: HttpValidationError; -}; + location_id: number + } + query?: never + url: '/location/{location_id}' +} + +export type GetLocationByIdLocationLocationIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteLocationLocationLocationIdDeleteError = DeleteLocationLocationLocationIdDeleteErrors[keyof DeleteLocationLocationLocationIdDeleteErrors]; +export type GetLocationByIdLocationLocationIdGetError = + GetLocationByIdLocationLocationIdGetErrors[keyof GetLocationByIdLocationLocationIdGetErrors] -export type DeleteLocationLocationLocationIdDeleteResponses = { +export type GetLocationByIdLocationLocationIdGetResponses = { + /** + * Successful Response + */ + 200: LocationResponse +} + +export type GetLocationByIdLocationLocationIdGetResponse = + GetLocationByIdLocationLocationIdGetResponses[keyof GetLocationByIdLocationLocationIdGetResponses] + +export type UpdateLocationLocationLocationIdPatchData = { + body: UpdateLocation + path: { /** - * Successful Response + * Location Id */ - 200: unknown; -}; + location_id: number + } + query?: never + url: '/location/{location_id}' +} -export type GetLocationByIdLocationLocationIdGetData = { - body?: never; - path: { - /** - * Location Id - */ - location_id: number; - }; - query?: never; - url: '/location/{location_id}'; -}; +export type UpdateLocationLocationLocationIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetLocationByIdLocationLocationIdGetErrors = { +export type UpdateLocationLocationLocationIdPatchError = + UpdateLocationLocationLocationIdPatchErrors[keyof UpdateLocationLocationLocationIdPatchErrors] + +export type UpdateLocationLocationLocationIdPatchResponses = { + /** + * Successful Response + */ + 200: LocationResponse +} + +export type UpdateLocationLocationLocationIdPatchResponse = + UpdateLocationLocationLocationIdPatchResponses[keyof UpdateLocationLocationLocationIdPatchResponses] + +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = + { + body?: never + path?: never + query?: { + /** + * Thing Id + */ + thing_id?: number | null + /** + * Sensor Id + */ + sensor_id?: number | null + /** + * Sample Id + */ + sample_id?: number | null + /** + * Start Time + */ + start_time?: string | null + /** + * End Time + */ + end_time?: string | null + /** + * Sort + */ + sort?: string | null + /** + * Order + */ + order?: string | null + /** + * Filter + */ + filter?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size + */ + size?: number + } + url: '/observation/groundwater-level' + } + +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors = + { /** * Validation Error */ - 422: HttpValidationError; -}; + 422: HttpValidationError + } -export type GetLocationByIdLocationLocationIdGetError = GetLocationByIdLocationLocationIdGetErrors[keyof GetLocationByIdLocationLocationIdGetErrors]; +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetError = + GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors] -export type GetLocationByIdLocationLocationIdGetResponses = { +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses = + { /** * Successful Response */ - 200: LocationResponse; -}; + 200: PageGroundwaterLevelObservationResponse + } -export type GetLocationByIdLocationLocationIdGetResponse = GetLocationByIdLocationLocationIdGetResponses[keyof GetLocationByIdLocationLocationIdGetResponses]; +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = + GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses] -export type UpdateLocationLocationLocationIdPatchData = { - body: UpdateLocation; - path: { - /** - * Location Id - */ - location_id: number; - }; - query?: never; - url: '/location/{location_id}'; -}; +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostData = + { + body: CreateGroundwaterLevelObservation + path?: never + query?: never + url: '/observation/groundwater-level' + } -export type UpdateLocationLocationLocationIdPatchErrors = { +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors = + { /** * Validation Error */ - 422: HttpValidationError; -}; + 422: HttpValidationError + } -export type UpdateLocationLocationLocationIdPatchError = UpdateLocationLocationLocationIdPatchErrors[keyof UpdateLocationLocationLocationIdPatchErrors]; +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostError = + AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors] -export type UpdateLocationLocationLocationIdPatchResponses = { +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses = + { + /** + * Successful Response + */ + 201: GroundwaterLevelObservationResponse + } + +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = + AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses] + +export type GetWaterChemistryObservationsObservationWaterChemistryGetData = { + body?: never + path?: never + query?: { + /** + * Thing Id + */ + thing_id?: number | null + /** + * Sensor Id + */ + sensor_id?: number | null + /** + * Sample Id + */ + sample_id?: number | null + /** + * Start Time + */ + start_time?: string | null + /** + * End Time + */ + end_time?: string | null /** - * Successful Response + * Sort */ - 200: LocationResponse; -}; - -export type UpdateLocationLocationLocationIdPatchResponse = UpdateLocationLocationLocationIdPatchResponses[keyof UpdateLocationLocationLocationIdPatchResponses]; - -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = { - body?: never; - path?: never; - query?: { - /** - * Thing Id - */ - thing_id?: number | null; - /** - * Sensor Id - */ - sensor_id?: number | null; - /** - * Sample Id - */ - sample_id?: number | null; - /** - * Start Time - */ - start_time?: string | null; - /** - * End Time - */ - end_time?: string | null; - /** - * Sort - */ - sort?: string | null; - /** - * Order - */ - order?: string | null; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/observation/groundwater-level'; -}; - -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors = { + sort?: string | null /** - * Validation Error + * Order */ - 422: HttpValidationError; -}; - -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetError = GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors]; - -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses = { + order?: string | null /** - * Successful Response + * Filter */ - 200: PageGroundwaterLevelObservationResponse; -}; - -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses]; - -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostData = { - body: CreateGroundwaterLevelObservation; - path?: never; - query?: never; - url: '/observation/groundwater-level'; -}; - -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors = { + filter?: string /** - * Validation Error + * Page + * Page number */ - 422: HttpValidationError; -}; - -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostError = AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors]; - -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses = { + page?: number /** - * Successful Response + * Size */ - 201: GroundwaterLevelObservationResponse; -}; - -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses]; - -export type GetWaterChemistryObservationsObservationWaterChemistryGetData = { - body?: never; - path?: never; - query?: { - /** - * Thing Id - */ - thing_id?: number | null; - /** - * Sensor Id - */ - sensor_id?: number | null; - /** - * Sample Id - */ - sample_id?: number | null; - /** - * Start Time - */ - start_time?: string | null; - /** - * End Time - */ - end_time?: string | null; - /** - * Sort - */ - sort?: string | null; - /** - * Order - */ - order?: string | null; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/observation/water-chemistry'; -}; + size?: number + } + url: '/observation/water-chemistry' +} export type GetWaterChemistryObservationsObservationWaterChemistryGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetWaterChemistryObservationsObservationWaterChemistryGetError = GetWaterChemistryObservationsObservationWaterChemistryGetErrors[keyof GetWaterChemistryObservationsObservationWaterChemistryGetErrors]; +export type GetWaterChemistryObservationsObservationWaterChemistryGetError = + GetWaterChemistryObservationsObservationWaterChemistryGetErrors[keyof GetWaterChemistryObservationsObservationWaterChemistryGetErrors] -export type GetWaterChemistryObservationsObservationWaterChemistryGetResponses = { +export type GetWaterChemistryObservationsObservationWaterChemistryGetResponses = + { /** * Successful Response */ - 200: PageWaterChemistryObservationResponse; -}; + 200: PageWaterChemistryObservationResponse + } -export type GetWaterChemistryObservationsObservationWaterChemistryGetResponse = GetWaterChemistryObservationsObservationWaterChemistryGetResponses[keyof GetWaterChemistryObservationsObservationWaterChemistryGetResponses]; +export type GetWaterChemistryObservationsObservationWaterChemistryGetResponse = + GetWaterChemistryObservationsObservationWaterChemistryGetResponses[keyof GetWaterChemistryObservationsObservationWaterChemistryGetResponses] export type AddWaterChemistryObservationObservationWaterChemistryPostData = { - body: CreateWaterChemistryObservation; - path?: never; - query?: never; - url: '/observation/water-chemistry'; -}; + body: CreateWaterChemistryObservation + path?: never + query?: never + url: '/observation/water-chemistry' +} export type AddWaterChemistryObservationObservationWaterChemistryPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type AddWaterChemistryObservationObservationWaterChemistryPostError = AddWaterChemistryObservationObservationWaterChemistryPostErrors[keyof AddWaterChemistryObservationObservationWaterChemistryPostErrors]; +export type AddWaterChemistryObservationObservationWaterChemistryPostError = + AddWaterChemistryObservationObservationWaterChemistryPostErrors[keyof AddWaterChemistryObservationObservationWaterChemistryPostErrors] -export type AddWaterChemistryObservationObservationWaterChemistryPostResponses = { +export type AddWaterChemistryObservationObservationWaterChemistryPostResponses = + { /** * Successful Response */ - 201: WaterChemistryObservationResponse; -}; + 201: WaterChemistryObservationResponse + } -export type AddWaterChemistryObservationObservationWaterChemistryPostResponse = AddWaterChemistryObservationObservationWaterChemistryPostResponses[keyof AddWaterChemistryObservationObservationWaterChemistryPostResponses]; +export type AddWaterChemistryObservationObservationWaterChemistryPostResponse = + AddWaterChemistryObservationObservationWaterChemistryPostResponses[keyof AddWaterChemistryObservationObservationWaterChemistryPostResponses] -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = { - body?: never; +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = + { + body?: never path: { - /** - * Observation Id - */ - observation_id: number; - }; - query?: never; - url: '/observation/groundwater-level/{observation_id}'; -}; - -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors = { + /** + * Observation Id + */ + observation_id: number + } + query?: never + url: '/observation/groundwater-level/{observation_id}' + } + +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors = + { /** * Validation Error */ - 422: HttpValidationError; -}; + 422: HttpValidationError + } -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetError = GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors]; +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetError = + GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors] -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses = { +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses = + { /** * Successful Response */ - 200: GroundwaterLevelObservationResponse; -}; + 200: GroundwaterLevelObservationResponse + } -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses]; +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = + GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses] -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = { - body: UpdateGroundwaterLevelObservation; +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = + { + body: UpdateGroundwaterLevelObservation path: { - /** - * Observation Id - */ - observation_id: number; - }; - query?: never; - url: '/observation/groundwater-level/{observation_id}'; -}; - -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors = { + /** + * Observation Id + */ + observation_id: number + } + query?: never + url: '/observation/groundwater-level/{observation_id}' + } + +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors = + { /** * Validation Error */ - 422: HttpValidationError; -}; + 422: HttpValidationError + } -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchError = UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors]; +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchError = + UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors] -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses = { +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses = + { /** * Successful Response */ - 200: GroundwaterLevelObservationResponse; -}; + 200: GroundwaterLevelObservationResponse + } -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses]; +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = + UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses] -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = { - body?: never; +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = + { + body?: never path: { - /** - * Observation Id - */ - observation_id: number; - }; - query?: never; - url: '/observation/water-chemistry/{observation_id}'; -}; - -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors = { + /** + * Observation Id + */ + observation_id: number + } + query?: never + url: '/observation/water-chemistry/{observation_id}' + } + +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors = + { /** * Validation Error */ - 422: HttpValidationError; -}; + 422: HttpValidationError + } -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetError = GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors]; +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetError = + GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors] -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses = { +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses = + { /** * Successful Response */ - 200: WaterChemistryObservationResponse; -}; + 200: WaterChemistryObservationResponse + } -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses]; +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = + GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses] -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = { - body: UpdateWaterChemistryObservation; +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = + { + body: UpdateWaterChemistryObservation path: { - /** - * Observation Id - */ - observation_id: number; - }; - query?: never; - url: '/observation/water-chemistry/{observation_id}'; -}; - -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors = { + /** + * Observation Id + */ + observation_id: number + } + query?: never + url: '/observation/water-chemistry/{observation_id}' + } + +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors = + { /** * Validation Error */ - 422: HttpValidationError; -}; + 422: HttpValidationError + } -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchError = UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors]; +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchError = + UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors] -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses = { +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses = + { /** * Successful Response */ - 200: WaterChemistryObservationResponse; -}; + 200: WaterChemistryObservationResponse + } -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses]; +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = + UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses] -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = { - body?: never; - path?: never; +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = + { + body?: never + path?: never query?: { - /** - * Thing Id - */ - thing_id?: number | null; - /** - * Parameter Id - */ - parameter_id?: number | null; - /** - * Start Time - */ - start_time?: string | null; - /** - * End Time - */ - end_time?: string | null; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/observation/transducer-groundwater-level'; -}; - -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors = { + /** + * Thing Id + */ + thing_id?: number | null + /** + * Parameter Id + */ + parameter_id?: number | null + /** + * Start Time + */ + start_time?: string | null + /** + * End Time + */ + end_time?: string | null + /** + * Page + * Page number + */ + page?: number + /** + * Size + */ + size?: number + } + url: '/observation/transducer-groundwater-level' + } + +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors = + { /** * Validation Error */ - 422: HttpValidationError; -}; + 422: HttpValidationError + } -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetError = GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors]; +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetError = + GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors] -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses = { +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses = + { /** * Successful Response */ - 200: PageTransducerObservationWithBlockResponse; -}; + 200: PageTransducerObservationWithBlockResponse + } -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses]; +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = + GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses] export type GetAllObservationsObservationGetData = { - body?: never; - path?: never; - query?: { - /** - * Thing Id - */ - thing_id?: number | null; - /** - * Sensor Id - */ - sensor_id?: number | null; - /** - * Sample Id - */ - sample_id?: number | null; - /** - * Start Time - */ - start_time?: string | null; - /** - * End Time - */ - end_time?: string | null; - /** - * Sort - */ - sort?: string | null; - /** - * Order - */ - order?: string | null; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/observation'; -}; - -export type GetAllObservationsObservationGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Thing Id + */ + thing_id?: number | null + /** + * Sensor Id + */ + sensor_id?: number | null + /** + * Sample Id + */ + sample_id?: number | null + /** + * Start Time + */ + start_time?: string | null + /** + * End Time + */ + end_time?: string | null + /** + * Sort + */ + sort?: string | null + /** + * Order + */ + order?: string | null + /** + * Filter + */ + filter?: string + /** + * Page + * Page number */ - 422: HttpValidationError; -}; + page?: number + /** + * Size + */ + size?: number + } + url: '/observation' +} + +export type GetAllObservationsObservationGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetAllObservationsObservationGetError = GetAllObservationsObservationGetErrors[keyof GetAllObservationsObservationGetErrors]; +export type GetAllObservationsObservationGetError = + GetAllObservationsObservationGetErrors[keyof GetAllObservationsObservationGetErrors] export type GetAllObservationsObservationGetResponses = { - /** - * Successful Response - */ - 200: PageObservationResponse; -}; + /** + * Successful Response + */ + 200: PageObservationResponse +} -export type GetAllObservationsObservationGetResponse = GetAllObservationsObservationGetResponses[keyof GetAllObservationsObservationGetResponses]; +export type GetAllObservationsObservationGetResponse = + GetAllObservationsObservationGetResponses[keyof GetAllObservationsObservationGetResponses] export type DeleteObservationObservationObservationIdDeleteData = { - body?: never; - path: { - /** - * Observation Id - */ - observation_id: number; - }; - query?: never; - url: '/observation/{observation_id}'; -}; - -export type DeleteObservationObservationObservationIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Observation Id */ - 422: HttpValidationError; -}; + observation_id: number + } + query?: never + url: '/observation/{observation_id}' +} -export type DeleteObservationObservationObservationIdDeleteError = DeleteObservationObservationObservationIdDeleteErrors[keyof DeleteObservationObservationObservationIdDeleteErrors]; +export type DeleteObservationObservationObservationIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type DeleteObservationObservationObservationIdDeleteError = + DeleteObservationObservationObservationIdDeleteErrors[keyof DeleteObservationObservationObservationIdDeleteErrors] export type DeleteObservationObservationObservationIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteObservationObservationObservationIdDeleteResponse = DeleteObservationObservationObservationIdDeleteResponses[keyof DeleteObservationObservationObservationIdDeleteResponses]; +export type DeleteObservationObservationObservationIdDeleteResponse = + DeleteObservationObservationObservationIdDeleteResponses[keyof DeleteObservationObservationObservationIdDeleteResponses] export type GetObservationByIdObservationObservationIdGetData = { - body?: never; - path: { - /** - * Observation Id - */ - observation_id: number; - }; - query?: never; - url: '/observation/{observation_id}'; -}; - -export type GetObservationByIdObservationObservationIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Observation Id */ - 422: HttpValidationError; -}; + observation_id: number + } + query?: never + url: '/observation/{observation_id}' +} + +export type GetObservationByIdObservationObservationIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetObservationByIdObservationObservationIdGetError = GetObservationByIdObservationObservationIdGetErrors[keyof GetObservationByIdObservationObservationIdGetErrors]; +export type GetObservationByIdObservationObservationIdGetError = + GetObservationByIdObservationObservationIdGetErrors[keyof GetObservationByIdObservationObservationIdGetErrors] export type GetObservationByIdObservationObservationIdGetResponses = { - /** - * Successful Response - */ - 200: ObservationResponse; -}; + /** + * Successful Response + */ + 200: ObservationResponse +} -export type GetObservationByIdObservationObservationIdGetResponse = GetObservationByIdObservationObservationIdGetResponses[keyof GetObservationByIdObservationObservationIdGetResponses]; +export type GetObservationByIdObservationObservationIdGetResponse = + GetObservationByIdObservationObservationIdGetResponses[keyof GetObservationByIdObservationObservationIdGetResponses] export type PostPublicationPublicationAddPostData = { - body: CreatePublication; - path?: never; - query?: never; - url: '/publication/add'; -}; + body: CreatePublication + path?: never + query?: never + url: '/publication/add' +} export type PostPublicationPublicationAddPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type PostPublicationPublicationAddPostError = PostPublicationPublicationAddPostErrors[keyof PostPublicationPublicationAddPostErrors]; +export type PostPublicationPublicationAddPostError = + PostPublicationPublicationAddPostErrors[keyof PostPublicationPublicationAddPostErrors] export type PostPublicationPublicationAddPostResponses = { - /** - * Successful Response - */ - 201: PublicationResponse; -}; + /** + * Successful Response + */ + 201: PublicationResponse +} -export type PostPublicationPublicationAddPostResponse = PostPublicationPublicationAddPostResponses[keyof PostPublicationPublicationAddPostResponses]; +export type PostPublicationPublicationAddPostResponse = + PostPublicationPublicationAddPostResponses[keyof PostPublicationPublicationAddPostResponses] export type GetSamplesSampleGetData = { - body?: never; - path?: never; - query?: { - /** - * Thing Id - */ - thing_id?: number | null; - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/sample'; -}; - -export type GetSamplesSampleGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Thing Id + */ + thing_id?: number | null + /** + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/sample' +} + +export type GetSamplesSampleGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetSamplesSampleGetError = GetSamplesSampleGetErrors[keyof GetSamplesSampleGetErrors]; +export type GetSamplesSampleGetError = + GetSamplesSampleGetErrors[keyof GetSamplesSampleGetErrors] export type GetSamplesSampleGetResponses = { - /** - * Successful Response - */ - 200: PageSampleResponse; -}; + /** + * Successful Response + */ + 200: PageSampleResponse +} -export type GetSamplesSampleGetResponse = GetSamplesSampleGetResponses[keyof GetSamplesSampleGetResponses]; +export type GetSamplesSampleGetResponse = + GetSamplesSampleGetResponses[keyof GetSamplesSampleGetResponses] export type AddSampleSamplePostData = { - body: CreateSample; - path?: never; - query?: never; - url: '/sample'; -}; + body: CreateSample + path?: never + query?: never + url: '/sample' +} export type AddSampleSamplePostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type AddSampleSamplePostError = AddSampleSamplePostErrors[keyof AddSampleSamplePostErrors]; +export type AddSampleSamplePostError = + AddSampleSamplePostErrors[keyof AddSampleSamplePostErrors] export type AddSampleSamplePostResponses = { - /** - * Successful Response - */ - 201: SampleResponse; -}; + /** + * Successful Response + */ + 201: SampleResponse +} -export type AddSampleSamplePostResponse = AddSampleSamplePostResponses[keyof AddSampleSamplePostResponses]; +export type AddSampleSamplePostResponse = + AddSampleSamplePostResponses[keyof AddSampleSamplePostResponses] export type DeleteSampleByIdSampleSampleIdDeleteData = { - body?: never; - path: { - /** - * Sample Id - */ - sample_id: number; - }; - query?: never; - url: '/sample/{sample_id}'; -}; - -export type DeleteSampleByIdSampleSampleIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Sample Id */ - 422: HttpValidationError; -}; + sample_id: number + } + query?: never + url: '/sample/{sample_id}' +} + +export type DeleteSampleByIdSampleSampleIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteSampleByIdSampleSampleIdDeleteError = DeleteSampleByIdSampleSampleIdDeleteErrors[keyof DeleteSampleByIdSampleSampleIdDeleteErrors]; +export type DeleteSampleByIdSampleSampleIdDeleteError = + DeleteSampleByIdSampleSampleIdDeleteErrors[keyof DeleteSampleByIdSampleSampleIdDeleteErrors] export type DeleteSampleByIdSampleSampleIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type GetSampleByIdSampleSampleIdGetData = { - body?: never; - path: { - /** - * Sample Id - */ - sample_id: number; - }; - query?: never; - url: '/sample/{sample_id}'; -}; - -export type GetSampleByIdSampleSampleIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Sample Id */ - 422: HttpValidationError; -}; + sample_id: number + } + query?: never + url: '/sample/{sample_id}' +} + +export type GetSampleByIdSampleSampleIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetSampleByIdSampleSampleIdGetError = GetSampleByIdSampleSampleIdGetErrors[keyof GetSampleByIdSampleSampleIdGetErrors]; +export type GetSampleByIdSampleSampleIdGetError = + GetSampleByIdSampleSampleIdGetErrors[keyof GetSampleByIdSampleSampleIdGetErrors] export type GetSampleByIdSampleSampleIdGetResponses = { - /** - * Response Get Sample By Id Sample Sample Id Get - * Successful Response - */ - 200: SampleResponse | ResourceNotFoundResponse; -}; + /** + * Response Get Sample By Id Sample Sample Id Get + * Successful Response + */ + 200: SampleResponse | ResourceNotFoundResponse +} -export type GetSampleByIdSampleSampleIdGetResponse = GetSampleByIdSampleSampleIdGetResponses[keyof GetSampleByIdSampleSampleIdGetResponses]; +export type GetSampleByIdSampleSampleIdGetResponse = + GetSampleByIdSampleSampleIdGetResponses[keyof GetSampleByIdSampleSampleIdGetResponses] export type UpdateSampleSampleSampleIdPatchData = { - body: UpdateSample; - path: { - /** - * Sample Id - */ - sample_id: number; - }; - query?: never; - url: '/sample/{sample_id}'; -}; - -export type UpdateSampleSampleSampleIdPatchErrors = { + body: UpdateSample + path: { /** - * Validation Error + * Sample Id */ - 422: HttpValidationError; -}; + sample_id: number + } + query?: never + url: '/sample/{sample_id}' +} + +export type UpdateSampleSampleSampleIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateSampleSampleSampleIdPatchError = UpdateSampleSampleSampleIdPatchErrors[keyof UpdateSampleSampleSampleIdPatchErrors]; +export type UpdateSampleSampleSampleIdPatchError = + UpdateSampleSampleSampleIdPatchErrors[keyof UpdateSampleSampleSampleIdPatchErrors] export type UpdateSampleSampleSampleIdPatchResponses = { - /** - * Response Update Sample Sample Sample Id Patch - * Successful Response - */ - 200: SampleResponse | ResourceNotFoundResponse; -}; + /** + * Response Update Sample Sample Sample Id Patch + * Successful Response + */ + 200: SampleResponse | ResourceNotFoundResponse +} -export type UpdateSampleSampleSampleIdPatchResponse = UpdateSampleSampleSampleIdPatchResponses[keyof UpdateSampleSampleSampleIdPatchResponses]; +export type UpdateSampleSampleSampleIdPatchResponse = + UpdateSampleSampleSampleIdPatchResponses[keyof UpdateSampleSampleSampleIdPatchResponses] export type GetSensorsSensorGetData = { - body?: never; - path?: never; - query?: { - /** - * Thing Id - */ - thing_id?: number; - /** - * Parameter Id - */ - parameter_id?: number; - /** - * Sort - */ - sort?: string | null; - /** - * Order - */ - order?: string | null; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/sensor'; -}; - -export type GetSensorsSensorGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Thing Id + */ + thing_id?: number + /** + * Parameter Id + */ + parameter_id?: number + /** + * Sort + */ + sort?: string | null + /** + * Order + */ + order?: string | null + /** + * Filter */ - 422: HttpValidationError; -}; + filter?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size + */ + size?: number + } + url: '/sensor' +} + +export type GetSensorsSensorGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetSensorsSensorGetError = GetSensorsSensorGetErrors[keyof GetSensorsSensorGetErrors]; +export type GetSensorsSensorGetError = + GetSensorsSensorGetErrors[keyof GetSensorsSensorGetErrors] export type GetSensorsSensorGetResponses = { - /** - * Successful Response - */ - 200: PageSensorResponse; -}; + /** + * Successful Response + */ + 200: PageSensorResponse +} -export type GetSensorsSensorGetResponse = GetSensorsSensorGetResponses[keyof GetSensorsSensorGetResponses]; +export type GetSensorsSensorGetResponse = + GetSensorsSensorGetResponses[keyof GetSensorsSensorGetResponses] export type AddSensorSensorPostData = { - body: CreateSensor; - path?: never; - query?: never; - url: '/sensor'; -}; + body: CreateSensor + path?: never + query?: never + url: '/sensor' +} export type AddSensorSensorPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type AddSensorSensorPostError = AddSensorSensorPostErrors[keyof AddSensorSensorPostErrors]; +export type AddSensorSensorPostError = + AddSensorSensorPostErrors[keyof AddSensorSensorPostErrors] export type AddSensorSensorPostResponses = { - /** - * Successful Response - */ - 201: SensorResponse; -}; + /** + * Successful Response + */ + 201: SensorResponse +} -export type AddSensorSensorPostResponse = AddSensorSensorPostResponses[keyof AddSensorSensorPostResponses]; +export type AddSensorSensorPostResponse = + AddSensorSensorPostResponses[keyof AddSensorSensorPostResponses] export type DeleteSensorSensorSensorIdDeleteData = { - body?: never; - path: { - /** - * Sensor Id - */ - sensor_id: number; - }; - query?: never; - url: '/sensor/{sensor_id}'; -}; - -export type DeleteSensorSensorSensorIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Sensor Id */ - 422: HttpValidationError; -}; + sensor_id: number + } + query?: never + url: '/sensor/{sensor_id}' +} + +export type DeleteSensorSensorSensorIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteSensorSensorSensorIdDeleteError = DeleteSensorSensorSensorIdDeleteErrors[keyof DeleteSensorSensorSensorIdDeleteErrors]; +export type DeleteSensorSensorSensorIdDeleteError = + DeleteSensorSensorSensorIdDeleteErrors[keyof DeleteSensorSensorSensorIdDeleteErrors] export type DeleteSensorSensorSensorIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown; -}; + /** + * Successful Response + */ + 200: unknown +} export type GetSensorSensorSensorIdGetData = { - body?: never; - path: { - /** - * Sensor Id - */ - sensor_id: number; - }; - query?: never; - url: '/sensor/{sensor_id}'; -}; - -export type GetSensorSensorSensorIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Sensor Id */ - 422: HttpValidationError; -}; + sensor_id: number + } + query?: never + url: '/sensor/{sensor_id}' +} -export type GetSensorSensorSensorIdGetError = GetSensorSensorSensorIdGetErrors[keyof GetSensorSensorSensorIdGetErrors]; +export type GetSensorSensorSensorIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type GetSensorSensorSensorIdGetError = + GetSensorSensorSensorIdGetErrors[keyof GetSensorSensorSensorIdGetErrors] export type GetSensorSensorSensorIdGetResponses = { - /** - * Successful Response - */ - 200: SensorResponse; -}; + /** + * Successful Response + */ + 200: SensorResponse +} -export type GetSensorSensorSensorIdGetResponse = GetSensorSensorSensorIdGetResponses[keyof GetSensorSensorSensorIdGetResponses]; +export type GetSensorSensorSensorIdGetResponse = + GetSensorSensorSensorIdGetResponses[keyof GetSensorSensorSensorIdGetResponses] export type UpdateSensorSensorSensorIdPatchData = { - body: UpdateSensor; - path: { - /** - * Sensor Id - */ - sensor_id: number; - }; - query?: never; - url: '/sensor/{sensor_id}'; -}; - -export type UpdateSensorSensorSensorIdPatchErrors = { + body: UpdateSensor + path: { /** - * Validation Error + * Sensor Id */ - 422: HttpValidationError; -}; + sensor_id: number + } + query?: never + url: '/sensor/{sensor_id}' +} + +export type UpdateSensorSensorSensorIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateSensorSensorSensorIdPatchError = UpdateSensorSensorSensorIdPatchErrors[keyof UpdateSensorSensorSensorIdPatchErrors]; +export type UpdateSensorSensorSensorIdPatchError = + UpdateSensorSensorSensorIdPatchErrors[keyof UpdateSensorSensorSensorIdPatchErrors] export type UpdateSensorSensorSensorIdPatchResponses = { - /** - * Successful Response - */ - 200: SensorResponse; -}; + /** + * Successful Response + */ + 200: SensorResponse +} -export type UpdateSensorSensorSensorIdPatchResponse = UpdateSensorSensorSensorIdPatchResponses[keyof UpdateSensorSensorSensorIdPatchResponses]; +export type UpdateSensorSensorSensorIdPatchResponse = + UpdateSensorSensorSensorIdPatchResponses[keyof UpdateSensorSensorSensorIdPatchResponses] export type SearchApiSearchGetData = { - body?: never; - path?: never; - query: { - /** - * Q - */ - q: string; - /** - * Limit - */ - limit?: number; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/search'; -}; - -export type SearchApiSearchGetErrors = { + body?: never + path?: never + query: { /** - * Validation Error + * Q + */ + q: string + /** + * Limit + */ + limit?: number + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/search' +} + +export type SearchApiSearchGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type SearchApiSearchGetError = SearchApiSearchGetErrors[keyof SearchApiSearchGetErrors]; +export type SearchApiSearchGetError = + SearchApiSearchGetErrors[keyof SearchApiSearchGetErrors] export type SearchApiSearchGetResponses = { - /** - * Successful Response - */ - 200: PageDict; -}; + /** + * Successful Response + */ + 200: PageDict +} -export type SearchApiSearchGetResponse = SearchApiSearchGetResponses[keyof SearchApiSearchGetResponses]; +export type SearchApiSearchGetResponse = + SearchApiSearchGetResponses[keyof SearchApiSearchGetResponses] export type GetWaterWellsThingWaterWellGetData = { - body?: never; - path?: never; - query?: { - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Query - */ - query?: string; - /** - * Name - */ - name?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing/water-well'; -}; - -export type GetWaterWellsThingWaterWellGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Query + */ + query?: string + /** + * Name + */ + name?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/thing/water-well' +} + +export type GetWaterWellsThingWaterWellGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetWaterWellsThingWaterWellGetError = GetWaterWellsThingWaterWellGetErrors[keyof GetWaterWellsThingWaterWellGetErrors]; +export type GetWaterWellsThingWaterWellGetError = + GetWaterWellsThingWaterWellGetErrors[keyof GetWaterWellsThingWaterWellGetErrors] export type GetWaterWellsThingWaterWellGetResponses = { - /** - * Successful Response - */ - 200: PageWellResponse; -}; + /** + * Successful Response + */ + 200: PageWellResponse +} -export type GetWaterWellsThingWaterWellGetResponse = GetWaterWellsThingWaterWellGetResponses[keyof GetWaterWellsThingWaterWellGetResponses]; +export type GetWaterWellsThingWaterWellGetResponse = + GetWaterWellsThingWaterWellGetResponses[keyof GetWaterWellsThingWaterWellGetResponses] export type CreateWellThingWaterWellPostData = { - body: CreateWell; - path?: never; - query?: never; - url: '/thing/water-well'; -}; + body: CreateWell + path?: never + query?: never + url: '/thing/water-well' +} export type CreateWellThingWaterWellPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateWellThingWaterWellPostError = CreateWellThingWaterWellPostErrors[keyof CreateWellThingWaterWellPostErrors]; +export type CreateWellThingWaterWellPostError = + CreateWellThingWaterWellPostErrors[keyof CreateWellThingWaterWellPostErrors] export type CreateWellThingWaterWellPostResponses = { - /** - * Successful Response - */ - 201: WellResponse; -}; + /** + * Successful Response + */ + 201: WellResponse +} -export type CreateWellThingWaterWellPostResponse = CreateWellThingWaterWellPostResponses[keyof CreateWellThingWaterWellPostResponses]; +export type CreateWellThingWaterWellPostResponse = + CreateWellThingWaterWellPostResponses[keyof CreateWellThingWaterWellPostResponses] export type GetWellByIdThingWaterWellThingIdGetData = { - body?: never; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: never; - url: '/thing/water-well/{thing_id}'; -}; - -export type GetWellByIdThingWaterWellThingIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Thing Id */ - 422: HttpValidationError; -}; + thing_id: number + } + query?: never + url: '/thing/water-well/{thing_id}' +} + +export type GetWellByIdThingWaterWellThingIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetWellByIdThingWaterWellThingIdGetError = GetWellByIdThingWaterWellThingIdGetErrors[keyof GetWellByIdThingWaterWellThingIdGetErrors]; +export type GetWellByIdThingWaterWellThingIdGetError = + GetWellByIdThingWaterWellThingIdGetErrors[keyof GetWellByIdThingWaterWellThingIdGetErrors] export type GetWellByIdThingWaterWellThingIdGetResponses = { - /** - * Successful Response - */ - 200: WellResponse; -}; + /** + * Successful Response + */ + 200: WellResponse +} -export type GetWellByIdThingWaterWellThingIdGetResponse = GetWellByIdThingWaterWellThingIdGetResponses[keyof GetWellByIdThingWaterWellThingIdGetResponses]; +export type GetWellByIdThingWaterWellThingIdGetResponse = + GetWellByIdThingWaterWellThingIdGetResponses[keyof GetWellByIdThingWaterWellThingIdGetResponses] export type UpdateWaterWellThingWaterWellThingIdPatchData = { - body: UpdateWell; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: never; - url: '/thing/water-well/{thing_id}'; -}; - -export type UpdateWaterWellThingWaterWellThingIdPatchErrors = { + body: UpdateWell + path: { /** - * Validation Error + * Thing Id */ - 422: HttpValidationError; -}; + thing_id: number + } + query?: never + url: '/thing/water-well/{thing_id}' +} -export type UpdateWaterWellThingWaterWellThingIdPatchError = UpdateWaterWellThingWaterWellThingIdPatchErrors[keyof UpdateWaterWellThingWaterWellThingIdPatchErrors]; +export type UpdateWaterWellThingWaterWellThingIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type UpdateWaterWellThingWaterWellThingIdPatchError = + UpdateWaterWellThingWaterWellThingIdPatchErrors[keyof UpdateWaterWellThingWaterWellThingIdPatchErrors] export type UpdateWaterWellThingWaterWellThingIdPatchResponses = { - /** - * Successful Response - */ - 200: WellResponse; -}; + /** + * Successful Response + */ + 200: WellResponse +} -export type UpdateWaterWellThingWaterWellThingIdPatchResponse = UpdateWaterWellThingWaterWellThingIdPatchResponses[keyof UpdateWaterWellThingWaterWellThingIdPatchResponses]; +export type UpdateWaterWellThingWaterWellThingIdPatchResponse = + UpdateWaterWellThingWaterWellThingIdPatchResponses[keyof UpdateWaterWellThingWaterWellThingIdPatchResponses] export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetData = { - body?: never; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing/water-well/{thing_id}/well-screen'; -}; - -export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors = { + body?: never + path: { /** - * Validation Error + * Thing Id + */ + thing_id: number + } + query?: { + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/thing/water-well/{thing_id}/well-screen' +} + +export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetError = GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors]; +export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetError = + GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors] -export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses = { +export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses = + { /** * Successful Response */ - 200: PageWellScreenResponse; -}; + 200: PageWellScreenResponse + } -export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses]; +export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = + GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses] export type GetWellScreensThingWellScreenGetData = { - body?: never; - path?: never; - query?: { - /** - * Thing Id - */ - thing_id?: number; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing/well-screen'; -}; - -export type GetWellScreensThingWellScreenGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Thing Id + */ + thing_id?: number + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/thing/well-screen' +} + +export type GetWellScreensThingWellScreenGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetWellScreensThingWellScreenGetError = GetWellScreensThingWellScreenGetErrors[keyof GetWellScreensThingWellScreenGetErrors]; +export type GetWellScreensThingWellScreenGetError = + GetWellScreensThingWellScreenGetErrors[keyof GetWellScreensThingWellScreenGetErrors] export type GetWellScreensThingWellScreenGetResponses = { - /** - * Successful Response - */ - 200: PageWellScreenResponse; -}; + /** + * Successful Response + */ + 200: PageWellScreenResponse +} -export type GetWellScreensThingWellScreenGetResponse = GetWellScreensThingWellScreenGetResponses[keyof GetWellScreensThingWellScreenGetResponses]; +export type GetWellScreensThingWellScreenGetResponse = + GetWellScreensThingWellScreenGetResponses[keyof GetWellScreensThingWellScreenGetResponses] export type CreateWellscreenThingWellScreenPostData = { - body: CreateWellScreen; - path?: never; - query?: never; - url: '/thing/well-screen'; -}; + body: CreateWellScreen + path?: never + query?: never + url: '/thing/well-screen' +} export type CreateWellscreenThingWellScreenPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateWellscreenThingWellScreenPostError = CreateWellscreenThingWellScreenPostErrors[keyof CreateWellscreenThingWellScreenPostErrors]; +export type CreateWellscreenThingWellScreenPostError = + CreateWellscreenThingWellScreenPostErrors[keyof CreateWellscreenThingWellScreenPostErrors] export type CreateWellscreenThingWellScreenPostResponses = { - /** - * Successful Response - */ - 201: WellScreenResponse; -}; + /** + * Successful Response + */ + 201: WellScreenResponse +} -export type CreateWellscreenThingWellScreenPostResponse = CreateWellscreenThingWellScreenPostResponses[keyof CreateWellscreenThingWellScreenPostResponses]; +export type CreateWellscreenThingWellScreenPostResponse = + CreateWellscreenThingWellScreenPostResponses[keyof CreateWellscreenThingWellScreenPostResponses] export type GetWellScreenByIdThingWellScreenWellscreenIdGetData = { - body?: never; - path: { - /** - * Wellscreen Id - */ - wellscreen_id: number; - }; - query?: never; - url: '/thing/well-screen/{wellscreen_id}'; -}; - -export type GetWellScreenByIdThingWellScreenWellscreenIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Wellscreen Id */ - 422: HttpValidationError; -}; + wellscreen_id: number + } + query?: never + url: '/thing/well-screen/{wellscreen_id}' +} + +export type GetWellScreenByIdThingWellScreenWellscreenIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetWellScreenByIdThingWellScreenWellscreenIdGetError = GetWellScreenByIdThingWellScreenWellscreenIdGetErrors[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetErrors]; +export type GetWellScreenByIdThingWellScreenWellscreenIdGetError = + GetWellScreenByIdThingWellScreenWellscreenIdGetErrors[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetErrors] export type GetWellScreenByIdThingWellScreenWellscreenIdGetResponses = { - /** - * Successful Response - */ - 200: WellScreenResponse; -}; + /** + * Successful Response + */ + 200: WellScreenResponse +} -export type GetWellScreenByIdThingWellScreenWellscreenIdGetResponse = GetWellScreenByIdThingWellScreenWellscreenIdGetResponses[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetResponses]; +export type GetWellScreenByIdThingWellScreenWellscreenIdGetResponse = + GetWellScreenByIdThingWellScreenWellscreenIdGetResponses[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetResponses] export type GetSpringsThingSpringGetData = { - body?: never; - path?: never; - query?: { - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Query - */ - query?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing/spring'; -}; - -export type GetSpringsThingSpringGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Query */ - 422: HttpValidationError; -}; + query?: string + /** + * Page + * Page number + */ + page?: number + /** + * Size + */ + size?: number + } + url: '/thing/spring' +} + +export type GetSpringsThingSpringGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetSpringsThingSpringGetError = GetSpringsThingSpringGetErrors[keyof GetSpringsThingSpringGetErrors]; +export type GetSpringsThingSpringGetError = + GetSpringsThingSpringGetErrors[keyof GetSpringsThingSpringGetErrors] export type GetSpringsThingSpringGetResponses = { - /** - * Successful Response - */ - 200: PageSpringResponse; -}; + /** + * Successful Response + */ + 200: PageSpringResponse +} -export type GetSpringsThingSpringGetResponse = GetSpringsThingSpringGetResponses[keyof GetSpringsThingSpringGetResponses]; +export type GetSpringsThingSpringGetResponse = + GetSpringsThingSpringGetResponses[keyof GetSpringsThingSpringGetResponses] export type CreateSpringThingSpringPostData = { - body: CreateSpring; - path?: never; - query?: never; - url: '/thing/spring'; -}; + body: CreateSpring + path?: never + query?: never + url: '/thing/spring' +} export type CreateSpringThingSpringPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateSpringThingSpringPostError = CreateSpringThingSpringPostErrors[keyof CreateSpringThingSpringPostErrors]; +export type CreateSpringThingSpringPostError = + CreateSpringThingSpringPostErrors[keyof CreateSpringThingSpringPostErrors] export type CreateSpringThingSpringPostResponses = { - /** - * Successful Response - */ - 201: SpringResponse; -}; + /** + * Successful Response + */ + 201: SpringResponse +} -export type CreateSpringThingSpringPostResponse = CreateSpringThingSpringPostResponses[keyof CreateSpringThingSpringPostResponses]; +export type CreateSpringThingSpringPostResponse = + CreateSpringThingSpringPostResponses[keyof CreateSpringThingSpringPostResponses] export type GetSpringByIdThingSpringThingIdGetData = { - body?: never; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: never; - url: '/thing/spring/{thing_id}'; -}; - -export type GetSpringByIdThingSpringThingIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Thing Id */ - 422: HttpValidationError; -}; + thing_id: number + } + query?: never + url: '/thing/spring/{thing_id}' +} + +export type GetSpringByIdThingSpringThingIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetSpringByIdThingSpringThingIdGetError = GetSpringByIdThingSpringThingIdGetErrors[keyof GetSpringByIdThingSpringThingIdGetErrors]; +export type GetSpringByIdThingSpringThingIdGetError = + GetSpringByIdThingSpringThingIdGetErrors[keyof GetSpringByIdThingSpringThingIdGetErrors] export type GetSpringByIdThingSpringThingIdGetResponses = { - /** - * Successful Response - */ - 200: SpringResponse; -}; + /** + * Successful Response + */ + 200: SpringResponse +} -export type GetSpringByIdThingSpringThingIdGetResponse = GetSpringByIdThingSpringThingIdGetResponses[keyof GetSpringByIdThingSpringThingIdGetResponses]; +export type GetSpringByIdThingSpringThingIdGetResponse = + GetSpringByIdThingSpringThingIdGetResponses[keyof GetSpringByIdThingSpringThingIdGetResponses] export type UpdateSpringThingSpringThingIdPatchData = { - body: UpdateSpring; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: never; - url: '/thing/spring/{thing_id}'; -}; - -export type UpdateSpringThingSpringThingIdPatchErrors = { + body: UpdateSpring + path: { /** - * Validation Error + * Thing Id */ - 422: HttpValidationError; -}; + thing_id: number + } + query?: never + url: '/thing/spring/{thing_id}' +} -export type UpdateSpringThingSpringThingIdPatchError = UpdateSpringThingSpringThingIdPatchErrors[keyof UpdateSpringThingSpringThingIdPatchErrors]; +export type UpdateSpringThingSpringThingIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type UpdateSpringThingSpringThingIdPatchError = + UpdateSpringThingSpringThingIdPatchErrors[keyof UpdateSpringThingSpringThingIdPatchErrors] export type UpdateSpringThingSpringThingIdPatchResponses = { - /** - * Successful Response - */ - 200: SpringResponse; -}; + /** + * Successful Response + */ + 200: SpringResponse +} -export type UpdateSpringThingSpringThingIdPatchResponse = UpdateSpringThingSpringThingIdPatchResponses[keyof UpdateSpringThingSpringThingIdPatchResponses]; +export type UpdateSpringThingSpringThingIdPatchResponse = + UpdateSpringThingSpringThingIdPatchResponses[keyof UpdateSpringThingSpringThingIdPatchResponses] export type GetThingIdLinksThingIdLinkGetData = { - body?: never; - path?: never; - query?: { - /** - * Filter - */ - filter?: string; - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing/id-link'; -}; - -export type GetThingIdLinksThingIdLinkGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Filter + */ + filter?: string + /** + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Page + * Page number */ - 422: HttpValidationError; -}; + page?: number + /** + * Size + */ + size?: number + } + url: '/thing/id-link' +} + +export type GetThingIdLinksThingIdLinkGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetThingIdLinksThingIdLinkGetError = GetThingIdLinksThingIdLinkGetErrors[keyof GetThingIdLinksThingIdLinkGetErrors]; +export type GetThingIdLinksThingIdLinkGetError = + GetThingIdLinksThingIdLinkGetErrors[keyof GetThingIdLinksThingIdLinkGetErrors] export type GetThingIdLinksThingIdLinkGetResponses = { - /** - * Successful Response - */ - 200: PageThingIdLinkResponse; -}; + /** + * Successful Response + */ + 200: PageThingIdLinkResponse +} -export type GetThingIdLinksThingIdLinkGetResponse = GetThingIdLinksThingIdLinkGetResponses[keyof GetThingIdLinksThingIdLinkGetResponses]; +export type GetThingIdLinksThingIdLinkGetResponse = + GetThingIdLinksThingIdLinkGetResponses[keyof GetThingIdLinksThingIdLinkGetResponses] export type CreateThingIdLinkThingIdLinkPostData = { - body: CreateThingIdLink; - path?: never; - query?: never; - url: '/thing/id-link'; -}; + body: CreateThingIdLink + path?: never + query?: never + url: '/thing/id-link' +} export type CreateThingIdLinkThingIdLinkPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError; -}; + /** + * Validation Error + */ + 422: HttpValidationError +} -export type CreateThingIdLinkThingIdLinkPostError = CreateThingIdLinkThingIdLinkPostErrors[keyof CreateThingIdLinkThingIdLinkPostErrors]; +export type CreateThingIdLinkThingIdLinkPostError = + CreateThingIdLinkThingIdLinkPostErrors[keyof CreateThingIdLinkThingIdLinkPostErrors] export type CreateThingIdLinkThingIdLinkPostResponses = { - /** - * Successful Response - */ - 201: ThingIdLinkResponse; -}; + /** + * Successful Response + */ + 201: ThingIdLinkResponse +} -export type CreateThingIdLinkThingIdLinkPostResponse = CreateThingIdLinkThingIdLinkPostResponses[keyof CreateThingIdLinkThingIdLinkPostResponses]; +export type CreateThingIdLinkThingIdLinkPostResponse = + CreateThingIdLinkThingIdLinkPostResponses[keyof CreateThingIdLinkThingIdLinkPostResponses] export type DeleteThingIdLinkThingIdLinkLinkIdDeleteData = { - body?: never; - path: { - /** - * Link Id - */ - link_id: number; - }; - query?: never; - url: '/thing/id-link/{link_id}'; -}; - -export type DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Link Id */ - 422: HttpValidationError; -}; + link_id: number + } + query?: never + url: '/thing/id-link/{link_id}' +} + +export type DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteThingIdLinkThingIdLinkLinkIdDeleteError = DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors]; +export type DeleteThingIdLinkThingIdLinkLinkIdDeleteError = + DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors] export type DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses]; +export type DeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = + DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses] export type GetThingIdLinksThingIdLinkLinkIdGetData = { - body?: never; - path: { - /** - * Link Id - */ - link_id: number; - }; - query?: never; - url: '/thing/id-link/{link_id}'; -}; - -export type GetThingIdLinksThingIdLinkLinkIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Link Id */ - 422: HttpValidationError; -}; + link_id: number + } + query?: never + url: '/thing/id-link/{link_id}' +} + +export type GetThingIdLinksThingIdLinkLinkIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetThingIdLinksThingIdLinkLinkIdGetError = GetThingIdLinksThingIdLinkLinkIdGetErrors[keyof GetThingIdLinksThingIdLinkLinkIdGetErrors]; +export type GetThingIdLinksThingIdLinkLinkIdGetError = + GetThingIdLinksThingIdLinkLinkIdGetErrors[keyof GetThingIdLinksThingIdLinkLinkIdGetErrors] export type GetThingIdLinksThingIdLinkLinkIdGetResponses = { - /** - * Successful Response - */ - 200: ThingIdLinkResponse; -}; + /** + * Successful Response + */ + 200: ThingIdLinkResponse +} -export type GetThingIdLinksThingIdLinkLinkIdGetResponse = GetThingIdLinksThingIdLinkLinkIdGetResponses[keyof GetThingIdLinksThingIdLinkLinkIdGetResponses]; +export type GetThingIdLinksThingIdLinkLinkIdGetResponse = + GetThingIdLinksThingIdLinkLinkIdGetResponses[keyof GetThingIdLinksThingIdLinkLinkIdGetResponses] export type UpdateThingIdLinkThingIdLinkLinkIdPatchData = { - body: UpdateThingIdLink; - path: { - /** - * Link Id - */ - link_id: number; - }; - query?: never; - url: '/thing/id-link/{link_id}'; -}; - -export type UpdateThingIdLinkThingIdLinkLinkIdPatchErrors = { + body: UpdateThingIdLink + path: { /** - * Validation Error + * Link Id */ - 422: HttpValidationError; -}; + link_id: number + } + query?: never + url: '/thing/id-link/{link_id}' +} -export type UpdateThingIdLinkThingIdLinkLinkIdPatchError = UpdateThingIdLinkThingIdLinkLinkIdPatchErrors[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchErrors]; +export type UpdateThingIdLinkThingIdLinkLinkIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type UpdateThingIdLinkThingIdLinkLinkIdPatchError = + UpdateThingIdLinkThingIdLinkLinkIdPatchErrors[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchErrors] export type UpdateThingIdLinkThingIdLinkLinkIdPatchResponses = { - /** - * Successful Response - */ - 200: ThingIdLinkResponse; -}; + /** + * Successful Response + */ + 200: ThingIdLinkResponse +} -export type UpdateThingIdLinkThingIdLinkLinkIdPatchResponse = UpdateThingIdLinkThingIdLinkLinkIdPatchResponses[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchResponses]; +export type UpdateThingIdLinkThingIdLinkLinkIdPatchResponse = + UpdateThingIdLinkThingIdLinkLinkIdPatchResponses[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchResponses] export type GetThingsThingGetData = { - body?: never; - path?: never; - query?: { - /** - * Within - */ - within?: string; - /** - * Query - */ - query?: string; - /** - * Sort - */ - sort?: string; - /** - * Order - */ - order?: string; - /** - * Filter - */ - filter?: string; - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing'; -}; - -export type GetThingsThingGetErrors = { + body?: never + path?: never + query?: { /** - * Validation Error + * Within + */ + within?: string + /** + * Query + */ + query?: string + /** + * Sort + */ + sort?: string + /** + * Order + */ + order?: string + /** + * Filter + */ + filter?: string + /** + * Page + * Page number */ - 422: HttpValidationError; -}; + page?: number + /** + * Size + */ + size?: number + } + url: '/thing' +} + +export type GetThingsThingGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetThingsThingGetError = GetThingsThingGetErrors[keyof GetThingsThingGetErrors]; +export type GetThingsThingGetError = + GetThingsThingGetErrors[keyof GetThingsThingGetErrors] export type GetThingsThingGetResponses = { - /** - * Successful Response - */ - 200: PageThingResponse; -}; + /** + * Successful Response + */ + 200: PageThingResponse +} -export type GetThingsThingGetResponse = GetThingsThingGetResponses[keyof GetThingsThingGetResponses]; +export type GetThingsThingGetResponse = + GetThingsThingGetResponses[keyof GetThingsThingGetResponses] export type DeleteThingThingThingIdDeleteData = { - body?: never; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: never; - url: '/thing/{thing_id}'; -}; - -export type DeleteThingThingThingIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Thing Id */ - 422: HttpValidationError; -}; + thing_id: number + } + query?: never + url: '/thing/{thing_id}' +} + +export type DeleteThingThingThingIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteThingThingThingIdDeleteError = DeleteThingThingThingIdDeleteErrors[keyof DeleteThingThingThingIdDeleteErrors]; +export type DeleteThingThingThingIdDeleteError = + DeleteThingThingThingIdDeleteErrors[keyof DeleteThingThingThingIdDeleteErrors] export type DeleteThingThingThingIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteThingThingThingIdDeleteResponse = DeleteThingThingThingIdDeleteResponses[keyof DeleteThingThingThingIdDeleteResponses]; +export type DeleteThingThingThingIdDeleteResponse = + DeleteThingThingThingIdDeleteResponses[keyof DeleteThingThingThingIdDeleteResponses] export type GetThingByIdThingThingIdGetData = { - body?: never; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: never; - url: '/thing/{thing_id}'; -}; - -export type GetThingByIdThingThingIdGetErrors = { + body?: never + path: { /** - * Validation Error + * Thing Id */ - 422: HttpValidationError; -}; + thing_id: number + } + query?: never + url: '/thing/{thing_id}' +} + +export type GetThingByIdThingThingIdGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetThingByIdThingThingIdGetError = GetThingByIdThingThingIdGetErrors[keyof GetThingByIdThingThingIdGetErrors]; +export type GetThingByIdThingThingIdGetError = + GetThingByIdThingThingIdGetErrors[keyof GetThingByIdThingThingIdGetErrors] export type GetThingByIdThingThingIdGetResponses = { - /** - * Successful Response - */ - 200: ThingResponse; -}; + /** + * Successful Response + */ + 200: ThingResponse +} -export type GetThingByIdThingThingIdGetResponse = GetThingByIdThingThingIdGetResponses[keyof GetThingByIdThingThingIdGetResponses]; +export type GetThingByIdThingThingIdGetResponse = + GetThingByIdThingThingIdGetResponses[keyof GetThingByIdThingThingIdGetResponses] export type GetThingIdLinksThingThingIdIdLinkGetData = { - body?: never; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing/{thing_id}/id-link'; -}; - -export type GetThingIdLinksThingThingIdIdLinkGetErrors = { + body?: never + path: { /** - * Validation Error + * Thing Id + */ + thing_id: number + } + query?: { + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/thing/{thing_id}/id-link' +} -export type GetThingIdLinksThingThingIdIdLinkGetError = GetThingIdLinksThingThingIdIdLinkGetErrors[keyof GetThingIdLinksThingThingIdIdLinkGetErrors]; +export type GetThingIdLinksThingThingIdIdLinkGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} + +export type GetThingIdLinksThingThingIdIdLinkGetError = + GetThingIdLinksThingThingIdIdLinkGetErrors[keyof GetThingIdLinksThingThingIdIdLinkGetErrors] export type GetThingIdLinksThingThingIdIdLinkGetResponses = { - /** - * Successful Response - */ - 200: PageThingIdLinkResponse; -}; + /** + * Successful Response + */ + 200: PageThingIdLinkResponse +} -export type GetThingIdLinksThingThingIdIdLinkGetResponse = GetThingIdLinksThingThingIdIdLinkGetResponses[keyof GetThingIdLinksThingThingIdIdLinkGetResponses]; +export type GetThingIdLinksThingThingIdIdLinkGetResponse = + GetThingIdLinksThingThingIdIdLinkGetResponses[keyof GetThingIdLinksThingThingIdIdLinkGetResponses] export type GetThingDeploymentsThingThingIdDeploymentGetData = { - body?: never; - path: { - /** - * Thing Id - */ - thing_id: number; - }; - query?: { - /** - * Page - * Page number - */ - page?: number; - /** - * Size - */ - size?: number; - }; - url: '/thing/{thing_id}/deployment'; -}; - -export type GetThingDeploymentsThingThingIdDeploymentGetErrors = { + body?: never + path: { /** - * Validation Error + * Thing Id + */ + thing_id: number + } + query?: { + /** + * Page + * Page number + */ + page?: number + /** + * Size */ - 422: HttpValidationError; -}; + size?: number + } + url: '/thing/{thing_id}/deployment' +} + +export type GetThingDeploymentsThingThingIdDeploymentGetErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type GetThingDeploymentsThingThingIdDeploymentGetError = GetThingDeploymentsThingThingIdDeploymentGetErrors[keyof GetThingDeploymentsThingThingIdDeploymentGetErrors]; +export type GetThingDeploymentsThingThingIdDeploymentGetError = + GetThingDeploymentsThingThingIdDeploymentGetErrors[keyof GetThingDeploymentsThingThingIdDeploymentGetErrors] export type GetThingDeploymentsThingThingIdDeploymentGetResponses = { - /** - * Successful Response - */ - 200: PageDeploymentResponse; -}; + /** + * Successful Response + */ + 200: PageDeploymentResponse +} -export type GetThingDeploymentsThingThingIdDeploymentGetResponse = GetThingDeploymentsThingThingIdDeploymentGetResponses[keyof GetThingDeploymentsThingThingIdDeploymentGetResponses]; +export type GetThingDeploymentsThingThingIdDeploymentGetResponse = + GetThingDeploymentsThingThingIdDeploymentGetResponses[keyof GetThingDeploymentsThingThingIdDeploymentGetResponses] export type DeleteWellScreenThingWellScreenWellScreenIdDeleteData = { - body?: never; - path: { - /** - * Well Screen Id - */ - well_screen_id: number; - }; - query?: never; - url: '/thing/well-screen/{well_screen_id}'; -}; - -export type DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors = { + body?: never + path: { /** - * Validation Error + * Well Screen Id */ - 422: HttpValidationError; -}; + well_screen_id: number + } + query?: never + url: '/thing/well-screen/{well_screen_id}' +} + +export type DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type DeleteWellScreenThingWellScreenWellScreenIdDeleteError = DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors]; +export type DeleteWellScreenThingWellScreenWellScreenIdDeleteError = + DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors] export type DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses = { - /** - * Successful Response - */ - 204: void; -}; + /** + * Successful Response + */ + 204: void +} -export type DeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses]; +export type DeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = + DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses] export type UpdateWellScreenThingWellScreenWellScreenIdPatchData = { - body: UpdateWellScreen; - path: { - /** - * Well Screen Id - */ - well_screen_id: number; - }; - query?: never; - url: '/thing/well-screen/{well_screen_id}'; -}; - -export type UpdateWellScreenThingWellScreenWellScreenIdPatchErrors = { + body: UpdateWellScreen + path: { /** - * Validation Error + * Well Screen Id */ - 422: HttpValidationError; -}; + well_screen_id: number + } + query?: never + url: '/thing/well-screen/{well_screen_id}' +} + +export type UpdateWellScreenThingWellScreenWellScreenIdPatchErrors = { + /** + * Validation Error + */ + 422: HttpValidationError +} -export type UpdateWellScreenThingWellScreenWellScreenIdPatchError = UpdateWellScreenThingWellScreenWellScreenIdPatchErrors[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchErrors]; +export type UpdateWellScreenThingWellScreenWellScreenIdPatchError = + UpdateWellScreenThingWellScreenWellScreenIdPatchErrors[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchErrors] export type UpdateWellScreenThingWellScreenWellScreenIdPatchResponses = { - /** - * Successful Response - */ - 200: WellScreenResponse; -}; + /** + * Successful Response + */ + 200: WellScreenResponse +} -export type UpdateWellScreenThingWellScreenWellScreenIdPatchResponse = UpdateWellScreenThingWellScreenWellScreenIdPatchResponses[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchResponses]; +export type UpdateWellScreenThingWellScreenWellScreenIdPatchResponse = + UpdateWellScreenThingWellScreenWellScreenIdPatchResponses[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchResponses] export type ClientOptions = { - baseUrl: 'https://ocotillo-api-staging.newmexicowaterdata.org' | (string & {}); -}; \ No newline at end of file + baseUrl: 'https://ocotillo-api-staging.newmexicowaterdata.org' | (string & {}) +} diff --git a/src/generated/zod.gen.ts b/src/generated/zod.gen.ts index 43b69e3d..0de1f4ec 100644 --- a/src/generated/zod.gen.ts +++ b/src/generated/zod.gen.ts @@ -1,541 +1,399 @@ // This file is auto-generated by @hey-api/openapi-ts -import { z } from 'zod'; +import { z } from 'zod' /** * release_status */ export const zReleaseStatus = z.enum([ - 'draft', - 'provisional', - 'final', - 'published', - 'archived', - 'public', - 'private' -]); + 'draft', + 'provisional', + 'final', + 'published', + 'archived', + 'public', + 'private', +]) /** * address_type */ export const zAddressType = z.enum([ - 'Primary', - 'Work', - 'Personal', - 'Mailing', - 'Physical' -]); + 'Primary', + 'Work', + 'Personal', + 'Mailing', + 'Physical', +]) /** * AddressResponse * Response schema for address details. */ export const zAddressResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - contact_id: z.int(), - address_line_1: z.string(), - address_line_2: z.optional(z.union([ - z.string(), - z.null() - ])), - city: z.string(), - state: z.string(), - postal_code: z.string(), - country: z.string(), - address_type: zAddressType -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + contact_id: z.int(), + address_line_1: z.string(), + address_line_2: z.optional(z.union([z.string(), z.null()])), + city: z.string(), + state: z.string(), + postal_code: z.string(), + country: z.string(), + address_type: zAddressType, +}) /** * AssetResponse */ export const zAssetResponse = z.object({ - name: z.string(), - label: z.optional(z.union([ - z.string(), - z.null() - ])), - storage_path: z.string(), - mime_type: z.string(), - size: z.int(), - uri: z.string(), - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - storage_service: z.string(), - signed_url: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + name: z.string(), + label: z.optional(z.union([z.string(), z.null()])), + storage_path: z.string(), + mime_type: z.string(), + size: z.int(), + uri: z.string(), + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + storage_service: z.string(), + signed_url: z.optional(z.union([z.string(), z.null()])), +}) /** * AuthorResponse * Schema for the response of an author. */ export const zAuthorResponse = z.object({ - id: z.int(), - name: z.string(), - email: z.optional(z.union([ - z.string(), - z.null() - ])), - affiliation: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + id: z.int(), + name: z.string(), + email: z.optional(z.union([z.string(), z.null()])), + affiliation: z.optional(z.union([z.string(), z.null()])), +}) /** * Body_upload_asset_asset_upload_post */ export const zBodyUploadAssetAssetUploadPost = z.object({ - file: z.string() -}); + file: z.string(), +}) /** * role */ export const zRole = z.enum([ - 'Unknown', - 'Owner', - 'Manager', - 'Operator', - 'Driller', - 'Geologist', - 'Hydrologist', - 'Hydrogeologist', - 'Engineer', - 'Organization', - 'Specialist', - 'Technician', - 'Research Assistant', - 'Research Scientist', - 'Graduate Student', - 'Biologist', - 'Lab Manager', - 'Publications Manager', - 'Software Developer' -]); + 'Unknown', + 'Owner', + 'Manager', + 'Operator', + 'Driller', + 'Geologist', + 'Hydrologist', + 'Hydrogeologist', + 'Engineer', + 'Organization', + 'Specialist', + 'Technician', + 'Research Assistant', + 'Research Scientist', + 'Graduate Student', + 'Biologist', + 'Lab Manager', + 'Publications Manager', + 'Software Developer', +]) /** * contact_type */ export const zContactType = z.enum([ - 'Primary', - 'Secondary', - 'Field Event Participant' -]); + 'Primary', + 'Secondary', + 'Field Event Participant', +]) /** * email_type */ -export const zEmailType = z.enum([ - 'Primary', - 'Work', - 'Personal' -]); +export const zEmailType = z.enum(['Primary', 'Work', 'Personal']) /** * EmailResponse * Response schema for email details. */ export const zEmailResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - contact_id: z.int(), - email: z.string(), - email_type: zEmailType -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + contact_id: z.int(), + email: z.string(), + email_type: zEmailType, +}) /** * PhoneResponse * Response schema for phone details. */ export const zPhoneResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - contact_id: z.int(), - phone_number: z.optional(z.union([ - z.string(), - z.null() - ])), - phone_type: z.string(), - nma_phone_number: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + contact_id: z.int(), + phone_number: z.optional(z.union([z.string(), z.null()])), + phone_type: z.string(), + nma_phone_number: z.optional(z.union([z.string(), z.null()])), +}) /** * elevation_method */ export const zElevationMethod = z.enum([ - 'Altimeter', - 'Differentially corrected GPS', - 'Survey-grade GPS', - 'Global positioning system (GPS)', - 'LiDAR DEM', - 'Level or other survey method', - 'Interpolated from topographic map', - 'Interpolated from digital elevation model (DEM)', - 'Reported', - 'Survey-grade Global Navigation Satellite Sys, Lvl1', - 'USGS National Elevation Dataset (NED)', - 'Unknown' -]); + 'Altimeter', + 'Differentially corrected GPS', + 'Survey-grade GPS', + 'Global positioning system (GPS)', + 'LiDAR DEM', + 'Level or other survey method', + 'Interpolated from topographic map', + 'Interpolated from digital elevation model (DEM)', + 'Reported', + 'Survey-grade Global Navigation Satellite Sys, Lvl1', + 'USGS National Elevation Dataset (NED)', + 'Unknown', +]) /** * coordinate_method */ export const zCoordinateMethod = z.enum([ - 'Unknown', - 'Differentially corrected GPS', - 'Survey-grade global positioning system (SGPS)', - 'GPS, uncorrected', - 'Interpolated from map', - 'Interpolated from DEM', - 'Reported', - 'Transit, theodolite, or other survey method' -]); + 'Unknown', + 'Differentially corrected GPS', + 'Survey-grade global positioning system (SGPS)', + 'GPS, uncorrected', + 'Interpolated from map', + 'Interpolated from DEM', + 'Reported', + 'Transit, theodolite, or other survey method', +]) /** * LocationResponse * Response schema for sample location details. */ export const zLocationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - notes: z.union([ - z.string(), - z.null() - ]), - point: z.string(), - elevation: z.union([ - z.number(), - z.null() - ]), - horizontal_datum: z.optional(z.string()).default('WGS84'), - vertical_datum: z.optional(z.string()).default('NAVD88'), - elevation_accuracy: z.union([ - z.number(), - z.null() - ]), - elevation_method: z.union([ - zElevationMethod, - z.null() - ]), - coordinate_accuracy: z.union([ - z.number(), - z.null() - ]), - coordinate_method: z.union([ - zCoordinateMethod, - z.null() - ]), - state: z.union([ - z.string(), - z.null() - ]), - county: z.union([ - z.string(), - z.null() - ]), - quad_name: z.union([ - z.string(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + notes: z.union([z.string(), z.null()]), + point: z.string(), + elevation: z.union([z.number(), z.null()]), + horizontal_datum: z.optional(z.string()).default('WGS84'), + vertical_datum: z.optional(z.string()).default('NAVD88'), + elevation_accuracy: z.union([z.number(), z.null()]), + elevation_method: z.union([zElevationMethod, z.null()]), + coordinate_accuracy: z.union([z.number(), z.null()]), + coordinate_method: z.union([zCoordinateMethod, z.null()]), + state: z.union([z.string(), z.null()]), + county: z.union([z.string(), z.null()]), + quad_name: z.union([z.string(), z.null()]), +}) /** * well_purpose */ export const zWellPurpose = z.enum([ - 'Unknown', - 'Open, unequipped well', - 'Commercial', - 'Domestic', - 'Power generation', - 'Irrigation', - 'Livestock', - 'Mining', - 'Industrial', - 'Observation', - 'Public supply', - 'Shared domestic', - 'Institutional', - 'Unused', - 'Exploration', - 'Monitoring', - 'Production', - 'Injection' -]); + 'Unknown', + 'Open, unequipped well', + 'Commercial', + 'Domestic', + 'Power generation', + 'Irrigation', + 'Livestock', + 'Mining', + 'Industrial', + 'Observation', + 'Public supply', + 'Shared domestic', + 'Institutional', + 'Unused', + 'Exploration', + 'Monitoring', + 'Production', + 'Injection', +]) /** * casing_material */ -export const zCasingMaterial = z.enum([ - 'PVC', - 'Steel', - 'Concrete' -]); +export const zCasingMaterial = z.enum(['PVC', 'Steel', 'Concrete']) /** * ThingResponse */ export const zThingResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - thing_type: z.string(), - current_location: z.union([ - zLocationResponse, - z.null() - ]), - first_visit_date: z.union([ - z.iso.date(), - z.null() - ]), - spring_type: z.optional(z.union([ - z.string(), - z.null() - ])), - well_purposes: z.optional(z.array(zWellPurpose)).default([]), - well_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - well_depth_unit: z.optional(z.string()).default('ft'), - hole_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - hole_depth_unit: z.optional(z.string()).default('ft'), - well_casing_diameter: z.optional(z.union([ - z.number(), - z.null() - ])), - well_casing_diameter_unit: z.optional(z.string()).default('in'), - well_casing_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - well_casing_depth_unit: z.optional(z.string()).default('ft'), - well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), - well_construction_notes: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + thing_type: z.string(), + current_location: z.union([zLocationResponse, z.null()]), + first_visit_date: z.union([z.iso.date(), z.null()]), + spring_type: z.optional(z.union([z.string(), z.null()])), + well_purposes: z.optional(z.array(zWellPurpose)).default([]), + well_depth: z.optional(z.union([z.number(), z.null()])), + well_depth_unit: z.optional(z.string()).default('ft'), + hole_depth: z.optional(z.union([z.number(), z.null()])), + hole_depth_unit: z.optional(z.string()).default('ft'), + well_casing_diameter: z.optional(z.union([z.number(), z.null()])), + well_casing_diameter_unit: z.optional(z.string()).default('in'), + well_casing_depth: z.optional(z.union([z.number(), z.null()])), + well_casing_depth_unit: z.optional(z.string()).default('ft'), + well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), + well_construction_notes: z.optional(z.union([z.string(), z.null()])), +}) /** * ContactResponse * Response schema for contact details. */ export const zContactResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.union([ - z.string(), - z.null() - ]), - organization: z.union([ - z.string(), - z.null() - ]), - role: zRole, - contact_type: zContactType, - emails: z.optional(z.array(zEmailResponse)).default([]), - phones: z.optional(z.array(zPhoneResponse)).default([]), - addresses: z.optional(z.array(zAddressResponse)).default([]), - things: z.optional(z.array(zThingResponse)).default([]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.union([z.string(), z.null()]), + organization: z.union([z.string(), z.null()]), + role: zRole, + contact_type: zContactType, + emails: z.optional(z.array(zEmailResponse)).default([]), + phones: z.optional(z.array(zPhoneResponse)).default([]), + addresses: z.optional(z.array(zAddressResponse)).default([]), + things: z.optional(z.array(zThingResponse)).default([]), +}) /** * CreateAddress * Schema for creating an address. */ export const zCreateAddress = z.object({ - release_status: z.optional(zReleaseStatus), - contact_id: z.optional(z.union([ - z.int(), - z.null() - ])), - address_line_1: z.string(), - address_line_2: z.optional(z.union([ - z.string(), - z.null() - ])), - city: z.string(), - state: z.optional(z.string()).default('NM'), - postal_code: z.string(), - country: z.optional(z.string()).default('United States'), - address_type: z.optional(zAddressType) -}); + release_status: z.optional(zReleaseStatus), + contact_id: z.optional(z.union([z.int(), z.null()])), + address_line_1: z.string(), + address_line_2: z.optional(z.union([z.string(), z.null()])), + city: z.string(), + state: z.optional(z.string()).default('NM'), + postal_code: z.string(), + country: z.optional(z.string()).default('United States'), + address_type: z.optional(zAddressType), +}) /** * CreateAsset */ export const zCreateAsset = z.object({ - name: z.string(), - label: z.optional(z.union([ - z.string(), - z.null() - ])), - storage_path: z.string(), - mime_type: z.string(), - size: z.int(), - uri: z.string(), - release_status: z.optional(zReleaseStatus), - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])) -}); + name: z.string(), + label: z.optional(z.union([z.string(), z.null()])), + storage_path: z.string(), + mime_type: z.string(), + size: z.int(), + uri: z.string(), + release_status: z.optional(zReleaseStatus), + thing_id: z.optional(z.union([z.int(), z.null()])), +}) /** * CreateEmail * Schema for creating an email. */ export const zCreateEmail = z.object({ - email: z.string(), - release_status: z.optional(zReleaseStatus), - contact_id: z.optional(z.union([ - z.int(), - z.null() - ])), - email_type: z.optional(zEmailType) -}); + email: z.string(), + release_status: z.optional(zReleaseStatus), + contact_id: z.optional(z.union([z.int(), z.null()])), + email_type: z.optional(zEmailType), +}) /** * phone_type */ -export const zPhoneType = z.enum([ - 'Primary', - 'Work', - 'Home', - 'Mobile' -]); +export const zPhoneType = z.enum(['Primary', 'Work', 'Home', 'Mobile']) /** * CreatePhone * Schema for creating a phone number. */ export const zCreatePhone = z.object({ - phone_number: z.string(), - release_status: z.optional(zReleaseStatus), - contact_id: z.optional(z.union([ - z.int(), - z.null() - ])), - phone_type: z.optional(zPhoneType), - nma_phone_number: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + phone_number: z.string(), + release_status: z.optional(zReleaseStatus), + contact_id: z.optional(z.union([z.int(), z.null()])), + phone_type: z.optional(zPhoneType), + nma_phone_number: z.optional(z.union([z.string(), z.null()])), +}) /** * CreateContact * Schema for creating a contact. */ export const zCreateContact = z.object({ - name: z.optional(z.union([ - z.string(), - z.null() - ])), - organization: z.optional(z.union([ - z.string(), - z.null() - ])), - release_status: z.optional(zReleaseStatus), - thing_id: z.int(), - role: zRole, - contact_type: z.optional(zContactType), - emails: z.optional(z.union([ - z.array(zCreateEmail), - z.null() - ])), - phones: z.optional(z.union([ - z.array(zCreatePhone), - z.null() - ])), - addresses: z.optional(z.union([ - z.array(zCreateAddress), - z.null() - ])) -}); + name: z.optional(z.union([z.string(), z.null()])), + organization: z.optional(z.union([z.string(), z.null()])), + release_status: z.optional(zReleaseStatus), + thing_id: z.int(), + role: zRole, + contact_type: z.optional(zContactType), + emails: z.optional(z.union([z.array(zCreateEmail), z.null()])), + phones: z.optional(z.union([z.array(zCreatePhone), z.null()])), + addresses: z.optional(z.union([z.array(zCreateAddress), z.null()])), +}) /** * unit */ export const zUnit = z.enum([ - 'dimensionless', - 'ft', - 'ftbgs', - 'F', - 'mg/L', - 'mW/m²', - 'W/m²', - 'W/m·K', - 'm²/s', - 'deg C', - 'deg second', - 'deg minute', - 'second', - 'minute', - 'hour' -]); + 'dimensionless', + 'ft', + 'ftbgs', + 'F', + 'mg/L', + 'mW/m²', + 'W/m²', + 'W/m·K', + 'm²/s', + 'deg C', + 'deg second', + 'deg minute', + 'second', + 'minute', + 'hour', +]) /** * CreateGroundwaterLevelObservation */ export const zCreateGroundwaterLevelObservation = z.object({ - parameter_id: z.int(), - observation_datetime: z.iso.datetime({ - offset: true - }), - release_status: z.optional(zReleaseStatus), - sample_id: z.int(), - sensor_id: z.int(), - value: z.union([ - z.number(), - z.null() - ]), - unit: z.union([ - zUnit, - z.null() - ]), - measuring_point_height: z.number(), - groundwater_level_reason: z.string() -}); + parameter_id: z.int(), + observation_datetime: z.iso.datetime({ + offset: true, + }), + release_status: z.optional(zReleaseStatus), + sample_id: z.int(), + sensor_id: z.int(), + value: z.union([z.number(), z.null()]), + unit: z.union([zUnit, z.null()]), + measuring_point_height: z.number(), + groundwater_level_reason: z.string(), +}) /** * CreateGroup * Schema for creating a group. */ export const zCreateGroup = z.object({ - project_area: z.optional(z.union([ - z.string(), - z.null() - ])), - description: z.optional(z.union([ - z.string(), - z.null() - ])), - parent_group_id: z.optional(z.union([ - z.int(), - z.null() - ])), - release_status: z.optional(zReleaseStatus), - name: z.string() -}); + project_area: z.optional(z.union([z.string(), z.null()])), + description: z.optional(z.union([z.string(), z.null()])), + parent_group_id: z.optional(z.union([z.int(), z.null()])), + release_status: z.optional(zReleaseStatus), + name: z.string(), +}) /** * CreateLexiconCategory @@ -543,12 +401,9 @@ export const zCreateGroup = z.object({ * This model can be extended to include additional fields as needed. */ export const zCreateLexiconCategory = z.object({ - name: z.string(), - description: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + name: z.string(), + description: z.optional(z.union([z.string(), z.null()])), +}) /** * CreateLexiconTerm @@ -556,10 +411,10 @@ export const zCreateLexiconCategory = z.object({ * This model can be extended to include additional fields as needed. */ export const zCreateLexiconTerm = z.object({ - term: z.string(), - definition: z.string(), - categories: z.array(z.string()) -}); + term: z.string(), + definition: z.string(), + categories: z.array(z.string()), +}) /** * CreateLexiconTriple @@ -567,623 +422,479 @@ export const zCreateLexiconTerm = z.object({ * This model can be extended to include additional fields as needed. */ export const zCreateLexiconTriple = z.object({ - subject: zCreateLexiconTerm, - predicate: z.string(), - object_: zCreateLexiconTerm -}); + subject: zCreateLexiconTerm, + predicate: z.string(), + object_: zCreateLexiconTerm, +}) /** * CreateLocation * Schema for creating a sample location. */ export const zCreateLocation = z.object({ - point: z.string(), - release_status: z.optional(zReleaseStatus), - notes: z.optional(z.union([ - z.string(), - z.null() - ])), - elevation: z.number(), - elevation_accuracy: z.optional(z.union([ - z.number(), - z.null() - ])), - elevation_method: z.optional(z.union([ - zElevationMethod, - z.null() - ])), - coordinate_accuracy: z.optional(z.union([ - z.number(), - z.null() - ])), - coordinate_method: z.optional(z.union([ - zCoordinateMethod, - z.null() - ])) -}); + point: z.string(), + release_status: z.optional(zReleaseStatus), + notes: z.optional(z.union([z.string(), z.null()])), + elevation: z.number(), + elevation_accuracy: z.optional(z.union([z.number(), z.null()])), + elevation_method: z.optional(z.union([zElevationMethod, z.null()])), + coordinate_accuracy: z.optional(z.union([z.number(), z.null()])), + coordinate_method: z.optional(z.union([zCoordinateMethod, z.null()])), +}) /** * publication_type */ export const zPublicationType = z.enum([ - 'Map', - 'Report', - 'Dataset', - 'Model', - 'Software', - 'Paper', - 'Thesis', - 'Book', - 'Conference', - 'Webpage' -]); + 'Map', + 'Report', + 'Dataset', + 'Model', + 'Software', + 'Paper', + 'Thesis', + 'Book', + 'Conference', + 'Webpage', +]) /** * CreatePublication * Schema for creating a new publication. */ export const zCreatePublication = z.object({ - title: z.string(), - authors: z.array(z.string()), - year: z.int(), - doi: z.optional(z.union([ - z.string(), - z.null() - ])), - url: z.optional(z.union([ - z.string(), - z.null() - ])), - publication_type: zPublicationType -}); + title: z.string(), + authors: z.array(z.string()), + year: z.int(), + doi: z.optional(z.union([z.string(), z.null()])), + url: z.optional(z.union([z.string(), z.null()])), + publication_type: zPublicationType, +}) /** * sample_matrix */ -export const zSampleMatrix = z.enum([ - 'water', - 'groundwater', - 'soil' -]); +export const zSampleMatrix = z.enum(['water', 'groundwater', 'soil']) /** * sample_method */ export const zSampleMethod = z.enum([ - 'Unknown', - 'Airline measurement', - 'Analog or graphic recorder', - 'Calibrated airline measurement', - 'Differential GPS; especially applicable to surface expression of ground water', - 'Estimated', - 'Transducer', - 'Pressure-gage measurement', - 'Calibrated pressure-gage measurement', - 'Interpreted from geophysical logs', - 'Manometer', - 'Non-recording gage', - 'Observed (required for F, N, and W water level status)', - 'Sonic water level meter (acoustic pulse)', - 'Reported, method not known', - 'Steel-tape measurement', - 'Electric tape measurement (E-probe)', - 'Unknown (for legacy data only; not for new data entry)', - 'Calibrated electric tape; accuracy of equipment has been checked', - 'Calibrated electric cable', - 'Uncalibrated electric cable', - 'Continuous acoustic sounder', - 'Measurement not attempted', - 'null placeholder', - 'bailer', - 'faucet at well head', - 'faucet or outlet at house', - 'grab sample', - 'pump', - 'thief sampler' -]); + 'Unknown', + 'Airline measurement', + 'Analog or graphic recorder', + 'Calibrated airline measurement', + 'Differential GPS; especially applicable to surface expression of ground water', + 'Estimated', + 'Transducer', + 'Pressure-gage measurement', + 'Calibrated pressure-gage measurement', + 'Interpreted from geophysical logs', + 'Manometer', + 'Non-recording gage', + 'Observed (required for F, N, and W water level status)', + 'Sonic water level meter (acoustic pulse)', + 'Reported, method not known', + 'Steel-tape measurement', + 'Electric tape measurement (E-probe)', + 'Unknown (for legacy data only; not for new data entry)', + 'Calibrated electric tape; accuracy of equipment has been checked', + 'Calibrated electric cable', + 'Uncalibrated electric cable', + 'Continuous acoustic sounder', + 'Measurement not attempted', + 'null placeholder', + 'bailer', + 'faucet at well head', + 'faucet or outlet at house', + 'grab sample', + 'pump', + 'thief sampler', +]) /** * qc_type */ export const zQcType = z.enum([ - 'Normal', - 'Duplicate', - 'Split', - 'Field Blank', - 'Trip Blank', - 'Equipment Blank' -]); + 'Normal', + 'Duplicate', + 'Split', + 'Field Blank', + 'Trip Blank', + 'Equipment Blank', +]) /** * CreateSample */ export const zCreateSample = z.object({ - sample_date: z.iso.datetime({ - offset: true - }), - depth_top: z.optional(z.union([ - z.number(), - z.null() - ])), - depth_bottom: z.optional(z.union([ - z.number(), - z.null() - ])), - release_status: z.optional(zReleaseStatus), - field_activity_id: z.int(), - field_event_participant_id: z.int(), - sample_name: z.string(), - sample_matrix: zSampleMatrix, - sample_method: zSampleMethod, - qc_type: zQcType, - notes: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + sample_date: z.iso.datetime({ + offset: true, + }), + depth_top: z.optional(z.union([z.number(), z.null()])), + depth_bottom: z.optional(z.union([z.number(), z.null()])), + release_status: z.optional(zReleaseStatus), + field_activity_id: z.int(), + field_event_participant_id: z.int(), + sample_name: z.string(), + sample_matrix: zSampleMatrix, + sample_method: zSampleMethod, + qc_type: zQcType, + notes: z.optional(z.union([z.string(), z.null()])), +}) /** * sensor_type */ export const zSensorType = z.enum([ - 'Pressure Transducer', - 'Data Logger', - 'Barometer', - 'Acoustic Sounder', - 'Precip Collector', - 'Camera', - 'Soil Moisture Sensor', - 'Tipping Bucket' -]); + 'Pressure Transducer', + 'Data Logger', + 'Barometer', + 'Acoustic Sounder', + 'Precip Collector', + 'Camera', + 'Soil Moisture Sensor', + 'Tipping Bucket', +]) /** * CreateSensor * Schema for creating a new sensor. */ export const zCreateSensor = z.object({ - release_status: z.optional(zReleaseStatus), - name: z.string(), - sensor_type: zSensorType, - model: z.optional(z.union([ - z.string(), - z.null() - ])), - serial_no: z.optional(z.union([ - z.string(), - z.null() - ])), - pcn_number: z.optional(z.union([ - z.string(), - z.null() - ])), - owner_agency: z.optional(z.union([ - z.string(), - z.null() - ])), - sensor_status: z.optional(z.union([ - z.string(), - z.null() - ])), - notes: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + release_status: z.optional(zReleaseStatus), + name: z.string(), + sensor_type: zSensorType, + model: z.optional(z.union([z.string(), z.null()])), + serial_no: z.optional(z.union([z.string(), z.null()])), + pcn_number: z.optional(z.union([z.string(), z.null()])), + owner_agency: z.optional(z.union([z.string(), z.null()])), + sensor_status: z.optional(z.union([z.string(), z.null()])), + notes: z.optional(z.union([z.string(), z.null()])), +}) /** * spring_type */ export const zSpringType = z.enum([ - 'Artesian', - 'Ephemeral', - 'Perennial', - 'Thermal', - 'Mineral' -]); + 'Artesian', + 'Ephemeral', + 'Perennial', + 'Thermal', + 'Mineral', +]) /** * CreateSpring * Schema for creating a spring. */ export const zCreateSpring = z.object({ - release_status: z.optional(zReleaseStatus), - location_id: z.union([ - z.int(), - z.null() - ]), - group_id: z.optional(z.union([ - z.int(), - z.null() - ])), - name: z.string(), - first_visit_date: z.optional(z.union([ - z.iso.date(), - z.null() - ])), - spring_type: z.optional(z.union([ - zSpringType, - z.null() - ])) -}); + release_status: z.optional(zReleaseStatus), + location_id: z.union([z.int(), z.null()]), + group_id: z.optional(z.union([z.int(), z.null()])), + name: z.string(), + first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), + spring_type: z.optional(z.union([zSpringType, z.null()])), +}) /** * CreateThingIdLink * Schema for creating a link between a thing and its ID. */ export const zCreateThingIdLink = z.object({ - thing_id: z.int(), - relation: z.string(), - alternate_id: z.string(), - alternate_organization: z.string() -}); + thing_id: z.int(), + relation: z.string(), + alternate_id: z.string(), + alternate_organization: z.string(), +}) /** * CreateWaterChemistryObservation */ export const zCreateWaterChemistryObservation = z.object({ - parameter_id: z.int(), - observation_datetime: z.iso.datetime({ - offset: true - }), - release_status: z.optional(zReleaseStatus), - sample_id: z.int(), - sensor_id: z.int(), - value: z.union([ - z.number(), - z.null() - ]), - unit: z.union([ - zUnit, - z.null() - ]) -}); + parameter_id: z.int(), + observation_datetime: z.iso.datetime({ + offset: true, + }), + release_status: z.optional(zReleaseStatus), + sample_id: z.int(), + sensor_id: z.int(), + value: z.union([z.number(), z.null()]), + unit: z.union([zUnit, z.null()]), +}) /** * CreateWell * Schema for creating a well. */ export const zCreateWell = z.object({ - well_depth: z.optional(z.union([ - z.number().gt(0), - z.null() - ])), - hole_depth: z.optional(z.union([ - z.number().gt(0), - z.null() - ])), - well_casing_depth: z.optional(z.union([ - z.number().gt(0), - z.null() - ])), - release_status: z.optional(zReleaseStatus), - location_id: z.union([ - z.int(), - z.null() - ]), - group_id: z.optional(z.union([ - z.int(), - z.null() - ])), - name: z.string(), - first_visit_date: z.optional(z.union([ - z.iso.date(), - z.null() - ])), - well_purposes: z.optional(z.union([ - z.array(zWellPurpose), - z.null() - ])), - well_construction_notes: z.optional(z.union([ - z.string(), - z.null() - ])), - well_casing_diameter: z.optional(z.union([ - z.number().gt(0), - z.null() - ])), - well_casing_materials: z.optional(z.union([ - z.array(zCasingMaterial), - z.null() - ])) -}); + well_depth: z.optional(z.union([z.number().gt(0), z.null()])), + hole_depth: z.optional(z.union([z.number().gt(0), z.null()])), + well_casing_depth: z.optional(z.union([z.number().gt(0), z.null()])), + release_status: z.optional(zReleaseStatus), + location_id: z.union([z.int(), z.null()]), + group_id: z.optional(z.union([z.int(), z.null()])), + name: z.string(), + first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), + well_purposes: z.optional(z.union([z.array(zWellPurpose), z.null()])), + well_construction_notes: z.optional(z.union([z.string(), z.null()])), + well_casing_diameter: z.optional(z.union([z.number().gt(0), z.null()])), + well_casing_materials: z.optional( + z.union([z.array(zCasingMaterial), z.null()]) + ), +}) + +/** + * screen_type + */ +export const zScreenType = z.enum(['PVC', 'Steel', 'Concrete']) /** * CreateWellScreen * Schema for creating a well screen. */ export const zCreateWellScreen = z.object({ - release_status: z.optional(zReleaseStatus), - thing_id: z.int(), - screen_depth_bottom: z.number().gt(0), - screen_depth_top: z.number().gt(0), - screen_type: z.optional(z.union([ - z.unknown(), - z.null() - ])), - screen_description: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + release_status: z.optional(zReleaseStatus), + thing_id: z.int(), + screen_depth_bottom: z.number().gt(0), + screen_depth_top: z.number().gt(0), + screen_type: z.optional(z.union([zScreenType, z.null()])), + screen_description: z.optional(z.union([z.string(), z.null()])), +}) /** * SensorResponse */ export const zSensorResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - sensor_type: zSensorType, - model: z.union([ - z.string(), - z.null() - ]), - serial_no: z.union([ - z.string(), - z.null() - ]), - pcn_number: z.union([ - z.string(), - z.null() - ]), - owner_agency: z.union([ - z.string(), - z.null() - ]), - sensor_status: z.union([ - z.string(), - z.null() - ]), - notes: z.union([ - z.string(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + sensor_type: zSensorType, + model: z.union([z.string(), z.null()]), + serial_no: z.union([z.string(), z.null()]), + pcn_number: z.union([z.string(), z.null()]), + owner_agency: z.union([z.string(), z.null()]), + sensor_status: z.union([z.string(), z.null()]), + notes: z.union([z.string(), z.null()]), +}) /** * DeploymentResponse */ export const zDeploymentResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - sensor: zSensorResponse, - installation_date: z.iso.date(), - removal_date: z.union([ - z.iso.date(), - z.null() - ]), - recording_interval: z.union([ - z.int(), - z.null() - ]), - recording_interval_units: z.union([ - z.string(), - z.null() - ]), - hanging_cable_length: z.union([ - z.number(), - z.null() - ]), - hanging_point_height: z.union([ - z.number(), - z.null() - ]), - hanging_point_description: z.union([ - z.string(), - z.null() - ]), - notes: z.union([ - z.string(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + sensor: zSensorResponse, + installation_date: z.iso.date(), + removal_date: z.union([z.iso.date(), z.null()]), + recording_interval: z.union([z.int(), z.null()]), + recording_interval_units: z.union([z.string(), z.null()]), + hanging_cable_length: z.union([z.number(), z.null()]), + hanging_point_height: z.union([z.number(), z.null()]), + hanging_point_description: z.union([z.string(), z.null()]), + notes: z.union([z.string(), z.null()]), +}) /** * GeoJSONGeometry * Geometry schema for GeoJSON response. */ export const zGeoJsonGeometry = z.object({ - type: z.string(), - coordinates: z.union([ - z.array(z.number()), - z.array(z.array(z.number())), - z.array(z.array(z.array(z.number()))), - z.array(z.array(z.array(z.array(z.number())))) - ]) -}); + type: z.string(), + coordinates: z.union([ + z.array(z.number()), + z.array(z.array(z.number())), + z.array(z.array(z.array(z.number()))), + z.array(z.array(z.array(z.array(z.number())))), + ]), +}) /** * Feature * Feature schema for GeoJSON response. */ export const zFeature = z.object({ - type: z.optional(z.string()).default('Feature'), - geometry: zGeoJsonGeometry, - properties: z.optional(z.record(z.string(), z.unknown())).default({}) -}); + type: z.optional(z.string()).default('Feature'), + geometry: zGeoJsonGeometry, + properties: z.optional(z.record(z.string(), z.unknown())).default({}), +}) /** * FeatureCollectionResponse * Response schema for GeoJSON FeatureCollection. */ export const zFeatureCollectionResponse = z.object({ - type: z.optional(z.string()).default('FeatureCollection'), - features: z.optional(z.array(zFeature)).default([]) -}); + type: z.optional(z.string()).default('FeatureCollection'), + features: z.optional(z.array(zFeature)).default([]), +}) /** * activity_type */ -export const zActivityType = z.enum([ - 'groundwater level', - 'water chemistry' -]); +export const zActivityType = z.enum(['groundwater level', 'water chemistry']) /** * FieldActivityResponse */ export const zFieldActivityResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - field_event_id: z.int(), - activity_type: zActivityType -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + field_event_id: z.int(), + activity_type: zActivityType, +}) /** * FieldEventResponse */ export const zFieldEventResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - event_date: z.iso.datetime({ - offset: true - }), - notes: z.union([ - z.string(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + event_date: z.iso.datetime({ + offset: true, + }), + notes: z.union([z.string(), z.null()]), +}) /** * parameter_name */ export const zParameterName = z.enum([ - 'groundwater level', - 'temperature', - 'pH', - 'Alkalinity, Total', - 'Alkalinity as CaCO3', - 'Alkalinity as OH-', - 'Calcium', - 'Calcium, total, unfiltered', - 'Chloride', - 'Carbonate', - 'Conductivity, laboratory', - 'Bicarbonate', - 'Hardness (CaCO3)', - 'Ion Balance', - 'Potassium', - 'Potassium, total, unfiltered', - 'Magnesium', - 'Magnesium, total, unfiltered', - 'Sodium', - 'Sodium, total, unfiltered', - 'Sodium and Potassium combined', - 'Sulfate', - 'Total Anions', - 'Total Cations', - 'Total Dissolved Solids', - 'Tritium', - 'Age of Water using dissolved gases', - 'Silver', - 'Silver, total, unfiltered', - 'Aluminum', - 'Aluminum, total, unfiltered', - 'Arsenic', - 'Arsenic, total, unfiltered', - 'Boron', - 'Boron, total, unfiltered', - 'Barium', - 'Barium, total, unfiltered', - 'Beryllium', - 'Beryllium, total, unfiltered', - 'Bromide', - '13C:12C ratio', - '14C content, pmc', - 'Uncorrected C14 age', - 'Cadmium', - 'Cadmium, total, unfiltered', - 'Chlorofluorocarbon-11 avg age', - 'Chlorofluorocarbon-113 avg age', - 'Chlorofluorocarbon-113/12 avg RATIO age', - 'Chlorofluorocarbon-12 avg age', - 'Cobalt', - 'Cobalt, total, unfiltered', - 'Chromium', - 'Chromium, total, unfiltered', - 'Copper', - 'Copper, total, unfiltered', - 'delta O18 sulfate', - 'Sulfate 34 isotope ratio', - 'Fluoride', - 'Iron', - 'Iron, total, unfiltered', - 'Deuterium:Hydrogen ratio', - 'Mercury', - 'Mercury, total, unfiltered', - 'Lithium', - 'Lithium, total, unfiltered', - 'Manganese', - 'Manganese, total, unfiltered', - 'Molybdenum', - 'Molybdenum, total, unfiltered', - 'Nickel', - 'Nickel, total, unfiltered', - 'Nitrite (as NO2)', - 'Nitrite (as N)', - 'Nitrate (as NO3)', - 'Nitrate (as N)', - '18O:16O ratio', - 'Lead', - 'Lead, total, unfiltered', - 'Phosphate', - 'Antimony', - 'Antimony, total, unfiltered', - 'Selenium', - 'Selenium, total, unfiltered', - 'Sulfur hexafluoride', - 'Silicon', - 'Silicon, total, unfiltered', - 'Silica', - 'Tin', - 'Tin, total, unfiltered', - 'Strontium', - 'Strontium, total, unfiltered', - 'Strontium 87:86 ratio', - 'Thorium', - 'Thorium, total, unfiltered', - 'Titanium', - 'Titanium, total, unfiltered', - 'Thallium', - 'Thallium, total, unfiltered', - 'Uranium (total, by ICP-MS)', - 'Uranium, total, unfiltered', - 'Vanadium', - 'Vanadium, total, unfiltered', - 'Zinc', - 'Zinc, total, unfiltered', - 'Corrected C14 in years', - 'Arsenite (arsenic species)', - 'Arsenate (arsenic species)', - 'Cyanide', - 'Estimated recharge temperature', - 'Hydrogen sulfide', - 'Ammonia', - 'Ammonium', - 'Total nitrogen', - 'Total Kjeldahl nitrogen', - 'Dissolved organic carbon', - 'Total organic carbon', - 'delta C13 of dissolved inorganic carbon' -]); + 'groundwater level', + 'temperature', + 'pH', + 'Alkalinity, Total', + 'Alkalinity as CaCO3', + 'Alkalinity as OH-', + 'Calcium', + 'Calcium, total, unfiltered', + 'Chloride', + 'Carbonate', + 'Conductivity, laboratory', + 'Bicarbonate', + 'Hardness (CaCO3)', + 'Ion Balance', + 'Potassium', + 'Potassium, total, unfiltered', + 'Magnesium', + 'Magnesium, total, unfiltered', + 'Sodium', + 'Sodium, total, unfiltered', + 'Sodium and Potassium combined', + 'Sulfate', + 'Total Anions', + 'Total Cations', + 'Total Dissolved Solids', + 'Tritium', + 'Age of Water using dissolved gases', + 'Silver', + 'Silver, total, unfiltered', + 'Aluminum', + 'Aluminum, total, unfiltered', + 'Arsenic', + 'Arsenic, total, unfiltered', + 'Boron', + 'Boron, total, unfiltered', + 'Barium', + 'Barium, total, unfiltered', + 'Beryllium', + 'Beryllium, total, unfiltered', + 'Bromide', + '13C:12C ratio', + '14C content, pmc', + 'Uncorrected C14 age', + 'Cadmium', + 'Cadmium, total, unfiltered', + 'Chlorofluorocarbon-11 avg age', + 'Chlorofluorocarbon-113 avg age', + 'Chlorofluorocarbon-113/12 avg RATIO age', + 'Chlorofluorocarbon-12 avg age', + 'Cobalt', + 'Cobalt, total, unfiltered', + 'Chromium', + 'Chromium, total, unfiltered', + 'Copper', + 'Copper, total, unfiltered', + 'delta O18 sulfate', + 'Sulfate 34 isotope ratio', + 'Fluoride', + 'Iron', + 'Iron, total, unfiltered', + 'Deuterium:Hydrogen ratio', + 'Mercury', + 'Mercury, total, unfiltered', + 'Lithium', + 'Lithium, total, unfiltered', + 'Manganese', + 'Manganese, total, unfiltered', + 'Molybdenum', + 'Molybdenum, total, unfiltered', + 'Nickel', + 'Nickel, total, unfiltered', + 'Nitrite (as NO2)', + 'Nitrite (as N)', + 'Nitrate (as NO3)', + 'Nitrate (as N)', + '18O:16O ratio', + 'Lead', + 'Lead, total, unfiltered', + 'Phosphate', + 'Antimony', + 'Antimony, total, unfiltered', + 'Selenium', + 'Selenium, total, unfiltered', + 'Sulfur hexafluoride', + 'Silicon', + 'Silicon, total, unfiltered', + 'Silica', + 'Tin', + 'Tin, total, unfiltered', + 'Strontium', + 'Strontium, total, unfiltered', + 'Strontium 87:86 ratio', + 'Thorium', + 'Thorium, total, unfiltered', + 'Titanium', + 'Titanium, total, unfiltered', + 'Thallium', + 'Thallium, total, unfiltered', + 'Uranium (total, by ICP-MS)', + 'Uranium, total, unfiltered', + 'Vanadium', + 'Vanadium, total, unfiltered', + 'Zinc', + 'Zinc, total, unfiltered', + 'Corrected C14 in years', + 'Arsenite (arsenic species)', + 'Arsenate (arsenic species)', + 'Cyanide', + 'Estimated recharge temperature', + 'Hydrogen sulfide', + 'Ammonia', + 'Ammonium', + 'Total nitrogen', + 'Total Kjeldahl nitrogen', + 'Dissolved organic carbon', + 'Total organic carbon', + 'delta C13 of dissolved inorganic carbon', +]) /** * parameter_type */ export const zParameterType = z.enum([ - 'Field Parameter', - 'Metal', - 'Radionuclide', - 'Major Element', - 'Minor Element', - 'Physical property' -]); + 'Field Parameter', + 'Metal', + 'Radionuclide', + 'Major Element', + 'Minor Element', + 'Physical property', +]) /** * ParameterResponse @@ -1191,57 +902,33 @@ export const zParameterType = z.enum([ * This model can be extended to include additional fields as needed. */ export const zParameterResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - parameter_name: zParameterName, - matrix: z.string(), - parameter_type: z.union([ - zParameterType, - z.null() - ]), - cas_number: z.union([ - z.string(), - z.null() - ]), - default_unit: z.union([ - zUnit, - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + parameter_name: zParameterName, + matrix: z.string(), + parameter_type: z.union([zParameterType, z.null()]), + cas_number: z.union([z.string(), z.null()]), + default_unit: z.union([zUnit, z.null()]), +}) /** * GroundwaterLevelObservationResponse */ export const zGroundwaterLevelObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - sample_id: z.int(), - sensor_id: z.union([ - z.int(), - z.null() - ]), - observation_datetime: z.string(), - parameter: zParameterResponse, - value: z.union([ - z.number(), - z.null() - ]), - unit: zUnit, - depth_to_water_bgs: z.union([ - z.number(), - z.null() - ]), - measuring_point_height: z.union([ - z.number(), - z.null() - ]), - groundwater_level_reason: z.union([ - z.string(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + sample_id: z.int(), + sensor_id: z.union([z.int(), z.null()]), + observation_datetime: z.string(), + parameter: zParameterResponse, + value: z.union([z.number(), z.null()]), + unit: zUnit, + depth_to_water_bgs: z.union([z.number(), z.null()]), + measuring_point_height: z.union([z.number(), z.null()]), + groundwater_level_reason: z.union([z.string(), z.null()]), +}) /** * GroupResponse @@ -1249,42 +936,30 @@ export const zGroundwaterLevelObservationResponse = z.object({ * This model can be extended to include additional fields as needed. */ export const zGroupResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - project_area: z.union([ - z.string(), - z.null() - ]), - description: z.union([ - z.string(), - z.null() - ]), - parent_group_id: z.union([ - z.int(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + project_area: z.union([z.string(), z.null()]), + description: z.union([z.string(), z.null()]), + parent_group_id: z.union([z.int(), z.null()]), +}) /** * ValidationError */ export const zValidationError = z.object({ - loc: z.array(z.union([ - z.string(), - z.int() - ])), - msg: z.string(), - type: z.string() -}); + loc: z.array(z.union([z.string(), z.int()])), + msg: z.string(), + type: z.string(), +}) /** * HTTPValidationError */ export const zHttpValidationError = z.object({ - detail: z.optional(z.array(zValidationError)) -}); + detail: z.optional(z.array(zValidationError)), +}) /** * LexiconCategoryResponse @@ -1292,14 +967,11 @@ export const zHttpValidationError = z.object({ * This model can be extended to include additional fields as needed. */ export const zLexiconCategoryResponse = z.object({ - id: z.int(), - created_at: z.string(), - name: z.string(), - description: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + id: z.int(), + created_at: z.string(), + name: z.string(), + description: z.optional(z.union([z.string(), z.null()])), +}) /** * LexiconTermResponse @@ -1307,23 +979,23 @@ export const zLexiconCategoryResponse = z.object({ * This model can be extended to include additional fields as needed. */ export const zLexiconTermResponse = z.object({ - id: z.int(), - created_at: z.string(), - term: z.string(), - definition: z.string(), - categories: z.optional(z.array(zLexiconCategoryResponse)).default([]) -}); + id: z.int(), + created_at: z.string(), + term: z.string(), + definition: z.string(), + categories: z.optional(z.array(zLexiconCategoryResponse)).default([]), +}) /** * LexiconTripleResponse */ export const zLexiconTripleResponse = z.object({ - id: z.int(), - created_at: z.string(), - subject: z.string(), - predicate: z.string(), - object_: z.string() -}); + id: z.int(), + created_at: z.string(), + subject: z.string(), + predicate: z.string(), + object_: z.string(), +}) /** * ObservationResponse @@ -1331,177 +1003,162 @@ export const zLexiconTripleResponse = z.object({ * Combines groundwater level and geothermal observation responses. */ export const zObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - sample_id: z.int(), - sensor_id: z.union([ - z.int(), - z.null() - ]), - observation_datetime: z.string(), - parameter: zParameterResponse, - value: z.union([ - z.number(), - z.null() - ]), - unit: zUnit, - depth_to_water_bgs: z.union([ - z.number(), - z.null() - ]), - measuring_point_height: z.union([ - z.number(), - z.null() - ]), - groundwater_level_reason: z.union([ - z.string(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + sample_id: z.int(), + sensor_id: z.union([z.int(), z.null()]), + observation_datetime: z.string(), + parameter: zParameterResponse, + value: z.union([z.number(), z.null()]), + unit: zUnit, + depth_to_water_bgs: z.union([z.number(), z.null()]), + measuring_point_height: z.union([z.number(), z.null()]), + groundwater_level_reason: z.union([z.string(), z.null()]), +}) /** * Page[AddressResponse] */ export const zPageAddressResponse = z.object({ - items: z.array(zAddressResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zAddressResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[AssetResponse] */ export const zPageAssetResponse = z.object({ - items: z.array(zAssetResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zAssetResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[ContactResponse] */ export const zPageContactResponse = z.object({ - items: z.array(zContactResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zContactResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[DeploymentResponse] */ export const zPageDeploymentResponse = z.object({ - items: z.array(zDeploymentResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zDeploymentResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[EmailResponse] */ export const zPageEmailResponse = z.object({ - items: z.array(zEmailResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zEmailResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[GroundwaterLevelObservationResponse] */ export const zPageGroundwaterLevelObservationResponse = z.object({ - items: z.array(zGroundwaterLevelObservationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zGroundwaterLevelObservationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[GroupResponse] */ export const zPageGroupResponse = z.object({ - items: z.array(zGroupResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zGroupResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[LexiconCategoryResponse] */ export const zPageLexiconCategoryResponse = z.object({ - items: z.array(zLexiconCategoryResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zLexiconCategoryResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[LexiconTermResponse] */ export const zPageLexiconTermResponse = z.object({ - items: z.array(zLexiconTermResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zLexiconTermResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[LexiconTripleResponse] */ export const zPageLexiconTripleResponse = z.object({ - items: z.array(zLexiconTripleResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zLexiconTripleResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[LocationResponse] */ export const zPageLocationResponse = z.object({ - items: z.array(zLocationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zLocationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[ObservationResponse] */ export const zPageObservationResponse = z.object({ - items: z.array(zObservationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zObservationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[PhoneResponse] */ export const zPagePhoneResponse = z.object({ - items: z.array(zPhoneResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zPhoneResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * SampleResponse @@ -1513,496 +1170,356 @@ export const zPagePhoneResponse = z.object({ * .model_dump() and exlude fields to reduce the size. */ export const zSampleResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing: zThingResponse, - field_event: zFieldEventResponse, - field_activity: zFieldActivityResponse, - contact: zContactResponse, - sample_date: z.string(), - sample_name: z.string(), - sample_matrix: zSampleMatrix, - sample_method: zSampleMethod, - qc_type: zQcType, - notes: z.union([ - z.string(), - z.null() - ]), - depth_top: z.union([ - z.number(), - z.null() - ]), - depth_bottom: z.union([ - z.number(), - z.null() - ]) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing: zThingResponse, + field_event: zFieldEventResponse, + field_activity: zFieldActivityResponse, + contact: zContactResponse, + sample_date: z.string(), + sample_name: z.string(), + sample_matrix: zSampleMatrix, + sample_method: zSampleMethod, + qc_type: zQcType, + notes: z.union([z.string(), z.null()]), + depth_top: z.union([z.number(), z.null()]), + depth_bottom: z.union([z.number(), z.null()]), +}) /** * Page[SampleResponse] */ export const zPageSampleResponse = z.object({ - items: z.array(zSampleResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zSampleResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[SensorResponse] */ export const zPageSensorResponse = z.object({ - items: z.array(zSensorResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zSensorResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * SpringResponse * Response schema for spring details. */ export const zSpringResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - thing_type: z.string(), - current_location: z.union([ - zLocationResponse, - z.null() - ]), - first_visit_date: z.union([ - z.iso.date(), - z.null() - ]), - spring_type: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + thing_type: z.string(), + current_location: z.union([zLocationResponse, z.null()]), + first_visit_date: z.union([z.iso.date(), z.null()]), + spring_type: z.optional(z.union([z.string(), z.null()])), +}) /** * Page[SpringResponse] */ export const zPageSpringResponse = z.object({ - items: z.array(zSpringResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zSpringResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * ThingIdLinkResponse */ export const zThingIdLinkResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - thing: zThingResponse, - relation: z.string(), - alternate_id: z.string(), - alternate_organization: z.string() -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + thing: zThingResponse, + relation: z.string(), + alternate_id: z.string(), + alternate_organization: z.string(), +}) /** * Page[ThingIdLinkResponse] */ export const zPageThingIdLinkResponse = z.object({ - items: z.array(zThingIdLinkResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zThingIdLinkResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[ThingResponse] */ export const zPageThingResponse = z.object({ - items: z.array(zThingResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zThingResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * TransducerObservationResponse */ export const zTransducerObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - value: z.number(), - observation_datetime: z.iso.datetime({ - offset: true - }), - parameter_id: z.int(), - deployment_id: z.int() -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + value: z.number(), + observation_datetime: z.iso.datetime({ + offset: true, + }), + parameter_id: z.int(), + deployment_id: z.int(), +}) + +/** + * review_status + */ +export const zReviewStatus = z.enum(['approved', 'not reviewed']) /** * TransducerObservationBlockResponse */ export const zTransducerObservationBlockResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - review_status: z.unknown(), - start_datetime: z.iso.datetime({ - offset: true - }), - end_datetime: z.iso.datetime({ - offset: true - }), - parameter_id: z.int() -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + review_status: zReviewStatus, + start_datetime: z.iso.datetime({ + offset: true, + }), + end_datetime: z.iso.datetime({ + offset: true, + }), + parameter_id: z.int(), +}) /** * TransducerObservationWithBlockResponse */ export const zTransducerObservationWithBlockResponse = z.object({ - observation: zTransducerObservationResponse, - block: zTransducerObservationBlockResponse -}); + observation: zTransducerObservationResponse, + block: zTransducerObservationBlockResponse, +}) /** * Page[TransducerObservationWithBlockResponse] */ export const zPageTransducerObservationWithBlockResponse = z.object({ - items: z.array(zTransducerObservationWithBlockResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zTransducerObservationWithBlockResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * WaterChemistryObservationResponse */ export const zWaterChemistryObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - sample_id: z.int(), - sensor_id: z.union([ - z.int(), - z.null() - ]), - observation_datetime: z.string(), - parameter: zParameterResponse, - value: z.union([ - z.number(), - z.null() - ]), - unit: zUnit -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + sample_id: z.int(), + sensor_id: z.union([z.int(), z.null()]), + observation_datetime: z.string(), + parameter: zParameterResponse, + value: z.union([z.number(), z.null()]), + unit: zUnit, +}) /** * Page[WaterChemistryObservationResponse] */ export const zPageWaterChemistryObservationResponse = z.object({ - items: z.array(zWaterChemistryObservationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zWaterChemistryObservationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * WellResponse * Response schema for well details. */ export const zWellResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - thing_type: z.string(), - current_location: z.union([ - zLocationResponse, - z.null() - ]), - first_visit_date: z.union([ - z.iso.date(), - z.null() - ]), - well_purposes: z.optional(z.array(zWellPurpose)).default([]), - well_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - well_depth_unit: z.optional(z.string()).default('ft'), - hole_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - hole_depth_unit: z.optional(z.string()).default('ft'), - well_casing_diameter: z.optional(z.union([ - z.number(), - z.null() - ])), - well_casing_diameter_unit: z.optional(z.string()).default('in'), - well_casing_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - well_casing_depth_unit: z.optional(z.string()).default('ft'), - well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), - well_construction_notes: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + thing_type: z.string(), + current_location: z.union([zLocationResponse, z.null()]), + first_visit_date: z.union([z.iso.date(), z.null()]), + well_purposes: z.optional(z.array(zWellPurpose)).default([]), + well_depth: z.optional(z.union([z.number(), z.null()])), + well_depth_unit: z.optional(z.string()).default('ft'), + hole_depth: z.optional(z.union([z.number(), z.null()])), + hole_depth_unit: z.optional(z.string()).default('ft'), + well_casing_diameter: z.optional(z.union([z.number(), z.null()])), + well_casing_diameter_unit: z.optional(z.string()).default('in'), + well_casing_depth: z.optional(z.union([z.number(), z.null()])), + well_casing_depth_unit: z.optional(z.string()).default('ft'), + well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), + well_construction_notes: z.optional(z.union([z.string(), z.null()])), +}) /** * Page[WellResponse] */ export const zPageWellResponse = z.object({ - items: z.array(zWellResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zWellResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * WellScreenResponse * Response schema for well screen details. */ export const zWellScreenResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - thing: zWellResponse, - screen_depth_bottom: z.number(), - screen_depth_bottom_unit: z.optional(z.string()).default('ft'), - screen_depth_top: z.number(), - screen_depth_top_unit: z.optional(z.string()).default('ft'), - screen_type: z.optional(z.union([ - z.string(), - z.null() - ])), - screen_description: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + thing: zWellResponse, + screen_depth_bottom: z.number(), + screen_depth_bottom_unit: z.optional(z.string()).default('ft'), + screen_depth_top: z.number(), + screen_depth_top_unit: z.optional(z.string()).default('ft'), + screen_type: z.optional(z.union([z.string(), z.null()])), + screen_description: z.optional(z.union([z.string(), z.null()])), +}) /** * Page[WellScreenResponse] */ export const zPageWellScreenResponse = z.object({ - items: z.array(zWellScreenResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(zWellScreenResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * Page[dict] */ export const zPageDict = z.object({ - items: z.array(z.record(z.string(), z.unknown())), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0) -}); + items: z.array(z.record(z.string(), z.unknown())), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0), +}) /** * PublicationResponse * Schema for the response of a publication. */ export const zPublicationResponse = z.object({ - id: z.int(), - title: z.string(), - authors: z.array(zAuthorResponse), - year: z.int(), - doi: z.optional(z.union([ - z.string(), - z.null() - ])), - url: z.optional(z.union([ - z.string(), - z.null() - ])), - publication_type: zPublicationType -}); + id: z.int(), + title: z.string(), + authors: z.array(zAuthorResponse), + year: z.int(), + doi: z.optional(z.union([z.string(), z.null()])), + url: z.optional(z.union([z.string(), z.null()])), + publication_type: zPublicationType, +}) /** * ResourceNotFoundResponse */ export const zResourceNotFoundResponse = z.object({ - detail: z.string() -}); + detail: z.string(), +}) /** * UpdateAddress * Schema for updating address information. */ export const zUpdateAddress = z.object({ - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - contact_id: z.optional(z.union([ - z.int(), - z.null() - ])), - address_line_1: z.optional(z.union([ - z.string(), - z.null() - ])), - address_line_2: z.optional(z.union([ - z.string(), - z.null() - ])), - city: z.optional(z.union([ - z.string(), - z.null() - ])), - state: z.optional(z.union([ - z.string(), - z.null() - ])), - postal_code: z.optional(z.union([ - z.string(), - z.null() - ])), - country: z.optional(z.union([ - z.string(), - z.null() - ])), - address_type: z.optional(z.union([ - zAddressType, - z.null() - ])) -}); + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + contact_id: z.optional(z.union([z.int(), z.null()])), + address_line_1: z.optional(z.union([z.string(), z.null()])), + address_line_2: z.optional(z.union([z.string(), z.null()])), + city: z.optional(z.union([z.string(), z.null()])), + state: z.optional(z.union([z.string(), z.null()])), + postal_code: z.optional(z.union([z.string(), z.null()])), + country: z.optional(z.union([z.string(), z.null()])), + address_type: z.optional(z.union([zAddressType, z.null()])), +}) /** * UpdateAsset */ export const zUpdateAsset = z.object({ - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - name: z.optional(z.union([ - z.string(), - z.null() - ])), - label: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + name: z.optional(z.union([z.string(), z.null()])), + label: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateContact * Schema for updating contact information. */ export const zUpdateContact = z.object({ - name: z.optional(z.union([ - z.string(), - z.null() - ])), - organization: z.optional(z.union([ - z.string(), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - role: z.optional(z.union([ - zRole, - z.null() - ])), - contact_type: z.optional(z.union([ - zContactType, - z.null() - ])), - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])) -}); + name: z.optional(z.union([z.string(), z.null()])), + organization: z.optional(z.union([z.string(), z.null()])), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + role: z.optional(z.union([zRole, z.null()])), + contact_type: z.optional(z.union([zContactType, z.null()])), + thing_id: z.optional(z.union([z.int(), z.null()])), +}) /** * UpdateEmail * Schema for updating email information. */ export const zUpdateEmail = z.object({ - email: z.optional(z.union([ - z.string(), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - contact_id: z.optional(z.union([ - z.int(), - z.null() - ])), - email_type: z.optional(z.union([ - zEmailType, - z.null() - ])) -}); + email: z.optional(z.union([z.string(), z.null()])), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + contact_id: z.optional(z.union([z.int(), z.null()])), + email_type: z.optional(z.union([zEmailType, z.null()])), +}) /** * UpdateGroundwaterLevelObservation */ export const zUpdateGroundwaterLevelObservation = z.object({ - parameter_id: z.optional(z.union([ - z.int(), - z.null() - ])), - observation_datetime: z.optional(z.union([ - z.iso.datetime({ - offset: true - }), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - sample_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sensor_id: z.optional(z.union([ - z.int(), - z.null() - ])), - value: z.optional(z.union([ - z.number(), - z.null() - ])), - unit: z.optional(z.union([ - zUnit, - z.null() - ])), - measuring_point_height: z.optional(z.union([ - z.number(), - z.null() - ])), - groundwater_level_reason: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + parameter_id: z.optional(z.union([z.int(), z.null()])), + observation_datetime: z.optional( + z.union([ + z.iso.datetime({ + offset: true, + }), + z.null(), + ]) + ), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + sample_id: z.optional(z.union([z.int(), z.null()])), + sensor_id: z.optional(z.union([z.int(), z.null()])), + value: z.optional(z.union([z.number(), z.null()])), + unit: z.optional(z.union([zUnit, z.null()])), + measuring_point_height: z.optional(z.union([z.number(), z.null()])), + groundwater_level_reason: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateGroup @@ -2010,1922 +1527,1770 @@ export const zUpdateGroundwaterLevelObservation = z.object({ * This model can be extended to include additional fields as needed. */ export const zUpdateGroup = z.object({ - project_area: z.optional(z.union([ - z.string(), - z.null() - ])), - description: z.optional(z.union([ - z.string(), - z.null() - ])), - parent_group_id: z.optional(z.union([ - z.int(), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - name: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + project_area: z.optional(z.union([z.string(), z.null()])), + description: z.optional(z.union([z.string(), z.null()])), + parent_group_id: z.optional(z.union([z.int(), z.null()])), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + name: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateLexiconCategory */ export const zUpdateLexiconCategory = z.object({ - name: z.optional(z.union([ - z.string(), - z.null() - ])), - description: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + name: z.optional(z.union([z.string(), z.null()])), + description: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateLexiconTerm */ export const zUpdateLexiconTerm = z.object({ - term: z.optional(z.union([ - z.string(), - z.null() - ])), - definition: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + term: z.optional(z.union([z.string(), z.null()])), + definition: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateLexiconTriple */ export const zUpdateLexiconTriple = z.object({ - subject: z.optional(z.union([ - z.string(), - z.null() - ])), - predicate: z.optional(z.union([ - z.string(), - z.null() - ])), - object_: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + subject: z.optional(z.union([z.string(), z.null()])), + predicate: z.optional(z.union([z.string(), z.null()])), + object_: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateLocation * Schema for updating a location. */ export const zUpdateLocation = z.object({ - point: z.optional(z.union([ - z.string(), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - notes: z.optional(z.union([ - z.string(), - z.null() - ])), - elevation: z.optional(z.union([ - z.number(), - z.null() - ])), - elevation_accuracy: z.optional(z.union([ - z.number(), - z.null() - ])), - elevation_method: z.optional(z.union([ - zElevationMethod, - z.null() - ])), - coordinate_accuracy: z.optional(z.union([ - z.number(), - z.null() - ])), - coordinate_method: z.optional(z.union([ - zCoordinateMethod, - z.null() - ])) -}); + point: z.optional(z.union([z.string(), z.null()])), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + notes: z.optional(z.union([z.string(), z.null()])), + elevation: z.optional(z.union([z.number(), z.null()])), + elevation_accuracy: z.optional(z.union([z.number(), z.null()])), + elevation_method: z.optional(z.union([zElevationMethod, z.null()])), + coordinate_accuracy: z.optional(z.union([z.number(), z.null()])), + coordinate_method: z.optional(z.union([zCoordinateMethod, z.null()])), +}) /** * UpdatePhone * Schema for updating phone information. */ export const zUpdatePhone = z.object({ - phone_number: z.optional(z.union([ - z.string(), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - contact_id: z.optional(z.union([ - z.int(), - z.null() - ])), - phone_type: z.optional(z.union([ - zPhoneType, - z.null() - ])) -}); + phone_number: z.optional(z.union([z.string(), z.null()])), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + contact_id: z.optional(z.union([z.int(), z.null()])), + phone_type: z.optional(z.union([zPhoneType, z.null()])), +}) /** * UpdateSample */ export const zUpdateSample = z.object({ - sample_date: z.optional(z.union([ - z.iso.datetime({ - offset: true - }), - z.null() - ])), - depth_top: z.optional(z.union([ - z.number(), - z.null() - ])), - depth_bottom: z.optional(z.union([ - z.number(), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - field_activity_id: z.optional(z.union([ - z.int(), - z.null() - ])), - field_event_participant_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sample_name: z.optional(z.union([ - z.string(), - z.null() - ])), - sample_matrix: z.optional(z.union([ - zSampleMatrix, - z.null() - ])), - sample_method: z.optional(z.union([ - zSampleMethod, - z.null() - ])), - qc_type: z.optional(z.union([ - zQcType, - z.null() - ])), - notes: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + sample_date: z.optional( + z.union([ + z.iso.datetime({ + offset: true, + }), + z.null(), + ]) + ), + depth_top: z.optional(z.union([z.number(), z.null()])), + depth_bottom: z.optional(z.union([z.number(), z.null()])), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + field_activity_id: z.optional(z.union([z.int(), z.null()])), + field_event_participant_id: z.optional(z.union([z.int(), z.null()])), + sample_name: z.optional(z.union([z.string(), z.null()])), + sample_matrix: z.optional(z.union([zSampleMatrix, z.null()])), + sample_method: z.optional(z.union([zSampleMethod, z.null()])), + qc_type: z.optional(z.union([zQcType, z.null()])), + notes: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateSensor */ export const zUpdateSensor = z.object({ - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - name: z.optional(z.union([ - z.string(), - z.null() - ])), - sensor_type: z.optional(z.union([ - zSensorType, - z.null() - ])), - model: z.optional(z.union([ - z.string(), - z.null() - ])), - serial_no: z.optional(z.union([ - z.string(), - z.null() - ])), - pcn_number: z.optional(z.union([ - z.string(), - z.null() - ])), - owner_agency: z.optional(z.union([ - z.string(), - z.null() - ])), - sensor_status: z.optional(z.union([ - z.string(), - z.null() - ])), - notes: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + name: z.optional(z.union([z.string(), z.null()])), + sensor_type: z.optional(z.union([zSensorType, z.null()])), + model: z.optional(z.union([z.string(), z.null()])), + serial_no: z.optional(z.union([z.string(), z.null()])), + pcn_number: z.optional(z.union([z.string(), z.null()])), + owner_agency: z.optional(z.union([z.string(), z.null()])), + sensor_status: z.optional(z.union([z.string(), z.null()])), + notes: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateSpring */ export const zUpdateSpring = z.object({ - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - name: z.optional(z.union([ - z.string(), - z.null() - ])), - first_visit_date: z.optional(z.union([ - z.iso.date(), - z.null() - ])), - spring_type: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + name: z.optional(z.union([z.string(), z.null()])), + first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), + spring_type: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateThingIdLink */ export const zUpdateThingIdLink = z.object({ - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - alternate_organization: z.optional(z.union([ - z.string(), - z.null() - ])), - alternate_id: z.optional(z.union([ - z.string(), - z.null() - ])), - relation: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + alternate_organization: z.optional(z.union([z.string(), z.null()])), + alternate_id: z.optional(z.union([z.string(), z.null()])), + relation: z.optional(z.union([z.string(), z.null()])), +}) /** * UpdateWaterChemistryObservation */ export const zUpdateWaterChemistryObservation = z.object({ - parameter_id: z.optional(z.union([ - z.int(), - z.null() - ])), - observation_datetime: z.optional(z.union([ - z.iso.datetime({ - offset: true - }), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - sample_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sensor_id: z.optional(z.union([ - z.int(), - z.null() - ])), - value: z.optional(z.union([ - z.number(), - z.null() - ])), - unit: z.optional(z.union([ - zUnit, - z.null() - ])) -}); + parameter_id: z.optional(z.union([z.int(), z.null()])), + observation_datetime: z.optional( + z.union([ + z.iso.datetime({ + offset: true, + }), + z.null(), + ]) + ), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + sample_id: z.optional(z.union([z.int(), z.null()])), + sensor_id: z.optional(z.union([z.int(), z.null()])), + value: z.optional(z.union([z.number(), z.null()])), + unit: z.optional(z.union([zUnit, z.null()])), +}) /** * UpdateWell */ export const zUpdateWell = z.object({ - well_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - hole_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - well_casing_depth: z.optional(z.union([ - z.number(), - z.null() - ])), - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - name: z.optional(z.union([ - z.string(), - z.null() - ])), - first_visit_date: z.optional(z.union([ - z.iso.date(), - z.null() - ])), - well_purposes: z.optional(z.union([ - z.array(z.string()), - z.null() - ])), - well_construction_notes: z.optional(z.union([ - z.string(), - z.null() - ])), - well_casing_diameter: z.optional(z.union([ - z.number(), - z.null() - ])), - well_casing_materials: z.optional(z.union([ - z.array(z.string()), - z.null() - ])) -}); + well_depth: z.optional(z.union([z.number(), z.null()])), + hole_depth: z.optional(z.union([z.number(), z.null()])), + well_casing_depth: z.optional(z.union([z.number(), z.null()])), + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + name: z.optional(z.union([z.string(), z.null()])), + first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), + well_purposes: z.optional(z.union([z.array(z.string()), z.null()])), + well_construction_notes: z.optional(z.union([z.string(), z.null()])), + well_casing_diameter: z.optional(z.union([z.number(), z.null()])), + well_casing_materials: z.optional(z.union([z.array(z.string()), z.null()])), +}) /** * UpdateWellScreen */ export const zUpdateWellScreen = z.object({ - release_status: z.optional(z.union([ - zReleaseStatus, - z.null() - ])), - screen_depth_bottom: z.optional(z.union([ - z.number(), - z.null() - ])), - screen_depth_top: z.optional(z.union([ - z.number(), - z.null() - ])), - screen_description: z.optional(z.union([ - z.string(), - z.null() - ])), - screen_type: z.optional(z.union([ - z.string(), - z.null() - ])) -}); + release_status: z.optional(z.union([zReleaseStatus, z.null()])), + screen_depth_bottom: z.optional(z.union([z.number(), z.null()])), + screen_depth_top: z.optional(z.union([z.number(), z.null()])), + screen_description: z.optional(z.union([z.string(), z.null()])), + screen_type: z.optional(z.union([z.string(), z.null()])), +}) export const zUploadAssetAssetUploadPostData = z.object({ - body: zBodyUploadAssetAssetUploadPost, - path: z.optional(z.never()), - query: z.optional(z.object({ - client: z.optional(z.unknown()) - })) -}); + body: zBodyUploadAssetAssetUploadPost, + path: z.optional(z.never()), + query: z.optional( + z.object({ + client: z.optional(z.unknown()), + }) + ), +}) /** * Response Upload Asset Asset Upload Post * Successful Response */ -export const zUploadAssetAssetUploadPostResponse = z.record(z.string(), z.unknown()); +export const zUploadAssetAssetUploadPostResponse = z.record( + z.string(), + z.unknown() +) export const zListAssetsAssetGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.int()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + thing_id: z.optional(z.int()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zListAssetsAssetGetResponse = zPageAssetResponse; +export const zListAssetsAssetGetResponse = zPageAssetResponse export const zAddAssetAssetPostData = z.object({ - body: zCreateAsset, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateAsset, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zAddAssetAssetPostResponse = zAssetResponse; +export const zAddAssetAssetPostResponse = zAssetResponse export const zDeleteAssetAssetAssetIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - asset_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + asset_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteAssetAssetAssetIdDeleteResponse = z.void(); +export const zDeleteAssetAssetAssetIdDeleteResponse = z.void() export const zGetAssetAssetAssetIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - asset_id: z.int() - }), - query: z.optional(z.object({ - client: z.optional(z.unknown()) - })) -}); + body: z.optional(z.never()), + path: z.object({ + asset_id: z.int(), + }), + query: z.optional( + z.object({ + client: z.optional(z.unknown()), + }) + ), +}) /** * Successful Response */ -export const zGetAssetAssetAssetIdGetResponse = zAssetResponse; +export const zGetAssetAssetAssetIdGetResponse = zAssetResponse export const zUpdateAssetAssetAssetIdPatchData = z.object({ - body: zUpdateAsset, - path: z.object({ - asset_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateAsset, + path: z.object({ + asset_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zRemoveAssetAssetAssetIdRemoveDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - asset_id: z.int() - }), - query: z.optional(z.object({ - client: z.optional(z.unknown()) - })) -}); + body: z.optional(z.never()), + path: z.object({ + asset_id: z.int(), + }), + query: z.optional( + z.object({ + client: z.optional(z.unknown()), + }) + ), +}) /** * Successful Response */ -export const zRemoveAssetAssetAssetIdRemoveDeleteResponse = z.void(); +export const zRemoveAssetAssetAssetIdRemoveDeleteResponse = z.void() -export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetData = z.object({ +export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetData = z.object( + { body: z.optional(z.never()), path: z.object({ - author_id: z.int() + author_id: z.int(), }), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + } +) /** * Response Get Author Publications Author Author Id Publications Get * Successful Response */ -export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = z.array(zPublicationResponse); +export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = + z.array(zPublicationResponse) export const zGetContactsContactGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + thing_id: z.optional(z.union([z.int(), z.null()])), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetContactsContactGetResponse = zPageContactResponse; +export const zGetContactsContactGetResponse = zPageContactResponse export const zCreateContactContactPostData = z.object({ - body: zCreateContact, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateContact, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateContactContactPostResponse = zContactResponse; +export const zCreateContactContactPostResponse = zContactResponse export const zGetAddressesContactAddressGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetAddressesContactAddressGetResponse = zPageAddressResponse; +export const zGetAddressesContactAddressGetResponse = zPageAddressResponse export const zCreateAddressContactAddressPostData = z.object({ - body: zCreateAddress, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateAddress, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateAddressContactAddressPostResponse = zAddressResponse; +export const zCreateAddressContactAddressPostResponse = zAddressResponse export const zGetEmailsContactEmailGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetEmailsContactEmailGetResponse = zPageEmailResponse; +export const zGetEmailsContactEmailGetResponse = zPageEmailResponse export const zCreateEmailContactEmailPostData = z.object({ - body: zCreateEmail, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateEmail, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateEmailContactEmailPostResponse = zEmailResponse; +export const zCreateEmailContactEmailPostResponse = zEmailResponse export const zGetPhonesContactPhoneGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetPhonesContactPhoneGetResponse = zPagePhoneResponse; +export const zGetPhonesContactPhoneGetResponse = zPagePhoneResponse export const zCreatePhoneContactPhonePostData = z.object({ - body: zCreatePhone, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreatePhone, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreatePhoneContactPhonePostResponse = zPhoneResponse; +export const zCreatePhoneContactPhonePostResponse = zPhoneResponse export const zDeleteContactEmailContactEmailEmailIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - email_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + email_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zGetEmailByIdContactEmailEmailIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - email_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + email_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetEmailByIdContactEmailEmailIdGetResponse = zEmailResponse; +export const zGetEmailByIdContactEmailEmailIdGetResponse = zEmailResponse export const zUpdateContactEmailContactEmailEmailIdPatchData = z.object({ - body: zUpdateEmail, - path: z.object({ - email_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateEmail, + path: z.object({ + email_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateContactEmailContactEmailEmailIdPatchResponse = zEmailResponse; +export const zUpdateContactEmailContactEmailEmailIdPatchResponse = + zEmailResponse export const zDeleteContactPhoneContactPhonePhoneIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - phone_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + phone_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zGetPhoneByIdContactPhonePhoneIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - phone_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + phone_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetPhoneByIdContactPhonePhoneIdGetResponse = zPhoneResponse; +export const zGetPhoneByIdContactPhonePhoneIdGetResponse = zPhoneResponse export const zUpdateContactPhoneContactPhonePhoneIdPatchData = z.object({ - body: zUpdatePhone, - path: z.object({ - phone_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdatePhone, + path: z.object({ + phone_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateContactPhoneContactPhonePhoneIdPatchResponse = zPhoneResponse; +export const zUpdateContactPhoneContactPhonePhoneIdPatchResponse = + zPhoneResponse export const zDeleteContactAddressContactAddressAddressIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - address_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + address_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zGetAddressByIdContactAddressAddressIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - address_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + address_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetAddressByIdContactAddressAddressIdGetResponse = zAddressResponse; +export const zGetAddressByIdContactAddressAddressIdGetResponse = + zAddressResponse export const zUpdateContactAddressContactAddressAddressIdPatchData = z.object({ - body: zUpdateAddress, - path: z.object({ - address_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateAddress, + path: z.object({ + address_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateContactAddressContactAddressAddressIdPatchResponse = zAddressResponse; +export const zUpdateContactAddressContactAddressAddressIdPatchResponse = + zAddressResponse export const zDeleteContactContactContactIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zGetContactByIdContactContactIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetContactByIdContactContactIdGetResponse = zContactResponse; +export const zGetContactByIdContactContactIdGetResponse = zContactResponse export const zUpdateContactContactContactIdPatchData = z.object({ - body: zUpdateContact, - path: z.object({ - contact_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateContact, + path: z.object({ + contact_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateContactContactContactIdPatchResponse = zContactResponse; +export const zUpdateContactContactContactIdPatchResponse = zContactResponse export const zGetContactEmailsContactContactIdEmailGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int() - }), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int(), + }), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetContactEmailsContactContactIdEmailGetResponse = zPageEmailResponse; +export const zGetContactEmailsContactContactIdEmailGetResponse = + zPageEmailResponse export const zGetContactPhonesContactContactIdPhoneGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int() - }), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int(), + }), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetContactPhonesContactContactIdPhoneGetResponse = zPagePhoneResponse; +export const zGetContactPhonesContactContactIdPhoneGetResponse = + zPagePhoneResponse export const zGetContactAddressesContactContactIdAddressGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int() - }), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int(), + }), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetContactAddressesContactContactIdAddressGetResponse = zPageAddressResponse; +export const zGetContactAddressesContactContactIdAddressGetResponse = + zPageAddressResponse export const zGetGeospatialGeospatialGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - thing_type: z.optional(z.array(z.string())), - group: z.optional(z.union([ - z.string(), - z.int() - ])), - format: z.optional(z.string().regex(/^(geojson|shapefile)$/)).default('geojson') - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + thing_type: z.optional(z.array(z.string())), + group: z.optional(z.union([z.string(), z.int()])), + format: z + .optional(z.string().regex(/^(geojson|shapefile)$/)) + .default('geojson'), + }) + ), +}) export const zGetProjectAreaGeospatialProjectAreaGroupIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - group_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + group_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetProjectAreaGeospatialProjectAreaGroupIdGetResponse = zFeatureCollectionResponse; +export const zGetProjectAreaGeospatialProjectAreaGroupIdGetResponse = + zFeatureCollectionResponse export const zGetGroupsGroupGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetGroupsGroupGetResponse = zPageGroupResponse; +export const zGetGroupsGroupGetResponse = zPageGroupResponse export const zCreateGroupGroupPostData = z.object({ - body: zCreateGroup, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateGroup, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateGroupGroupPostResponse = zGroupResponse; +export const zCreateGroupGroupPostResponse = zGroupResponse export const zDeleteGroupGroupGroupIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - group_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + group_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteGroupGroupGroupIdDeleteResponse = z.void(); +export const zDeleteGroupGroupGroupIdDeleteResponse = z.void() export const zGetGroupByIdGroupGroupIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - group_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + group_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetGroupByIdGroupGroupIdGetResponse = zGroupResponse; +export const zGetGroupByIdGroupGroupIdGetResponse = zGroupResponse export const zUpdateGroupGroupGroupIdPatchData = z.object({ - body: zUpdateGroup, - path: z.object({ - group_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateGroup, + path: z.object({ + group_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateGroupGroupGroupIdPatchResponse = zGroupResponse; +export const zUpdateGroupGroupGroupIdPatchResponse = zGroupResponse export const zGetLexiconCategoriesLexiconCategoryGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - sort: z.optional(z.string()).default('name'), - order: z.optional(z.string()).default('asc'), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + sort: z.optional(z.string()).default('name'), + order: z.optional(z.string()).default('asc'), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetLexiconCategoriesLexiconCategoryGetResponse = zPageLexiconCategoryResponse; +export const zGetLexiconCategoriesLexiconCategoryGetResponse = + zPageLexiconCategoryResponse export const zAddCategoryLexiconCategoryPostData = z.object({ - body: zCreateLexiconCategory, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateLexiconCategory, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zAddCategoryLexiconCategoryPostResponse = zLexiconCategoryResponse; +export const zAddCategoryLexiconCategoryPostResponse = zLexiconCategoryResponse export const zGetLexiconTermsLexiconTermGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - category: z.optional(z.union([ - z.string(), - z.null() - ])), - term: z.optional(z.union([ - z.string(), - z.null() - ])), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + category: z.optional(z.union([z.string(), z.null()])), + term: z.optional(z.union([z.string(), z.null()])), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetLexiconTermsLexiconTermGetResponse = zPageLexiconTermResponse; +export const zGetLexiconTermsLexiconTermGetResponse = zPageLexiconTermResponse export const zAddTermLexiconTermPostData = z.object({ - body: zCreateLexiconTerm, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateLexiconTerm, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zAddTermLexiconTermPostResponse = zLexiconTermResponse; +export const zAddTermLexiconTermPostResponse = zLexiconTermResponse export const zGetLexiconTriplesLexiconTripleGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - sort: z.optional(z.string()).default('subject'), - order: z.optional(z.string()).default('asc'), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + sort: z.optional(z.string()).default('subject'), + order: z.optional(z.string()).default('asc'), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetLexiconTriplesLexiconTripleGetResponse = zPageLexiconTripleResponse; +export const zGetLexiconTriplesLexiconTripleGetResponse = + zPageLexiconTripleResponse export const zAddTripleLexiconTriplePostData = z.object({ - body: zCreateLexiconTriple, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateLexiconTriple, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zAddTripleLexiconTriplePostResponse = zLexiconTripleResponse; +export const zAddTripleLexiconTriplePostResponse = zLexiconTripleResponse export const zDeleteLexiconTermLexiconTermTermIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - term_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + term_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteLexiconTermLexiconTermTermIdDeleteResponse = z.void(); +export const zDeleteLexiconTermLexiconTermTermIdDeleteResponse = z.void() export const zGetLexiconTermLexiconTermTermIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - term_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + term_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetLexiconTermLexiconTermTermIdGetResponse = zLexiconTermResponse; +export const zGetLexiconTermLexiconTermTermIdGetResponse = zLexiconTermResponse export const zUpdateLexiconTermLexiconTermTermIdPatchData = z.object({ - body: zUpdateLexiconTerm, - path: z.object({ - term_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateLexiconTerm, + path: z.object({ + term_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateLexiconTermLexiconTermTermIdPatchResponse = zLexiconTermResponse; +export const zUpdateLexiconTermLexiconTermTermIdPatchResponse = + zLexiconTermResponse -export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteData = z.object({ +export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteData = + z.object({ body: z.optional(z.never()), path: z.object({ - category_id: z.int() + category_id: z.int(), }), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = z.void(); +export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = + z.void() export const zGetLexiconCategoryLexiconCategoryCategoryIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - category_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + category_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetLexiconCategoryLexiconCategoryCategoryIdGetResponse = zLexiconCategoryResponse; +export const zGetLexiconCategoryLexiconCategoryCategoryIdGetResponse = + zLexiconCategoryResponse -export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchData = z.object({ +export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchData = + z.object({ body: zUpdateLexiconCategory, path: z.object({ - category_id: z.int() + category_id: z.int(), }), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = zLexiconCategoryResponse; +export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = + zLexiconCategoryResponse export const zDeleteLexiconTripleLexiconTripleTripleIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - triple_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + triple_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = z.void(); +export const zDeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = z.void() export const zGetLexiconTripleLexiconTripleTripleIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - triple_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + triple_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetLexiconTripleLexiconTripleTripleIdGetResponse = zLexiconTripleResponse; +export const zGetLexiconTripleLexiconTripleTripleIdGetResponse = + zLexiconTripleResponse export const zUpdateLexiconTripleLexiconTripleTripleIdPatchData = z.object({ - body: zUpdateLexiconTriple, - path: z.object({ - triple_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateLexiconTriple, + path: z.object({ + triple_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateLexiconTripleLexiconTripleTripleIdPatchResponse = zLexiconTripleResponse; +export const zUpdateLexiconTripleLexiconTripleTripleIdPatchResponse = + zLexiconTripleResponse export const zGetLocationLocationGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - nearby_point: z.optional(z.string()), - nearby_distance_km: z.optional(z.number()).default(1), - within: z.optional(z.string()), - query: z.optional(z.string()), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + nearby_point: z.optional(z.string()), + nearby_distance_km: z.optional(z.number()).default(1), + within: z.optional(z.string()), + query: z.optional(z.string()), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetLocationLocationGetResponse = zPageLocationResponse; +export const zGetLocationLocationGetResponse = zPageLocationResponse export const zCreateLocationLocationPostData = z.object({ - body: zCreateLocation, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateLocation, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateLocationLocationPostResponse = zLocationResponse; +export const zCreateLocationLocationPostResponse = zLocationResponse export const zDeleteLocationLocationLocationIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - location_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + location_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zGetLocationByIdLocationLocationIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - location_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + location_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetLocationByIdLocationLocationIdGetResponse = zLocationResponse; +export const zGetLocationByIdLocationLocationIdGetResponse = zLocationResponse export const zUpdateLocationLocationLocationIdPatchData = z.object({ - body: zUpdateLocation, - path: z.object({ - location_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateLocation, + path: z.object({ + location_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateLocationLocationLocationIdPatchResponse = zLocationResponse; +export const zUpdateLocationLocationLocationIdPatchResponse = zLocationResponse -export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = z.object({ +export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = + z.object({ body: z.optional(z.never()), path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sensor_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sample_id: z.optional(z.union([ - z.int(), - z.null() - ])), - start_time: z.optional(z.union([ + query: z.optional( + z.object({ + thing_id: z.optional(z.union([z.int(), z.null()])), + sensor_id: z.optional(z.union([z.int(), z.null()])), + sample_id: z.optional(z.union([z.int(), z.null()])), + start_time: z.optional( + z.union([ z.iso.datetime({ - offset: true + offset: true, }), - z.null() - ])), - end_time: z.optional(z.union([ + z.null(), + ]) + ), + end_time: z.optional( + z.union([ z.iso.datetime({ - offset: true + offset: true, }), - z.null() - ])), - sort: z.optional(z.union([ - z.string(), - z.null() - ])), - order: z.optional(z.union([ - z.string(), - z.null() - ])), + z.null(), + ]) + ), + sort: z.optional(z.union([z.string(), z.null()])), + order: z.optional(z.union([z.string(), z.null()])), filter: z.optional(z.string()), page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), + }) /** * Successful Response */ -export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = zPageGroundwaterLevelObservationResponse; +export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = + zPageGroundwaterLevelObservationResponse -export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostData = z.object({ +export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostData = + z.object({ body: zCreateGroundwaterLevelObservation, path: z.optional(z.never()), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = zGroundwaterLevelObservationResponse; +export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = + zGroundwaterLevelObservationResponse -export const zGetWaterChemistryObservationsObservationWaterChemistryGetData = z.object({ +export const zGetWaterChemistryObservationsObservationWaterChemistryGetData = + z.object({ body: z.optional(z.never()), path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sensor_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sample_id: z.optional(z.union([ - z.int(), - z.null() - ])), - start_time: z.optional(z.union([ + query: z.optional( + z.object({ + thing_id: z.optional(z.union([z.int(), z.null()])), + sensor_id: z.optional(z.union([z.int(), z.null()])), + sample_id: z.optional(z.union([z.int(), z.null()])), + start_time: z.optional( + z.union([ z.iso.datetime({ - offset: true + offset: true, }), - z.null() - ])), - end_time: z.optional(z.union([ + z.null(), + ]) + ), + end_time: z.optional( + z.union([ z.iso.datetime({ - offset: true + offset: true, }), - z.null() - ])), - sort: z.optional(z.union([ - z.string(), - z.null() - ])), - order: z.optional(z.union([ - z.string(), - z.null() - ])), + z.null(), + ]) + ), + sort: z.optional(z.union([z.string(), z.null()])), + order: z.optional(z.union([z.string(), z.null()])), filter: z.optional(z.string()), page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), + }) /** * Successful Response */ -export const zGetWaterChemistryObservationsObservationWaterChemistryGetResponse = zPageWaterChemistryObservationResponse; +export const zGetWaterChemistryObservationsObservationWaterChemistryGetResponse = + zPageWaterChemistryObservationResponse -export const zAddWaterChemistryObservationObservationWaterChemistryPostData = z.object({ +export const zAddWaterChemistryObservationObservationWaterChemistryPostData = + z.object({ body: zCreateWaterChemistryObservation, path: z.optional(z.never()), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zAddWaterChemistryObservationObservationWaterChemistryPostResponse = zWaterChemistryObservationResponse; +export const zAddWaterChemistryObservationObservationWaterChemistryPostResponse = + zWaterChemistryObservationResponse -export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = z.object({ +export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = + z.object({ body: z.optional(z.never()), path: z.object({ - observation_id: z.int() + observation_id: z.int(), }), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = zGroundwaterLevelObservationResponse; +export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = + zGroundwaterLevelObservationResponse -export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = z.object({ +export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = + z.object({ body: zUpdateGroundwaterLevelObservation, path: z.object({ - observation_id: z.int() + observation_id: z.int(), }), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = zGroundwaterLevelObservationResponse; +export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = + zGroundwaterLevelObservationResponse -export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = z.object({ +export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = + z.object({ body: z.optional(z.never()), path: z.object({ - observation_id: z.int() + observation_id: z.int(), }), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = zWaterChemistryObservationResponse; +export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = + zWaterChemistryObservationResponse -export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = z.object({ +export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = + z.object({ body: zUpdateWaterChemistryObservation, path: z.object({ - observation_id: z.int() + observation_id: z.int(), }), - query: z.optional(z.never()) -}); + query: z.optional(z.never()), + }) /** * Successful Response */ -export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = zWaterChemistryObservationResponse; +export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = + zWaterChemistryObservationResponse -export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = z.object({ +export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = + z.object({ body: z.optional(z.never()), path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])), - parameter_id: z.optional(z.union([ - z.int(), - z.null() - ])), - start_time: z.optional(z.union([ + query: z.optional( + z.object({ + thing_id: z.optional(z.union([z.int(), z.null()])), + parameter_id: z.optional(z.union([z.int(), z.null()])), + start_time: z.optional( + z.union([ z.iso.datetime({ - offset: true + offset: true, }), - z.null() - ])), - end_time: z.optional(z.union([ + z.null(), + ]) + ), + end_time: z.optional( + z.union([ z.iso.datetime({ - offset: true + offset: true, }), - z.null() - ])), + z.null(), + ]) + ), page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), + }) /** * Successful Response */ -export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = zPageTransducerObservationWithBlockResponse; +export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = + zPageTransducerObservationWithBlockResponse export const zGetAllObservationsObservationGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sensor_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sample_id: z.optional(z.union([ - z.int(), - z.null() - ])), - start_time: z.optional(z.union([ - z.iso.datetime({ - offset: true - }), - z.null() - ])), - end_time: z.optional(z.union([ - z.iso.datetime({ - offset: true - }), - z.null() - ])), - sort: z.optional(z.union([ - z.string(), - z.null() - ])), - order: z.optional(z.union([ - z.string(), - z.null() - ])), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + thing_id: z.optional(z.union([z.int(), z.null()])), + sensor_id: z.optional(z.union([z.int(), z.null()])), + sample_id: z.optional(z.union([z.int(), z.null()])), + start_time: z.optional( + z.union([ + z.iso.datetime({ + offset: true, + }), + z.null(), + ]) + ), + end_time: z.optional( + z.union([ + z.iso.datetime({ + offset: true, + }), + z.null(), + ]) + ), + sort: z.optional(z.union([z.string(), z.null()])), + order: z.optional(z.union([z.string(), z.null()])), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetAllObservationsObservationGetResponse = zPageObservationResponse; +export const zGetAllObservationsObservationGetResponse = + zPageObservationResponse export const zDeleteObservationObservationObservationIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - observation_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + observation_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteObservationObservationObservationIdDeleteResponse = z.void(); +export const zDeleteObservationObservationObservationIdDeleteResponse = z.void() export const zGetObservationByIdObservationObservationIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - observation_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + observation_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetObservationByIdObservationObservationIdGetResponse = zObservationResponse; +export const zGetObservationByIdObservationObservationIdGetResponse = + zObservationResponse export const zPostPublicationPublicationAddPostData = z.object({ - body: zCreatePublication, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreatePublication, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zPostPublicationPublicationAddPostResponse = zPublicationResponse; +export const zPostPublicationPublicationAddPostResponse = zPublicationResponse export const zGetSamplesSampleGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.union([ - z.int(), - z.null() - ])), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + thing_id: z.optional(z.union([z.int(), z.null()])), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetSamplesSampleGetResponse = zPageSampleResponse; +export const zGetSamplesSampleGetResponse = zPageSampleResponse export const zAddSampleSamplePostData = z.object({ - body: zCreateSample, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateSample, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zAddSampleSamplePostResponse = zSampleResponse; +export const zAddSampleSamplePostResponse = zSampleResponse export const zDeleteSampleByIdSampleSampleIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sample_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + sample_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zGetSampleByIdSampleSampleIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sample_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + sample_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Response Get Sample By Id Sample Sample Id Get * Successful Response */ export const zGetSampleByIdSampleSampleIdGetResponse = z.union([ - zSampleResponse, - zResourceNotFoundResponse -]); + zSampleResponse, + zResourceNotFoundResponse, +]) export const zUpdateSampleSampleSampleIdPatchData = z.object({ - body: zUpdateSample, - path: z.object({ - sample_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateSample, + path: z.object({ + sample_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Response Update Sample Sample Sample Id Patch * Successful Response */ export const zUpdateSampleSampleSampleIdPatchResponse = z.union([ - zSampleResponse, - zResourceNotFoundResponse -]); + zSampleResponse, + zResourceNotFoundResponse, +]) export const zGetSensorsSensorGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.int()), - parameter_id: z.optional(z.int()), - sort: z.optional(z.union([ - z.string(), - z.null() - ])), - order: z.optional(z.union([ - z.string(), - z.null() - ])), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + thing_id: z.optional(z.int()), + parameter_id: z.optional(z.int()), + sort: z.optional(z.union([z.string(), z.null()])), + order: z.optional(z.union([z.string(), z.null()])), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetSensorsSensorGetResponse = zPageSensorResponse; +export const zGetSensorsSensorGetResponse = zPageSensorResponse export const zAddSensorSensorPostData = z.object({ - body: zCreateSensor, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateSensor, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zAddSensorSensorPostResponse = zSensorResponse; +export const zAddSensorSensorPostResponse = zSensorResponse export const zDeleteSensorSensorSensorIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sensor_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + sensor_id: z.int(), + }), + query: z.optional(z.never()), +}) export const zGetSensorSensorSensorIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sensor_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + sensor_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetSensorSensorSensorIdGetResponse = zSensorResponse; +export const zGetSensorSensorSensorIdGetResponse = zSensorResponse export const zUpdateSensorSensorSensorIdPatchData = z.object({ - body: zUpdateSensor, - path: z.object({ - sensor_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateSensor, + path: z.object({ + sensor_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateSensorSensorSensorIdPatchResponse = zSensorResponse; +export const zUpdateSensorSensorSensorIdPatchResponse = zSensorResponse export const zSearchApiSearchGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.object({ - q: z.string(), - limit: z.optional(z.int()).default(25), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - }) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.object({ + q: z.string(), + limit: z.optional(z.int()).default(25), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }), +}) /** * Successful Response */ -export const zSearchApiSearchGetResponse = zPageDict; +export const zSearchApiSearchGetResponse = zPageDict export const zGetWaterWellsThingWaterWellGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - query: z.optional(z.string()), - name: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + query: z.optional(z.string()), + name: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetWaterWellsThingWaterWellGetResponse = zPageWellResponse; +export const zGetWaterWellsThingWaterWellGetResponse = zPageWellResponse export const zCreateWellThingWaterWellPostData = z.object({ - body: zCreateWell, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateWell, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateWellThingWaterWellPostResponse = zWellResponse; +export const zCreateWellThingWaterWellPostResponse = zWellResponse export const zGetWellByIdThingWaterWellThingIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetWellByIdThingWaterWellThingIdGetResponse = zWellResponse; +export const zGetWellByIdThingWaterWellThingIdGetResponse = zWellResponse export const zUpdateWaterWellThingWaterWellThingIdPatchData = z.object({ - body: zUpdateWell, - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateWell, + path: z.object({ + thing_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateWaterWellThingWaterWellThingIdPatchResponse = zWellResponse; +export const zUpdateWaterWellThingWaterWellThingIdPatchResponse = zWellResponse -export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetData = z.object({ +export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetData = + z.object({ body: z.optional(z.never()), path: z.object({ - thing_id: z.int() + thing_id: z.int(), }), - query: z.optional(z.object({ + query: z.optional( + z.object({ page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), + }) /** * Successful Response */ -export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = zPageWellScreenResponse; +export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = + zPageWellScreenResponse export const zGetWellScreensThingWellScreenGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - thing_id: z.optional(z.int()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + thing_id: z.optional(z.int()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetWellScreensThingWellScreenGetResponse = zPageWellScreenResponse; +export const zGetWellScreensThingWellScreenGetResponse = zPageWellScreenResponse export const zCreateWellscreenThingWellScreenPostData = z.object({ - body: zCreateWellScreen, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateWellScreen, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateWellscreenThingWellScreenPostResponse = zWellScreenResponse; +export const zCreateWellscreenThingWellScreenPostResponse = zWellScreenResponse export const zGetWellScreenByIdThingWellScreenWellscreenIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - wellscreen_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + wellscreen_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetWellScreenByIdThingWellScreenWellscreenIdGetResponse = zWellScreenResponse; +export const zGetWellScreenByIdThingWellScreenWellscreenIdGetResponse = + zWellScreenResponse export const zGetSpringsThingSpringGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - query: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + query: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetSpringsThingSpringGetResponse = zPageSpringResponse; +export const zGetSpringsThingSpringGetResponse = zPageSpringResponse export const zCreateSpringThingSpringPostData = z.object({ - body: zCreateSpring, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateSpring, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateSpringThingSpringPostResponse = zSpringResponse; +export const zCreateSpringThingSpringPostResponse = zSpringResponse export const zGetSpringByIdThingSpringThingIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetSpringByIdThingSpringThingIdGetResponse = zSpringResponse; +export const zGetSpringByIdThingSpringThingIdGetResponse = zSpringResponse export const zUpdateSpringThingSpringThingIdPatchData = z.object({ - body: zUpdateSpring, - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateSpring, + path: z.object({ + thing_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateSpringThingSpringThingIdPatchResponse = zSpringResponse; +export const zUpdateSpringThingSpringThingIdPatchResponse = zSpringResponse export const zGetThingIdLinksThingIdLinkGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - filter: z.optional(z.string()), - sort: z.optional(z.string()), - order: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + filter: z.optional(z.string()), + sort: z.optional(z.string()), + order: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetThingIdLinksThingIdLinkGetResponse = zPageThingIdLinkResponse; +export const zGetThingIdLinksThingIdLinkGetResponse = zPageThingIdLinkResponse export const zCreateThingIdLinkThingIdLinkPostData = z.object({ - body: zCreateThingIdLink, - path: z.optional(z.never()), - query: z.optional(z.never()) -}); + body: zCreateThingIdLink, + path: z.optional(z.never()), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zCreateThingIdLinkThingIdLinkPostResponse = zThingIdLinkResponse; +export const zCreateThingIdLinkThingIdLinkPostResponse = zThingIdLinkResponse export const zDeleteThingIdLinkThingIdLinkLinkIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - link_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + link_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = z.void(); +export const zDeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = z.void() export const zGetThingIdLinksThingIdLinkLinkIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - link_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + link_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetThingIdLinksThingIdLinkLinkIdGetResponse = zThingIdLinkResponse; +export const zGetThingIdLinksThingIdLinkLinkIdGetResponse = zThingIdLinkResponse export const zUpdateThingIdLinkThingIdLinkLinkIdPatchData = z.object({ - body: zUpdateThingIdLink, - path: z.object({ - link_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateThingIdLink, + path: z.object({ + link_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateThingIdLinkThingIdLinkLinkIdPatchResponse = zThingIdLinkResponse; +export const zUpdateThingIdLinkThingIdLinkLinkIdPatchResponse = + zThingIdLinkResponse export const zGetThingsThingGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional(z.object({ - within: z.optional(z.string()), - query: z.optional(z.string()), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional( + z.object({ + within: z.optional(z.string()), + query: z.optional(z.string()), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetThingsThingGetResponse = zPageThingResponse; +export const zGetThingsThingGetResponse = zPageThingResponse export const zDeleteThingThingThingIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteThingThingThingIdDeleteResponse = z.void(); +export const zDeleteThingThingThingIdDeleteResponse = z.void() export const zGetThingByIdThingThingIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zGetThingByIdThingThingIdGetResponse = zThingResponse; +export const zGetThingByIdThingThingIdGetResponse = zThingResponse export const zGetThingIdLinksThingThingIdIdLinkGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int(), + }), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetThingIdLinksThingThingIdIdLinkGetResponse = zPageThingIdLinkResponse; +export const zGetThingIdLinksThingThingIdIdLinkGetResponse = + zPageThingIdLinkResponse export const zGetThingDeploymentsThingThingIdDeploymentGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int() - }), - query: z.optional(z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25) - })) -}); + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int(), + }), + query: z.optional( + z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25), + }) + ), +}) /** * Successful Response */ -export const zGetThingDeploymentsThingThingIdDeploymentGetResponse = zPageDeploymentResponse; +export const zGetThingDeploymentsThingThingIdDeploymentGetResponse = + zPageDeploymentResponse export const zDeleteWellScreenThingWellScreenWellScreenIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - well_screen_id: z.int() - }), - query: z.optional(z.never()) -}); + body: z.optional(z.never()), + path: z.object({ + well_screen_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zDeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = z.void(); +export const zDeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = + z.void() export const zUpdateWellScreenThingWellScreenWellScreenIdPatchData = z.object({ - body: zUpdateWellScreen, - path: z.object({ - well_screen_id: z.int() - }), - query: z.optional(z.never()) -}); + body: zUpdateWellScreen, + path: z.object({ + well_screen_id: z.int(), + }), + query: z.optional(z.never()), +}) /** * Successful Response */ -export const zUpdateWellScreenThingWellScreenWellScreenIdPatchResponse = zWellScreenResponse; \ No newline at end of file +export const zUpdateWellScreenThingWellScreenWellScreenIdPatchResponse = + zWellScreenResponse From ab298666126bf61f6f0340a98a038d85c48ba322 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Thu, 30 Oct 2025 15:53:21 -0700 Subject: [PATCH 03/35] feat: update cypress CI to use dockerized api application --- .github/workflows/CI_cypress.yml | 35 ++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index b212611b..7a45f82c 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -18,7 +18,7 @@ jobs: build: npm run build env: VITE_BASE_URL: http://localhost:4173 - VITE_OCOTILLO_API_URL: http://127.0.0.1:4010 + VITE_OCOTILLO_API_URL: http://localhost:8000 - name: Save build folder uses: actions/upload-artifact@v4 @@ -49,15 +49,34 @@ jobs: name: build path: dist - - name: Start mock server + - name: Checkout API repo + uses: actions/checkout@v4 + with: + repository: DataIntegrationGroup/NMSampleLocations + ref: staging + path: api-repo + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Start API containers + working-directory: ./api-repo run: | - # Start mock server in background - npm run mock:server:cypress & - # Wait for server to start - sleep 10 - + docker compose up -d --build + # Wait for API to be healthy (adjust based on your API's health endpoint/port) + timeout 180 bash -c 'until curl -f http://localhost:8000/docs || curl -f http://localhost:8000/docs || docker compose logs app | grep -q "Application startup complete"; do sleep 3; done' + # Give it a few more seconds for full initialization + sleep 5 + - name: Cypress run uses: cypress-io/github-action@v6 with: start: npm start - browser: chrome \ No newline at end of file + browser: chrome + env: + VITE_OCOTILLO_API_URL: http://localhost:8000 + + - name: Stop API containers + if: always() + working-directory: ./api-repo + run: docker compose down -v \ No newline at end of file From 1dfb83c6d45407cd8ee5b552c20efdc587957114 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Thu, 30 Oct 2025 23:05:30 -0700 Subject: [PATCH 04/35] fix: update testing environment before docker compose up --- .github/workflows/CI_cypress.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 7a45f82c..376ad987 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -61,10 +61,15 @@ jobs: - name: Start API containers working-directory: ./api-repo + env: + POSTGRES_USER: ${{ secrets.PG_TEST_USER }} + POSTGRES_PASSWORD: ${{ secrets.PG_TEST_PW }} + POSTGRES_DB: ${{ secrets.PG_TEST_DB }} + MODE: development run: | docker compose up -d --build # Wait for API to be healthy (adjust based on your API's health endpoint/port) - timeout 180 bash -c 'until curl -f http://localhost:8000/docs || curl -f http://localhost:8000/docs || docker compose logs app | grep -q "Application startup complete"; do sleep 3; done' + timeout 180 bash -c 'until curl -f http://localhost:8000/docs; do sleep 3; done' # Give it a few more seconds for full initialization sleep 5 From e29978e9688b5bb0d11afa926f93b7d8eecc1f9d Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Thu, 30 Oct 2025 23:26:48 -0700 Subject: [PATCH 05/35] fix: add staging environment for cypress run --- .github/workflows/CI_cypress.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 376ad987..05e12917 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -30,6 +30,7 @@ jobs: cypress-run: runs-on: ubuntu-24.04 needs: install + environment: staging steps: - name: Checkout uses: actions/checkout@v4 From a2194d802ea4d7f110b24980aa77d962a9be63b2 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 11:05:29 -0700 Subject: [PATCH 06/35] feat: update settings to api path and add seed data from transfers.seed file --- .github/workflows/CI_cypress.yml | 7 +++++-- src/providers/ocotillo-data-provider.ts | 2 +- src/settings.tsx | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 05e12917..a836851b 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -30,7 +30,6 @@ jobs: cypress-run: runs-on: ubuntu-24.04 needs: install - environment: staging steps: - name: Checkout uses: actions/checkout@v4 @@ -54,7 +53,7 @@ jobs: uses: actions/checkout@v4 with: repository: DataIntegrationGroup/NMSampleLocations - ref: staging + ref: cm-seed-db-for-dockerized-frontend-testing path: api-repo - name: Set up Docker Buildx @@ -74,6 +73,10 @@ jobs: # Give it a few more seconds for full initialization sleep 5 + - name: seed database + working-directory: ./api-repo + run: docker compose exec app python -m transfers.seed + - name: Cypress run uses: cypress-io/github-action@v6 with: diff --git a/src/providers/ocotillo-data-provider.ts b/src/providers/ocotillo-data-provider.ts index 0a4eca3c..bdfdc766 100644 --- a/src/providers/ocotillo-data-provider.ts +++ b/src/providers/ocotillo-data-provider.ts @@ -2,7 +2,7 @@ import type { DataProvider } from '@refinedev/core' import { settings } from '@/settings' const API_URL = process.env.NODE_ENV === 'test' - ? 'http://127.0.0.1:4010' // Mock server for tests + ? 'http://localhost:8000' // test against local or CI API : `${settings.ocotillo_api_url}` import axios, { AxiosInstance, AxiosRequestConfig } from 'axios' diff --git a/src/settings.tsx b/src/settings.tsx index 6a1790e4..b474a501 100644 --- a/src/settings.tsx +++ b/src/settings.tsx @@ -10,7 +10,7 @@ export const settings = { ocotillo_api_url: cypressCheck() || process.env.NODE_ENV === 'test' - ? 'http://127.0.0.1:4010' + ? 'http://localhost:8000' : import.meta.env.VITE_OCOTILLO_API_URL || 'http://localhost:8000', st2_url: 'https://st2.newmexicowaterdata.org/FROST-Server/v1.1', From b928ef58f5bed359c985cc6b8b7d3bbf4df7fa9b Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 11:06:08 -0700 Subject: [PATCH 07/35] fix: update documentation wording --- .github/workflows/CI_cypress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index a836851b..45ffcc54 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -68,7 +68,7 @@ jobs: MODE: development run: | docker compose up -d --build - # Wait for API to be healthy (adjust based on your API's health endpoint/port) + # Wait for API to respond to requests timeout 180 bash -c 'until curl -f http://localhost:8000/docs; do sleep 3; done' # Give it a few more seconds for full initialization sleep 5 From 97b9ae5ce2bdbf0b639f6e05a2ec149024b2cd1c Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 11:17:49 -0700 Subject: [PATCH 08/35] fix: add seed script in same step as container start --- .github/workflows/CI_cypress.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 45ffcc54..dafa74e8 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -59,7 +59,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Start API containers + - name: Start API containers and seed database working-directory: ./api-repo env: POSTGRES_USER: ${{ secrets.PG_TEST_USER }} @@ -72,10 +72,8 @@ jobs: timeout 180 bash -c 'until curl -f http://localhost:8000/docs; do sleep 3; done' # Give it a few more seconds for full initialization sleep 5 - - - name: seed database - working-directory: ./api-repo - run: docker compose exec app python -m transfers.seed + # Seed database + docker compose exec -T app python -m transfers.seed - name: Cypress run uses: cypress-io/github-action@v6 From 4263e8d0369531a7857226bfdcf9b03e473bce22 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 11:56:16 -0700 Subject: [PATCH 09/35] fix: add cy wait to contact edit test --- cypress/e2e/ocotillo/contact_edit.cy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/e2e/ocotillo/contact_edit.cy.ts b/cypress/e2e/ocotillo/contact_edit.cy.ts index 52e94c45..6935f250 100644 --- a/cypress/e2e/ocotillo/contact_edit.cy.ts +++ b/cypress/e2e/ocotillo/contact_edit.cy.ts @@ -57,6 +57,8 @@ describe('Contact Edit Page', () => { cy.contains('label', 'Contact Type').parent().find('[role="combobox"]').click(); cy.get('[role="listbox"] li').first().click(); + cy.wait(5000); // wait for save button to be enabled + cy.get('button').contains(/save/i).click(); // Wait for the update contact api call to complete From e68a5d25fe4b3144bf1d7e04a135e7b75b3a5ca4 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 12:16:04 -0700 Subject: [PATCH 10/35] fix: try cypress debug and removing second api url --- .github/workflows/CI_cypress.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index dafa74e8..88bf6011 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -81,7 +81,8 @@ jobs: start: npm start browser: chrome env: - VITE_OCOTILLO_API_URL: http://localhost:8000 + DEBUG: cypress:* + CYPRESS_DEBUG: true - name: Stop API containers if: always() From 1aa0700ea1e4b47bfa36ae13f3cd18f77eb3e708 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 12:28:12 -0700 Subject: [PATCH 11/35] fix: try another debug method --- .github/workflows/CI_cypress.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 88bf6011..71ccf98f 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -81,8 +81,7 @@ jobs: start: npm start browser: chrome env: - DEBUG: cypress:* - CYPRESS_DEBUG: true + DEBUG: cypress:server:browser,cypress:server:routes - name: Stop API containers if: always() From 2c18d51f73d0e30262841013192bb893e47ec380 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 13:01:05 -0700 Subject: [PATCH 12/35] fix: try changing data provider api settings --- src/providers/ocotillo-data-provider.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/providers/ocotillo-data-provider.ts b/src/providers/ocotillo-data-provider.ts index bdfdc766..57463e7f 100644 --- a/src/providers/ocotillo-data-provider.ts +++ b/src/providers/ocotillo-data-provider.ts @@ -1,9 +1,7 @@ import type { DataProvider } from '@refinedev/core' import { settings } from '@/settings' -const API_URL = process.env.NODE_ENV === 'test' - ? 'http://localhost:8000' // test against local or CI API - : `${settings.ocotillo_api_url}` +const API_URL = settings.ocotillo_api_url import axios, { AxiosInstance, AxiosRequestConfig } from 'axios' import createAuthRefreshInterceptor from 'axios-auth-refresh' From 6d05ed56a3e671ccde448cc3418474c73cc53fa7 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 13:11:35 -0700 Subject: [PATCH 13/35] fix: try adding a curl request check --- .github/workflows/CI_cypress.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 71ccf98f..05c3b3b2 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -75,6 +75,15 @@ jobs: # Seed database docker compose exec -T app python -m transfers.seed + - name: Verify API is accessible + run: | + echo "Checking if API containers are running..." + docker ps + echo "Testing API connectivity..." + curl -v http://localhost:8000/docs || echo "API not reachable!" + curl -v http://localhost:8000/thing || echo "Thing endpoint not reachable!" + curl -v http://localhost:8000/lexicon/term?category=release_status || echo "Lexicon endpoint not reachable!" + - name: Cypress run uses: cypress-io/github-action@v6 with: From 3be5cf4c354f707d82693f4f8c5f9c8825b556d8 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 13:41:33 -0700 Subject: [PATCH 14/35] fix: try a browser api endpoint check --- .github/workflows/CI_cypress.yml | 10 +++------- cypress/e2e/test-api-connectivity.cy.ts | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 cypress/e2e/test-api-connectivity.cy.ts diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 05c3b3b2..3e4b9900 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -75,14 +75,10 @@ jobs: # Seed database docker compose exec -T app python -m transfers.seed - - name: Verify API is accessible + - name: Test API from browser context run: | - echo "Checking if API containers are running..." - docker ps - echo "Testing API connectivity..." - curl -v http://localhost:8000/docs || echo "API not reachable!" - curl -v http://localhost:8000/thing || echo "Thing endpoint not reachable!" - curl -v http://localhost:8000/lexicon/term?category=release_status || echo "Lexicon endpoint not reachable!" + # Start a simple test to see if browser can reach API + npx cypress run --spec "cypress/e2e/test-api-connectivity.cy.ts" || true - name: Cypress run uses: cypress-io/github-action@v6 diff --git a/cypress/e2e/test-api-connectivity.cy.ts b/cypress/e2e/test-api-connectivity.cy.ts new file mode 100644 index 00000000..8e3f526c --- /dev/null +++ b/cypress/e2e/test-api-connectivity.cy.ts @@ -0,0 +1,22 @@ +describe('API Connectivity Test', () => { + it('should be able to reach API from browser', () => { + cy.request({ + method: 'GET', + url: 'http://localhost:8000/docs', + failOnStatusCode: false, + }).then((response) => { + cy.log(`API Response Status: ${response.status}`) + expect(response.status).to.be.oneOf([200, 401]) // 401 is fine, means API is reachable + }) + + cy.request({ + method: 'GET', + url: 'http://localhost:8000/thing', + failOnStatusCode: false, + }).then((response) => { + cy.log(`Thing endpoint Status: ${response.status}`) + // Should get 401 (needs auth) or 200, not network error + expect(response.status).to.not.eq(0) + }) + }) + }) \ No newline at end of file From aa9f58ea0a7e01a61f8903f4a3b72418ac53d958 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 13:48:22 -0700 Subject: [PATCH 15/35] fix: another browser network test --- .github/workflows/CI_cypress.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 3e4b9900..a7bc21e5 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -75,16 +75,15 @@ jobs: # Seed database docker compose exec -T app python -m transfers.seed - - name: Test API from browser context - run: | - # Start a simple test to see if browser can reach API - npx cypress run --spec "cypress/e2e/test-api-connectivity.cy.ts" || true - - name: Cypress run uses: cypress-io/github-action@v6 with: start: npm start browser: chrome + # Run connectivity test first, then all other tests + spec: | + cypress/e2e/test-api-connectivity.cy.ts + cypress/e2e/ocotillo/**/*.cy.ts env: DEBUG: cypress:server:browser,cypress:server:routes From 58b7c9e87733784674460eb4dd857570a6bbbab7 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 13:59:44 -0700 Subject: [PATCH 16/35] fix: try change how autocomplete works --- cypress/e2e/ocotillo/contact_create.cy.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/ocotillo/contact_create.cy.ts b/cypress/e2e/ocotillo/contact_create.cy.ts index 726faca3..e6088506 100644 --- a/cypress/e2e/ocotillo/contact_create.cy.ts +++ b/cypress/e2e/ocotillo/contact_create.cy.ts @@ -42,7 +42,9 @@ describe('Contact Create Page', () => { cy.contains('label', 'Organization').parent().find('input').type('Test Organization'); // thing from autocomplete - cy.contains('label', 'Thing').parent().find('input').click() + cy.contains('label', 'Thing').parent().find('input').type('TEST') + // Wait for the API call to complete + cy.wait(500) cy.get('[role="listbox"]').should('be.visible'); cy.get('[role="listbox"] li').first().click(); @@ -71,7 +73,9 @@ describe('Contact Create Page', () => { cy.contains('label', 'Organization').parent().find('input').type('Test Organization'); // thing from autocomplete - cy.contains('label', 'Thing').parent().find('input').click() + cy.contains('label', 'Thing').parent().find('input').type('TEST') + // Wait for the API call to complete + cy.wait(500) cy.get('[role="listbox"]').should('be.visible'); cy.get('[role="listbox"] li').first().click(); From 1a4079f1dc6389561c9c980d0bced8d3caeccc84 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 14:09:38 -0700 Subject: [PATCH 17/35] fix: more logs --- .github/workflows/CI_cypress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index a7bc21e5..62fc8415 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -85,7 +85,7 @@ jobs: cypress/e2e/test-api-connectivity.cy.ts cypress/e2e/ocotillo/**/*.cy.ts env: - DEBUG: cypress:server:browser,cypress:server:routes + DEBUG: cypress:server:*,cypress:driver:*,cypress:network:* - name: Stop API containers if: always() From 54672b9ddc56194f6f1bb75bfe49b906a2f5522c Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 14:43:40 -0700 Subject: [PATCH 18/35] fix: env variable update and logs --- .github/workflows/CI_cypress.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 62fc8415..3a64dff6 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -66,6 +66,7 @@ jobs: POSTGRES_PASSWORD: ${{ secrets.PG_TEST_PW }} POSTGRES_DB: ${{ secrets.PG_TEST_DB }} MODE: development + AUTHENTIK_DISABLE_AUTHENTICATION: 1 run: | docker compose up -d --build # Wait for API to respond to requests @@ -85,7 +86,7 @@ jobs: cypress/e2e/test-api-connectivity.cy.ts cypress/e2e/ocotillo/**/*.cy.ts env: - DEBUG: cypress:server:*,cypress:driver:*,cypress:network:* + DEBUG: cypress:network:*,cypress:server:request - name: Stop API containers if: always() From c7f39d9ab7340f4457ea03ea2a4e07d792d82569 Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Fri, 31 Oct 2025 15:24:46 -0700 Subject: [PATCH 19/35] fix: move test variable --- .github/workflows/CI_cypress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 3a64dff6..e2c1a093 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -66,7 +66,7 @@ jobs: POSTGRES_PASSWORD: ${{ secrets.PG_TEST_PW }} POSTGRES_DB: ${{ secrets.PG_TEST_DB }} MODE: development - AUTHENTIK_DISABLE_AUTHENTICATION: 1 + AUTHENTIK_DISABLE_AUTHENTICATION: ${{ secrets.AUTHENTIK_TEST }} run: | docker compose up -d --build # Wait for API to respond to requests From 53b36338dfd8f9af4c560e63425d325e46654afe Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Mon, 3 Nov 2025 13:40:20 -0600 Subject: [PATCH 20/35] [test/setup] Vite test to use live FastAPI server --- src/settings.tsx | 6 +++--- src/test/setup.ts | 50 +++++++++++++++++++++++++++++------------------ 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/src/settings.tsx b/src/settings.tsx index b474a501..d02503f1 100644 --- a/src/settings.tsx +++ b/src/settings.tsx @@ -1,4 +1,4 @@ -import { cypressCheck } from './utils/CypressCheck'; +import { cypressCheck } from './utils/CypressCheck' export const settings = { rowHeight: 27, @@ -10,8 +10,8 @@ export const settings = { ocotillo_api_url: cypressCheck() || process.env.NODE_ENV === 'test' - ? 'http://localhost:8000' - : import.meta.env.VITE_OCOTILLO_API_URL || 'http://localhost:8000', + ? 'http://localhost:8000' + : import.meta.env.VITE_OCOTILLO_API_URL || 'http://localhost:8000', st2_url: 'https://st2.newmexicowaterdata.org/FROST-Server/v1.1', nmbgmr_geothermal_api_url: diff --git a/src/test/setup.ts b/src/test/setup.ts index b5537a3a..170eb6f7 100644 --- a/src/test/setup.ts +++ b/src/test/setup.ts @@ -3,31 +3,43 @@ import { checkMockServerHealth } from './mock-server' import { ocotilloDataProvider } from '@/providers/ocotillo-data-provider' process.env.NODE_ENV = 'test' - - // Mock the authentication provider (for node api contract tests) - vi.mock('@/providers/authentik-provider', () => ({ - getAccessToken: vi.fn().mockResolvedValue('mock-token'), - getAccessControlGroups: vi.fn().mockReturnValue(['Admin']), - })) + +// Mock the authentication provider (for node api contract tests) +vi.mock('@/providers/authentik-provider', () => ({ + getAccessToken: vi.fn().mockResolvedValue('mock-token'), + getAccessControlGroups: vi.fn().mockReturnValue(['Admin']), +})) // Global test setup beforeAll(async () => { + const env = process.env.TEST_ENV || 'mock' + const expectedUrl = + env === 'ci' ? 'http://localhost:8000' : 'http://127.0.0.1:4010' + const actualUrl = ocotilloDataProvider.getApiUrl() - //double check node env is test - if (process.env.NODE_ENV !== 'test') { - throw new Error('Non-Test environment detected. Tests must be run with NODE_ENV=test') - } + //double check node env is test + if (process.env.NODE_ENV !== 'test') { + throw new Error( + 'Non-Test environment detected. Tests must be run with NODE_ENV=test' + ) + } - //check ocotillo data provider is using the mock server - if (ocotilloDataProvider.getApiUrl() !== 'http://127.0.0.1:4010') { - throw new Error('Ocotillo data provider is not using the mock server. Tests must be run with NODE_ENV=test') - } else { - console.log('Ocotillo data provider is using the mock server, running tests...') - } + if (actualUrl !== expectedUrl) { + throw new Error( + `Ocotillo data provider mismatch: expected ${expectedUrl}, got ${actualUrl}` + ) + } else { + console.log(`Ocotillo data provider is using ${expectedUrl}`) + } + if (env === 'mock') { const isHealthy = await checkMockServerHealth() if (!isHealthy) { - console.warn('Mock server health check failed. Some integration tests may fail.') + console.warn( + 'Mock server health check failed. Some integration tests may fail.' + ) } - }) - + } else { + console.log('Using live FastAPI server — skipping mock health check.') + } +}) From 3b3cebfd8daaa438d04f27b5366de3e58c0c4445 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 09:29:17 -0600 Subject: [PATCH 21/35] [github/workflows/CI_testing] Combined cypress & vite tests to one workflow --- .github/workflows/CI_cypress.yml | 94 -------------------------------- .github/workflows/CI_testing.yml | 81 +++++++++++++++++++++++++++ .github/workflows/CI_vitest.yml | 54 ------------------ 3 files changed, 81 insertions(+), 148 deletions(-) delete mode 100644 .github/workflows/CI_cypress.yml create mode 100644 .github/workflows/CI_testing.yml delete mode 100644 .github/workflows/CI_vitest.yml diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml deleted file mode 100644 index e2c1a093..00000000 --- a/.github/workflows/CI_cypress.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: Cypress Test Suite - -on: - pull_request: - -jobs: - install: - runs-on: ubuntu-24.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Cypress install - uses: cypress-io/github-action@v6 - with: - # Disable running of tests within install job - runTests: false - build: npm run build - env: - VITE_BASE_URL: http://localhost:4173 - VITE_OCOTILLO_API_URL: http://localhost:8000 - - - name: Save build folder - uses: actions/upload-artifact@v4 - with: - name: build - if-no-files-found: error - path: dist - - cypress-run: - runs-on: ubuntu-24.04 - needs: install - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22.x' - cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Download the build folder - uses: actions/download-artifact@v4 - with: - name: build - path: dist - - - name: Checkout API repo - uses: actions/checkout@v4 - with: - repository: DataIntegrationGroup/NMSampleLocations - ref: cm-seed-db-for-dockerized-frontend-testing - path: api-repo - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Start API containers and seed database - working-directory: ./api-repo - env: - POSTGRES_USER: ${{ secrets.PG_TEST_USER }} - POSTGRES_PASSWORD: ${{ secrets.PG_TEST_PW }} - POSTGRES_DB: ${{ secrets.PG_TEST_DB }} - MODE: development - AUTHENTIK_DISABLE_AUTHENTICATION: ${{ secrets.AUTHENTIK_TEST }} - run: | - docker compose up -d --build - # Wait for API to respond to requests - timeout 180 bash -c 'until curl -f http://localhost:8000/docs; do sleep 3; done' - # Give it a few more seconds for full initialization - sleep 5 - # Seed database - docker compose exec -T app python -m transfers.seed - - - name: Cypress run - uses: cypress-io/github-action@v6 - with: - start: npm start - browser: chrome - # Run connectivity test first, then all other tests - spec: | - cypress/e2e/test-api-connectivity.cy.ts - cypress/e2e/ocotillo/**/*.cy.ts - env: - DEBUG: cypress:network:*,cypress:server:request - - - name: Stop API containers - if: always() - working-directory: ./api-repo - run: docker compose down -v \ No newline at end of file diff --git a/.github/workflows/CI_testing.yml b/.github/workflows/CI_testing.yml new file mode 100644 index 00000000..3a41d7db --- /dev/null +++ b/.github/workflows/CI_testing.yml @@ -0,0 +1,81 @@ +name: Full Integration Tests + +on: + pull_request: + +jobs: + integration-tests: + runs-on: ubuntu-24.04 + + env: + NODE_ENV: test + OCOTILLO_API_URL: http://localhost:8000 + VITE_OCOTILLO_API_URL: http://localhost:8000 + POSTGRES_USER: ${{ secrets.PG_TEST_USER }} + POSTGRES_PASSWORD: ${{ secrets.PG_TEST_PW }} + POSTGRES_DB: ${{ secrets.PG_TEST_DB }} + MODE: development + AUTHENTIK_DISABLE_AUTHENTICATION: ${{ secrets.AUTHENTIK_TEST }} + + steps: + - name: Checkout frontend + uses: actions/checkout@v4 + + - name: Checkout FastAPI backend (NMSampleLocations staging) + uses: actions/checkout@v4 + with: + repository: DataIntegrationGroup/NMSampleLocations + ref: staging + path: api-repo + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Start FastAPI backend (Docker Compose) + working-directory: ./api-repo + run: | + docker compose up -d --build + echo "Waiting for FastAPI to be ready..." + timeout 180 bash -c 'until curl -f http://localhost:8000/docs; do sleep 3; done' + echo "FastAPI is up and healthy" + + - name: Seed database + working-directory: ./api-repo + run: docker compose exec -T app python -m transfers.seed + + - name: Run Vitest tests (unit + integration) + run: npm run test:run + env: + NODE_ENV: test + TEST_ENV: ci + OCOTILLO_API_URL: http://localhost:8000 + + - name: Build frontend + run: npm run build + env: + VITE_BASE_URL: http://localhost:4173 + VITE_OCOTILLO_API_URL: http://localhost:8000 + + - name: Run Cypress e2e tests + uses: cypress-io/github-action@v6 + with: + start: npm start + browser: chrome + spec: | + cypress/e2e/test-api-connectivity.cy.ts + cypress/e2e/ocotillo/**/*.cy.ts + env: + DEBUG: cypress:network:*,cypress:server:request + VITE_OCOTILLO_API_URL: http://localhost:8000 + + - name: Stop API containers + if: always() + working-directory: ./api-repo + run: docker compose down + diff --git a/.github/workflows/CI_vitest.yml b/.github/workflows/CI_vitest.yml deleted file mode 100644 index 2adc154d..00000000 --- a/.github/workflows/CI_vitest.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Vitest Test Suite - -on: - pull_request: - -jobs: - integration-testing: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22.x' - cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Run OpenAPI-ts generator - run: npx @hey-api/openapi-ts - - - name: Check for generated file changes - run: | - # Add generated files to staging - git add src/generated/ - - # Check if there are any changes - if git diff --cached --quiet; then - echo "Types and Zod schemas are up to date" - else - echo "Types and Zod schemas are out of date!" - echo "The following files should be changed according to the OpenAPI spec:" - git diff --cached --name-only - echo "" - echo "Please run 'npm run openapi:generate', test and edit as needed, and commit your changes." - exit 1 - fi - - - name: Run tests with mock server - run: | - # Start mock server in background - npm run mock:server:vitest & - - # Wait for server to start - sleep 5 - - # Run tests - npm run test:run - env: - NODE_ENV: test \ No newline at end of file From f3e0dc4d9fa5562693460d947ee2208a7828e88c Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 09:51:36 -0600 Subject: [PATCH 22/35] [CI_testing] Swap seeder for real transfer --- .github/workflows/CI_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_testing.yml b/.github/workflows/CI_testing.yml index 3a41d7db..1d8a57e7 100644 --- a/.github/workflows/CI_testing.yml +++ b/.github/workflows/CI_testing.yml @@ -47,7 +47,7 @@ jobs: - name: Seed database working-directory: ./api-repo - run: docker compose exec -T app python -m transfers.seed + run: docker compose exec -T app python -m transfers.transfer - name: Run Vitest tests (unit + integration) run: npm run test:run From 6119aaeeba311fe16b17e2bc603f4e5345d48944 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 12:34:51 -0600 Subject: [PATCH 23/35] [CI_testing] Now set to use experimental seeding branch --- .github/workflows/CI_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_testing.yml b/.github/workflows/CI_testing.yml index 1d8a57e7..6b8a3100 100644 --- a/.github/workflows/CI_testing.yml +++ b/.github/workflows/CI_testing.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 with: repository: DataIntegrationGroup/NMSampleLocations - ref: staging + ref: TAM-expand-transfer-seed path: api-repo - name: Set up Node.js From 687d2e1dee9c7a0da86fe0941606a75f14bbcca9 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 12:37:55 -0600 Subject: [PATCH 24/35] Mv it back to using the seeder --- .github/workflows/CI_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_testing.yml b/.github/workflows/CI_testing.yml index 6b8a3100..11dbc41d 100644 --- a/.github/workflows/CI_testing.yml +++ b/.github/workflows/CI_testing.yml @@ -47,7 +47,7 @@ jobs: - name: Seed database working-directory: ./api-repo - run: docker compose exec -T app python -m transfers.transfer + run: docker compose exec -T app python -m transfers.seed - name: Run Vitest tests (unit + integration) run: npm run test:run From 40994b0d90091eb56eec0d9e62d7ae0ba7f384b0 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 12:59:35 -0600 Subject: [PATCH 25/35] Add INSTALL_DEV env & set it to true --- .github/workflows/CI_testing.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI_testing.yml b/.github/workflows/CI_testing.yml index 11dbc41d..fc7e891b 100644 --- a/.github/workflows/CI_testing.yml +++ b/.github/workflows/CI_testing.yml @@ -39,8 +39,11 @@ jobs: - name: Start FastAPI backend (Docker Compose) working-directory: ./api-repo + env: + INSTALL_DEV: true run: | - docker compose up -d --build + docker compose build --build-arg INSTALL_DEV=$INSTALL_DEV app + docker compose up -d echo "Waiting for FastAPI to be ready..." timeout 180 bash -c 'until curl -f http://localhost:8000/docs; do sleep 3; done' echo "FastAPI is up and healthy" From 046f74a449ac1012e149ed07df7f24a994055db0 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 17:45:36 -0600 Subject: [PATCH 26/35] [CI_*] Split testing between vite & cypress --- .../{CI_testing.yml => CI_cypress.yml} | 7 --- .github/workflows/CI_vitest.yml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 7 deletions(-) rename .github/workflows/{CI_testing.yml => CI_cypress.yml} (92%) create mode 100644 .github/workflows/CI_vitest.yml diff --git a/.github/workflows/CI_testing.yml b/.github/workflows/CI_cypress.yml similarity index 92% rename from .github/workflows/CI_testing.yml rename to .github/workflows/CI_cypress.yml index fc7e891b..11ed72fd 100644 --- a/.github/workflows/CI_testing.yml +++ b/.github/workflows/CI_cypress.yml @@ -52,13 +52,6 @@ jobs: working-directory: ./api-repo run: docker compose exec -T app python -m transfers.seed - - name: Run Vitest tests (unit + integration) - run: npm run test:run - env: - NODE_ENV: test - TEST_ENV: ci - OCOTILLO_API_URL: http://localhost:8000 - - name: Build frontend run: npm run build env: diff --git a/.github/workflows/CI_vitest.yml b/.github/workflows/CI_vitest.yml new file mode 100644 index 00000000..2bc7d065 --- /dev/null +++ b/.github/workflows/CI_vitest.yml @@ -0,0 +1,54 @@ +name: Vitest Test Suite + +on: + pull_request: + +jobs: + integration-testing: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run OpenAPI-ts generator + run: npx @hey-api/openapi-ts + + - name: Check for generated file changes + run: | + # Add generated files to staging + git add src/generated/ + + # Check if there are any changes + if git diff --cached --quiet; then + echo "Types and Zod schemas are up to date" + else + echo "Types and Zod schemas are out of date!" + echo "The following files should be changed according to the OpenAPI spec:" + git diff --cached --name-only + echo "" + echo "Please run 'npm run openapi:generate', test and edit as needed, and commit your changes." + exit 1 + fi + + - name: Run tests with mock server + run: | + # Start mock server in background + npm run mock:server:vitest & + + # Wait for server to start + sleep 5 + + # Run tests + npm run test:run + env: + NODE_ENV: test From 14436edc8a3821f2abc7785fc9e86934d3707efa Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 17:47:37 -0600 Subject: [PATCH 27/35] [src/generated] update files --- src/generated/types.gen.ts | 10503 +++++++++++++++++------------------ src/generated/zod.gen.ts | 4669 +++++++++------- 2 files changed, 7658 insertions(+), 7514 deletions(-) diff --git a/src/generated/types.gen.ts b/src/generated/types.gen.ts index 8eef71be..10bba985 100644 --- a/src/generated/types.gen.ts +++ b/src/generated/types.gen.ts @@ -5,350 +5,354 @@ * Response schema for address details. */ export type AddressResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Contact Id - */ - contact_id: number - /** - * Address Line 1 - */ - address_line_1: string - /** - * Address Line 2 - */ - address_line_2?: string | null - /** - * City - */ - city: string - /** - * State - */ - state: string - /** - * Postal Code - */ - postal_code: string - /** - * Country - */ - country: string - address_type: AddressType -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Contact Id + */ + contact_id: number; + /** + * Address Line 1 + */ + address_line_1: string; + /** + * Address Line 2 + */ + address_line_2?: string | null; + /** + * City + */ + city: string; + /** + * State + */ + state: string; + /** + * Postal Code + */ + postal_code: string; + /** + * Country + */ + country: string; + address_type: AddressType; +}; /** * AssetResponse */ export type AssetResponse = { - /** - * Name - */ - name: string - /** - * Label - */ - label?: string | null - /** - * Storage Path - */ - storage_path: string - /** - * Mime Type - */ - mime_type: string - /** - * Size - */ - size: number - /** - * Uri - */ - uri: string - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Storage Service - */ - storage_service: string - /** - * Signed Url - */ - signed_url?: string | null -} + /** + * Name + */ + name: string; + /** + * Label + */ + label?: string | null; + /** + * Storage Path + */ + storage_path: string; + /** + * Mime Type + */ + mime_type: string; + /** + * Size + */ + size: number; + /** + * Uri + */ + uri: string; + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Storage Service + */ + storage_service: string; + /** + * Signed Url + */ + signed_url?: string | null; +}; /** * AuthorResponse * Schema for the response of an author. */ export type AuthorResponse = { - /** - * Id - */ - id: number - /** - * Name - */ - name: string - /** - * Email - */ - email?: string | null - /** - * Affiliation - */ - affiliation?: string | null -} + /** + * Id + */ + id: number; + /** + * Name + */ + name: string; + /** + * Email + */ + email?: string | null; + /** + * Affiliation + */ + affiliation?: string | null; +}; /** * Body_upload_asset_asset_upload_post */ export type BodyUploadAssetAssetUploadPost = { - /** - * File - */ - file: Blob | File -} + /** + * File + */ + file: Blob | File; +}; /** * ContactResponse * Response schema for contact details. */ export type ContactResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Name - */ - name: string | null - /** - * Organization - */ - organization: string | null - role: Role - contact_type: ContactType - /** - * Emails - */ - emails?: Array - /** - * Phones - */ - phones?: Array - /** - * Addresses - */ - addresses?: Array - /** - * Things - */ - things?: Array -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Name + */ + name: string | null; + /** + * Organization + */ + organization: string | null; + role: Role; + contact_type: ContactType; + /** + * Incomplete Nma Phones + */ + incomplete_nma_phones?: Array; + /** + * Emails + */ + emails?: Array; + /** + * Phones + */ + phones?: Array; + /** + * Addresses + */ + addresses?: Array; + /** + * Things + */ + things?: Array; +}; /** * CreateAddress * Schema for creating an address. */ export type CreateAddress = { - release_status?: ReleaseStatus - /** - * Contact Id - */ - contact_id?: number | null - /** - * Address Line 1 - */ - address_line_1: string - /** - * Address Line 2 - */ - address_line_2?: string | null - /** - * City - */ - city: string - /** - * State - */ - state?: string - /** - * Postal Code - */ - postal_code: string - /** - * Country - */ - country?: string - address_type?: AddressType -} + release_status?: ReleaseStatus; + /** + * Contact Id + */ + contact_id?: number | null; + /** + * Address Line 1 + */ + address_line_1: string; + /** + * Address Line 2 + */ + address_line_2?: string | null; + /** + * City + */ + city: string; + /** + * State + */ + state?: string; + /** + * Postal Code + */ + postal_code: string; + /** + * Country + */ + country?: string; + address_type?: AddressType; +}; /** * CreateAsset */ export type CreateAsset = { - /** - * Name - */ - name: string - /** - * Label - */ - label?: string | null - /** - * Storage Path - */ - storage_path: string - /** - * Mime Type - */ - mime_type: string - /** - * Size - */ - size: number - /** - * Uri - */ - uri: string - release_status?: ReleaseStatus - /** - * Thing Id - */ - thing_id?: number | null -} + /** + * Name + */ + name: string; + /** + * Label + */ + label?: string | null; + /** + * Storage Path + */ + storage_path: string; + /** + * Mime Type + */ + mime_type: string; + /** + * Size + */ + size: number; + /** + * Uri + */ + uri: string; + release_status?: ReleaseStatus; + /** + * Thing Id + */ + thing_id?: number | null; +}; /** * CreateContact * Schema for creating a contact. */ export type CreateContact = { - /** - * Name - */ - name?: string | null - /** - * Organization - */ - organization?: string | null - release_status?: ReleaseStatus - /** - * Thing Id - */ - thing_id: number - role: Role - contact_type?: ContactType - /** - * Emails - */ - emails?: Array | null - /** - * Phones - */ - phones?: Array | null - /** - * Addresses - */ - addresses?: Array | null -} + /** + * Name + */ + name?: string | null; + /** + * Organization + */ + organization?: string | null; + release_status?: ReleaseStatus; + /** + * Thing Id + */ + thing_id: number; + role: Role; + contact_type?: ContactType; + /** + * Emails + */ + emails?: Array | null; + /** + * Phones + */ + phones?: Array | null; + /** + * Addresses + */ + addresses?: Array | null; +}; /** * CreateEmail * Schema for creating an email. */ export type CreateEmail = { - /** - * Email - */ - email: string - release_status?: ReleaseStatus - /** - * Contact Id - */ - contact_id?: number | null - email_type?: EmailType -} + /** + * Email + */ + email: string; + release_status?: ReleaseStatus; + /** + * Contact Id + */ + contact_id?: number | null; + email_type?: EmailType; +}; /** * CreateGroundwaterLevelObservation */ export type CreateGroundwaterLevelObservation = { - /** - * Parameter Id - */ - parameter_id: number - /** - * Observation Datetime - */ - observation_datetime: string - release_status?: ReleaseStatus - /** - * Sample Id - */ - sample_id: number - /** - * Sensor Id - */ - sensor_id: number - /** - * Value - */ - value: number | null - unit: Unit | null - /** - * Measuring Point Height - */ - measuring_point_height: number - /** - * Groundwater Level Reason - */ - groundwater_level_reason: string -} + /** + * Parameter Id + */ + parameter_id: number; + /** + * Observation Datetime + */ + observation_datetime: string; + release_status?: ReleaseStatus; + /** + * Sample Id + */ + sample_id: number; + /** + * Sensor Id + */ + sensor_id: number; + /** + * Value + */ + value: number | null; + unit: Unit | null; + /** + * Measuring Point Height + */ + measuring_point_height: number; + /** + * Groundwater Level Reason + */ + groundwater_level_reason: string; +}; /** * CreateGroup * Schema for creating a group. */ export type CreateGroup = { - /** - * Project Area - */ - project_area?: string | null - /** - * Description - */ - description?: string | null - /** - * Parent Group Id - */ - parent_group_id?: number | null - release_status?: ReleaseStatus - /** - * Name - */ - name: string -} + /** + * Project Area + */ + project_area?: string | null; + /** + * Description + */ + description?: string | null; + /** + * Parent Group Id + */ + parent_group_id?: number | null; + release_status?: ReleaseStatus; + /** + * Name + */ + name: string; +}; /** * CreateLexiconCategory @@ -356,15 +360,15 @@ export type CreateGroup = { * This model can be extended to include additional fields as needed. */ export type CreateLexiconCategory = { - /** - * Name - */ - name: string - /** - * Description - */ - description?: string | null -} + /** + * Name + */ + name: string; + /** + * Description + */ + description?: string | null; +}; /** * CreateLexiconTerm @@ -372,19 +376,19 @@ export type CreateLexiconCategory = { * This model can be extended to include additional fields as needed. */ export type CreateLexiconTerm = { - /** - * Term - */ - term: string - /** - * Definition - */ - definition: string - /** - * Categories - */ - categories: Array -} + /** + * Term + */ + term: string; + /** + * Definition + */ + definition: string; + /** + * Categories + */ + categories: Array; +}; /** * CreateLexiconTriple @@ -392,547 +396,539 @@ export type CreateLexiconTerm = { * This model can be extended to include additional fields as needed. */ export type CreateLexiconTriple = { - subject: CreateLexiconTerm - /** - * Predicate - */ - predicate: string - object_: CreateLexiconTerm -} + subject: CreateLexiconTerm; + /** + * Predicate + */ + predicate: string; + object_: CreateLexiconTerm; +}; /** * CreateLocation * Schema for creating a sample location. */ export type CreateLocation = { - /** - * Point - */ - point: string - release_status?: ReleaseStatus - /** - * Notes - */ - notes?: string | null - /** - * Elevation - */ - elevation: number - /** - * Elevation Accuracy - */ - elevation_accuracy?: number | null - elevation_method?: ElevationMethod | null - /** - * Coordinate Accuracy - */ - coordinate_accuracy?: number | null - coordinate_method?: CoordinateMethod | null -} + /** + * Point + */ + point: string; + release_status?: ReleaseStatus; + /** + * Notes + */ + notes?: string | null; + /** + * Elevation + */ + elevation: number; + /** + * Elevation Accuracy + */ + elevation_accuracy?: number | null; + elevation_method?: ElevationMethod | null; + /** + * Coordinate Accuracy + */ + coordinate_accuracy?: number | null; + coordinate_method?: CoordinateMethod | null; +}; /** * CreatePhone * Schema for creating a phone number. */ export type CreatePhone = { - /** - * Phone Number - */ - phone_number: string - release_status?: ReleaseStatus - /** - * Contact Id - */ - contact_id?: number | null - phone_type?: PhoneType - /** - * Nma Phone Number - */ - nma_phone_number?: string | null -} + /** + * Phone Number + */ + phone_number: string; + release_status?: ReleaseStatus; + /** + * Contact Id + */ + contact_id?: number | null; + phone_type?: PhoneType; +}; /** * CreatePublication * Schema for creating a new publication. */ export type CreatePublication = { - /** - * Title - */ - title: string - /** - * Authors - */ - authors: Array - /** - * Year - */ - year: number - /** - * Doi - */ - doi?: string | null - /** - * Url - */ - url?: string | null - publication_type: PublicationType -} + /** + * Title + */ + title: string; + /** + * Authors + */ + authors: Array; + /** + * Year + */ + year: number; + /** + * Doi + */ + doi?: string | null; + /** + * Url + */ + url?: string | null; + publication_type: PublicationType; +}; /** * CreateSample */ export type CreateSample = { - /** - * Sample Date - */ - sample_date: string - /** - * Depth Top - */ - depth_top?: number | null - /** - * Depth Bottom - */ - depth_bottom?: number | null - release_status?: ReleaseStatus - /** - * Field Activity Id - */ - field_activity_id: number - /** - * Field Event Participant Id - */ - field_event_participant_id: number - /** - * Sample Name - */ - sample_name: string - sample_matrix: SampleMatrix - sample_method: SampleMethod - qc_type: QcType - /** - * Notes - */ - notes?: string | null -} + /** + * Sample Date + */ + sample_date: string; + /** + * Depth Top + */ + depth_top?: number | null; + /** + * Depth Bottom + */ + depth_bottom?: number | null; + release_status?: ReleaseStatus; + /** + * Field Activity Id + */ + field_activity_id: number; + /** + * Field Event Participant Id + */ + field_event_participant_id: number; + /** + * Sample Name + */ + sample_name: string; + sample_matrix: SampleMatrix; + sample_method: SampleMethod; + qc_type: QcType; + /** + * Notes + */ + notes?: string | null; +}; /** * CreateSensor * Schema for creating a new sensor. */ export type CreateSensor = { - release_status?: ReleaseStatus - /** - * Name - */ - name: string - sensor_type: SensorType - /** - * Model - */ - model?: string | null - /** - * Serial No - */ - serial_no?: string | null - /** - * Pcn Number - */ - pcn_number?: string | null - /** - * Owner Agency - */ - owner_agency?: string | null - /** - * Sensor Status - */ - sensor_status?: string | null - /** - * Notes - */ - notes?: string | null -} + release_status?: ReleaseStatus; + /** + * Name + */ + name: string; + sensor_type: SensorType; + /** + * Model + */ + model?: string | null; + /** + * Serial No + */ + serial_no?: string | null; + /** + * Pcn Number + */ + pcn_number?: string | null; + /** + * Owner Agency + */ + owner_agency?: string | null; + /** + * Sensor Status + */ + sensor_status?: string | null; + /** + * Notes + */ + notes?: string | null; +}; /** * CreateSpring * Schema for creating a spring. */ export type CreateSpring = { - release_status?: ReleaseStatus - /** - * Location Id - */ - location_id: number | null - /** - * Group Id - */ - group_id?: number | null - /** - * Name - */ - name: string - /** - * First Visit Date - */ - first_visit_date?: string | null - spring_type?: SpringType | null -} + release_status?: ReleaseStatus; + /** + * Location Id + */ + location_id: number | null; + /** + * Group Id + */ + group_id?: number | null; + /** + * Name + */ + name: string; + /** + * First Visit Date + */ + first_visit_date?: string | null; + spring_type?: SpringType | null; +}; /** * CreateThingIdLink * Schema for creating a link between a thing and its ID. */ export type CreateThingIdLink = { - /** - * Thing Id - */ - thing_id: number - /** - * Relation - */ - relation: string - /** - * Alternate Id - */ - alternate_id: string - /** - * Alternate Organization - */ - alternate_organization: string -} + /** + * Thing Id + */ + thing_id: number; + /** + * Relation + */ + relation: string; + /** + * Alternate Id + */ + alternate_id: string; + /** + * Alternate Organization + */ + alternate_organization: string; +}; /** * CreateWaterChemistryObservation */ export type CreateWaterChemistryObservation = { - /** - * Parameter Id - */ - parameter_id: number - /** - * Observation Datetime - */ - observation_datetime: string - release_status?: ReleaseStatus - /** - * Sample Id - */ - sample_id: number - /** - * Sensor Id - */ - sensor_id: number - /** - * Value - */ - value: number | null - unit: Unit | null -} + /** + * Parameter Id + */ + parameter_id: number; + /** + * Observation Datetime + */ + observation_datetime: string; + release_status?: ReleaseStatus; + /** + * Sample Id + */ + sample_id: number; + /** + * Sensor Id + */ + sensor_id: number; + /** + * Value + */ + value: number | null; + unit: Unit | null; +}; /** * CreateWell * Schema for creating a well. */ export type CreateWell = { - /** - * Well Depth - * Well depth in feet - */ - well_depth?: number | null - /** - * Hole Depth - * Hole depth in feet - */ - hole_depth?: number | null - /** - * Well Casing Depth - * Well casing depth in feet - */ - well_casing_depth?: number | null - release_status?: ReleaseStatus - /** - * Location Id - */ - location_id: number | null - /** - * Group Id - */ - group_id?: number | null - /** - * Name - */ - name: string - /** - * First Visit Date - */ - first_visit_date?: string | null - /** - * Well Purposes - */ - well_purposes?: Array | null - /** - * Well Construction Notes - */ - well_construction_notes?: string | null - /** - * Well Casing Diameter - * Well casing diameter in inches - */ - well_casing_diameter?: number | null - /** - * Well Casing Materials - */ - well_casing_materials?: Array | null -} - -/** - * CreateWellScreen - * Schema for creating a well screen. - */ -export type CreateWellScreen = { - release_status?: ReleaseStatus - /** - * Thing Id - */ - thing_id: number - /** - * Screen Depth Bottom - * Screen depth bottom in feet - */ - screen_depth_bottom: number - /** - * Screen Depth Top - * Screen depth top in feet - */ - screen_depth_top: number - screen_type?: ScreenType | null - /** - * Screen Description - */ - screen_description?: string | null -} - + /** + * Well Depth + * Well depth in feet + */ + well_depth?: number | null; + /** + * Hole Depth + * Hole depth in feet + */ + hole_depth?: number | null; + /** + * Well Casing Depth + * Well casing depth in feet + */ + well_casing_depth?: number | null; + release_status?: ReleaseStatus; + /** + * Location Id + */ + location_id: number | null; + /** + * Group Id + */ + group_id?: number | null; + /** + * Name + */ + name: string; + /** + * First Visit Date + */ + first_visit_date?: string | null; + /** + * Well Purposes + */ + well_purposes?: Array | null; + /** + * Well Construction Notes + */ + well_construction_notes?: string | null; + /** + * Well Casing Diameter + * Well casing diameter in inches + */ + well_casing_diameter?: number | null; + /** + * Well Casing Materials + */ + well_casing_materials?: Array | null; +}; + +/** + * CreateWellScreen + * Schema for creating a well screen. + */ +export type CreateWellScreen = { + release_status?: ReleaseStatus; + /** + * Thing Id + */ + thing_id: number; + /** + * Screen Depth Bottom + * Screen depth bottom in feet + */ + screen_depth_bottom: number; + /** + * Screen Depth Top + * Screen depth top in feet + */ + screen_depth_top: number; + screen_type?: ScreenType | null; + /** + * Screen Description + */ + screen_description?: string | null; +}; + /** * DeploymentResponse */ export type DeploymentResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Thing Id - */ - thing_id: number - sensor: SensorResponse - /** - * Installation Date - */ - installation_date: string - /** - * Removal Date - */ - removal_date: string | null - /** - * Recording Interval - */ - recording_interval: number | null - /** - * Recording Interval Units - */ - recording_interval_units: string | null - /** - * Hanging Cable Length - */ - hanging_cable_length: number | null - /** - * Hanging Point Height - */ - hanging_point_height: number | null - /** - * Hanging Point Description - */ - hanging_point_description: string | null - /** - * Notes - */ - notes: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Thing Id + */ + thing_id: number; + sensor: SensorResponse; + /** + * Installation Date + */ + installation_date: string; + /** + * Removal Date + */ + removal_date: string | null; + /** + * Recording Interval + */ + recording_interval: number | null; + /** + * Recording Interval Units + */ + recording_interval_units: string | null; + /** + * Hanging Cable Length + */ + hanging_cable_length: number | null; + /** + * Hanging Point Height + */ + hanging_point_height: number | null; + /** + * Hanging Point Description + */ + hanging_point_description: string | null; + /** + * Notes + */ + notes: string | null; +}; /** * EmailResponse * Response schema for email details. */ export type EmailResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Contact Id - */ - contact_id: number - /** - * Email - */ - email: string - email_type: EmailType -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Contact Id + */ + contact_id: number; + /** + * Email + */ + email: string; + email_type: EmailType; +}; /** * Feature * Feature schema for GeoJSON response. */ export type Feature = { - /** - * Type - */ - type?: string - geometry: GeoJsonGeometry - /** - * Properties - */ - properties?: { - [key: string]: unknown - } -} + /** + * Type + */ + type?: string; + geometry: GeoJsonGeometry; + /** + * Properties + */ + properties?: { + [key: string]: unknown; + }; +}; /** * FeatureCollectionResponse * Response schema for GeoJSON FeatureCollection. */ export type FeatureCollectionResponse = { - /** - * Type - */ - type?: string - /** - * Features - */ - features?: Array -} + /** + * Type + */ + type?: string; + /** + * Features + */ + features?: Array; +}; /** * FieldActivityResponse */ export type FieldActivityResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Field Event Id - */ - field_event_id: number - activity_type: ActivityType -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Field Event Id + */ + field_event_id: number; + activity_type: ActivityType; +}; /** * FieldEventResponse */ export type FieldEventResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Thing Id - */ - thing_id: number - /** - * Event Date - */ - event_date: string - /** - * Notes - */ - notes: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Thing Id + */ + thing_id: number; + /** + * Event Date + */ + event_date: string; + /** + * Notes + */ + notes: string | null; +}; /** * GeoJSONGeometry * Geometry schema for GeoJSON response. */ export type GeoJsonGeometry = { - /** - * Type - */ - type: string - /** - * Coordinates - */ - coordinates: - | Array - | Array> - | Array>> - | Array>>> -} + /** + * Type + */ + type: string; + /** + * Coordinates + */ + coordinates: Array | Array> | Array>> | Array>>>; +}; /** * GroundwaterLevelObservationResponse */ export type GroundwaterLevelObservationResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Sample Id - */ - sample_id: number - /** - * Sensor Id - */ - sensor_id: number | null - /** - * Observation Datetime - */ - observation_datetime: string - parameter: ParameterResponse - /** - * Value - */ - value: number | null - unit: Unit - /** - * Depth To Water Bgs - */ - depth_to_water_bgs: number | null - /** - * Measuring Point Height - */ - measuring_point_height: number | null - /** - * Groundwater Level Reason - */ - groundwater_level_reason: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Sample Id + */ + sample_id: number; + /** + * Sensor Id + */ + sensor_id: number | null; + /** + * Observation Datetime + */ + observation_datetime: string; + parameter: ParameterResponse; + /** + * Value + */ + value: number | null; + unit: Unit; + /** + * Depth To Water Bgs + */ + depth_to_water_bgs: number | null; + /** + * Measuring Point Height + */ + measuring_point_height: number | null; + /** + * Groundwater Level Reason + */ + groundwater_level_reason: string | null; +}; /** * GroupResponse @@ -940,42 +936,42 @@ export type GroundwaterLevelObservationResponse = { * This model can be extended to include additional fields as needed. */ export type GroupResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Name - */ - name: string - /** - * Project Area - */ - project_area: string | null - /** - * Description - */ - description: string | null - /** - * Parent Group Id - */ - parent_group_id: number | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Name + */ + name: string; + /** + * Project Area + */ + project_area: string | null; + /** + * Description + */ + description: string | null; + /** + * Parent Group Id + */ + parent_group_id: number | null; +}; /** * HTTPValidationError */ export type HttpValidationError = { - /** - * Detail - */ - detail?: Array -} + /** + * Detail + */ + detail?: Array; +}; /** * LexiconCategoryResponse @@ -983,23 +979,23 @@ export type HttpValidationError = { * This model can be extended to include additional fields as needed. */ export type LexiconCategoryResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - /** - * Name - */ - name: string - /** - * Description - */ - description?: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + /** + * Name + */ + name: string; + /** + * Description + */ + description?: string | null; +}; /** * LexiconTermResponse @@ -1007,111 +1003,111 @@ export type LexiconCategoryResponse = { * This model can be extended to include additional fields as needed. */ export type LexiconTermResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - /** - * Term - */ - term: string - /** - * Definition - */ - definition: string - /** - * Categories - */ - categories?: Array -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + /** + * Term + */ + term: string; + /** + * Definition + */ + definition: string; + /** + * Categories + */ + categories?: Array; +}; /** * LexiconTripleResponse */ export type LexiconTripleResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - /** - * Subject - */ - subject: string - /** - * Predicate - */ - predicate: string - /** - * Object - */ - object_: string -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + /** + * Subject + */ + subject: string; + /** + * Predicate + */ + predicate: string; + /** + * Object + */ + object_: string; +}; /** * LocationResponse * Response schema for sample location details. */ export type LocationResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Notes - */ - notes: string | null - /** - * Point - */ - point: string - /** - * Elevation - */ - elevation: number | null - /** - * Horizontal Datum - */ - horizontal_datum?: string - /** - * Vertical Datum - */ - vertical_datum?: string - /** - * Elevation Accuracy - */ - elevation_accuracy: number | null - elevation_method: ElevationMethod | null - /** - * Coordinate Accuracy - */ - coordinate_accuracy: number | null - coordinate_method: CoordinateMethod | null - /** - * State - */ - state: string | null - /** - * County - */ - county: string | null - /** - * Quad Name - */ - quad_name: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Notes + */ + notes: string | null; + /** + * Point + */ + point: string; + /** + * Elevation + */ + elevation: number | null; + /** + * Horizontal Datum + */ + horizontal_datum?: string; + /** + * Vertical Datum + */ + vertical_datum?: string; + /** + * Elevation Accuracy + */ + elevation_accuracy: number | null; + elevation_method: ElevationMethod | null; + /** + * Coordinate Accuracy + */ + coordinate_accuracy: number | null; + coordinate_method: CoordinateMethod | null; + /** + * State + */ + state: string | null; + /** + * County + */ + county: string | null; + /** + * Quad Name + */ + quad_name: string | null; +}; /** * ObservationResponse @@ -1119,646 +1115,646 @@ export type LocationResponse = { * Combines groundwater level and geothermal observation responses. */ export type ObservationResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Sample Id - */ - sample_id: number - /** - * Sensor Id - */ - sensor_id: number | null - /** - * Observation Datetime - */ - observation_datetime: string - parameter: ParameterResponse - /** - * Value - */ - value: number | null - unit: Unit - /** - * Depth To Water Bgs - */ - depth_to_water_bgs: number | null - /** - * Measuring Point Height - */ - measuring_point_height: number | null - /** - * Groundwater Level Reason - */ - groundwater_level_reason: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Sample Id + */ + sample_id: number; + /** + * Sensor Id + */ + sensor_id: number | null; + /** + * Observation Datetime + */ + observation_datetime: string; + parameter: ParameterResponse; + /** + * Value + */ + value: number | null; + unit: Unit; + /** + * Depth To Water Bgs + */ + depth_to_water_bgs: number | null; + /** + * Measuring Point Height + */ + measuring_point_height: number | null; + /** + * Groundwater Level Reason + */ + groundwater_level_reason: string | null; +}; /** * Page[AddressResponse] */ export type PageAddressResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[AssetResponse] */ export type PageAssetResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[ContactResponse] */ export type PageContactResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[DeploymentResponse] */ export type PageDeploymentResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[EmailResponse] */ export type PageEmailResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[GroundwaterLevelObservationResponse] */ export type PageGroundwaterLevelObservationResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[GroupResponse] */ export type PageGroupResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[LexiconCategoryResponse] */ export type PageLexiconCategoryResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[LexiconTermResponse] */ export type PageLexiconTermResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[LexiconTripleResponse] */ export type PageLexiconTripleResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[LocationResponse] */ export type PageLocationResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[ObservationResponse] */ export type PageObservationResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[PhoneResponse] */ export type PagePhoneResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[SampleResponse] */ export type PageSampleResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[SensorResponse] */ export type PageSensorResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[SpringResponse] */ export type PageSpringResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[ThingIdLinkResponse] */ export type PageThingIdLinkResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[ThingResponse] */ export type PageThingResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[TransducerObservationWithBlockResponse] */ export type PageTransducerObservationWithBlockResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[WaterChemistryObservationResponse] */ export type PageWaterChemistryObservationResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[WellResponse] */ export type PageWellResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[WellScreenResponse] */ export type PageWellScreenResponse = { - /** - * Items - */ - items: Array - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * Page[dict] */ export type PageDict = { - /** - * Items - */ - items: Array<{ - [key: string]: unknown - }> - /** - * Total - */ - total: number - /** - * Page - */ - page: number - /** - * Size - */ - size: number - /** - * Pages - */ - pages: number -} + /** + * Items + */ + items: Array<{ + [key: string]: unknown; + }>; + /** + * Total + */ + total: number; + /** + * Page + */ + page: number; + /** + * Size + */ + size: number; + /** + * Pages + */ + pages: number; +}; /** * ParameterResponse @@ -1766,101 +1762,97 @@ export type PageDict = { * This model can be extended to include additional fields as needed. */ export type ParameterResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - parameter_name: ParameterName - /** - * Matrix - */ - matrix: string - parameter_type: ParameterType | null - /** - * Cas Number - */ - cas_number: string | null - default_unit: Unit | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + parameter_name: ParameterName; + /** + * Matrix + */ + matrix: string; + parameter_type: ParameterType | null; + /** + * Cas Number + */ + cas_number: string | null; + default_unit: Unit | null; +}; /** * PhoneResponse * Response schema for phone details. */ export type PhoneResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Contact Id - */ - contact_id: number - /** - * Phone Number - */ - phone_number?: string | null - /** - * Phone Type - */ - phone_type: string - /** - * Nma Phone Number - */ - nma_phone_number?: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Contact Id + */ + contact_id: number; + /** + * Phone Number + */ + phone_number?: string | null; + /** + * Phone Type + */ + phone_type: string; +}; /** * PublicationResponse * Schema for the response of a publication. */ export type PublicationResponse = { - /** - * Id - */ - id: number - /** - * Title - */ - title: string - /** - * Authors - */ - authors: Array - /** - * Year - */ - year: number - /** - * Doi - */ - doi?: string | null - /** - * Url - */ - url?: string | null - publication_type: PublicationType -} + /** + * Id + */ + id: number; + /** + * Title + */ + title: string; + /** + * Authors + */ + authors: Array; + /** + * Year + */ + year: number; + /** + * Doi + */ + doi?: string | null; + /** + * Url + */ + url?: string | null; + publication_type: PublicationType; +}; /** * ResourceNotFoundResponse */ export type ResourceNotFoundResponse = { - /** - * Detail - */ - detail: string -} + /** + * Detail + */ + detail: string; +}; /** * SampleResponse @@ -1872,422 +1864,422 @@ export type ResourceNotFoundResponse = { * .model_dump() and exlude fields to reduce the size. */ export type SampleResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - thing: ThingResponse - field_event: FieldEventResponse - field_activity: FieldActivityResponse - contact: ContactResponse - /** - * Sample Date - */ - sample_date: string - /** - * Sample Name - */ - sample_name: string - sample_matrix: SampleMatrix - sample_method: SampleMethod - qc_type: QcType - /** - * Notes - */ - notes: string | null - /** - * Depth Top - */ - depth_top: number | null - /** - * Depth Bottom - */ - depth_bottom: number | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + thing: ThingResponse; + field_event: FieldEventResponse; + field_activity: FieldActivityResponse; + contact: ContactResponse; + /** + * Sample Date + */ + sample_date: string; + /** + * Sample Name + */ + sample_name: string; + sample_matrix: SampleMatrix; + sample_method: SampleMethod; + qc_type: QcType; + /** + * Notes + */ + notes: string | null; + /** + * Depth Top + */ + depth_top: number | null; + /** + * Depth Bottom + */ + depth_bottom: number | null; +}; /** * SensorResponse */ export type SensorResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Name - */ - name: string - sensor_type: SensorType - /** - * Model - */ - model: string | null - /** - * Serial No - */ - serial_no: string | null - /** - * Pcn Number - */ - pcn_number: string | null - /** - * Owner Agency - */ - owner_agency: string | null - /** - * Sensor Status - */ - sensor_status: string | null - /** - * Notes - */ - notes: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Name + */ + name: string; + sensor_type: SensorType; + /** + * Model + */ + model: string | null; + /** + * Serial No + */ + serial_no: string | null; + /** + * Pcn Number + */ + pcn_number: string | null; + /** + * Owner Agency + */ + owner_agency: string | null; + /** + * Sensor Status + */ + sensor_status: string | null; + /** + * Notes + */ + notes: string | null; +}; /** * SpringResponse * Response schema for spring details. */ export type SpringResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Name - */ - name: string - /** - * Thing Type - */ - thing_type: string - current_location: LocationResponse | null - /** - * First Visit Date - */ - first_visit_date: string | null - /** - * Spring Type - */ - spring_type?: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Name + */ + name: string; + /** + * Thing Type + */ + thing_type: string; + current_location: LocationResponse | null; + /** + * First Visit Date + */ + first_visit_date: string | null; + /** + * Spring Type + */ + spring_type?: string | null; +}; /** * ThingIdLinkResponse */ export type ThingIdLinkResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Thing Id - */ - thing_id: number - thing: ThingResponse - /** - * Relation - */ - relation: string - /** - * Alternate Id - */ - alternate_id: string - /** - * Alternate Organization - */ - alternate_organization: string -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Thing Id + */ + thing_id: number; + thing: ThingResponse; + /** + * Relation + */ + relation: string; + /** + * Alternate Id + */ + alternate_id: string; + /** + * Alternate Organization + */ + alternate_organization: string; +}; /** * ThingResponse */ export type ThingResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Name - */ - name: string - /** - * Thing Type - */ - thing_type: string - current_location: LocationResponse | null - /** - * First Visit Date - */ - first_visit_date: string | null - /** - * Spring Type - */ - spring_type?: string | null - /** - * Well Purposes - */ - well_purposes?: Array - /** - * Well Depth - */ - well_depth?: number | null - /** - * Well Depth Unit - */ - well_depth_unit?: string - /** - * Hole Depth - */ - hole_depth?: number | null - /** - * Hole Depth Unit - */ - hole_depth_unit?: string - /** - * Well Casing Diameter - */ - well_casing_diameter?: number | null - /** - * Well Casing Diameter Unit - */ - well_casing_diameter_unit?: string - /** - * Well Casing Depth - */ - well_casing_depth?: number | null - /** - * Well Casing Depth Unit - */ - well_casing_depth_unit?: string - /** - * Well Casing Materials - */ - well_casing_materials?: Array - /** - * Well Construction Notes - */ - well_construction_notes?: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Name + */ + name: string; + /** + * Thing Type + */ + thing_type: string; + current_location: LocationResponse | null; + /** + * First Visit Date + */ + first_visit_date: string | null; + /** + * Spring Type + */ + spring_type?: string | null; + /** + * Well Purposes + */ + well_purposes?: Array; + /** + * Well Depth + */ + well_depth?: number | null; + /** + * Well Depth Unit + */ + well_depth_unit?: string; + /** + * Hole Depth + */ + hole_depth?: number | null; + /** + * Hole Depth Unit + */ + hole_depth_unit?: string; + /** + * Well Casing Diameter + */ + well_casing_diameter?: number | null; + /** + * Well Casing Diameter Unit + */ + well_casing_diameter_unit?: string; + /** + * Well Casing Depth + */ + well_casing_depth?: number | null; + /** + * Well Casing Depth Unit + */ + well_casing_depth_unit?: string; + /** + * Well Casing Materials + */ + well_casing_materials?: Array; + /** + * Well Construction Notes + */ + well_construction_notes?: string | null; +}; /** * TransducerObservationBlockResponse */ export type TransducerObservationBlockResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - review_status: ReviewStatus - /** - * Start Datetime - */ - start_datetime: string - /** - * End Datetime - */ - end_datetime: string - /** - * Parameter Id - */ - parameter_id: number -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + review_status: ReviewStatus; + /** + * Start Datetime + */ + start_datetime: string; + /** + * End Datetime + */ + end_datetime: string; + /** + * Parameter Id + */ + parameter_id: number; +}; /** * TransducerObservationResponse */ export type TransducerObservationResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Value - */ - value: number - /** - * Observation Datetime - */ - observation_datetime: string - /** - * Parameter Id - */ - parameter_id: number - /** - * Deployment Id - */ - deployment_id: number -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Value + */ + value: number; + /** + * Observation Datetime + */ + observation_datetime: string; + /** + * Parameter Id + */ + parameter_id: number; + /** + * Deployment Id + */ + deployment_id: number; +}; /** * TransducerObservationWithBlockResponse */ export type TransducerObservationWithBlockResponse = { - observation: TransducerObservationResponse - block: TransducerObservationBlockResponse -} + observation: TransducerObservationResponse; + block: TransducerObservationBlockResponse; +}; /** * UpdateAddress * Schema for updating address information. */ export type UpdateAddress = { - release_status?: ReleaseStatus | null - /** - * Contact Id - */ - contact_id?: number | null - /** - * Address Line 1 - */ - address_line_1?: string | null - /** - * Address Line 2 - */ - address_line_2?: string | null - /** - * City - */ - city?: string | null - /** - * State - */ - state?: string | null - /** - * Postal Code - */ - postal_code?: string | null - /** - * Country - */ - country?: string | null - address_type?: AddressType | null -} + release_status?: ReleaseStatus | null; + /** + * Contact Id + */ + contact_id?: number | null; + /** + * Address Line 1 + */ + address_line_1?: string | null; + /** + * Address Line 2 + */ + address_line_2?: string | null; + /** + * City + */ + city?: string | null; + /** + * State + */ + state?: string | null; + /** + * Postal Code + */ + postal_code?: string | null; + /** + * Country + */ + country?: string | null; + address_type?: AddressType | null; +}; /** * UpdateAsset */ export type UpdateAsset = { - release_status?: ReleaseStatus | null - /** - * Name - */ - name?: string | null - /** - * Label - */ - label?: string | null -} + release_status?: ReleaseStatus | null; + /** + * Name + */ + name?: string | null; + /** + * Label + */ + label?: string | null; +}; /** * UpdateContact * Schema for updating contact information. */ export type UpdateContact = { - /** - * Name - */ - name?: string | null - /** - * Organization - */ - organization?: string | null - release_status?: ReleaseStatus | null - role?: Role | null - contact_type?: ContactType | null - /** - * Thing Id - */ - thing_id?: number | null -} + /** + * Name + */ + name?: string | null; + /** + * Organization + */ + organization?: string | null; + release_status?: ReleaseStatus | null; + role?: Role | null; + contact_type?: ContactType | null; + /** + * Thing Id + */ + thing_id?: number | null; +}; /** * UpdateEmail * Schema for updating email information. */ export type UpdateEmail = { - /** - * Email - */ - email?: string | null - release_status?: ReleaseStatus | null - /** - * Contact Id - */ - contact_id?: number | null - email_type?: EmailType | null -} + /** + * Email + */ + email?: string | null; + release_status?: ReleaseStatus | null; + /** + * Contact Id + */ + contact_id?: number | null; + email_type?: EmailType | null; +}; /** * UpdateGroundwaterLevelObservation */ export type UpdateGroundwaterLevelObservation = { - /** - * Parameter Id - */ - parameter_id?: number | null - /** - * Observation Datetime - */ - observation_datetime?: string | null - release_status?: ReleaseStatus | null - /** - * Sample Id - */ - sample_id?: number | null - /** - * Sensor Id - */ - sensor_id?: number | null - /** - * Value - */ - value?: number | null - unit?: Unit | null - /** - * Measuring Point Height - */ - measuring_point_height?: number | null - /** - * Groundwater Level Reason - */ - groundwater_level_reason?: string | null -} + /** + * Parameter Id + */ + parameter_id?: number | null; + /** + * Observation Datetime + */ + observation_datetime?: string | null; + release_status?: ReleaseStatus | null; + /** + * Sample Id + */ + sample_id?: number | null; + /** + * Sensor Id + */ + sensor_id?: number | null; + /** + * Value + */ + value?: number | null; + unit?: Unit | null; + /** + * Measuring Point Height + */ + measuring_point_height?: number | null; + /** + * Groundwater Level Reason + */ + groundwater_level_reason?: string | null; +}; /** * UpdateGroup @@ -2295,4682 +2287,4189 @@ export type UpdateGroundwaterLevelObservation = { * This model can be extended to include additional fields as needed. */ export type UpdateGroup = { - /** - * Project Area - */ - project_area?: string | null - /** - * Description - */ - description?: string | null - /** - * Parent Group Id - */ - parent_group_id?: number | null - release_status?: ReleaseStatus | null - /** - * Name - */ - name?: string | null -} + /** + * Project Area + */ + project_area?: string | null; + /** + * Description + */ + description?: string | null; + /** + * Parent Group Id + */ + parent_group_id?: number | null; + release_status?: ReleaseStatus | null; + /** + * Name + */ + name?: string | null; +}; /** * UpdateLexiconCategory */ export type UpdateLexiconCategory = { - /** - * Name - */ - name?: string | null - /** - * Description - */ - description?: string | null -} + /** + * Name + */ + name?: string | null; + /** + * Description + */ + description?: string | null; +}; /** * UpdateLexiconTerm */ export type UpdateLexiconTerm = { - /** - * Term - */ - term?: string | null - /** - * Definition - */ - definition?: string | null -} + /** + * Term + */ + term?: string | null; + /** + * Definition + */ + definition?: string | null; +}; /** * UpdateLexiconTriple */ export type UpdateLexiconTriple = { - /** - * Subject - */ - subject?: string | null - /** - * Predicate - */ - predicate?: string | null - /** - * Object - */ - object_?: string | null -} + /** + * Subject + */ + subject?: string | null; + /** + * Predicate + */ + predicate?: string | null; + /** + * Object + */ + object_?: string | null; +}; /** * UpdateLocation * Schema for updating a location. */ export type UpdateLocation = { - /** - * Point - */ - point?: string | null - release_status?: ReleaseStatus | null - /** - * Notes - */ - notes?: string | null - /** - * Elevation - */ - elevation?: number | null - /** - * Elevation Accuracy - */ - elevation_accuracy?: number | null - elevation_method?: ElevationMethod | null - /** - * Coordinate Accuracy - */ - coordinate_accuracy?: number | null - coordinate_method?: CoordinateMethod | null -} + /** + * Point + */ + point?: string | null; + release_status?: ReleaseStatus | null; + /** + * Notes + */ + notes?: string | null; + /** + * Elevation + */ + elevation?: number | null; + /** + * Elevation Accuracy + */ + elevation_accuracy?: number | null; + elevation_method?: ElevationMethod | null; + /** + * Coordinate Accuracy + */ + coordinate_accuracy?: number | null; + coordinate_method?: CoordinateMethod | null; +}; /** * UpdatePhone * Schema for updating phone information. */ export type UpdatePhone = { - /** - * Phone Number - */ - phone_number?: string | null - release_status?: ReleaseStatus | null - /** - * Contact Id - */ - contact_id?: number | null - phone_type?: PhoneType | null -} + /** + * Phone Number + */ + phone_number?: string | null; + release_status?: ReleaseStatus | null; + /** + * Contact Id + */ + contact_id?: number | null; + phone_type?: PhoneType | null; +}; /** * UpdateSample */ export type UpdateSample = { - /** - * Sample Date - */ - sample_date?: string | null - /** - * Depth Top - */ - depth_top?: number | null - /** - * Depth Bottom - */ - depth_bottom?: number | null - release_status?: ReleaseStatus | null - /** - * Field Activity Id - */ - field_activity_id?: number | null - /** - * Field Event Participant Id - */ - field_event_participant_id?: number | null - /** - * Sample Name - */ - sample_name?: string | null - sample_matrix?: SampleMatrix | null - sample_method?: SampleMethod | null - qc_type?: QcType | null - /** - * Notes - */ - notes?: string | null -} + /** + * Sample Date + */ + sample_date?: string | null; + /** + * Depth Top + */ + depth_top?: number | null; + /** + * Depth Bottom + */ + depth_bottom?: number | null; + release_status?: ReleaseStatus | null; + /** + * Field Activity Id + */ + field_activity_id?: number | null; + /** + * Field Event Participant Id + */ + field_event_participant_id?: number | null; + /** + * Sample Name + */ + sample_name?: string | null; + sample_matrix?: SampleMatrix | null; + sample_method?: SampleMethod | null; + qc_type?: QcType | null; + /** + * Notes + */ + notes?: string | null; +}; /** * UpdateSensor */ export type UpdateSensor = { - release_status?: ReleaseStatus | null - /** - * Name - */ - name?: string | null - sensor_type?: SensorType | null - /** - * Model - */ - model?: string | null - /** - * Serial No - */ - serial_no?: string | null - /** - * Pcn Number - */ - pcn_number?: string | null - /** - * Owner Agency - */ - owner_agency?: string | null - /** - * Sensor Status - */ - sensor_status?: string | null - /** - * Notes - */ - notes?: string | null -} + release_status?: ReleaseStatus | null; + /** + * Name + */ + name?: string | null; + sensor_type?: SensorType | null; + /** + * Model + */ + model?: string | null; + /** + * Serial No + */ + serial_no?: string | null; + /** + * Pcn Number + */ + pcn_number?: string | null; + /** + * Owner Agency + */ + owner_agency?: string | null; + /** + * Sensor Status + */ + sensor_status?: string | null; + /** + * Notes + */ + notes?: string | null; +}; /** * UpdateSpring */ export type UpdateSpring = { - release_status?: ReleaseStatus | null - /** - * Name - */ - name?: string | null - /** - * First Visit Date - */ - first_visit_date?: string | null - /** - * Spring Type - */ - spring_type?: string | null -} + release_status?: ReleaseStatus | null; + /** + * Name + */ + name?: string | null; + /** + * First Visit Date + */ + first_visit_date?: string | null; + /** + * Spring Type + */ + spring_type?: string | null; +}; /** * UpdateThingIdLink */ export type UpdateThingIdLink = { - release_status?: ReleaseStatus | null - /** - * Alternate Organization - */ - alternate_organization?: string | null - /** - * Alternate Id - */ - alternate_id?: string | null - /** - * Relation - */ - relation?: string | null -} + release_status?: ReleaseStatus | null; + /** + * Alternate Organization + */ + alternate_organization?: string | null; + /** + * Alternate Id + */ + alternate_id?: string | null; + /** + * Relation + */ + relation?: string | null; +}; /** * UpdateWaterChemistryObservation */ export type UpdateWaterChemistryObservation = { - /** - * Parameter Id - */ - parameter_id?: number | null - /** - * Observation Datetime - */ - observation_datetime?: string | null - release_status?: ReleaseStatus | null - /** - * Sample Id - */ - sample_id?: number | null - /** - * Sensor Id - */ - sensor_id?: number | null - /** - * Value - */ - value?: number | null - unit?: Unit | null -} + /** + * Parameter Id + */ + parameter_id?: number | null; + /** + * Observation Datetime + */ + observation_datetime?: string | null; + release_status?: ReleaseStatus | null; + /** + * Sample Id + */ + sample_id?: number | null; + /** + * Sensor Id + */ + sensor_id?: number | null; + /** + * Value + */ + value?: number | null; + unit?: Unit | null; +}; /** * UpdateWell */ export type UpdateWell = { - /** - * Well Depth - */ - well_depth?: number | null - /** - * Hole Depth - */ - hole_depth?: number | null - /** - * Well Casing Depth - */ - well_casing_depth?: number | null - release_status?: ReleaseStatus | null - /** - * Name - */ - name?: string | null - /** - * First Visit Date - */ - first_visit_date?: string | null - /** - * Well Purposes - */ - well_purposes?: Array | null - /** - * Well Construction Notes - */ - well_construction_notes?: string | null - /** - * Well Casing Diameter - */ - well_casing_diameter?: number | null - /** - * Well Casing Materials - */ - well_casing_materials?: Array | null -} + /** + * Well Depth + */ + well_depth?: number | null; + /** + * Hole Depth + */ + hole_depth?: number | null; + /** + * Well Casing Depth + */ + well_casing_depth?: number | null; + release_status?: ReleaseStatus | null; + /** + * Name + */ + name?: string | null; + /** + * First Visit Date + */ + first_visit_date?: string | null; + /** + * Well Purposes + */ + well_purposes?: Array | null; + /** + * Well Construction Notes + */ + well_construction_notes?: string | null; + /** + * Well Casing Diameter + */ + well_casing_diameter?: number | null; + /** + * Well Casing Materials + */ + well_casing_materials?: Array | null; +}; /** * UpdateWellScreen */ export type UpdateWellScreen = { - release_status?: ReleaseStatus | null - /** - * Screen Depth Bottom - */ - screen_depth_bottom?: number | null - /** - * Screen Depth Top - */ - screen_depth_top?: number | null - /** - * Screen Description - */ - screen_description?: string | null - /** - * Screen Type - */ - screen_type?: string | null -} + release_status?: ReleaseStatus | null; + /** + * Screen Depth Bottom + */ + screen_depth_bottom?: number | null; + /** + * Screen Depth Top + */ + screen_depth_top?: number | null; + /** + * Screen Description + */ + screen_description?: string | null; + /** + * Screen Type + */ + screen_type?: string | null; +}; /** * ValidationError */ export type ValidationError = { - /** - * Location - */ - loc: Array - /** - * Message - */ - msg: string - /** - * Error Type - */ - type: string -} + /** + * Location + */ + loc: Array; + /** + * Message + */ + msg: string; + /** + * Error Type + */ + type: string; +}; /** * WaterChemistryObservationResponse */ export type WaterChemistryObservationResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Sample Id - */ - sample_id: number - /** - * Sensor Id - */ - sensor_id: number | null - /** - * Observation Datetime - */ - observation_datetime: string - parameter: ParameterResponse - /** - * Value - */ - value: number | null - unit: Unit -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Sample Id + */ + sample_id: number; + /** + * Sensor Id + */ + sensor_id: number | null; + /** + * Observation Datetime + */ + observation_datetime: string; + parameter: ParameterResponse; + /** + * Value + */ + value: number | null; + unit: Unit; +}; /** * WellResponse * Response schema for well details. */ export type WellResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Name - */ - name: string - /** - * Thing Type - */ - thing_type: string - current_location: LocationResponse | null - /** - * First Visit Date - */ - first_visit_date: string | null - /** - * Well Purposes - */ - well_purposes?: Array - /** - * Well Depth - */ - well_depth?: number | null - /** - * Well Depth Unit - */ - well_depth_unit?: string - /** - * Hole Depth - */ - hole_depth?: number | null - /** - * Hole Depth Unit - */ - hole_depth_unit?: string - /** - * Well Casing Diameter - */ - well_casing_diameter?: number | null - /** - * Well Casing Diameter Unit - */ - well_casing_diameter_unit?: string - /** - * Well Casing Depth - */ - well_casing_depth?: number | null - /** - * Well Casing Depth Unit - */ - well_casing_depth_unit?: string - /** - * Well Casing Materials - */ - well_casing_materials?: Array - /** - * Well Construction Notes - */ - well_construction_notes?: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Name + */ + name: string; + /** + * Thing Type + */ + thing_type: string; + current_location: LocationResponse | null; + /** + * First Visit Date + */ + first_visit_date: string | null; + /** + * Well Purposes + */ + well_purposes?: Array; + /** + * Well Depth + */ + well_depth?: number | null; + /** + * Well Depth Unit + */ + well_depth_unit?: string; + /** + * Hole Depth + */ + hole_depth?: number | null; + /** + * Hole Depth Unit + */ + hole_depth_unit?: string; + /** + * Well Casing Diameter + */ + well_casing_diameter?: number | null; + /** + * Well Casing Diameter Unit + */ + well_casing_diameter_unit?: string; + /** + * Well Casing Depth + */ + well_casing_depth?: number | null; + /** + * Well Casing Depth Unit + */ + well_casing_depth_unit?: string; + /** + * Well Casing Materials + */ + well_casing_materials?: Array; + /** + * Well Construction Notes + */ + well_construction_notes?: string | null; +}; /** * WellScreenResponse * Response schema for well screen details. */ export type WellScreenResponse = { - /** - * Id - */ - id: number - /** - * Created At - */ - created_at: string - release_status: ReleaseStatus - /** - * Thing Id - */ - thing_id: number - thing: WellResponse - /** - * Screen Depth Bottom - */ - screen_depth_bottom: number - /** - * Screen Depth Bottom Unit - */ - screen_depth_bottom_unit?: string - /** - * Screen Depth Top - */ - screen_depth_top: number - /** - * Screen Depth Top Unit - */ - screen_depth_top_unit?: string - /** - * Screen Type - */ - screen_type?: string | null - /** - * Screen Description - */ - screen_description?: string | null -} + /** + * Id + */ + id: number; + /** + * Created At + */ + created_at: string; + release_status: ReleaseStatus; + /** + * Thing Id + */ + thing_id: number; + thing: WellResponse; + /** + * Screen Depth Bottom + */ + screen_depth_bottom: number; + /** + * Screen Depth Bottom Unit + */ + screen_depth_bottom_unit?: string; + /** + * Screen Depth Top + */ + screen_depth_top: number; + /** + * Screen Depth Top Unit + */ + screen_depth_top_unit?: string; + /** + * Screen Type + */ + screen_type?: string | null; + /** + * Screen Description + */ + screen_description?: string | null; +}; /** * activity_type */ -export type ActivityType = 'groundwater level' | 'water chemistry' +export type ActivityType = 'groundwater level' | 'water chemistry'; /** * address_type */ -export type AddressType = - | 'Primary' - | 'Work' - | 'Personal' - | 'Mailing' - | 'Physical' +export type AddressType = 'Primary' | 'Work' | 'Personal' | 'Mailing' | 'Physical'; /** * casing_material */ -export type CasingMaterial = 'PVC' | 'Steel' | 'Concrete' +export type CasingMaterial = 'PVC' | 'Steel' | 'Concrete'; /** * contact_type */ -export type ContactType = 'Primary' | 'Secondary' | 'Field Event Participant' +export type ContactType = 'Primary' | 'Secondary' | 'Field Event Participant'; /** * coordinate_method */ -export type CoordinateMethod = - | 'Unknown' - | 'Differentially corrected GPS' - | 'Survey-grade global positioning system (SGPS)' - | 'GPS, uncorrected' - | 'Interpolated from map' - | 'Interpolated from DEM' - | 'Reported' - | 'Transit, theodolite, or other survey method' +export type CoordinateMethod = 'Unknown' | 'Differentially corrected GPS' | 'Survey-grade global positioning system (SGPS)' | 'GPS, uncorrected' | 'Interpolated from map' | 'Interpolated from DEM' | 'Reported' | 'Transit, theodolite, or other survey method'; /** * elevation_method */ -export type ElevationMethod = - | 'Altimeter' - | 'Differentially corrected GPS' - | 'Survey-grade GPS' - | 'Global positioning system (GPS)' - | 'LiDAR DEM' - | 'Level or other survey method' - | 'Interpolated from topographic map' - | 'Interpolated from digital elevation model (DEM)' - | 'Reported' - | 'Survey-grade Global Navigation Satellite Sys, Lvl1' - | 'USGS National Elevation Dataset (NED)' - | 'Unknown' +export type ElevationMethod = 'Altimeter' | 'Differentially corrected GPS' | 'Survey-grade GPS' | 'Global positioning system (GPS)' | 'LiDAR DEM' | 'Level or other survey method' | 'Interpolated from topographic map' | 'Interpolated from digital elevation model (DEM)' | 'Reported' | 'Survey-grade Global Navigation Satellite Sys, Lvl1' | 'USGS National Elevation Dataset (NED)' | 'Unknown'; /** * email_type */ -export type EmailType = 'Primary' | 'Work' | 'Personal' +export type EmailType = 'Primary' | 'Work' | 'Personal'; /** * parameter_name */ -export type ParameterName = - | 'groundwater level' - | 'temperature' - | 'pH' - | 'Alkalinity, Total' - | 'Alkalinity as CaCO3' - | 'Alkalinity as OH-' - | 'Calcium' - | 'Calcium, total, unfiltered' - | 'Chloride' - | 'Carbonate' - | 'Conductivity, laboratory' - | 'Bicarbonate' - | 'Hardness (CaCO3)' - | 'Ion Balance' - | 'Potassium' - | 'Potassium, total, unfiltered' - | 'Magnesium' - | 'Magnesium, total, unfiltered' - | 'Sodium' - | 'Sodium, total, unfiltered' - | 'Sodium and Potassium combined' - | 'Sulfate' - | 'Total Anions' - | 'Total Cations' - | 'Total Dissolved Solids' - | 'Tritium' - | 'Age of Water using dissolved gases' - | 'Silver' - | 'Silver, total, unfiltered' - | 'Aluminum' - | 'Aluminum, total, unfiltered' - | 'Arsenic' - | 'Arsenic, total, unfiltered' - | 'Boron' - | 'Boron, total, unfiltered' - | 'Barium' - | 'Barium, total, unfiltered' - | 'Beryllium' - | 'Beryllium, total, unfiltered' - | 'Bromide' - | '13C:12C ratio' - | '14C content, pmc' - | 'Uncorrected C14 age' - | 'Cadmium' - | 'Cadmium, total, unfiltered' - | 'Chlorofluorocarbon-11 avg age' - | 'Chlorofluorocarbon-113 avg age' - | 'Chlorofluorocarbon-113/12 avg RATIO age' - | 'Chlorofluorocarbon-12 avg age' - | 'Cobalt' - | 'Cobalt, total, unfiltered' - | 'Chromium' - | 'Chromium, total, unfiltered' - | 'Copper' - | 'Copper, total, unfiltered' - | 'delta O18 sulfate' - | 'Sulfate 34 isotope ratio' - | 'Fluoride' - | 'Iron' - | 'Iron, total, unfiltered' - | 'Deuterium:Hydrogen ratio' - | 'Mercury' - | 'Mercury, total, unfiltered' - | 'Lithium' - | 'Lithium, total, unfiltered' - | 'Manganese' - | 'Manganese, total, unfiltered' - | 'Molybdenum' - | 'Molybdenum, total, unfiltered' - | 'Nickel' - | 'Nickel, total, unfiltered' - | 'Nitrite (as NO2)' - | 'Nitrite (as N)' - | 'Nitrate (as NO3)' - | 'Nitrate (as N)' - | '18O:16O ratio' - | 'Lead' - | 'Lead, total, unfiltered' - | 'Phosphate' - | 'Antimony' - | 'Antimony, total, unfiltered' - | 'Selenium' - | 'Selenium, total, unfiltered' - | 'Sulfur hexafluoride' - | 'Silicon' - | 'Silicon, total, unfiltered' - | 'Silica' - | 'Tin' - | 'Tin, total, unfiltered' - | 'Strontium' - | 'Strontium, total, unfiltered' - | 'Strontium 87:86 ratio' - | 'Thorium' - | 'Thorium, total, unfiltered' - | 'Titanium' - | 'Titanium, total, unfiltered' - | 'Thallium' - | 'Thallium, total, unfiltered' - | 'Uranium (total, by ICP-MS)' - | 'Uranium, total, unfiltered' - | 'Vanadium' - | 'Vanadium, total, unfiltered' - | 'Zinc' - | 'Zinc, total, unfiltered' - | 'Corrected C14 in years' - | 'Arsenite (arsenic species)' - | 'Arsenate (arsenic species)' - | 'Cyanide' - | 'Estimated recharge temperature' - | 'Hydrogen sulfide' - | 'Ammonia' - | 'Ammonium' - | 'Total nitrogen' - | 'Total Kjeldahl nitrogen' - | 'Dissolved organic carbon' - | 'Total organic carbon' - | 'delta C13 of dissolved inorganic carbon' +export type ParameterName = 'groundwater level' | 'temperature' | 'pH' | 'Alkalinity, Total' | 'Alkalinity as CaCO3' | 'Alkalinity as OH-' | 'Calcium' | 'Calcium, total, unfiltered' | 'Chloride' | 'Carbonate' | 'Conductivity, laboratory' | 'Bicarbonate' | 'Hardness (CaCO3)' | 'Ion Balance' | 'Potassium' | 'Potassium, total, unfiltered' | 'Magnesium' | 'Magnesium, total, unfiltered' | 'Sodium' | 'Sodium, total, unfiltered' | 'Sodium and Potassium combined' | 'Sulfate' | 'Total Anions' | 'Total Cations' | 'Total Dissolved Solids' | 'Tritium' | 'Age of Water using dissolved gases' | 'Silver' | 'Silver, total, unfiltered' | 'Aluminum' | 'Aluminum, total, unfiltered' | 'Arsenic' | 'Arsenic, total, unfiltered' | 'Boron' | 'Boron, total, unfiltered' | 'Barium' | 'Barium, total, unfiltered' | 'Beryllium' | 'Beryllium, total, unfiltered' | 'Bromide' | '13C:12C ratio' | '14C content, pmc' | 'Uncorrected C14 age' | 'Cadmium' | 'Cadmium, total, unfiltered' | 'Chlorofluorocarbon-11 avg age' | 'Chlorofluorocarbon-113 avg age' | 'Chlorofluorocarbon-113/12 avg RATIO age' | 'Chlorofluorocarbon-12 avg age' | 'Cobalt' | 'Cobalt, total, unfiltered' | 'Chromium' | 'Chromium, total, unfiltered' | 'Copper' | 'Copper, total, unfiltered' | 'delta O18 sulfate' | 'Sulfate 34 isotope ratio' | 'Fluoride' | 'Iron' | 'Iron, total, unfiltered' | 'Deuterium:Hydrogen ratio' | 'Mercury' | 'Mercury, total, unfiltered' | 'Lithium' | 'Lithium, total, unfiltered' | 'Manganese' | 'Manganese, total, unfiltered' | 'Molybdenum' | 'Molybdenum, total, unfiltered' | 'Nickel' | 'Nickel, total, unfiltered' | 'Nitrite (as NO2)' | 'Nitrite (as N)' | 'Nitrate (as NO3)' | 'Nitrate (as N)' | '18O:16O ratio' | 'Lead' | 'Lead, total, unfiltered' | 'Phosphate' | 'Antimony' | 'Antimony, total, unfiltered' | 'Selenium' | 'Selenium, total, unfiltered' | 'Sulfur hexafluoride' | 'Silicon' | 'Silicon, total, unfiltered' | 'Silica' | 'Tin' | 'Tin, total, unfiltered' | 'Strontium' | 'Strontium, total, unfiltered' | 'Strontium 87:86 ratio' | 'Thorium' | 'Thorium, total, unfiltered' | 'Titanium' | 'Titanium, total, unfiltered' | 'Thallium' | 'Thallium, total, unfiltered' | 'Uranium (total, by ICP-MS)' | 'Uranium, total, unfiltered' | 'Vanadium' | 'Vanadium, total, unfiltered' | 'Zinc' | 'Zinc, total, unfiltered' | 'Corrected C14 in years' | 'Arsenite (arsenic species)' | 'Arsenate (arsenic species)' | 'Cyanide' | 'Estimated recharge temperature' | 'Hydrogen sulfide' | 'Ammonia' | 'Ammonium' | 'Total nitrogen' | 'Total Kjeldahl nitrogen' | 'Dissolved organic carbon' | 'Total organic carbon' | 'delta C13 of dissolved inorganic carbon'; /** * parameter_type */ -export type ParameterType = - | 'Field Parameter' - | 'Metal' - | 'Radionuclide' - | 'Major Element' - | 'Minor Element' - | 'Physical property' +export type ParameterType = 'Field Parameter' | 'Metal' | 'Radionuclide' | 'Major Element' | 'Minor Element' | 'Physical property'; /** * phone_type */ -export type PhoneType = 'Primary' | 'Work' | 'Home' | 'Mobile' +export type PhoneType = 'Primary' | 'Work' | 'Home' | 'Mobile'; /** * publication_type */ -export type PublicationType = - | 'Map' - | 'Report' - | 'Dataset' - | 'Model' - | 'Software' - | 'Paper' - | 'Thesis' - | 'Book' - | 'Conference' - | 'Webpage' +export type PublicationType = 'Map' | 'Report' | 'Dataset' | 'Model' | 'Software' | 'Paper' | 'Thesis' | 'Book' | 'Conference' | 'Webpage'; /** * qc_type */ -export type QcType = - | 'Normal' - | 'Duplicate' - | 'Split' - | 'Field Blank' - | 'Trip Blank' - | 'Equipment Blank' +export type QcType = 'Normal' | 'Duplicate' | 'Split' | 'Field Blank' | 'Trip Blank' | 'Equipment Blank'; /** * release_status */ -export type ReleaseStatus = - | 'draft' - | 'provisional' - | 'final' - | 'published' - | 'archived' - | 'public' - | 'private' +export type ReleaseStatus = 'draft' | 'provisional' | 'final' | 'published' | 'archived' | 'public' | 'private'; /** * review_status */ -export type ReviewStatus = 'approved' | 'not reviewed' +export type ReviewStatus = 'approved' | 'not reviewed'; /** * role */ -export type Role = - | 'Unknown' - | 'Owner' - | 'Manager' - | 'Operator' - | 'Driller' - | 'Geologist' - | 'Hydrologist' - | 'Hydrogeologist' - | 'Engineer' - | 'Organization' - | 'Specialist' - | 'Technician' - | 'Research Assistant' - | 'Research Scientist' - | 'Graduate Student' - | 'Biologist' - | 'Lab Manager' - | 'Publications Manager' - | 'Software Developer' +export type Role = 'Unknown' | 'Owner' | 'Manager' | 'Operator' | 'Driller' | 'Geologist' | 'Hydrologist' | 'Hydrogeologist' | 'Engineer' | 'Organization' | 'Specialist' | 'Technician' | 'Research Assistant' | 'Research Scientist' | 'Graduate Student' | 'Biologist' | 'Lab Manager' | 'Publications Manager' | 'Software Developer'; /** * sample_matrix */ -export type SampleMatrix = 'water' | 'groundwater' | 'soil' +export type SampleMatrix = 'water' | 'groundwater' | 'soil'; /** * sample_method */ -export type SampleMethod = - | 'Unknown' - | 'Airline measurement' - | 'Analog or graphic recorder' - | 'Calibrated airline measurement' - | 'Differential GPS; especially applicable to surface expression of ground water' - | 'Estimated' - | 'Transducer' - | 'Pressure-gage measurement' - | 'Calibrated pressure-gage measurement' - | 'Interpreted from geophysical logs' - | 'Manometer' - | 'Non-recording gage' - | 'Observed (required for F, N, and W water level status)' - | 'Sonic water level meter (acoustic pulse)' - | 'Reported, method not known' - | 'Steel-tape measurement' - | 'Electric tape measurement (E-probe)' - | 'Unknown (for legacy data only; not for new data entry)' - | 'Calibrated electric tape; accuracy of equipment has been checked' - | 'Calibrated electric cable' - | 'Uncalibrated electric cable' - | 'Continuous acoustic sounder' - | 'Measurement not attempted' - | 'null placeholder' - | 'bailer' - | 'faucet at well head' - | 'faucet or outlet at house' - | 'grab sample' - | 'pump' - | 'thief sampler' +export type SampleMethod = 'Unknown' | 'Airline measurement' | 'Analog or graphic recorder' | 'Calibrated airline measurement' | 'Differential GPS; especially applicable to surface expression of ground water' | 'Estimated' | 'Transducer' | 'Pressure-gage measurement' | 'Calibrated pressure-gage measurement' | 'Interpreted from geophysical logs' | 'Manometer' | 'Non-recording gage' | 'Observed (required for F, N, and W water level status)' | 'Sonic water level meter (acoustic pulse)' | 'Reported, method not known' | 'Steel-tape measurement' | 'Electric tape measurement (E-probe)' | 'Unknown (for legacy data only; not for new data entry)' | 'Calibrated electric tape; accuracy of equipment has been checked' | 'Calibrated electric cable' | 'Uncalibrated electric cable' | 'Continuous acoustic sounder' | 'Measurement not attempted' | 'null placeholder' | 'bailer' | 'faucet at well head' | 'faucet or outlet at house' | 'grab sample' | 'pump' | 'thief sampler'; /** * screen_type */ -export type ScreenType = 'PVC' | 'Steel' | 'Concrete' +export type ScreenType = 'PVC' | 'Steel' | 'Concrete'; /** * sensor_type */ -export type SensorType = - | 'Pressure Transducer' - | 'Data Logger' - | 'Barometer' - | 'Acoustic Sounder' - | 'Precip Collector' - | 'Camera' - | 'Soil Moisture Sensor' - | 'Tipping Bucket' +export type SensorType = 'Pressure Transducer' | 'Data Logger' | 'Barometer' | 'Acoustic Sounder' | 'Precip Collector' | 'Camera' | 'Soil Moisture Sensor' | 'Tipping Bucket'; /** * spring_type */ -export type SpringType = - | 'Artesian' - | 'Ephemeral' - | 'Perennial' - | 'Thermal' - | 'Mineral' +export type SpringType = 'Artesian' | 'Ephemeral' | 'Perennial' | 'Thermal' | 'Mineral'; /** * unit */ -export type Unit = - | 'dimensionless' - | 'ft' - | 'ftbgs' - | 'F' - | 'mg/L' - | 'mW/m²' - | 'W/m²' - | 'W/m·K' - | 'm²/s' - | 'deg C' - | 'deg second' - | 'deg minute' - | 'second' - | 'minute' - | 'hour' +export type Unit = 'dimensionless' | 'ft' | 'ftbgs' | 'F' | 'mg/L' | 'mW/m²' | 'W/m²' | 'W/m·K' | 'm²/s' | 'deg C' | 'deg second' | 'deg minute' | 'second' | 'minute' | 'hour'; /** * well_purpose */ -export type WellPurpose = - | 'Unknown' - | 'Open, unequipped well' - | 'Commercial' - | 'Domestic' - | 'Power generation' - | 'Irrigation' - | 'Livestock' - | 'Mining' - | 'Industrial' - | 'Observation' - | 'Public supply' - | 'Shared domestic' - | 'Institutional' - | 'Unused' - | 'Exploration' - | 'Monitoring' - | 'Production' - | 'Injection' +export type WellPurpose = 'Unknown' | 'Open, unequipped well' | 'Commercial' | 'Domestic' | 'Power generation' | 'Irrigation' | 'Livestock' | 'Mining' | 'Industrial' | 'Observation' | 'Public supply' | 'Shared domestic' | 'Institutional' | 'Unused' | 'Exploration' | 'Monitoring' | 'Production' | 'Injection'; export type UploadAssetAssetUploadPostData = { - body: BodyUploadAssetAssetUploadPost - path?: never - query?: { - /** - * Client - */ - client?: unknown - } - url: '/asset/upload' -} + body: BodyUploadAssetAssetUploadPost; + path?: never; + query?: { + /** + * Client + */ + client?: unknown; + }; + url: '/asset/upload'; +}; export type UploadAssetAssetUploadPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UploadAssetAssetUploadPostError = - UploadAssetAssetUploadPostErrors[keyof UploadAssetAssetUploadPostErrors] +export type UploadAssetAssetUploadPostError = UploadAssetAssetUploadPostErrors[keyof UploadAssetAssetUploadPostErrors]; export type UploadAssetAssetUploadPostResponses = { - /** - * Response Upload Asset Asset Upload Post - * Successful Response - */ - 201: { - [key: string]: unknown - } -} - -export type UploadAssetAssetUploadPostResponse = - UploadAssetAssetUploadPostResponses[keyof UploadAssetAssetUploadPostResponses] - -export type ListAssetsAssetGetData = { - body?: never - path?: never - query?: { /** - * Thing Id - */ - thing_id?: number - /** - * Page - * Page number - */ - page?: number - /** - * Size + * Response Upload Asset Asset Upload Post + * Successful Response */ - size?: number - } - url: '/asset' -} + 201: { + [key: string]: unknown; + }; +}; + +export type UploadAssetAssetUploadPostResponse = UploadAssetAssetUploadPostResponses[keyof UploadAssetAssetUploadPostResponses]; + +export type ListAssetsAssetGetData = { + body?: never; + path?: never; + query?: { + /** + * Thing Id + */ + thing_id?: number; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/asset'; +}; export type ListAssetsAssetGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type ListAssetsAssetGetError = - ListAssetsAssetGetErrors[keyof ListAssetsAssetGetErrors] +export type ListAssetsAssetGetError = ListAssetsAssetGetErrors[keyof ListAssetsAssetGetErrors]; export type ListAssetsAssetGetResponses = { - /** - * Successful Response - */ - 200: PageAssetResponse -} + /** + * Successful Response + */ + 200: PageAssetResponse; +}; -export type ListAssetsAssetGetResponse = - ListAssetsAssetGetResponses[keyof ListAssetsAssetGetResponses] +export type ListAssetsAssetGetResponse = ListAssetsAssetGetResponses[keyof ListAssetsAssetGetResponses]; export type AddAssetAssetPostData = { - body: CreateAsset - path?: never - query?: never - url: '/asset' -} + body: CreateAsset; + path?: never; + query?: never; + url: '/asset'; +}; export type AddAssetAssetPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type AddAssetAssetPostError = - AddAssetAssetPostErrors[keyof AddAssetAssetPostErrors] +export type AddAssetAssetPostError = AddAssetAssetPostErrors[keyof AddAssetAssetPostErrors]; export type AddAssetAssetPostResponses = { - /** - * Successful Response - */ - 201: AssetResponse -} + /** + * Successful Response + */ + 201: AssetResponse; +}; -export type AddAssetAssetPostResponse = - AddAssetAssetPostResponses[keyof AddAssetAssetPostResponses] +export type AddAssetAssetPostResponse = AddAssetAssetPostResponses[keyof AddAssetAssetPostResponses]; export type DeleteAssetAssetAssetIdDeleteData = { - body?: never - path: { - /** - * Asset Id - */ - asset_id: number - } - query?: never - url: '/asset/{asset_id}' -} + body?: never; + path: { + /** + * Asset Id + */ + asset_id: number; + }; + query?: never; + url: '/asset/{asset_id}'; +}; export type DeleteAssetAssetAssetIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteAssetAssetAssetIdDeleteError = - DeleteAssetAssetAssetIdDeleteErrors[keyof DeleteAssetAssetAssetIdDeleteErrors] +export type DeleteAssetAssetAssetIdDeleteError = DeleteAssetAssetAssetIdDeleteErrors[keyof DeleteAssetAssetAssetIdDeleteErrors]; export type DeleteAssetAssetAssetIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteAssetAssetAssetIdDeleteResponse = - DeleteAssetAssetAssetIdDeleteResponses[keyof DeleteAssetAssetAssetIdDeleteResponses] +export type DeleteAssetAssetAssetIdDeleteResponse = DeleteAssetAssetAssetIdDeleteResponses[keyof DeleteAssetAssetAssetIdDeleteResponses]; export type GetAssetAssetAssetIdGetData = { - body?: never - path: { - /** - * Asset Id - */ - asset_id: number - } - query?: { - /** - * Client - */ - client?: unknown - } - url: '/asset/{asset_id}' -} + body?: never; + path: { + /** + * Asset Id + */ + asset_id: number; + }; + query?: { + /** + * Client + */ + client?: unknown; + }; + url: '/asset/{asset_id}'; +}; export type GetAssetAssetAssetIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetAssetAssetAssetIdGetError = - GetAssetAssetAssetIdGetErrors[keyof GetAssetAssetAssetIdGetErrors] +export type GetAssetAssetAssetIdGetError = GetAssetAssetAssetIdGetErrors[keyof GetAssetAssetAssetIdGetErrors]; export type GetAssetAssetAssetIdGetResponses = { - /** - * Successful Response - */ - 200: AssetResponse -} + /** + * Successful Response + */ + 200: AssetResponse; +}; -export type GetAssetAssetAssetIdGetResponse = - GetAssetAssetAssetIdGetResponses[keyof GetAssetAssetAssetIdGetResponses] +export type GetAssetAssetAssetIdGetResponse = GetAssetAssetAssetIdGetResponses[keyof GetAssetAssetAssetIdGetResponses]; export type UpdateAssetAssetAssetIdPatchData = { - body: UpdateAsset - path: { - /** - * Asset Id - */ - asset_id: number - } - query?: never - url: '/asset/{asset_id}' -} + body: UpdateAsset; + path: { + /** + * Asset Id + */ + asset_id: number; + }; + query?: never; + url: '/asset/{asset_id}'; +}; export type UpdateAssetAssetAssetIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateAssetAssetAssetIdPatchError = - UpdateAssetAssetAssetIdPatchErrors[keyof UpdateAssetAssetAssetIdPatchErrors] +export type UpdateAssetAssetAssetIdPatchError = UpdateAssetAssetAssetIdPatchErrors[keyof UpdateAssetAssetAssetIdPatchErrors]; export type UpdateAssetAssetAssetIdPatchResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type RemoveAssetAssetAssetIdRemoveDeleteData = { - body?: never - path: { - /** - * Asset Id - */ - asset_id: number - } - query?: { /** - * Client + * Successful Response */ - client?: unknown - } - url: '/asset/{asset_id}/remove' -} + 200: unknown; +}; + +export type RemoveAssetAssetAssetIdRemoveDeleteData = { + body?: never; + path: { + /** + * Asset Id + */ + asset_id: number; + }; + query?: { + /** + * Client + */ + client?: unknown; + }; + url: '/asset/{asset_id}/remove'; +}; export type RemoveAssetAssetAssetIdRemoveDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type RemoveAssetAssetAssetIdRemoveDeleteError = - RemoveAssetAssetAssetIdRemoveDeleteErrors[keyof RemoveAssetAssetAssetIdRemoveDeleteErrors] +export type RemoveAssetAssetAssetIdRemoveDeleteError = RemoveAssetAssetAssetIdRemoveDeleteErrors[keyof RemoveAssetAssetAssetIdRemoveDeleteErrors]; export type RemoveAssetAssetAssetIdRemoveDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type RemoveAssetAssetAssetIdRemoveDeleteResponse = - RemoveAssetAssetAssetIdRemoveDeleteResponses[keyof RemoveAssetAssetAssetIdRemoveDeleteResponses] +export type RemoveAssetAssetAssetIdRemoveDeleteResponse = RemoveAssetAssetAssetIdRemoveDeleteResponses[keyof RemoveAssetAssetAssetIdRemoveDeleteResponses]; export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetData = { - body?: never - path: { - /** - * Author Id - */ - author_id: number - } - query?: never - url: '/author/{author_id}/publications' -} + body?: never; + path: { + /** + * Author Id + */ + author_id: number; + }; + query?: never; + url: '/author/{author_id}/publications'; +}; export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetError = - GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors] +export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetError = GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetErrors]; export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses = { - /** - * Response Get Author Publications Author Author Id Publications Get - * Successful Response - */ - 200: Array -} + /** + * Response Get Author Publications Author Author Id Publications Get + * Successful Response + */ + 200: Array; +}; -export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = - GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses] +export type GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses[keyof GetAuthorPublicationsAuthorAuthorIdPublicationsGetResponses]; export type GetContactsContactGetData = { - body?: never - path?: never - query?: { - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Thing Id - */ - thing_id?: number | null - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/contact' -} + body?: never; + path?: never; + query?: { + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Thing Id + */ + thing_id?: number | null; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/contact'; +}; export type GetContactsContactGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetContactsContactGetError = - GetContactsContactGetErrors[keyof GetContactsContactGetErrors] +export type GetContactsContactGetError = GetContactsContactGetErrors[keyof GetContactsContactGetErrors]; export type GetContactsContactGetResponses = { - /** - * Successful Response - */ - 200: PageContactResponse -} + /** + * Successful Response + */ + 200: PageContactResponse; +}; -export type GetContactsContactGetResponse = - GetContactsContactGetResponses[keyof GetContactsContactGetResponses] +export type GetContactsContactGetResponse = GetContactsContactGetResponses[keyof GetContactsContactGetResponses]; export type CreateContactContactPostData = { - body: CreateContact - path?: never - query?: never - url: '/contact' -} + body: CreateContact; + path?: never; + query?: never; + url: '/contact'; +}; export type CreateContactContactPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateContactContactPostError = - CreateContactContactPostErrors[keyof CreateContactContactPostErrors] +export type CreateContactContactPostError = CreateContactContactPostErrors[keyof CreateContactContactPostErrors]; export type CreateContactContactPostResponses = { - /** - * Successful Response - */ - 201: ContactResponse -} + /** + * Successful Response + */ + 201: ContactResponse; +}; -export type CreateContactContactPostResponse = - CreateContactContactPostResponses[keyof CreateContactContactPostResponses] +export type CreateContactContactPostResponse = CreateContactContactPostResponses[keyof CreateContactContactPostResponses]; export type GetAddressesContactAddressGetData = { - body?: never - path?: never - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/contact/address' -} + body?: never; + path?: never; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/contact/address'; +}; export type GetAddressesContactAddressGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetAddressesContactAddressGetError = - GetAddressesContactAddressGetErrors[keyof GetAddressesContactAddressGetErrors] +export type GetAddressesContactAddressGetError = GetAddressesContactAddressGetErrors[keyof GetAddressesContactAddressGetErrors]; export type GetAddressesContactAddressGetResponses = { - /** - * Successful Response - */ - 200: PageAddressResponse -} + /** + * Successful Response + */ + 200: PageAddressResponse; +}; -export type GetAddressesContactAddressGetResponse = - GetAddressesContactAddressGetResponses[keyof GetAddressesContactAddressGetResponses] +export type GetAddressesContactAddressGetResponse = GetAddressesContactAddressGetResponses[keyof GetAddressesContactAddressGetResponses]; export type CreateAddressContactAddressPostData = { - body: CreateAddress - path?: never - query?: never - url: '/contact/address' -} + body: CreateAddress; + path?: never; + query?: never; + url: '/contact/address'; +}; export type CreateAddressContactAddressPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateAddressContactAddressPostError = - CreateAddressContactAddressPostErrors[keyof CreateAddressContactAddressPostErrors] +export type CreateAddressContactAddressPostError = CreateAddressContactAddressPostErrors[keyof CreateAddressContactAddressPostErrors]; export type CreateAddressContactAddressPostResponses = { - /** - * Successful Response - */ - 201: AddressResponse -} + /** + * Successful Response + */ + 201: AddressResponse; +}; -export type CreateAddressContactAddressPostResponse = - CreateAddressContactAddressPostResponses[keyof CreateAddressContactAddressPostResponses] +export type CreateAddressContactAddressPostResponse = CreateAddressContactAddressPostResponses[keyof CreateAddressContactAddressPostResponses]; export type GetEmailsContactEmailGetData = { - body?: never - path?: never - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/contact/email' -} + body?: never; + path?: never; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/contact/email'; +}; export type GetEmailsContactEmailGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetEmailsContactEmailGetError = - GetEmailsContactEmailGetErrors[keyof GetEmailsContactEmailGetErrors] +export type GetEmailsContactEmailGetError = GetEmailsContactEmailGetErrors[keyof GetEmailsContactEmailGetErrors]; export type GetEmailsContactEmailGetResponses = { - /** - * Successful Response - */ - 200: PageEmailResponse -} + /** + * Successful Response + */ + 200: PageEmailResponse; +}; -export type GetEmailsContactEmailGetResponse = - GetEmailsContactEmailGetResponses[keyof GetEmailsContactEmailGetResponses] +export type GetEmailsContactEmailGetResponse = GetEmailsContactEmailGetResponses[keyof GetEmailsContactEmailGetResponses]; export type CreateEmailContactEmailPostData = { - body: CreateEmail - path?: never - query?: never - url: '/contact/email' -} + body: CreateEmail; + path?: never; + query?: never; + url: '/contact/email'; +}; export type CreateEmailContactEmailPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateEmailContactEmailPostError = - CreateEmailContactEmailPostErrors[keyof CreateEmailContactEmailPostErrors] +export type CreateEmailContactEmailPostError = CreateEmailContactEmailPostErrors[keyof CreateEmailContactEmailPostErrors]; export type CreateEmailContactEmailPostResponses = { - /** - * Successful Response - */ - 201: EmailResponse -} + /** + * Successful Response + */ + 201: EmailResponse; +}; -export type CreateEmailContactEmailPostResponse = - CreateEmailContactEmailPostResponses[keyof CreateEmailContactEmailPostResponses] +export type CreateEmailContactEmailPostResponse = CreateEmailContactEmailPostResponses[keyof CreateEmailContactEmailPostResponses]; export type GetPhonesContactPhoneGetData = { - body?: never - path?: never - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/contact/phone' -} + body?: never; + path?: never; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/contact/phone'; +}; export type GetPhonesContactPhoneGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetPhonesContactPhoneGetError = - GetPhonesContactPhoneGetErrors[keyof GetPhonesContactPhoneGetErrors] +export type GetPhonesContactPhoneGetError = GetPhonesContactPhoneGetErrors[keyof GetPhonesContactPhoneGetErrors]; export type GetPhonesContactPhoneGetResponses = { - /** - * Successful Response - */ - 200: PagePhoneResponse -} + /** + * Successful Response + */ + 200: PagePhoneResponse; +}; -export type GetPhonesContactPhoneGetResponse = - GetPhonesContactPhoneGetResponses[keyof GetPhonesContactPhoneGetResponses] +export type GetPhonesContactPhoneGetResponse = GetPhonesContactPhoneGetResponses[keyof GetPhonesContactPhoneGetResponses]; export type CreatePhoneContactPhonePostData = { - body: CreatePhone - path?: never - query?: never - url: '/contact/phone' -} + body: CreatePhone; + path?: never; + query?: never; + url: '/contact/phone'; +}; export type CreatePhoneContactPhonePostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreatePhoneContactPhonePostError = - CreatePhoneContactPhonePostErrors[keyof CreatePhoneContactPhonePostErrors] +export type CreatePhoneContactPhonePostError = CreatePhoneContactPhonePostErrors[keyof CreatePhoneContactPhonePostErrors]; export type CreatePhoneContactPhonePostResponses = { - /** - * Successful Response - */ - 201: PhoneResponse -} + /** + * Successful Response + */ + 201: PhoneResponse; +}; -export type CreatePhoneContactPhonePostResponse = - CreatePhoneContactPhonePostResponses[keyof CreatePhoneContactPhonePostResponses] +export type CreatePhoneContactPhonePostResponse = CreatePhoneContactPhonePostResponses[keyof CreatePhoneContactPhonePostResponses]; export type DeleteContactEmailContactEmailEmailIdDeleteData = { - body?: never - path: { - /** - * Email Id - */ - email_id: number - } - query?: never - url: '/contact/email/{email_id}' -} + body?: never; + path: { + /** + * Email Id + */ + email_id: number; + }; + query?: never; + url: '/contact/email/{email_id}'; +}; export type DeleteContactEmailContactEmailEmailIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteContactEmailContactEmailEmailIdDeleteError = - DeleteContactEmailContactEmailEmailIdDeleteErrors[keyof DeleteContactEmailContactEmailEmailIdDeleteErrors] +export type DeleteContactEmailContactEmailEmailIdDeleteError = DeleteContactEmailContactEmailEmailIdDeleteErrors[keyof DeleteContactEmailContactEmailEmailIdDeleteErrors]; export type DeleteContactEmailContactEmailEmailIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type GetEmailByIdContactEmailEmailIdGetData = { - body?: never - path: { /** - * Email Id + * Successful Response */ - email_id: number - } - query?: never - url: '/contact/email/{email_id}' -} + 200: unknown; +}; + +export type GetEmailByIdContactEmailEmailIdGetData = { + body?: never; + path: { + /** + * Email Id + */ + email_id: number; + }; + query?: never; + url: '/contact/email/{email_id}'; +}; export type GetEmailByIdContactEmailEmailIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetEmailByIdContactEmailEmailIdGetError = - GetEmailByIdContactEmailEmailIdGetErrors[keyof GetEmailByIdContactEmailEmailIdGetErrors] +export type GetEmailByIdContactEmailEmailIdGetError = GetEmailByIdContactEmailEmailIdGetErrors[keyof GetEmailByIdContactEmailEmailIdGetErrors]; export type GetEmailByIdContactEmailEmailIdGetResponses = { - /** - * Successful Response - */ - 200: EmailResponse -} + /** + * Successful Response + */ + 200: EmailResponse; +}; -export type GetEmailByIdContactEmailEmailIdGetResponse = - GetEmailByIdContactEmailEmailIdGetResponses[keyof GetEmailByIdContactEmailEmailIdGetResponses] +export type GetEmailByIdContactEmailEmailIdGetResponse = GetEmailByIdContactEmailEmailIdGetResponses[keyof GetEmailByIdContactEmailEmailIdGetResponses]; export type UpdateContactEmailContactEmailEmailIdPatchData = { - body: UpdateEmail - path: { - /** - * Email Id - */ - email_id: number - } - query?: never - url: '/contact/email/{email_id}' -} + body: UpdateEmail; + path: { + /** + * Email Id + */ + email_id: number; + }; + query?: never; + url: '/contact/email/{email_id}'; +}; export type UpdateContactEmailContactEmailEmailIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateContactEmailContactEmailEmailIdPatchError = - UpdateContactEmailContactEmailEmailIdPatchErrors[keyof UpdateContactEmailContactEmailEmailIdPatchErrors] +export type UpdateContactEmailContactEmailEmailIdPatchError = UpdateContactEmailContactEmailEmailIdPatchErrors[keyof UpdateContactEmailContactEmailEmailIdPatchErrors]; export type UpdateContactEmailContactEmailEmailIdPatchResponses = { - /** - * Successful Response - */ - 200: EmailResponse -} + /** + * Successful Response + */ + 200: EmailResponse; +}; -export type UpdateContactEmailContactEmailEmailIdPatchResponse = - UpdateContactEmailContactEmailEmailIdPatchResponses[keyof UpdateContactEmailContactEmailEmailIdPatchResponses] +export type UpdateContactEmailContactEmailEmailIdPatchResponse = UpdateContactEmailContactEmailEmailIdPatchResponses[keyof UpdateContactEmailContactEmailEmailIdPatchResponses]; export type DeleteContactPhoneContactPhonePhoneIdDeleteData = { - body?: never - path: { - /** - * Phone Id - */ - phone_id: number - } - query?: never - url: '/contact/phone/{phone_id}' -} + body?: never; + path: { + /** + * Phone Id + */ + phone_id: number; + }; + query?: never; + url: '/contact/phone/{phone_id}'; +}; export type DeleteContactPhoneContactPhonePhoneIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteContactPhoneContactPhonePhoneIdDeleteError = - DeleteContactPhoneContactPhonePhoneIdDeleteErrors[keyof DeleteContactPhoneContactPhonePhoneIdDeleteErrors] +export type DeleteContactPhoneContactPhonePhoneIdDeleteError = DeleteContactPhoneContactPhonePhoneIdDeleteErrors[keyof DeleteContactPhoneContactPhonePhoneIdDeleteErrors]; export type DeleteContactPhoneContactPhonePhoneIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type GetPhoneByIdContactPhonePhoneIdGetData = { - body?: never - path: { /** - * Phone Id + * Successful Response */ - phone_id: number - } - query?: never - url: '/contact/phone/{phone_id}' -} + 200: unknown; +}; + +export type GetPhoneByIdContactPhonePhoneIdGetData = { + body?: never; + path: { + /** + * Phone Id + */ + phone_id: number; + }; + query?: never; + url: '/contact/phone/{phone_id}'; +}; export type GetPhoneByIdContactPhonePhoneIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetPhoneByIdContactPhonePhoneIdGetError = - GetPhoneByIdContactPhonePhoneIdGetErrors[keyof GetPhoneByIdContactPhonePhoneIdGetErrors] +export type GetPhoneByIdContactPhonePhoneIdGetError = GetPhoneByIdContactPhonePhoneIdGetErrors[keyof GetPhoneByIdContactPhonePhoneIdGetErrors]; export type GetPhoneByIdContactPhonePhoneIdGetResponses = { - /** - * Successful Response - */ - 200: PhoneResponse -} + /** + * Successful Response + */ + 200: PhoneResponse; +}; -export type GetPhoneByIdContactPhonePhoneIdGetResponse = - GetPhoneByIdContactPhonePhoneIdGetResponses[keyof GetPhoneByIdContactPhonePhoneIdGetResponses] +export type GetPhoneByIdContactPhonePhoneIdGetResponse = GetPhoneByIdContactPhonePhoneIdGetResponses[keyof GetPhoneByIdContactPhonePhoneIdGetResponses]; export type UpdateContactPhoneContactPhonePhoneIdPatchData = { - body: UpdatePhone - path: { - /** - * Phone Id - */ - phone_id: number - } - query?: never - url: '/contact/phone/{phone_id}' -} + body: UpdatePhone; + path: { + /** + * Phone Id + */ + phone_id: number; + }; + query?: never; + url: '/contact/phone/{phone_id}'; +}; export type UpdateContactPhoneContactPhonePhoneIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateContactPhoneContactPhonePhoneIdPatchError = - UpdateContactPhoneContactPhonePhoneIdPatchErrors[keyof UpdateContactPhoneContactPhonePhoneIdPatchErrors] +export type UpdateContactPhoneContactPhonePhoneIdPatchError = UpdateContactPhoneContactPhonePhoneIdPatchErrors[keyof UpdateContactPhoneContactPhonePhoneIdPatchErrors]; export type UpdateContactPhoneContactPhonePhoneIdPatchResponses = { - /** - * Successful Response - */ - 200: PhoneResponse -} + /** + * Successful Response + */ + 200: PhoneResponse; +}; -export type UpdateContactPhoneContactPhonePhoneIdPatchResponse = - UpdateContactPhoneContactPhonePhoneIdPatchResponses[keyof UpdateContactPhoneContactPhonePhoneIdPatchResponses] +export type UpdateContactPhoneContactPhonePhoneIdPatchResponse = UpdateContactPhoneContactPhonePhoneIdPatchResponses[keyof UpdateContactPhoneContactPhonePhoneIdPatchResponses]; export type DeleteContactAddressContactAddressAddressIdDeleteData = { - body?: never - path: { - /** - * Address Id - */ - address_id: number - } - query?: never - url: '/contact/address/{address_id}' -} + body?: never; + path: { + /** + * Address Id + */ + address_id: number; + }; + query?: never; + url: '/contact/address/{address_id}'; +}; export type DeleteContactAddressContactAddressAddressIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteContactAddressContactAddressAddressIdDeleteError = - DeleteContactAddressContactAddressAddressIdDeleteErrors[keyof DeleteContactAddressContactAddressAddressIdDeleteErrors] +export type DeleteContactAddressContactAddressAddressIdDeleteError = DeleteContactAddressContactAddressAddressIdDeleteErrors[keyof DeleteContactAddressContactAddressAddressIdDeleteErrors]; export type DeleteContactAddressContactAddressAddressIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type GetAddressByIdContactAddressAddressIdGetData = { - body?: never - path: { /** - * Address Id + * Successful Response */ - address_id: number - } - query?: never - url: '/contact/address/{address_id}' -} + 200: unknown; +}; + +export type GetAddressByIdContactAddressAddressIdGetData = { + body?: never; + path: { + /** + * Address Id + */ + address_id: number; + }; + query?: never; + url: '/contact/address/{address_id}'; +}; export type GetAddressByIdContactAddressAddressIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetAddressByIdContactAddressAddressIdGetError = - GetAddressByIdContactAddressAddressIdGetErrors[keyof GetAddressByIdContactAddressAddressIdGetErrors] +export type GetAddressByIdContactAddressAddressIdGetError = GetAddressByIdContactAddressAddressIdGetErrors[keyof GetAddressByIdContactAddressAddressIdGetErrors]; export type GetAddressByIdContactAddressAddressIdGetResponses = { - /** - * Successful Response - */ - 200: AddressResponse -} + /** + * Successful Response + */ + 200: AddressResponse; +}; -export type GetAddressByIdContactAddressAddressIdGetResponse = - GetAddressByIdContactAddressAddressIdGetResponses[keyof GetAddressByIdContactAddressAddressIdGetResponses] +export type GetAddressByIdContactAddressAddressIdGetResponse = GetAddressByIdContactAddressAddressIdGetResponses[keyof GetAddressByIdContactAddressAddressIdGetResponses]; export type UpdateContactAddressContactAddressAddressIdPatchData = { - body: UpdateAddress - path: { - /** - * Address Id - */ - address_id: number - } - query?: never - url: '/contact/address/{address_id}' -} + body: UpdateAddress; + path: { + /** + * Address Id + */ + address_id: number; + }; + query?: never; + url: '/contact/address/{address_id}'; +}; export type UpdateContactAddressContactAddressAddressIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateContactAddressContactAddressAddressIdPatchError = - UpdateContactAddressContactAddressAddressIdPatchErrors[keyof UpdateContactAddressContactAddressAddressIdPatchErrors] +export type UpdateContactAddressContactAddressAddressIdPatchError = UpdateContactAddressContactAddressAddressIdPatchErrors[keyof UpdateContactAddressContactAddressAddressIdPatchErrors]; export type UpdateContactAddressContactAddressAddressIdPatchResponses = { - /** - * Successful Response - */ - 200: AddressResponse -} + /** + * Successful Response + */ + 200: AddressResponse; +}; -export type UpdateContactAddressContactAddressAddressIdPatchResponse = - UpdateContactAddressContactAddressAddressIdPatchResponses[keyof UpdateContactAddressContactAddressAddressIdPatchResponses] +export type UpdateContactAddressContactAddressAddressIdPatchResponse = UpdateContactAddressContactAddressAddressIdPatchResponses[keyof UpdateContactAddressContactAddressAddressIdPatchResponses]; export type DeleteContactContactContactIdDeleteData = { - body?: never - path: { - /** - * Contact Id - */ - contact_id: number - } - query?: never - url: '/contact/{contact_id}' -} + body?: never; + path: { + /** + * Contact Id + */ + contact_id: number; + }; + query?: never; + url: '/contact/{contact_id}'; +}; export type DeleteContactContactContactIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteContactContactContactIdDeleteError = - DeleteContactContactContactIdDeleteErrors[keyof DeleteContactContactContactIdDeleteErrors] +export type DeleteContactContactContactIdDeleteError = DeleteContactContactContactIdDeleteErrors[keyof DeleteContactContactContactIdDeleteErrors]; export type DeleteContactContactContactIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type GetContactByIdContactContactIdGetData = { - body?: never - path: { /** - * Contact Id + * Successful Response */ - contact_id: number - } - query?: never - url: '/contact/{contact_id}' -} + 200: unknown; +}; + +export type GetContactByIdContactContactIdGetData = { + body?: never; + path: { + /** + * Contact Id + */ + contact_id: number; + }; + query?: never; + url: '/contact/{contact_id}'; +}; export type GetContactByIdContactContactIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetContactByIdContactContactIdGetError = - GetContactByIdContactContactIdGetErrors[keyof GetContactByIdContactContactIdGetErrors] +export type GetContactByIdContactContactIdGetError = GetContactByIdContactContactIdGetErrors[keyof GetContactByIdContactContactIdGetErrors]; export type GetContactByIdContactContactIdGetResponses = { - /** - * Successful Response - */ - 200: ContactResponse -} + /** + * Successful Response + */ + 200: ContactResponse; +}; -export type GetContactByIdContactContactIdGetResponse = - GetContactByIdContactContactIdGetResponses[keyof GetContactByIdContactContactIdGetResponses] +export type GetContactByIdContactContactIdGetResponse = GetContactByIdContactContactIdGetResponses[keyof GetContactByIdContactContactIdGetResponses]; export type UpdateContactContactContactIdPatchData = { - body: UpdateContact - path: { - /** - * Contact Id - */ - contact_id: number - } - query?: never - url: '/contact/{contact_id}' -} + body: UpdateContact; + path: { + /** + * Contact Id + */ + contact_id: number; + }; + query?: never; + url: '/contact/{contact_id}'; +}; export type UpdateContactContactContactIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateContactContactContactIdPatchError = - UpdateContactContactContactIdPatchErrors[keyof UpdateContactContactContactIdPatchErrors] +export type UpdateContactContactContactIdPatchError = UpdateContactContactContactIdPatchErrors[keyof UpdateContactContactContactIdPatchErrors]; export type UpdateContactContactContactIdPatchResponses = { - /** - * Successful Response - */ - 200: ContactResponse -} + /** + * Successful Response + */ + 200: ContactResponse; +}; -export type UpdateContactContactContactIdPatchResponse = - UpdateContactContactContactIdPatchResponses[keyof UpdateContactContactContactIdPatchResponses] +export type UpdateContactContactContactIdPatchResponse = UpdateContactContactContactIdPatchResponses[keyof UpdateContactContactContactIdPatchResponses]; export type GetContactEmailsContactContactIdEmailGetData = { - body?: never - path: { - /** - * Contact Id - */ - contact_id: number - } - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/contact/{contact_id}/email' -} + body?: never; + path: { + /** + * Contact Id + */ + contact_id: number; + }; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/contact/{contact_id}/email'; +}; export type GetContactEmailsContactContactIdEmailGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetContactEmailsContactContactIdEmailGetError = - GetContactEmailsContactContactIdEmailGetErrors[keyof GetContactEmailsContactContactIdEmailGetErrors] +export type GetContactEmailsContactContactIdEmailGetError = GetContactEmailsContactContactIdEmailGetErrors[keyof GetContactEmailsContactContactIdEmailGetErrors]; export type GetContactEmailsContactContactIdEmailGetResponses = { - /** - * Successful Response - */ - 200: PageEmailResponse -} + /** + * Successful Response + */ + 200: PageEmailResponse; +}; -export type GetContactEmailsContactContactIdEmailGetResponse = - GetContactEmailsContactContactIdEmailGetResponses[keyof GetContactEmailsContactContactIdEmailGetResponses] +export type GetContactEmailsContactContactIdEmailGetResponse = GetContactEmailsContactContactIdEmailGetResponses[keyof GetContactEmailsContactContactIdEmailGetResponses]; export type GetContactPhonesContactContactIdPhoneGetData = { - body?: never - path: { - /** - * Contact Id - */ - contact_id: number - } - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/contact/{contact_id}/phone' -} + body?: never; + path: { + /** + * Contact Id + */ + contact_id: number; + }; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/contact/{contact_id}/phone'; +}; export type GetContactPhonesContactContactIdPhoneGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetContactPhonesContactContactIdPhoneGetError = - GetContactPhonesContactContactIdPhoneGetErrors[keyof GetContactPhonesContactContactIdPhoneGetErrors] +export type GetContactPhonesContactContactIdPhoneGetError = GetContactPhonesContactContactIdPhoneGetErrors[keyof GetContactPhonesContactContactIdPhoneGetErrors]; export type GetContactPhonesContactContactIdPhoneGetResponses = { - /** - * Successful Response - */ - 200: PagePhoneResponse -} + /** + * Successful Response + */ + 200: PagePhoneResponse; +}; -export type GetContactPhonesContactContactIdPhoneGetResponse = - GetContactPhonesContactContactIdPhoneGetResponses[keyof GetContactPhonesContactContactIdPhoneGetResponses] +export type GetContactPhonesContactContactIdPhoneGetResponse = GetContactPhonesContactContactIdPhoneGetResponses[keyof GetContactPhonesContactContactIdPhoneGetResponses]; export type GetContactAddressesContactContactIdAddressGetData = { - body?: never - path: { - /** - * Contact Id - */ - contact_id: number - } - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/contact/{contact_id}/address' -} + body?: never; + path: { + /** + * Contact Id + */ + contact_id: number; + }; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/contact/{contact_id}/address'; +}; export type GetContactAddressesContactContactIdAddressGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetContactAddressesContactContactIdAddressGetError = - GetContactAddressesContactContactIdAddressGetErrors[keyof GetContactAddressesContactContactIdAddressGetErrors] +export type GetContactAddressesContactContactIdAddressGetError = GetContactAddressesContactContactIdAddressGetErrors[keyof GetContactAddressesContactContactIdAddressGetErrors]; export type GetContactAddressesContactContactIdAddressGetResponses = { - /** - * Successful Response - */ - 200: PageAddressResponse -} + /** + * Successful Response + */ + 200: PageAddressResponse; +}; -export type GetContactAddressesContactContactIdAddressGetResponse = - GetContactAddressesContactContactIdAddressGetResponses[keyof GetContactAddressesContactContactIdAddressGetResponses] +export type GetContactAddressesContactContactIdAddressGetResponse = GetContactAddressesContactContactIdAddressGetResponses[keyof GetContactAddressesContactContactIdAddressGetResponses]; export type GetGeospatialGeospatialGetData = { - body?: never - path?: never - query?: { - /** - * thing_type - */ - thing_type?: Array - /** - * group - */ - group?: string | number - /** - * format - * Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile. - */ - format?: string - } - url: '/geospatial' -} + body?: never; + path?: never; + query?: { + /** + * thing_type + */ + thing_type?: Array; + /** + * group + */ + group?: string | number; + /** + * format + * Format of the response. 'geojson' for GeoJSON FeatureCollection, 'shapefile' for a shapefile. + */ + format?: string; + }; + url: '/geospatial'; +}; export type GetGeospatialGeospatialGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetGeospatialGeospatialGetError = - GetGeospatialGeospatialGetErrors[keyof GetGeospatialGeospatialGetErrors] +export type GetGeospatialGeospatialGetError = GetGeospatialGeospatialGetErrors[keyof GetGeospatialGeospatialGetErrors]; export type GetGeospatialGeospatialGetResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type GetProjectAreaGeospatialProjectAreaGroupIdGetData = { - body?: never - path: { /** - * Group Id + * Successful Response */ - group_id: number - } - query?: never - url: '/geospatial/project-area/{group_id}' -} + 200: unknown; +}; + +export type GetProjectAreaGeospatialProjectAreaGroupIdGetData = { + body?: never; + path: { + /** + * Group Id + */ + group_id: number; + }; + query?: never; + url: '/geospatial/project-area/{group_id}'; +}; export type GetProjectAreaGeospatialProjectAreaGroupIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetProjectAreaGeospatialProjectAreaGroupIdGetError = - GetProjectAreaGeospatialProjectAreaGroupIdGetErrors[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetErrors] +export type GetProjectAreaGeospatialProjectAreaGroupIdGetError = GetProjectAreaGeospatialProjectAreaGroupIdGetErrors[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetErrors]; export type GetProjectAreaGeospatialProjectAreaGroupIdGetResponses = { - /** - * Successful Response - */ - 200: FeatureCollectionResponse -} + /** + * Successful Response + */ + 200: FeatureCollectionResponse; +}; -export type GetProjectAreaGeospatialProjectAreaGroupIdGetResponse = - GetProjectAreaGeospatialProjectAreaGroupIdGetResponses[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetResponses] +export type GetProjectAreaGeospatialProjectAreaGroupIdGetResponse = GetProjectAreaGeospatialProjectAreaGroupIdGetResponses[keyof GetProjectAreaGeospatialProjectAreaGroupIdGetResponses]; export type GetGroupsGroupGetData = { - body?: never - path?: never - query?: { - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/group' -} + body?: never; + path?: never; + query?: { + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/group'; +}; export type GetGroupsGroupGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetGroupsGroupGetError = - GetGroupsGroupGetErrors[keyof GetGroupsGroupGetErrors] +export type GetGroupsGroupGetError = GetGroupsGroupGetErrors[keyof GetGroupsGroupGetErrors]; export type GetGroupsGroupGetResponses = { - /** - * Successful Response - */ - 200: PageGroupResponse -} + /** + * Successful Response + */ + 200: PageGroupResponse; +}; -export type GetGroupsGroupGetResponse = - GetGroupsGroupGetResponses[keyof GetGroupsGroupGetResponses] +export type GetGroupsGroupGetResponse = GetGroupsGroupGetResponses[keyof GetGroupsGroupGetResponses]; export type CreateGroupGroupPostData = { - body: CreateGroup - path?: never - query?: never - url: '/group' -} + body: CreateGroup; + path?: never; + query?: never; + url: '/group'; +}; export type CreateGroupGroupPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateGroupGroupPostError = - CreateGroupGroupPostErrors[keyof CreateGroupGroupPostErrors] +export type CreateGroupGroupPostError = CreateGroupGroupPostErrors[keyof CreateGroupGroupPostErrors]; export type CreateGroupGroupPostResponses = { - /** - * Successful Response - */ - 201: GroupResponse -} + /** + * Successful Response + */ + 201: GroupResponse; +}; -export type CreateGroupGroupPostResponse = - CreateGroupGroupPostResponses[keyof CreateGroupGroupPostResponses] +export type CreateGroupGroupPostResponse = CreateGroupGroupPostResponses[keyof CreateGroupGroupPostResponses]; export type DeleteGroupGroupGroupIdDeleteData = { - body?: never - path: { - /** - * Group Id - */ - group_id: number - } - query?: never - url: '/group/{group_id}' -} + body?: never; + path: { + /** + * Group Id + */ + group_id: number; + }; + query?: never; + url: '/group/{group_id}'; +}; export type DeleteGroupGroupGroupIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteGroupGroupGroupIdDeleteError = - DeleteGroupGroupGroupIdDeleteErrors[keyof DeleteGroupGroupGroupIdDeleteErrors] +export type DeleteGroupGroupGroupIdDeleteError = DeleteGroupGroupGroupIdDeleteErrors[keyof DeleteGroupGroupGroupIdDeleteErrors]; export type DeleteGroupGroupGroupIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteGroupGroupGroupIdDeleteResponse = - DeleteGroupGroupGroupIdDeleteResponses[keyof DeleteGroupGroupGroupIdDeleteResponses] +export type DeleteGroupGroupGroupIdDeleteResponse = DeleteGroupGroupGroupIdDeleteResponses[keyof DeleteGroupGroupGroupIdDeleteResponses]; export type GetGroupByIdGroupGroupIdGetData = { - body?: never - path: { - /** - * Group Id - */ - group_id: number - } - query?: never - url: '/group/{group_id}' -} + body?: never; + path: { + /** + * Group Id + */ + group_id: number; + }; + query?: never; + url: '/group/{group_id}'; +}; export type GetGroupByIdGroupGroupIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetGroupByIdGroupGroupIdGetError = - GetGroupByIdGroupGroupIdGetErrors[keyof GetGroupByIdGroupGroupIdGetErrors] +export type GetGroupByIdGroupGroupIdGetError = GetGroupByIdGroupGroupIdGetErrors[keyof GetGroupByIdGroupGroupIdGetErrors]; export type GetGroupByIdGroupGroupIdGetResponses = { - /** - * Successful Response - */ - 200: GroupResponse -} + /** + * Successful Response + */ + 200: GroupResponse; +}; -export type GetGroupByIdGroupGroupIdGetResponse = - GetGroupByIdGroupGroupIdGetResponses[keyof GetGroupByIdGroupGroupIdGetResponses] +export type GetGroupByIdGroupGroupIdGetResponse = GetGroupByIdGroupGroupIdGetResponses[keyof GetGroupByIdGroupGroupIdGetResponses]; export type UpdateGroupGroupGroupIdPatchData = { - body: UpdateGroup - path: { - /** - * Group Id - */ - group_id: number - } - query?: never - url: '/group/{group_id}' -} + body: UpdateGroup; + path: { + /** + * Group Id + */ + group_id: number; + }; + query?: never; + url: '/group/{group_id}'; +}; export type UpdateGroupGroupGroupIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateGroupGroupGroupIdPatchError = - UpdateGroupGroupGroupIdPatchErrors[keyof UpdateGroupGroupGroupIdPatchErrors] +export type UpdateGroupGroupGroupIdPatchError = UpdateGroupGroupGroupIdPatchErrors[keyof UpdateGroupGroupGroupIdPatchErrors]; export type UpdateGroupGroupGroupIdPatchResponses = { - /** - * Successful Response - */ - 200: GroupResponse -} + /** + * Successful Response + */ + 200: GroupResponse; +}; -export type UpdateGroupGroupGroupIdPatchResponse = - UpdateGroupGroupGroupIdPatchResponses[keyof UpdateGroupGroupGroupIdPatchResponses] +export type UpdateGroupGroupGroupIdPatchResponse = UpdateGroupGroupGroupIdPatchResponses[keyof UpdateGroupGroupGroupIdPatchResponses]; export type GetLexiconCategoriesLexiconCategoryGetData = { - body?: never - path?: never - query?: { - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/lexicon/category' -} + body?: never; + path?: never; + query?: { + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/lexicon/category'; +}; export type GetLexiconCategoriesLexiconCategoryGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetLexiconCategoriesLexiconCategoryGetError = - GetLexiconCategoriesLexiconCategoryGetErrors[keyof GetLexiconCategoriesLexiconCategoryGetErrors] +export type GetLexiconCategoriesLexiconCategoryGetError = GetLexiconCategoriesLexiconCategoryGetErrors[keyof GetLexiconCategoriesLexiconCategoryGetErrors]; export type GetLexiconCategoriesLexiconCategoryGetResponses = { - /** - * Successful Response - */ - 200: PageLexiconCategoryResponse -} + /** + * Successful Response + */ + 200: PageLexiconCategoryResponse; +}; -export type GetLexiconCategoriesLexiconCategoryGetResponse = - GetLexiconCategoriesLexiconCategoryGetResponses[keyof GetLexiconCategoriesLexiconCategoryGetResponses] +export type GetLexiconCategoriesLexiconCategoryGetResponse = GetLexiconCategoriesLexiconCategoryGetResponses[keyof GetLexiconCategoriesLexiconCategoryGetResponses]; export type AddCategoryLexiconCategoryPostData = { - body: CreateLexiconCategory - path?: never - query?: never - url: '/lexicon/category' -} + body: CreateLexiconCategory; + path?: never; + query?: never; + url: '/lexicon/category'; +}; export type AddCategoryLexiconCategoryPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type AddCategoryLexiconCategoryPostError = - AddCategoryLexiconCategoryPostErrors[keyof AddCategoryLexiconCategoryPostErrors] +export type AddCategoryLexiconCategoryPostError = AddCategoryLexiconCategoryPostErrors[keyof AddCategoryLexiconCategoryPostErrors]; export type AddCategoryLexiconCategoryPostResponses = { - /** - * Successful Response - */ - 201: LexiconCategoryResponse -} + /** + * Successful Response + */ + 201: LexiconCategoryResponse; +}; -export type AddCategoryLexiconCategoryPostResponse = - AddCategoryLexiconCategoryPostResponses[keyof AddCategoryLexiconCategoryPostResponses] +export type AddCategoryLexiconCategoryPostResponse = AddCategoryLexiconCategoryPostResponses[keyof AddCategoryLexiconCategoryPostResponses]; export type GetLexiconTermsLexiconTermGetData = { - body?: never - path?: never - query?: { - /** - * Category - */ - category?: string | null - /** - * Term - */ - term?: string | null - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/lexicon/term' -} + body?: never; + path?: never; + query?: { + /** + * Category + */ + category?: string | null; + /** + * Term + */ + term?: string | null; + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/lexicon/term'; +}; export type GetLexiconTermsLexiconTermGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetLexiconTermsLexiconTermGetError = - GetLexiconTermsLexiconTermGetErrors[keyof GetLexiconTermsLexiconTermGetErrors] +export type GetLexiconTermsLexiconTermGetError = GetLexiconTermsLexiconTermGetErrors[keyof GetLexiconTermsLexiconTermGetErrors]; export type GetLexiconTermsLexiconTermGetResponses = { - /** - * Successful Response - */ - 200: PageLexiconTermResponse -} + /** + * Successful Response + */ + 200: PageLexiconTermResponse; +}; -export type GetLexiconTermsLexiconTermGetResponse = - GetLexiconTermsLexiconTermGetResponses[keyof GetLexiconTermsLexiconTermGetResponses] +export type GetLexiconTermsLexiconTermGetResponse = GetLexiconTermsLexiconTermGetResponses[keyof GetLexiconTermsLexiconTermGetResponses]; export type AddTermLexiconTermPostData = { - body: CreateLexiconTerm - path?: never - query?: never - url: '/lexicon/term' -} + body: CreateLexiconTerm; + path?: never; + query?: never; + url: '/lexicon/term'; +}; export type AddTermLexiconTermPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type AddTermLexiconTermPostError = - AddTermLexiconTermPostErrors[keyof AddTermLexiconTermPostErrors] +export type AddTermLexiconTermPostError = AddTermLexiconTermPostErrors[keyof AddTermLexiconTermPostErrors]; export type AddTermLexiconTermPostResponses = { - /** - * Successful Response - */ - 201: LexiconTermResponse -} + /** + * Successful Response + */ + 201: LexiconTermResponse; +}; -export type AddTermLexiconTermPostResponse = - AddTermLexiconTermPostResponses[keyof AddTermLexiconTermPostResponses] +export type AddTermLexiconTermPostResponse = AddTermLexiconTermPostResponses[keyof AddTermLexiconTermPostResponses]; export type GetLexiconTriplesLexiconTripleGetData = { - body?: never - path?: never - query?: { - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/lexicon/triple' -} + body?: never; + path?: never; + query?: { + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/lexicon/triple'; +}; export type GetLexiconTriplesLexiconTripleGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetLexiconTriplesLexiconTripleGetError = - GetLexiconTriplesLexiconTripleGetErrors[keyof GetLexiconTriplesLexiconTripleGetErrors] +export type GetLexiconTriplesLexiconTripleGetError = GetLexiconTriplesLexiconTripleGetErrors[keyof GetLexiconTriplesLexiconTripleGetErrors]; export type GetLexiconTriplesLexiconTripleGetResponses = { - /** - * Successful Response - */ - 200: PageLexiconTripleResponse -} + /** + * Successful Response + */ + 200: PageLexiconTripleResponse; +}; -export type GetLexiconTriplesLexiconTripleGetResponse = - GetLexiconTriplesLexiconTripleGetResponses[keyof GetLexiconTriplesLexiconTripleGetResponses] +export type GetLexiconTriplesLexiconTripleGetResponse = GetLexiconTriplesLexiconTripleGetResponses[keyof GetLexiconTriplesLexiconTripleGetResponses]; export type AddTripleLexiconTriplePostData = { - body: CreateLexiconTriple - path?: never - query?: never - url: '/lexicon/triple' -} + body: CreateLexiconTriple; + path?: never; + query?: never; + url: '/lexicon/triple'; +}; export type AddTripleLexiconTriplePostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type AddTripleLexiconTriplePostError = - AddTripleLexiconTriplePostErrors[keyof AddTripleLexiconTriplePostErrors] +export type AddTripleLexiconTriplePostError = AddTripleLexiconTriplePostErrors[keyof AddTripleLexiconTriplePostErrors]; export type AddTripleLexiconTriplePostResponses = { - /** - * Successful Response - */ - 201: LexiconTripleResponse -} + /** + * Successful Response + */ + 201: LexiconTripleResponse; +}; -export type AddTripleLexiconTriplePostResponse = - AddTripleLexiconTriplePostResponses[keyof AddTripleLexiconTriplePostResponses] +export type AddTripleLexiconTriplePostResponse = AddTripleLexiconTriplePostResponses[keyof AddTripleLexiconTriplePostResponses]; export type DeleteLexiconTermLexiconTermTermIdDeleteData = { - body?: never - path: { - /** - * Term Id - */ - term_id: number - } - query?: never - url: '/lexicon/term/{term_id}' -} + body?: never; + path: { + /** + * Term Id + */ + term_id: number; + }; + query?: never; + url: '/lexicon/term/{term_id}'; +}; export type DeleteLexiconTermLexiconTermTermIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteLexiconTermLexiconTermTermIdDeleteError = - DeleteLexiconTermLexiconTermTermIdDeleteErrors[keyof DeleteLexiconTermLexiconTermTermIdDeleteErrors] +export type DeleteLexiconTermLexiconTermTermIdDeleteError = DeleteLexiconTermLexiconTermTermIdDeleteErrors[keyof DeleteLexiconTermLexiconTermTermIdDeleteErrors]; export type DeleteLexiconTermLexiconTermTermIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteLexiconTermLexiconTermTermIdDeleteResponse = - DeleteLexiconTermLexiconTermTermIdDeleteResponses[keyof DeleteLexiconTermLexiconTermTermIdDeleteResponses] +export type DeleteLexiconTermLexiconTermTermIdDeleteResponse = DeleteLexiconTermLexiconTermTermIdDeleteResponses[keyof DeleteLexiconTermLexiconTermTermIdDeleteResponses]; export type GetLexiconTermLexiconTermTermIdGetData = { - body?: never - path: { - /** - * Term Id - */ - term_id: number - } - query?: never - url: '/lexicon/term/{term_id}' -} + body?: never; + path: { + /** + * Term Id + */ + term_id: number; + }; + query?: never; + url: '/lexicon/term/{term_id}'; +}; export type GetLexiconTermLexiconTermTermIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetLexiconTermLexiconTermTermIdGetError = - GetLexiconTermLexiconTermTermIdGetErrors[keyof GetLexiconTermLexiconTermTermIdGetErrors] +export type GetLexiconTermLexiconTermTermIdGetError = GetLexiconTermLexiconTermTermIdGetErrors[keyof GetLexiconTermLexiconTermTermIdGetErrors]; export type GetLexiconTermLexiconTermTermIdGetResponses = { - /** - * Successful Response - */ - 200: LexiconTermResponse -} + /** + * Successful Response + */ + 200: LexiconTermResponse; +}; -export type GetLexiconTermLexiconTermTermIdGetResponse = - GetLexiconTermLexiconTermTermIdGetResponses[keyof GetLexiconTermLexiconTermTermIdGetResponses] +export type GetLexiconTermLexiconTermTermIdGetResponse = GetLexiconTermLexiconTermTermIdGetResponses[keyof GetLexiconTermLexiconTermTermIdGetResponses]; export type UpdateLexiconTermLexiconTermTermIdPatchData = { - body: UpdateLexiconTerm - path: { - /** - * Term Id - */ - term_id: number - } - query?: never - url: '/lexicon/term/{term_id}' -} + body: UpdateLexiconTerm; + path: { + /** + * Term Id + */ + term_id: number; + }; + query?: never; + url: '/lexicon/term/{term_id}'; +}; export type UpdateLexiconTermLexiconTermTermIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateLexiconTermLexiconTermTermIdPatchError = - UpdateLexiconTermLexiconTermTermIdPatchErrors[keyof UpdateLexiconTermLexiconTermTermIdPatchErrors] +export type UpdateLexiconTermLexiconTermTermIdPatchError = UpdateLexiconTermLexiconTermTermIdPatchErrors[keyof UpdateLexiconTermLexiconTermTermIdPatchErrors]; export type UpdateLexiconTermLexiconTermTermIdPatchResponses = { - /** - * Successful Response - */ - 200: LexiconTermResponse -} + /** + * Successful Response + */ + 200: LexiconTermResponse; +}; -export type UpdateLexiconTermLexiconTermTermIdPatchResponse = - UpdateLexiconTermLexiconTermTermIdPatchResponses[keyof UpdateLexiconTermLexiconTermTermIdPatchResponses] +export type UpdateLexiconTermLexiconTermTermIdPatchResponse = UpdateLexiconTermLexiconTermTermIdPatchResponses[keyof UpdateLexiconTermLexiconTermTermIdPatchResponses]; export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteData = { - body?: never - path: { - /** - * Category Id - */ - category_id: number - } - query?: never - url: '/lexicon/category/{category_id}' -} + body?: never; + path: { + /** + * Category Id + */ + category_id: number; + }; + query?: never; + url: '/lexicon/category/{category_id}'; +}; export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteError = - DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors] +export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteError = DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteErrors]; export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = - DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses] +export type DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses[keyof DeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponses]; export type GetLexiconCategoryLexiconCategoryCategoryIdGetData = { - body?: never - path: { - /** - * Category Id - */ - category_id: number - } - query?: never - url: '/lexicon/category/{category_id}' -} + body?: never; + path: { + /** + * Category Id + */ + category_id: number; + }; + query?: never; + url: '/lexicon/category/{category_id}'; +}; export type GetLexiconCategoryLexiconCategoryCategoryIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetLexiconCategoryLexiconCategoryCategoryIdGetError = - GetLexiconCategoryLexiconCategoryCategoryIdGetErrors[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetErrors] +export type GetLexiconCategoryLexiconCategoryCategoryIdGetError = GetLexiconCategoryLexiconCategoryCategoryIdGetErrors[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetErrors]; export type GetLexiconCategoryLexiconCategoryCategoryIdGetResponses = { - /** - * Successful Response - */ - 200: LexiconCategoryResponse -} + /** + * Successful Response + */ + 200: LexiconCategoryResponse; +}; -export type GetLexiconCategoryLexiconCategoryCategoryIdGetResponse = - GetLexiconCategoryLexiconCategoryCategoryIdGetResponses[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetResponses] +export type GetLexiconCategoryLexiconCategoryCategoryIdGetResponse = GetLexiconCategoryLexiconCategoryCategoryIdGetResponses[keyof GetLexiconCategoryLexiconCategoryCategoryIdGetResponses]; export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchData = { - body: UpdateLexiconCategory - path: { - /** - * Category Id - */ - category_id: number - } - query?: never - url: '/lexicon/category/{category_id}' -} + body: UpdateLexiconCategory; + path: { + /** + * Category Id + */ + category_id: number; + }; + query?: never; + url: '/lexicon/category/{category_id}'; +}; export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchError = - UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors] +export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchError = UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchErrors]; export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses = { - /** - * Successful Response - */ - 200: LexiconCategoryResponse -} + /** + * Successful Response + */ + 200: LexiconCategoryResponse; +}; -export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = - UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses] +export type UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses[keyof UpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponses]; export type DeleteLexiconTripleLexiconTripleTripleIdDeleteData = { - body?: never - path: { - /** - * Triple Id - */ - triple_id: number - } - query?: never - url: '/lexicon/triple/{triple_id}' -} + body?: never; + path: { + /** + * Triple Id + */ + triple_id: number; + }; + query?: never; + url: '/lexicon/triple/{triple_id}'; +}; export type DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteLexiconTripleLexiconTripleTripleIdDeleteError = - DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors] +export type DeleteLexiconTripleLexiconTripleTripleIdDeleteError = DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteErrors]; export type DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = - DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses] +export type DeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses[keyof DeleteLexiconTripleLexiconTripleTripleIdDeleteResponses]; export type GetLexiconTripleLexiconTripleTripleIdGetData = { - body?: never - path: { - /** - * Triple Id - */ - triple_id: number - } - query?: never - url: '/lexicon/triple/{triple_id}' -} + body?: never; + path: { + /** + * Triple Id + */ + triple_id: number; + }; + query?: never; + url: '/lexicon/triple/{triple_id}'; +}; export type GetLexiconTripleLexiconTripleTripleIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetLexiconTripleLexiconTripleTripleIdGetError = - GetLexiconTripleLexiconTripleTripleIdGetErrors[keyof GetLexiconTripleLexiconTripleTripleIdGetErrors] +export type GetLexiconTripleLexiconTripleTripleIdGetError = GetLexiconTripleLexiconTripleTripleIdGetErrors[keyof GetLexiconTripleLexiconTripleTripleIdGetErrors]; export type GetLexiconTripleLexiconTripleTripleIdGetResponses = { - /** - * Successful Response - */ - 200: LexiconTripleResponse -} + /** + * Successful Response + */ + 200: LexiconTripleResponse; +}; -export type GetLexiconTripleLexiconTripleTripleIdGetResponse = - GetLexiconTripleLexiconTripleTripleIdGetResponses[keyof GetLexiconTripleLexiconTripleTripleIdGetResponses] +export type GetLexiconTripleLexiconTripleTripleIdGetResponse = GetLexiconTripleLexiconTripleTripleIdGetResponses[keyof GetLexiconTripleLexiconTripleTripleIdGetResponses]; export type UpdateLexiconTripleLexiconTripleTripleIdPatchData = { - body: UpdateLexiconTriple - path: { - /** - * Triple Id - */ - triple_id: number - } - query?: never - url: '/lexicon/triple/{triple_id}' -} + body: UpdateLexiconTriple; + path: { + /** + * Triple Id + */ + triple_id: number; + }; + query?: never; + url: '/lexicon/triple/{triple_id}'; +}; export type UpdateLexiconTripleLexiconTripleTripleIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateLexiconTripleLexiconTripleTripleIdPatchError = - UpdateLexiconTripleLexiconTripleTripleIdPatchErrors[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchErrors] +export type UpdateLexiconTripleLexiconTripleTripleIdPatchError = UpdateLexiconTripleLexiconTripleTripleIdPatchErrors[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchErrors]; export type UpdateLexiconTripleLexiconTripleTripleIdPatchResponses = { - /** - * Successful Response - */ - 200: LexiconTripleResponse -} + /** + * Successful Response + */ + 200: LexiconTripleResponse; +}; -export type UpdateLexiconTripleLexiconTripleTripleIdPatchResponse = - UpdateLexiconTripleLexiconTripleTripleIdPatchResponses[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchResponses] +export type UpdateLexiconTripleLexiconTripleTripleIdPatchResponse = UpdateLexiconTripleLexiconTripleTripleIdPatchResponses[keyof UpdateLexiconTripleLexiconTripleTripleIdPatchResponses]; export type GetLocationLocationGetData = { - body?: never - path?: never - query?: { - /** - * Nearby Point - */ - nearby_point?: string - /** - * Nearby Distance Km - */ - nearby_distance_km?: number - /** - * Within - */ - within?: string - /** - * Query - */ - query?: string - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/location' -} + body?: never; + path?: never; + query?: { + /** + * Nearby Point + */ + nearby_point?: string; + /** + * Nearby Distance Km + */ + nearby_distance_km?: number; + /** + * Within + */ + within?: string; + /** + * Query + */ + query?: string; + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/location'; +}; export type GetLocationLocationGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetLocationLocationGetError = - GetLocationLocationGetErrors[keyof GetLocationLocationGetErrors] +export type GetLocationLocationGetError = GetLocationLocationGetErrors[keyof GetLocationLocationGetErrors]; export type GetLocationLocationGetResponses = { - /** - * Successful Response - */ - 200: PageLocationResponse -} + /** + * Successful Response + */ + 200: PageLocationResponse; +}; -export type GetLocationLocationGetResponse = - GetLocationLocationGetResponses[keyof GetLocationLocationGetResponses] +export type GetLocationLocationGetResponse = GetLocationLocationGetResponses[keyof GetLocationLocationGetResponses]; export type CreateLocationLocationPostData = { - body: CreateLocation - path?: never - query?: never - url: '/location' -} + body: CreateLocation; + path?: never; + query?: never; + url: '/location'; +}; export type CreateLocationLocationPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateLocationLocationPostError = - CreateLocationLocationPostErrors[keyof CreateLocationLocationPostErrors] +export type CreateLocationLocationPostError = CreateLocationLocationPostErrors[keyof CreateLocationLocationPostErrors]; export type CreateLocationLocationPostResponses = { - /** - * Successful Response - */ - 201: LocationResponse -} - -export type CreateLocationLocationPostResponse = - CreateLocationLocationPostResponses[keyof CreateLocationLocationPostResponses] - -export type DeleteLocationLocationLocationIdDeleteData = { - body?: never - path: { /** - * Location Id + * Successful Response */ - location_id: number - } - query?: never - url: '/location/{location_id}' -} + 201: LocationResponse; +}; -export type DeleteLocationLocationLocationIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} - -export type DeleteLocationLocationLocationIdDeleteError = - DeleteLocationLocationLocationIdDeleteErrors[keyof DeleteLocationLocationLocationIdDeleteErrors] +export type CreateLocationLocationPostResponse = CreateLocationLocationPostResponses[keyof CreateLocationLocationPostResponses]; -export type DeleteLocationLocationLocationIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown -} +export type DeleteLocationLocationLocationIdDeleteData = { + body?: never; + path: { + /** + * Location Id + */ + location_id: number; + }; + query?: never; + url: '/location/{location_id}'; +}; -export type GetLocationByIdLocationLocationIdGetData = { - body?: never - path: { +export type DeleteLocationLocationLocationIdDeleteErrors = { /** - * Location Id + * Validation Error */ - location_id: number - } - query?: never - url: '/location/{location_id}' -} - -export type GetLocationByIdLocationLocationIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} - -export type GetLocationByIdLocationLocationIdGetError = - GetLocationByIdLocationLocationIdGetErrors[keyof GetLocationByIdLocationLocationIdGetErrors] + 422: HttpValidationError; +}; -export type GetLocationByIdLocationLocationIdGetResponses = { - /** - * Successful Response - */ - 200: LocationResponse -} - -export type GetLocationByIdLocationLocationIdGetResponse = - GetLocationByIdLocationLocationIdGetResponses[keyof GetLocationByIdLocationLocationIdGetResponses] +export type DeleteLocationLocationLocationIdDeleteError = DeleteLocationLocationLocationIdDeleteErrors[keyof DeleteLocationLocationLocationIdDeleteErrors]; -export type UpdateLocationLocationLocationIdPatchData = { - body: UpdateLocation - path: { +export type DeleteLocationLocationLocationIdDeleteResponses = { /** - * Location Id + * Successful Response */ - location_id: number - } - query?: never - url: '/location/{location_id}' -} - -export type UpdateLocationLocationLocationIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + 200: unknown; +}; -export type UpdateLocationLocationLocationIdPatchError = - UpdateLocationLocationLocationIdPatchErrors[keyof UpdateLocationLocationLocationIdPatchErrors] +export type GetLocationByIdLocationLocationIdGetData = { + body?: never; + path: { + /** + * Location Id + */ + location_id: number; + }; + query?: never; + url: '/location/{location_id}'; +}; -export type UpdateLocationLocationLocationIdPatchResponses = { - /** - * Successful Response - */ - 200: LocationResponse -} - -export type UpdateLocationLocationLocationIdPatchResponse = - UpdateLocationLocationLocationIdPatchResponses[keyof UpdateLocationLocationLocationIdPatchResponses] - -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = - { - body?: never - path?: never - query?: { - /** - * Thing Id - */ - thing_id?: number | null - /** - * Sensor Id - */ - sensor_id?: number | null - /** - * Sample Id - */ - sample_id?: number | null - /** - * Start Time - */ - start_time?: string | null - /** - * End Time - */ - end_time?: string | null - /** - * Sort - */ - sort?: string | null - /** - * Order - */ - order?: string | null - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/observation/groundwater-level' - } - -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors = - { +export type GetLocationByIdLocationLocationIdGetErrors = { /** * Validation Error */ - 422: HttpValidationError - } + 422: HttpValidationError; +}; -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetError = - GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors] +export type GetLocationByIdLocationLocationIdGetError = GetLocationByIdLocationLocationIdGetErrors[keyof GetLocationByIdLocationLocationIdGetErrors]; -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses = - { +export type GetLocationByIdLocationLocationIdGetResponses = { /** * Successful Response */ - 200: PageGroundwaterLevelObservationResponse - } + 200: LocationResponse; +}; -export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = - GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses] +export type GetLocationByIdLocationLocationIdGetResponse = GetLocationByIdLocationLocationIdGetResponses[keyof GetLocationByIdLocationLocationIdGetResponses]; -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostData = - { - body: CreateGroundwaterLevelObservation - path?: never - query?: never - url: '/observation/groundwater-level' - } +export type UpdateLocationLocationLocationIdPatchData = { + body: UpdateLocation; + path: { + /** + * Location Id + */ + location_id: number; + }; + query?: never; + url: '/location/{location_id}'; +}; -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors = - { +export type UpdateLocationLocationLocationIdPatchErrors = { /** * Validation Error */ - 422: HttpValidationError - } - -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostError = - AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors] - -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses = - { - /** - * Successful Response - */ - 201: GroundwaterLevelObservationResponse - } + 422: HttpValidationError; +}; -export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = - AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses] +export type UpdateLocationLocationLocationIdPatchError = UpdateLocationLocationLocationIdPatchErrors[keyof UpdateLocationLocationLocationIdPatchErrors]; -export type GetWaterChemistryObservationsObservationWaterChemistryGetData = { - body?: never - path?: never - query?: { - /** - * Thing Id - */ - thing_id?: number | null - /** - * Sensor Id - */ - sensor_id?: number | null - /** - * Sample Id - */ - sample_id?: number | null - /** - * Start Time - */ - start_time?: string | null - /** - * End Time - */ - end_time?: string | null +export type UpdateLocationLocationLocationIdPatchResponses = { /** - * Sort + * Successful Response */ - sort?: string | null + 200: LocationResponse; +}; + +export type UpdateLocationLocationLocationIdPatchResponse = UpdateLocationLocationLocationIdPatchResponses[keyof UpdateLocationLocationLocationIdPatchResponses]; + +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = { + body?: never; + path?: never; + query?: { + /** + * Thing Id + */ + thing_id?: number | null; + /** + * Sensor Id + */ + sensor_id?: number | null; + /** + * Sample Id + */ + sample_id?: number | null; + /** + * Start Time + */ + start_time?: string | null; + /** + * End Time + */ + end_time?: string | null; + /** + * Sort + */ + sort?: string | null; + /** + * Order + */ + order?: string | null; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/observation/groundwater-level'; +}; + +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors = { /** - * Order + * Validation Error */ - order?: string | null + 422: HttpValidationError; +}; + +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetError = GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetErrors]; + +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses = { /** - * Filter + * Successful Response */ - filter?: string + 200: PageGroundwaterLevelObservationResponse; +}; + +export type GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses[keyof GetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponses]; + +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostData = { + body: CreateGroundwaterLevelObservation; + path?: never; + query?: never; + url: '/observation/groundwater-level'; +}; + +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors = { /** - * Page - * Page number + * Validation Error */ - page?: number + 422: HttpValidationError; +}; + +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostError = AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostErrors]; + +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses = { /** - * Size + * Successful Response */ - size?: number - } - url: '/observation/water-chemistry' -} + 201: GroundwaterLevelObservationResponse; +}; + +export type AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses[keyof AddGroundwaterLevelObservationObservationGroundwaterLevelPostResponses]; + +export type GetWaterChemistryObservationsObservationWaterChemistryGetData = { + body?: never; + path?: never; + query?: { + /** + * Thing Id + */ + thing_id?: number | null; + /** + * Sensor Id + */ + sensor_id?: number | null; + /** + * Sample Id + */ + sample_id?: number | null; + /** + * Start Time + */ + start_time?: string | null; + /** + * End Time + */ + end_time?: string | null; + /** + * Sort + */ + sort?: string | null; + /** + * Order + */ + order?: string | null; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/observation/water-chemistry'; +}; export type GetWaterChemistryObservationsObservationWaterChemistryGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetWaterChemistryObservationsObservationWaterChemistryGetError = - GetWaterChemistryObservationsObservationWaterChemistryGetErrors[keyof GetWaterChemistryObservationsObservationWaterChemistryGetErrors] +export type GetWaterChemistryObservationsObservationWaterChemistryGetError = GetWaterChemistryObservationsObservationWaterChemistryGetErrors[keyof GetWaterChemistryObservationsObservationWaterChemistryGetErrors]; -export type GetWaterChemistryObservationsObservationWaterChemistryGetResponses = - { +export type GetWaterChemistryObservationsObservationWaterChemistryGetResponses = { /** * Successful Response */ - 200: PageWaterChemistryObservationResponse - } + 200: PageWaterChemistryObservationResponse; +}; -export type GetWaterChemistryObservationsObservationWaterChemistryGetResponse = - GetWaterChemistryObservationsObservationWaterChemistryGetResponses[keyof GetWaterChemistryObservationsObservationWaterChemistryGetResponses] +export type GetWaterChemistryObservationsObservationWaterChemistryGetResponse = GetWaterChemistryObservationsObservationWaterChemistryGetResponses[keyof GetWaterChemistryObservationsObservationWaterChemistryGetResponses]; export type AddWaterChemistryObservationObservationWaterChemistryPostData = { - body: CreateWaterChemistryObservation - path?: never - query?: never - url: '/observation/water-chemistry' -} + body: CreateWaterChemistryObservation; + path?: never; + query?: never; + url: '/observation/water-chemistry'; +}; export type AddWaterChemistryObservationObservationWaterChemistryPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type AddWaterChemistryObservationObservationWaterChemistryPostError = - AddWaterChemistryObservationObservationWaterChemistryPostErrors[keyof AddWaterChemistryObservationObservationWaterChemistryPostErrors] +export type AddWaterChemistryObservationObservationWaterChemistryPostError = AddWaterChemistryObservationObservationWaterChemistryPostErrors[keyof AddWaterChemistryObservationObservationWaterChemistryPostErrors]; -export type AddWaterChemistryObservationObservationWaterChemistryPostResponses = - { +export type AddWaterChemistryObservationObservationWaterChemistryPostResponses = { /** * Successful Response */ - 201: WaterChemistryObservationResponse - } + 201: WaterChemistryObservationResponse; +}; -export type AddWaterChemistryObservationObservationWaterChemistryPostResponse = - AddWaterChemistryObservationObservationWaterChemistryPostResponses[keyof AddWaterChemistryObservationObservationWaterChemistryPostResponses] +export type AddWaterChemistryObservationObservationWaterChemistryPostResponse = AddWaterChemistryObservationObservationWaterChemistryPostResponses[keyof AddWaterChemistryObservationObservationWaterChemistryPostResponses]; -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = - { - body?: never +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = { + body?: never; path: { - /** - * Observation Id - */ - observation_id: number - } - query?: never - url: '/observation/groundwater-level/{observation_id}' - } - -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors = - { + /** + * Observation Id + */ + observation_id: number; + }; + query?: never; + url: '/observation/groundwater-level/{observation_id}'; +}; + +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors = { /** * Validation Error */ - 422: HttpValidationError - } + 422: HttpValidationError; +}; -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetError = - GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors] +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetError = GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetErrors]; -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses = - { +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses = { /** * Successful Response */ - 200: GroundwaterLevelObservationResponse - } + 200: GroundwaterLevelObservationResponse; +}; -export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = - GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses] +export type GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses[keyof GetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponses]; -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = - { - body: UpdateGroundwaterLevelObservation +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = { + body: UpdateGroundwaterLevelObservation; path: { - /** - * Observation Id - */ - observation_id: number - } - query?: never - url: '/observation/groundwater-level/{observation_id}' - } - -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors = - { + /** + * Observation Id + */ + observation_id: number; + }; + query?: never; + url: '/observation/groundwater-level/{observation_id}'; +}; + +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors = { /** * Validation Error */ - 422: HttpValidationError - } + 422: HttpValidationError; +}; -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchError = - UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors] +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchError = UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchErrors]; -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses = - { +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses = { /** * Successful Response */ - 200: GroundwaterLevelObservationResponse - } + 200: GroundwaterLevelObservationResponse; +}; -export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = - UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses] +export type UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses[keyof UpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponses]; -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = - { - body?: never +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = { + body?: never; path: { - /** - * Observation Id - */ - observation_id: number - } - query?: never - url: '/observation/water-chemistry/{observation_id}' - } - -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors = - { + /** + * Observation Id + */ + observation_id: number; + }; + query?: never; + url: '/observation/water-chemistry/{observation_id}'; +}; + +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors = { /** * Validation Error */ - 422: HttpValidationError - } + 422: HttpValidationError; +}; -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetError = - GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors] +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetError = GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetErrors]; -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses = - { +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses = { /** * Successful Response */ - 200: WaterChemistryObservationResponse - } + 200: WaterChemistryObservationResponse; +}; -export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = - GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses] +export type GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses[keyof GetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponses]; -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = - { - body: UpdateWaterChemistryObservation +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = { + body: UpdateWaterChemistryObservation; path: { - /** - * Observation Id - */ - observation_id: number - } - query?: never - url: '/observation/water-chemistry/{observation_id}' - } - -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors = - { + /** + * Observation Id + */ + observation_id: number; + }; + query?: never; + url: '/observation/water-chemistry/{observation_id}'; +}; + +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors = { /** * Validation Error */ - 422: HttpValidationError - } + 422: HttpValidationError; +}; -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchError = - UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors] +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchError = UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchErrors]; -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses = - { +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses = { /** * Successful Response */ - 200: WaterChemistryObservationResponse - } + 200: WaterChemistryObservationResponse; +}; -export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = - UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses] +export type UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses[keyof UpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponses]; -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = - { - body?: never - path?: never +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = { + body?: never; + path?: never; query?: { - /** - * Thing Id - */ - thing_id?: number | null - /** - * Parameter Id - */ - parameter_id?: number | null - /** - * Start Time - */ - start_time?: string | null - /** - * End Time - */ - end_time?: string | null - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/observation/transducer-groundwater-level' - } - -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors = - { + /** + * Thing Id + */ + thing_id?: number | null; + /** + * Parameter Id + */ + parameter_id?: number | null; + /** + * Start Time + */ + start_time?: string | null; + /** + * End Time + */ + end_time?: string | null; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/observation/transducer-groundwater-level'; +}; + +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors = { /** * Validation Error */ - 422: HttpValidationError - } + 422: HttpValidationError; +}; -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetError = - GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors] +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetError = GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetErrors]; -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses = - { +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses = { /** * Successful Response */ - 200: PageTransducerObservationWithBlockResponse - } + 200: PageTransducerObservationWithBlockResponse; +}; -export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = - GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses] +export type GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses[keyof GetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponses]; export type GetAllObservationsObservationGetData = { - body?: never - path?: never - query?: { - /** - * Thing Id - */ - thing_id?: number | null - /** - * Sensor Id - */ - sensor_id?: number | null - /** - * Sample Id - */ - sample_id?: number | null - /** - * Start Time - */ - start_time?: string | null - /** - * End Time - */ - end_time?: string | null - /** - * Sort - */ - sort?: string | null - /** - * Order - */ - order?: string | null - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/observation' -} + body?: never; + path?: never; + query?: { + /** + * Thing Id + */ + thing_id?: number | null; + /** + * Sensor Id + */ + sensor_id?: number | null; + /** + * Sample Id + */ + sample_id?: number | null; + /** + * Start Time + */ + start_time?: string | null; + /** + * End Time + */ + end_time?: string | null; + /** + * Sort + */ + sort?: string | null; + /** + * Order + */ + order?: string | null; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/observation'; +}; export type GetAllObservationsObservationGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetAllObservationsObservationGetError = - GetAllObservationsObservationGetErrors[keyof GetAllObservationsObservationGetErrors] +export type GetAllObservationsObservationGetError = GetAllObservationsObservationGetErrors[keyof GetAllObservationsObservationGetErrors]; export type GetAllObservationsObservationGetResponses = { - /** - * Successful Response - */ - 200: PageObservationResponse -} + /** + * Successful Response + */ + 200: PageObservationResponse; +}; -export type GetAllObservationsObservationGetResponse = - GetAllObservationsObservationGetResponses[keyof GetAllObservationsObservationGetResponses] +export type GetAllObservationsObservationGetResponse = GetAllObservationsObservationGetResponses[keyof GetAllObservationsObservationGetResponses]; export type DeleteObservationObservationObservationIdDeleteData = { - body?: never - path: { - /** - * Observation Id - */ - observation_id: number - } - query?: never - url: '/observation/{observation_id}' -} + body?: never; + path: { + /** + * Observation Id + */ + observation_id: number; + }; + query?: never; + url: '/observation/{observation_id}'; +}; export type DeleteObservationObservationObservationIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteObservationObservationObservationIdDeleteError = - DeleteObservationObservationObservationIdDeleteErrors[keyof DeleteObservationObservationObservationIdDeleteErrors] +export type DeleteObservationObservationObservationIdDeleteError = DeleteObservationObservationObservationIdDeleteErrors[keyof DeleteObservationObservationObservationIdDeleteErrors]; export type DeleteObservationObservationObservationIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteObservationObservationObservationIdDeleteResponse = - DeleteObservationObservationObservationIdDeleteResponses[keyof DeleteObservationObservationObservationIdDeleteResponses] +export type DeleteObservationObservationObservationIdDeleteResponse = DeleteObservationObservationObservationIdDeleteResponses[keyof DeleteObservationObservationObservationIdDeleteResponses]; export type GetObservationByIdObservationObservationIdGetData = { - body?: never - path: { - /** - * Observation Id - */ - observation_id: number - } - query?: never - url: '/observation/{observation_id}' -} + body?: never; + path: { + /** + * Observation Id + */ + observation_id: number; + }; + query?: never; + url: '/observation/{observation_id}'; +}; export type GetObservationByIdObservationObservationIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetObservationByIdObservationObservationIdGetError = - GetObservationByIdObservationObservationIdGetErrors[keyof GetObservationByIdObservationObservationIdGetErrors] +export type GetObservationByIdObservationObservationIdGetError = GetObservationByIdObservationObservationIdGetErrors[keyof GetObservationByIdObservationObservationIdGetErrors]; export type GetObservationByIdObservationObservationIdGetResponses = { - /** - * Successful Response - */ - 200: ObservationResponse -} + /** + * Successful Response + */ + 200: ObservationResponse; +}; -export type GetObservationByIdObservationObservationIdGetResponse = - GetObservationByIdObservationObservationIdGetResponses[keyof GetObservationByIdObservationObservationIdGetResponses] +export type GetObservationByIdObservationObservationIdGetResponse = GetObservationByIdObservationObservationIdGetResponses[keyof GetObservationByIdObservationObservationIdGetResponses]; export type PostPublicationPublicationAddPostData = { - body: CreatePublication - path?: never - query?: never - url: '/publication/add' -} + body: CreatePublication; + path?: never; + query?: never; + url: '/publication/add'; +}; export type PostPublicationPublicationAddPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type PostPublicationPublicationAddPostError = - PostPublicationPublicationAddPostErrors[keyof PostPublicationPublicationAddPostErrors] +export type PostPublicationPublicationAddPostError = PostPublicationPublicationAddPostErrors[keyof PostPublicationPublicationAddPostErrors]; export type PostPublicationPublicationAddPostResponses = { - /** - * Successful Response - */ - 201: PublicationResponse -} + /** + * Successful Response + */ + 201: PublicationResponse; +}; -export type PostPublicationPublicationAddPostResponse = - PostPublicationPublicationAddPostResponses[keyof PostPublicationPublicationAddPostResponses] +export type PostPublicationPublicationAddPostResponse = PostPublicationPublicationAddPostResponses[keyof PostPublicationPublicationAddPostResponses]; export type GetSamplesSampleGetData = { - body?: never - path?: never - query?: { - /** - * Thing Id - */ - thing_id?: number | null - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/sample' -} + body?: never; + path?: never; + query?: { + /** + * Thing Id + */ + thing_id?: number | null; + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/sample'; +}; export type GetSamplesSampleGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetSamplesSampleGetError = - GetSamplesSampleGetErrors[keyof GetSamplesSampleGetErrors] +export type GetSamplesSampleGetError = GetSamplesSampleGetErrors[keyof GetSamplesSampleGetErrors]; export type GetSamplesSampleGetResponses = { - /** - * Successful Response - */ - 200: PageSampleResponse -} + /** + * Successful Response + */ + 200: PageSampleResponse; +}; -export type GetSamplesSampleGetResponse = - GetSamplesSampleGetResponses[keyof GetSamplesSampleGetResponses] +export type GetSamplesSampleGetResponse = GetSamplesSampleGetResponses[keyof GetSamplesSampleGetResponses]; export type AddSampleSamplePostData = { - body: CreateSample - path?: never - query?: never - url: '/sample' -} + body: CreateSample; + path?: never; + query?: never; + url: '/sample'; +}; export type AddSampleSamplePostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type AddSampleSamplePostError = - AddSampleSamplePostErrors[keyof AddSampleSamplePostErrors] +export type AddSampleSamplePostError = AddSampleSamplePostErrors[keyof AddSampleSamplePostErrors]; export type AddSampleSamplePostResponses = { - /** - * Successful Response - */ - 201: SampleResponse -} + /** + * Successful Response + */ + 201: SampleResponse; +}; -export type AddSampleSamplePostResponse = - AddSampleSamplePostResponses[keyof AddSampleSamplePostResponses] +export type AddSampleSamplePostResponse = AddSampleSamplePostResponses[keyof AddSampleSamplePostResponses]; export type DeleteSampleByIdSampleSampleIdDeleteData = { - body?: never - path: { - /** - * Sample Id - */ - sample_id: number - } - query?: never - url: '/sample/{sample_id}' -} + body?: never; + path: { + /** + * Sample Id + */ + sample_id: number; + }; + query?: never; + url: '/sample/{sample_id}'; +}; export type DeleteSampleByIdSampleSampleIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteSampleByIdSampleSampleIdDeleteError = - DeleteSampleByIdSampleSampleIdDeleteErrors[keyof DeleteSampleByIdSampleSampleIdDeleteErrors] +export type DeleteSampleByIdSampleSampleIdDeleteError = DeleteSampleByIdSampleSampleIdDeleteErrors[keyof DeleteSampleByIdSampleSampleIdDeleteErrors]; export type DeleteSampleByIdSampleSampleIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type GetSampleByIdSampleSampleIdGetData = { - body?: never - path: { /** - * Sample Id + * Successful Response */ - sample_id: number - } - query?: never - url: '/sample/{sample_id}' -} + 200: unknown; +}; + +export type GetSampleByIdSampleSampleIdGetData = { + body?: never; + path: { + /** + * Sample Id + */ + sample_id: number; + }; + query?: never; + url: '/sample/{sample_id}'; +}; export type GetSampleByIdSampleSampleIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetSampleByIdSampleSampleIdGetError = - GetSampleByIdSampleSampleIdGetErrors[keyof GetSampleByIdSampleSampleIdGetErrors] +export type GetSampleByIdSampleSampleIdGetError = GetSampleByIdSampleSampleIdGetErrors[keyof GetSampleByIdSampleSampleIdGetErrors]; export type GetSampleByIdSampleSampleIdGetResponses = { - /** - * Response Get Sample By Id Sample Sample Id Get - * Successful Response - */ - 200: SampleResponse | ResourceNotFoundResponse -} + /** + * Response Get Sample By Id Sample Sample Id Get + * Successful Response + */ + 200: SampleResponse | ResourceNotFoundResponse; +}; -export type GetSampleByIdSampleSampleIdGetResponse = - GetSampleByIdSampleSampleIdGetResponses[keyof GetSampleByIdSampleSampleIdGetResponses] +export type GetSampleByIdSampleSampleIdGetResponse = GetSampleByIdSampleSampleIdGetResponses[keyof GetSampleByIdSampleSampleIdGetResponses]; export type UpdateSampleSampleSampleIdPatchData = { - body: UpdateSample - path: { - /** - * Sample Id - */ - sample_id: number - } - query?: never - url: '/sample/{sample_id}' -} + body: UpdateSample; + path: { + /** + * Sample Id + */ + sample_id: number; + }; + query?: never; + url: '/sample/{sample_id}'; +}; export type UpdateSampleSampleSampleIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateSampleSampleSampleIdPatchError = - UpdateSampleSampleSampleIdPatchErrors[keyof UpdateSampleSampleSampleIdPatchErrors] +export type UpdateSampleSampleSampleIdPatchError = UpdateSampleSampleSampleIdPatchErrors[keyof UpdateSampleSampleSampleIdPatchErrors]; export type UpdateSampleSampleSampleIdPatchResponses = { - /** - * Response Update Sample Sample Sample Id Patch - * Successful Response - */ - 200: SampleResponse | ResourceNotFoundResponse -} + /** + * Response Update Sample Sample Sample Id Patch + * Successful Response + */ + 200: SampleResponse | ResourceNotFoundResponse; +}; -export type UpdateSampleSampleSampleIdPatchResponse = - UpdateSampleSampleSampleIdPatchResponses[keyof UpdateSampleSampleSampleIdPatchResponses] +export type UpdateSampleSampleSampleIdPatchResponse = UpdateSampleSampleSampleIdPatchResponses[keyof UpdateSampleSampleSampleIdPatchResponses]; export type GetSensorsSensorGetData = { - body?: never - path?: never - query?: { - /** - * Thing Id - */ - thing_id?: number - /** - * Parameter Id - */ - parameter_id?: number - /** - * Sort - */ - sort?: string | null - /** - * Order - */ - order?: string | null - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/sensor' -} + body?: never; + path?: never; + query?: { + /** + * Thing Id + */ + thing_id?: number; + /** + * Parameter Id + */ + parameter_id?: number; + /** + * Sort + */ + sort?: string | null; + /** + * Order + */ + order?: string | null; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/sensor'; +}; export type GetSensorsSensorGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetSensorsSensorGetError = - GetSensorsSensorGetErrors[keyof GetSensorsSensorGetErrors] +export type GetSensorsSensorGetError = GetSensorsSensorGetErrors[keyof GetSensorsSensorGetErrors]; export type GetSensorsSensorGetResponses = { - /** - * Successful Response - */ - 200: PageSensorResponse -} + /** + * Successful Response + */ + 200: PageSensorResponse; +}; -export type GetSensorsSensorGetResponse = - GetSensorsSensorGetResponses[keyof GetSensorsSensorGetResponses] +export type GetSensorsSensorGetResponse = GetSensorsSensorGetResponses[keyof GetSensorsSensorGetResponses]; export type AddSensorSensorPostData = { - body: CreateSensor - path?: never - query?: never - url: '/sensor' -} + body: CreateSensor; + path?: never; + query?: never; + url: '/sensor'; +}; export type AddSensorSensorPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type AddSensorSensorPostError = - AddSensorSensorPostErrors[keyof AddSensorSensorPostErrors] +export type AddSensorSensorPostError = AddSensorSensorPostErrors[keyof AddSensorSensorPostErrors]; export type AddSensorSensorPostResponses = { - /** - * Successful Response - */ - 201: SensorResponse -} + /** + * Successful Response + */ + 201: SensorResponse; +}; -export type AddSensorSensorPostResponse = - AddSensorSensorPostResponses[keyof AddSensorSensorPostResponses] +export type AddSensorSensorPostResponse = AddSensorSensorPostResponses[keyof AddSensorSensorPostResponses]; export type DeleteSensorSensorSensorIdDeleteData = { - body?: never - path: { - /** - * Sensor Id - */ - sensor_id: number - } - query?: never - url: '/sensor/{sensor_id}' -} + body?: never; + path: { + /** + * Sensor Id + */ + sensor_id: number; + }; + query?: never; + url: '/sensor/{sensor_id}'; +}; export type DeleteSensorSensorSensorIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteSensorSensorSensorIdDeleteError = - DeleteSensorSensorSensorIdDeleteErrors[keyof DeleteSensorSensorSensorIdDeleteErrors] +export type DeleteSensorSensorSensorIdDeleteError = DeleteSensorSensorSensorIdDeleteErrors[keyof DeleteSensorSensorSensorIdDeleteErrors]; export type DeleteSensorSensorSensorIdDeleteResponses = { - /** - * Successful Response - */ - 200: unknown -} - -export type GetSensorSensorSensorIdGetData = { - body?: never - path: { /** - * Sensor Id + * Successful Response */ - sensor_id: number - } - query?: never - url: '/sensor/{sensor_id}' -} + 200: unknown; +}; + +export type GetSensorSensorSensorIdGetData = { + body?: never; + path: { + /** + * Sensor Id + */ + sensor_id: number; + }; + query?: never; + url: '/sensor/{sensor_id}'; +}; export type GetSensorSensorSensorIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetSensorSensorSensorIdGetError = - GetSensorSensorSensorIdGetErrors[keyof GetSensorSensorSensorIdGetErrors] +export type GetSensorSensorSensorIdGetError = GetSensorSensorSensorIdGetErrors[keyof GetSensorSensorSensorIdGetErrors]; export type GetSensorSensorSensorIdGetResponses = { - /** - * Successful Response - */ - 200: SensorResponse -} + /** + * Successful Response + */ + 200: SensorResponse; +}; -export type GetSensorSensorSensorIdGetResponse = - GetSensorSensorSensorIdGetResponses[keyof GetSensorSensorSensorIdGetResponses] +export type GetSensorSensorSensorIdGetResponse = GetSensorSensorSensorIdGetResponses[keyof GetSensorSensorSensorIdGetResponses]; export type UpdateSensorSensorSensorIdPatchData = { - body: UpdateSensor - path: { - /** - * Sensor Id - */ - sensor_id: number - } - query?: never - url: '/sensor/{sensor_id}' -} + body: UpdateSensor; + path: { + /** + * Sensor Id + */ + sensor_id: number; + }; + query?: never; + url: '/sensor/{sensor_id}'; +}; export type UpdateSensorSensorSensorIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateSensorSensorSensorIdPatchError = - UpdateSensorSensorSensorIdPatchErrors[keyof UpdateSensorSensorSensorIdPatchErrors] +export type UpdateSensorSensorSensorIdPatchError = UpdateSensorSensorSensorIdPatchErrors[keyof UpdateSensorSensorSensorIdPatchErrors]; export type UpdateSensorSensorSensorIdPatchResponses = { - /** - * Successful Response - */ - 200: SensorResponse -} + /** + * Successful Response + */ + 200: SensorResponse; +}; -export type UpdateSensorSensorSensorIdPatchResponse = - UpdateSensorSensorSensorIdPatchResponses[keyof UpdateSensorSensorSensorIdPatchResponses] +export type UpdateSensorSensorSensorIdPatchResponse = UpdateSensorSensorSensorIdPatchResponses[keyof UpdateSensorSensorSensorIdPatchResponses]; export type SearchApiSearchGetData = { - body?: never - path?: never - query: { - /** - * Q - */ - q: string - /** - * Limit - */ - limit?: number - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/search' -} + body?: never; + path?: never; + query: { + /** + * Q + */ + q: string; + /** + * Limit + */ + limit?: number; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/search'; +}; export type SearchApiSearchGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type SearchApiSearchGetError = - SearchApiSearchGetErrors[keyof SearchApiSearchGetErrors] +export type SearchApiSearchGetError = SearchApiSearchGetErrors[keyof SearchApiSearchGetErrors]; export type SearchApiSearchGetResponses = { - /** - * Successful Response - */ - 200: PageDict -} + /** + * Successful Response + */ + 200: PageDict; +}; -export type SearchApiSearchGetResponse = - SearchApiSearchGetResponses[keyof SearchApiSearchGetResponses] +export type SearchApiSearchGetResponse = SearchApiSearchGetResponses[keyof SearchApiSearchGetResponses]; export type GetWaterWellsThingWaterWellGetData = { - body?: never - path?: never - query?: { - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Query - */ - query?: string - /** - * Name - */ - name?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing/water-well' -} + body?: never; + path?: never; + query?: { + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Query + */ + query?: string; + /** + * Name + */ + name?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing/water-well'; +}; export type GetWaterWellsThingWaterWellGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetWaterWellsThingWaterWellGetError = - GetWaterWellsThingWaterWellGetErrors[keyof GetWaterWellsThingWaterWellGetErrors] +export type GetWaterWellsThingWaterWellGetError = GetWaterWellsThingWaterWellGetErrors[keyof GetWaterWellsThingWaterWellGetErrors]; export type GetWaterWellsThingWaterWellGetResponses = { - /** - * Successful Response - */ - 200: PageWellResponse -} + /** + * Successful Response + */ + 200: PageWellResponse; +}; -export type GetWaterWellsThingWaterWellGetResponse = - GetWaterWellsThingWaterWellGetResponses[keyof GetWaterWellsThingWaterWellGetResponses] +export type GetWaterWellsThingWaterWellGetResponse = GetWaterWellsThingWaterWellGetResponses[keyof GetWaterWellsThingWaterWellGetResponses]; export type CreateWellThingWaterWellPostData = { - body: CreateWell - path?: never - query?: never - url: '/thing/water-well' -} + body: CreateWell; + path?: never; + query?: never; + url: '/thing/water-well'; +}; export type CreateWellThingWaterWellPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateWellThingWaterWellPostError = - CreateWellThingWaterWellPostErrors[keyof CreateWellThingWaterWellPostErrors] +export type CreateWellThingWaterWellPostError = CreateWellThingWaterWellPostErrors[keyof CreateWellThingWaterWellPostErrors]; export type CreateWellThingWaterWellPostResponses = { - /** - * Successful Response - */ - 201: WellResponse -} + /** + * Successful Response + */ + 201: WellResponse; +}; -export type CreateWellThingWaterWellPostResponse = - CreateWellThingWaterWellPostResponses[keyof CreateWellThingWaterWellPostResponses] +export type CreateWellThingWaterWellPostResponse = CreateWellThingWaterWellPostResponses[keyof CreateWellThingWaterWellPostResponses]; export type GetWellByIdThingWaterWellThingIdGetData = { - body?: never - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: never - url: '/thing/water-well/{thing_id}' -} + body?: never; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: never; + url: '/thing/water-well/{thing_id}'; +}; export type GetWellByIdThingWaterWellThingIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetWellByIdThingWaterWellThingIdGetError = - GetWellByIdThingWaterWellThingIdGetErrors[keyof GetWellByIdThingWaterWellThingIdGetErrors] +export type GetWellByIdThingWaterWellThingIdGetError = GetWellByIdThingWaterWellThingIdGetErrors[keyof GetWellByIdThingWaterWellThingIdGetErrors]; export type GetWellByIdThingWaterWellThingIdGetResponses = { - /** - * Successful Response - */ - 200: WellResponse -} + /** + * Successful Response + */ + 200: WellResponse; +}; -export type GetWellByIdThingWaterWellThingIdGetResponse = - GetWellByIdThingWaterWellThingIdGetResponses[keyof GetWellByIdThingWaterWellThingIdGetResponses] +export type GetWellByIdThingWaterWellThingIdGetResponse = GetWellByIdThingWaterWellThingIdGetResponses[keyof GetWellByIdThingWaterWellThingIdGetResponses]; export type UpdateWaterWellThingWaterWellThingIdPatchData = { - body: UpdateWell - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: never - url: '/thing/water-well/{thing_id}' -} + body: UpdateWell; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: never; + url: '/thing/water-well/{thing_id}'; +}; export type UpdateWaterWellThingWaterWellThingIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateWaterWellThingWaterWellThingIdPatchError = - UpdateWaterWellThingWaterWellThingIdPatchErrors[keyof UpdateWaterWellThingWaterWellThingIdPatchErrors] +export type UpdateWaterWellThingWaterWellThingIdPatchError = UpdateWaterWellThingWaterWellThingIdPatchErrors[keyof UpdateWaterWellThingWaterWellThingIdPatchErrors]; export type UpdateWaterWellThingWaterWellThingIdPatchResponses = { - /** - * Successful Response - */ - 200: WellResponse -} + /** + * Successful Response + */ + 200: WellResponse; +}; -export type UpdateWaterWellThingWaterWellThingIdPatchResponse = - UpdateWaterWellThingWaterWellThingIdPatchResponses[keyof UpdateWaterWellThingWaterWellThingIdPatchResponses] +export type UpdateWaterWellThingWaterWellThingIdPatchResponse = UpdateWaterWellThingWaterWellThingIdPatchResponses[keyof UpdateWaterWellThingWaterWellThingIdPatchResponses]; export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetData = { - body?: never - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing/water-well/{thing_id}/well-screen' -} + body?: never; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing/water-well/{thing_id}/well-screen'; +}; export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetError = - GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors] +export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetError = GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetErrors]; -export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses = - { +export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses = { /** * Successful Response */ - 200: PageWellScreenResponse - } + 200: PageWellScreenResponse; +}; -export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = - GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses] +export type GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses[keyof GetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponses]; export type GetWellScreensThingWellScreenGetData = { - body?: never - path?: never - query?: { - /** - * Thing Id - */ - thing_id?: number - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing/well-screen' -} + body?: never; + path?: never; + query?: { + /** + * Thing Id + */ + thing_id?: number; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing/well-screen'; +}; export type GetWellScreensThingWellScreenGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetWellScreensThingWellScreenGetError = - GetWellScreensThingWellScreenGetErrors[keyof GetWellScreensThingWellScreenGetErrors] +export type GetWellScreensThingWellScreenGetError = GetWellScreensThingWellScreenGetErrors[keyof GetWellScreensThingWellScreenGetErrors]; export type GetWellScreensThingWellScreenGetResponses = { - /** - * Successful Response - */ - 200: PageWellScreenResponse -} + /** + * Successful Response + */ + 200: PageWellScreenResponse; +}; -export type GetWellScreensThingWellScreenGetResponse = - GetWellScreensThingWellScreenGetResponses[keyof GetWellScreensThingWellScreenGetResponses] +export type GetWellScreensThingWellScreenGetResponse = GetWellScreensThingWellScreenGetResponses[keyof GetWellScreensThingWellScreenGetResponses]; export type CreateWellscreenThingWellScreenPostData = { - body: CreateWellScreen - path?: never - query?: never - url: '/thing/well-screen' -} + body: CreateWellScreen; + path?: never; + query?: never; + url: '/thing/well-screen'; +}; export type CreateWellscreenThingWellScreenPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateWellscreenThingWellScreenPostError = - CreateWellscreenThingWellScreenPostErrors[keyof CreateWellscreenThingWellScreenPostErrors] +export type CreateWellscreenThingWellScreenPostError = CreateWellscreenThingWellScreenPostErrors[keyof CreateWellscreenThingWellScreenPostErrors]; export type CreateWellscreenThingWellScreenPostResponses = { - /** - * Successful Response - */ - 201: WellScreenResponse -} + /** + * Successful Response + */ + 201: WellScreenResponse; +}; -export type CreateWellscreenThingWellScreenPostResponse = - CreateWellscreenThingWellScreenPostResponses[keyof CreateWellscreenThingWellScreenPostResponses] +export type CreateWellscreenThingWellScreenPostResponse = CreateWellscreenThingWellScreenPostResponses[keyof CreateWellscreenThingWellScreenPostResponses]; export type GetWellScreenByIdThingWellScreenWellscreenIdGetData = { - body?: never - path: { - /** - * Wellscreen Id - */ - wellscreen_id: number - } - query?: never - url: '/thing/well-screen/{wellscreen_id}' -} + body?: never; + path: { + /** + * Wellscreen Id + */ + wellscreen_id: number; + }; + query?: never; + url: '/thing/well-screen/{wellscreen_id}'; +}; export type GetWellScreenByIdThingWellScreenWellscreenIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetWellScreenByIdThingWellScreenWellscreenIdGetError = - GetWellScreenByIdThingWellScreenWellscreenIdGetErrors[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetErrors] +export type GetWellScreenByIdThingWellScreenWellscreenIdGetError = GetWellScreenByIdThingWellScreenWellscreenIdGetErrors[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetErrors]; export type GetWellScreenByIdThingWellScreenWellscreenIdGetResponses = { - /** - * Successful Response - */ - 200: WellScreenResponse -} + /** + * Successful Response + */ + 200: WellScreenResponse; +}; -export type GetWellScreenByIdThingWellScreenWellscreenIdGetResponse = - GetWellScreenByIdThingWellScreenWellscreenIdGetResponses[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetResponses] +export type GetWellScreenByIdThingWellScreenWellscreenIdGetResponse = GetWellScreenByIdThingWellScreenWellscreenIdGetResponses[keyof GetWellScreenByIdThingWellScreenWellscreenIdGetResponses]; export type GetSpringsThingSpringGetData = { - body?: never - path?: never - query?: { - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Query - */ - query?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing/spring' -} + body?: never; + path?: never; + query?: { + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Query + */ + query?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing/spring'; +}; export type GetSpringsThingSpringGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetSpringsThingSpringGetError = - GetSpringsThingSpringGetErrors[keyof GetSpringsThingSpringGetErrors] +export type GetSpringsThingSpringGetError = GetSpringsThingSpringGetErrors[keyof GetSpringsThingSpringGetErrors]; export type GetSpringsThingSpringGetResponses = { - /** - * Successful Response - */ - 200: PageSpringResponse -} + /** + * Successful Response + */ + 200: PageSpringResponse; +}; -export type GetSpringsThingSpringGetResponse = - GetSpringsThingSpringGetResponses[keyof GetSpringsThingSpringGetResponses] +export type GetSpringsThingSpringGetResponse = GetSpringsThingSpringGetResponses[keyof GetSpringsThingSpringGetResponses]; export type CreateSpringThingSpringPostData = { - body: CreateSpring - path?: never - query?: never - url: '/thing/spring' -} + body: CreateSpring; + path?: never; + query?: never; + url: '/thing/spring'; +}; export type CreateSpringThingSpringPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateSpringThingSpringPostError = - CreateSpringThingSpringPostErrors[keyof CreateSpringThingSpringPostErrors] +export type CreateSpringThingSpringPostError = CreateSpringThingSpringPostErrors[keyof CreateSpringThingSpringPostErrors]; export type CreateSpringThingSpringPostResponses = { - /** - * Successful Response - */ - 201: SpringResponse -} + /** + * Successful Response + */ + 201: SpringResponse; +}; -export type CreateSpringThingSpringPostResponse = - CreateSpringThingSpringPostResponses[keyof CreateSpringThingSpringPostResponses] +export type CreateSpringThingSpringPostResponse = CreateSpringThingSpringPostResponses[keyof CreateSpringThingSpringPostResponses]; export type GetSpringByIdThingSpringThingIdGetData = { - body?: never - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: never - url: '/thing/spring/{thing_id}' -} + body?: never; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: never; + url: '/thing/spring/{thing_id}'; +}; export type GetSpringByIdThingSpringThingIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetSpringByIdThingSpringThingIdGetError = - GetSpringByIdThingSpringThingIdGetErrors[keyof GetSpringByIdThingSpringThingIdGetErrors] +export type GetSpringByIdThingSpringThingIdGetError = GetSpringByIdThingSpringThingIdGetErrors[keyof GetSpringByIdThingSpringThingIdGetErrors]; export type GetSpringByIdThingSpringThingIdGetResponses = { - /** - * Successful Response - */ - 200: SpringResponse -} + /** + * Successful Response + */ + 200: SpringResponse; +}; -export type GetSpringByIdThingSpringThingIdGetResponse = - GetSpringByIdThingSpringThingIdGetResponses[keyof GetSpringByIdThingSpringThingIdGetResponses] +export type GetSpringByIdThingSpringThingIdGetResponse = GetSpringByIdThingSpringThingIdGetResponses[keyof GetSpringByIdThingSpringThingIdGetResponses]; export type UpdateSpringThingSpringThingIdPatchData = { - body: UpdateSpring - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: never - url: '/thing/spring/{thing_id}' -} + body: UpdateSpring; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: never; + url: '/thing/spring/{thing_id}'; +}; export type UpdateSpringThingSpringThingIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateSpringThingSpringThingIdPatchError = - UpdateSpringThingSpringThingIdPatchErrors[keyof UpdateSpringThingSpringThingIdPatchErrors] +export type UpdateSpringThingSpringThingIdPatchError = UpdateSpringThingSpringThingIdPatchErrors[keyof UpdateSpringThingSpringThingIdPatchErrors]; export type UpdateSpringThingSpringThingIdPatchResponses = { - /** - * Successful Response - */ - 200: SpringResponse -} + /** + * Successful Response + */ + 200: SpringResponse; +}; -export type UpdateSpringThingSpringThingIdPatchResponse = - UpdateSpringThingSpringThingIdPatchResponses[keyof UpdateSpringThingSpringThingIdPatchResponses] +export type UpdateSpringThingSpringThingIdPatchResponse = UpdateSpringThingSpringThingIdPatchResponses[keyof UpdateSpringThingSpringThingIdPatchResponses]; export type GetThingIdLinksThingIdLinkGetData = { - body?: never - path?: never - query?: { - /** - * Filter - */ - filter?: string - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing/id-link' -} + body?: never; + path?: never; + query?: { + /** + * Filter + */ + filter?: string; + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing/id-link'; +}; export type GetThingIdLinksThingIdLinkGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetThingIdLinksThingIdLinkGetError = - GetThingIdLinksThingIdLinkGetErrors[keyof GetThingIdLinksThingIdLinkGetErrors] +export type GetThingIdLinksThingIdLinkGetError = GetThingIdLinksThingIdLinkGetErrors[keyof GetThingIdLinksThingIdLinkGetErrors]; export type GetThingIdLinksThingIdLinkGetResponses = { - /** - * Successful Response - */ - 200: PageThingIdLinkResponse -} + /** + * Successful Response + */ + 200: PageThingIdLinkResponse; +}; -export type GetThingIdLinksThingIdLinkGetResponse = - GetThingIdLinksThingIdLinkGetResponses[keyof GetThingIdLinksThingIdLinkGetResponses] +export type GetThingIdLinksThingIdLinkGetResponse = GetThingIdLinksThingIdLinkGetResponses[keyof GetThingIdLinksThingIdLinkGetResponses]; export type CreateThingIdLinkThingIdLinkPostData = { - body: CreateThingIdLink - path?: never - query?: never - url: '/thing/id-link' -} + body: CreateThingIdLink; + path?: never; + query?: never; + url: '/thing/id-link'; +}; export type CreateThingIdLinkThingIdLinkPostErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type CreateThingIdLinkThingIdLinkPostError = - CreateThingIdLinkThingIdLinkPostErrors[keyof CreateThingIdLinkThingIdLinkPostErrors] +export type CreateThingIdLinkThingIdLinkPostError = CreateThingIdLinkThingIdLinkPostErrors[keyof CreateThingIdLinkThingIdLinkPostErrors]; export type CreateThingIdLinkThingIdLinkPostResponses = { - /** - * Successful Response - */ - 201: ThingIdLinkResponse -} + /** + * Successful Response + */ + 201: ThingIdLinkResponse; +}; -export type CreateThingIdLinkThingIdLinkPostResponse = - CreateThingIdLinkThingIdLinkPostResponses[keyof CreateThingIdLinkThingIdLinkPostResponses] +export type CreateThingIdLinkThingIdLinkPostResponse = CreateThingIdLinkThingIdLinkPostResponses[keyof CreateThingIdLinkThingIdLinkPostResponses]; export type DeleteThingIdLinkThingIdLinkLinkIdDeleteData = { - body?: never - path: { - /** - * Link Id - */ - link_id: number - } - query?: never - url: '/thing/id-link/{link_id}' -} + body?: never; + path: { + /** + * Link Id + */ + link_id: number; + }; + query?: never; + url: '/thing/id-link/{link_id}'; +}; export type DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteThingIdLinkThingIdLinkLinkIdDeleteError = - DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors] +export type DeleteThingIdLinkThingIdLinkLinkIdDeleteError = DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteErrors]; export type DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = - DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses] +export type DeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses[keyof DeleteThingIdLinkThingIdLinkLinkIdDeleteResponses]; export type GetThingIdLinksThingIdLinkLinkIdGetData = { - body?: never - path: { - /** - * Link Id - */ - link_id: number - } - query?: never - url: '/thing/id-link/{link_id}' -} + body?: never; + path: { + /** + * Link Id + */ + link_id: number; + }; + query?: never; + url: '/thing/id-link/{link_id}'; +}; export type GetThingIdLinksThingIdLinkLinkIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetThingIdLinksThingIdLinkLinkIdGetError = - GetThingIdLinksThingIdLinkLinkIdGetErrors[keyof GetThingIdLinksThingIdLinkLinkIdGetErrors] +export type GetThingIdLinksThingIdLinkLinkIdGetError = GetThingIdLinksThingIdLinkLinkIdGetErrors[keyof GetThingIdLinksThingIdLinkLinkIdGetErrors]; export type GetThingIdLinksThingIdLinkLinkIdGetResponses = { - /** - * Successful Response - */ - 200: ThingIdLinkResponse -} + /** + * Successful Response + */ + 200: ThingIdLinkResponse; +}; -export type GetThingIdLinksThingIdLinkLinkIdGetResponse = - GetThingIdLinksThingIdLinkLinkIdGetResponses[keyof GetThingIdLinksThingIdLinkLinkIdGetResponses] +export type GetThingIdLinksThingIdLinkLinkIdGetResponse = GetThingIdLinksThingIdLinkLinkIdGetResponses[keyof GetThingIdLinksThingIdLinkLinkIdGetResponses]; export type UpdateThingIdLinkThingIdLinkLinkIdPatchData = { - body: UpdateThingIdLink - path: { - /** - * Link Id - */ - link_id: number - } - query?: never - url: '/thing/id-link/{link_id}' -} + body: UpdateThingIdLink; + path: { + /** + * Link Id + */ + link_id: number; + }; + query?: never; + url: '/thing/id-link/{link_id}'; +}; export type UpdateThingIdLinkThingIdLinkLinkIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateThingIdLinkThingIdLinkLinkIdPatchError = - UpdateThingIdLinkThingIdLinkLinkIdPatchErrors[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchErrors] +export type UpdateThingIdLinkThingIdLinkLinkIdPatchError = UpdateThingIdLinkThingIdLinkLinkIdPatchErrors[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchErrors]; export type UpdateThingIdLinkThingIdLinkLinkIdPatchResponses = { - /** - * Successful Response - */ - 200: ThingIdLinkResponse -} + /** + * Successful Response + */ + 200: ThingIdLinkResponse; +}; -export type UpdateThingIdLinkThingIdLinkLinkIdPatchResponse = - UpdateThingIdLinkThingIdLinkLinkIdPatchResponses[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchResponses] +export type UpdateThingIdLinkThingIdLinkLinkIdPatchResponse = UpdateThingIdLinkThingIdLinkLinkIdPatchResponses[keyof UpdateThingIdLinkThingIdLinkLinkIdPatchResponses]; export type GetThingsThingGetData = { - body?: never - path?: never - query?: { - /** - * Within - */ - within?: string - /** - * Query - */ - query?: string - /** - * Sort - */ - sort?: string - /** - * Order - */ - order?: string - /** - * Filter - */ - filter?: string - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing' -} + body?: never; + path?: never; + query?: { + /** + * Within + */ + within?: string; + /** + * Query + */ + query?: string; + /** + * Sort + */ + sort?: string; + /** + * Order + */ + order?: string; + /** + * Filter + */ + filter?: string; + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing'; +}; export type GetThingsThingGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetThingsThingGetError = - GetThingsThingGetErrors[keyof GetThingsThingGetErrors] +export type GetThingsThingGetError = GetThingsThingGetErrors[keyof GetThingsThingGetErrors]; export type GetThingsThingGetResponses = { - /** - * Successful Response - */ - 200: PageThingResponse -} + /** + * Successful Response + */ + 200: PageThingResponse; +}; -export type GetThingsThingGetResponse = - GetThingsThingGetResponses[keyof GetThingsThingGetResponses] +export type GetThingsThingGetResponse = GetThingsThingGetResponses[keyof GetThingsThingGetResponses]; export type DeleteThingThingThingIdDeleteData = { - body?: never - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: never - url: '/thing/{thing_id}' -} + body?: never; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: never; + url: '/thing/{thing_id}'; +}; export type DeleteThingThingThingIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteThingThingThingIdDeleteError = - DeleteThingThingThingIdDeleteErrors[keyof DeleteThingThingThingIdDeleteErrors] +export type DeleteThingThingThingIdDeleteError = DeleteThingThingThingIdDeleteErrors[keyof DeleteThingThingThingIdDeleteErrors]; export type DeleteThingThingThingIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteThingThingThingIdDeleteResponse = - DeleteThingThingThingIdDeleteResponses[keyof DeleteThingThingThingIdDeleteResponses] +export type DeleteThingThingThingIdDeleteResponse = DeleteThingThingThingIdDeleteResponses[keyof DeleteThingThingThingIdDeleteResponses]; export type GetThingByIdThingThingIdGetData = { - body?: never - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: never - url: '/thing/{thing_id}' -} + body?: never; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: never; + url: '/thing/{thing_id}'; +}; export type GetThingByIdThingThingIdGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetThingByIdThingThingIdGetError = - GetThingByIdThingThingIdGetErrors[keyof GetThingByIdThingThingIdGetErrors] +export type GetThingByIdThingThingIdGetError = GetThingByIdThingThingIdGetErrors[keyof GetThingByIdThingThingIdGetErrors]; export type GetThingByIdThingThingIdGetResponses = { - /** - * Successful Response - */ - 200: ThingResponse -} + /** + * Successful Response + */ + 200: ThingResponse; +}; -export type GetThingByIdThingThingIdGetResponse = - GetThingByIdThingThingIdGetResponses[keyof GetThingByIdThingThingIdGetResponses] +export type GetThingByIdThingThingIdGetResponse = GetThingByIdThingThingIdGetResponses[keyof GetThingByIdThingThingIdGetResponses]; export type GetThingIdLinksThingThingIdIdLinkGetData = { - body?: never - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing/{thing_id}/id-link' -} + body?: never; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing/{thing_id}/id-link'; +}; export type GetThingIdLinksThingThingIdIdLinkGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetThingIdLinksThingThingIdIdLinkGetError = - GetThingIdLinksThingThingIdIdLinkGetErrors[keyof GetThingIdLinksThingThingIdIdLinkGetErrors] +export type GetThingIdLinksThingThingIdIdLinkGetError = GetThingIdLinksThingThingIdIdLinkGetErrors[keyof GetThingIdLinksThingThingIdIdLinkGetErrors]; export type GetThingIdLinksThingThingIdIdLinkGetResponses = { - /** - * Successful Response - */ - 200: PageThingIdLinkResponse -} + /** + * Successful Response + */ + 200: PageThingIdLinkResponse; +}; -export type GetThingIdLinksThingThingIdIdLinkGetResponse = - GetThingIdLinksThingThingIdIdLinkGetResponses[keyof GetThingIdLinksThingThingIdIdLinkGetResponses] +export type GetThingIdLinksThingThingIdIdLinkGetResponse = GetThingIdLinksThingThingIdIdLinkGetResponses[keyof GetThingIdLinksThingThingIdIdLinkGetResponses]; export type GetThingDeploymentsThingThingIdDeploymentGetData = { - body?: never - path: { - /** - * Thing Id - */ - thing_id: number - } - query?: { - /** - * Page - * Page number - */ - page?: number - /** - * Size - */ - size?: number - } - url: '/thing/{thing_id}/deployment' -} + body?: never; + path: { + /** + * Thing Id + */ + thing_id: number; + }; + query?: { + /** + * Page + * Page number + */ + page?: number; + /** + * Size + */ + size?: number; + }; + url: '/thing/{thing_id}/deployment'; +}; export type GetThingDeploymentsThingThingIdDeploymentGetErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type GetThingDeploymentsThingThingIdDeploymentGetError = - GetThingDeploymentsThingThingIdDeploymentGetErrors[keyof GetThingDeploymentsThingThingIdDeploymentGetErrors] +export type GetThingDeploymentsThingThingIdDeploymentGetError = GetThingDeploymentsThingThingIdDeploymentGetErrors[keyof GetThingDeploymentsThingThingIdDeploymentGetErrors]; export type GetThingDeploymentsThingThingIdDeploymentGetResponses = { - /** - * Successful Response - */ - 200: PageDeploymentResponse -} + /** + * Successful Response + */ + 200: PageDeploymentResponse; +}; -export type GetThingDeploymentsThingThingIdDeploymentGetResponse = - GetThingDeploymentsThingThingIdDeploymentGetResponses[keyof GetThingDeploymentsThingThingIdDeploymentGetResponses] +export type GetThingDeploymentsThingThingIdDeploymentGetResponse = GetThingDeploymentsThingThingIdDeploymentGetResponses[keyof GetThingDeploymentsThingThingIdDeploymentGetResponses]; export type DeleteWellScreenThingWellScreenWellScreenIdDeleteData = { - body?: never - path: { - /** - * Well Screen Id - */ - well_screen_id: number - } - query?: never - url: '/thing/well-screen/{well_screen_id}' -} + body?: never; + path: { + /** + * Well Screen Id + */ + well_screen_id: number; + }; + query?: never; + url: '/thing/well-screen/{well_screen_id}'; +}; export type DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type DeleteWellScreenThingWellScreenWellScreenIdDeleteError = - DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors] +export type DeleteWellScreenThingWellScreenWellScreenIdDeleteError = DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteErrors]; export type DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses = { - /** - * Successful Response - */ - 204: void -} + /** + * Successful Response + */ + 204: void; +}; -export type DeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = - DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses] +export type DeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses[keyof DeleteWellScreenThingWellScreenWellScreenIdDeleteResponses]; export type UpdateWellScreenThingWellScreenWellScreenIdPatchData = { - body: UpdateWellScreen - path: { - /** - * Well Screen Id - */ - well_screen_id: number - } - query?: never - url: '/thing/well-screen/{well_screen_id}' -} + body: UpdateWellScreen; + path: { + /** + * Well Screen Id + */ + well_screen_id: number; + }; + query?: never; + url: '/thing/well-screen/{well_screen_id}'; +}; export type UpdateWellScreenThingWellScreenWellScreenIdPatchErrors = { - /** - * Validation Error - */ - 422: HttpValidationError -} + /** + * Validation Error + */ + 422: HttpValidationError; +}; -export type UpdateWellScreenThingWellScreenWellScreenIdPatchError = - UpdateWellScreenThingWellScreenWellScreenIdPatchErrors[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchErrors] +export type UpdateWellScreenThingWellScreenWellScreenIdPatchError = UpdateWellScreenThingWellScreenWellScreenIdPatchErrors[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchErrors]; export type UpdateWellScreenThingWellScreenWellScreenIdPatchResponses = { - /** - * Successful Response - */ - 200: WellScreenResponse -} + /** + * Successful Response + */ + 200: WellScreenResponse; +}; -export type UpdateWellScreenThingWellScreenWellScreenIdPatchResponse = - UpdateWellScreenThingWellScreenWellScreenIdPatchResponses[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchResponses] +export type UpdateWellScreenThingWellScreenWellScreenIdPatchResponse = UpdateWellScreenThingWellScreenWellScreenIdPatchResponses[keyof UpdateWellScreenThingWellScreenWellScreenIdPatchResponses]; export type ClientOptions = { - baseUrl: 'https://ocotillo-api-staging.newmexicowaterdata.org' | (string & {}) -} + baseUrl: 'https://ocotillo-api-staging.newmexicowaterdata.org' | (string & {}); +}; \ No newline at end of file diff --git a/src/generated/zod.gen.ts b/src/generated/zod.gen.ts index 0de1f4ec..bf20bdc6 100644 --- a/src/generated/zod.gen.ts +++ b/src/generated/zod.gen.ts @@ -1,399 +1,534 @@ // This file is auto-generated by @hey-api/openapi-ts -import { z } from 'zod' +import { z } from 'zod'; /** * release_status */ export const zReleaseStatus = z.enum([ - 'draft', - 'provisional', - 'final', - 'published', - 'archived', - 'public', - 'private', -]) + 'draft', + 'provisional', + 'final', + 'published', + 'archived', + 'public', + 'private' +]); /** * address_type */ export const zAddressType = z.enum([ - 'Primary', - 'Work', - 'Personal', - 'Mailing', - 'Physical', -]) + 'Primary', + 'Work', + 'Personal', + 'Mailing', + 'Physical' +]); /** * AddressResponse * Response schema for address details. */ export const zAddressResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - contact_id: z.int(), - address_line_1: z.string(), - address_line_2: z.optional(z.union([z.string(), z.null()])), - city: z.string(), - state: z.string(), - postal_code: z.string(), - country: z.string(), - address_type: zAddressType, -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + contact_id: z.int(), + address_line_1: z.string(), + address_line_2: z.optional(z.union([ + z.string(), + z.null() + ])), + city: z.string(), + state: z.string(), + postal_code: z.string(), + country: z.string(), + address_type: zAddressType +}); /** * AssetResponse */ export const zAssetResponse = z.object({ - name: z.string(), - label: z.optional(z.union([z.string(), z.null()])), - storage_path: z.string(), - mime_type: z.string(), - size: z.int(), - uri: z.string(), - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - storage_service: z.string(), - signed_url: z.optional(z.union([z.string(), z.null()])), -}) + name: z.string(), + label: z.optional(z.union([ + z.string(), + z.null() + ])), + storage_path: z.string(), + mime_type: z.string(), + size: z.int(), + uri: z.string(), + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + storage_service: z.string(), + signed_url: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * AuthorResponse * Schema for the response of an author. */ export const zAuthorResponse = z.object({ - id: z.int(), - name: z.string(), - email: z.optional(z.union([z.string(), z.null()])), - affiliation: z.optional(z.union([z.string(), z.null()])), -}) + id: z.int(), + name: z.string(), + email: z.optional(z.union([ + z.string(), + z.null() + ])), + affiliation: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * Body_upload_asset_asset_upload_post */ export const zBodyUploadAssetAssetUploadPost = z.object({ - file: z.string(), -}) + file: z.string() +}); /** * role */ export const zRole = z.enum([ - 'Unknown', - 'Owner', - 'Manager', - 'Operator', - 'Driller', - 'Geologist', - 'Hydrologist', - 'Hydrogeologist', - 'Engineer', - 'Organization', - 'Specialist', - 'Technician', - 'Research Assistant', - 'Research Scientist', - 'Graduate Student', - 'Biologist', - 'Lab Manager', - 'Publications Manager', - 'Software Developer', -]) + 'Unknown', + 'Owner', + 'Manager', + 'Operator', + 'Driller', + 'Geologist', + 'Hydrologist', + 'Hydrogeologist', + 'Engineer', + 'Organization', + 'Specialist', + 'Technician', + 'Research Assistant', + 'Research Scientist', + 'Graduate Student', + 'Biologist', + 'Lab Manager', + 'Publications Manager', + 'Software Developer' +]); /** * contact_type */ export const zContactType = z.enum([ - 'Primary', - 'Secondary', - 'Field Event Participant', -]) + 'Primary', + 'Secondary', + 'Field Event Participant' +]); /** * email_type */ -export const zEmailType = z.enum(['Primary', 'Work', 'Personal']) +export const zEmailType = z.enum([ + 'Primary', + 'Work', + 'Personal' +]); /** * EmailResponse * Response schema for email details. */ export const zEmailResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - contact_id: z.int(), - email: z.string(), - email_type: zEmailType, -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + contact_id: z.int(), + email: z.string(), + email_type: zEmailType +}); /** * PhoneResponse * Response schema for phone details. */ export const zPhoneResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - contact_id: z.int(), - phone_number: z.optional(z.union([z.string(), z.null()])), - phone_type: z.string(), - nma_phone_number: z.optional(z.union([z.string(), z.null()])), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + contact_id: z.int(), + phone_number: z.optional(z.union([ + z.string(), + z.null() + ])), + phone_type: z.string() +}); /** * elevation_method */ export const zElevationMethod = z.enum([ - 'Altimeter', - 'Differentially corrected GPS', - 'Survey-grade GPS', - 'Global positioning system (GPS)', - 'LiDAR DEM', - 'Level or other survey method', - 'Interpolated from topographic map', - 'Interpolated from digital elevation model (DEM)', - 'Reported', - 'Survey-grade Global Navigation Satellite Sys, Lvl1', - 'USGS National Elevation Dataset (NED)', - 'Unknown', -]) + 'Altimeter', + 'Differentially corrected GPS', + 'Survey-grade GPS', + 'Global positioning system (GPS)', + 'LiDAR DEM', + 'Level or other survey method', + 'Interpolated from topographic map', + 'Interpolated from digital elevation model (DEM)', + 'Reported', + 'Survey-grade Global Navigation Satellite Sys, Lvl1', + 'USGS National Elevation Dataset (NED)', + 'Unknown' +]); /** * coordinate_method */ export const zCoordinateMethod = z.enum([ - 'Unknown', - 'Differentially corrected GPS', - 'Survey-grade global positioning system (SGPS)', - 'GPS, uncorrected', - 'Interpolated from map', - 'Interpolated from DEM', - 'Reported', - 'Transit, theodolite, or other survey method', -]) + 'Unknown', + 'Differentially corrected GPS', + 'Survey-grade global positioning system (SGPS)', + 'GPS, uncorrected', + 'Interpolated from map', + 'Interpolated from DEM', + 'Reported', + 'Transit, theodolite, or other survey method' +]); /** * LocationResponse * Response schema for sample location details. */ export const zLocationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - notes: z.union([z.string(), z.null()]), - point: z.string(), - elevation: z.union([z.number(), z.null()]), - horizontal_datum: z.optional(z.string()).default('WGS84'), - vertical_datum: z.optional(z.string()).default('NAVD88'), - elevation_accuracy: z.union([z.number(), z.null()]), - elevation_method: z.union([zElevationMethod, z.null()]), - coordinate_accuracy: z.union([z.number(), z.null()]), - coordinate_method: z.union([zCoordinateMethod, z.null()]), - state: z.union([z.string(), z.null()]), - county: z.union([z.string(), z.null()]), - quad_name: z.union([z.string(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + notes: z.union([ + z.string(), + z.null() + ]), + point: z.string(), + elevation: z.union([ + z.number(), + z.null() + ]), + horizontal_datum: z.optional(z.string()).default('WGS84'), + vertical_datum: z.optional(z.string()).default('NAVD88'), + elevation_accuracy: z.union([ + z.number(), + z.null() + ]), + elevation_method: z.union([ + zElevationMethod, + z.null() + ]), + coordinate_accuracy: z.union([ + z.number(), + z.null() + ]), + coordinate_method: z.union([ + zCoordinateMethod, + z.null() + ]), + state: z.union([ + z.string(), + z.null() + ]), + county: z.union([ + z.string(), + z.null() + ]), + quad_name: z.union([ + z.string(), + z.null() + ]) +}); /** * well_purpose */ export const zWellPurpose = z.enum([ - 'Unknown', - 'Open, unequipped well', - 'Commercial', - 'Domestic', - 'Power generation', - 'Irrigation', - 'Livestock', - 'Mining', - 'Industrial', - 'Observation', - 'Public supply', - 'Shared domestic', - 'Institutional', - 'Unused', - 'Exploration', - 'Monitoring', - 'Production', - 'Injection', -]) + 'Unknown', + 'Open, unequipped well', + 'Commercial', + 'Domestic', + 'Power generation', + 'Irrigation', + 'Livestock', + 'Mining', + 'Industrial', + 'Observation', + 'Public supply', + 'Shared domestic', + 'Institutional', + 'Unused', + 'Exploration', + 'Monitoring', + 'Production', + 'Injection' +]); /** * casing_material */ -export const zCasingMaterial = z.enum(['PVC', 'Steel', 'Concrete']) +export const zCasingMaterial = z.enum([ + 'PVC', + 'Steel', + 'Concrete' +]); /** * ThingResponse */ export const zThingResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - thing_type: z.string(), - current_location: z.union([zLocationResponse, z.null()]), - first_visit_date: z.union([z.iso.date(), z.null()]), - spring_type: z.optional(z.union([z.string(), z.null()])), - well_purposes: z.optional(z.array(zWellPurpose)).default([]), - well_depth: z.optional(z.union([z.number(), z.null()])), - well_depth_unit: z.optional(z.string()).default('ft'), - hole_depth: z.optional(z.union([z.number(), z.null()])), - hole_depth_unit: z.optional(z.string()).default('ft'), - well_casing_diameter: z.optional(z.union([z.number(), z.null()])), - well_casing_diameter_unit: z.optional(z.string()).default('in'), - well_casing_depth: z.optional(z.union([z.number(), z.null()])), - well_casing_depth_unit: z.optional(z.string()).default('ft'), - well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), - well_construction_notes: z.optional(z.union([z.string(), z.null()])), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + thing_type: z.string(), + current_location: z.union([ + zLocationResponse, + z.null() + ]), + first_visit_date: z.union([ + z.iso.date(), + z.null() + ]), + spring_type: z.optional(z.union([ + z.string(), + z.null() + ])), + well_purposes: z.optional(z.array(zWellPurpose)).default([]), + well_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + well_depth_unit: z.optional(z.string()).default('ft'), + hole_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + hole_depth_unit: z.optional(z.string()).default('ft'), + well_casing_diameter: z.optional(z.union([ + z.number(), + z.null() + ])), + well_casing_diameter_unit: z.optional(z.string()).default('in'), + well_casing_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + well_casing_depth_unit: z.optional(z.string()).default('ft'), + well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), + well_construction_notes: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * ContactResponse * Response schema for contact details. */ export const zContactResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.union([z.string(), z.null()]), - organization: z.union([z.string(), z.null()]), - role: zRole, - contact_type: zContactType, - emails: z.optional(z.array(zEmailResponse)).default([]), - phones: z.optional(z.array(zPhoneResponse)).default([]), - addresses: z.optional(z.array(zAddressResponse)).default([]), - things: z.optional(z.array(zThingResponse)).default([]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.union([ + z.string(), + z.null() + ]), + organization: z.union([ + z.string(), + z.null() + ]), + role: zRole, + contact_type: zContactType, + incomplete_nma_phones: z.optional(z.array(z.string())).default([]), + emails: z.optional(z.array(zEmailResponse)).default([]), + phones: z.optional(z.array(zPhoneResponse)).default([]), + addresses: z.optional(z.array(zAddressResponse)).default([]), + things: z.optional(z.array(zThingResponse)).default([]) +}); /** * CreateAddress * Schema for creating an address. */ export const zCreateAddress = z.object({ - release_status: z.optional(zReleaseStatus), - contact_id: z.optional(z.union([z.int(), z.null()])), - address_line_1: z.string(), - address_line_2: z.optional(z.union([z.string(), z.null()])), - city: z.string(), - state: z.optional(z.string()).default('NM'), - postal_code: z.string(), - country: z.optional(z.string()).default('United States'), - address_type: z.optional(zAddressType), -}) + release_status: z.optional(zReleaseStatus), + contact_id: z.optional(z.union([ + z.int(), + z.null() + ])), + address_line_1: z.string(), + address_line_2: z.optional(z.union([ + z.string(), + z.null() + ])), + city: z.string(), + state: z.optional(z.string()).default('NM'), + postal_code: z.string(), + country: z.optional(z.string()).default('United States'), + address_type: z.optional(zAddressType) +}); /** * CreateAsset */ export const zCreateAsset = z.object({ - name: z.string(), - label: z.optional(z.union([z.string(), z.null()])), - storage_path: z.string(), - mime_type: z.string(), - size: z.int(), - uri: z.string(), - release_status: z.optional(zReleaseStatus), - thing_id: z.optional(z.union([z.int(), z.null()])), -}) + name: z.string(), + label: z.optional(z.union([ + z.string(), + z.null() + ])), + storage_path: z.string(), + mime_type: z.string(), + size: z.int(), + uri: z.string(), + release_status: z.optional(zReleaseStatus), + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])) +}); /** * CreateEmail * Schema for creating an email. */ export const zCreateEmail = z.object({ - email: z.string(), - release_status: z.optional(zReleaseStatus), - contact_id: z.optional(z.union([z.int(), z.null()])), - email_type: z.optional(zEmailType), -}) + email: z.string(), + release_status: z.optional(zReleaseStatus), + contact_id: z.optional(z.union([ + z.int(), + z.null() + ])), + email_type: z.optional(zEmailType) +}); /** * phone_type */ -export const zPhoneType = z.enum(['Primary', 'Work', 'Home', 'Mobile']) +export const zPhoneType = z.enum([ + 'Primary', + 'Work', + 'Home', + 'Mobile' +]); /** * CreatePhone * Schema for creating a phone number. */ export const zCreatePhone = z.object({ - phone_number: z.string(), - release_status: z.optional(zReleaseStatus), - contact_id: z.optional(z.union([z.int(), z.null()])), - phone_type: z.optional(zPhoneType), - nma_phone_number: z.optional(z.union([z.string(), z.null()])), -}) + phone_number: z.string(), + release_status: z.optional(zReleaseStatus), + contact_id: z.optional(z.union([ + z.int(), + z.null() + ])), + phone_type: z.optional(zPhoneType) +}); /** * CreateContact * Schema for creating a contact. */ export const zCreateContact = z.object({ - name: z.optional(z.union([z.string(), z.null()])), - organization: z.optional(z.union([z.string(), z.null()])), - release_status: z.optional(zReleaseStatus), - thing_id: z.int(), - role: zRole, - contact_type: z.optional(zContactType), - emails: z.optional(z.union([z.array(zCreateEmail), z.null()])), - phones: z.optional(z.union([z.array(zCreatePhone), z.null()])), - addresses: z.optional(z.union([z.array(zCreateAddress), z.null()])), -}) + name: z.optional(z.union([ + z.string(), + z.null() + ])), + organization: z.optional(z.union([ + z.string(), + z.null() + ])), + release_status: z.optional(zReleaseStatus), + thing_id: z.int(), + role: zRole, + contact_type: z.optional(zContactType), + emails: z.optional(z.union([ + z.array(zCreateEmail), + z.null() + ])), + phones: z.optional(z.union([ + z.array(zCreatePhone), + z.null() + ])), + addresses: z.optional(z.union([ + z.array(zCreateAddress), + z.null() + ])) +}); /** * unit */ export const zUnit = z.enum([ - 'dimensionless', - 'ft', - 'ftbgs', - 'F', - 'mg/L', - 'mW/m²', - 'W/m²', - 'W/m·K', - 'm²/s', - 'deg C', - 'deg second', - 'deg minute', - 'second', - 'minute', - 'hour', -]) + 'dimensionless', + 'ft', + 'ftbgs', + 'F', + 'mg/L', + 'mW/m²', + 'W/m²', + 'W/m·K', + 'm²/s', + 'deg C', + 'deg second', + 'deg minute', + 'second', + 'minute', + 'hour' +]); /** * CreateGroundwaterLevelObservation */ export const zCreateGroundwaterLevelObservation = z.object({ - parameter_id: z.int(), - observation_datetime: z.iso.datetime({ - offset: true, - }), - release_status: z.optional(zReleaseStatus), - sample_id: z.int(), - sensor_id: z.int(), - value: z.union([z.number(), z.null()]), - unit: z.union([zUnit, z.null()]), - measuring_point_height: z.number(), - groundwater_level_reason: z.string(), -}) + parameter_id: z.int(), + observation_datetime: z.iso.datetime({ + offset: true + }), + release_status: z.optional(zReleaseStatus), + sample_id: z.int(), + sensor_id: z.int(), + value: z.union([ + z.number(), + z.null() + ]), + unit: z.union([ + zUnit, + z.null() + ]), + measuring_point_height: z.number(), + groundwater_level_reason: z.string() +}); /** * CreateGroup * Schema for creating a group. */ export const zCreateGroup = z.object({ - project_area: z.optional(z.union([z.string(), z.null()])), - description: z.optional(z.union([z.string(), z.null()])), - parent_group_id: z.optional(z.union([z.int(), z.null()])), - release_status: z.optional(zReleaseStatus), - name: z.string(), -}) + project_area: z.optional(z.union([ + z.string(), + z.null() + ])), + description: z.optional(z.union([ + z.string(), + z.null() + ])), + parent_group_id: z.optional(z.union([ + z.int(), + z.null() + ])), + release_status: z.optional(zReleaseStatus), + name: z.string() +}); /** * CreateLexiconCategory @@ -401,9 +536,12 @@ export const zCreateGroup = z.object({ * This model can be extended to include additional fields as needed. */ export const zCreateLexiconCategory = z.object({ - name: z.string(), - description: z.optional(z.union([z.string(), z.null()])), -}) + name: z.string(), + description: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * CreateLexiconTerm @@ -411,10 +549,10 @@ export const zCreateLexiconCategory = z.object({ * This model can be extended to include additional fields as needed. */ export const zCreateLexiconTerm = z.object({ - term: z.string(), - definition: z.string(), - categories: z.array(z.string()), -}) + term: z.string(), + definition: z.string(), + categories: z.array(z.string()) +}); /** * CreateLexiconTriple @@ -422,479 +560,632 @@ export const zCreateLexiconTerm = z.object({ * This model can be extended to include additional fields as needed. */ export const zCreateLexiconTriple = z.object({ - subject: zCreateLexiconTerm, - predicate: z.string(), - object_: zCreateLexiconTerm, -}) + subject: zCreateLexiconTerm, + predicate: z.string(), + object_: zCreateLexiconTerm +}); /** * CreateLocation * Schema for creating a sample location. */ export const zCreateLocation = z.object({ - point: z.string(), - release_status: z.optional(zReleaseStatus), - notes: z.optional(z.union([z.string(), z.null()])), - elevation: z.number(), - elevation_accuracy: z.optional(z.union([z.number(), z.null()])), - elevation_method: z.optional(z.union([zElevationMethod, z.null()])), - coordinate_accuracy: z.optional(z.union([z.number(), z.null()])), - coordinate_method: z.optional(z.union([zCoordinateMethod, z.null()])), -}) + point: z.string(), + release_status: z.optional(zReleaseStatus), + notes: z.optional(z.union([ + z.string(), + z.null() + ])), + elevation: z.number(), + elevation_accuracy: z.optional(z.union([ + z.number(), + z.null() + ])), + elevation_method: z.optional(z.union([ + zElevationMethod, + z.null() + ])), + coordinate_accuracy: z.optional(z.union([ + z.number(), + z.null() + ])), + coordinate_method: z.optional(z.union([ + zCoordinateMethod, + z.null() + ])) +}); /** * publication_type */ export const zPublicationType = z.enum([ - 'Map', - 'Report', - 'Dataset', - 'Model', - 'Software', - 'Paper', - 'Thesis', - 'Book', - 'Conference', - 'Webpage', -]) + 'Map', + 'Report', + 'Dataset', + 'Model', + 'Software', + 'Paper', + 'Thesis', + 'Book', + 'Conference', + 'Webpage' +]); /** * CreatePublication * Schema for creating a new publication. */ export const zCreatePublication = z.object({ - title: z.string(), - authors: z.array(z.string()), - year: z.int(), - doi: z.optional(z.union([z.string(), z.null()])), - url: z.optional(z.union([z.string(), z.null()])), - publication_type: zPublicationType, -}) + title: z.string(), + authors: z.array(z.string()), + year: z.int(), + doi: z.optional(z.union([ + z.string(), + z.null() + ])), + url: z.optional(z.union([ + z.string(), + z.null() + ])), + publication_type: zPublicationType +}); /** * sample_matrix */ -export const zSampleMatrix = z.enum(['water', 'groundwater', 'soil']) +export const zSampleMatrix = z.enum([ + 'water', + 'groundwater', + 'soil' +]); /** * sample_method */ export const zSampleMethod = z.enum([ - 'Unknown', - 'Airline measurement', - 'Analog or graphic recorder', - 'Calibrated airline measurement', - 'Differential GPS; especially applicable to surface expression of ground water', - 'Estimated', - 'Transducer', - 'Pressure-gage measurement', - 'Calibrated pressure-gage measurement', - 'Interpreted from geophysical logs', - 'Manometer', - 'Non-recording gage', - 'Observed (required for F, N, and W water level status)', - 'Sonic water level meter (acoustic pulse)', - 'Reported, method not known', - 'Steel-tape measurement', - 'Electric tape measurement (E-probe)', - 'Unknown (for legacy data only; not for new data entry)', - 'Calibrated electric tape; accuracy of equipment has been checked', - 'Calibrated electric cable', - 'Uncalibrated electric cable', - 'Continuous acoustic sounder', - 'Measurement not attempted', - 'null placeholder', - 'bailer', - 'faucet at well head', - 'faucet or outlet at house', - 'grab sample', - 'pump', - 'thief sampler', -]) + 'Unknown', + 'Airline measurement', + 'Analog or graphic recorder', + 'Calibrated airline measurement', + 'Differential GPS; especially applicable to surface expression of ground water', + 'Estimated', + 'Transducer', + 'Pressure-gage measurement', + 'Calibrated pressure-gage measurement', + 'Interpreted from geophysical logs', + 'Manometer', + 'Non-recording gage', + 'Observed (required for F, N, and W water level status)', + 'Sonic water level meter (acoustic pulse)', + 'Reported, method not known', + 'Steel-tape measurement', + 'Electric tape measurement (E-probe)', + 'Unknown (for legacy data only; not for new data entry)', + 'Calibrated electric tape; accuracy of equipment has been checked', + 'Calibrated electric cable', + 'Uncalibrated electric cable', + 'Continuous acoustic sounder', + 'Measurement not attempted', + 'null placeholder', + 'bailer', + 'faucet at well head', + 'faucet or outlet at house', + 'grab sample', + 'pump', + 'thief sampler' +]); /** * qc_type */ export const zQcType = z.enum([ - 'Normal', - 'Duplicate', - 'Split', - 'Field Blank', - 'Trip Blank', - 'Equipment Blank', -]) + 'Normal', + 'Duplicate', + 'Split', + 'Field Blank', + 'Trip Blank', + 'Equipment Blank' +]); /** * CreateSample */ export const zCreateSample = z.object({ - sample_date: z.iso.datetime({ - offset: true, - }), - depth_top: z.optional(z.union([z.number(), z.null()])), - depth_bottom: z.optional(z.union([z.number(), z.null()])), - release_status: z.optional(zReleaseStatus), - field_activity_id: z.int(), - field_event_participant_id: z.int(), - sample_name: z.string(), - sample_matrix: zSampleMatrix, - sample_method: zSampleMethod, - qc_type: zQcType, - notes: z.optional(z.union([z.string(), z.null()])), -}) + sample_date: z.iso.datetime({ + offset: true + }), + depth_top: z.optional(z.union([ + z.number(), + z.null() + ])), + depth_bottom: z.optional(z.union([ + z.number(), + z.null() + ])), + release_status: z.optional(zReleaseStatus), + field_activity_id: z.int(), + field_event_participant_id: z.int(), + sample_name: z.string(), + sample_matrix: zSampleMatrix, + sample_method: zSampleMethod, + qc_type: zQcType, + notes: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * sensor_type */ export const zSensorType = z.enum([ - 'Pressure Transducer', - 'Data Logger', - 'Barometer', - 'Acoustic Sounder', - 'Precip Collector', - 'Camera', - 'Soil Moisture Sensor', - 'Tipping Bucket', -]) + 'Pressure Transducer', + 'Data Logger', + 'Barometer', + 'Acoustic Sounder', + 'Precip Collector', + 'Camera', + 'Soil Moisture Sensor', + 'Tipping Bucket' +]); /** * CreateSensor * Schema for creating a new sensor. */ export const zCreateSensor = z.object({ - release_status: z.optional(zReleaseStatus), - name: z.string(), - sensor_type: zSensorType, - model: z.optional(z.union([z.string(), z.null()])), - serial_no: z.optional(z.union([z.string(), z.null()])), - pcn_number: z.optional(z.union([z.string(), z.null()])), - owner_agency: z.optional(z.union([z.string(), z.null()])), - sensor_status: z.optional(z.union([z.string(), z.null()])), - notes: z.optional(z.union([z.string(), z.null()])), -}) + release_status: z.optional(zReleaseStatus), + name: z.string(), + sensor_type: zSensorType, + model: z.optional(z.union([ + z.string(), + z.null() + ])), + serial_no: z.optional(z.union([ + z.string(), + z.null() + ])), + pcn_number: z.optional(z.union([ + z.string(), + z.null() + ])), + owner_agency: z.optional(z.union([ + z.string(), + z.null() + ])), + sensor_status: z.optional(z.union([ + z.string(), + z.null() + ])), + notes: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * spring_type */ export const zSpringType = z.enum([ - 'Artesian', - 'Ephemeral', - 'Perennial', - 'Thermal', - 'Mineral', -]) + 'Artesian', + 'Ephemeral', + 'Perennial', + 'Thermal', + 'Mineral' +]); /** * CreateSpring * Schema for creating a spring. */ export const zCreateSpring = z.object({ - release_status: z.optional(zReleaseStatus), - location_id: z.union([z.int(), z.null()]), - group_id: z.optional(z.union([z.int(), z.null()])), - name: z.string(), - first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), - spring_type: z.optional(z.union([zSpringType, z.null()])), -}) + release_status: z.optional(zReleaseStatus), + location_id: z.union([ + z.int(), + z.null() + ]), + group_id: z.optional(z.union([ + z.int(), + z.null() + ])), + name: z.string(), + first_visit_date: z.optional(z.union([ + z.iso.date(), + z.null() + ])), + spring_type: z.optional(z.union([ + zSpringType, + z.null() + ])) +}); /** * CreateThingIdLink * Schema for creating a link between a thing and its ID. */ export const zCreateThingIdLink = z.object({ - thing_id: z.int(), - relation: z.string(), - alternate_id: z.string(), - alternate_organization: z.string(), -}) + thing_id: z.int(), + relation: z.string(), + alternate_id: z.string(), + alternate_organization: z.string() +}); /** * CreateWaterChemistryObservation */ export const zCreateWaterChemistryObservation = z.object({ - parameter_id: z.int(), - observation_datetime: z.iso.datetime({ - offset: true, - }), - release_status: z.optional(zReleaseStatus), - sample_id: z.int(), - sensor_id: z.int(), - value: z.union([z.number(), z.null()]), - unit: z.union([zUnit, z.null()]), -}) + parameter_id: z.int(), + observation_datetime: z.iso.datetime({ + offset: true + }), + release_status: z.optional(zReleaseStatus), + sample_id: z.int(), + sensor_id: z.int(), + value: z.union([ + z.number(), + z.null() + ]), + unit: z.union([ + zUnit, + z.null() + ]) +}); /** * CreateWell * Schema for creating a well. */ export const zCreateWell = z.object({ - well_depth: z.optional(z.union([z.number().gt(0), z.null()])), - hole_depth: z.optional(z.union([z.number().gt(0), z.null()])), - well_casing_depth: z.optional(z.union([z.number().gt(0), z.null()])), - release_status: z.optional(zReleaseStatus), - location_id: z.union([z.int(), z.null()]), - group_id: z.optional(z.union([z.int(), z.null()])), - name: z.string(), - first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), - well_purposes: z.optional(z.union([z.array(zWellPurpose), z.null()])), - well_construction_notes: z.optional(z.union([z.string(), z.null()])), - well_casing_diameter: z.optional(z.union([z.number().gt(0), z.null()])), - well_casing_materials: z.optional( - z.union([z.array(zCasingMaterial), z.null()]) - ), -}) + well_depth: z.optional(z.union([ + z.number().gt(0), + z.null() + ])), + hole_depth: z.optional(z.union([ + z.number().gt(0), + z.null() + ])), + well_casing_depth: z.optional(z.union([ + z.number().gt(0), + z.null() + ])), + release_status: z.optional(zReleaseStatus), + location_id: z.union([ + z.int(), + z.null() + ]), + group_id: z.optional(z.union([ + z.int(), + z.null() + ])), + name: z.string(), + first_visit_date: z.optional(z.union([ + z.iso.date(), + z.null() + ])), + well_purposes: z.optional(z.union([ + z.array(zWellPurpose), + z.null() + ])), + well_construction_notes: z.optional(z.union([ + z.string(), + z.null() + ])), + well_casing_diameter: z.optional(z.union([ + z.number().gt(0), + z.null() + ])), + well_casing_materials: z.optional(z.union([ + z.array(zCasingMaterial), + z.null() + ])) +}); /** * screen_type */ -export const zScreenType = z.enum(['PVC', 'Steel', 'Concrete']) +export const zScreenType = z.enum([ + 'PVC', + 'Steel', + 'Concrete' +]); /** * CreateWellScreen * Schema for creating a well screen. */ export const zCreateWellScreen = z.object({ - release_status: z.optional(zReleaseStatus), - thing_id: z.int(), - screen_depth_bottom: z.number().gt(0), - screen_depth_top: z.number().gt(0), - screen_type: z.optional(z.union([zScreenType, z.null()])), - screen_description: z.optional(z.union([z.string(), z.null()])), -}) + release_status: z.optional(zReleaseStatus), + thing_id: z.int(), + screen_depth_bottom: z.number().gt(0), + screen_depth_top: z.number().gt(0), + screen_type: z.optional(z.union([ + zScreenType, + z.null() + ])), + screen_description: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * SensorResponse */ export const zSensorResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - sensor_type: zSensorType, - model: z.union([z.string(), z.null()]), - serial_no: z.union([z.string(), z.null()]), - pcn_number: z.union([z.string(), z.null()]), - owner_agency: z.union([z.string(), z.null()]), - sensor_status: z.union([z.string(), z.null()]), - notes: z.union([z.string(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + sensor_type: zSensorType, + model: z.union([ + z.string(), + z.null() + ]), + serial_no: z.union([ + z.string(), + z.null() + ]), + pcn_number: z.union([ + z.string(), + z.null() + ]), + owner_agency: z.union([ + z.string(), + z.null() + ]), + sensor_status: z.union([ + z.string(), + z.null() + ]), + notes: z.union([ + z.string(), + z.null() + ]) +}); /** * DeploymentResponse */ export const zDeploymentResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - sensor: zSensorResponse, - installation_date: z.iso.date(), - removal_date: z.union([z.iso.date(), z.null()]), - recording_interval: z.union([z.int(), z.null()]), - recording_interval_units: z.union([z.string(), z.null()]), - hanging_cable_length: z.union([z.number(), z.null()]), - hanging_point_height: z.union([z.number(), z.null()]), - hanging_point_description: z.union([z.string(), z.null()]), - notes: z.union([z.string(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + sensor: zSensorResponse, + installation_date: z.iso.date(), + removal_date: z.union([ + z.iso.date(), + z.null() + ]), + recording_interval: z.union([ + z.int(), + z.null() + ]), + recording_interval_units: z.union([ + z.string(), + z.null() + ]), + hanging_cable_length: z.union([ + z.number(), + z.null() + ]), + hanging_point_height: z.union([ + z.number(), + z.null() + ]), + hanging_point_description: z.union([ + z.string(), + z.null() + ]), + notes: z.union([ + z.string(), + z.null() + ]) +}); /** * GeoJSONGeometry * Geometry schema for GeoJSON response. */ export const zGeoJsonGeometry = z.object({ - type: z.string(), - coordinates: z.union([ - z.array(z.number()), - z.array(z.array(z.number())), - z.array(z.array(z.array(z.number()))), - z.array(z.array(z.array(z.array(z.number())))), - ]), -}) + type: z.string(), + coordinates: z.union([ + z.array(z.number()), + z.array(z.array(z.number())), + z.array(z.array(z.array(z.number()))), + z.array(z.array(z.array(z.array(z.number())))) + ]) +}); /** * Feature * Feature schema for GeoJSON response. */ export const zFeature = z.object({ - type: z.optional(z.string()).default('Feature'), - geometry: zGeoJsonGeometry, - properties: z.optional(z.record(z.string(), z.unknown())).default({}), -}) + type: z.optional(z.string()).default('Feature'), + geometry: zGeoJsonGeometry, + properties: z.optional(z.record(z.string(), z.unknown())).default({}) +}); /** * FeatureCollectionResponse * Response schema for GeoJSON FeatureCollection. */ export const zFeatureCollectionResponse = z.object({ - type: z.optional(z.string()).default('FeatureCollection'), - features: z.optional(z.array(zFeature)).default([]), -}) + type: z.optional(z.string()).default('FeatureCollection'), + features: z.optional(z.array(zFeature)).default([]) +}); /** * activity_type */ -export const zActivityType = z.enum(['groundwater level', 'water chemistry']) +export const zActivityType = z.enum([ + 'groundwater level', + 'water chemistry' +]); /** * FieldActivityResponse */ export const zFieldActivityResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - field_event_id: z.int(), - activity_type: zActivityType, -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + field_event_id: z.int(), + activity_type: zActivityType +}); /** * FieldEventResponse */ export const zFieldEventResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - event_date: z.iso.datetime({ - offset: true, - }), - notes: z.union([z.string(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + event_date: z.iso.datetime({ + offset: true + }), + notes: z.union([ + z.string(), + z.null() + ]) +}); /** * parameter_name */ export const zParameterName = z.enum([ - 'groundwater level', - 'temperature', - 'pH', - 'Alkalinity, Total', - 'Alkalinity as CaCO3', - 'Alkalinity as OH-', - 'Calcium', - 'Calcium, total, unfiltered', - 'Chloride', - 'Carbonate', - 'Conductivity, laboratory', - 'Bicarbonate', - 'Hardness (CaCO3)', - 'Ion Balance', - 'Potassium', - 'Potassium, total, unfiltered', - 'Magnesium', - 'Magnesium, total, unfiltered', - 'Sodium', - 'Sodium, total, unfiltered', - 'Sodium and Potassium combined', - 'Sulfate', - 'Total Anions', - 'Total Cations', - 'Total Dissolved Solids', - 'Tritium', - 'Age of Water using dissolved gases', - 'Silver', - 'Silver, total, unfiltered', - 'Aluminum', - 'Aluminum, total, unfiltered', - 'Arsenic', - 'Arsenic, total, unfiltered', - 'Boron', - 'Boron, total, unfiltered', - 'Barium', - 'Barium, total, unfiltered', - 'Beryllium', - 'Beryllium, total, unfiltered', - 'Bromide', - '13C:12C ratio', - '14C content, pmc', - 'Uncorrected C14 age', - 'Cadmium', - 'Cadmium, total, unfiltered', - 'Chlorofluorocarbon-11 avg age', - 'Chlorofluorocarbon-113 avg age', - 'Chlorofluorocarbon-113/12 avg RATIO age', - 'Chlorofluorocarbon-12 avg age', - 'Cobalt', - 'Cobalt, total, unfiltered', - 'Chromium', - 'Chromium, total, unfiltered', - 'Copper', - 'Copper, total, unfiltered', - 'delta O18 sulfate', - 'Sulfate 34 isotope ratio', - 'Fluoride', - 'Iron', - 'Iron, total, unfiltered', - 'Deuterium:Hydrogen ratio', - 'Mercury', - 'Mercury, total, unfiltered', - 'Lithium', - 'Lithium, total, unfiltered', - 'Manganese', - 'Manganese, total, unfiltered', - 'Molybdenum', - 'Molybdenum, total, unfiltered', - 'Nickel', - 'Nickel, total, unfiltered', - 'Nitrite (as NO2)', - 'Nitrite (as N)', - 'Nitrate (as NO3)', - 'Nitrate (as N)', - '18O:16O ratio', - 'Lead', - 'Lead, total, unfiltered', - 'Phosphate', - 'Antimony', - 'Antimony, total, unfiltered', - 'Selenium', - 'Selenium, total, unfiltered', - 'Sulfur hexafluoride', - 'Silicon', - 'Silicon, total, unfiltered', - 'Silica', - 'Tin', - 'Tin, total, unfiltered', - 'Strontium', - 'Strontium, total, unfiltered', - 'Strontium 87:86 ratio', - 'Thorium', - 'Thorium, total, unfiltered', - 'Titanium', - 'Titanium, total, unfiltered', - 'Thallium', - 'Thallium, total, unfiltered', - 'Uranium (total, by ICP-MS)', - 'Uranium, total, unfiltered', - 'Vanadium', - 'Vanadium, total, unfiltered', - 'Zinc', - 'Zinc, total, unfiltered', - 'Corrected C14 in years', - 'Arsenite (arsenic species)', - 'Arsenate (arsenic species)', - 'Cyanide', - 'Estimated recharge temperature', - 'Hydrogen sulfide', - 'Ammonia', - 'Ammonium', - 'Total nitrogen', - 'Total Kjeldahl nitrogen', - 'Dissolved organic carbon', - 'Total organic carbon', - 'delta C13 of dissolved inorganic carbon', -]) + 'groundwater level', + 'temperature', + 'pH', + 'Alkalinity, Total', + 'Alkalinity as CaCO3', + 'Alkalinity as OH-', + 'Calcium', + 'Calcium, total, unfiltered', + 'Chloride', + 'Carbonate', + 'Conductivity, laboratory', + 'Bicarbonate', + 'Hardness (CaCO3)', + 'Ion Balance', + 'Potassium', + 'Potassium, total, unfiltered', + 'Magnesium', + 'Magnesium, total, unfiltered', + 'Sodium', + 'Sodium, total, unfiltered', + 'Sodium and Potassium combined', + 'Sulfate', + 'Total Anions', + 'Total Cations', + 'Total Dissolved Solids', + 'Tritium', + 'Age of Water using dissolved gases', + 'Silver', + 'Silver, total, unfiltered', + 'Aluminum', + 'Aluminum, total, unfiltered', + 'Arsenic', + 'Arsenic, total, unfiltered', + 'Boron', + 'Boron, total, unfiltered', + 'Barium', + 'Barium, total, unfiltered', + 'Beryllium', + 'Beryllium, total, unfiltered', + 'Bromide', + '13C:12C ratio', + '14C content, pmc', + 'Uncorrected C14 age', + 'Cadmium', + 'Cadmium, total, unfiltered', + 'Chlorofluorocarbon-11 avg age', + 'Chlorofluorocarbon-113 avg age', + 'Chlorofluorocarbon-113/12 avg RATIO age', + 'Chlorofluorocarbon-12 avg age', + 'Cobalt', + 'Cobalt, total, unfiltered', + 'Chromium', + 'Chromium, total, unfiltered', + 'Copper', + 'Copper, total, unfiltered', + 'delta O18 sulfate', + 'Sulfate 34 isotope ratio', + 'Fluoride', + 'Iron', + 'Iron, total, unfiltered', + 'Deuterium:Hydrogen ratio', + 'Mercury', + 'Mercury, total, unfiltered', + 'Lithium', + 'Lithium, total, unfiltered', + 'Manganese', + 'Manganese, total, unfiltered', + 'Molybdenum', + 'Molybdenum, total, unfiltered', + 'Nickel', + 'Nickel, total, unfiltered', + 'Nitrite (as NO2)', + 'Nitrite (as N)', + 'Nitrate (as NO3)', + 'Nitrate (as N)', + '18O:16O ratio', + 'Lead', + 'Lead, total, unfiltered', + 'Phosphate', + 'Antimony', + 'Antimony, total, unfiltered', + 'Selenium', + 'Selenium, total, unfiltered', + 'Sulfur hexafluoride', + 'Silicon', + 'Silicon, total, unfiltered', + 'Silica', + 'Tin', + 'Tin, total, unfiltered', + 'Strontium', + 'Strontium, total, unfiltered', + 'Strontium 87:86 ratio', + 'Thorium', + 'Thorium, total, unfiltered', + 'Titanium', + 'Titanium, total, unfiltered', + 'Thallium', + 'Thallium, total, unfiltered', + 'Uranium (total, by ICP-MS)', + 'Uranium, total, unfiltered', + 'Vanadium', + 'Vanadium, total, unfiltered', + 'Zinc', + 'Zinc, total, unfiltered', + 'Corrected C14 in years', + 'Arsenite (arsenic species)', + 'Arsenate (arsenic species)', + 'Cyanide', + 'Estimated recharge temperature', + 'Hydrogen sulfide', + 'Ammonia', + 'Ammonium', + 'Total nitrogen', + 'Total Kjeldahl nitrogen', + 'Dissolved organic carbon', + 'Total organic carbon', + 'delta C13 of dissolved inorganic carbon' +]); /** * parameter_type */ export const zParameterType = z.enum([ - 'Field Parameter', - 'Metal', - 'Radionuclide', - 'Major Element', - 'Minor Element', - 'Physical property', -]) + 'Field Parameter', + 'Metal', + 'Radionuclide', + 'Major Element', + 'Minor Element', + 'Physical property' +]); /** * ParameterResponse @@ -902,33 +1193,57 @@ export const zParameterType = z.enum([ * This model can be extended to include additional fields as needed. */ export const zParameterResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - parameter_name: zParameterName, - matrix: z.string(), - parameter_type: z.union([zParameterType, z.null()]), - cas_number: z.union([z.string(), z.null()]), - default_unit: z.union([zUnit, z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + parameter_name: zParameterName, + matrix: z.string(), + parameter_type: z.union([ + zParameterType, + z.null() + ]), + cas_number: z.union([ + z.string(), + z.null() + ]), + default_unit: z.union([ + zUnit, + z.null() + ]) +}); /** * GroundwaterLevelObservationResponse */ export const zGroundwaterLevelObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - sample_id: z.int(), - sensor_id: z.union([z.int(), z.null()]), - observation_datetime: z.string(), - parameter: zParameterResponse, - value: z.union([z.number(), z.null()]), - unit: zUnit, - depth_to_water_bgs: z.union([z.number(), z.null()]), - measuring_point_height: z.union([z.number(), z.null()]), - groundwater_level_reason: z.union([z.string(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + sample_id: z.int(), + sensor_id: z.union([ + z.int(), + z.null() + ]), + observation_datetime: z.string(), + parameter: zParameterResponse, + value: z.union([ + z.number(), + z.null() + ]), + unit: zUnit, + depth_to_water_bgs: z.union([ + z.number(), + z.null() + ]), + measuring_point_height: z.union([ + z.number(), + z.null() + ]), + groundwater_level_reason: z.union([ + z.string(), + z.null() + ]) +}); /** * GroupResponse @@ -936,30 +1251,42 @@ export const zGroundwaterLevelObservationResponse = z.object({ * This model can be extended to include additional fields as needed. */ export const zGroupResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - project_area: z.union([z.string(), z.null()]), - description: z.union([z.string(), z.null()]), - parent_group_id: z.union([z.int(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + project_area: z.union([ + z.string(), + z.null() + ]), + description: z.union([ + z.string(), + z.null() + ]), + parent_group_id: z.union([ + z.int(), + z.null() + ]) +}); /** * ValidationError */ export const zValidationError = z.object({ - loc: z.array(z.union([z.string(), z.int()])), - msg: z.string(), - type: z.string(), -}) + loc: z.array(z.union([ + z.string(), + z.int() + ])), + msg: z.string(), + type: z.string() +}); /** * HTTPValidationError */ export const zHttpValidationError = z.object({ - detail: z.optional(z.array(zValidationError)), -}) + detail: z.optional(z.array(zValidationError)) +}); /** * LexiconCategoryResponse @@ -967,11 +1294,14 @@ export const zHttpValidationError = z.object({ * This model can be extended to include additional fields as needed. */ export const zLexiconCategoryResponse = z.object({ - id: z.int(), - created_at: z.string(), - name: z.string(), - description: z.optional(z.union([z.string(), z.null()])), -}) + id: z.int(), + created_at: z.string(), + name: z.string(), + description: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * LexiconTermResponse @@ -979,23 +1309,23 @@ export const zLexiconCategoryResponse = z.object({ * This model can be extended to include additional fields as needed. */ export const zLexiconTermResponse = z.object({ - id: z.int(), - created_at: z.string(), - term: z.string(), - definition: z.string(), - categories: z.optional(z.array(zLexiconCategoryResponse)).default([]), -}) + id: z.int(), + created_at: z.string(), + term: z.string(), + definition: z.string(), + categories: z.optional(z.array(zLexiconCategoryResponse)).default([]) +}); /** * LexiconTripleResponse */ export const zLexiconTripleResponse = z.object({ - id: z.int(), - created_at: z.string(), - subject: z.string(), - predicate: z.string(), - object_: z.string(), -}) + id: z.int(), + created_at: z.string(), + subject: z.string(), + predicate: z.string(), + object_: z.string() +}); /** * ObservationResponse @@ -1003,162 +1333,177 @@ export const zLexiconTripleResponse = z.object({ * Combines groundwater level and geothermal observation responses. */ export const zObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - sample_id: z.int(), - sensor_id: z.union([z.int(), z.null()]), - observation_datetime: z.string(), - parameter: zParameterResponse, - value: z.union([z.number(), z.null()]), - unit: zUnit, - depth_to_water_bgs: z.union([z.number(), z.null()]), - measuring_point_height: z.union([z.number(), z.null()]), - groundwater_level_reason: z.union([z.string(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + sample_id: z.int(), + sensor_id: z.union([ + z.int(), + z.null() + ]), + observation_datetime: z.string(), + parameter: zParameterResponse, + value: z.union([ + z.number(), + z.null() + ]), + unit: zUnit, + depth_to_water_bgs: z.union([ + z.number(), + z.null() + ]), + measuring_point_height: z.union([ + z.number(), + z.null() + ]), + groundwater_level_reason: z.union([ + z.string(), + z.null() + ]) +}); /** * Page[AddressResponse] */ export const zPageAddressResponse = z.object({ - items: z.array(zAddressResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zAddressResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[AssetResponse] */ export const zPageAssetResponse = z.object({ - items: z.array(zAssetResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zAssetResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[ContactResponse] */ export const zPageContactResponse = z.object({ - items: z.array(zContactResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zContactResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[DeploymentResponse] */ export const zPageDeploymentResponse = z.object({ - items: z.array(zDeploymentResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zDeploymentResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[EmailResponse] */ export const zPageEmailResponse = z.object({ - items: z.array(zEmailResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zEmailResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[GroundwaterLevelObservationResponse] */ export const zPageGroundwaterLevelObservationResponse = z.object({ - items: z.array(zGroundwaterLevelObservationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zGroundwaterLevelObservationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[GroupResponse] */ export const zPageGroupResponse = z.object({ - items: z.array(zGroupResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zGroupResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[LexiconCategoryResponse] */ export const zPageLexiconCategoryResponse = z.object({ - items: z.array(zLexiconCategoryResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zLexiconCategoryResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[LexiconTermResponse] */ export const zPageLexiconTermResponse = z.object({ - items: z.array(zLexiconTermResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zLexiconTermResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[LexiconTripleResponse] */ export const zPageLexiconTripleResponse = z.object({ - items: z.array(zLexiconTripleResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zLexiconTripleResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[LocationResponse] */ export const zPageLocationResponse = z.object({ - items: z.array(zLocationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zLocationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[ObservationResponse] */ export const zPageObservationResponse = z.object({ - items: z.array(zObservationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zObservationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[PhoneResponse] */ export const zPagePhoneResponse = z.object({ - items: z.array(zPhoneResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zPhoneResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * SampleResponse @@ -1170,356 +1515,504 @@ export const zPagePhoneResponse = z.object({ * .model_dump() and exlude fields to reduce the size. */ export const zSampleResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing: zThingResponse, - field_event: zFieldEventResponse, - field_activity: zFieldActivityResponse, - contact: zContactResponse, - sample_date: z.string(), - sample_name: z.string(), - sample_matrix: zSampleMatrix, - sample_method: zSampleMethod, - qc_type: zQcType, - notes: z.union([z.string(), z.null()]), - depth_top: z.union([z.number(), z.null()]), - depth_bottom: z.union([z.number(), z.null()]), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing: zThingResponse, + field_event: zFieldEventResponse, + field_activity: zFieldActivityResponse, + contact: zContactResponse, + sample_date: z.string(), + sample_name: z.string(), + sample_matrix: zSampleMatrix, + sample_method: zSampleMethod, + qc_type: zQcType, + notes: z.union([ + z.string(), + z.null() + ]), + depth_top: z.union([ + z.number(), + z.null() + ]), + depth_bottom: z.union([ + z.number(), + z.null() + ]) +}); /** * Page[SampleResponse] */ export const zPageSampleResponse = z.object({ - items: z.array(zSampleResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zSampleResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[SensorResponse] */ export const zPageSensorResponse = z.object({ - items: z.array(zSensorResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zSensorResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * SpringResponse * Response schema for spring details. */ export const zSpringResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - thing_type: z.string(), - current_location: z.union([zLocationResponse, z.null()]), - first_visit_date: z.union([z.iso.date(), z.null()]), - spring_type: z.optional(z.union([z.string(), z.null()])), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + thing_type: z.string(), + current_location: z.union([ + zLocationResponse, + z.null() + ]), + first_visit_date: z.union([ + z.iso.date(), + z.null() + ]), + spring_type: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * Page[SpringResponse] */ export const zPageSpringResponse = z.object({ - items: z.array(zSpringResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zSpringResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * ThingIdLinkResponse */ export const zThingIdLinkResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - thing: zThingResponse, - relation: z.string(), - alternate_id: z.string(), - alternate_organization: z.string(), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + thing: zThingResponse, + relation: z.string(), + alternate_id: z.string(), + alternate_organization: z.string() +}); /** * Page[ThingIdLinkResponse] */ export const zPageThingIdLinkResponse = z.object({ - items: z.array(zThingIdLinkResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zThingIdLinkResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[ThingResponse] */ export const zPageThingResponse = z.object({ - items: z.array(zThingResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zThingResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * TransducerObservationResponse */ export const zTransducerObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - value: z.number(), - observation_datetime: z.iso.datetime({ - offset: true, - }), - parameter_id: z.int(), - deployment_id: z.int(), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + value: z.number(), + observation_datetime: z.iso.datetime({ + offset: true + }), + parameter_id: z.int(), + deployment_id: z.int() +}); /** * review_status */ -export const zReviewStatus = z.enum(['approved', 'not reviewed']) +export const zReviewStatus = z.enum([ + 'approved', + 'not reviewed' +]); /** * TransducerObservationBlockResponse */ export const zTransducerObservationBlockResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - review_status: zReviewStatus, - start_datetime: z.iso.datetime({ - offset: true, - }), - end_datetime: z.iso.datetime({ - offset: true, - }), - parameter_id: z.int(), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + review_status: zReviewStatus, + start_datetime: z.iso.datetime({ + offset: true + }), + end_datetime: z.iso.datetime({ + offset: true + }), + parameter_id: z.int() +}); /** * TransducerObservationWithBlockResponse */ export const zTransducerObservationWithBlockResponse = z.object({ - observation: zTransducerObservationResponse, - block: zTransducerObservationBlockResponse, -}) + observation: zTransducerObservationResponse, + block: zTransducerObservationBlockResponse +}); /** * Page[TransducerObservationWithBlockResponse] */ export const zPageTransducerObservationWithBlockResponse = z.object({ - items: z.array(zTransducerObservationWithBlockResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zTransducerObservationWithBlockResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * WaterChemistryObservationResponse */ export const zWaterChemistryObservationResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - sample_id: z.int(), - sensor_id: z.union([z.int(), z.null()]), - observation_datetime: z.string(), - parameter: zParameterResponse, - value: z.union([z.number(), z.null()]), - unit: zUnit, -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + sample_id: z.int(), + sensor_id: z.union([ + z.int(), + z.null() + ]), + observation_datetime: z.string(), + parameter: zParameterResponse, + value: z.union([ + z.number(), + z.null() + ]), + unit: zUnit +}); /** * Page[WaterChemistryObservationResponse] */ export const zPageWaterChemistryObservationResponse = z.object({ - items: z.array(zWaterChemistryObservationResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zWaterChemistryObservationResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * WellResponse * Response schema for well details. */ export const zWellResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - name: z.string(), - thing_type: z.string(), - current_location: z.union([zLocationResponse, z.null()]), - first_visit_date: z.union([z.iso.date(), z.null()]), - well_purposes: z.optional(z.array(zWellPurpose)).default([]), - well_depth: z.optional(z.union([z.number(), z.null()])), - well_depth_unit: z.optional(z.string()).default('ft'), - hole_depth: z.optional(z.union([z.number(), z.null()])), - hole_depth_unit: z.optional(z.string()).default('ft'), - well_casing_diameter: z.optional(z.union([z.number(), z.null()])), - well_casing_diameter_unit: z.optional(z.string()).default('in'), - well_casing_depth: z.optional(z.union([z.number(), z.null()])), - well_casing_depth_unit: z.optional(z.string()).default('ft'), - well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), - well_construction_notes: z.optional(z.union([z.string(), z.null()])), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + name: z.string(), + thing_type: z.string(), + current_location: z.union([ + zLocationResponse, + z.null() + ]), + first_visit_date: z.union([ + z.iso.date(), + z.null() + ]), + well_purposes: z.optional(z.array(zWellPurpose)).default([]), + well_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + well_depth_unit: z.optional(z.string()).default('ft'), + hole_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + hole_depth_unit: z.optional(z.string()).default('ft'), + well_casing_diameter: z.optional(z.union([ + z.number(), + z.null() + ])), + well_casing_diameter_unit: z.optional(z.string()).default('in'), + well_casing_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + well_casing_depth_unit: z.optional(z.string()).default('ft'), + well_casing_materials: z.optional(z.array(zCasingMaterial)).default([]), + well_construction_notes: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * Page[WellResponse] */ export const zPageWellResponse = z.object({ - items: z.array(zWellResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zWellResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * WellScreenResponse * Response schema for well screen details. */ export const zWellScreenResponse = z.object({ - id: z.int(), - created_at: z.string(), - release_status: zReleaseStatus, - thing_id: z.int(), - thing: zWellResponse, - screen_depth_bottom: z.number(), - screen_depth_bottom_unit: z.optional(z.string()).default('ft'), - screen_depth_top: z.number(), - screen_depth_top_unit: z.optional(z.string()).default('ft'), - screen_type: z.optional(z.union([z.string(), z.null()])), - screen_description: z.optional(z.union([z.string(), z.null()])), -}) + id: z.int(), + created_at: z.string(), + release_status: zReleaseStatus, + thing_id: z.int(), + thing: zWellResponse, + screen_depth_bottom: z.number(), + screen_depth_bottom_unit: z.optional(z.string()).default('ft'), + screen_depth_top: z.number(), + screen_depth_top_unit: z.optional(z.string()).default('ft'), + screen_type: z.optional(z.union([ + z.string(), + z.null() + ])), + screen_description: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * Page[WellScreenResponse] */ export const zPageWellScreenResponse = z.object({ - items: z.array(zWellScreenResponse), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(zWellScreenResponse), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * Page[dict] */ export const zPageDict = z.object({ - items: z.array(z.record(z.string(), z.unknown())), - total: z.int().gte(0), - page: z.int().gte(1), - size: z.int().gte(1), - pages: z.int().gte(0), -}) + items: z.array(z.record(z.string(), z.unknown())), + total: z.int().gte(0), + page: z.int().gte(1), + size: z.int().gte(1), + pages: z.int().gte(0) +}); /** * PublicationResponse * Schema for the response of a publication. */ export const zPublicationResponse = z.object({ - id: z.int(), - title: z.string(), - authors: z.array(zAuthorResponse), - year: z.int(), - doi: z.optional(z.union([z.string(), z.null()])), - url: z.optional(z.union([z.string(), z.null()])), - publication_type: zPublicationType, -}) + id: z.int(), + title: z.string(), + authors: z.array(zAuthorResponse), + year: z.int(), + doi: z.optional(z.union([ + z.string(), + z.null() + ])), + url: z.optional(z.union([ + z.string(), + z.null() + ])), + publication_type: zPublicationType +}); /** * ResourceNotFoundResponse */ export const zResourceNotFoundResponse = z.object({ - detail: z.string(), -}) + detail: z.string() +}); /** * UpdateAddress * Schema for updating address information. */ export const zUpdateAddress = z.object({ - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - contact_id: z.optional(z.union([z.int(), z.null()])), - address_line_1: z.optional(z.union([z.string(), z.null()])), - address_line_2: z.optional(z.union([z.string(), z.null()])), - city: z.optional(z.union([z.string(), z.null()])), - state: z.optional(z.union([z.string(), z.null()])), - postal_code: z.optional(z.union([z.string(), z.null()])), - country: z.optional(z.union([z.string(), z.null()])), - address_type: z.optional(z.union([zAddressType, z.null()])), -}) + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + contact_id: z.optional(z.union([ + z.int(), + z.null() + ])), + address_line_1: z.optional(z.union([ + z.string(), + z.null() + ])), + address_line_2: z.optional(z.union([ + z.string(), + z.null() + ])), + city: z.optional(z.union([ + z.string(), + z.null() + ])), + state: z.optional(z.union([ + z.string(), + z.null() + ])), + postal_code: z.optional(z.union([ + z.string(), + z.null() + ])), + country: z.optional(z.union([ + z.string(), + z.null() + ])), + address_type: z.optional(z.union([ + zAddressType, + z.null() + ])) +}); /** * UpdateAsset */ export const zUpdateAsset = z.object({ - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - name: z.optional(z.union([z.string(), z.null()])), - label: z.optional(z.union([z.string(), z.null()])), -}) + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + name: z.optional(z.union([ + z.string(), + z.null() + ])), + label: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateContact * Schema for updating contact information. */ export const zUpdateContact = z.object({ - name: z.optional(z.union([z.string(), z.null()])), - organization: z.optional(z.union([z.string(), z.null()])), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - role: z.optional(z.union([zRole, z.null()])), - contact_type: z.optional(z.union([zContactType, z.null()])), - thing_id: z.optional(z.union([z.int(), z.null()])), -}) + name: z.optional(z.union([ + z.string(), + z.null() + ])), + organization: z.optional(z.union([ + z.string(), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + role: z.optional(z.union([ + zRole, + z.null() + ])), + contact_type: z.optional(z.union([ + zContactType, + z.null() + ])), + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])) +}); /** * UpdateEmail * Schema for updating email information. */ export const zUpdateEmail = z.object({ - email: z.optional(z.union([z.string(), z.null()])), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - contact_id: z.optional(z.union([z.int(), z.null()])), - email_type: z.optional(z.union([zEmailType, z.null()])), -}) + email: z.optional(z.union([ + z.string(), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + contact_id: z.optional(z.union([ + z.int(), + z.null() + ])), + email_type: z.optional(z.union([ + zEmailType, + z.null() + ])) +}); /** * UpdateGroundwaterLevelObservation */ export const zUpdateGroundwaterLevelObservation = z.object({ - parameter_id: z.optional(z.union([z.int(), z.null()])), - observation_datetime: z.optional( - z.union([ - z.iso.datetime({ - offset: true, - }), - z.null(), - ]) - ), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - sample_id: z.optional(z.union([z.int(), z.null()])), - sensor_id: z.optional(z.union([z.int(), z.null()])), - value: z.optional(z.union([z.number(), z.null()])), - unit: z.optional(z.union([zUnit, z.null()])), - measuring_point_height: z.optional(z.union([z.number(), z.null()])), - groundwater_level_reason: z.optional(z.union([z.string(), z.null()])), -}) + parameter_id: z.optional(z.union([ + z.int(), + z.null() + ])), + observation_datetime: z.optional(z.union([ + z.iso.datetime({ + offset: true + }), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + sample_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sensor_id: z.optional(z.union([ + z.int(), + z.null() + ])), + value: z.optional(z.union([ + z.number(), + z.null() + ])), + unit: z.optional(z.union([ + zUnit, + z.null() + ])), + measuring_point_height: z.optional(z.union([ + z.number(), + z.null() + ])), + groundwater_level_reason: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateGroup @@ -1527,1770 +2020,1922 @@ export const zUpdateGroundwaterLevelObservation = z.object({ * This model can be extended to include additional fields as needed. */ export const zUpdateGroup = z.object({ - project_area: z.optional(z.union([z.string(), z.null()])), - description: z.optional(z.union([z.string(), z.null()])), - parent_group_id: z.optional(z.union([z.int(), z.null()])), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - name: z.optional(z.union([z.string(), z.null()])), -}) + project_area: z.optional(z.union([ + z.string(), + z.null() + ])), + description: z.optional(z.union([ + z.string(), + z.null() + ])), + parent_group_id: z.optional(z.union([ + z.int(), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + name: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateLexiconCategory */ export const zUpdateLexiconCategory = z.object({ - name: z.optional(z.union([z.string(), z.null()])), - description: z.optional(z.union([z.string(), z.null()])), -}) + name: z.optional(z.union([ + z.string(), + z.null() + ])), + description: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateLexiconTerm */ export const zUpdateLexiconTerm = z.object({ - term: z.optional(z.union([z.string(), z.null()])), - definition: z.optional(z.union([z.string(), z.null()])), -}) + term: z.optional(z.union([ + z.string(), + z.null() + ])), + definition: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateLexiconTriple */ export const zUpdateLexiconTriple = z.object({ - subject: z.optional(z.union([z.string(), z.null()])), - predicate: z.optional(z.union([z.string(), z.null()])), - object_: z.optional(z.union([z.string(), z.null()])), -}) + subject: z.optional(z.union([ + z.string(), + z.null() + ])), + predicate: z.optional(z.union([ + z.string(), + z.null() + ])), + object_: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateLocation * Schema for updating a location. */ export const zUpdateLocation = z.object({ - point: z.optional(z.union([z.string(), z.null()])), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - notes: z.optional(z.union([z.string(), z.null()])), - elevation: z.optional(z.union([z.number(), z.null()])), - elevation_accuracy: z.optional(z.union([z.number(), z.null()])), - elevation_method: z.optional(z.union([zElevationMethod, z.null()])), - coordinate_accuracy: z.optional(z.union([z.number(), z.null()])), - coordinate_method: z.optional(z.union([zCoordinateMethod, z.null()])), -}) + point: z.optional(z.union([ + z.string(), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + notes: z.optional(z.union([ + z.string(), + z.null() + ])), + elevation: z.optional(z.union([ + z.number(), + z.null() + ])), + elevation_accuracy: z.optional(z.union([ + z.number(), + z.null() + ])), + elevation_method: z.optional(z.union([ + zElevationMethod, + z.null() + ])), + coordinate_accuracy: z.optional(z.union([ + z.number(), + z.null() + ])), + coordinate_method: z.optional(z.union([ + zCoordinateMethod, + z.null() + ])) +}); /** * UpdatePhone * Schema for updating phone information. */ export const zUpdatePhone = z.object({ - phone_number: z.optional(z.union([z.string(), z.null()])), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - contact_id: z.optional(z.union([z.int(), z.null()])), - phone_type: z.optional(z.union([zPhoneType, z.null()])), -}) + phone_number: z.optional(z.union([ + z.string(), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + contact_id: z.optional(z.union([ + z.int(), + z.null() + ])), + phone_type: z.optional(z.union([ + zPhoneType, + z.null() + ])) +}); /** * UpdateSample */ export const zUpdateSample = z.object({ - sample_date: z.optional( - z.union([ - z.iso.datetime({ - offset: true, - }), - z.null(), - ]) - ), - depth_top: z.optional(z.union([z.number(), z.null()])), - depth_bottom: z.optional(z.union([z.number(), z.null()])), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - field_activity_id: z.optional(z.union([z.int(), z.null()])), - field_event_participant_id: z.optional(z.union([z.int(), z.null()])), - sample_name: z.optional(z.union([z.string(), z.null()])), - sample_matrix: z.optional(z.union([zSampleMatrix, z.null()])), - sample_method: z.optional(z.union([zSampleMethod, z.null()])), - qc_type: z.optional(z.union([zQcType, z.null()])), - notes: z.optional(z.union([z.string(), z.null()])), -}) + sample_date: z.optional(z.union([ + z.iso.datetime({ + offset: true + }), + z.null() + ])), + depth_top: z.optional(z.union([ + z.number(), + z.null() + ])), + depth_bottom: z.optional(z.union([ + z.number(), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + field_activity_id: z.optional(z.union([ + z.int(), + z.null() + ])), + field_event_participant_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sample_name: z.optional(z.union([ + z.string(), + z.null() + ])), + sample_matrix: z.optional(z.union([ + zSampleMatrix, + z.null() + ])), + sample_method: z.optional(z.union([ + zSampleMethod, + z.null() + ])), + qc_type: z.optional(z.union([ + zQcType, + z.null() + ])), + notes: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateSensor */ export const zUpdateSensor = z.object({ - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - name: z.optional(z.union([z.string(), z.null()])), - sensor_type: z.optional(z.union([zSensorType, z.null()])), - model: z.optional(z.union([z.string(), z.null()])), - serial_no: z.optional(z.union([z.string(), z.null()])), - pcn_number: z.optional(z.union([z.string(), z.null()])), - owner_agency: z.optional(z.union([z.string(), z.null()])), - sensor_status: z.optional(z.union([z.string(), z.null()])), - notes: z.optional(z.union([z.string(), z.null()])), -}) + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + name: z.optional(z.union([ + z.string(), + z.null() + ])), + sensor_type: z.optional(z.union([ + zSensorType, + z.null() + ])), + model: z.optional(z.union([ + z.string(), + z.null() + ])), + serial_no: z.optional(z.union([ + z.string(), + z.null() + ])), + pcn_number: z.optional(z.union([ + z.string(), + z.null() + ])), + owner_agency: z.optional(z.union([ + z.string(), + z.null() + ])), + sensor_status: z.optional(z.union([ + z.string(), + z.null() + ])), + notes: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateSpring */ export const zUpdateSpring = z.object({ - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - name: z.optional(z.union([z.string(), z.null()])), - first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), - spring_type: z.optional(z.union([z.string(), z.null()])), -}) + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + name: z.optional(z.union([ + z.string(), + z.null() + ])), + first_visit_date: z.optional(z.union([ + z.iso.date(), + z.null() + ])), + spring_type: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateThingIdLink */ export const zUpdateThingIdLink = z.object({ - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - alternate_organization: z.optional(z.union([z.string(), z.null()])), - alternate_id: z.optional(z.union([z.string(), z.null()])), - relation: z.optional(z.union([z.string(), z.null()])), -}) + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + alternate_organization: z.optional(z.union([ + z.string(), + z.null() + ])), + alternate_id: z.optional(z.union([ + z.string(), + z.null() + ])), + relation: z.optional(z.union([ + z.string(), + z.null() + ])) +}); /** * UpdateWaterChemistryObservation */ export const zUpdateWaterChemistryObservation = z.object({ - parameter_id: z.optional(z.union([z.int(), z.null()])), - observation_datetime: z.optional( - z.union([ - z.iso.datetime({ - offset: true, - }), - z.null(), - ]) - ), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - sample_id: z.optional(z.union([z.int(), z.null()])), - sensor_id: z.optional(z.union([z.int(), z.null()])), - value: z.optional(z.union([z.number(), z.null()])), - unit: z.optional(z.union([zUnit, z.null()])), -}) + parameter_id: z.optional(z.union([ + z.int(), + z.null() + ])), + observation_datetime: z.optional(z.union([ + z.iso.datetime({ + offset: true + }), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + sample_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sensor_id: z.optional(z.union([ + z.int(), + z.null() + ])), + value: z.optional(z.union([ + z.number(), + z.null() + ])), + unit: z.optional(z.union([ + zUnit, + z.null() + ])) +}); /** * UpdateWell */ export const zUpdateWell = z.object({ - well_depth: z.optional(z.union([z.number(), z.null()])), - hole_depth: z.optional(z.union([z.number(), z.null()])), - well_casing_depth: z.optional(z.union([z.number(), z.null()])), - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - name: z.optional(z.union([z.string(), z.null()])), - first_visit_date: z.optional(z.union([z.iso.date(), z.null()])), - well_purposes: z.optional(z.union([z.array(z.string()), z.null()])), - well_construction_notes: z.optional(z.union([z.string(), z.null()])), - well_casing_diameter: z.optional(z.union([z.number(), z.null()])), - well_casing_materials: z.optional(z.union([z.array(z.string()), z.null()])), -}) + well_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + hole_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + well_casing_depth: z.optional(z.union([ + z.number(), + z.null() + ])), + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + name: z.optional(z.union([ + z.string(), + z.null() + ])), + first_visit_date: z.optional(z.union([ + z.iso.date(), + z.null() + ])), + well_purposes: z.optional(z.union([ + z.array(z.string()), + z.null() + ])), + well_construction_notes: z.optional(z.union([ + z.string(), + z.null() + ])), + well_casing_diameter: z.optional(z.union([ + z.number(), + z.null() + ])), + well_casing_materials: z.optional(z.union([ + z.array(z.string()), + z.null() + ])) +}); /** * UpdateWellScreen */ export const zUpdateWellScreen = z.object({ - release_status: z.optional(z.union([zReleaseStatus, z.null()])), - screen_depth_bottom: z.optional(z.union([z.number(), z.null()])), - screen_depth_top: z.optional(z.union([z.number(), z.null()])), - screen_description: z.optional(z.union([z.string(), z.null()])), - screen_type: z.optional(z.union([z.string(), z.null()])), -}) + release_status: z.optional(z.union([ + zReleaseStatus, + z.null() + ])), + screen_depth_bottom: z.optional(z.union([ + z.number(), + z.null() + ])), + screen_depth_top: z.optional(z.union([ + z.number(), + z.null() + ])), + screen_description: z.optional(z.union([ + z.string(), + z.null() + ])), + screen_type: z.optional(z.union([ + z.string(), + z.null() + ])) +}); export const zUploadAssetAssetUploadPostData = z.object({ - body: zBodyUploadAssetAssetUploadPost, - path: z.optional(z.never()), - query: z.optional( - z.object({ - client: z.optional(z.unknown()), - }) - ), -}) + body: zBodyUploadAssetAssetUploadPost, + path: z.optional(z.never()), + query: z.optional(z.object({ + client: z.optional(z.unknown()) + })) +}); /** * Response Upload Asset Asset Upload Post * Successful Response */ -export const zUploadAssetAssetUploadPostResponse = z.record( - z.string(), - z.unknown() -) +export const zUploadAssetAssetUploadPostResponse = z.record(z.string(), z.unknown()); export const zListAssetsAssetGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.int()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + thing_id: z.optional(z.int()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zListAssetsAssetGetResponse = zPageAssetResponse +export const zListAssetsAssetGetResponse = zPageAssetResponse; export const zAddAssetAssetPostData = z.object({ - body: zCreateAsset, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateAsset, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddAssetAssetPostResponse = zAssetResponse +export const zAddAssetAssetPostResponse = zAssetResponse; export const zDeleteAssetAssetAssetIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - asset_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + asset_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteAssetAssetAssetIdDeleteResponse = z.void() +export const zDeleteAssetAssetAssetIdDeleteResponse = z.void(); export const zGetAssetAssetAssetIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - asset_id: z.int(), - }), - query: z.optional( - z.object({ - client: z.optional(z.unknown()), - }) - ), -}) + body: z.optional(z.never()), + path: z.object({ + asset_id: z.int() + }), + query: z.optional(z.object({ + client: z.optional(z.unknown()) + })) +}); /** * Successful Response */ -export const zGetAssetAssetAssetIdGetResponse = zAssetResponse +export const zGetAssetAssetAssetIdGetResponse = zAssetResponse; export const zUpdateAssetAssetAssetIdPatchData = z.object({ - body: zUpdateAsset, - path: z.object({ - asset_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateAsset, + path: z.object({ + asset_id: z.int() + }), + query: z.optional(z.never()) +}); export const zRemoveAssetAssetAssetIdRemoveDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - asset_id: z.int(), - }), - query: z.optional( - z.object({ - client: z.optional(z.unknown()), - }) - ), -}) + body: z.optional(z.never()), + path: z.object({ + asset_id: z.int() + }), + query: z.optional(z.object({ + client: z.optional(z.unknown()) + })) +}); /** * Successful Response */ -export const zRemoveAssetAssetAssetIdRemoveDeleteResponse = z.void() +export const zRemoveAssetAssetAssetIdRemoveDeleteResponse = z.void(); -export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetData = z.object( - { +export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetData = z.object({ body: z.optional(z.never()), path: z.object({ - author_id: z.int(), + author_id: z.int() }), - query: z.optional(z.never()), - } -) + query: z.optional(z.never()) +}); /** * Response Get Author Publications Author Author Id Publications Get * Successful Response */ -export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = - z.array(zPublicationResponse) +export const zGetAuthorPublicationsAuthorAuthorIdPublicationsGetResponse = z.array(zPublicationResponse); export const zGetContactsContactGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - thing_id: z.optional(z.union([z.int(), z.null()])), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetContactsContactGetResponse = zPageContactResponse +export const zGetContactsContactGetResponse = zPageContactResponse; export const zCreateContactContactPostData = z.object({ - body: zCreateContact, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateContact, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateContactContactPostResponse = zContactResponse +export const zCreateContactContactPostResponse = zContactResponse; export const zGetAddressesContactAddressGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetAddressesContactAddressGetResponse = zPageAddressResponse +export const zGetAddressesContactAddressGetResponse = zPageAddressResponse; export const zCreateAddressContactAddressPostData = z.object({ - body: zCreateAddress, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateAddress, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateAddressContactAddressPostResponse = zAddressResponse +export const zCreateAddressContactAddressPostResponse = zAddressResponse; export const zGetEmailsContactEmailGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetEmailsContactEmailGetResponse = zPageEmailResponse +export const zGetEmailsContactEmailGetResponse = zPageEmailResponse; export const zCreateEmailContactEmailPostData = z.object({ - body: zCreateEmail, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateEmail, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateEmailContactEmailPostResponse = zEmailResponse +export const zCreateEmailContactEmailPostResponse = zEmailResponse; export const zGetPhonesContactPhoneGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetPhonesContactPhoneGetResponse = zPagePhoneResponse +export const zGetPhonesContactPhoneGetResponse = zPagePhoneResponse; export const zCreatePhoneContactPhonePostData = z.object({ - body: zCreatePhone, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreatePhone, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreatePhoneContactPhonePostResponse = zPhoneResponse +export const zCreatePhoneContactPhonePostResponse = zPhoneResponse; export const zDeleteContactEmailContactEmailEmailIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - email_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + email_id: z.int() + }), + query: z.optional(z.never()) +}); export const zGetEmailByIdContactEmailEmailIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - email_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + email_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetEmailByIdContactEmailEmailIdGetResponse = zEmailResponse +export const zGetEmailByIdContactEmailEmailIdGetResponse = zEmailResponse; export const zUpdateContactEmailContactEmailEmailIdPatchData = z.object({ - body: zUpdateEmail, - path: z.object({ - email_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateEmail, + path: z.object({ + email_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateContactEmailContactEmailEmailIdPatchResponse = - zEmailResponse +export const zUpdateContactEmailContactEmailEmailIdPatchResponse = zEmailResponse; export const zDeleteContactPhoneContactPhonePhoneIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - phone_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + phone_id: z.int() + }), + query: z.optional(z.never()) +}); export const zGetPhoneByIdContactPhonePhoneIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - phone_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + phone_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetPhoneByIdContactPhonePhoneIdGetResponse = zPhoneResponse +export const zGetPhoneByIdContactPhonePhoneIdGetResponse = zPhoneResponse; export const zUpdateContactPhoneContactPhonePhoneIdPatchData = z.object({ - body: zUpdatePhone, - path: z.object({ - phone_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdatePhone, + path: z.object({ + phone_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateContactPhoneContactPhonePhoneIdPatchResponse = - zPhoneResponse +export const zUpdateContactPhoneContactPhonePhoneIdPatchResponse = zPhoneResponse; export const zDeleteContactAddressContactAddressAddressIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - address_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + address_id: z.int() + }), + query: z.optional(z.never()) +}); export const zGetAddressByIdContactAddressAddressIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - address_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + address_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetAddressByIdContactAddressAddressIdGetResponse = - zAddressResponse +export const zGetAddressByIdContactAddressAddressIdGetResponse = zAddressResponse; export const zUpdateContactAddressContactAddressAddressIdPatchData = z.object({ - body: zUpdateAddress, - path: z.object({ - address_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateAddress, + path: z.object({ + address_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateContactAddressContactAddressAddressIdPatchResponse = - zAddressResponse +export const zUpdateContactAddressContactAddressAddressIdPatchResponse = zAddressResponse; export const zDeleteContactContactContactIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int() + }), + query: z.optional(z.never()) +}); export const zGetContactByIdContactContactIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetContactByIdContactContactIdGetResponse = zContactResponse +export const zGetContactByIdContactContactIdGetResponse = zContactResponse; export const zUpdateContactContactContactIdPatchData = z.object({ - body: zUpdateContact, - path: z.object({ - contact_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateContact, + path: z.object({ + contact_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateContactContactContactIdPatchResponse = zContactResponse +export const zUpdateContactContactContactIdPatchResponse = zContactResponse; export const zGetContactEmailsContactContactIdEmailGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int(), - }), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int() + }), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetContactEmailsContactContactIdEmailGetResponse = - zPageEmailResponse +export const zGetContactEmailsContactContactIdEmailGetResponse = zPageEmailResponse; export const zGetContactPhonesContactContactIdPhoneGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int(), - }), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int() + }), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetContactPhonesContactContactIdPhoneGetResponse = - zPagePhoneResponse +export const zGetContactPhonesContactContactIdPhoneGetResponse = zPagePhoneResponse; export const zGetContactAddressesContactContactIdAddressGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - contact_id: z.int(), - }), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.object({ + contact_id: z.int() + }), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetContactAddressesContactContactIdAddressGetResponse = - zPageAddressResponse +export const zGetContactAddressesContactContactIdAddressGetResponse = zPageAddressResponse; export const zGetGeospatialGeospatialGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_type: z.optional(z.array(z.string())), - group: z.optional(z.union([z.string(), z.int()])), - format: z - .optional(z.string().regex(/^(geojson|shapefile)$/)) - .default('geojson'), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + thing_type: z.optional(z.array(z.string())), + group: z.optional(z.union([ + z.string(), + z.int() + ])), + format: z.optional(z.string().regex(/^(geojson|shapefile)$/)).default('geojson') + })) +}); export const zGetProjectAreaGeospatialProjectAreaGroupIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - group_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + group_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetProjectAreaGeospatialProjectAreaGroupIdGetResponse = - zFeatureCollectionResponse +export const zGetProjectAreaGeospatialProjectAreaGroupIdGetResponse = zFeatureCollectionResponse; export const zGetGroupsGroupGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetGroupsGroupGetResponse = zPageGroupResponse +export const zGetGroupsGroupGetResponse = zPageGroupResponse; export const zCreateGroupGroupPostData = z.object({ - body: zCreateGroup, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateGroup, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateGroupGroupPostResponse = zGroupResponse +export const zCreateGroupGroupPostResponse = zGroupResponse; export const zDeleteGroupGroupGroupIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - group_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + group_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteGroupGroupGroupIdDeleteResponse = z.void() +export const zDeleteGroupGroupGroupIdDeleteResponse = z.void(); export const zGetGroupByIdGroupGroupIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - group_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + group_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetGroupByIdGroupGroupIdGetResponse = zGroupResponse +export const zGetGroupByIdGroupGroupIdGetResponse = zGroupResponse; export const zUpdateGroupGroupGroupIdPatchData = z.object({ - body: zUpdateGroup, - path: z.object({ - group_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateGroup, + path: z.object({ + group_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateGroupGroupGroupIdPatchResponse = zGroupResponse +export const zUpdateGroupGroupGroupIdPatchResponse = zGroupResponse; export const zGetLexiconCategoriesLexiconCategoryGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - sort: z.optional(z.string()).default('name'), - order: z.optional(z.string()).default('asc'), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + sort: z.optional(z.string()).default('name'), + order: z.optional(z.string()).default('asc'), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetLexiconCategoriesLexiconCategoryGetResponse = - zPageLexiconCategoryResponse +export const zGetLexiconCategoriesLexiconCategoryGetResponse = zPageLexiconCategoryResponse; export const zAddCategoryLexiconCategoryPostData = z.object({ - body: zCreateLexiconCategory, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateLexiconCategory, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddCategoryLexiconCategoryPostResponse = zLexiconCategoryResponse +export const zAddCategoryLexiconCategoryPostResponse = zLexiconCategoryResponse; export const zGetLexiconTermsLexiconTermGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - category: z.optional(z.union([z.string(), z.null()])), - term: z.optional(z.union([z.string(), z.null()])), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + category: z.optional(z.union([ + z.string(), + z.null() + ])), + term: z.optional(z.union([ + z.string(), + z.null() + ])), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetLexiconTermsLexiconTermGetResponse = zPageLexiconTermResponse +export const zGetLexiconTermsLexiconTermGetResponse = zPageLexiconTermResponse; export const zAddTermLexiconTermPostData = z.object({ - body: zCreateLexiconTerm, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateLexiconTerm, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddTermLexiconTermPostResponse = zLexiconTermResponse +export const zAddTermLexiconTermPostResponse = zLexiconTermResponse; export const zGetLexiconTriplesLexiconTripleGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - sort: z.optional(z.string()).default('subject'), - order: z.optional(z.string()).default('asc'), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + sort: z.optional(z.string()).default('subject'), + order: z.optional(z.string()).default('asc'), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetLexiconTriplesLexiconTripleGetResponse = - zPageLexiconTripleResponse +export const zGetLexiconTriplesLexiconTripleGetResponse = zPageLexiconTripleResponse; export const zAddTripleLexiconTriplePostData = z.object({ - body: zCreateLexiconTriple, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateLexiconTriple, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddTripleLexiconTriplePostResponse = zLexiconTripleResponse +export const zAddTripleLexiconTriplePostResponse = zLexiconTripleResponse; export const zDeleteLexiconTermLexiconTermTermIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - term_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + term_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteLexiconTermLexiconTermTermIdDeleteResponse = z.void() +export const zDeleteLexiconTermLexiconTermTermIdDeleteResponse = z.void(); export const zGetLexiconTermLexiconTermTermIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - term_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + term_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetLexiconTermLexiconTermTermIdGetResponse = zLexiconTermResponse +export const zGetLexiconTermLexiconTermTermIdGetResponse = zLexiconTermResponse; export const zUpdateLexiconTermLexiconTermTermIdPatchData = z.object({ - body: zUpdateLexiconTerm, - path: z.object({ - term_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateLexiconTerm, + path: z.object({ + term_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateLexiconTermLexiconTermTermIdPatchResponse = - zLexiconTermResponse +export const zUpdateLexiconTermLexiconTermTermIdPatchResponse = zLexiconTermResponse; -export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteData = - z.object({ +export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteData = z.object({ body: z.optional(z.never()), path: z.object({ - category_id: z.int(), + category_id: z.int() }), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = - z.void() +export const zDeleteLexiconCategoryLexiconCategoryCategoryIdDeleteResponse = z.void(); export const zGetLexiconCategoryLexiconCategoryCategoryIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - category_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + category_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetLexiconCategoryLexiconCategoryCategoryIdGetResponse = - zLexiconCategoryResponse +export const zGetLexiconCategoryLexiconCategoryCategoryIdGetResponse = zLexiconCategoryResponse; -export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchData = - z.object({ +export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchData = z.object({ body: zUpdateLexiconCategory, path: z.object({ - category_id: z.int(), + category_id: z.int() }), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = - zLexiconCategoryResponse +export const zUpdateLexiconCategoryLexiconCategoryCategoryIdPatchResponse = zLexiconCategoryResponse; export const zDeleteLexiconTripleLexiconTripleTripleIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - triple_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + triple_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = z.void() +export const zDeleteLexiconTripleLexiconTripleTripleIdDeleteResponse = z.void(); export const zGetLexiconTripleLexiconTripleTripleIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - triple_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + triple_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetLexiconTripleLexiconTripleTripleIdGetResponse = - zLexiconTripleResponse +export const zGetLexiconTripleLexiconTripleTripleIdGetResponse = zLexiconTripleResponse; export const zUpdateLexiconTripleLexiconTripleTripleIdPatchData = z.object({ - body: zUpdateLexiconTriple, - path: z.object({ - triple_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateLexiconTriple, + path: z.object({ + triple_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateLexiconTripleLexiconTripleTripleIdPatchResponse = - zLexiconTripleResponse +export const zUpdateLexiconTripleLexiconTripleTripleIdPatchResponse = zLexiconTripleResponse; export const zGetLocationLocationGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - nearby_point: z.optional(z.string()), - nearby_distance_km: z.optional(z.number()).default(1), - within: z.optional(z.string()), - query: z.optional(z.string()), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + nearby_point: z.optional(z.string()), + nearby_distance_km: z.optional(z.number()).default(1), + within: z.optional(z.string()), + query: z.optional(z.string()), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetLocationLocationGetResponse = zPageLocationResponse +export const zGetLocationLocationGetResponse = zPageLocationResponse; export const zCreateLocationLocationPostData = z.object({ - body: zCreateLocation, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateLocation, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateLocationLocationPostResponse = zLocationResponse +export const zCreateLocationLocationPostResponse = zLocationResponse; export const zDeleteLocationLocationLocationIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - location_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + location_id: z.int() + }), + query: z.optional(z.never()) +}); export const zGetLocationByIdLocationLocationIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - location_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + location_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetLocationByIdLocationLocationIdGetResponse = zLocationResponse +export const zGetLocationByIdLocationLocationIdGetResponse = zLocationResponse; export const zUpdateLocationLocationLocationIdPatchData = z.object({ - body: zUpdateLocation, - path: z.object({ - location_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateLocation, + path: z.object({ + location_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateLocationLocationLocationIdPatchResponse = zLocationResponse +export const zUpdateLocationLocationLocationIdPatchResponse = zLocationResponse; -export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = - z.object({ +export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetData = z.object({ body: z.optional(z.never()), path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.union([z.int(), z.null()])), - sensor_id: z.optional(z.union([z.int(), z.null()])), - sample_id: z.optional(z.union([z.int(), z.null()])), - start_time: z.optional( - z.union([ + query: z.optional(z.object({ + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sensor_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sample_id: z.optional(z.union([ + z.int(), + z.null() + ])), + start_time: z.optional(z.union([ z.iso.datetime({ - offset: true, + offset: true }), - z.null(), - ]) - ), - end_time: z.optional( - z.union([ + z.null() + ])), + end_time: z.optional(z.union([ z.iso.datetime({ - offset: true, + offset: true }), - z.null(), - ]) - ), - sort: z.optional(z.union([z.string(), z.null()])), - order: z.optional(z.union([z.string(), z.null()])), + z.null() + ])), + sort: z.optional(z.union([ + z.string(), + z.null() + ])), + order: z.optional(z.union([ + z.string(), + z.null() + ])), filter: z.optional(z.string()), page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), - }) + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = - zPageGroundwaterLevelObservationResponse +export const zGetGroundwaterLevelObservationsObservationGroundwaterLevelGetResponse = zPageGroundwaterLevelObservationResponse; -export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostData = - z.object({ +export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostData = z.object({ body: zCreateGroundwaterLevelObservation, path: z.optional(z.never()), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = - zGroundwaterLevelObservationResponse +export const zAddGroundwaterLevelObservationObservationGroundwaterLevelPostResponse = zGroundwaterLevelObservationResponse; -export const zGetWaterChemistryObservationsObservationWaterChemistryGetData = - z.object({ +export const zGetWaterChemistryObservationsObservationWaterChemistryGetData = z.object({ body: z.optional(z.never()), path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.union([z.int(), z.null()])), - sensor_id: z.optional(z.union([z.int(), z.null()])), - sample_id: z.optional(z.union([z.int(), z.null()])), - start_time: z.optional( - z.union([ + query: z.optional(z.object({ + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sensor_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sample_id: z.optional(z.union([ + z.int(), + z.null() + ])), + start_time: z.optional(z.union([ z.iso.datetime({ - offset: true, + offset: true }), - z.null(), - ]) - ), - end_time: z.optional( - z.union([ + z.null() + ])), + end_time: z.optional(z.union([ z.iso.datetime({ - offset: true, + offset: true }), - z.null(), - ]) - ), - sort: z.optional(z.union([z.string(), z.null()])), - order: z.optional(z.union([z.string(), z.null()])), + z.null() + ])), + sort: z.optional(z.union([ + z.string(), + z.null() + ])), + order: z.optional(z.union([ + z.string(), + z.null() + ])), filter: z.optional(z.string()), page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), - }) + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetWaterChemistryObservationsObservationWaterChemistryGetResponse = - zPageWaterChemistryObservationResponse +export const zGetWaterChemistryObservationsObservationWaterChemistryGetResponse = zPageWaterChemistryObservationResponse; -export const zAddWaterChemistryObservationObservationWaterChemistryPostData = - z.object({ +export const zAddWaterChemistryObservationObservationWaterChemistryPostData = z.object({ body: zCreateWaterChemistryObservation, path: z.optional(z.never()), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddWaterChemistryObservationObservationWaterChemistryPostResponse = - zWaterChemistryObservationResponse +export const zAddWaterChemistryObservationObservationWaterChemistryPostResponse = zWaterChemistryObservationResponse; -export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = - z.object({ +export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetData = z.object({ body: z.optional(z.never()), path: z.object({ - observation_id: z.int(), + observation_id: z.int() }), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = - zGroundwaterLevelObservationResponse +export const zGetGroundwaterLevelObservationByIdObservationGroundwaterLevelObservationIdGetResponse = zGroundwaterLevelObservationResponse; -export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = - z.object({ +export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchData = z.object({ body: zUpdateGroundwaterLevelObservation, path: z.object({ - observation_id: z.int(), + observation_id: z.int() }), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = - zGroundwaterLevelObservationResponse +export const zUpdateGroundwaterLevelObservationObservationGroundwaterLevelObservationIdPatchResponse = zGroundwaterLevelObservationResponse; -export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = - z.object({ +export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetData = z.object({ body: z.optional(z.never()), path: z.object({ - observation_id: z.int(), + observation_id: z.int() }), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = - zWaterChemistryObservationResponse +export const zGetWaterChemistryObservationByIdObservationWaterChemistryObservationIdGetResponse = zWaterChemistryObservationResponse; -export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = - z.object({ +export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchData = z.object({ body: zUpdateWaterChemistryObservation, path: z.object({ - observation_id: z.int(), + observation_id: z.int() }), - query: z.optional(z.never()), - }) + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = - zWaterChemistryObservationResponse +export const zUpdateWaterChemistryObservationObservationWaterChemistryObservationIdPatchResponse = zWaterChemistryObservationResponse; -export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = - z.object({ +export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetData = z.object({ body: z.optional(z.never()), path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.union([z.int(), z.null()])), - parameter_id: z.optional(z.union([z.int(), z.null()])), - start_time: z.optional( - z.union([ + query: z.optional(z.object({ + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])), + parameter_id: z.optional(z.union([ + z.int(), + z.null() + ])), + start_time: z.optional(z.union([ z.iso.datetime({ - offset: true, + offset: true }), - z.null(), - ]) - ), - end_time: z.optional( - z.union([ + z.null() + ])), + end_time: z.optional(z.union([ z.iso.datetime({ - offset: true, + offset: true }), - z.null(), - ]) - ), + z.null() + ])), page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), - }) + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = - zPageTransducerObservationWithBlockResponse +export const zGetTransducerGroundwaterLevelObservationsObservationTransducerGroundwaterLevelGetResponse = zPageTransducerObservationWithBlockResponse; export const zGetAllObservationsObservationGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.union([z.int(), z.null()])), - sensor_id: z.optional(z.union([z.int(), z.null()])), - sample_id: z.optional(z.union([z.int(), z.null()])), - start_time: z.optional( - z.union([ - z.iso.datetime({ - offset: true, - }), - z.null(), - ]) - ), - end_time: z.optional( - z.union([ - z.iso.datetime({ - offset: true, - }), - z.null(), - ]) - ), - sort: z.optional(z.union([z.string(), z.null()])), - order: z.optional(z.union([z.string(), z.null()])), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sensor_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sample_id: z.optional(z.union([ + z.int(), + z.null() + ])), + start_time: z.optional(z.union([ + z.iso.datetime({ + offset: true + }), + z.null() + ])), + end_time: z.optional(z.union([ + z.iso.datetime({ + offset: true + }), + z.null() + ])), + sort: z.optional(z.union([ + z.string(), + z.null() + ])), + order: z.optional(z.union([ + z.string(), + z.null() + ])), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetAllObservationsObservationGetResponse = - zPageObservationResponse +export const zGetAllObservationsObservationGetResponse = zPageObservationResponse; export const zDeleteObservationObservationObservationIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - observation_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + observation_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteObservationObservationObservationIdDeleteResponse = z.void() +export const zDeleteObservationObservationObservationIdDeleteResponse = z.void(); export const zGetObservationByIdObservationObservationIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - observation_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + observation_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetObservationByIdObservationObservationIdGetResponse = - zObservationResponse +export const zGetObservationByIdObservationObservationIdGetResponse = zObservationResponse; export const zPostPublicationPublicationAddPostData = z.object({ - body: zCreatePublication, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreatePublication, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zPostPublicationPublicationAddPostResponse = zPublicationResponse +export const zPostPublicationPublicationAddPostResponse = zPublicationResponse; export const zGetSamplesSampleGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.union([z.int(), z.null()])), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + thing_id: z.optional(z.union([ + z.int(), + z.null() + ])), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetSamplesSampleGetResponse = zPageSampleResponse +export const zGetSamplesSampleGetResponse = zPageSampleResponse; export const zAddSampleSamplePostData = z.object({ - body: zCreateSample, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateSample, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddSampleSamplePostResponse = zSampleResponse +export const zAddSampleSamplePostResponse = zSampleResponse; export const zDeleteSampleByIdSampleSampleIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sample_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + sample_id: z.int() + }), + query: z.optional(z.never()) +}); export const zGetSampleByIdSampleSampleIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sample_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + sample_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Response Get Sample By Id Sample Sample Id Get * Successful Response */ export const zGetSampleByIdSampleSampleIdGetResponse = z.union([ - zSampleResponse, - zResourceNotFoundResponse, -]) + zSampleResponse, + zResourceNotFoundResponse +]); export const zUpdateSampleSampleSampleIdPatchData = z.object({ - body: zUpdateSample, - path: z.object({ - sample_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateSample, + path: z.object({ + sample_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Response Update Sample Sample Sample Id Patch * Successful Response */ export const zUpdateSampleSampleSampleIdPatchResponse = z.union([ - zSampleResponse, - zResourceNotFoundResponse, -]) + zSampleResponse, + zResourceNotFoundResponse +]); export const zGetSensorsSensorGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.int()), - parameter_id: z.optional(z.int()), - sort: z.optional(z.union([z.string(), z.null()])), - order: z.optional(z.union([z.string(), z.null()])), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + thing_id: z.optional(z.int()), + parameter_id: z.optional(z.int()), + sort: z.optional(z.union([ + z.string(), + z.null() + ])), + order: z.optional(z.union([ + z.string(), + z.null() + ])), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetSensorsSensorGetResponse = zPageSensorResponse +export const zGetSensorsSensorGetResponse = zPageSensorResponse; export const zAddSensorSensorPostData = z.object({ - body: zCreateSensor, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateSensor, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zAddSensorSensorPostResponse = zSensorResponse +export const zAddSensorSensorPostResponse = zSensorResponse; export const zDeleteSensorSensorSensorIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sensor_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + sensor_id: z.int() + }), + query: z.optional(z.never()) +}); export const zGetSensorSensorSensorIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - sensor_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + sensor_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetSensorSensorSensorIdGetResponse = zSensorResponse +export const zGetSensorSensorSensorIdGetResponse = zSensorResponse; export const zUpdateSensorSensorSensorIdPatchData = z.object({ - body: zUpdateSensor, - path: z.object({ - sensor_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateSensor, + path: z.object({ + sensor_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateSensorSensorSensorIdPatchResponse = zSensorResponse +export const zUpdateSensorSensorSensorIdPatchResponse = zSensorResponse; export const zSearchApiSearchGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.object({ - q: z.string(), - limit: z.optional(z.int()).default(25), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.object({ + q: z.string(), + limit: z.optional(z.int()).default(25), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + }) +}); /** * Successful Response */ -export const zSearchApiSearchGetResponse = zPageDict +export const zSearchApiSearchGetResponse = zPageDict; export const zGetWaterWellsThingWaterWellGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - query: z.optional(z.string()), - name: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + query: z.optional(z.string()), + name: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetWaterWellsThingWaterWellGetResponse = zPageWellResponse +export const zGetWaterWellsThingWaterWellGetResponse = zPageWellResponse; export const zCreateWellThingWaterWellPostData = z.object({ - body: zCreateWell, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateWell, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateWellThingWaterWellPostResponse = zWellResponse +export const zCreateWellThingWaterWellPostResponse = zWellResponse; export const zGetWellByIdThingWaterWellThingIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetWellByIdThingWaterWellThingIdGetResponse = zWellResponse +export const zGetWellByIdThingWaterWellThingIdGetResponse = zWellResponse; export const zUpdateWaterWellThingWaterWellThingIdPatchData = z.object({ - body: zUpdateWell, - path: z.object({ - thing_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateWell, + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateWaterWellThingWaterWellThingIdPatchResponse = zWellResponse +export const zUpdateWaterWellThingWaterWellThingIdPatchResponse = zWellResponse; -export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetData = - z.object({ +export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetData = z.object({ body: z.optional(z.never()), path: z.object({ - thing_id: z.int(), + thing_id: z.int() }), - query: z.optional( - z.object({ + query: z.optional(z.object({ page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), - }) + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = - zPageWellScreenResponse +export const zGetWellScreensByWellIdThingWaterWellThingIdWellScreenGetResponse = zPageWellScreenResponse; export const zGetWellScreensThingWellScreenGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - thing_id: z.optional(z.int()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + thing_id: z.optional(z.int()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetWellScreensThingWellScreenGetResponse = zPageWellScreenResponse +export const zGetWellScreensThingWellScreenGetResponse = zPageWellScreenResponse; export const zCreateWellscreenThingWellScreenPostData = z.object({ - body: zCreateWellScreen, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateWellScreen, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateWellscreenThingWellScreenPostResponse = zWellScreenResponse +export const zCreateWellscreenThingWellScreenPostResponse = zWellScreenResponse; export const zGetWellScreenByIdThingWellScreenWellscreenIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - wellscreen_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + wellscreen_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetWellScreenByIdThingWellScreenWellscreenIdGetResponse = - zWellScreenResponse +export const zGetWellScreenByIdThingWellScreenWellscreenIdGetResponse = zWellScreenResponse; export const zGetSpringsThingSpringGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - query: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + query: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetSpringsThingSpringGetResponse = zPageSpringResponse +export const zGetSpringsThingSpringGetResponse = zPageSpringResponse; export const zCreateSpringThingSpringPostData = z.object({ - body: zCreateSpring, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateSpring, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateSpringThingSpringPostResponse = zSpringResponse +export const zCreateSpringThingSpringPostResponse = zSpringResponse; export const zGetSpringByIdThingSpringThingIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetSpringByIdThingSpringThingIdGetResponse = zSpringResponse +export const zGetSpringByIdThingSpringThingIdGetResponse = zSpringResponse; export const zUpdateSpringThingSpringThingIdPatchData = z.object({ - body: zUpdateSpring, - path: z.object({ - thing_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateSpring, + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateSpringThingSpringThingIdPatchResponse = zSpringResponse +export const zUpdateSpringThingSpringThingIdPatchResponse = zSpringResponse; export const zGetThingIdLinksThingIdLinkGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - filter: z.optional(z.string()), - sort: z.optional(z.string()), - order: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + filter: z.optional(z.string()), + sort: z.optional(z.string()), + order: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetThingIdLinksThingIdLinkGetResponse = zPageThingIdLinkResponse +export const zGetThingIdLinksThingIdLinkGetResponse = zPageThingIdLinkResponse; export const zCreateThingIdLinkThingIdLinkPostData = z.object({ - body: zCreateThingIdLink, - path: z.optional(z.never()), - query: z.optional(z.never()), -}) + body: zCreateThingIdLink, + path: z.optional(z.never()), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zCreateThingIdLinkThingIdLinkPostResponse = zThingIdLinkResponse +export const zCreateThingIdLinkThingIdLinkPostResponse = zThingIdLinkResponse; export const zDeleteThingIdLinkThingIdLinkLinkIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - link_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + link_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = z.void() +export const zDeleteThingIdLinkThingIdLinkLinkIdDeleteResponse = z.void(); export const zGetThingIdLinksThingIdLinkLinkIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - link_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + link_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetThingIdLinksThingIdLinkLinkIdGetResponse = zThingIdLinkResponse +export const zGetThingIdLinksThingIdLinkLinkIdGetResponse = zThingIdLinkResponse; export const zUpdateThingIdLinkThingIdLinkLinkIdPatchData = z.object({ - body: zUpdateThingIdLink, - path: z.object({ - link_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateThingIdLink, + path: z.object({ + link_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateThingIdLinkThingIdLinkLinkIdPatchResponse = - zThingIdLinkResponse +export const zUpdateThingIdLinkThingIdLinkLinkIdPatchResponse = zThingIdLinkResponse; export const zGetThingsThingGetData = z.object({ - body: z.optional(z.never()), - path: z.optional(z.never()), - query: z.optional( - z.object({ - within: z.optional(z.string()), - query: z.optional(z.string()), - sort: z.optional(z.string()), - order: z.optional(z.string()), - filter: z.optional(z.string()), - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.optional(z.never()), + query: z.optional(z.object({ + within: z.optional(z.string()), + query: z.optional(z.string()), + sort: z.optional(z.string()), + order: z.optional(z.string()), + filter: z.optional(z.string()), + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetThingsThingGetResponse = zPageThingResponse +export const zGetThingsThingGetResponse = zPageThingResponse; export const zDeleteThingThingThingIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteThingThingThingIdDeleteResponse = z.void() +export const zDeleteThingThingThingIdDeleteResponse = z.void(); export const zGetThingByIdThingThingIdGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zGetThingByIdThingThingIdGetResponse = zThingResponse +export const zGetThingByIdThingThingIdGetResponse = zThingResponse; export const zGetThingIdLinksThingThingIdIdLinkGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int(), - }), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetThingIdLinksThingThingIdIdLinkGetResponse = - zPageThingIdLinkResponse +export const zGetThingIdLinksThingThingIdIdLinkGetResponse = zPageThingIdLinkResponse; export const zGetThingDeploymentsThingThingIdDeploymentGetData = z.object({ - body: z.optional(z.never()), - path: z.object({ - thing_id: z.int(), - }), - query: z.optional( - z.object({ - page: z.optional(z.int().gte(1)).default(1), - size: z.optional(z.int().gte(1).lte(10000)).default(25), - }) - ), -}) + body: z.optional(z.never()), + path: z.object({ + thing_id: z.int() + }), + query: z.optional(z.object({ + page: z.optional(z.int().gte(1)).default(1), + size: z.optional(z.int().gte(1).lte(10000)).default(25) + })) +}); /** * Successful Response */ -export const zGetThingDeploymentsThingThingIdDeploymentGetResponse = - zPageDeploymentResponse +export const zGetThingDeploymentsThingThingIdDeploymentGetResponse = zPageDeploymentResponse; export const zDeleteWellScreenThingWellScreenWellScreenIdDeleteData = z.object({ - body: z.optional(z.never()), - path: z.object({ - well_screen_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: z.optional(z.never()), + path: z.object({ + well_screen_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zDeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = - z.void() +export const zDeleteWellScreenThingWellScreenWellScreenIdDeleteResponse = z.void(); export const zUpdateWellScreenThingWellScreenWellScreenIdPatchData = z.object({ - body: zUpdateWellScreen, - path: z.object({ - well_screen_id: z.int(), - }), - query: z.optional(z.never()), -}) + body: zUpdateWellScreen, + path: z.object({ + well_screen_id: z.int() + }), + query: z.optional(z.never()) +}); /** * Successful Response */ -export const zUpdateWellScreenThingWellScreenWellScreenIdPatchResponse = - zWellScreenResponse +export const zUpdateWellScreenThingWellScreenWellScreenIdPatchResponse = zWellScreenResponse; \ No newline at end of file From 9d4e9ba6141b32b8d48f60bbc434c2632f0442cb Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 17:51:21 -0600 Subject: [PATCH 28/35] [vite test] revert files --- .github/workflows/CI_vitest.yml | 2 +- src/test/setup.ts | 50 +++++++++++++-------------------- 2 files changed, 20 insertions(+), 32 deletions(-) diff --git a/.github/workflows/CI_vitest.yml b/.github/workflows/CI_vitest.yml index 2bc7d065..2adc154d 100644 --- a/.github/workflows/CI_vitest.yml +++ b/.github/workflows/CI_vitest.yml @@ -51,4 +51,4 @@ jobs: # Run tests npm run test:run env: - NODE_ENV: test + NODE_ENV: test \ No newline at end of file diff --git a/src/test/setup.ts b/src/test/setup.ts index 170eb6f7..b5537a3a 100644 --- a/src/test/setup.ts +++ b/src/test/setup.ts @@ -3,43 +3,31 @@ import { checkMockServerHealth } from './mock-server' import { ocotilloDataProvider } from '@/providers/ocotillo-data-provider' process.env.NODE_ENV = 'test' - -// Mock the authentication provider (for node api contract tests) -vi.mock('@/providers/authentik-provider', () => ({ - getAccessToken: vi.fn().mockResolvedValue('mock-token'), - getAccessControlGroups: vi.fn().mockReturnValue(['Admin']), -})) + + // Mock the authentication provider (for node api contract tests) + vi.mock('@/providers/authentik-provider', () => ({ + getAccessToken: vi.fn().mockResolvedValue('mock-token'), + getAccessControlGroups: vi.fn().mockReturnValue(['Admin']), + })) // Global test setup beforeAll(async () => { - const env = process.env.TEST_ENV || 'mock' - const expectedUrl = - env === 'ci' ? 'http://localhost:8000' : 'http://127.0.0.1:4010' - const actualUrl = ocotilloDataProvider.getApiUrl() - //double check node env is test - if (process.env.NODE_ENV !== 'test') { - throw new Error( - 'Non-Test environment detected. Tests must be run with NODE_ENV=test' - ) - } + //double check node env is test + if (process.env.NODE_ENV !== 'test') { + throw new Error('Non-Test environment detected. Tests must be run with NODE_ENV=test') + } - if (actualUrl !== expectedUrl) { - throw new Error( - `Ocotillo data provider mismatch: expected ${expectedUrl}, got ${actualUrl}` - ) - } else { - console.log(`Ocotillo data provider is using ${expectedUrl}`) - } + //check ocotillo data provider is using the mock server + if (ocotilloDataProvider.getApiUrl() !== 'http://127.0.0.1:4010') { + throw new Error('Ocotillo data provider is not using the mock server. Tests must be run with NODE_ENV=test') + } else { + console.log('Ocotillo data provider is using the mock server, running tests...') + } - if (env === 'mock') { const isHealthy = await checkMockServerHealth() if (!isHealthy) { - console.warn( - 'Mock server health check failed. Some integration tests may fail.' - ) + console.warn('Mock server health check failed. Some integration tests may fail.') } - } else { - console.log('Using live FastAPI server — skipping mock health check.') - } -}) + }) + From ed19238b6a9c6150451d566ea223cccad5551229 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 18:06:44 -0600 Subject: [PATCH 29/35] [settings] Vite test 4010 & cypress 8000 --- src/settings.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/settings.tsx b/src/settings.tsx index d02503f1..cf125f8d 100644 --- a/src/settings.tsx +++ b/src/settings.tsx @@ -1,5 +1,9 @@ import { cypressCheck } from './utils/CypressCheck' +const isCypress = cypressCheck() +const isVitest = process.env.VITEST === 'true' +const isTest = process.env.NODE_ENV === 'test' + export const settings = { rowHeight: 27, filterDebounceMs: 1000, @@ -9,9 +13,11 @@ export const settings = { import.meta.env.VITE_NMBGMR_AMP_API_URL || 'http://localhost:8009', ocotillo_api_url: - cypressCheck() || process.env.NODE_ENV === 'test' - ? 'http://localhost:8000' - : import.meta.env.VITE_OCOTILLO_API_URL || 'http://localhost:8000', + isVitest || (isTest && !isCypress) + ? 'http://127.0.0.1:4010' // mock server for Vitest + : isCypress + ? 'http://localhost:8000' // real CI local FastAPI backend for Cypress + : import.meta.env.VITE_OCOTILLO_API_URL || 'http://localhost:8000', st2_url: 'https://st2.newmexicowaterdata.org/FROST-Server/v1.1', nmbgmr_geothermal_api_url: From fc5c70ba6375b58ed011d70c1da1e2604301c5d9 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 18:11:32 -0600 Subject: [PATCH 30/35] [thing-well-screen] Patch test --- .../api/thing-well-screen.conract.test.ts | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/src/test/ocotillo/integration/api/thing-well-screen.conract.test.ts b/src/test/ocotillo/integration/api/thing-well-screen.conract.test.ts index c564dd2c..fcae18d3 100644 --- a/src/test/ocotillo/integration/api/thing-well-screen.conract.test.ts +++ b/src/test/ocotillo/integration/api/thing-well-screen.conract.test.ts @@ -3,20 +3,19 @@ import { ocotilloDataProvider } from '@/providers/ocotillo-data-provider' import { zWellScreenResponse, zCreateWellScreen, - zUpdateWellScreen + zUpdateWellScreen, } from '@/generated/zod.gen' import { WellScreenResponse, CreateWellScreen, - UpdateWellScreen + UpdateWellScreen, } from '@/generated/types.gen' describe('Ocotillo Integration Tests: Well Screen', () => { - it('should fetch well screens using data provider', async () => { const result = await ocotilloDataProvider.getList({ resource: 'thing/well-screen', - pagination: { current: 1, pageSize: 10 } + pagination: { current: 1, pageSize: 10 }, }) expect(result).toHaveProperty('data') @@ -33,7 +32,9 @@ describe('Ocotillo Integration Tests: Well Screen', () => { } catch (error) { console.error('Schema validation failed:', error.message) console.error('WellScreen data:', JSON.stringify(wellScreen, null, 2)) - throw new Error(`API response doesn't match IWellScreen interface: ${error.message}`) + throw new Error( + `API response doesn't match IWellScreen interface: ${error.message}` + ) } } }) @@ -42,7 +43,7 @@ describe('Ocotillo Integration Tests: Well Screen', () => { const result = await ocotilloDataProvider.getOne({ resource: 'thing/well-screen', id: 1, - meta: {} + meta: {}, }) expect(result).toHaveProperty('data') @@ -56,7 +57,9 @@ describe('Ocotillo Integration Tests: Well Screen', () => { } catch (error) { console.error('Schema validation failed:', error.message) console.error('WellScreen data:', JSON.stringify(wellScreen, null, 2)) - throw new Error(`API response doesn't match IWellScreen interface: ${error.message}`) + throw new Error( + `API response doesn't match IWellScreen interface: ${error.message}` + ) } }) @@ -66,13 +69,13 @@ describe('Ocotillo Integration Tests: Well Screen', () => { release_status: 'public', screen_depth_bottom: 100, screen_depth_top: 200, - screen_type: 'Test Type', - screen_description: 'Test Description' + screen_type: 'Steel', + screen_description: 'Test Description', }) const result = await ocotilloDataProvider.create({ resource: 'thing/well-screen', - variables: createData + variables: createData, }) expect(result).toHaveProperty('data') @@ -86,7 +89,9 @@ describe('Ocotillo Integration Tests: Well Screen', () => { } catch (error) { console.error('Schema validation failed:', error.message) console.error('WellScreen data:', JSON.stringify(wellScreen, null, 2)) - throw new Error(`API response doesn't match IWellScreen interface: ${error.message}`) + throw new Error( + `API response doesn't match IWellScreen interface: ${error.message}` + ) } }) @@ -95,14 +100,14 @@ describe('Ocotillo Integration Tests: Well Screen', () => { release_status: 'public', screen_depth_bottom: 80, screen_depth_top: 180, - screen_type: 'Updated Test Type', - screen_description: 'Updated Test Description' + screen_type: 'Steel', + screen_description: 'Updated Test Description', }) const result = await ocotilloDataProvider.update({ resource: 'thing/well-screen', id: 1, - variables: updateData + variables: updateData, }) expect(result).toHaveProperty('data') @@ -116,7 +121,9 @@ describe('Ocotillo Integration Tests: Well Screen', () => { } catch (error) { console.error('Schema validation failed:', error.message) console.error('WellScreen data:', JSON.stringify(wellScreen, null, 2)) - throw new Error(`API response doesn't match IWellScreen interface: ${error.message}`) + throw new Error( + `API response doesn't match IWellScreen interface: ${error.message}` + ) } }) -}) \ No newline at end of file +}) From 7624c4083e7972890e557c6c07a22f185a4d91a3 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 18:28:55 -0600 Subject: [PATCH 31/35] [cypress] rm waits --- .github/workflows/CI_cypress.yml | 2 +- cypress/e2e/ocotillo/contact_create.cy.ts | 8 ++------ cypress/e2e/ocotillo/contact_edit.cy.ts | 2 -- cypress/e2e/ocotillo/well-show.cy.ts | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index 11ed72fd..b3fb2ba3 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -1,4 +1,4 @@ -name: Full Integration Tests +name: Cypress Test Suite on: pull_request: diff --git a/cypress/e2e/ocotillo/contact_create.cy.ts b/cypress/e2e/ocotillo/contact_create.cy.ts index e6088506..726faca3 100644 --- a/cypress/e2e/ocotillo/contact_create.cy.ts +++ b/cypress/e2e/ocotillo/contact_create.cy.ts @@ -42,9 +42,7 @@ describe('Contact Create Page', () => { cy.contains('label', 'Organization').parent().find('input').type('Test Organization'); // thing from autocomplete - cy.contains('label', 'Thing').parent().find('input').type('TEST') - // Wait for the API call to complete - cy.wait(500) + cy.contains('label', 'Thing').parent().find('input').click() cy.get('[role="listbox"]').should('be.visible'); cy.get('[role="listbox"] li').first().click(); @@ -73,9 +71,7 @@ describe('Contact Create Page', () => { cy.contains('label', 'Organization').parent().find('input').type('Test Organization'); // thing from autocomplete - cy.contains('label', 'Thing').parent().find('input').type('TEST') - // Wait for the API call to complete - cy.wait(500) + cy.contains('label', 'Thing').parent().find('input').click() cy.get('[role="listbox"]').should('be.visible'); cy.get('[role="listbox"] li').first().click(); diff --git a/cypress/e2e/ocotillo/contact_edit.cy.ts b/cypress/e2e/ocotillo/contact_edit.cy.ts index 6935f250..52e94c45 100644 --- a/cypress/e2e/ocotillo/contact_edit.cy.ts +++ b/cypress/e2e/ocotillo/contact_edit.cy.ts @@ -57,8 +57,6 @@ describe('Contact Edit Page', () => { cy.contains('label', 'Contact Type').parent().find('[role="combobox"]').click(); cy.get('[role="listbox"] li').first().click(); - cy.wait(5000); // wait for save button to be enabled - cy.get('button').contains(/save/i).click(); // Wait for the update contact api call to complete diff --git a/cypress/e2e/ocotillo/well-show.cy.ts b/cypress/e2e/ocotillo/well-show.cy.ts index fd37d69c..a25c46d7 100644 --- a/cypress/e2e/ocotillo/well-show.cy.ts +++ b/cypress/e2e/ocotillo/well-show.cy.ts @@ -5,7 +5,7 @@ describe('Thing Well Show Page', () => { cy.login() cy.intercept('GET', '**/thing/**').as('getWell') - cy.visit('/ocotillo/well/show/107') + cy.visit('/ocotillo/well/show/1') cy.wait('@getWell') }) From 0fc1559167559cea6fc888eea6d6e48246a7bdab Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 18:29:47 -0600 Subject: [PATCH 32/35] [settings] Add guard for node v vite builds --- src/settings.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/settings.tsx b/src/settings.tsx index cf125f8d..ed3388ae 100644 --- a/src/settings.tsx +++ b/src/settings.tsx @@ -1,8 +1,17 @@ import { cypressCheck } from './utils/CypressCheck' +const getNodeEnv = (key: string) => { + if (typeof process !== 'undefined' && process.env) return process.env[key] + return undefined +} + const isCypress = cypressCheck() -const isVitest = process.env.VITEST === 'true' -const isTest = process.env.NODE_ENV === 'test' +const isVitest = + getNodeEnv('VITEST') === 'true' || import.meta.env.VITEST === 'true' +const isTest = + getNodeEnv('NODE_ENV') === 'test' || + import.meta.env.MODE === 'test' || + import.meta.env.NODE_ENV === 'test' export const settings = { rowHeight: 27, From b84ebfb98e120ce3d242e775a93f6d6d3051775d Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Tue, 4 Nov 2025 19:47:26 -0600 Subject: [PATCH 33/35] [cypress/**/location_*] Patch test to circumvent USGS fetch --- cypress/e2e/ocotillo/location_create.cy.ts | 271 +++++++++++------ cypress/e2e/ocotillo/location_edit.cy.ts | 323 ++++++++++++++------- 2 files changed, 412 insertions(+), 182 deletions(-) diff --git a/cypress/e2e/ocotillo/location_create.cy.ts b/cypress/e2e/ocotillo/location_create.cy.ts index 696e34e3..6a57d8d3 100644 --- a/cypress/e2e/ocotillo/location_create.cy.ts +++ b/cypress/e2e/ocotillo/location_create.cy.ts @@ -1,130 +1,231 @@ /// -import { zCreateLocation } from '../../../src/generated/zod.gen'; +import { zCreateLocation } from '../../../src/generated/zod.gen' describe('Location Create Page', () => { beforeEach(() => { // Interceptor for the create location api call cy.intercept('POST', '**/location**', (req) => { - const validationResult = zCreateLocation.safeParse(req.body); + const validationResult = zCreateLocation.safeParse(req.body) if (!validationResult.success) { - console.error('Validation failed:', validationResult.error); - throw new Error(`Invalid payload: ${JSON.stringify(validationResult.error.issues)}`); + console.error('Validation failed:', validationResult.error) + throw new Error( + `Invalid payload: ${JSON.stringify(validationResult.error.issues)}` + ) } // Create location response req.reply({ statusCode: 201, - body: { id: 1, ...validationResult.data } - }); - }).as('createLocation'); + body: { id: 1, ...validationResult.data }, + }) + }).as('createLocation') - cy.login(); - cy.visit('/ocotillo/location/create'); - }); + cy.login() + cy.visit('/ocotillo/location/create') + }) it('should render all required UI elements', () => { - cy.contains(/create location/i).should('exist'); - + cy.contains(/create location/i).should('exist') + // Check coordinate system toggle - cy.contains('label', 'Toggle between using Northing/Easting or Latitude/Longitude').should('exist'); - + cy.contains( + 'label', + 'Toggle between using Northing/Easting or Latitude/Longitude' + ).should('exist') + // Check coordinate input fields - cy.contains('label', 'Latitude (decimal degrees)').should('exist'); - cy.contains('label', 'Longitude (decimal degrees)').should('exist'); - cy.contains('label', 'Coordinate Accuracy (ft)').should('exist'); - cy.contains('label', 'Coordinate Method').should('exist'); - + cy.contains('label', 'Latitude (decimal degrees)').should('exist') + cy.contains('label', 'Longitude (decimal degrees)').should('exist') + cy.contains('label', 'Coordinate Accuracy (ft)').should('exist') + cy.contains('label', 'Coordinate Method').should('exist') + // Check elevation fields - cy.contains('label', 'Auto-generate elevation from USGS DEM').should('exist'); - cy.contains('label', 'Elevation (ft)').should('exist'); - cy.contains('label', 'Elevation Accuracy (ft)').should('exist'); - cy.contains('label', 'Elevation Method').should('exist'); - + cy.contains('label', 'Auto-generate elevation from USGS DEM') + .parent() + .find('input[type="checkbox"]') + .click() + + cy.contains('label', 'Elevation (ft)') + .parent() + .find('input') + .clear() + .type('5000') + cy.contains('label', 'Elevation Accuracy (ft)') + .parent() + .find('input') + .clear() + .type('1.5') + cy.contains('label', 'Elevation Method').should('exist') + // Check other fields - cy.contains('label', 'Release Status').should('exist'); - cy.contains('label', 'Notes').should('exist'); - cy.contains('label', 'WKT Point (Auto-generated)').should('exist'); - + cy.contains('label', 'Release Status').should('exist') + cy.contains('label', 'Notes').should('exist') + cy.contains('label', 'WKT Point (Auto-generated)').should('exist') + // Come back to testing the map - - cy.get('button').contains(/save/i).should('exist'); - }); + + cy.get('button').contains(/save/i).should('exist') + }) it('should allow user to fill out only required fields and submit location', () => { - - cy.contains('label', 'Latitude (decimal degrees)').parent().find('input').type('34.068279'); - cy.contains('label', 'Longitude (decimal degrees)').parent().find('input').type('-106.904192'); + cy.contains('label', 'Latitude (decimal degrees)') + .parent() + .find('input') + .type('34.068279') + cy.contains('label', 'Longitude (decimal degrees)') + .parent() + .find('input') + .type('-106.904192') + + // Turn off auto-generate elevation to manually set elevation + cy.contains('label', 'Auto-generate elevation from USGS DEM') + .parent() + .find('input[type="checkbox"]') + .click() + cy.contains('label', 'Elevation (ft)').parent().find('input').type('5000') + cy.contains('label', 'Elevation Accuracy (ft)') + .parent() + .find('input') + .type('1.74') - cy.wait(3000); // wait for elevation DEM to load + cy.wait(3000) // wait for elevation DEM to load - cy.get('button').contains(/save/i).click(); + cy.get('button').contains(/save/i).click() // intercept cy.wait('@createLocation').then((interception) => { - expect(interception.response?.statusCode).to.eq(201); - }); + expect(interception.response?.statusCode).to.eq(201) + }) - cy.contains(/success|created|saved|submitted successfully/i, { timeout: 10000 }).should('exist'); - }); + cy.contains(/success|created|saved|submitted successfully/i, { + timeout: 10000, + }).should('exist') + }) it('should allow user to fill out all fields and submit location', () => { - - cy.contains('label', 'Latitude (decimal degrees)').parent().find('input').type('34.068279'); - cy.contains('label', 'Longitude (decimal degrees)').parent().find('input').type('-106.904192'); - + cy.contains('label', 'Latitude (decimal degrees)') + .parent() + .find('input') + .type('34.068279') + cy.contains('label', 'Longitude (decimal degrees)') + .parent() + .find('input') + .type('-106.904192') + // coordinate fields - cy.contains('label', 'Coordinate Accuracy (ft)').parent().find('input').type('10'); - cy.contains('label', 'Coordinate Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - + cy.contains('label', 'Coordinate Accuracy (ft)') + .parent() + .find('input') + .type('10') + cy.contains('label', 'Coordinate Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + // Turn off auto-generate elevation to manually set elevation - cy.contains('label', 'Auto-generate elevation from USGS DEM').parent().find('input[type="checkbox"]').click(); - cy.contains('label', 'Elevation (ft)').parent().find('input').type('5000'); - cy.contains('label', 'Elevation Accuracy (ft)').parent().find('input').type('1.74'); - cy.contains('label', 'Elevation Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.contains('label', 'Release Status').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - + cy.contains('label', 'Auto-generate elevation from USGS DEM') + .parent() + .find('input[type="checkbox"]') + .click() + cy.contains('label', 'Elevation (ft)').parent().find('input').type('5000') + cy.contains('label', 'Elevation Accuracy (ft)') + .parent() + .find('input') + .type('1.74') + cy.contains('label', 'Elevation Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.contains('label', 'Release Status') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + // notes field - cy.contains('label', 'Notes').parent().find('textarea').first().type('Test location for automated testing'); + cy.contains('label', 'Notes') + .parent() + .find('textarea') + .first() + .type('Test location for automated testing') - cy.get('button').contains(/save/i).click(); + cy.get('button').contains(/save/i).click() // intercept cy.wait('@createLocation').then((interception) => { - expect(interception.response?.statusCode).to.eq(201); - }); + expect(interception.response?.statusCode).to.eq(201) + }) - cy.contains(/success|created|saved|submitted successfully/i, { timeout: 10000 }).should('exist'); - }); + cy.contains(/success|created|saved|submitted successfully/i, { + timeout: 10000, + }).should('exist') + }) it('should allow user to use UTM coordinates instead of lat/long', () => { // toggle to UTM mode - cy.contains('label', 'Toggle between using Northing/Easting or Latitude/Longitude').parent().find('input[type="checkbox"]').click(); - + cy.contains( + 'label', + 'Toggle between using Northing/Easting or Latitude/Longitude' + ) + .parent() + .find('input[type="checkbox"]') + .click() + + // Turn off auto-generate elevation to manually set elevation + cy.contains('label', 'Auto-generate elevation from USGS DEM') + .parent() + .find('input[type="checkbox"]') + .click() + cy.contains('label', 'Elevation (ft)').parent().find('input').type('5000') + cy.contains('label', 'Elevation Accuracy (ft)') + .parent() + .find('input') + .type('1.74') + // keep utm zone default for now - cy.contains('label', 'Easting (UTM X)').parent().find('input').type('350000'); - cy.contains('label', 'Northing (UTM Y)').parent().find('input').type('3870000'); - - cy.contains('label', 'Coordinate Accuracy (ft)').parent().find('input').type('10'); - cy.contains('label', 'Coordinate Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.contains('label', 'Elevation Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.contains('label', 'Release Status').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.get('button').contains(/save/i).click(); + cy.contains('label', 'Easting (UTM X)') + .parent() + .find('input') + .type('350000') + cy.contains('label', 'Northing (UTM Y)') + .parent() + .find('input') + .type('3870000') + + cy.contains('label', 'Coordinate Accuracy (ft)') + .parent() + .find('input') + .type('10') + cy.contains('label', 'Coordinate Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.contains('label', 'Elevation Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.contains('label', 'Release Status') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.get('button').contains(/save/i).click() // intercept cy.wait('@createLocation').then((interception) => { - expect(interception.response?.statusCode).to.eq(201); - }); - - cy.contains(/success|created|saved|submitted successfully/i, { timeout: 10000 }).should('exist'); - }); -}); \ No newline at end of file + expect(interception.response?.statusCode).to.eq(201) + }) + + cy.contains(/success|created|saved|submitted successfully/i, { + timeout: 10000, + }).should('exist') + }) +}) diff --git a/cypress/e2e/ocotillo/location_edit.cy.ts b/cypress/e2e/ocotillo/location_edit.cy.ts index 01bfee87..d01a181d 100644 --- a/cypress/e2e/ocotillo/location_edit.cy.ts +++ b/cypress/e2e/ocotillo/location_edit.cy.ts @@ -1,152 +1,281 @@ /// -import { zUpdateLocation } from '../../../src/generated/zod.gen'; +import { zUpdateLocation } from '../../../src/generated/zod.gen' describe('Location Edit Page', () => { beforeEach(() => { - cy.fixture('location.json').then((locationData) => { - cy.intercept('GET', '**/location/1**', { - statusCode: 200, - body: locationData - }).as('getLocation'); - }); + cy.intercept('GET', '**/location/1**', { + statusCode: 200, + body: locationData, + }).as('getLocation') + }) // Interceptor for the update location api call cy.intercept('PATCH', '**/location/1**', (req) => { - const validationResult = zUpdateLocation.safeParse(req.body); + const validationResult = zUpdateLocation.safeParse(req.body) if (!validationResult.success) { - console.error('Validation failed:', validationResult.error); - throw new Error(`Invalid payload: ${JSON.stringify(validationResult.error.issues)}`); + console.error('Validation failed:', validationResult.error) + throw new Error( + `Invalid payload: ${JSON.stringify(validationResult.error.issues)}` + ) } // Update location response req.reply({ statusCode: 200, - body: { id: 1, ...validationResult.data } - }); - }).as('updateLocation'); + body: { id: 1, ...validationResult.data }, + }) + }).as('updateLocation') - cy.login(); - cy.visit('/ocotillo/location/edit/1'); - }); + cy.login() + cy.visit('/ocotillo/location/edit/1') + }) it('should render all required UI elements', () => { - cy.contains(/edit location/i).should('exist'); - + cy.contains(/edit location/i).should('exist') + // Check coordinate system toggle - cy.contains('label', 'Toggle between using Northing/Easting or Latitude/Longitude').should('exist'); - + cy.contains( + 'label', + 'Toggle between using Northing/Easting or Latitude/Longitude' + ).should('exist') + // Check coordinate input fields - cy.contains('label', 'Latitude (decimal degrees)').should('exist'); - cy.contains('label', 'Longitude (decimal degrees)').should('exist'); - cy.contains('label', 'Coordinate Accuracy (ft)').should('exist'); - cy.contains('label', 'Coordinate Method').should('exist'); - + cy.contains('label', 'Latitude (decimal degrees)').should('exist') + cy.contains('label', 'Longitude (decimal degrees)').should('exist') + cy.contains('label', 'Coordinate Accuracy (ft)').should('exist') + cy.contains('label', 'Coordinate Method').should('exist') + // Check elevation fields - cy.contains('label', 'Auto-generate elevation from USGS DEM').should('exist'); - cy.contains('label', 'Elevation (ft)').should('exist'); - cy.contains('label', 'Elevation Accuracy (ft)').should('exist'); - cy.contains('label', 'Elevation Method').should('exist'); - + cy.contains('label', 'Auto-generate elevation from USGS DEM').should( + 'exist' + ) + cy.contains('label', 'Elevation (ft)').should('exist') + cy.contains('label', 'Elevation Accuracy (ft)').should('exist') + cy.contains('label', 'Elevation Method').should('exist') + // Check other fields - cy.contains('label', 'Release Status').should('exist'); - cy.contains('label', 'Notes').should('exist'); - cy.contains('label', 'WKT Point (Auto-generated)').should('exist'); - - cy.get('button').contains(/save/i).should('exist'); - }); + cy.contains('label', 'Release Status').should('exist') + cy.contains('label', 'Notes').should('exist') + cy.contains('label', 'WKT Point (Auto-generated)').should('exist') + + cy.get('button').contains(/save/i).should('exist') + }) it('should load existing location data', () => { // Check that existing data is loaded - cy.contains('label', 'Latitude (decimal degrees)').parent().find('input').should('have.value', '34.068279'); - cy.contains('label', 'Longitude (decimal degrees)').parent().find('input').should('have.value', '-106.904192'); - cy.contains('label', 'Elevation (ft)').parent().find('input').should('have.value', '5000'); - cy.contains('label', 'Elevation Accuracy (ft)').parent().find('input').should('have.value', '1.74'); - cy.contains('label', 'Notes').parent().find('textarea').first().should('have.value', 'Existing test location'); - }); + cy.contains('label', 'Latitude (decimal degrees)') + .parent() + .find('input') + .should('have.value', '34.068279') + cy.contains('label', 'Longitude (decimal degrees)') + .parent() + .find('input') + .should('have.value', '-106.904192') + cy.contains('label', 'Elevation (ft)') + .parent() + .find('input') + .should('have.value', '5000') + cy.contains('label', 'Elevation Accuracy (ft)') + .parent() + .find('input') + .should('have.value', '1.74') + cy.contains('label', 'Notes') + .parent() + .find('textarea') + .first() + .should('have.value', 'Existing test location') + }) it('should allow user to update only required fields and submit location', () => { - cy.wait('@getLocation'); + cy.wait('@getLocation') // Clear and update coordinates - cy.contains('label', 'Latitude (decimal degrees)').parent().find('input').clear().type('34.100000'); - cy.contains('label', 'Longitude (decimal degrees)').parent().find('input').clear().type('-106.900000'); + cy.contains('label', 'Latitude (decimal degrees)') + .parent() + .find('input') + .clear() + .type('34.100000') + cy.contains('label', 'Longitude (decimal degrees)') + .parent() + .find('input') + .clear() + .type('-106.900000') + + // Turn off auto-generate elevation to manually set elevation + cy.contains('label', 'Auto-generate elevation from USGS DEM') + .parent() + .find('input[type="checkbox"]') + .click() + cy.contains('label', 'Elevation (ft)') + .parent() + .find('input') + .clear() + .type('5100') + + cy.contains('label', 'Elevation Accuracy (ft)') + .parent() + .find('input') + .clear() + .type('2.5') + + cy.contains('label', 'Elevation Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.contains('label', 'Release Status') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() - cy.wait(3000); // wait for elevation DEM to load + cy.wait(3000) // wait for elevation DEM to load - cy.get('button').contains(/save/i).click(); + cy.get('button').contains(/save/i).click() // intercept cy.wait('@updateLocation').then((interception) => { - expect(interception.response?.statusCode).to.eq(200); - }); + expect(interception.response?.statusCode).to.eq(200) + }) - cy.contains(/success|updated|saved|submitted successfully/i, { timeout: 10000 }).should('exist'); - }); + cy.contains(/success|updated|saved|submitted successfully/i, { + timeout: 10000, + }).should('exist') + }) it('should allow user to update all fields and submit location', () => { - cy.wait('@getLocation'); + cy.wait('@getLocation') // Update coordinates - cy.contains('label', 'Latitude (decimal degrees)').parent().find('input').clear().type('34.100000'); - cy.contains('label', 'Longitude (decimal degrees)').parent().find('input').clear().type('-106.900000'); - + cy.contains('label', 'Latitude (decimal degrees)') + .parent() + .find('input') + .clear() + .type('34.100000') + cy.contains('label', 'Longitude (decimal degrees)') + .parent() + .find('input') + .clear() + .type('-106.900000') + // coordinate fields - cy.contains('label', 'Coordinate Accuracy (ft)').parent().find('input').clear().type('15'); - cy.contains('label', 'Coordinate Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - + cy.contains('label', 'Coordinate Accuracy (ft)') + .parent() + .find('input') + .clear() + .type('15') + cy.contains('label', 'Coordinate Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + // Turn off auto-generate elevation to manually set elevation - cy.contains('label', 'Auto-generate elevation from USGS DEM').parent().find('input[type="checkbox"]').click(); - cy.contains('label', 'Elevation (ft)').parent().find('input').clear().type('5100'); - cy.contains('label', 'Elevation Accuracy (ft)').parent().find('input').clear().type('2.5'); - cy.contains('label', 'Elevation Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.contains('label', 'Release Status').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - + cy.contains('label', 'Auto-generate elevation from USGS DEM') + .parent() + .find('input[type="checkbox"]') + .click() + cy.contains('label', 'Elevation (ft)') + .parent() + .find('input') + .clear() + .type('5100') + cy.contains('label', 'Elevation Accuracy (ft)') + .parent() + .find('input') + .clear() + .type('2.5') + + cy.contains('label', 'Elevation Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.contains('label', 'Release Status') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + // notes field - cy.contains('label', 'Notes').parent().find('textarea').first().clear().type('Updated test location for automated testing'); + cy.contains('label', 'Notes') + .parent() + .find('textarea') + .first() + .clear() + .type('Updated test location for automated testing') - cy.get('button').contains(/save/i).click(); + cy.get('button').contains(/save/i).click() // intercept cy.wait('@updateLocation').then((interception) => { - expect(interception.response?.statusCode).to.eq(200); - }); + expect(interception.response?.statusCode).to.eq(200) + }) - cy.contains(/success|updated|saved|submitted successfully/i, { timeout: 10000 }).should('exist'); - }); + cy.contains(/success|updated|saved|submitted successfully/i, { + timeout: 10000, + }).should('exist') + }) it('should allow user to use UTM coordinates instead of lat/long', () => { - cy.wait('@getLocation'); + cy.wait('@getLocation') // toggle to UTM mode - cy.contains('label', 'Toggle between using Northing/Easting or Latitude/Longitude').parent().find('input[type="checkbox"]').click(); - + cy.contains( + 'label', + 'Toggle between using Northing/Easting or Latitude/Longitude' + ) + .parent() + .find('input[type="checkbox"]') + .click() + // keep utm zone default for now - cy.contains('label', 'Easting (UTM X)').parent().find('input').clear().type('350100'); - cy.contains('label', 'Northing (UTM Y)').parent().find('input').clear().type('3870100'); - - cy.contains('label', 'Coordinate Accuracy (ft)').parent().find('input').clear().type('15'); - cy.contains('label', 'Coordinate Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.contains('label', 'Elevation Method').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.contains('label', 'Release Status').parent().find('[role="combobox"]').click(); - cy.get('[role="listbox"] li').first().click(); - - cy.get('button').contains(/save/i).click(); + cy.contains('label', 'Easting (UTM X)') + .parent() + .find('input') + .clear() + .type('350100') + cy.contains('label', 'Northing (UTM Y)') + .parent() + .find('input') + .clear() + .type('3870100') + + cy.contains('label', 'Coordinate Accuracy (ft)') + .parent() + .find('input') + .clear() + .type('15') + cy.contains('label', 'Coordinate Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.contains('label', 'Elevation Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.contains('label', 'Release Status') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + + cy.get('button').contains(/save/i).click() // intercept cy.wait('@updateLocation').then((interception) => { - expect(interception.response?.statusCode).to.eq(200); - }); - - cy.contains(/success|updated|saved|submitted successfully/i, { timeout: 10000 }).should('exist'); - }); -}); + expect(interception.response?.statusCode).to.eq(200) + }) + cy.contains(/success|updated|saved|submitted successfully/i, { + timeout: 10000, + }).should('exist') + }) +}) From edd8cf6e9915f4c2eb2479159ef3e9245e07b8b2 Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Wed, 5 Nov 2025 08:30:05 -0600 Subject: [PATCH 34/35] [location_edit] Add coordinate method to fix broken test --- cypress/e2e/ocotillo/location_edit.cy.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cypress/e2e/ocotillo/location_edit.cy.ts b/cypress/e2e/ocotillo/location_edit.cy.ts index d01a181d..15022629 100644 --- a/cypress/e2e/ocotillo/location_edit.cy.ts +++ b/cypress/e2e/ocotillo/location_edit.cy.ts @@ -102,6 +102,12 @@ describe('Location Edit Page', () => { .clear() .type('-106.900000') + cy.contains('label', 'Coordinate Method') + .parent() + .find('[role="combobox"]') + .click() + cy.get('[role="listbox"] li').first().click() + // Turn off auto-generate elevation to manually set elevation cy.contains('label', 'Auto-generate elevation from USGS DEM') .parent() From 7a095aa8589bdaa44b5e533362ada65952a2f2bb Mon Sep 17 00:00:00 2001 From: Tyler Adam Martinez Date: Wed, 5 Nov 2025 10:09:52 -0800 Subject: [PATCH 35/35] [CI_cypress] Update backend sourcing branch --- .github/workflows/CI_cypress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_cypress.yml b/.github/workflows/CI_cypress.yml index b3fb2ba3..f775b596 100644 --- a/.github/workflows/CI_cypress.yml +++ b/.github/workflows/CI_cypress.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 with: repository: DataIntegrationGroup/NMSampleLocations - ref: TAM-expand-transfer-seed + ref: staging path: api-repo - name: Set up Node.js