Merge branch 'dev_environment' of gitlab.com:brandx/bxt-app into libracart
This commit is contained in:
commit
1596f14ecd
62 changed files with 404 additions and 131682 deletions
|
|
@ -89,6 +89,7 @@ export interface IBinAPIContext {
|
|||
start: string,
|
||||
end: string,
|
||||
showErrors?: boolean,
|
||||
allNodes?: boolean,
|
||||
otherTeam?: string
|
||||
) => Promise<AxiosResponse<pond.ListBinComponentsMeasurementsResponse>>;
|
||||
updateBinPermissions: (
|
||||
|
|
@ -447,6 +448,7 @@ export default function BinProvider(props: PropsWithChildren<Props>) {
|
|||
start: string,
|
||||
end: string,
|
||||
showErrors = false,
|
||||
allNodes = false,
|
||||
otherTeam?: string
|
||||
) => {
|
||||
const view = otherTeam ? otherTeam : as
|
||||
|
|
@ -457,7 +459,8 @@ export default function BinProvider(props: PropsWithChildren<Props>) {
|
|||
"&end=" +
|
||||
end +
|
||||
(view ? "&as=" + view : "") +
|
||||
(showErrors ? "&showErrors=true" : "&showErrors=false")
|
||||
(showErrors ? "&showErrors=true" : "&showErrors=false") +
|
||||
(allNodes ? "&allNodes=true" : "&allNodes=false")
|
||||
|
||||
return new Promise<AxiosResponse<pond.ListBinComponentsMeasurementsResponse>>((resolve, reject) => {
|
||||
get<pond.ListBinComponentsMeasurementsResponse>(pondURL(url))
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ export interface IComponentAPIContext {
|
|||
keys?: string[],
|
||||
types?: string[],
|
||||
showErrors?: boolean,
|
||||
allNodes?: boolean,
|
||||
otherTeam?: string
|
||||
) => Promise<AxiosResponse<pond.SampleUnitMeasurementsResponse>>;
|
||||
// possibly a deprecated function as it is not used anywhere
|
||||
|
|
@ -120,6 +121,7 @@ export interface IComponentAPIContext {
|
|||
keys?: string[],
|
||||
types?: string[],
|
||||
showErrors?: boolean,
|
||||
allNodes?: boolean,
|
||||
otherTeam?: string
|
||||
) => Promise<AxiosResponse<pond.ListUnitMeasurementsResponse>>;
|
||||
}
|
||||
|
|
@ -480,6 +482,7 @@ export default function ComponentProvider(props: PropsWithChildren<Props>) {
|
|||
keys?: string[],
|
||||
types?: string[],
|
||||
showErrors: boolean = true,
|
||||
allNodes: boolean = false,
|
||||
otherTeam?: string
|
||||
) => {
|
||||
const view = otherTeam ? otherTeam : as
|
||||
|
|
@ -495,7 +498,8 @@ export default function ComponentProvider(props: PropsWithChildren<Props>) {
|
|||
(view ? "&as=" + view : "") +
|
||||
(keys ? "&keys=" + keys : "&keys=" + [device]) +
|
||||
(types ? "&types=" + types : "&types=" + ["device"]) +
|
||||
(showErrors ? "&showErrors=true" : "&showErrors=false"),
|
||||
(showErrors ? "&showErrors=true" : "&showErrors=false")+
|
||||
(allNodes ? "&allNodes=true" : "&allNodes=false"),
|
||||
demo
|
||||
);
|
||||
return new Promise<AxiosResponse<pond.SampleUnitMeasurementsResponse>>((resolve, reject) => {
|
||||
|
|
@ -545,6 +549,7 @@ export default function ComponentProvider(props: PropsWithChildren<Props>) {
|
|||
keys?: string[],
|
||||
types?: string[],
|
||||
showErrors?: boolean,
|
||||
allNodes: boolean = false,
|
||||
otherTeam?: string
|
||||
) => {
|
||||
const view = otherTeam ? otherTeam : as
|
||||
|
|
@ -565,7 +570,8 @@ export default function ComponentProvider(props: PropsWithChildren<Props>) {
|
|||
(view ? "&as=" + view : "") +
|
||||
(keys ? "&keys=" + keys : "&keys=" + [device]) +
|
||||
(types ? "&types=" + types : "&types=" + ["device"]) +
|
||||
(showErrors ? "&showErrors=true" : "&showErrors=false")
|
||||
(showErrors ? "&showErrors=true" : "&showErrors=false") +
|
||||
(allNodes ? "&allNodes=true" : "&allNodes=false")
|
||||
);
|
||||
return new Promise<AxiosResponse<pond.ListUnitMeasurementsResponse>>((resolve,reject) => {
|
||||
get<pond.ListUnitMeasurementsResponse>(url).then(resp => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue