avvir 0.3.31 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avvir_api.node.js +255 -9
- package/dist/esm/api/index.d.ts +2 -1
- package/dist/esm/api/index.js +2 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/organization_api.d.ts +2 -0
- package/dist/esm/api/organization_api.js +4 -0
- package/dist/esm/api/organization_api.js.map +1 -1
- package/dist/esm/api/web_gateway_api.d.ts +1 -1
- package/dist/esm/api/web_gateway_api.js.map +1 -1
- package/dist/esm/api/web_rpc_api.d.ts +30 -0
- package/dist/esm/api/web_rpc_api.js +82 -0
- package/dist/esm/api/web_rpc_api.js.map +1 -0
- package/dist/esm/avvir_api.d.ts +2 -0
- package/dist/esm/avvir_api.js +2 -0
- package/dist/esm/avvir_api.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/models/api/api_rpc_query_request.d.ts +9 -0
- package/dist/esm/models/api/api_rpc_query_request.js +11 -0
- package/dist/esm/models/api/api_rpc_query_request.js.map +1 -0
- package/dist/esm/models/api/api_rpc_query_response.d.ts +8 -0
- package/dist/esm/models/api/api_rpc_query_response.js +10 -0
- package/dist/esm/models/api/api_rpc_query_response.js.map +1 -0
- package/dist/esm/models/api/api_rpc_session.d.ts +7 -0
- package/dist/esm/models/api/api_rpc_session.js +9 -0
- package/dist/esm/models/api/api_rpc_session.js.map +1 -0
- package/dist/esm/models/api/api_scan_dataset.d.ts +2 -1
- package/dist/esm/models/api/api_scan_dataset.js +3 -1
- package/dist/esm/models/api/api_scan_dataset.js.map +1 -1
- package/dist/esm/models/api/api_scandataset_stats.d.ts +28 -0
- package/dist/esm/models/api/api_scandataset_stats.js +16 -0
- package/dist/esm/models/api/api_scandataset_stats.js.map +1 -0
- package/dist/esm/models/api/api_user_for_organization.d.ts +4 -1
- package/dist/esm/models/api/api_user_for_organization.js +3 -1
- package/dist/esm/models/api/api_user_for_organization.js.map +1 -1
- package/dist/esm/models/api/index.d.ts +4 -0
- package/dist/esm/models/api/index.js +4 -0
- package/dist/esm/models/api/index.js.map +1 -1
- package/package.json +1 -1
- package/source/api/index.ts +16 -14
- package/source/api/organization_api.ts +6 -0
- package/source/api/web_gateway_api.ts +9 -2
- package/source/api/web_rpc_api.ts +97 -0
- package/source/avvir_api.ts +2 -0
- package/source/models/api/api_rpc_query_request.ts +17 -0
- package/source/models/api/api_rpc_query_response.ts +15 -0
- package/source/models/api/api_rpc_session.ts +15 -0
- package/source/models/api/api_scan_dataset.ts +4 -1
- package/source/models/api/api_scandataset_stats.ts +43 -0
- package/source/models/api/api_user_for_organization.ts +6 -2
- package/source/models/api/index.ts +5 -0
package/dist/esm/avvir_api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import WebGatewayApi from "./api/web_gateway_api";
|
|
|
12
12
|
import UserApi from "./api/user_api";
|
|
13
13
|
import IntegrationsApi from "./api/integrations_api";
|
|
14
14
|
import ProjectSummaryApi from "./api/project_summary_api";
|
|
15
|
+
import { WebRpcApi } from "./api";
|
|
15
16
|
declare const _default: {
|
|
16
17
|
auth: typeof AuthApi;
|
|
17
18
|
config: {
|
|
@@ -38,6 +39,7 @@ declare const _default: {
|
|
|
38
39
|
projects: typeof ProjectApi;
|
|
39
40
|
scanDatasets: typeof ScanDatasetApi;
|
|
40
41
|
other: typeof WebGatewayApi;
|
|
42
|
+
webRpcApi: typeof WebRpcApi;
|
|
41
43
|
user: typeof UserApi;
|
|
42
44
|
projectSummary: typeof ProjectSummaryApi;
|
|
43
45
|
};
|
package/dist/esm/avvir_api.js
CHANGED
|
@@ -13,6 +13,7 @@ import WebGatewayApi from "./api/web_gateway_api";
|
|
|
13
13
|
import UserApi from "./api/user_api";
|
|
14
14
|
import IntegrationsApi from "./api/integrations_api";
|
|
15
15
|
import ProjectSummaryApi from "./api/project_summary_api";
|
|
16
|
+
import { WebRpcApi } from "./api";
|
|
16
17
|
export default {
|
|
17
18
|
auth: AuthApi,
|
|
18
19
|
config: Config,
|
|
@@ -27,6 +28,7 @@ export default {
|
|
|
27
28
|
projects: ProjectApi,
|
|
28
29
|
scanDatasets: ScanDatasetApi,
|
|
29
30
|
other: WebGatewayApi,
|
|
31
|
+
webRpcApi: WebRpcApi,
|
|
30
32
|
user: UserApi,
|
|
31
33
|
projectSummary: ProjectSummaryApi
|
|
32
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avvir_api.js","sourceRoot":"","sources":["../../source/avvir_api.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"avvir_api.js","sourceRoot":"","sources":["../../source/avvir_api.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC,eAAe;IACX,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,OAAO;IACb,cAAc,EAAE,iBAAiB;CACpC,CAAA"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare const Avvir: {
|
|
|
28
28
|
projects: typeof import("./api").ProjectApi;
|
|
29
29
|
scanDatasets: typeof import("./api").ScanDatasetApi;
|
|
30
30
|
other: typeof import("./api").WebGatewayApi;
|
|
31
|
+
webRpcApi: typeof import("./api").WebRpcApi;
|
|
31
32
|
user: typeof import("./api").UserApi;
|
|
32
33
|
projectSummary: typeof import("./api").ProjectSummaryApi;
|
|
33
34
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class ApiRpcQueryRequest {
|
|
2
|
+
queryId: number;
|
|
3
|
+
sessionId: number;
|
|
4
|
+
serviceClassName: string;
|
|
5
|
+
serviceFunctionName: string;
|
|
6
|
+
argumentDict: object;
|
|
7
|
+
constructor({ queryId, sessionId, serviceClassName, serviceFunctionName, argumentDict }: Partial<ApiRpcQueryRequest>);
|
|
8
|
+
}
|
|
9
|
+
export default ApiRpcQueryRequest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class ApiRpcQueryRequest {
|
|
2
|
+
constructor({ queryId, sessionId, serviceClassName, serviceFunctionName, argumentDict }) {
|
|
3
|
+
this.queryId = queryId;
|
|
4
|
+
this.sessionId = sessionId;
|
|
5
|
+
this.serviceClassName = serviceClassName;
|
|
6
|
+
this.serviceFunctionName = serviceFunctionName;
|
|
7
|
+
this.argumentDict = argumentDict;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default ApiRpcQueryRequest;
|
|
11
|
+
//# sourceMappingURL=api_rpc_query_request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_rpc_query_request.js","sourceRoot":"","sources":["../../../../source/models/api/api_rpc_query_request.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,kBAAkB;IAO3B,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,EAA+B;QAChH,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;CACJ;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class ApiRpcQueryResponse {
|
|
2
|
+
constructor({ queryId, result, statusCode, message }) {
|
|
3
|
+
this.queryId = queryId;
|
|
4
|
+
this.result = result;
|
|
5
|
+
this.statusCode = statusCode;
|
|
6
|
+
this.message = message;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export default ApiRpcQueryResponse;
|
|
10
|
+
//# sourceMappingURL=api_rpc_query_response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_rpc_query_response.js","sourceRoot":"","sources":["../../../../source/models/api/api_rpc_query_response.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,mBAAmB;IAM9B,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAgC;QAChF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export class ApiRpcSession {
|
|
2
|
+
constructor({ sessionId, serviceDomain, dataScopeDict } = {}) {
|
|
3
|
+
this.sessionId = sessionId;
|
|
4
|
+
this.serviceDomain = serviceDomain;
|
|
5
|
+
this.dataScopeDict = dataScopeDict;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default ApiRpcSession;
|
|
9
|
+
//# sourceMappingURL=api_rpc_session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_rpc_session.js","sourceRoot":"","sources":["../../../../source/models/api/api_rpc_session.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;IAKtB,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,KAA6B,EAAE;QAChF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CAGJ;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -8,7 +8,7 @@ export interface ApiScanDatasetArgument extends Partial<Modify<ApiScanDataset, {
|
|
|
8
8
|
}>> {
|
|
9
9
|
}
|
|
10
10
|
export declare class ApiScanDataset {
|
|
11
|
-
constructor({ id, firebaseId, firebaseFloorId, scanNumber, dataPresences, analysisCompleted, manualQcPresent, notes, name, coarseAlignmentMatrix, fineAlignmentMatrix, scanDate,
|
|
11
|
+
constructor({ id, firebaseId, firebaseFloorId, scanNumber, dataPresences, analysisCompleted, manualQcPresent, notes, name, coarseAlignmentMatrix, fineAlignmentMatrix, scanDate, qaStarted, qaComplete }: ApiScanDatasetArgument);
|
|
12
12
|
/**
|
|
13
13
|
* Internal identifier, not used in URLs.
|
|
14
14
|
*/
|
|
@@ -39,5 +39,6 @@ export declare class ApiScanDataset {
|
|
|
39
39
|
notes: string | null;
|
|
40
40
|
name: string | null;
|
|
41
41
|
qaComplete: Date | null;
|
|
42
|
+
qaStarted: Date | null;
|
|
42
43
|
}
|
|
43
44
|
export default ApiScanDataset;
|
|
@@ -3,7 +3,7 @@ import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter
|
|
|
3
3
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
4
4
|
import Matrix4Converter from "../../converters/matrix_4_converter";
|
|
5
5
|
export class ApiScanDataset {
|
|
6
|
-
constructor({ id, firebaseId, firebaseFloorId, scanNumber, dataPresences, analysisCompleted, manualQcPresent, notes, name, coarseAlignmentMatrix, fineAlignmentMatrix, scanDate,
|
|
6
|
+
constructor({ id, firebaseId, firebaseFloorId, scanNumber, dataPresences, analysisCompleted, manualQcPresent, notes, name, coarseAlignmentMatrix, fineAlignmentMatrix, scanDate, qaStarted, qaComplete }) {
|
|
7
7
|
/**
|
|
8
8
|
* Date that the dataset was captured.
|
|
9
9
|
*/
|
|
@@ -13,6 +13,7 @@ export class ApiScanDataset {
|
|
|
13
13
|
this.notes = null;
|
|
14
14
|
this.name = null;
|
|
15
15
|
this.qaComplete = null;
|
|
16
|
+
this.qaStarted = null;
|
|
16
17
|
addInstantGetterAndSetterToApiModel(this, "scanDate");
|
|
17
18
|
addReadOnlyPropertiesToModel(this, { id, firebaseId, firebaseFloorId, scanNumber });
|
|
18
19
|
let coarseAlignmentMatrixVal, fineAlignmentMatrixVal;
|
|
@@ -66,6 +67,7 @@ export class ApiScanDataset {
|
|
|
66
67
|
this.analysisCompleted = analysisCompleted;
|
|
67
68
|
this.manualQcPresent = manualQcPresent;
|
|
68
69
|
this.qaComplete = qaComplete;
|
|
70
|
+
this.qaStarted = qaStarted;
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
export default ApiScanDataset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_scan_dataset.js","sourceRoot":"","sources":["../../../../source/models/api/api_scan_dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,mCAAmC,MAAM,yDAAyD,CAAC;AAC1G,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAE1F,OAAO,gBAAgB,MAAM,qCAAqC,CAAC;AASnE,MAAM,OAAO,cAAc;IACzB,YAAY,EACV,EAAE,EACF,UAAU,EACV,eAAe,EACf,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,KAAK,EACL,IAAI,EACJ,qBAAqB,EACrB,mBAAmB,EACnB,QAAQ,EACR,UAAU,
|
|
1
|
+
{"version":3,"file":"api_scan_dataset.js","sourceRoot":"","sources":["../../../../source/models/api/api_scan_dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,mCAAmC,MAAM,yDAAyD,CAAC;AAC1G,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAE1F,OAAO,gBAAgB,MAAM,qCAAqC,CAAC;AASnE,MAAM,OAAO,cAAc;IACzB,YAAY,EACV,EAA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,EAAE;wBAC3B,sBAAsB,GAAG,gBAAgB,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC;qBAC7G;yBAAM,IAAI,GAAG,YAAY,OAAO,EAAE;wBACjC,sBAAsB,GAAG,gBAAgB,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;qBACvE;yBAAM;wBACL,sBAAsB,GAAG,GAAG,CAAC;qBAC9B;gBACH,CAAC;gBACD,UAAU,EAAE,IAAI;aACjB;SACF,CAAC,CAAC;QACH,aAAa;QACb,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,IAAI,IAAI,CAAC;QAC3D,aAAa;QACb,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,IAAI,IAAI,CAAC;QACvD,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;SACpC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,IAAI,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC;QACzB,aAAa;QACb,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CAoCF;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class ApiScanDatasetStats {
|
|
2
|
+
organizationName: string;
|
|
3
|
+
scanDatasetId: number;
|
|
4
|
+
projectName: string;
|
|
5
|
+
floor: string;
|
|
6
|
+
scanDatasetName: string;
|
|
7
|
+
pipelineStartTime: Date;
|
|
8
|
+
pipelineEndTime: Date;
|
|
9
|
+
pipelineStatus: string;
|
|
10
|
+
qaCompleteTime: Date;
|
|
11
|
+
qaStartTime: Date;
|
|
12
|
+
squareFootage: number;
|
|
13
|
+
constructor(props: ApiScanDatasetStatsProps);
|
|
14
|
+
}
|
|
15
|
+
declare type ApiScanDatasetStatsProps = {
|
|
16
|
+
organizationName: string;
|
|
17
|
+
scanDatasetId: number;
|
|
18
|
+
projectName: string;
|
|
19
|
+
floor: string;
|
|
20
|
+
scanDatasetName: string;
|
|
21
|
+
pipelineStartTime: number;
|
|
22
|
+
pipelineEndTime: number;
|
|
23
|
+
pipelineStatus: string;
|
|
24
|
+
qaCompleteTime: number;
|
|
25
|
+
qaStartTime: number;
|
|
26
|
+
squareFootage: number;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { addInstantGetterAndSetterToApiModel } from "../../mixins";
|
|
2
|
+
export class ApiScanDatasetStats {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
addInstantGetterAndSetterToApiModel(this, 'pipelineStartTime', props.pipelineStartTime);
|
|
5
|
+
addInstantGetterAndSetterToApiModel(this, 'pipelineEndTime', props.pipelineEndTime);
|
|
6
|
+
addInstantGetterAndSetterToApiModel(this, 'qaCompleteTime', props.qaCompleteTime);
|
|
7
|
+
addInstantGetterAndSetterToApiModel(this, 'qaStartTime', props.qaStartTime);
|
|
8
|
+
this.organizationName = props.organizationName;
|
|
9
|
+
this.projectName = props.projectName;
|
|
10
|
+
this.scanDatasetId = props.scanDatasetId;
|
|
11
|
+
this.scanDatasetName = props.scanDatasetName;
|
|
12
|
+
this.pipelineStatus = props.pipelineStatus;
|
|
13
|
+
this.squareFootage = props.squareFootage;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=api_scandataset_stats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_scandataset_stats.js","sourceRoot":"","sources":["../../../../source/models/api/api_scandataset_stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEjE,MAAM,OAAO,mBAAmB;IAa7B,YAAY,KAA+B;QACxC,mCAAmC,CAAC,IAAI,EAAE,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACxF,mCAAmC,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;QACpF,mCAAmC,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;QAClF,mCAAmC,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QAC5E,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAC;QAC/C,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;IAC5C,CAAC;CACH"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import UserRole from "../enums/user_role";
|
|
2
|
+
import { DateLike } from "./type_aliases";
|
|
2
3
|
export declare class ApiUserForOrganization {
|
|
4
|
+
id: number;
|
|
3
5
|
name: string;
|
|
4
6
|
email: string;
|
|
5
7
|
role: UserRole;
|
|
@@ -7,6 +9,7 @@ export declare class ApiUserForOrganization {
|
|
|
7
9
|
accessType: string;
|
|
8
10
|
inviteStatus: string;
|
|
9
11
|
masterformatCodes: string[];
|
|
10
|
-
|
|
12
|
+
latestInvitationExpiry: DateLike;
|
|
13
|
+
constructor({ id, name, email, role, projects, accessType, inviteStatus, masterformatCodes, latestInvitationExpiry }?: Partial<ApiUserForOrganization>);
|
|
11
14
|
}
|
|
12
15
|
export default ApiUserForOrganization;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export class ApiUserForOrganization {
|
|
2
|
-
constructor({ name, email, role, projects, accessType, inviteStatus, masterformatCodes } = {}) {
|
|
2
|
+
constructor({ id, name, email, role, projects, accessType, inviteStatus, masterformatCodes, latestInvitationExpiry } = {}) {
|
|
3
|
+
this.id = id;
|
|
3
4
|
this.name = name;
|
|
4
5
|
this.email = email;
|
|
5
6
|
this.role = role;
|
|
@@ -7,6 +8,7 @@ export class ApiUserForOrganization {
|
|
|
7
8
|
this.accessType = accessType;
|
|
8
9
|
this.inviteStatus = inviteStatus;
|
|
9
10
|
this.masterformatCodes = masterformatCodes;
|
|
11
|
+
this.latestInvitationExpiry = latestInvitationExpiry;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
export default ApiUserForOrganization;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_user_for_organization.js","sourceRoot":"","sources":["../../../../source/models/api/api_user_for_organization.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,sBAAsB;
|
|
1
|
+
{"version":3,"file":"api_user_for_organization.js","sourceRoot":"","sources":["../../../../source/models/api/api_user_for_organization.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,sBAAsB;IAW/B,YAAY,EAAC,EAAE,EAAE,IAAI,EAAG,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,KAAqC,EAAE;QACrJ,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;IACzD,CAAC;CACJ;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -47,3 +47,7 @@ export { ApiBcfIssue, ApiBcfIssueArgs } from "./api_bcf_issue";
|
|
|
47
47
|
export { ApiBcfBuildingElementArgs, ApiBcfBuildingElement } from "./api_bcf_building_element";
|
|
48
48
|
export { ApiUserPermission } from "./api_user_permission";
|
|
49
49
|
export { ApiUserForOrganization } from "./api_user_for_organization";
|
|
50
|
+
export { ApiRpcSession } from "./api_rpc_session";
|
|
51
|
+
export { ApiRpcQueryRequest } from "./api_rpc_query_request";
|
|
52
|
+
export { ApiRpcQueryResponse } from "./api_rpc_query_response";
|
|
53
|
+
export { ApiScanDatasetStats } from "./api_scandataset_stats";
|
|
@@ -45,4 +45,8 @@ export { ApiBcfIssue } from "./api_bcf_issue";
|
|
|
45
45
|
export { ApiBcfBuildingElement } from "./api_bcf_building_element";
|
|
46
46
|
export { ApiUserPermission } from "./api_user_permission";
|
|
47
47
|
export { ApiUserForOrganization } from "./api_user_for_organization";
|
|
48
|
+
export { ApiRpcSession } from "./api_rpc_session";
|
|
49
|
+
export { ApiRpcQueryRequest } from "./api_rpc_query_request";
|
|
50
|
+
export { ApiRpcQueryResponse } from "./api_rpc_query_response";
|
|
51
|
+
export { ApiScanDatasetStats } from "./api_scandataset_stats";
|
|
48
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/models/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAuD,YAAY,EAAC,MAAM,kBAAkB,CAAC;AACpG,OAAO,EAAC,mBAAmB,EAAC,MAAM,yB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Aa,EAAC,MAAM,mBAAmB,CAAC;AAgBhD,OAAO,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAC,WAAW,EAAkB,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAA4B,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
package/source/api/index.ts
CHANGED
|
@@ -9,23 +9,25 @@ import PipelineApi from "./pipeline_api";
|
|
|
9
9
|
import ProjectApi from "./project_api";
|
|
10
10
|
import ScanDatasetApi from "./scan_dataset_api";
|
|
11
11
|
import WebGatewayApi from "./web_gateway_api";
|
|
12
|
+
import WebRpcApi from "./web_rpc_api";
|
|
12
13
|
import UserApi from "./user_api";
|
|
13
14
|
import IntegrationsApi from "./integrations_api";
|
|
14
15
|
import ProjectSummaryApi from "./project_summary_api";
|
|
15
16
|
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
AuthApi,
|
|
19
|
+
CommentApi,
|
|
20
|
+
ElementApi,
|
|
21
|
+
FileInformationApi,
|
|
22
|
+
FloorApi,
|
|
23
|
+
IntegrationsApi,
|
|
24
|
+
OrganizationApi,
|
|
25
|
+
PhotoAreaApi,
|
|
26
|
+
PipelineApi,
|
|
27
|
+
ProjectApi,
|
|
28
|
+
ScanDatasetApi,
|
|
29
|
+
WebGatewayApi,
|
|
30
|
+
WebRpcApi,
|
|
31
|
+
UserApi,
|
|
32
|
+
ProjectSummaryApi
|
|
31
33
|
};
|
|
@@ -5,6 +5,7 @@ import Http from "../utilities/http";
|
|
|
5
5
|
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
6
6
|
import {List} from "underscore";
|
|
7
7
|
import ApiUserForOrganization from "../models/api/api_user_for_organization";
|
|
8
|
+
import {ApiScanDatasetStats} from "../models/api/api_scandataset_stats";
|
|
8
9
|
|
|
9
10
|
export default class OrganizationApi {
|
|
10
11
|
static listOrganizations(user: User): Promise<ApiOrganization[]> {
|
|
@@ -36,6 +37,11 @@ export default class OrganizationApi {
|
|
|
36
37
|
let url = `${Http.baseUrl()}/client-accounts/${accountId}`;
|
|
37
38
|
return Http.patch(url, user, organization);
|
|
38
39
|
}
|
|
40
|
+
|
|
41
|
+
static getScanDataSetStats(user: User): Promise<ApiScanDatasetStats[]> {
|
|
42
|
+
let url = `${Http.baseUrl()}/client-accounts/scan-dataset-stats`;
|
|
43
|
+
return Http.get(url, user) as unknown as Promise<ApiScanDatasetStats[]>;
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
makeErrorsPretty(OrganizationApi);
|
|
@@ -5,7 +5,14 @@ import DeprecatedApiPipeline from "../models/api/deprecated_api_pipeline";
|
|
|
5
5
|
import getAuthorizationHeaders, {BasicUser, User} from "../utilities/get_authorization_headers";
|
|
6
6
|
import Http from "../utilities/http";
|
|
7
7
|
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
ApiActionPayload,
|
|
10
|
+
ApiRunningProcess,
|
|
11
|
+
ApiUserAction,
|
|
12
|
+
AssociationIds,
|
|
13
|
+
UserActionType,
|
|
14
|
+
UserAuthType
|
|
15
|
+
} from "../models";
|
|
9
16
|
import buildFileName from "../utilities/build_file_name";
|
|
10
17
|
import AuthApi from "./auth_api";
|
|
11
18
|
import {httpGetHeaders} from "../utilities/request_headers";
|
|
@@ -210,7 +217,7 @@ export default class WebGatewayApi {
|
|
|
210
217
|
};
|
|
211
218
|
return Http.post(url, user, actionForm) as unknown as Promise<ApiUserAction[]>;
|
|
212
219
|
}
|
|
213
|
-
|
|
220
|
+
|
|
214
221
|
static checkRunningProcess(processId: number, user: User): Promise<ApiRunningProcess> {
|
|
215
222
|
let url = `${Http.baseUrl()}/running-processes/${processId}`;
|
|
216
223
|
return Http.get(url, user) as unknown as Promise<ApiRunningProcess>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {User} from "../utilities/get_authorization_headers";
|
|
2
|
+
import {ApiRpcQueryRequest, ApiRpcSession} from "../models";
|
|
3
|
+
import ApiRpcQueryResponse from "../models/api/api_rpc_query_response";
|
|
4
|
+
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
5
|
+
import Http from "../utilities/http";
|
|
6
|
+
import user from "../models/domain/user";
|
|
7
|
+
|
|
8
|
+
export enum ApiQueryStatus {
|
|
9
|
+
SUCCESS=2,
|
|
10
|
+
RUNNING=1,
|
|
11
|
+
RUNTIME_ERROR=0,
|
|
12
|
+
SESSION_ERROR=-1,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ApiRpcExchangeRequest {
|
|
16
|
+
queryId: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class HttpRpcExchangeClient {
|
|
20
|
+
isLocalUrl = false;
|
|
21
|
+
baseUrl(): string {
|
|
22
|
+
if (this.isLocalUrl) {
|
|
23
|
+
return "http://localhost:8000";
|
|
24
|
+
} else {
|
|
25
|
+
return Http.baseUrl();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
sleep(ms) {
|
|
29
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
post(route, user, response): Promise<any> {
|
|
33
|
+
const url = `${this.baseUrl()}${route}`;
|
|
34
|
+
return Http.post(url, user, response).then(response => {
|
|
35
|
+
return response.json().then(json => {
|
|
36
|
+
return json
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
useLocalHost(): void {
|
|
42
|
+
this.isLocalUrl = true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
startSession(session: ApiRpcSession, user: User): Promise<ApiRpcSession> {
|
|
46
|
+
return this.post("/rpc/start_session", user, session) as unknown as Promise<ApiRpcSession>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
endSession(session: ApiRpcSession, user: User): Promise<ApiRpcSession> {
|
|
50
|
+
return this.post("/rpc/end_session", user, session) as unknown as Promise<ApiRpcSession>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
sendQueryRequest(queryRequest: ApiRpcQueryRequest, user: User): Promise<ApiRpcQueryRequest> {
|
|
54
|
+
return this.post("/rpc/send_query_request", user, queryRequest) as unknown as Promise<ApiRpcQueryRequest>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
getQueryResponse(exchangeRequest: ApiRpcExchangeRequest, user: User): Promise<ApiRpcQueryResponse> {
|
|
58
|
+
const resultPromise = this.post("/rpc/get_query_response", user, exchangeRequest) as unknown as Promise<ApiRpcQueryResponse>
|
|
59
|
+
return resultPromise.then(result => {
|
|
60
|
+
if(result.statusCode != ApiQueryStatus.RUNNING)
|
|
61
|
+
{
|
|
62
|
+
return result
|
|
63
|
+
}else {
|
|
64
|
+
return this.sleep(1000).then(() => { return this.getQueryResponse(exchangeRequest, user) })
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
runQuery(queryRequest: ApiRpcQueryRequest, user: User): Promise<ApiRpcQueryResponse> {
|
|
70
|
+
return this.sendQueryRequest(queryRequest, user).then(
|
|
71
|
+
(newQueryRequest: ApiRpcQueryRequest) => {
|
|
72
|
+
let exchangeRequest = {queryId:newQueryRequest.queryId};
|
|
73
|
+
return this.getQueryResponse(exchangeRequest, user);
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export default class WebRpcApi {
|
|
80
|
+
httpRpcExchangeClient = new HttpRpcExchangeClient();
|
|
81
|
+
startRpcSession(user: User): Promise<ApiRpcSession> {
|
|
82
|
+
return new Promise((resolve) => resolve(new ApiRpcSession({sessionId: -1})));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
runRpcQuery(request: ApiRpcQueryRequest, user: User): Promise<ApiRpcQueryResponse> {
|
|
86
|
+
return this.httpRpcExchangeClient.runQuery(request, user);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
makeErrorsPretty(WebRpcApi, {
|
|
91
|
+
exclude: [],
|
|
92
|
+
overrideErrorMessage: [],
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
function exchangeRequest(exchangeRequest: any, user: User): Promise<ApiRpcQueryResponse> {
|
|
96
|
+
throw new Error("Function not implemented.");
|
|
97
|
+
}
|
package/source/avvir_api.ts
CHANGED
|
@@ -13,6 +13,7 @@ import WebGatewayApi from "./api/web_gateway_api";
|
|
|
13
13
|
import UserApi from "./api/user_api";
|
|
14
14
|
import IntegrationsApi from "./api/integrations_api";
|
|
15
15
|
import ProjectSummaryApi from "./api/project_summary_api";
|
|
16
|
+
import {WebRpcApi} from "./api";
|
|
16
17
|
|
|
17
18
|
export default {
|
|
18
19
|
auth: AuthApi,
|
|
@@ -28,6 +29,7 @@ export default {
|
|
|
28
29
|
projects: ProjectApi,
|
|
29
30
|
scanDatasets: ScanDatasetApi,
|
|
30
31
|
other: WebGatewayApi,
|
|
32
|
+
webRpcApi: WebRpcApi,
|
|
31
33
|
user: UserApi,
|
|
32
34
|
projectSummary: ProjectSummaryApi
|
|
33
35
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class ApiRpcQueryRequest {
|
|
2
|
+
queryId: number;
|
|
3
|
+
sessionId: number;
|
|
4
|
+
serviceClassName: string;
|
|
5
|
+
serviceFunctionName: string;
|
|
6
|
+
argumentDict: object;
|
|
7
|
+
|
|
8
|
+
constructor({ queryId, sessionId, serviceClassName, serviceFunctionName, argumentDict }: Partial<ApiRpcQueryRequest>) {
|
|
9
|
+
this.queryId = queryId;
|
|
10
|
+
this.sessionId = sessionId;
|
|
11
|
+
this.serviceClassName = serviceClassName;
|
|
12
|
+
this.serviceFunctionName = serviceFunctionName;
|
|
13
|
+
this.argumentDict = argumentDict;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default ApiRpcQueryRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class ApiRpcQueryResponse {
|
|
2
|
+
queryId: number;
|
|
3
|
+
result: object;
|
|
4
|
+
statusCode: number;
|
|
5
|
+
message: string;
|
|
6
|
+
|
|
7
|
+
constructor({ queryId, result, statusCode, message }: Partial<ApiRpcQueryResponse>) {
|
|
8
|
+
this.queryId = queryId;
|
|
9
|
+
this.result = result;
|
|
10
|
+
this.statusCode = statusCode;
|
|
11
|
+
this.message = message;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default ApiRpcQueryResponse;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class ApiRpcSession {
|
|
2
|
+
readonly sessionId: number;
|
|
3
|
+
serviceDomain: string;
|
|
4
|
+
dataScopeDict: object;
|
|
5
|
+
|
|
6
|
+
constructor({ sessionId, serviceDomain, dataScopeDict }: Partial<ApiRpcSession> = {}) {
|
|
7
|
+
this.sessionId = sessionId;
|
|
8
|
+
this.serviceDomain = serviceDomain;
|
|
9
|
+
this.dataScopeDict = dataScopeDict;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default ApiRpcSession;
|
|
@@ -25,7 +25,8 @@ export class ApiScanDataset {
|
|
|
25
25
|
coarseAlignmentMatrix,
|
|
26
26
|
fineAlignmentMatrix,
|
|
27
27
|
scanDate,
|
|
28
|
-
|
|
28
|
+
qaStarted,
|
|
29
|
+
qaComplete
|
|
29
30
|
}: ApiScanDatasetArgument) {
|
|
30
31
|
addInstantGetterAndSetterToApiModel(this, "scanDate");
|
|
31
32
|
addReadOnlyPropertiesToModel(this, { id, firebaseId, firebaseFloorId, scanNumber });
|
|
@@ -76,6 +77,7 @@ export class ApiScanDataset {
|
|
|
76
77
|
this.analysisCompleted = analysisCompleted;
|
|
77
78
|
this.manualQcPresent = manualQcPresent;
|
|
78
79
|
this.qaComplete = qaComplete;
|
|
80
|
+
this.qaStarted = qaStarted;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
/**
|
|
@@ -111,6 +113,7 @@ export class ApiScanDataset {
|
|
|
111
113
|
notes: string | null = null;
|
|
112
114
|
name: string | null = null;
|
|
113
115
|
qaComplete: Date | null = null;
|
|
116
|
+
qaStarted: Date | null = null;
|
|
114
117
|
}
|
|
115
118
|
|
|
116
119
|
export default ApiScanDataset;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {addInstantGetterAndSetterToApiModel} from "../../mixins";
|
|
2
|
+
|
|
3
|
+
export class ApiScanDatasetStats {
|
|
4
|
+
organizationName: string;
|
|
5
|
+
scanDatasetId: number;
|
|
6
|
+
projectName: string;
|
|
7
|
+
floor: string;
|
|
8
|
+
scanDatasetName: string;
|
|
9
|
+
pipelineStartTime: Date;
|
|
10
|
+
pipelineEndTime: Date;
|
|
11
|
+
pipelineStatus: string;
|
|
12
|
+
qaCompleteTime: Date;
|
|
13
|
+
qaStartTime: Date;
|
|
14
|
+
squareFootage: number;
|
|
15
|
+
|
|
16
|
+
constructor(props: ApiScanDatasetStatsProps) {
|
|
17
|
+
addInstantGetterAndSetterToApiModel(this, 'pipelineStartTime', props.pipelineStartTime);
|
|
18
|
+
addInstantGetterAndSetterToApiModel(this, 'pipelineEndTime', props.pipelineEndTime);
|
|
19
|
+
addInstantGetterAndSetterToApiModel(this, 'qaCompleteTime', props.qaCompleteTime);
|
|
20
|
+
addInstantGetterAndSetterToApiModel(this, 'qaStartTime', props.qaStartTime);
|
|
21
|
+
this.organizationName = props.organizationName;
|
|
22
|
+
this.projectName = props.projectName;
|
|
23
|
+
this.scanDatasetId = props.scanDatasetId;
|
|
24
|
+
this.scanDatasetName = props.scanDatasetName;
|
|
25
|
+
this.pipelineStatus = props.pipelineStatus;
|
|
26
|
+
this.squareFootage = props.squareFootage;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
type ApiScanDatasetStatsProps = {
|
|
32
|
+
organizationName: string;
|
|
33
|
+
scanDatasetId: number;
|
|
34
|
+
projectName: string;
|
|
35
|
+
floor: string;
|
|
36
|
+
scanDatasetName: string;
|
|
37
|
+
pipelineStartTime: number;
|
|
38
|
+
pipelineEndTime: number;
|
|
39
|
+
pipelineStatus: string;
|
|
40
|
+
qaCompleteTime: number;
|
|
41
|
+
qaStartTime: number;
|
|
42
|
+
squareFootage: number;
|
|
43
|
+
}
|