mitra-interactions-sdk 1.0.68 → 1.0.69
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/README.md +779 -777
- package/dist/index.d.mts +40 -25
- package/dist/index.d.ts +40 -25
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +52 -52
package/dist/index.mjs
CHANGED
|
@@ -824,11 +824,13 @@ async function deleteProfileMitra(options) {
|
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
async function setProfileUsersMitra(options) {
|
|
827
|
-
|
|
827
|
+
const body = {
|
|
828
828
|
projectId: resolveProjectId2(options.projectId),
|
|
829
|
-
profileId: options.profileId
|
|
830
|
-
|
|
831
|
-
|
|
829
|
+
profileId: options.profileId
|
|
830
|
+
};
|
|
831
|
+
if (options.userIds !== void 0) body.userIds = options.userIds;
|
|
832
|
+
if (options.emails !== void 0) body.emails = options.emails;
|
|
833
|
+
return http.post("/interactions/profiles/users", body);
|
|
832
834
|
}
|
|
833
835
|
async function setProfileSelectTablesMitra(options) {
|
|
834
836
|
const body = {
|
|
@@ -2186,19 +2188,21 @@ function createMitraInstance(initialConfig) {
|
|
|
2186
2188
|
return request("DELETE", "/interactions/profiles", { body: { projectId: resolveProjectId4(options.projectId), profileId: options.profileId } });
|
|
2187
2189
|
},
|
|
2188
2190
|
async setProfileUsers(options) {
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2191
|
+
const body = { projectId: resolveProjectId4(options.projectId), profileId: options.profileId };
|
|
2192
|
+
if (options.userIds !== void 0) body.userIds = options.userIds;
|
|
2193
|
+
if (options.emails !== void 0) body.emails = options.emails;
|
|
2194
|
+
return request("POST", "/interactions/profiles/users", { body });
|
|
2192
2195
|
},
|
|
2196
|
+
// jdbcConnectionConfigId era descartado nos dois abaixo (as funções soltas repassavam).
|
|
2193
2197
|
async setProfileSelectTables(options) {
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
});
|
|
2198
|
+
const body = { projectId: resolveProjectId4(options.projectId), profileId: options.profileId, tables: options.tables };
|
|
2199
|
+
if (options.jdbcConnectionConfigId !== void 0) body.jdbcConnectionConfigId = options.jdbcConnectionConfigId;
|
|
2200
|
+
return request("POST", "/interactions/profiles/selectTables", { body });
|
|
2197
2201
|
},
|
|
2198
2202
|
async setProfileDmlTables(options) {
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
});
|
|
2203
|
+
const body = { projectId: resolveProjectId4(options.projectId), profileId: options.profileId, tables: options.tables };
|
|
2204
|
+
if (options.jdbcConnectionConfigId !== void 0) body.jdbcConnectionConfigId = options.jdbcConnectionConfigId;
|
|
2205
|
+
return request("POST", "/interactions/profiles/dmlTables", { body });
|
|
2202
2206
|
},
|
|
2203
2207
|
async setProfileActions(options) {
|
|
2204
2208
|
return request("POST", "/interactions/profiles/actions", {
|