@intuitionrobotics/google-services 0.47.24 → 0.47.25
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.
|
@@ -98,10 +98,10 @@ class DialogFlowApi extends ts_common_1.Logger {
|
|
|
98
98
|
return (yield this.dialogFlowApi.projects.agent.entityTypes.entities.batchCreate(request)).data;
|
|
99
99
|
}),
|
|
100
100
|
createEntityType: (agentProjectId, entityName) => __awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
var
|
|
101
|
+
var _a, _b;
|
|
102
102
|
const pathString = `projects/${agentProjectId}/agent`;
|
|
103
103
|
const entityTypeList = yield this.dialogFlowApi.projects.agent.entityTypes.list({ parent: pathString });
|
|
104
|
-
const foundType = (
|
|
104
|
+
const foundType = (_b = (_a = entityTypeList.data) === null || _a === void 0 ? void 0 : _a.entityTypes) === null || _b === void 0 ? void 0 : _b.find(entityType => entityType.displayName === entityName);
|
|
105
105
|
if (foundType)
|
|
106
106
|
return foundType.name;
|
|
107
107
|
const request = {
|