@copilotz/admin 0.3.9 → 0.6.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/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -265,16 +265,17 @@ async function fetchThreadMessages(threadId, messageOptions, options) {
|
|
|
265
265
|
}
|
|
266
266
|
async function fetchParticipantDetail(participantId, options) {
|
|
267
267
|
return await fetchAdminJson(
|
|
268
|
-
`/v1/
|
|
269
|
-
{},
|
|
268
|
+
`/v1/collections/participant/${encodeURIComponent(participantId)}`,
|
|
269
|
+
{ namespace: "global" },
|
|
270
270
|
options
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
async function updateParticipant(participantId, data, options) {
|
|
274
274
|
const url = new URL(
|
|
275
|
-
`${resolveBaseUrl(options?.baseUrl)}/v1/
|
|
275
|
+
`${resolveBaseUrl(options?.baseUrl)}/v1/collections/participant/${encodeURIComponent(participantId)}`,
|
|
276
276
|
window.location.origin
|
|
277
277
|
);
|
|
278
|
+
url.searchParams.set("namespace", "global");
|
|
278
279
|
const response = await fetch(url.toString(), {
|
|
279
280
|
method: "PUT",
|
|
280
281
|
headers: await withAuthHeaders(
|