avvir 0.4.26 → 0.5.1
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 +195 -69
- 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/recipe_api.d.ts +15 -0
- package/dist/esm/api/recipe_api.js +46 -0
- package/dist/esm/api/recipe_api.js.map +1 -0
- package/dist/esm/avvir_api.d.ts +2 -1
- package/dist/esm/avvir_api.js +3 -2
- package/dist/esm/avvir_api.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/models/api/api_recipe.d.ts +35 -0
- package/dist/esm/models/api/api_recipe.js +21 -0
- package/dist/esm/models/api/api_recipe.js.map +1 -0
- package/dist/esm/models/api/index.d.ts +1 -0
- package/dist/esm/models/api/index.js +1 -0
- package/dist/esm/models/api/index.js.map +1 -1
- package/dist/esm/models/api/type_aliases.d.ts +1 -0
- package/package.json +1 -1
- package/source/api/index.ts +2 -0
- package/source/api/recipe_api.ts +59 -0
- package/source/avvir_api.ts +3 -2
- package/source/models/api/api_recipe.ts +55 -0
- package/source/models/api/index.ts +2 -0
- package/source/models/api/type_aliases.ts +2 -1
package/dist/avvir_api.node.js
CHANGED
|
@@ -621,6 +621,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
621
621
|
/* harmony export */ "PhotoAreaApi": () => (/* reexport safe */ _photo_area_api__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
622
622
|
/* harmony export */ "PipelineApi": () => (/* reexport safe */ _pipeline_api__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
623
623
|
/* harmony export */ "ProjectApi": () => (/* reexport safe */ _project_api__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
624
|
+
/* harmony export */ "RecipeApi": () => (/* reexport safe */ _recipe_api__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
|
624
625
|
/* harmony export */ "ScanDatasetApi": () => (/* reexport safe */ _scan_dataset_api__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
625
626
|
/* harmony export */ "WebGatewayApi": () => (/* reexport safe */ _web_gateway_api__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
626
627
|
/* harmony export */ "WebRpcApi": () => (/* reexport safe */ _web_rpc_api__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
@@ -644,6 +645,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
644
645
|
/* harmony import */ var _integrations_api__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(4089);
|
|
645
646
|
/* harmony import */ var _project_summary_api__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(5203);
|
|
646
647
|
/* harmony import */ var _group_api__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(9313);
|
|
648
|
+
/* harmony import */ var _recipe_api__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8783);
|
|
649
|
+
|
|
647
650
|
|
|
648
651
|
|
|
649
652
|
|
|
@@ -1079,6 +1082,77 @@ var ProjectSummaryApi = /** @class */ (function () {
|
|
|
1079
1082
|
(0,_utilities_make_errors_pretty__WEBPACK_IMPORTED_MODULE_0__["default"])(ProjectSummaryApi);
|
|
1080
1083
|
|
|
1081
1084
|
|
|
1085
|
+
/***/ }),
|
|
1086
|
+
|
|
1087
|
+
/***/ 8783:
|
|
1088
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1089
|
+
|
|
1090
|
+
"use strict";
|
|
1091
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1092
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1093
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1094
|
+
/* harmony export */ });
|
|
1095
|
+
/* harmony import */ var _utilities_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5562);
|
|
1096
|
+
/* harmony import */ var _utilities_make_errors_pretty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6289);
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
var RecipeApi = /** @class */ (function () {
|
|
1100
|
+
function RecipeApi() {
|
|
1101
|
+
}
|
|
1102
|
+
RecipeApi.getGlobalRecipe = function (_a, user) {
|
|
1103
|
+
var recipeId = _a.recipeId;
|
|
1104
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/recipes/" + recipeId;
|
|
1105
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].get(url, user);
|
|
1106
|
+
};
|
|
1107
|
+
RecipeApi.listGlobalRecipes = function (user) {
|
|
1108
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/recipes";
|
|
1109
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].get(url, user);
|
|
1110
|
+
};
|
|
1111
|
+
RecipeApi.createGlobalRecipe = function (apiRecipe, user) {
|
|
1112
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/recipes";
|
|
1113
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].post(url, user, apiRecipe);
|
|
1114
|
+
};
|
|
1115
|
+
RecipeApi.updateGlobalRecipe = function (_a, apiRecipe, user) {
|
|
1116
|
+
var recipeId = _a.recipeId;
|
|
1117
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/recipes/" + recipeId;
|
|
1118
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].put(url, user, apiRecipe);
|
|
1119
|
+
};
|
|
1120
|
+
RecipeApi.deleteGlobalRecipe = function (_a, user) {
|
|
1121
|
+
var recipeId = _a.recipeId;
|
|
1122
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/recipes/" + recipeId;
|
|
1123
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"]["delete"](url, user);
|
|
1124
|
+
};
|
|
1125
|
+
RecipeApi.getProjectRecipe = function (_a, user) {
|
|
1126
|
+
var projectId = _a.projectId, recipeId = _a.recipeId;
|
|
1127
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/projects/" + projectId + "/recipes/" + recipeId;
|
|
1128
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].get(url, user);
|
|
1129
|
+
};
|
|
1130
|
+
RecipeApi.listProjectRecipes = function (_a, user) {
|
|
1131
|
+
var projectId = _a.projectId;
|
|
1132
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/projects/" + projectId + "/recipes";
|
|
1133
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].get(url, user);
|
|
1134
|
+
};
|
|
1135
|
+
RecipeApi.createProjectRecipe = function (_a, apiRecipe, user) {
|
|
1136
|
+
var projectId = _a.projectId;
|
|
1137
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/projects/" + projectId + "/recipes";
|
|
1138
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].post(url, user, apiRecipe);
|
|
1139
|
+
};
|
|
1140
|
+
RecipeApi.updateProjectRecipe = function (_a, apiRecipe, user) {
|
|
1141
|
+
var projectId = _a.projectId, recipeId = _a.recipeId;
|
|
1142
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/projects/" + projectId + "/recipes/" + recipeId;
|
|
1143
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].put(url, user, apiRecipe);
|
|
1144
|
+
};
|
|
1145
|
+
RecipeApi.deleteProjectRecipe = function (_a, user) {
|
|
1146
|
+
var projectId = _a.projectId, recipeId = _a.recipeId;
|
|
1147
|
+
var url = _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"].baseUrl() + "/projects/" + projectId + "/recipes/" + recipeId;
|
|
1148
|
+
return _utilities_http__WEBPACK_IMPORTED_MODULE_0__["default"]["delete"](url, user);
|
|
1149
|
+
};
|
|
1150
|
+
return RecipeApi;
|
|
1151
|
+
}());
|
|
1152
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RecipeApi);
|
|
1153
|
+
(0,_utilities_make_errors_pretty__WEBPACK_IMPORTED_MODULE_1__["default"])(RecipeApi);
|
|
1154
|
+
|
|
1155
|
+
|
|
1082
1156
|
/***/ }),
|
|
1083
1157
|
|
|
1084
1158
|
/***/ 4835:
|
|
@@ -1679,7 +1753,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1679
1753
|
webRpcApi: _api__WEBPACK_IMPORTED_MODULE_15__.WebRpcApi,
|
|
1680
1754
|
user: _api_user_api__WEBPACK_IMPORTED_MODULE_12__["default"],
|
|
1681
1755
|
projectSummary: _api_project_summary_api__WEBPACK_IMPORTED_MODULE_14__["default"],
|
|
1682
|
-
groups: _api__WEBPACK_IMPORTED_MODULE_15__.GroupApi
|
|
1756
|
+
groups: _api__WEBPACK_IMPORTED_MODULE_15__.GroupApi,
|
|
1757
|
+
recipes: _api__WEBPACK_IMPORTED_MODULE_15__.RecipeApi
|
|
1683
1758
|
});
|
|
1684
1759
|
|
|
1685
1760
|
|
|
@@ -2368,6 +2443,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2368
2443
|
/* harmony export */ "ApiProjectSummary": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiProjectSummary),
|
|
2369
2444
|
/* harmony export */ "ApiQuaternion": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiQuaternion),
|
|
2370
2445
|
/* harmony export */ "ApiQueryResource": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiQueryResource),
|
|
2446
|
+
/* harmony export */ "ApiRecipe": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiRecipe),
|
|
2447
|
+
/* harmony export */ "ApiRecipeStep": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiRecipeStep),
|
|
2371
2448
|
/* harmony export */ "ApiRpcQueryRequest": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiRpcQueryRequest),
|
|
2372
2449
|
/* harmony export */ "ApiRpcQueryResponse": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiRpcQueryResponse),
|
|
2373
2450
|
/* harmony export */ "ApiRpcSession": () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.ApiRpcSession),
|
|
@@ -4337,6 +4414,47 @@ var ApiQueryResource = /** @class */ (function () {
|
|
|
4337
4414
|
|
|
4338
4415
|
|
|
4339
4416
|
|
|
4417
|
+
/***/ }),
|
|
4418
|
+
|
|
4419
|
+
/***/ 3411:
|
|
4420
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4421
|
+
|
|
4422
|
+
"use strict";
|
|
4423
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4424
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4425
|
+
/* harmony export */ "ApiRecipe": () => (/* binding */ ApiRecipe),
|
|
4426
|
+
/* harmony export */ "ApiRecipeStep": () => (/* binding */ ApiRecipeStep),
|
|
4427
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4428
|
+
/* harmony export */ });
|
|
4429
|
+
/* harmony import */ var _mixins_add_read_only_properties_to_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5025);
|
|
4430
|
+
|
|
4431
|
+
var ApiRecipe = /** @class */ (function () {
|
|
4432
|
+
function ApiRecipe(_a) {
|
|
4433
|
+
var id = _a.id, projectFirebaseId = _a.projectFirebaseId, name = _a.name, isEnabled = _a.isEnabled, modeledCode = _a.modeledCode, steps = _a.steps;
|
|
4434
|
+
(0,_mixins_add_read_only_properties_to_model__WEBPACK_IMPORTED_MODULE_0__["default"])(this, { id: id, projectFirebaseId: projectFirebaseId });
|
|
4435
|
+
this.name = name;
|
|
4436
|
+
this.isEnabled = isEnabled || false;
|
|
4437
|
+
this.modeledCode = modeledCode;
|
|
4438
|
+
this.steps = steps || [];
|
|
4439
|
+
}
|
|
4440
|
+
return ApiRecipe;
|
|
4441
|
+
}());
|
|
4442
|
+
|
|
4443
|
+
var ApiRecipeStep = /** @class */ (function () {
|
|
4444
|
+
function ApiRecipeStep(_a) {
|
|
4445
|
+
var id = _a.id, recipeId = _a.recipeId, globalRecipeStepId = _a.globalRecipeStepId, ordinal = _a.ordinal, name = _a.name, code = _a.code, partialProgressPercent = _a.partialProgressPercent;
|
|
4446
|
+
(0,_mixins_add_read_only_properties_to_model__WEBPACK_IMPORTED_MODULE_0__["default"])(this, { id: id, recipeId: recipeId, globalRecipeStepId: globalRecipeStepId });
|
|
4447
|
+
this.ordinal = ordinal;
|
|
4448
|
+
this.name = name || null;
|
|
4449
|
+
this.code = code || null;
|
|
4450
|
+
this.partialProgressPercent = partialProgressPercent || 0.0;
|
|
4451
|
+
}
|
|
4452
|
+
return ApiRecipeStep;
|
|
4453
|
+
}());
|
|
4454
|
+
|
|
4455
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiRecipe);
|
|
4456
|
+
|
|
4457
|
+
|
|
4340
4458
|
/***/ }),
|
|
4341
4459
|
|
|
4342
4460
|
/***/ 1814:
|
|
@@ -4925,48 +5043,50 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4925
5043
|
/* harmony export */ "ApiProjectAreaProgress": () => (/* reexport safe */ _api_project_summary__WEBPACK_IMPORTED_MODULE_25__.ApiProjectAreaProgress),
|
|
4926
5044
|
/* harmony export */ "ApiWorkPackage": () => (/* reexport safe */ _api_work_package__WEBPACK_IMPORTED_MODULE_26__.ApiWorkPackage),
|
|
4927
5045
|
/* harmony export */ "ApiProjectListing": () => (/* reexport safe */ _api_project_listing__WEBPACK_IMPORTED_MODULE_27__.ApiProjectListing),
|
|
4928
|
-
/* harmony export */ "
|
|
4929
|
-
/* harmony export */ "
|
|
4930
|
-
/* harmony export */ "
|
|
4931
|
-
/* harmony export */ "
|
|
4932
|
-
/* harmony export */ "
|
|
4933
|
-
/* harmony export */ "
|
|
4934
|
-
/* harmony export */ "
|
|
4935
|
-
/* harmony export */ "
|
|
4936
|
-
/* harmony export */ "
|
|
4937
|
-
/* harmony export */ "
|
|
4938
|
-
/* harmony export */ "
|
|
4939
|
-
/* harmony export */ "
|
|
4940
|
-
/* harmony export */ "
|
|
4941
|
-
/* harmony export */ "
|
|
4942
|
-
/* harmony export */ "
|
|
4943
|
-
/* harmony export */ "
|
|
4944
|
-
/* harmony export */ "
|
|
4945
|
-
/* harmony export */ "
|
|
4946
|
-
/* harmony export */ "
|
|
4947
|
-
/* harmony export */ "
|
|
4948
|
-
/* harmony export */ "
|
|
4949
|
-
/* harmony export */ "
|
|
4950
|
-
/* harmony export */ "
|
|
4951
|
-
/* harmony export */ "
|
|
4952
|
-
/* harmony export */ "
|
|
4953
|
-
/* harmony export */ "
|
|
4954
|
-
/* harmony export */ "
|
|
4955
|
-
/* harmony export */ "
|
|
4956
|
-
/* harmony export */ "
|
|
4957
|
-
/* harmony export */ "
|
|
4958
|
-
/* harmony export */ "
|
|
4959
|
-
/* harmony export */ "
|
|
4960
|
-
/* harmony export */ "
|
|
4961
|
-
/* harmony export */ "
|
|
4962
|
-
/* harmony export */ "
|
|
4963
|
-
/* harmony export */ "
|
|
4964
|
-
/* harmony export */ "
|
|
4965
|
-
/* harmony export */ "
|
|
4966
|
-
/* harmony export */ "
|
|
4967
|
-
/* harmony export */ "
|
|
4968
|
-
/* harmony export */ "
|
|
4969
|
-
/* harmony export */ "
|
|
5046
|
+
/* harmony export */ "ApiRecipe": () => (/* reexport safe */ _api_recipe__WEBPACK_IMPORTED_MODULE_28__.ApiRecipe),
|
|
5047
|
+
/* harmony export */ "ApiRecipeStep": () => (/* reexport safe */ _api_recipe__WEBPACK_IMPORTED_MODULE_28__.ApiRecipeStep),
|
|
5048
|
+
/* harmony export */ "ApiPhotoAreaPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.ApiPhotoAreaPurposeType),
|
|
5049
|
+
/* harmony export */ "ApiScanDatasetPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.ApiScanDatasetPurposeType),
|
|
5050
|
+
/* harmony export */ "ApiFloorPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.ApiFloorPurposeType),
|
|
5051
|
+
/* harmony export */ "ApiProjectPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.ApiProjectPurposeType),
|
|
5052
|
+
/* harmony export */ "isApiPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.isApiPurposeType),
|
|
5053
|
+
/* harmony export */ "isApiFloorPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.isApiFloorPurposeType),
|
|
5054
|
+
/* harmony export */ "isApiPhotoAreaPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.isApiPhotoAreaPurposeType),
|
|
5055
|
+
/* harmony export */ "isApiScanDatasetPurposeType": () => (/* reexport safe */ _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__.isApiScanDatasetPurposeType),
|
|
5056
|
+
/* harmony export */ "ApiRunningProcess": () => (/* reexport safe */ _api_running_process__WEBPACK_IMPORTED_MODULE_30__.ApiRunningProcess),
|
|
5057
|
+
/* harmony export */ "ApiScanDataset": () => (/* reexport safe */ _api_scan_dataset__WEBPACK_IMPORTED_MODULE_31__.ApiScanDataset),
|
|
5058
|
+
/* harmony export */ "ApiScannedElement": () => (/* reexport safe */ _api_scanned_element__WEBPACK_IMPORTED_MODULE_32__.ApiScannedElement),
|
|
5059
|
+
/* harmony export */ "isDeviationScanResult": () => (/* reexport safe */ _api_scanned_element__WEBPACK_IMPORTED_MODULE_32__.isDeviationScanResult),
|
|
5060
|
+
/* harmony export */ "ApiUser": () => (/* reexport safe */ _api_user__WEBPACK_IMPORTED_MODULE_33__.ApiUser),
|
|
5061
|
+
/* harmony export */ "DeprecatedApiPipeline": () => (/* reexport safe */ _deprecated_api_pipeline__WEBPACK_IMPORTED_MODULE_34__.DeprecatedApiPipeline),
|
|
5062
|
+
/* harmony export */ "ApiProgressCategory": () => (/* reexport safe */ _api_progress_category__WEBPACK_IMPORTED_MODULE_35__.ApiProgressCategory),
|
|
5063
|
+
/* harmony export */ "ApiProgressScanDataset": () => (/* reexport safe */ _api_progress_scan_dataset__WEBPACK_IMPORTED_MODULE_36__.ApiProgressScanDataset),
|
|
5064
|
+
/* harmony export */ "PhotoViewerDetails": () => (/* reexport safe */ _api_view__WEBPACK_IMPORTED_MODULE_37__.PhotoViewerDetails),
|
|
5065
|
+
/* harmony export */ "ViewCamera": () => (/* reexport safe */ _api_view__WEBPACK_IMPORTED_MODULE_37__.ViewCamera),
|
|
5066
|
+
/* harmony export */ "ApiView": () => (/* reexport safe */ _api_view__WEBPACK_IMPORTED_MODULE_37__.ApiView),
|
|
5067
|
+
/* harmony export */ "ViewAttributes": () => (/* reexport safe */ _api_view__WEBPACK_IMPORTED_MODULE_37__.ViewAttributes),
|
|
5068
|
+
/* harmony export */ "ViewFilters": () => (/* reexport safe */ _api_view__WEBPACK_IMPORTED_MODULE_37__.ViewFilters),
|
|
5069
|
+
/* harmony export */ "ViewTrades": () => (/* reexport safe */ _api_view__WEBPACK_IMPORTED_MODULE_37__.ViewTrades),
|
|
5070
|
+
/* harmony export */ "DeviationTolerance": () => (/* reexport safe */ _api_view__WEBPACK_IMPORTED_MODULE_37__.DeviationTolerance),
|
|
5071
|
+
/* harmony export */ "ApiQueryResource": () => (/* reexport safe */ _api_query_resource__WEBPACK_IMPORTED_MODULE_38__.ApiQueryResource),
|
|
5072
|
+
/* harmony export */ "ApiUserAction": () => (/* reexport safe */ _api_user_action__WEBPACK_IMPORTED_MODULE_39__.ApiUserAction),
|
|
5073
|
+
/* harmony export */ "ApiActionPayload": () => (/* reexport safe */ _api_action_payload__WEBPACK_IMPORTED_MODULE_40__.ApiActionPayload),
|
|
5074
|
+
/* harmony export */ "ApiIntegrationCredentials": () => (/* reexport safe */ _api_integration_credentials__WEBPACK_IMPORTED_MODULE_41__.ApiIntegrationCredentials),
|
|
5075
|
+
/* harmony export */ "ApiIntegrationProject": () => (/* reexport safe */ _api_integration_project__WEBPACK_IMPORTED_MODULE_42__.ApiIntegrationProject),
|
|
5076
|
+
/* harmony export */ "ApiTeamMember": () => (/* reexport safe */ _api_team_member__WEBPACK_IMPORTED_MODULE_43__.ApiTeamMember),
|
|
5077
|
+
/* harmony export */ "ApiQuaternion": () => (/* reexport safe */ _api_quaternion__WEBPACK_IMPORTED_MODULE_44__.ApiQuaternion),
|
|
5078
|
+
/* harmony export */ "isApiQuaternion": () => (/* reexport safe */ _api_quaternion__WEBPACK_IMPORTED_MODULE_44__.isApiQuaternion),
|
|
5079
|
+
/* harmony export */ "ApiBcfIssue": () => (/* reexport safe */ _api_bcf_issue__WEBPACK_IMPORTED_MODULE_45__.ApiBcfIssue),
|
|
5080
|
+
/* harmony export */ "ApiBcfBuildingElement": () => (/* reexport safe */ _api_bcf_building_element__WEBPACK_IMPORTED_MODULE_46__.ApiBcfBuildingElement),
|
|
5081
|
+
/* harmony export */ "ApiUserPermission": () => (/* reexport safe */ _api_user_permission__WEBPACK_IMPORTED_MODULE_47__.ApiUserPermission),
|
|
5082
|
+
/* harmony export */ "ApiUserForOrganization": () => (/* reexport safe */ _api_user_for_organization__WEBPACK_IMPORTED_MODULE_48__.ApiUserForOrganization),
|
|
5083
|
+
/* harmony export */ "ApiRpcSession": () => (/* reexport safe */ _api_rpc_session__WEBPACK_IMPORTED_MODULE_49__.ApiRpcSession),
|
|
5084
|
+
/* harmony export */ "ApiRpcQueryRequest": () => (/* reexport safe */ _api_rpc_query_request__WEBPACK_IMPORTED_MODULE_50__.ApiRpcQueryRequest),
|
|
5085
|
+
/* harmony export */ "ApiRpcQueryResponse": () => (/* reexport safe */ _api_rpc_query_response__WEBPACK_IMPORTED_MODULE_51__.ApiRpcQueryResponse),
|
|
5086
|
+
/* harmony export */ "ApiScanDatasetStats": () => (/* reexport safe */ _api_scandataset_stats__WEBPACK_IMPORTED_MODULE_52__.ApiScanDatasetStats),
|
|
5087
|
+
/* harmony export */ "ApiGroup": () => (/* reexport safe */ _api_groups__WEBPACK_IMPORTED_MODULE_53__.ApiGroup),
|
|
5088
|
+
/* harmony export */ "ApiGroupMember": () => (/* reexport safe */ _api_groups__WEBPACK_IMPORTED_MODULE_53__.ApiGroupMember),
|
|
5089
|
+
/* harmony export */ "ApiMasterformatProgress": () => (/* reexport safe */ _api_masterformat_progress__WEBPACK_IMPORTED_MODULE_54__.ApiMasterformatProgress)
|
|
4970
5090
|
/* harmony export */ });
|
|
4971
5091
|
/* harmony import */ var _api_argo_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8450);
|
|
4972
5092
|
/* harmony import */ var _api_comment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2381);
|
|
@@ -4996,32 +5116,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4996
5116
|
/* harmony import */ var _api_project_summary__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(6767);
|
|
4997
5117
|
/* harmony import */ var _api_work_package__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(4113);
|
|
4998
5118
|
/* harmony import */ var _api_project_listing__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(1108);
|
|
4999
|
-
/* harmony import */ var
|
|
5000
|
-
/* harmony import */ var
|
|
5001
|
-
/* harmony import */ var
|
|
5002
|
-
/* harmony import */ var
|
|
5003
|
-
/* harmony import */ var
|
|
5004
|
-
/* harmony import */ var
|
|
5005
|
-
/* harmony import */ var
|
|
5006
|
-
/* harmony import */ var
|
|
5007
|
-
/* harmony import */ var
|
|
5008
|
-
/* harmony import */ var
|
|
5009
|
-
/* harmony import */ var
|
|
5010
|
-
/* harmony import */ var
|
|
5011
|
-
/* harmony import */ var
|
|
5012
|
-
/* harmony import */ var
|
|
5013
|
-
/* harmony import */ var
|
|
5014
|
-
/* harmony import */ var
|
|
5015
|
-
/* harmony import */ var
|
|
5016
|
-
/* harmony import */ var
|
|
5017
|
-
/* harmony import */ var
|
|
5018
|
-
/* harmony import */ var
|
|
5019
|
-
/* harmony import */ var
|
|
5020
|
-
/* harmony import */ var
|
|
5021
|
-
/* harmony import */ var
|
|
5022
|
-
/* harmony import */ var
|
|
5023
|
-
/* harmony import */ var
|
|
5024
|
-
/* harmony import */ var
|
|
5119
|
+
/* harmony import */ var _api_recipe__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(3411);
|
|
5120
|
+
/* harmony import */ var _api_purpose_type__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(3979);
|
|
5121
|
+
/* harmony import */ var _api_running_process__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(2011);
|
|
5122
|
+
/* harmony import */ var _api_scan_dataset__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(1866);
|
|
5123
|
+
/* harmony import */ var _api_scanned_element__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(3162);
|
|
5124
|
+
/* harmony import */ var _api_user__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(9217);
|
|
5125
|
+
/* harmony import */ var _deprecated_api_pipeline__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(6732);
|
|
5126
|
+
/* harmony import */ var _api_progress_category__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(7390);
|
|
5127
|
+
/* harmony import */ var _api_progress_scan_dataset__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(3783);
|
|
5128
|
+
/* harmony import */ var _api_view__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(3779);
|
|
5129
|
+
/* harmony import */ var _api_query_resource__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(7571);
|
|
5130
|
+
/* harmony import */ var _api_user_action__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(121);
|
|
5131
|
+
/* harmony import */ var _api_action_payload__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(3575);
|
|
5132
|
+
/* harmony import */ var _api_integration_credentials__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(440);
|
|
5133
|
+
/* harmony import */ var _api_integration_project__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(8007);
|
|
5134
|
+
/* harmony import */ var _api_team_member__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(7836);
|
|
5135
|
+
/* harmony import */ var _api_quaternion__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(6251);
|
|
5136
|
+
/* harmony import */ var _api_bcf_issue__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(1075);
|
|
5137
|
+
/* harmony import */ var _api_bcf_building_element__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(5225);
|
|
5138
|
+
/* harmony import */ var _api_user_permission__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(3911);
|
|
5139
|
+
/* harmony import */ var _api_user_for_organization__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(9943);
|
|
5140
|
+
/* harmony import */ var _api_rpc_session__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(68);
|
|
5141
|
+
/* harmony import */ var _api_rpc_query_request__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(1814);
|
|
5142
|
+
/* harmony import */ var _api_rpc_query_response__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(9453);
|
|
5143
|
+
/* harmony import */ var _api_scandataset_stats__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(80);
|
|
5144
|
+
/* harmony import */ var _api_groups__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(8277);
|
|
5145
|
+
/* harmony import */ var _api_masterformat_progress__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(2122);
|
|
5146
|
+
|
|
5025
5147
|
|
|
5026
5148
|
|
|
5027
5149
|
|
|
@@ -5994,6 +6116,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5994
6116
|
/* harmony export */ "ApiProjectSummary": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiProjectSummary),
|
|
5995
6117
|
/* harmony export */ "ApiQuaternion": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiQuaternion),
|
|
5996
6118
|
/* harmony export */ "ApiQueryResource": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiQueryResource),
|
|
6119
|
+
/* harmony export */ "ApiRecipe": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiRecipe),
|
|
6120
|
+
/* harmony export */ "ApiRecipeStep": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiRecipeStep),
|
|
5997
6121
|
/* harmony export */ "ApiRpcQueryRequest": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiRpcQueryRequest),
|
|
5998
6122
|
/* harmony export */ "ApiRpcQueryResponse": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiRpcQueryResponse),
|
|
5999
6123
|
/* harmony export */ "ApiRpcSession": () => (/* reexport safe */ _api__WEBPACK_IMPORTED_MODULE_0__.ApiRpcSession),
|
|
@@ -6561,6 +6685,7 @@ var map = {
|
|
|
6561
6685
|
"./api/pipeline_api.ts": 4393,
|
|
6562
6686
|
"./api/project_api.ts": 555,
|
|
6563
6687
|
"./api/project_summary_api.ts": 5203,
|
|
6688
|
+
"./api/recipe_api.ts": 8783,
|
|
6564
6689
|
"./api/scan_dataset_api.ts": 4835,
|
|
6565
6690
|
"./api/user_api.ts": 3867,
|
|
6566
6691
|
"./api/web_gateway_api.ts": 7146,
|
|
@@ -6622,6 +6747,7 @@ var map = {
|
|
|
6622
6747
|
"./models/api/api_purpose_type.ts": 3979,
|
|
6623
6748
|
"./models/api/api_quaternion.ts": 6251,
|
|
6624
6749
|
"./models/api/api_query_resource.ts": 7571,
|
|
6750
|
+
"./models/api/api_recipe.ts": 3411,
|
|
6625
6751
|
"./models/api/api_rpc_query_request.ts": 1814,
|
|
6626
6752
|
"./models/api/api_rpc_query_response.ts": 9453,
|
|
6627
6753
|
"./models/api/api_rpc_session.ts": 68,
|
package/dist/esm/api/index.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ import UserApi from "./user_api";
|
|
|
14
14
|
import IntegrationsApi from "./integrations_api";
|
|
15
15
|
import ProjectSummaryApi from "./project_summary_api";
|
|
16
16
|
import GroupApi from "./group_api";
|
|
17
|
-
|
|
17
|
+
import RecipeApi from "./recipe_api";
|
|
18
|
+
export { AuthApi, CommentApi, ElementApi, FileInformationApi, FloorApi, IntegrationsApi, OrganizationApi, PhotoAreaApi, PipelineApi, ProjectApi, RecipeApi, ScanDatasetApi, WebGatewayApi, WebRpcApi, UserApi, ProjectSummaryApi, GroupApi };
|
package/dist/esm/api/index.js
CHANGED
|
@@ -14,5 +14,6 @@ import UserApi from "./user_api";
|
|
|
14
14
|
import IntegrationsApi from "./integrations_api";
|
|
15
15
|
import ProjectSummaryApi from "./project_summary_api";
|
|
16
16
|
import GroupApi from "./group_api";
|
|
17
|
-
|
|
17
|
+
import RecipeApi from "./recipe_api";
|
|
18
|
+
export { AuthApi, CommentApi, ElementApi, FileInformationApi, FloorApi, IntegrationsApi, OrganizationApi, PhotoAreaApi, PipelineApi, ProjectApi, RecipeApi, ScanDatasetApi, WebGatewayApi, WebRpcApi, UserApi, ProjectSummaryApi, GroupApi };
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,kBAAkB,MAAM,wBAAwB,CAAC;AACxD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,QAAQ,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,kBAAkB,MAAM,wBAAwB,CAAC;AACxD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EACH,OAAO,EACP,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,eAAe,EACf,eAAe,EACf,YAAY,EACZ,WAAW,EACX,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,SAAS,EACT,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACX,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from "../utilities/get_authorization_headers";
|
|
2
|
+
import { AssociationIds } from "../models";
|
|
3
|
+
import ApiRecipe from "../models/api/api_recipe";
|
|
4
|
+
export default class RecipeApi {
|
|
5
|
+
static getGlobalRecipe({ recipeId }: AssociationIds, user: User): Promise<ApiRecipe | null>;
|
|
6
|
+
static listGlobalRecipes(user: User): Promise<ApiRecipe[]>;
|
|
7
|
+
static createGlobalRecipe(apiRecipe: ApiRecipe, user: User): Promise<ApiRecipe>;
|
|
8
|
+
static updateGlobalRecipe({ recipeId }: AssociationIds, apiRecipe: ApiRecipe, user: User): Promise<ApiRecipe>;
|
|
9
|
+
static deleteGlobalRecipe({ recipeId }: AssociationIds, user: User): Promise<void>;
|
|
10
|
+
static getProjectRecipe({ projectId, recipeId }: AssociationIds, user: User): Promise<ApiRecipe | null>;
|
|
11
|
+
static listProjectRecipes({ projectId }: AssociationIds, user: User): Promise<ApiRecipe[]>;
|
|
12
|
+
static createProjectRecipe({ projectId }: AssociationIds, apiRecipe: ApiRecipe, user: User): Promise<ApiRecipe>;
|
|
13
|
+
static updateProjectRecipe({ projectId, recipeId }: AssociationIds, apiRecipe: ApiRecipe, user: User): Promise<ApiRecipe>;
|
|
14
|
+
static deleteProjectRecipe({ projectId, recipeId }: AssociationIds, user: User): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import Http from "../utilities/http";
|
|
2
|
+
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
3
|
+
export default class RecipeApi {
|
|
4
|
+
static getGlobalRecipe({ recipeId }, user) {
|
|
5
|
+
let url = `${Http.baseUrl()}/recipes/${recipeId}`;
|
|
6
|
+
return Http.get(url, user);
|
|
7
|
+
}
|
|
8
|
+
static listGlobalRecipes(user) {
|
|
9
|
+
let url = `${Http.baseUrl()}/recipes`;
|
|
10
|
+
return Http.get(url, user);
|
|
11
|
+
}
|
|
12
|
+
static createGlobalRecipe(apiRecipe, user) {
|
|
13
|
+
let url = `${Http.baseUrl()}/recipes`;
|
|
14
|
+
return Http.post(url, user, apiRecipe);
|
|
15
|
+
}
|
|
16
|
+
static updateGlobalRecipe({ recipeId }, apiRecipe, user) {
|
|
17
|
+
let url = `${Http.baseUrl()}/recipes/${recipeId}`;
|
|
18
|
+
return Http.put(url, user, apiRecipe);
|
|
19
|
+
}
|
|
20
|
+
static deleteGlobalRecipe({ recipeId }, user) {
|
|
21
|
+
let url = `${Http.baseUrl()}/recipes/${recipeId}`;
|
|
22
|
+
return Http.delete(url, user);
|
|
23
|
+
}
|
|
24
|
+
static getProjectRecipe({ projectId, recipeId }, user) {
|
|
25
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes/${recipeId}`;
|
|
26
|
+
return Http.get(url, user);
|
|
27
|
+
}
|
|
28
|
+
static listProjectRecipes({ projectId }, user) {
|
|
29
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes`;
|
|
30
|
+
return Http.get(url, user);
|
|
31
|
+
}
|
|
32
|
+
static createProjectRecipe({ projectId }, apiRecipe, user) {
|
|
33
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes`;
|
|
34
|
+
return Http.post(url, user, apiRecipe);
|
|
35
|
+
}
|
|
36
|
+
static updateProjectRecipe({ projectId, recipeId }, apiRecipe, user) {
|
|
37
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes/${recipeId}`;
|
|
38
|
+
return Http.put(url, user, apiRecipe);
|
|
39
|
+
}
|
|
40
|
+
static deleteProjectRecipe({ projectId, recipeId }, user) {
|
|
41
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes/${recipeId}`;
|
|
42
|
+
return Http.delete(url, user);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
makeErrorsPretty(RecipeApi);
|
|
46
|
+
//# sourceMappingURL=recipe_api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe_api.js","sourceRoot":"","sources":["../../../source/api/recipe_api.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAErC,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAG/D,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,MAAM,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAkB,EAAE,IAAU;QAC7D,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,QAAQ,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAuC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,iBAAiB,CAAC,IAAU;QACjC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC;QACtC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAoC,CAAC;IAChE,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,SAAoB,EAAE,IAAU;QACxD,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAkC,CAAC;IAC1E,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAkB,EAAE,SAAoB,EAAE,IAAU;QACtF,IAAI,GAAG,GAAG,GAAG,IAAI,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AY,QAAQ,EAAE,CAAC;QACxE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAkC,CAAC;IACzE,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAkB,EAAE,IAAU;QAC5E,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,aAAa,SAAS,YAAY,QAAQ,EAAE,CAAC;QACxE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAA6B,CAAC;IAC5D,CAAC;CACF;AAED,gBAAgB,CAAC,SAAS,CAAC,CAAC"}
|
package/dist/esm/avvir_api.d.ts
CHANGED
|
@@ -12,7 +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 { GroupApi, WebRpcApi } from "./api";
|
|
15
|
+
import { GroupApi, WebRpcApi, RecipeApi } from "./api";
|
|
16
16
|
declare const _default: {
|
|
17
17
|
auth: typeof AuthApi;
|
|
18
18
|
config: {
|
|
@@ -43,5 +43,6 @@ declare const _default: {
|
|
|
43
43
|
user: typeof UserApi;
|
|
44
44
|
projectSummary: typeof ProjectSummaryApi;
|
|
45
45
|
groups: typeof GroupApi;
|
|
46
|
+
recipes: typeof RecipeApi;
|
|
46
47
|
};
|
|
47
48
|
export default _default;
|
package/dist/esm/avvir_api.js
CHANGED
|
@@ -13,7 +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 { GroupApi, WebRpcApi } from "./api";
|
|
16
|
+
import { GroupApi, WebRpcApi, RecipeApi } from "./api";
|
|
17
17
|
export default {
|
|
18
18
|
auth: AuthApi,
|
|
19
19
|
config: Config,
|
|
@@ -31,6 +31,7 @@ export default {
|
|
|
31
31
|
webRpcApi: WebRpcApi,
|
|
32
32
|
user: UserApi,
|
|
33
33
|
projectSummary: ProjectSummaryApi,
|
|
34
|
-
groups: GroupApi
|
|
34
|
+
groups: GroupApi,
|
|
35
|
+
recipes: RecipeApi
|
|
35
36
|
};
|
|
36
37
|
//# sourceMappingURL=avvir_api.js.map
|
|
@@ -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;AAC1D,OAAO,
|
|
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,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtD,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;IACjC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACrB,CAAA"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Modify } from "./type_aliases";
|
|
2
|
+
export interface ApiRecipeArgument extends Partial<Modify<ApiRecipe, {
|
|
3
|
+
name?: string | null;
|
|
4
|
+
isEnabled?: boolean | null;
|
|
5
|
+
modeledCode?: string | null;
|
|
6
|
+
steps?: ApiRecipeStep[] | null;
|
|
7
|
+
}>> {
|
|
8
|
+
}
|
|
9
|
+
export declare class ApiRecipe {
|
|
10
|
+
readonly id: number;
|
|
11
|
+
readonly projectFirebaseId?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
isEnabled: boolean;
|
|
14
|
+
modeledCode?: string;
|
|
15
|
+
steps?: ApiRecipeStep[];
|
|
16
|
+
constructor({ id, projectFirebaseId, name, isEnabled, modeledCode, steps }: ApiRecipeArgument);
|
|
17
|
+
}
|
|
18
|
+
export interface ApiRecipeStepArgument extends Partial<Modify<ApiRecipeStep, {
|
|
19
|
+
ordinal: number;
|
|
20
|
+
name?: string | null;
|
|
21
|
+
code?: string | null;
|
|
22
|
+
partialProgressPercent?: number | null;
|
|
23
|
+
}>> {
|
|
24
|
+
}
|
|
25
|
+
export declare class ApiRecipeStep {
|
|
26
|
+
readonly id: number;
|
|
27
|
+
readonly recipeId: number;
|
|
28
|
+
readonly globalRecipeStepId: number;
|
|
29
|
+
name: string;
|
|
30
|
+
code: string;
|
|
31
|
+
ordinal: number;
|
|
32
|
+
partialProgressPercent: number;
|
|
33
|
+
constructor({ id, recipeId, globalRecipeStepId, ordinal, name, code, partialProgressPercent }: ApiRecipeStepArgument);
|
|
34
|
+
}
|
|
35
|
+
export default ApiRecipe;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
2
|
+
export class ApiRecipe {
|
|
3
|
+
constructor({ id, projectFirebaseId, name, isEnabled, modeledCode, steps }) {
|
|
4
|
+
addReadOnlyPropertiesToModel(this, { id, projectFirebaseId });
|
|
5
|
+
this.name = name;
|
|
6
|
+
this.isEnabled = isEnabled || false;
|
|
7
|
+
this.modeledCode = modeledCode;
|
|
8
|
+
this.steps = steps || [];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class ApiRecipeStep {
|
|
12
|
+
constructor({ id, recipeId, globalRecipeStepId, ordinal, name, code, partialProgressPercent }) {
|
|
13
|
+
addReadOnlyPropertiesToModel(this, { id, recipeId, globalRecipeStepId });
|
|
14
|
+
this.ordinal = ordinal;
|
|
15
|
+
this.name = name || null;
|
|
16
|
+
this.code = code || null;
|
|
17
|
+
this.partialProgressPercent = partialProgressPercent || 0.0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export default ApiRecipe;
|
|
21
|
+
//# sourceMappingURL=api_recipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_recipe.js","sourceRoot":"","sources":["../../../../source/models/api/api_recipe.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAU1F,MAAM,OAAO,SAAS;IAQlB,YAAY,EAAC,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAoB;QACvF,4BAA4B,CAAC,IAAI,EAAE,EAAC,EAAE,EAAE,iBAAiB,EAAC,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,EAAE,CAAC;IAC7B,CAAC;CACJ;AAUD,MAAM,OAAO,aAAa;IAStB,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAyB;QAChH,4BAA4B,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC;QACzB,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,IAAI,GAAG,CAAC;IAChE,CAAC;CACJ;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -27,6 +27,7 @@ export { ApiProjectReportVersion } from "./api_project_report_version";
|
|
|
27
27
|
export { ApiProjectSummary, ApiProjectArea, ApiProjectAreaProgress } from "./api_project_summary";
|
|
28
28
|
export { ApiWorkPackage } from "./api_work_package";
|
|
29
29
|
export { ApiProjectListing } from "./api_project_listing";
|
|
30
|
+
export { ApiRecipe, ApiRecipeStep, ApiRecipeArgument, ApiRecipeStepArgument } from "./api_recipe";
|
|
30
31
|
export { ApiPhotoAreaPurposeType, ApiScanDatasetPurposeType, ApiFloorPurposeType, ApiPurposeType, ApiProjectPurposeType, ApiScanDatasetTypeKeys, ApiPurposeTypeKeys, ApiFloorTypeKeys, ApiProjectTypeKeys, ApiPhotoAreaTypeKeys, ApiFloorTypeMap, ApiPhotoAreaTypeMap, ApiProjectTypeMap, ApiScanDatasetTypeMap, isApiPurposeType, isApiFloorPurposeType, isApiPhotoAreaPurposeType, isApiScanDatasetPurposeType } from "./api_purpose_type";
|
|
31
32
|
export { ApiRunningProcess, ApiRunningProcessArgs } from "./api_running_process";
|
|
32
33
|
export { ApiScanDataset, ApiScanDatasetArgument } from "./api_scan_dataset";
|
|
@@ -26,6 +26,7 @@ export { ApiProjectReportVersion } from "./api_project_report_version";
|
|
|
26
26
|
export { ApiProjectSummary, ApiProjectArea, ApiProjectAreaProgress } from "./api_project_summary";
|
|
27
27
|
export { ApiWorkPackage } from "./api_work_package";
|
|
28
28
|
export { ApiProjectListing } from "./api_project_listing";
|
|
29
|
+
export { ApiRecipe, ApiRecipeStep } from "./api_recipe";
|
|
29
30
|
export { ApiPhotoAreaPurposeType, ApiScanDatasetPurposeType, ApiFloorPurposeType, ApiProjectPurposeType, isApiPurposeType, isApiFloorPurposeType, isApiPhotoAreaPurposeType, isApiScanDatasetPurposeType } from "./api_purpose_type";
|
|
30
31
|
export { ApiRunningProcess } from "./api_running_process";
|
|
31
32
|
export { ApiScan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AC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAA8B,uBAAuB,EAAC,MAAM,6BAA6B,CAAC"}
|
package/package.json
CHANGED
package/source/api/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ import UserApi from "./user_api";
|
|
|
14
14
|
import IntegrationsApi from "./integrations_api";
|
|
15
15
|
import ProjectSummaryApi from "./project_summary_api";
|
|
16
16
|
import GroupApi from "./group_api";
|
|
17
|
+
import RecipeApi from "./recipe_api";
|
|
17
18
|
|
|
18
19
|
export {
|
|
19
20
|
AuthApi,
|
|
@@ -26,6 +27,7 @@ export {
|
|
|
26
27
|
PhotoAreaApi,
|
|
27
28
|
PipelineApi,
|
|
28
29
|
ProjectApi,
|
|
30
|
+
RecipeApi,
|
|
29
31
|
ScanDatasetApi,
|
|
30
32
|
WebGatewayApi,
|
|
31
33
|
WebRpcApi,
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {User} from "../utilities/get_authorization_headers";
|
|
2
|
+
import Http from "../utilities/http";
|
|
3
|
+
import {AssociationIds} from "../models";
|
|
4
|
+
import makeErrorsPretty from "../utilities/make_errors_pretty";
|
|
5
|
+
import ApiRecipe from "../models/api/api_recipe";
|
|
6
|
+
|
|
7
|
+
export default class RecipeApi {
|
|
8
|
+
static getGlobalRecipe({ recipeId }: AssociationIds, user: User, ): Promise<ApiRecipe|null> {
|
|
9
|
+
let url = `${Http.baseUrl()}/recipes/${recipeId}`;
|
|
10
|
+
return Http.get(url, user) as unknown as Promise<ApiRecipe|null>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static listGlobalRecipes(user: User, ): Promise<ApiRecipe[]> {
|
|
14
|
+
let url = `${Http.baseUrl()}/recipes`;
|
|
15
|
+
return Http.get(url, user) as unknown as Promise<ApiRecipe[]>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static createGlobalRecipe(apiRecipe: ApiRecipe, user: User, ): Promise<ApiRecipe> {
|
|
19
|
+
let url = `${Http.baseUrl()}/recipes`;
|
|
20
|
+
return Http.post(url, user, apiRecipe) as unknown as Promise<ApiRecipe>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static updateGlobalRecipe({ recipeId }: AssociationIds, apiRecipe: ApiRecipe, user: User, ): Promise<ApiRecipe> {
|
|
24
|
+
let url = `${Http.baseUrl()}/recipes/${recipeId}`;
|
|
25
|
+
return Http.put(url, user, apiRecipe) as unknown as Promise<ApiRecipe>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static deleteGlobalRecipe({ recipeId }: AssociationIds, user: User, ): Promise<void> {
|
|
29
|
+
let url = `${Http.baseUrl()}/recipes/${recipeId}`;
|
|
30
|
+
return Http.delete(url, user) as unknown as Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static getProjectRecipe({ projectId, recipeId }: AssociationIds, user: User, ): Promise<ApiRecipe|null> {
|
|
34
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes/${recipeId}`;
|
|
35
|
+
return Http.get(url, user) as unknown as Promise<ApiRecipe|null>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static listProjectRecipes({ projectId }: AssociationIds, user: User, ): Promise<ApiRecipe[]> {
|
|
39
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes`;
|
|
40
|
+
return Http.get(url, user) as unknown as Promise<ApiRecipe[]>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static createProjectRecipe({ projectId }: AssociationIds, apiRecipe: ApiRecipe, user: User, ): Promise<ApiRecipe> {
|
|
44
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes`;
|
|
45
|
+
return Http.post(url, user, apiRecipe) as unknown as Promise<ApiRecipe>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static updateProjectRecipe({ projectId, recipeId }: AssociationIds, apiRecipe: ApiRecipe, user: User, ): Promise<ApiRecipe> {
|
|
49
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes/${recipeId}`;
|
|
50
|
+
return Http.put(url, user, apiRecipe) as unknown as Promise<ApiRecipe>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static deleteProjectRecipe({ projectId, recipeId }: AssociationIds, user: User, ): Promise<void> {
|
|
54
|
+
let url = `${Http.baseUrl()}/projects/${projectId}/recipes/${recipeId}`;
|
|
55
|
+
return Http.delete(url, user) as unknown as Promise<void>;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
makeErrorsPretty(RecipeApi);
|
package/source/avvir_api.ts
CHANGED
|
@@ -13,7 +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 {GroupApi, WebRpcApi} from "./api";
|
|
16
|
+
import { GroupApi, WebRpcApi, RecipeApi} from "./api";
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
19
|
auth: AuthApi,
|
|
@@ -32,5 +32,6 @@ export default {
|
|
|
32
32
|
webRpcApi: WebRpcApi,
|
|
33
33
|
user: UserApi,
|
|
34
34
|
projectSummary: ProjectSummaryApi,
|
|
35
|
-
groups: GroupApi
|
|
35
|
+
groups: GroupApi,
|
|
36
|
+
recipes: RecipeApi
|
|
36
37
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Modify } from "./type_aliases";
|
|
2
|
+
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
|
+
|
|
4
|
+
export interface ApiRecipeArgument extends Partial<Modify<ApiRecipe, {
|
|
5
|
+
name?: string | null
|
|
6
|
+
isEnabled?: boolean | null
|
|
7
|
+
modeledCode?: string | null
|
|
8
|
+
steps?: ApiRecipeStep[] | null
|
|
9
|
+
}>> {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class ApiRecipe {
|
|
13
|
+
readonly id: number
|
|
14
|
+
readonly projectFirebaseId?: string
|
|
15
|
+
name: string
|
|
16
|
+
isEnabled: boolean
|
|
17
|
+
modeledCode?: string
|
|
18
|
+
steps?: ApiRecipeStep[]
|
|
19
|
+
|
|
20
|
+
constructor({id, projectFirebaseId, name, isEnabled, modeledCode, steps}: ApiRecipeArgument) {
|
|
21
|
+
addReadOnlyPropertiesToModel(this, {id, projectFirebaseId});
|
|
22
|
+
this.name = name;
|
|
23
|
+
this.isEnabled = isEnabled || false;
|
|
24
|
+
this.modeledCode = modeledCode;
|
|
25
|
+
this.steps = steps || [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ApiRecipeStepArgument extends Partial<Modify<ApiRecipeStep, {
|
|
30
|
+
ordinal: number
|
|
31
|
+
name?: string | null
|
|
32
|
+
code?: string | null
|
|
33
|
+
partialProgressPercent?: number | null
|
|
34
|
+
}>> {
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class ApiRecipeStep {
|
|
38
|
+
readonly id: number
|
|
39
|
+
readonly recipeId: number
|
|
40
|
+
readonly globalRecipeStepId: number
|
|
41
|
+
name: string
|
|
42
|
+
code: string
|
|
43
|
+
ordinal: number
|
|
44
|
+
partialProgressPercent: number
|
|
45
|
+
|
|
46
|
+
constructor({ id, recipeId, globalRecipeStepId, ordinal, name, code, partialProgressPercent }: ApiRecipeStepArgument) {
|
|
47
|
+
addReadOnlyPropertiesToModel(this, { id, recipeId, globalRecipeStepId });
|
|
48
|
+
this.ordinal = ordinal;
|
|
49
|
+
this.name = name || null;
|
|
50
|
+
this.code = code || null;
|
|
51
|
+
this.partialProgressPercent = partialProgressPercent || 0.0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default ApiRecipe;
|
|
@@ -30,6 +30,8 @@ export {ApiProjectSummary, ApiProjectArea, ApiProjectAreaProgress} from "./api_p
|
|
|
30
30
|
export {ApiWorkPackage} from "./api_work_package"
|
|
31
31
|
export {ApiProjectListing} from "./api_project_listing";
|
|
32
32
|
|
|
33
|
+
export { ApiRecipe, ApiRecipeStep, ApiRecipeArgument, ApiRecipeStepArgument} from "./api_recipe";
|
|
34
|
+
|
|
33
35
|
export {
|
|
34
36
|
ApiPhotoAreaPurposeType,
|
|
35
37
|
ApiScanDatasetPurposeType,
|
|
@@ -18,7 +18,8 @@ export type AssociationIds = {
|
|
|
18
18
|
photoLocationId?: number,
|
|
19
19
|
viewId?: number,
|
|
20
20
|
wbsCode?: string
|
|
21
|
-
groupId?: number
|
|
21
|
+
groupId?: number,
|
|
22
|
+
recipeId?: number
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T;
|