Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/CI_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
AUTHENTIK_DISABLE_AUTHENTICATION: ${{ secrets.AUTHENTIK_TEST }}

# --- DATABASE VALUES FOR DOCKER COMPOSE ---
DB_DRIVER: postgres
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
Expand Down Expand Up @@ -58,6 +59,15 @@ jobs:
docker compose build --build-arg INSTALL_DEV=$INSTALL_DEV app
docker compose up -d

- name: Print app env (DB-related)
working-directory: ./api-repo
run: |
docker compose exec -T app bash -lc 'env | sort | egrep "POSTGRES|DATABASE|SQLALCHEMY|MODE" || true'

- name: Verify app sees POSTGRES_HOST
working-directory: ./api-repo
run: docker compose exec -T app bash -lc 'echo POSTGRES_HOST=$POSTGRES_HOST; env | grep POSTGRES_HOST || true'

- name: Exec inside DB container
working-directory: ./api-repo
run: docker compose exec -T db pg_isready -U $POSTGRES_USER -d $POSTGRES_DB || true
Expand Down Expand Up @@ -97,9 +107,9 @@ jobs:
working-directory: ./api-repo
run: docker compose logs --tail=200 app || true

- name: Seed database
working-directory: ./api-repo
run: docker compose exec -T app python -m transfers.seed
# - name: Seed database
# working-directory: ./api-repo
# run: docker compose exec -T app python -m transfers.seed

- name: Build frontend
run: npm run build
Expand Down
231 changes: 231 additions & 0 deletions src/generated/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ export type AuthorResponse = {
affiliation?: string | null;
};

/**
* Conformance
*/
export type Conformance = {
/**
* Conformsto
*/
conformsTo?: Array<string>;
};

/**
* ContactResponse
* Response schema for contact details.
Expand Down Expand Up @@ -713,6 +723,10 @@ export type CreateWell = {
*/
is_suitable_for_datalogger: boolean | null;
formation_completion_code?: FormationCode | null;
/**
* Nma Formation Zone
*/
nma_formation_zone?: string | null;
};

/**
Expand Down Expand Up @@ -1050,6 +1064,24 @@ export type HttpValidationError = {
detail?: Array<ValidationError>;
};

/**
* LandingPage
*/
export type LandingPage = {
/**
* Title
*/
title: string;
/**
* Description
*/
description: string;
/**
* Links
*/
links: Array<Link>;
};

/**
* LexiconCategoryResponse
* Pydantic model for the response of a lexicon category.
Expand Down Expand Up @@ -1128,6 +1160,28 @@ export type LexiconTripleResponse = {
object_: string;
};

/**
* Link
*/
export type Link = {
/**
* Href
*/
href: string;
/**
* Rel
*/
rel: string;
/**
* Type
*/
type?: string | null;
/**
* Title
*/
title?: string | null;
};

/**
* LocationGeoJSONResponse
*/
Expand Down Expand Up @@ -2351,6 +2405,10 @@ export type ThingResponse = {
*/
permissions: Array<PermissionHistoryResponse>;
formation_completion_code: FormationCode | null;
/**
* Nma Formation Zone
*/
nma_formation_zone: string | null;
};

/**
Expand Down Expand Up @@ -2887,6 +2945,10 @@ export type UpdateWell = {
* Well Casing Materials
*/
well_casing_materials?: Array<string> | null;
/**
* Nma Formation Zone
*/
nma_formation_zone?: string | null;
};

/**
Expand Down Expand Up @@ -3202,6 +3264,10 @@ export type WellResponse = {
*/
permissions: Array<PermissionHistoryResponse>;
formation_completion_code: FormationCode | null;
/**
* Nma Formation Zone
*/
nma_formation_zone: string | null;
};

/**
Expand Down Expand Up @@ -4685,6 +4751,171 @@ export type UpdateGroupGroupGroupIdPatchResponses = {

export type UpdateGroupGroupGroupIdPatchResponse = UpdateGroupGroupGroupIdPatchResponses[keyof UpdateGroupGroupGroupIdPatchResponses];

export type LandingPageOgcGetData = {
body?: never;
path?: never;
query?: never;
url: '/ogc/';
};

export type LandingPageOgcGetResponses = {
/**
* Successful Response
*/
200: LandingPage;
};

export type LandingPageOgcGetResponse = LandingPageOgcGetResponses[keyof LandingPageOgcGetResponses];

export type ConformanceOgcConformanceGetData = {
body?: never;
path?: never;
query?: never;
url: '/ogc/conformance';
};

export type ConformanceOgcConformanceGetResponses = {
/**
* Successful Response
*/
200: Conformance;
};

export type ConformanceOgcConformanceGetResponse = ConformanceOgcConformanceGetResponses[keyof ConformanceOgcConformanceGetResponses];

export type CollectionsOgcCollectionsGetData = {
body?: never;
path?: never;
query?: never;
url: '/ogc/collections';
};

export type CollectionsOgcCollectionsGetResponses = {
/**
* Successful Response
*/
200: unknown;
};

export type CollectionOgcCollectionsCollectionIdGetData = {
body?: never;
path: {
/**
* Collection Id
*/
collection_id: string;
};
query?: never;
url: '/ogc/collections/{collection_id}';
};

export type CollectionOgcCollectionsCollectionIdGetErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};

export type CollectionOgcCollectionsCollectionIdGetError = CollectionOgcCollectionsCollectionIdGetErrors[keyof CollectionOgcCollectionsCollectionIdGetErrors];

export type CollectionOgcCollectionsCollectionIdGetResponses = {
/**
* Successful Response
*/
200: unknown;
};

export type ItemsOgcCollectionsCollectionIdItemsGetData = {
body?: never;
path: {
/**
* Collection Id
*/
collection_id: string;
};
query?: {
/**
* Bbox
* minx,miny,maxx,maxy
*/
bbox?: string | null;
/**
* Datetime
*/
datetime?: string | null;
/**
* Limit
*/
limit?: number;
/**
* Offset
*/
offset?: number;
/**
* Properties
* CQL filter
*/
properties?: string | null;
/**
* Filter
*/
filter?: string | null;
/**
* Filter-Lang
*/
'filter-lang'?: string | null;
};
url: '/ogc/collections/{collection_id}/items';
};

export type ItemsOgcCollectionsCollectionIdItemsGetErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};

export type ItemsOgcCollectionsCollectionIdItemsGetError = ItemsOgcCollectionsCollectionIdItemsGetErrors[keyof ItemsOgcCollectionsCollectionIdItemsGetErrors];

export type ItemsOgcCollectionsCollectionIdItemsGetResponses = {
/**
* Successful Response
*/
200: unknown;
};

export type ItemOgcCollectionsCollectionIdItemsFidGetData = {
body?: never;
path: {
/**
* Collection Id
*/
collection_id: string;
/**
* Fid
*/
fid: number;
};
query?: never;
url: '/ogc/collections/{collection_id}/items/{fid}';
};

export type ItemOgcCollectionsCollectionIdItemsFidGetErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};

export type ItemOgcCollectionsCollectionIdItemsFidGetError = ItemOgcCollectionsCollectionIdItemsFidGetErrors[keyof ItemOgcCollectionsCollectionIdItemsFidGetErrors];

export type ItemOgcCollectionsCollectionIdItemsFidGetResponses = {
/**
* Successful Response
*/
200: unknown;
};

export type GetLexiconCategoriesLexiconCategoryGetData = {
body?: never;
path?: never;
Expand Down
Loading
Loading