@iblai/data-layer 1.1.13 → 1.1.15
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.esm.js +13 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -39169,6 +39169,7 @@ const buildEndpointFromService = (service, serviceFn) => {
|
|
|
39169
39169
|
try {
|
|
39170
39170
|
OpenAPI.BASE = getServiceUrl(service);
|
|
39171
39171
|
OpenAPI.HEADERS = await getHeaders(service);
|
|
39172
|
+
OpenAPI.CREDENTIALS = 'omit';
|
|
39172
39173
|
// API request initiated
|
|
39173
39174
|
const data = await serviceFn(args);
|
|
39174
39175
|
// API response received
|
|
@@ -39204,6 +39205,7 @@ const isErrorObject = (data) => {
|
|
|
39204
39205
|
const baseQuery = (service, jsonContentType = true, contentType, skipAuth = false) => fetchBaseQuery({
|
|
39205
39206
|
baseUrl: getServiceUrl(service),
|
|
39206
39207
|
timeout: 30000, // 30 second timeout
|
|
39208
|
+
credentials: 'omit',
|
|
39207
39209
|
prepareHeaders: async (headers) => {
|
|
39208
39210
|
// Only add auth headers if skipAuth is false
|
|
39209
39211
|
if (!skipAuth) {
|
|
@@ -39317,6 +39319,7 @@ const buildEndpointFromServiceLegacy = (service, serviceFn) => {
|
|
|
39317
39319
|
try {
|
|
39318
39320
|
OpenAPI.BASE = getServiceUrl(service);
|
|
39319
39321
|
OpenAPI.HEADERS = await getHeaders(service);
|
|
39322
|
+
OpenAPI.CREDENTIALS = 'omit';
|
|
39320
39323
|
const data = await serviceFn(...args);
|
|
39321
39324
|
return { data };
|
|
39322
39325
|
}
|
|
@@ -39867,14 +39870,12 @@ const authApiSlice = createApi({
|
|
|
39867
39870
|
isJson: false,
|
|
39868
39871
|
method: 'POST',
|
|
39869
39872
|
body: formData,
|
|
39870
|
-
credentials: 'include',
|
|
39871
39873
|
}),
|
|
39872
39874
|
}),
|
|
39873
39875
|
refreshJwtToken: builder.query({
|
|
39874
39876
|
query: () => ({
|
|
39875
39877
|
url: AUTH_ENDPOINTS.REFRESH_JWT_TOKEN.path(),
|
|
39876
39878
|
service: AUTH_ENDPOINTS.REFRESH_JWT_TOKEN.service,
|
|
39877
|
-
credentials: 'include',
|
|
39878
39879
|
}),
|
|
39879
39880
|
}),
|
|
39880
39881
|
}),
|
|
@@ -39909,10 +39910,10 @@ const tenantApiSlice = createApi({
|
|
|
39909
39910
|
try {
|
|
39910
39911
|
const authHeaders = await getHeaders(SERVICES.LMS);
|
|
39911
39912
|
const response = await fetch(`${Config.lmsUrl}${TENANTS_ENDPOINTS.GET_USER_TENANTS.path()}`, {
|
|
39912
|
-
credentials: 'include',
|
|
39913
39913
|
headers: {
|
|
39914
39914
|
...authHeaders,
|
|
39915
39915
|
},
|
|
39916
|
+
credentials: 'omit',
|
|
39916
39917
|
});
|
|
39917
39918
|
if (!response.ok) {
|
|
39918
39919
|
return {
|
|
@@ -40001,6 +40002,7 @@ const platformApiSlice = createApi({
|
|
|
40001
40002
|
const response = await fetch(url, {
|
|
40002
40003
|
method: 'GET',
|
|
40003
40004
|
headers: OpenAPI.HEADERS,
|
|
40005
|
+
credentials: 'omit',
|
|
40004
40006
|
});
|
|
40005
40007
|
if (!response.ok) {
|
|
40006
40008
|
const error = new Error('Failed to fetch platform users');
|
|
@@ -40035,6 +40037,7 @@ const platformApiSlice = createApi({
|
|
|
40035
40037
|
const response = await fetch(url, {
|
|
40036
40038
|
method: 'GET',
|
|
40037
40039
|
headers: OpenAPI.HEADERS,
|
|
40040
|
+
credentials: 'omit',
|
|
40038
40041
|
});
|
|
40039
40042
|
if (!response.ok) {
|
|
40040
40043
|
const error = new Error('Failed to fetch team details');
|
|
@@ -40056,6 +40059,7 @@ const platformApiSlice = createApi({
|
|
|
40056
40059
|
'Content-Type': 'application/json',
|
|
40057
40060
|
},
|
|
40058
40061
|
body: JSON.stringify(args.requestBody),
|
|
40062
|
+
credentials: 'omit',
|
|
40059
40063
|
});
|
|
40060
40064
|
if (!response.ok) {
|
|
40061
40065
|
const error = new Error('Failed to update platform user role with policies');
|
|
@@ -40284,6 +40288,7 @@ const coreApiSlice = createApi({
|
|
|
40284
40288
|
const response = await fetch(url, {
|
|
40285
40289
|
method: 'GET',
|
|
40286
40290
|
headers: OpenAPI.HEADERS,
|
|
40291
|
+
credentials: 'omit',
|
|
40287
40292
|
});
|
|
40288
40293
|
if (!response.ok) {
|
|
40289
40294
|
const error = new Error('Failed to fetch RBAC group details');
|
|
@@ -40320,6 +40325,7 @@ const coreApiSlice = createApi({
|
|
|
40320
40325
|
const response = await fetch(url, {
|
|
40321
40326
|
method: 'GET',
|
|
40322
40327
|
headers: OpenAPI.HEADERS,
|
|
40328
|
+
credentials: 'omit',
|
|
40323
40329
|
});
|
|
40324
40330
|
if (!response.ok) {
|
|
40325
40331
|
const error = new Error('Failed to fetch RBAC policy details');
|
|
@@ -40360,6 +40366,7 @@ const coreApiSlice = createApi({
|
|
|
40360
40366
|
const response = await fetch(url, {
|
|
40361
40367
|
method: 'GET',
|
|
40362
40368
|
headers: OpenAPI.HEADERS,
|
|
40369
|
+
credentials: 'omit',
|
|
40363
40370
|
});
|
|
40364
40371
|
if (!response.ok) {
|
|
40365
40372
|
const error = new Error('Failed to fetch RBAC role details');
|
|
@@ -40476,6 +40483,7 @@ const credentialsApiSlice = createApi({
|
|
|
40476
40483
|
const response = await fetch(url, {
|
|
40477
40484
|
method: 'GET',
|
|
40478
40485
|
headers: OpenAPI.HEADERS,
|
|
40486
|
+
credentials: 'omit',
|
|
40479
40487
|
});
|
|
40480
40488
|
if (!response.ok) {
|
|
40481
40489
|
const error = new Error('Failed to fetch credentials');
|
|
@@ -41464,6 +41472,7 @@ const catalogApiSlice = createApi({
|
|
|
41464
41472
|
const response = await fetch(url, {
|
|
41465
41473
|
method: 'GET',
|
|
41466
41474
|
headers: OpenAPI.HEADERS,
|
|
41475
|
+
credentials: 'omit',
|
|
41467
41476
|
});
|
|
41468
41477
|
if (!response.ok) {
|
|
41469
41478
|
const error = new Error('Failed to fetch program invitations');
|
|
@@ -41567,6 +41576,7 @@ const performCareerRequest = async (path, options = {}) => {
|
|
|
41567
41576
|
method: (_b = options.method) !== null && _b !== void 0 ? _b : 'GET',
|
|
41568
41577
|
body: (_c = options.body) !== null && _c !== void 0 ? _c : null,
|
|
41569
41578
|
headers,
|
|
41579
|
+
credentials: 'omit',
|
|
41570
41580
|
});
|
|
41571
41581
|
if (!response.ok) {
|
|
41572
41582
|
const errorData = await parseResponse(response);
|