avvir 0.4.8 → 0.4.10

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.
@@ -855,6 +855,12 @@ var PipelineApi = /** @class */ (function () {
855
855
  var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/pipelines";
856
856
  return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].post(url, user, body);
857
857
  };
858
+ PipelineApi.triggerIngestProjectReportPipeline = function (associationIds, body, user) {
859
+ if (body === void 0) { body = {}; }
860
+ var organizationId = associationIds.organizationId, projectId = associationIds.projectId;
861
+ var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/pipeline/" + organizationId + "/" + projectId + "/ingest-project-export-report/trigger";
862
+ return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].post(url, user, body);
863
+ };
858
864
  PipelineApi.checkPipelineStatus = function (_a, pipelineId, user) {
859
865
  var projectId = _a.projectId;
860
866
  var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/pipelines/" + pipelineId;
@@ -4,6 +4,7 @@ import ApiPipeline, { ApiPipelineArgument } from "../models/api/api_pipeline";
4
4
  export default class PipelineApi {
5
5
  static triggerJobStepsPipeline(associationIds: AssociationIds, body: {}, user: User): Promise<ApiPipeline>;
6
6
  static triggerPipeline(body: ApiPipelineArgument, user: User): Promise<ApiPipeline>;
7
+ static triggerIngestProjectReportPipeline(associationIds: AssociationIds, body: {}, user: User): Promise<ApiPipeline>;
7
8
  static checkPipelineStatus({ projectId }: AssociationIds, pipelineId: number, user: User): Promise<ApiPipeline>;
8
9
  static getFloorPipelines({ projectId, floorId }: AssociationIds, user: User): Promise<ApiPipeline[]>;
9
10
  }
@@ -10,6 +10,11 @@ export default class PipelineApi {
10
10
  const url = `${Http.baseUrl()}/pipelines`;
11
11
  return Http.post(url, user, body);
12
12
  }
13
+ static triggerIngestProjectReportPipeline(associationIds, body = {}, user) {
14
+ let { organizationId, projectId } = associationIds;
15
+ const url = `${Http.baseUrl()}/pipeline/${organizationId}/${projectId}/ingest-project-export-report/trigger`;
16
+ return Http.post(url, user, body);
17
+ }
13
18
  static checkPipelineStatus({ projectId }, pipelineId, user) {
14
19
  const url = `${Http.baseUrl()}/pipelines/${pipelineId}`;
15
20
  return Http.get(url, user);
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline_api.js","sourceRoot":"","sources":["../../../source/api/pipeline_api.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAI/D,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,MAAM,CAAC,uBAAuB,CAAC,cAA8B,EAAE,IAAI,GAAG,EAAE,EAAE,IAAU;QAClF,IAAI,EAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAC,GAAG,cAAc,CAAC;QACpE,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,aAAa,SAAS,IAAI,SAAS,IAAI,OAAO,IAAI,aAAa,UAAU,CAAC;QACvG,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAoC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,OAA4B,EAAE,EAAE,IAAU;QAC/D,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAoC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,EAAC,SAAS,EAAiB,EAAE,UAAkB,EAAE,IAAU;QACpF,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,cAAc,UAAU,EAAE,CAAC;QACxD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAoC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AAE,SAAS,EAAC,GAAG,cAAc,CAAC;QACjD,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,aAAa,cAAc,IAAI,SAAS,uCAAuC,CAAC;QAC7G,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAoC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,EAAC,SAAS,EAAiB,EAAE,UAAkB,EAAE,IAAU;QACpF,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,cAAc,UAAU,EAAE,CAAC;QACxD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAoC,CAAC;IAChE,CAAC;IAED,MAAM,CAAC,iBAAiB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAiB,EAAE,IAAU;QACvE,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,aAAa,SAAS,WAAW,OAAO,YAAY,CAAC;QAClF,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAsC,CAAC;IAClE,CAAC;CACF;AAED,gBAAgB,CAAC,WAAW,CAAC,CAAA"}
@@ -6,7 +6,7 @@ export declare class ApiProjectCostAnalysisProgress {
6
6
  constructor({ id, masterformatCode, sequence, name, componentDescription, unitOfMeasure, plannedUnitCost, plannedQuantity, plannedTotalCost, modeledQuantityProject, modeledQuantity, modeledTotalCost, plannedQuantityProject, reportedQuantity, scannedQuantityProject, scannedQuantity, scannedTotalCost, analysisDate, plannedTotalCostProject, modeledTotalCostProject, scannedTotalCostProject, reportedTotalCostProject, reportedQuantityProject, modeledQuantityArea, scannedQuantityArea, modeledTotalCostArea, scannedTotalCostArea, vendor }: ApiProjectCostAnalysisProgressArgument);
7
7
  id: number | null;
8
8
  masterformatCode: string | null;
9
- sequence: string | null;
9
+ sequence: number | null;
10
10
  name: string | null;
11
11
  componentDescription: string | null;
12
12
  analysisDate: number | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "avvir",
3
3
  "repository": "git@github.com:Avvir/avvir-javascript-client.git",
4
- "version": "0.4.8",
4
+ "version": "0.4.10",
5
5
  "description": "Javascript client for Avvir APIs",
6
6
  "license": "Apache-2.0",
7
7
  "module": "dist/esm/index.js",
@@ -16,6 +16,12 @@ export default class PipelineApi {
16
16
  return Http.post(url, user, body) as unknown as Promise<ApiPipeline>;
17
17
  }
18
18
 
19
+ static triggerIngestProjectReportPipeline(associationIds: AssociationIds, body = {}, user: User): Promise<ApiPipeline> {
20
+ let {organizationId, projectId} = associationIds;
21
+ const url = `${Http.baseUrl()}/pipeline/${organizationId}/${projectId}/ingest-project-export-report/trigger`;
22
+ return Http.post(url, user, body) as unknown as Promise<ApiPipeline>;
23
+ }
24
+
19
25
  static checkPipelineStatus({projectId}: AssociationIds, pipelineId: number, user: User): Promise<ApiPipeline> {
20
26
  const url = `${Http.baseUrl()}/pipelines/${pipelineId}`;
21
27
  return Http.get(url, user) as unknown as Promise<ApiPipeline>;
@@ -1,6 +1,6 @@
1
1
  import addInstantGetterAndSetterToApiModel from "../../mixins/add_instant_getter_and_setter_to_api_model";
2
2
  import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
3
- import {DateLike, Modify} from "./type_aliases";
3
+ import { DateLike, Modify } from "./type_aliases";
4
4
 
5
5
  export type ApiProjectCostAnalysisProgressArgument = Partial<Modify<ApiProjectCostAnalysisProgress, {
6
6
  analysisDate?: DateLike
@@ -73,7 +73,7 @@ export class ApiProjectCostAnalysisProgress {
73
73
 
74
74
  id: number | null = null;
75
75
  masterformatCode: string | null = null;
76
- sequence: string | null = null;
76
+ sequence: number | null = null;
77
77
  name: string | null = null;
78
78
  componentDescription: string | null = null;
79
79
  analysisDate: number | null = null;