@trackunit/iris-app-runtime-core 0.3.136 → 0.3.138
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/index.cjs.js +1 -5
- package/index.esm.js +1 -5
- package/package.json +1 -1
- package/src/CurrentUserRuntime.d.ts +0 -2
package/index.cjs.js
CHANGED
|
@@ -124,10 +124,6 @@ const CurrentUserRuntime = {
|
|
|
124
124
|
const api = yield getHostConnector();
|
|
125
125
|
return api.getCurrentUserContext();
|
|
126
126
|
}),
|
|
127
|
-
getCurrentUserRole: (userIds) => __awaiter(void 0, void 0, void 0, function* () {
|
|
128
|
-
const api = yield getHostConnector();
|
|
129
|
-
return api.getCurrentUserRole(userIds);
|
|
130
|
-
}),
|
|
131
127
|
};
|
|
132
128
|
|
|
133
129
|
/**
|
|
@@ -171,7 +167,7 @@ const getCustomFieldValueToSaveFromRawValue = (customFieldDefinition, newValue)
|
|
|
171
167
|
}
|
|
172
168
|
}
|
|
173
169
|
return {
|
|
174
|
-
stringArrayValue: stringArrayValue,
|
|
170
|
+
stringArrayValue: stringArrayValue.length ? stringArrayValue : null,
|
|
175
171
|
type: "DROPDOWN",
|
|
176
172
|
};
|
|
177
173
|
}
|
package/index.esm.js
CHANGED
|
@@ -120,10 +120,6 @@ const CurrentUserRuntime = {
|
|
|
120
120
|
const api = yield getHostConnector();
|
|
121
121
|
return api.getCurrentUserContext();
|
|
122
122
|
}),
|
|
123
|
-
getCurrentUserRole: (userIds) => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
|
-
const api = yield getHostConnector();
|
|
125
|
-
return api.getCurrentUserRole(userIds);
|
|
126
|
-
}),
|
|
127
123
|
};
|
|
128
124
|
|
|
129
125
|
/**
|
|
@@ -167,7 +163,7 @@ const getCustomFieldValueToSaveFromRawValue = (customFieldDefinition, newValue)
|
|
|
167
163
|
}
|
|
168
164
|
}
|
|
169
165
|
return {
|
|
170
|
-
stringArrayValue: stringArrayValue,
|
|
166
|
+
stringArrayValue: stringArrayValue.length ? stringArrayValue : null,
|
|
171
167
|
type: "DROPDOWN",
|
|
172
168
|
};
|
|
173
169
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { CurrentUserRole } from "@trackunit/iris-app-runtime-core-api";
|
|
2
1
|
import { ICurrentUserContext } from "@trackunit/react-core-contexts-api";
|
|
3
2
|
export interface ICurrentUserRuntime {
|
|
4
3
|
getCurrentUserContext: () => Promise<ICurrentUserContext>;
|
|
5
|
-
getCurrentUserRole: (userIds: string | string[]) => Promise<CurrentUserRole | undefined>;
|
|
6
4
|
}
|
|
7
5
|
export declare const CurrentUserRuntime: ICurrentUserRuntime;
|