@iblai/data-layer 1.1.13 → 1.1.14
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.d.ts +10 -10
- 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.js
CHANGED
|
@@ -39171,6 +39171,7 @@ const buildEndpointFromService = (service, serviceFn) => {
|
|
|
39171
39171
|
try {
|
|
39172
39172
|
OpenAPI.BASE = getServiceUrl(service);
|
|
39173
39173
|
OpenAPI.HEADERS = await getHeaders(service);
|
|
39174
|
+
OpenAPI.CREDENTIALS = 'omit';
|
|
39174
39175
|
// API request initiated
|
|
39175
39176
|
const data = await serviceFn(args);
|
|
39176
39177
|
// API response received
|
|
@@ -39206,6 +39207,7 @@ const isErrorObject = (data) => {
|
|
|
39206
39207
|
const baseQuery = (service, jsonContentType = true, contentType, skipAuth = false) => query.fetchBaseQuery({
|
|
39207
39208
|
baseUrl: getServiceUrl(service),
|
|
39208
39209
|
timeout: 30000, // 30 second timeout
|
|
39210
|
+
credentials: 'omit',
|
|
39209
39211
|
prepareHeaders: async (headers) => {
|
|
39210
39212
|
// Only add auth headers if skipAuth is false
|
|
39211
39213
|
if (!skipAuth) {
|
|
@@ -39319,6 +39321,7 @@ const buildEndpointFromServiceLegacy = (service, serviceFn) => {
|
|
|
39319
39321
|
try {
|
|
39320
39322
|
OpenAPI.BASE = getServiceUrl(service);
|
|
39321
39323
|
OpenAPI.HEADERS = await getHeaders(service);
|
|
39324
|
+
OpenAPI.CREDENTIALS = 'omit';
|
|
39322
39325
|
const data = await serviceFn(...args);
|
|
39323
39326
|
return { data };
|
|
39324
39327
|
}
|
|
@@ -39869,14 +39872,12 @@ const authApiSlice = react.createApi({
|
|
|
39869
39872
|
isJson: false,
|
|
39870
39873
|
method: 'POST',
|
|
39871
39874
|
body: formData,
|
|
39872
|
-
credentials: 'include',
|
|
39873
39875
|
}),
|
|
39874
39876
|
}),
|
|
39875
39877
|
refreshJwtToken: builder.query({
|
|
39876
39878
|
query: () => ({
|
|
39877
39879
|
url: AUTH_ENDPOINTS.REFRESH_JWT_TOKEN.path(),
|
|
39878
39880
|
service: AUTH_ENDPOINTS.REFRESH_JWT_TOKEN.service,
|
|
39879
|
-
credentials: 'include',
|
|
39880
39881
|
}),
|
|
39881
39882
|
}),
|
|
39882
39883
|
}),
|
|
@@ -39911,10 +39912,10 @@ const tenantApiSlice = react.createApi({
|
|
|
39911
39912
|
try {
|
|
39912
39913
|
const authHeaders = await getHeaders(exports.SERVICES.LMS);
|
|
39913
39914
|
const response = await fetch(`${Config.lmsUrl}${TENANTS_ENDPOINTS.GET_USER_TENANTS.path()}`, {
|
|
39914
|
-
credentials: 'include',
|
|
39915
39915
|
headers: {
|
|
39916
39916
|
...authHeaders,
|
|
39917
39917
|
},
|
|
39918
|
+
credentials: 'omit',
|
|
39918
39919
|
});
|
|
39919
39920
|
if (!response.ok) {
|
|
39920
39921
|
return {
|
|
@@ -40003,6 +40004,7 @@ const platformApiSlice = react.createApi({
|
|
|
40003
40004
|
const response = await fetch(url, {
|
|
40004
40005
|
method: 'GET',
|
|
40005
40006
|
headers: OpenAPI.HEADERS,
|
|
40007
|
+
credentials: 'omit',
|
|
40006
40008
|
});
|
|
40007
40009
|
if (!response.ok) {
|
|
40008
40010
|
const error = new Error('Failed to fetch platform users');
|
|
@@ -40037,6 +40039,7 @@ const platformApiSlice = react.createApi({
|
|
|
40037
40039
|
const response = await fetch(url, {
|
|
40038
40040
|
method: 'GET',
|
|
40039
40041
|
headers: OpenAPI.HEADERS,
|
|
40042
|
+
credentials: 'omit',
|
|
40040
40043
|
});
|
|
40041
40044
|
if (!response.ok) {
|
|
40042
40045
|
const error = new Error('Failed to fetch team details');
|
|
@@ -40058,6 +40061,7 @@ const platformApiSlice = react.createApi({
|
|
|
40058
40061
|
'Content-Type': 'application/json',
|
|
40059
40062
|
},
|
|
40060
40063
|
body: JSON.stringify(args.requestBody),
|
|
40064
|
+
credentials: 'omit',
|
|
40061
40065
|
});
|
|
40062
40066
|
if (!response.ok) {
|
|
40063
40067
|
const error = new Error('Failed to update platform user role with policies');
|
|
@@ -40286,6 +40290,7 @@ const coreApiSlice = react.createApi({
|
|
|
40286
40290
|
const response = await fetch(url, {
|
|
40287
40291
|
method: 'GET',
|
|
40288
40292
|
headers: OpenAPI.HEADERS,
|
|
40293
|
+
credentials: 'omit',
|
|
40289
40294
|
});
|
|
40290
40295
|
if (!response.ok) {
|
|
40291
40296
|
const error = new Error('Failed to fetch RBAC group details');
|
|
@@ -40322,6 +40327,7 @@ const coreApiSlice = react.createApi({
|
|
|
40322
40327
|
const response = await fetch(url, {
|
|
40323
40328
|
method: 'GET',
|
|
40324
40329
|
headers: OpenAPI.HEADERS,
|
|
40330
|
+
credentials: 'omit',
|
|
40325
40331
|
});
|
|
40326
40332
|
if (!response.ok) {
|
|
40327
40333
|
const error = new Error('Failed to fetch RBAC policy details');
|
|
@@ -40362,6 +40368,7 @@ const coreApiSlice = react.createApi({
|
|
|
40362
40368
|
const response = await fetch(url, {
|
|
40363
40369
|
method: 'GET',
|
|
40364
40370
|
headers: OpenAPI.HEADERS,
|
|
40371
|
+
credentials: 'omit',
|
|
40365
40372
|
});
|
|
40366
40373
|
if (!response.ok) {
|
|
40367
40374
|
const error = new Error('Failed to fetch RBAC role details');
|
|
@@ -40478,6 +40485,7 @@ const credentialsApiSlice = react.createApi({
|
|
|
40478
40485
|
const response = await fetch(url, {
|
|
40479
40486
|
method: 'GET',
|
|
40480
40487
|
headers: OpenAPI.HEADERS,
|
|
40488
|
+
credentials: 'omit',
|
|
40481
40489
|
});
|
|
40482
40490
|
if (!response.ok) {
|
|
40483
40491
|
const error = new Error('Failed to fetch credentials');
|
|
@@ -41466,6 +41474,7 @@ const catalogApiSlice = react.createApi({
|
|
|
41466
41474
|
const response = await fetch(url, {
|
|
41467
41475
|
method: 'GET',
|
|
41468
41476
|
headers: OpenAPI.HEADERS,
|
|
41477
|
+
credentials: 'omit',
|
|
41469
41478
|
});
|
|
41470
41479
|
if (!response.ok) {
|
|
41471
41480
|
const error = new Error('Failed to fetch program invitations');
|
|
@@ -41569,6 +41578,7 @@ const performCareerRequest = async (path, options = {}) => {
|
|
|
41569
41578
|
method: (_b = options.method) !== null && _b !== void 0 ? _b : 'GET',
|
|
41570
41579
|
body: (_c = options.body) !== null && _c !== void 0 ? _c : null,
|
|
41571
41580
|
headers,
|
|
41581
|
+
credentials: 'omit',
|
|
41572
41582
|
});
|
|
41573
41583
|
if (!response.ok) {
|
|
41574
41584
|
const errorData = await parseResponse(response);
|