-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into SIMSBIOHUB-449
- Loading branch information
Showing
119 changed files
with
5,376 additions
and
1,794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Date formats. | ||
* | ||
* See BC Gov standards: https://www2.gov.bc.ca/gov/content/governments/services-for-government/policies-procedures/web-content-development-guides/writing-for-the-web/web-style-guide/numbers | ||
*/ | ||
export const DefaultDateFormat = 'YYYY-MM-DD'; // 2020-01-05 | ||
|
||
export const DefaultDateFormatReverse = 'DD-MM-YYYY'; // 05-01-2020 | ||
|
||
export const AltDateFormat = 'YYYY/MM/DD'; // 2020/01/05 | ||
|
||
export const AltDateFormatReverse = 'DD/MM/YYYY'; // 05/01/2020 | ||
|
||
/* | ||
* Time formats. | ||
*/ | ||
export const DefaultTimeFormat = 'HH:mm:ss'; // 23:00:00 | ||
|
||
/* | ||
* Datetime formats. | ||
*/ | ||
export const DefaultDateTimeFormat = `${DefaultDateFormat}T${DefaultTimeFormat}`; // 2020-01-05T23:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export interface ISiteAdvancedFilters { | ||
survey_id?: number; | ||
keyword?: string; | ||
system_user_id?: number; | ||
} | ||
|
||
export interface IMethodAdvancedFilters { | ||
survey_id?: number; | ||
sample_site_id?: number; | ||
keyword?: string; | ||
system_user_id?: number; | ||
} | ||
|
||
export interface IPeriodAdvancedFilters { | ||
survey_id?: number; | ||
sample_site_id?: number; | ||
sample_method_id?: number; | ||
system_user_id?: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
import { OpenAPIV3 } from 'openapi-types'; | ||
import { techniqueSimpleViewSchema } from './technique'; | ||
|
||
export const SampleLocationSchema: OpenAPIV3.SchemaObject = { | ||
type: 'array', | ||
description: 'Sample location response object (includes sites, techniques, periods, stratums, blocks).', | ||
items: { | ||
type: 'object', | ||
additionalProperties: false, | ||
required: ['survey_sample_site_id', 'survey_id', 'name', 'description', 'geometry_type'], | ||
properties: { | ||
survey_sample_site_id: { | ||
type: 'integer', | ||
minimum: 1 | ||
}, | ||
survey_id: { | ||
type: 'integer', | ||
minimum: 1 | ||
}, | ||
name: { | ||
type: 'string', | ||
maxLength: 50 | ||
}, | ||
description: { | ||
type: 'string', | ||
maxLength: 250 | ||
}, | ||
geometry_type: { | ||
type: 'string', | ||
maxLength: 50 | ||
}, | ||
sample_methods: { | ||
type: 'array', | ||
required: [ | ||
'survey_sample_method_id', | ||
'survey_sample_site_id', | ||
'technique', | ||
'method_response_metric_id', | ||
'sample_periods' | ||
], | ||
items: { | ||
type: 'object', | ||
additionalProperties: false, | ||
properties: { | ||
survey_sample_method_id: { | ||
type: 'integer', | ||
minimum: 1 | ||
}, | ||
survey_sample_site_id: { | ||
type: 'integer', | ||
minimum: 1 | ||
}, | ||
technique: techniqueSimpleViewSchema, | ||
method_response_metric_id: { | ||
type: 'integer', | ||
minimum: 1 | ||
}, | ||
description: { | ||
type: 'string', | ||
maxLength: 250 | ||
}, | ||
sample_periods: { | ||
type: 'array', | ||
required: [ | ||
'survey_sample_period_id', | ||
'survey_sample_method_id', | ||
'start_date', | ||
'start_time', | ||
'end_date', | ||
'end_time' | ||
], | ||
items: { | ||
type: 'object', | ||
additionalProperties: false, | ||
properties: { | ||
survey_sample_period_id: { | ||
type: 'integer', | ||
minimum: 1 | ||
}, | ||
survey_sample_method_id: { | ||
type: 'integer', | ||
minimum: 1 | ||
}, | ||
start_date: { | ||
type: 'string' | ||
}, | ||
start_time: { | ||
type: 'string', | ||
nullable: true | ||
}, | ||
end_date: { | ||
type: 'string' | ||
}, | ||
end_time: { | ||
type: 'string', | ||
nullable: true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
blocks: { | ||
type: 'array', | ||
items: { | ||
type: 'object', | ||
additionalProperties: false, | ||
required: ['survey_sample_block_id', 'survey_sample_site_id', 'survey_block_id'], | ||
properties: { | ||
survey_sample_block_id: { | ||
type: 'number' | ||
}, | ||
survey_sample_site_id: { | ||
type: 'number' | ||
}, | ||
survey_block_id: { | ||
type: 'number' | ||
}, | ||
name: { | ||
type: 'string' | ||
}, | ||
description: { | ||
type: 'string' | ||
} | ||
} | ||
} | ||
}, | ||
stratums: { | ||
type: 'array', | ||
items: { | ||
type: 'object', | ||
additionalProperties: false, | ||
required: ['survey_sample_stratum_id', 'survey_sample_site_id', 'survey_stratum_id'], | ||
properties: { | ||
survey_sample_stratum_id: { | ||
type: 'number' | ||
}, | ||
survey_sample_site_id: { | ||
type: 'number' | ||
}, | ||
survey_stratum_id: { | ||
type: 'number' | ||
}, | ||
name: { | ||
type: 'string' | ||
}, | ||
description: { | ||
type: 'string' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.