aril 1.2.53 → 1.2.54
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/esm2022/http/src/serviceBase.mjs +18 -2
- package/esm2022/theme/layout/service/record-summary.service.mjs +14 -2
- package/fesm2022/aril-http.mjs +17 -1
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +13 -1
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/package.json +182 -182
- package/theme/layout/app/general-search/general-search.component.d.ts +1 -1
- package/theme/layout/service/record-summary.service.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-http.mjs","sources":["../../projects/aril/http/lib/enums.ts","../../projects/aril/http/lib/interfaces.ts","../../projects/aril/http/src/httpBackend.ts","../../projects/aril/http/src/httpClient.ts","../../projects/aril/http/src/pathParam.ts","../../projects/aril/http/src/serviceRequest.ts","../../projects/aril/http/src/serviceStateMethods.ts","../../projects/aril/http/src/serviceBase.ts","../../projects/aril/http/src/serviceMockBase.ts","../../projects/aril/http/src/interceptor/accept-language.interceptor.ts","../../projects/aril/http/index.ts","../../projects/aril/http/aril-http.ts"],"sourcesContent":["export enum HTTPMethods {\n\tGET = 'GET',\n\tGETBYPARAMS = 'GETBYPARAMS',\n\tGETBYDYNAMICPATH = 'GETBYDYNAMICPATH',\n\tGETBYPARAMSANDDYNAMICPATH = 'GETBYPARAMSANDDYNAMICPATH',\n\tPOST = 'POST',\n\tPOSTBYPARAMS = 'POSTBYPARAMS',\n\tPOSTBYDYNAMICPATH = 'POSTBYDYNAMICPATH',\n\tPUT = 'PUT',\n\tPUTBYPARAMS = 'PUTBYPARAMS',\n\tPUTBYDYNAMICPATH = 'PUTBYDYNAMICPATH',\n\tDELETE = 'DELETE',\n\tDELETEBYPARAMS = 'DELETEBYPARAMS',\n\tDELETEBYDYNAMICPATH = 'DELETEBYDYNAMICPATH'\n}\nexport enum ProxyTypes {\n\tNative,\n\tServerSide,\n\tClientSide\n}\nexport enum HTTPStatusCodes {\n\tOK = 200,\n\tCREATED = 201,\n\tACCEPTED = 202,\n\tNO_CONTENT = 204,\n\tBAD_REQUEST = 400,\n\tUNAUTHORIZED = 401,\n\tFORBIDDEN = 403,\n\tNOT_FOUND = 404,\n\tINTERNAL_SERVER_ERROR = 500\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/* eslint-disable @typescript-eslint/ban-types */\nimport { HttpErrorResponse } from '@angular/common/http';\n\nimport { ProxyTypes } from './enums';\n\nexport interface ServiceCallStates {\n\tserviceCalled: boolean;\n\twaitingForResponse: boolean;\n\tresponseIsRecieved: boolean;\n\tserviceCallFailed: boolean;\n}\n\nexport type ServiceCallStateMap<T> = {\n\t[K in keyof T]?: T[K] extends Function ? ServiceCallStates : never;\n};\n\nexport class ErrorResponse {\n\terror: HttpErrorResponse | undefined;\n\n\tconstructor(err: HttpErrorResponse | undefined) {\n\t\tthis.error = err;\n\t}\n}\n\nexport class ServiceResponse<T> extends ErrorResponse {\n\trequest: any;\n\tresponse: T;\n\tproxy: ProxyTypes;\n\tstatusCode?: number;\n\n\tconstructor(request: any, response: T, proxy: ProxyTypes, statusCode?: number) {\n\t\tsuper(undefined);\n\t\tthis.request = request;\n\t\tthis.response = response;\n\t\tthis.proxy = proxy;\n\t\tthis.statusCode = statusCode;\n\t}\n}\n\nexport interface ErrorDetail {\n\tfieldName: string;\n\treason: string;\n\tdescription: string;\n}\n","import { HttpBackend, HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\n// WithoutInterceptorHttpClient\n@Injectable({ providedIn: 'root' })\nexport class HttpBackendService {\n\tpublic httpClient: HttpClient;\n\n\tconstructor(handler: HttpBackend) {\n\t\tthis.httpClient = new HttpClient(handler);\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { HttpClient } from '@angular/common/http';\nimport { Injector, inject } from '@angular/core';\n\nimport { MessageService } from 'primeng/api';\n\nimport { TranslocoService } from '@ngneat/transloco';\nimport { KeycloakService } from 'keycloak-angular';\n\nimport { ServiceCallStateMap } from '../lib/interfaces';\n\nexport abstract class RestClient {\n\tprivate readonly httpClient = inject(HttpClient);\n\tprivate readonly injector = inject(Injector);\n\tprivate readonly messageService = inject(MessageService);\n\tprivate readonly translocoService = inject(TranslocoService);\n\tprivate readonly keycloak = inject(KeycloakService);\n\n\tabstract states: ServiceCallStateMap<any>;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nconst INVALID_PATH_PARAM_STRINGS = ['undefined', 'null', 'NaN'];\n\n/**\n * Returns true when a value cannot be a record id in a URL path segment:\n * `undefined`, `null`, `NaN` or their string forms (e.g. produced by template interpolation).\n * Sending such a value makes the backend fail with MethodArgumentTypeMismatchException (CORE-100 / 500).\n */\nexport const isInvalidPathParam = (value: any): boolean =>\n\tvalue === undefined ||\n\tvalue === null ||\n\t(typeof value === 'number' && Number.isNaN(value)) ||\n\t(typeof value === 'string' && INVALID_PATH_PARAM_STRINGS.includes(value.trim()));\n","import { HttpParams } from '@angular/common/http';\n\nimport { Interfaces } from 'aril/util/lib';\n\nimport { HTTPMethods } from '../lib/enums';\n\nexport function getRequest(httpMethod: HTTPMethods, args: any[]): HttpParams | Interfaces.MapStringAny | undefined {\n\tif (!args.length) return undefined;\n\n\tswitch (httpMethod) {\n\t\tcase HTTPMethods.PUT:\n\t\t\treturn args[1];\n\t\tcase HTTPMethods.POSTBYPARAMS:\n\t\tcase HTTPMethods.GETBYPARAMS:\n\t\tcase HTTPMethods.GETBYPARAMSANDDYNAMICPATH:\n\t\tcase HTTPMethods.DELETEBYPARAMS:\n\t\t\tconst dto = httpMethod === HTTPMethods.POSTBYPARAMS ? args[0].queryParams : args[0];\n\t\t\tlet queryParams = new HttpParams();\n\n\t\t\tfor (const [key, value] of Object.entries(dto)) {\n\t\t\t\tqueryParams = queryParams.append(key, value as any);\n\t\t\t}\n\n\t\t\treturn queryParams;\n\t\tdefault:\n\t\t\treturn args[0];\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { HttpErrorResponse, HttpStatusCode } from '@angular/common/http';\n\nimport { MessageService } from 'primeng/api';\n\nimport { TranslocoService } from '@ngneat/transloco';\nimport { KeycloakService } from 'keycloak-angular';\n\nimport { ErrorDetail, ServiceCallStateMap } from '../lib/interfaces';\n\nexport const callState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: true,\n\t\tresponseIsRecieved: false,\n\t\tserviceCallFailed: false\n\t};\n};\n\nexport const successState = (\n\tstates: ServiceCallStateMap<any>,\n\tserviceName: any,\n\ttranslocoService: TranslocoService,\n\tmessageService: MessageService,\n\tmessage?: { success?: string; error?: string; ignoredStatusCodes?: HttpStatusCode[] },\n\tresponse?: any\n): void => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: false,\n\t\tresponseIsRecieved: true,\n\t\tserviceCallFailed: false\n\t};\n\n\tif (message?.success) {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'success',\n\t\t\tsummary: getTranslatedMessage(<string>message.success, translocoService, response)\n\t\t});\n\t}\n};\n\nexport const errorState = async (\n\tstates: ServiceCallStateMap<any>,\n\tserviceName: any,\n\terror: HttpErrorResponse,\n\ttranslocoService: TranslocoService,\n\tmessageService: MessageService,\n\tkeycloakService: KeycloakService,\n\tmessage?: { success?: string; error?: string; ignoredStatusCodes?: HttpStatusCode[] }\n) => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: false,\n\t\tresponseIsRecieved: true,\n\t\tserviceCallFailed: true\n\t};\n\n\tlet httpError: string;\n\n\tswitch (error.status) {\n\t\tcase 400:\n\t\t\thttpError = 'Hatalı İstek';\n\t\t\tbreak;\n\t\tcase 401:\n\t\t\thttpError = 'Yetkisiz Erişim';\n\t\t\tawait keycloakService.login({ redirectUri: window.location.href });\n\t\t\tbreak;\n\t\tcase 403:\n\t\t\thttpError = 'Erişim Engellendi';\n\t\t\tif (keycloakService.isTokenExpired()) await keycloakService.login({ redirectUri: window.location.href });\n\t\t\tbreak;\n\t\tcase 404:\n\t\t\thttpError = 'Kaynak Bulunamadı';\n\t\t\tbreak;\n\t\tcase 405:\n\t\t\thttpError = 'İzin Verilmeyen Metod';\n\t\t\tbreak;\n\t\tcase 406:\n\t\t\thttpError = 'Kabul Edilemez Başlık';\n\t\t\tbreak;\n\t\tcase 408:\n\t\t\thttpError = 'Zaman Aşımı';\n\t\t\tbreak;\n\t\tcase 409:\n\t\t\thttpError = 'Çakışma';\n\t\t\tbreak;\n\t\tcase 500:\n\t\t\thttpError = 'Sunucu Hatası';\n\t\t\tbreak;\n\t\tcase 501:\n\t\t\thttpError = 'Sunucu Yapılandırma Hatası';\n\t\t\tbreak;\n\t\tcase 502:\n\t\t\thttpError = 'Geçersiz Ağ Geçidi';\n\t\t\tbreak;\n\t\tcase 503:\n\t\t\thttpError = 'Sunucu Hizmet Vermiyor';\n\t\t\tbreak;\n\t\tcase 504:\n\t\t\thttpError = 'Ağ Geçidi Zaman Aşımı';\n\t\t\tbreak;\n\t\tcase 505:\n\t\t\thttpError = 'HTTP Protokol Desteklenmiyor';\n\t\t\tbreak;\n\t\tcase 511:\n\t\t\thttpError = 'Ağ Kimlik Doğrulaması Gerekli';\n\t\t\tbreak;\n\t\tcase 599:\n\t\t\thttpError = 'Ağ Bağlantısı Zaman Aşımı';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\thttpError = error?.error?.message;\n\t\t\tbreak;\n\t}\n\n\tif (!httpError) return;\n\n\tif (message?.ignoredStatusCodes?.includes(error.status)) return;\n\n\tif (error.error?.details?.length && Array.isArray(error.error.details)) {\n\t\terror.error.details.forEach((detail: ErrorDetail) => {\n\t\t\tconst key = 'fields.' + detail.fieldName;\n\t\t\tconst translatedField = translocoService.translate(key);\n\t\t\tconst text = translatedField === key ? detail.fieldName : translatedField;\n\n\t\t\tconst detailText = (detail.fieldName ? text + ' - ' : '') + detail.reason;\n\n\t\t\tmessageService.add({\n\t\t\t\tkey: 'toast-root',\n\t\t\t\tseverity: 'error',\n\t\t\t\tsummary: error?.error?.message,\n\t\t\t\tdetail: detailText\n\t\t\t});\n\t\t});\n\t} else {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'error',\n\t\t\tsummary: httpError,\n\t\t\tdetail: error?.error?.message\n\t\t});\n\t}\n\n\tif (message?.error) {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'error',\n\t\t\tsummary: error?.error?.message || getTranslatedMessage(message.error, translocoService)\n\t\t});\n\t}\n};\n\nexport const warningState = (\n\tstates: ServiceCallStateMap<any>,\n\tserviceName: any,\n\tresponse: any,\n\tmessageService: MessageService\n): void => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: false,\n\t\tresponseIsRecieved: true,\n\t\tserviceCallFailed: true\n\t};\n\n\tif (response?.details && Array.isArray(response.details) && response.details.length > 0) {\n\t\tresponse.details.forEach((detail: ErrorDetail) => {\n\t\t\tmessageService.add({\n\t\t\t\tkey: 'toast-root',\n\t\t\t\tseverity: 'warn',\n\t\t\t\tsummary: response?.message,\n\t\t\t\tdetail: (detail.fieldName !== null ? detail.fieldName + ' - ' : '') + detail.reason\n\t\t\t});\n\t\t});\n\t} else {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'warn',\n\t\t\tdetail: response?.message\n\t\t});\n\t}\n};\n\nconst getTranslatedMessage = (messageCode: string, translocoService: TranslocoService, response?: any): string => {\n\tconst translateObject = translocoService.getTranslation().get(translocoService.getActiveLang());\n\tlet translatedMessage = translateObject?.[messageCode] ?? messageCode;\n\n\tconst paramStartSymbol = '{{';\n\tconst paramEndSymbol = '}}';\n\n\tif (response && translatedMessage.includes(paramStartSymbol) && translatedMessage.includes(paramEndSymbol)) {\n\t\tdo {\n\t\t\tlet paramStartIndex = translatedMessage.indexOf(paramStartSymbol);\n\t\t\tlet paramEndIndex = translatedMessage.indexOf(paramEndSymbol);\n\t\t\tlet paramKey = translatedMessage.slice(paramStartIndex + paramStartSymbol.length, paramEndIndex);\n\n\t\t\t// Splitting the key to get nested object values\n\t\t\tlet paramKeyList = paramKey.split('.');\n\t\t\tlet paramValue;\n\n\t\t\tfor (let key of paramKeyList) {\n\t\t\t\tparamValue = paramValue ? paramValue[key] : response[key];\n\t\t\t}\n\n\t\t\tlet replacePattern = `${paramStartSymbol}${paramKey}${paramEndSymbol}`;\n\t\t\ttranslatedMessage = translatedMessage.replace(replacePattern, paramValue);\n\t\t} while (translatedMessage.includes(paramStartSymbol));\n\t}\n\n\treturn translatedMessage;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { HttpClient, HttpErrorResponse, HttpParams, HttpStatusCode } from '@angular/common/http';\nimport { runInInjectionContext } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { Observable, of } from 'rxjs';\nimport { catchError, map, tap } from 'rxjs/operators';\n\nimport { API_CONFIGS } from 'aril/boot/config/api';\nimport { Apps } from 'aril/boot/config/apps';\n\nimport { HTTPMethods, HTTPStatusCodes, ProxyTypes } from '../lib/enums';\nimport { ErrorResponse, ServiceCallStateMap, ServiceResponse } from '../lib/interfaces';\nimport { isInvalidPathParam } from './pathParam';\nimport { getRequest } from './serviceRequest';\nimport { callState, errorState, successState, warningState } from './serviceStateMethods';\n\n/** Arguments that end up in the URL path for the given method (objects are body/query params). */\nconst getPathArgs = (httpMethod: HTTPMethods, args: any[]): any[] => {\n\tswitch (httpMethod) {\n\t\tcase HTTPMethods.GET:\n\t\tcase HTTPMethods.PUT:\n\t\tcase HTTPMethods.DELETE:\n\t\t\treturn args.length ? [args[0]] : [];\n\t\tcase HTTPMethods.GETBYDYNAMICPATH:\n\t\t\treturn args;\n\t\tcase HTTPMethods.GETBYPARAMSANDDYNAMICPATH:\n\t\tcase HTTPMethods.POSTBYDYNAMICPATH:\n\t\tcase HTTPMethods.PUTBYDYNAMICPATH:\n\t\tcase HTTPMethods.DELETEBYDYNAMICPATH:\n\t\t\treturn args.filter((arg) => typeof arg !== 'object');\n\t\tdefault:\n\t\t\treturn [];\n\t}\n};\n\nexport function ServiceCall(\n\thttpMethod: HTTPMethods,\n\tproxy: ProxyTypes,\n\tserviceURL: string,\n\tmessage?: { success?: string; error?: string; ignoredStatusCodes?: HttpStatusCode[] },\n\tremoteAPI?: Apps,\n\tisMockAPI = false\n): MethodDecorator {\n\treturn function (serviceClass: object, serviceName: string | symbol, descriptor: PropertyDescriptor) {\n\t\t// const originalFunction = descriptor.value;\n\n\t\tdescriptor.value = function (...args: any[]) {\n\t\t\treturn runInInjectionContext((<any>this).injector, () => {\n\t\t\t\tconst httpClient: HttpClient = (<any>this).httpClient;\n\n\t\t\t\tlet api = '';\n\t\t\t\tif (isMockAPI) api = <string>remoteAPI;\n\t\t\t\telse if (remoteAPI) {\n\t\t\t\t\tconst url = new URL(API_CONFIGS.api);\n\t\t\t\t\tapi = url.origin + '/' + API_CONFIGS.prefixMap[remoteAPI];\n\t\t\t\t} else api = API_CONFIGS.api;\n\n\t\t\t\tconst endPoint = api + '/' + serviceURL;\n\t\t\t\tconst request = getRequest(httpMethod, args);\n\t\t\t\tconst states: ServiceCallStateMap<any> = (<any>this).states;\n\n\t\t\t\t// A missing record id (undefined/null/NaN) must not reach the backend: it only produces\n\t\t\t\t// CORE-100 / 500 and an error toast. Resolve as a failed call without sending the request.\n\t\t\t\tif (getPathArgs(httpMethod, args).some(isInvalidPathParam)) {\n\t\t\t\t\tconsole.warn(`[ServiceCall] ${String(serviceName)} skipped: invalid path parameter`, args);\n\t\t\t\t\tstates[<any>serviceName] = {\n\t\t\t\t\t\tserviceCalled: true,\n\t\t\t\t\t\twaitingForResponse: false,\n\t\t\t\t\t\tresponseIsRecieved: true,\n\t\t\t\t\t\tserviceCallFailed: true\n\t\t\t\t\t};\n\t\t\t\t\treturn of(\n\t\t\t\t\t\tnew ErrorResponse(\n\t\t\t\t\t\t\tnew HttpErrorResponse({\n\t\t\t\t\t\t\t\tstatus: HttpStatusCode.BadRequest,\n\t\t\t\t\t\t\t\tstatusText: 'Invalid path parameter',\n\t\t\t\t\t\t\t\turl: api + '/' + serviceURL\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tcallState(states, serviceName);\n\n\t\t\t\tlet observable: Observable<any> = new Observable<any>();\n\t\t\t\tlet getDynamicServiceUrl: string;\n\n\t\t\t\tswitch (httpMethod) {\n\t\t\t\t\tcase HTTPMethods.GET:\n\t\t\t\t\t\tlet getReq = args.length ? '/' + args[0] : '';\n\t\t\t\t\t\tobservable = httpClient.get<any>(endPoint + getReq, {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.GETBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.get<any>(endPoint, { params: request as HttpParams, observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.GETBYDYNAMICPATH:\n\t\t\t\t\t\tgetDynamicServiceUrl = serviceURL;\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tgetDynamicServiceUrl = getDynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tobservable = httpClient.get<any>(api + '/' + getDynamicServiceUrl, {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.GETBYPARAMSANDDYNAMICPATH:\n\t\t\t\t\t\tlet getParams = {};\n\t\t\t\t\t\tlet getDynamicServiceUrlWithParams = serviceURL;\n\t\t\t\t\t\t\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') getParams = arg;\n\t\t\t\t\t\t\telse getDynamicServiceUrlWithParams = getDynamicServiceUrlWithParams.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tobservable = httpClient.get<any>(api + '/' + getDynamicServiceUrlWithParams, {\n\t\t\t\t\t\t\tparams: getParams as HttpParams,\n\t\t\t\t\t\t\tobserve: 'response',\n\t\t\t\t\t\t\tresponseType: 'json'\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.POST:\n\t\t\t\t\t\tobservable = httpClient.post<any>(endPoint, args[0], {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.POSTBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.post<any>(endPoint, args[0].body, { params: request, observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.POSTBYDYNAMICPATH:\n\t\t\t\t\t\tlet body = {};\n\t\t\t\t\t\tlet dynamicServiceUrl = serviceURL;\n\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') body = arg;\n\t\t\t\t\t\t\telse dynamicServiceUrl = dynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tobservable = httpClient.post<any>(api + '/' + dynamicServiceUrl, body, { observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.PUT:\n\t\t\t\t\t\tobservable = httpClient.put<any>(endPoint + '/' + args[0], request, { observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.PUTBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.put<any>(endPoint, args[0], { observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase HTTPMethods.PUTBYDYNAMICPATH:\n\t\t\t\t\t\tlet putBody = {};\n\t\t\t\t\t\tlet putDynamicServiceUrl = serviceURL;\n\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') putBody = arg;\n\t\t\t\t\t\t\telse putDynamicServiceUrl = putDynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tobservable = httpClient.put<any>(api + '/' + putDynamicServiceUrl, putBody, {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.DELETE:\n\t\t\t\t\t\tobservable = httpClient.delete<any>(endPoint + '/' + args[0], {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.DELETEBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.delete<any>(endPoint, { params: request as HttpParams, observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.DELETEBYDYNAMICPATH:\n\t\t\t\t\t\tlet deleteParams = {};\n\t\t\t\t\t\tlet deleteDynamicServiceUrl = serviceURL;\n\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') deleteParams = arg;\n\t\t\t\t\t\t\telse deleteDynamicServiceUrl = deleteDynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tobservable = httpClient.delete<any>(api + '/' + deleteDynamicServiceUrl, {\n\t\t\t\t\t\t\tparams: deleteParams,\n\t\t\t\t\t\t\tobserve: 'response',\n\t\t\t\t\t\t\tresponseType: 'json'\n\t\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tobservable = observable.pipe(\n\t\t\t\t\tmap((response) => new ServiceResponse(request, response?.body, proxy, response?.status)),\n\t\t\t\t\ttap((serviceRes) => {\n\t\t\t\t\t\tif (serviceRes?.statusCode === HTTPStatusCodes.NO_CONTENT) {\n\t\t\t\t\t\t\t(<any>this).messageService.add({\n\t\t\t\t\t\t\t\tkey: 'toast-root',\n\t\t\t\t\t\t\t\tseverity: 'success',\n\t\t\t\t\t\t\t\tsummary: (<any>this).translocoService.translate('messages.successMessageHeader'),\n\t\t\t\t\t\t\t\tdetail: (<any>this).translocoService.translate('messages.successMessage')\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if (serviceRes.response.type === 'ValidationWarningException') {\n\t\t\t\t\t\t\twarningState(states, serviceName, serviceRes.response, (<any>this).messageService);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsuccessState(\n\t\t\t\t\t\t\t\tstates,\n\t\t\t\t\t\t\t\tserviceName,\n\t\t\t\t\t\t\t\t(<any>this).translocoService,\n\t\t\t\t\t\t\t\t(<any>this).messageService,\n\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\tserviceRes\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t\tcatchError((error: HttpErrorResponse) => {\n\t\t\t\t\t\terrorState(\n\t\t\t\t\t\t\tstates,\n\t\t\t\t\t\t\tserviceName,\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t\t(<any>this).translocoService,\n\t\t\t\t\t\t\t(<any>this).messageService,\n\t\t\t\t\t\t\t(<any>this).keycloak,\n\t\t\t\t\t\t\tmessage\n\t\t\t\t\t\t);\n\t\t\t\t\t\treturn of(new ErrorResponse(error));\n\t\t\t\t\t}),\n\t\t\t\t\ttakeUntilDestroyed()\n\t\t\t\t);\n\n\t\t\t\treturn observable;\n\t\t\t});\n\t\t};\n\t};\n}\n","import { HTTPMethods, ProxyTypes } from '../lib/enums';\nimport { ServiceCall } from './serviceBase';\n\nexport function ServiceCallMock(\n\thttpMethod: HTTPMethods,\n\tproxy: ProxyTypes,\n\tserviceURL: string,\n\tmockAPI: string,\n\tmessage?: { success?: string; error?: string; useDefault: boolean }\n) {\n\t// return ServiceCall(httpMethod, proxy, serviceURL, message, mockAPI, true);\n}\n","import { HttpHandlerFn, HttpInterceptorFn, HttpRequest } from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { TranslocoService } from '@ngneat/transloco';\n\nconst DEFAULT_LANGUAGE = 'tr' as const;\nconst STORAGE_KEY = 'lang' as const;\n\nconst resolveLanguage = (translocoService: TranslocoService | null): string => {\n return (\n translocoService?.getActiveLang?.() ||\n localStorage.getItem(STORAGE_KEY) ||\n translocoService?.getDefaultLang?.() ||\n DEFAULT_LANGUAGE\n );\n};\n\nexport const acceptLanguageInterceptor: HttpInterceptorFn = (\n req: HttpRequest<unknown>,\n next: HttpHandlerFn\n) => {\n const translocoService = inject(TranslocoService, { optional: true }) ?? null;\n const language = resolveLanguage(translocoService);\n\n const updatedReq = req.clone({\n setHeaders: {\n 'Accept-Language': language\n }\n });\n\n return next(updatedReq);\n};\n\n","/* lib */\nexport * from './lib/enums';\nexport * from './lib/interfaces';\n\n/* src */\nexport * from './src/httpBackend';\nexport * from './src/httpClient';\nexport * from './src/pathParam';\nexport * from './src/serviceBase';\nexport * from './src/serviceMockBase';\nexport * from './src/serviceStateMethods';\n\n/* interceptor */\nexport * from './src/interceptor/accept-language.interceptor';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,WAAW,EAAA;AACtB,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,WAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACrC,IAAA,WAAA,CAAA,2BAAA,CAAA,GAAA,2BAAuD;AACvD,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,WAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC7B,IAAA,WAAA,CAAA,mBAAA,CAAA,GAAA,mBAAuC;AACvC,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC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M,eAAe,GAAG,CAAC,gBAAyC,KAAY;AAC5E,IAAA,QACE,gBAAgB,EAAE,aAAa,IAAI;AACnC,QAAA,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC;QACjC,gBAAgB,EAAE,cAAc,IAAI;AACpC,QAAA,gBAAgB;AAEpB,CAAC;MAEY,yBAAyB,GAAsB,CAC1D,GAAyB,EACzB,IAAmB,KACjB;AACF,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,IAAI;AAC7E,IAAA,MAAM,QAAQ,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAElD,IAAA,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC;AAC3B,QAAA,UAAU,EAAE;AACV,YAAA,iBAAiB,EAAE;AACpB;AACF,KAAA,CAAC;AAEF,IAAA,OAAO,IAAI,CAAC,UAAU,CAAC;AACzB;;AC9BA;;ACAA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"aril-http.mjs","sources":["../../projects/aril/http/lib/enums.ts","../../projects/aril/http/lib/interfaces.ts","../../projects/aril/http/src/httpBackend.ts","../../projects/aril/http/src/httpClient.ts","../../projects/aril/http/src/pathParam.ts","../../projects/aril/http/src/serviceRequest.ts","../../projects/aril/http/src/serviceStateMethods.ts","../../projects/aril/http/src/serviceBase.ts","../../projects/aril/http/src/serviceMockBase.ts","../../projects/aril/http/src/interceptor/accept-language.interceptor.ts","../../projects/aril/http/index.ts","../../projects/aril/http/aril-http.ts"],"sourcesContent":["export enum HTTPMethods {\n\tGET = 'GET',\n\tGETBYPARAMS = 'GETBYPARAMS',\n\tGETBYDYNAMICPATH = 'GETBYDYNAMICPATH',\n\tGETBYPARAMSANDDYNAMICPATH = 'GETBYPARAMSANDDYNAMICPATH',\n\tPOST = 'POST',\n\tPOSTBYPARAMS = 'POSTBYPARAMS',\n\tPOSTBYDYNAMICPATH = 'POSTBYDYNAMICPATH',\n\tPUT = 'PUT',\n\tPUTBYPARAMS = 'PUTBYPARAMS',\n\tPUTBYDYNAMICPATH = 'PUTBYDYNAMICPATH',\n\tDELETE = 'DELETE',\n\tDELETEBYPARAMS = 'DELETEBYPARAMS',\n\tDELETEBYDYNAMICPATH = 'DELETEBYDYNAMICPATH'\n}\nexport enum ProxyTypes {\n\tNative,\n\tServerSide,\n\tClientSide\n}\nexport enum HTTPStatusCodes {\n\tOK = 200,\n\tCREATED = 201,\n\tACCEPTED = 202,\n\tNO_CONTENT = 204,\n\tBAD_REQUEST = 400,\n\tUNAUTHORIZED = 401,\n\tFORBIDDEN = 403,\n\tNOT_FOUND = 404,\n\tINTERNAL_SERVER_ERROR = 500\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/* eslint-disable @typescript-eslint/ban-types */\nimport { HttpErrorResponse } from '@angular/common/http';\n\nimport { ProxyTypes } from './enums';\n\nexport interface ServiceCallStates {\n\tserviceCalled: boolean;\n\twaitingForResponse: boolean;\n\tresponseIsRecieved: boolean;\n\tserviceCallFailed: boolean;\n}\n\nexport type ServiceCallStateMap<T> = {\n\t[K in keyof T]?: T[K] extends Function ? ServiceCallStates : never;\n};\n\nexport class ErrorResponse {\n\terror: HttpErrorResponse | undefined;\n\n\tconstructor(err: HttpErrorResponse | undefined) {\n\t\tthis.error = err;\n\t}\n}\n\nexport class ServiceResponse<T> extends ErrorResponse {\n\trequest: any;\n\tresponse: T;\n\tproxy: ProxyTypes;\n\tstatusCode?: number;\n\n\tconstructor(request: any, response: T, proxy: ProxyTypes, statusCode?: number) {\n\t\tsuper(undefined);\n\t\tthis.request = request;\n\t\tthis.response = response;\n\t\tthis.proxy = proxy;\n\t\tthis.statusCode = statusCode;\n\t}\n}\n\nexport interface ErrorDetail {\n\tfieldName: string;\n\treason: string;\n\tdescription: string;\n}\n","import { HttpBackend, HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\n// WithoutInterceptorHttpClient\n@Injectable({ providedIn: 'root' })\nexport class HttpBackendService {\n\tpublic httpClient: HttpClient;\n\n\tconstructor(handler: HttpBackend) {\n\t\tthis.httpClient = new HttpClient(handler);\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { HttpClient } from '@angular/common/http';\nimport { Injector, inject } from '@angular/core';\n\nimport { MessageService } from 'primeng/api';\n\nimport { TranslocoService } from '@ngneat/transloco';\nimport { KeycloakService } from 'keycloak-angular';\n\nimport { ServiceCallStateMap } from '../lib/interfaces';\n\nexport abstract class RestClient {\n\tprivate readonly httpClient = inject(HttpClient);\n\tprivate readonly injector = inject(Injector);\n\tprivate readonly messageService = inject(MessageService);\n\tprivate readonly translocoService = inject(TranslocoService);\n\tprivate readonly keycloak = inject(KeycloakService);\n\n\tabstract states: ServiceCallStateMap<any>;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nconst INVALID_PATH_PARAM_STRINGS = ['undefined', 'null', 'NaN'];\n\n/**\n * Returns true when a value cannot be a record id in a URL path segment:\n * `undefined`, `null`, `NaN` or their string forms (e.g. produced by template interpolation).\n * Sending such a value makes the backend fail with MethodArgumentTypeMismatchException (CORE-100 / 500).\n */\nexport const isInvalidPathParam = (value: any): boolean =>\n\tvalue === undefined ||\n\tvalue === null ||\n\t(typeof value === 'number' && Number.isNaN(value)) ||\n\t(typeof value === 'string' && INVALID_PATH_PARAM_STRINGS.includes(value.trim()));\n","import { HttpParams } from '@angular/common/http';\n\nimport { Interfaces } from 'aril/util/lib';\n\nimport { HTTPMethods } from '../lib/enums';\n\nexport function getRequest(httpMethod: HTTPMethods, args: any[]): HttpParams | Interfaces.MapStringAny | undefined {\n\tif (!args.length) return undefined;\n\n\tswitch (httpMethod) {\n\t\tcase HTTPMethods.PUT:\n\t\t\treturn args[1];\n\t\tcase HTTPMethods.POSTBYPARAMS:\n\t\tcase HTTPMethods.GETBYPARAMS:\n\t\tcase HTTPMethods.GETBYPARAMSANDDYNAMICPATH:\n\t\tcase HTTPMethods.DELETEBYPARAMS:\n\t\t\tconst dto = httpMethod === HTTPMethods.POSTBYPARAMS ? args[0].queryParams : args[0];\n\t\t\tlet queryParams = new HttpParams();\n\n\t\t\tfor (const [key, value] of Object.entries(dto)) {\n\t\t\t\tqueryParams = queryParams.append(key, value as any);\n\t\t\t}\n\n\t\t\treturn queryParams;\n\t\tdefault:\n\t\t\treturn args[0];\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { HttpErrorResponse, HttpStatusCode } from '@angular/common/http';\n\nimport { MessageService } from 'primeng/api';\n\nimport { TranslocoService } from '@ngneat/transloco';\nimport { KeycloakService } from 'keycloak-angular';\n\nimport { ErrorDetail, ServiceCallStateMap } from '../lib/interfaces';\n\nexport const callState = (states: ServiceCallStateMap<any>, serviceName: any): void => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: true,\n\t\tresponseIsRecieved: false,\n\t\tserviceCallFailed: false\n\t};\n};\n\nexport const successState = (\n\tstates: ServiceCallStateMap<any>,\n\tserviceName: any,\n\ttranslocoService: TranslocoService,\n\tmessageService: MessageService,\n\tmessage?: { success?: string; error?: string; ignoredStatusCodes?: HttpStatusCode[] },\n\tresponse?: any\n): void => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: false,\n\t\tresponseIsRecieved: true,\n\t\tserviceCallFailed: false\n\t};\n\n\tif (message?.success) {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'success',\n\t\t\tsummary: getTranslatedMessage(<string>message.success, translocoService, response)\n\t\t});\n\t}\n};\n\nexport const errorState = async (\n\tstates: ServiceCallStateMap<any>,\n\tserviceName: any,\n\terror: HttpErrorResponse,\n\ttranslocoService: TranslocoService,\n\tmessageService: MessageService,\n\tkeycloakService: KeycloakService,\n\tmessage?: { success?: string; error?: string; ignoredStatusCodes?: HttpStatusCode[] }\n) => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: false,\n\t\tresponseIsRecieved: true,\n\t\tserviceCallFailed: true\n\t};\n\n\tlet httpError: string;\n\n\tswitch (error.status) {\n\t\tcase 400:\n\t\t\thttpError = 'Hatalı İstek';\n\t\t\tbreak;\n\t\tcase 401:\n\t\t\thttpError = 'Yetkisiz Erişim';\n\t\t\tawait keycloakService.login({ redirectUri: window.location.href });\n\t\t\tbreak;\n\t\tcase 403:\n\t\t\thttpError = 'Erişim Engellendi';\n\t\t\tif (keycloakService.isTokenExpired()) await keycloakService.login({ redirectUri: window.location.href });\n\t\t\tbreak;\n\t\tcase 404:\n\t\t\thttpError = 'Kaynak Bulunamadı';\n\t\t\tbreak;\n\t\tcase 405:\n\t\t\thttpError = 'İzin Verilmeyen Metod';\n\t\t\tbreak;\n\t\tcase 406:\n\t\t\thttpError = 'Kabul Edilemez Başlık';\n\t\t\tbreak;\n\t\tcase 408:\n\t\t\thttpError = 'Zaman Aşımı';\n\t\t\tbreak;\n\t\tcase 409:\n\t\t\thttpError = 'Çakışma';\n\t\t\tbreak;\n\t\tcase 500:\n\t\t\thttpError = 'Sunucu Hatası';\n\t\t\tbreak;\n\t\tcase 501:\n\t\t\thttpError = 'Sunucu Yapılandırma Hatası';\n\t\t\tbreak;\n\t\tcase 502:\n\t\t\thttpError = 'Geçersiz Ağ Geçidi';\n\t\t\tbreak;\n\t\tcase 503:\n\t\t\thttpError = 'Sunucu Hizmet Vermiyor';\n\t\t\tbreak;\n\t\tcase 504:\n\t\t\thttpError = 'Ağ Geçidi Zaman Aşımı';\n\t\t\tbreak;\n\t\tcase 505:\n\t\t\thttpError = 'HTTP Protokol Desteklenmiyor';\n\t\t\tbreak;\n\t\tcase 511:\n\t\t\thttpError = 'Ağ Kimlik Doğrulaması Gerekli';\n\t\t\tbreak;\n\t\tcase 599:\n\t\t\thttpError = 'Ağ Bağlantısı Zaman Aşımı';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\thttpError = error?.error?.message;\n\t\t\tbreak;\n\t}\n\n\tif (!httpError) return;\n\n\tif (message?.ignoredStatusCodes?.includes(error.status)) return;\n\n\tif (error.error?.details?.length && Array.isArray(error.error.details)) {\n\t\terror.error.details.forEach((detail: ErrorDetail) => {\n\t\t\tconst key = 'fields.' + detail.fieldName;\n\t\t\tconst translatedField = translocoService.translate(key);\n\t\t\tconst text = translatedField === key ? detail.fieldName : translatedField;\n\n\t\t\tconst detailText = (detail.fieldName ? text + ' - ' : '') + detail.reason;\n\n\t\t\tmessageService.add({\n\t\t\t\tkey: 'toast-root',\n\t\t\t\tseverity: 'error',\n\t\t\t\tsummary: error?.error?.message,\n\t\t\t\tdetail: detailText\n\t\t\t});\n\t\t});\n\t} else {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'error',\n\t\t\tsummary: httpError,\n\t\t\tdetail: error?.error?.message\n\t\t});\n\t}\n\n\tif (message?.error) {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'error',\n\t\t\tsummary: error?.error?.message || getTranslatedMessage(message.error, translocoService)\n\t\t});\n\t}\n};\n\nexport const warningState = (\n\tstates: ServiceCallStateMap<any>,\n\tserviceName: any,\n\tresponse: any,\n\tmessageService: MessageService\n): void => {\n\tstates[serviceName] = {\n\t\tserviceCalled: true,\n\t\twaitingForResponse: false,\n\t\tresponseIsRecieved: true,\n\t\tserviceCallFailed: true\n\t};\n\n\tif (response?.details && Array.isArray(response.details) && response.details.length > 0) {\n\t\tresponse.details.forEach((detail: ErrorDetail) => {\n\t\t\tmessageService.add({\n\t\t\t\tkey: 'toast-root',\n\t\t\t\tseverity: 'warn',\n\t\t\t\tsummary: response?.message,\n\t\t\t\tdetail: (detail.fieldName !== null ? detail.fieldName + ' - ' : '') + detail.reason\n\t\t\t});\n\t\t});\n\t} else {\n\t\tmessageService.add({\n\t\t\tkey: 'toast-root',\n\t\t\tseverity: 'warn',\n\t\t\tdetail: response?.message\n\t\t});\n\t}\n};\n\nconst getTranslatedMessage = (messageCode: string, translocoService: TranslocoService, response?: any): string => {\n\tconst translateObject = translocoService.getTranslation().get(translocoService.getActiveLang());\n\tlet translatedMessage = translateObject?.[messageCode] ?? messageCode;\n\n\tconst paramStartSymbol = '{{';\n\tconst paramEndSymbol = '}}';\n\n\tif (response && translatedMessage.includes(paramStartSymbol) && translatedMessage.includes(paramEndSymbol)) {\n\t\tdo {\n\t\t\tlet paramStartIndex = translatedMessage.indexOf(paramStartSymbol);\n\t\t\tlet paramEndIndex = translatedMessage.indexOf(paramEndSymbol);\n\t\t\tlet paramKey = translatedMessage.slice(paramStartIndex + paramStartSymbol.length, paramEndIndex);\n\n\t\t\t// Splitting the key to get nested object values\n\t\t\tlet paramKeyList = paramKey.split('.');\n\t\t\tlet paramValue;\n\n\t\t\tfor (let key of paramKeyList) {\n\t\t\t\tparamValue = paramValue ? paramValue[key] : response[key];\n\t\t\t}\n\n\t\t\tlet replacePattern = `${paramStartSymbol}${paramKey}${paramEndSymbol}`;\n\t\t\ttranslatedMessage = translatedMessage.replace(replacePattern, paramValue);\n\t\t} while (translatedMessage.includes(paramStartSymbol));\n\t}\n\n\treturn translatedMessage;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { HttpClient, HttpErrorResponse, HttpParams, HttpStatusCode } from '@angular/common/http';\nimport { runInInjectionContext } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { Observable, of } from 'rxjs';\nimport { catchError, map, tap } from 'rxjs/operators';\n\nimport { API_CONFIGS } from 'aril/boot/config/api';\nimport { Apps } from 'aril/boot/config/apps';\n\nimport { HTTPMethods, HTTPStatusCodes, ProxyTypes } from '../lib/enums';\nimport { ErrorResponse, ServiceCallStateMap, ServiceResponse } from '../lib/interfaces';\nimport { isInvalidPathParam } from './pathParam';\nimport { getRequest } from './serviceRequest';\nimport { callState, errorState, successState, warningState } from './serviceStateMethods';\n\n/** Arguments that end up in the URL path for the given method (objects are body/query params). */\nconst getPathArgs = (httpMethod: HTTPMethods, args: any[]): any[] => {\n\tswitch (httpMethod) {\n\t\tcase HTTPMethods.GET:\n\t\tcase HTTPMethods.PUT:\n\t\tcase HTTPMethods.DELETE:\n\t\t\treturn args.length ? [args[0]] : [];\n\t\tcase HTTPMethods.GETBYDYNAMICPATH:\n\t\t\treturn args;\n\t\tcase HTTPMethods.GETBYPARAMSANDDYNAMICPATH:\n\t\tcase HTTPMethods.POSTBYDYNAMICPATH:\n\t\tcase HTTPMethods.PUTBYDYNAMICPATH:\n\t\tcase HTTPMethods.DELETEBYDYNAMICPATH:\n\t\t\treturn args.filter((arg) => typeof arg !== 'object');\n\t\tdefault:\n\t\t\treturn [];\n\t}\n};\n\n/**\n * True when a `$` in the URL would stay unfilled. The *BYDYNAMICPATH methods treat every object argument as the\n * body, and `typeof null === 'object'`, so a null id is taken as the body and `$` is left in the path.\n */\nconst hasUnfilledPathParam = (httpMethod: HTTPMethods, serviceURL: string, args: any[]): boolean => {\n\tswitch (httpMethod) {\n\t\tcase HTTPMethods.GETBYPARAMSANDDYNAMICPATH:\n\t\tcase HTTPMethods.POSTBYDYNAMICPATH:\n\t\tcase HTTPMethods.PUTBYDYNAMICPATH:\n\t\tcase HTTPMethods.DELETEBYDYNAMICPATH:\n\t\t\treturn getPathArgs(httpMethod, args).length < (serviceURL.match(/\\$/g) ?? []).length;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n};\n\nexport function ServiceCall(\n\thttpMethod: HTTPMethods,\n\tproxy: ProxyTypes,\n\tserviceURL: string,\n\tmessage?: { success?: string; error?: string; ignoredStatusCodes?: HttpStatusCode[] },\n\tremoteAPI?: Apps,\n\tisMockAPI = false\n): MethodDecorator {\n\treturn function (serviceClass: object, serviceName: string | symbol, descriptor: PropertyDescriptor) {\n\t\t// const originalFunction = descriptor.value;\n\n\t\tdescriptor.value = function (...args: any[]) {\n\t\t\treturn runInInjectionContext((<any>this).injector, () => {\n\t\t\t\tconst httpClient: HttpClient = (<any>this).httpClient;\n\n\t\t\t\tlet api = '';\n\t\t\t\tif (isMockAPI) api = <string>remoteAPI;\n\t\t\t\telse if (remoteAPI) {\n\t\t\t\t\tconst url = new URL(API_CONFIGS.api);\n\t\t\t\t\tapi = url.origin + '/' + API_CONFIGS.prefixMap[remoteAPI];\n\t\t\t\t} else api = API_CONFIGS.api;\n\n\t\t\t\tconst endPoint = api + '/' + serviceURL;\n\t\t\t\tconst request = getRequest(httpMethod, args);\n\t\t\t\tconst states: ServiceCallStateMap<any> = (<any>this).states;\n\n\t\t\t\t// A missing record id (undefined/null/NaN) must not reach the backend: it only produces\n\t\t\t\t// CORE-100 / 500 and an error toast. Resolve as a failed call without sending the request.\n\t\t\t\tif (\n\t\t\t\t\tgetPathArgs(httpMethod, args).some(isInvalidPathParam) ||\n\t\t\t\t\thasUnfilledPathParam(httpMethod, serviceURL, args)\n\t\t\t\t) {\n\t\t\t\t\tconsole.warn(`[ServiceCall] ${String(serviceName)} skipped: invalid path parameter`, args);\n\t\t\t\t\tstates[<any>serviceName] = {\n\t\t\t\t\t\tserviceCalled: true,\n\t\t\t\t\t\twaitingForResponse: false,\n\t\t\t\t\t\tresponseIsRecieved: true,\n\t\t\t\t\t\tserviceCallFailed: true\n\t\t\t\t\t};\n\t\t\t\t\treturn of(\n\t\t\t\t\t\tnew ErrorResponse(\n\t\t\t\t\t\t\tnew HttpErrorResponse({\n\t\t\t\t\t\t\t\tstatus: HttpStatusCode.BadRequest,\n\t\t\t\t\t\t\t\tstatusText: 'Invalid path parameter',\n\t\t\t\t\t\t\t\turl: api + '/' + serviceURL\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tcallState(states, serviceName);\n\n\t\t\t\tlet observable: Observable<any> = new Observable<any>();\n\t\t\t\tlet getDynamicServiceUrl: string;\n\n\t\t\t\tswitch (httpMethod) {\n\t\t\t\t\tcase HTTPMethods.GET:\n\t\t\t\t\t\tlet getReq = args.length ? '/' + args[0] : '';\n\t\t\t\t\t\tobservable = httpClient.get<any>(endPoint + getReq, {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.GETBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.get<any>(endPoint, { params: request as HttpParams, observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.GETBYDYNAMICPATH:\n\t\t\t\t\t\tgetDynamicServiceUrl = serviceURL;\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tgetDynamicServiceUrl = getDynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tobservable = httpClient.get<any>(api + '/' + getDynamicServiceUrl, {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.GETBYPARAMSANDDYNAMICPATH:\n\t\t\t\t\t\tlet getParams = {};\n\t\t\t\t\t\tlet getDynamicServiceUrlWithParams = serviceURL;\n\t\t\t\t\t\t\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') getParams = arg;\n\t\t\t\t\t\t\telse getDynamicServiceUrlWithParams = getDynamicServiceUrlWithParams.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tobservable = httpClient.get<any>(api + '/' + getDynamicServiceUrlWithParams, {\n\t\t\t\t\t\t\tparams: getParams as HttpParams,\n\t\t\t\t\t\t\tobserve: 'response',\n\t\t\t\t\t\t\tresponseType: 'json'\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.POST:\n\t\t\t\t\t\tobservable = httpClient.post<any>(endPoint, args[0], {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.POSTBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.post<any>(endPoint, args[0].body, { params: request, observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.POSTBYDYNAMICPATH:\n\t\t\t\t\t\tlet body = {};\n\t\t\t\t\t\tlet dynamicServiceUrl = serviceURL;\n\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') body = arg;\n\t\t\t\t\t\t\telse dynamicServiceUrl = dynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tobservable = httpClient.post<any>(api + '/' + dynamicServiceUrl, body, { observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.PUT:\n\t\t\t\t\t\tobservable = httpClient.put<any>(endPoint + '/' + args[0], request, { observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.PUTBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.put<any>(endPoint, args[0], { observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase HTTPMethods.PUTBYDYNAMICPATH:\n\t\t\t\t\t\tlet putBody = {};\n\t\t\t\t\t\tlet putDynamicServiceUrl = serviceURL;\n\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') putBody = arg;\n\t\t\t\t\t\t\telse putDynamicServiceUrl = putDynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tobservable = httpClient.put<any>(api + '/' + putDynamicServiceUrl, putBody, {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.DELETE:\n\t\t\t\t\t\tobservable = httpClient.delete<any>(endPoint + '/' + args[0], {observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.DELETEBYPARAMS:\n\t\t\t\t\t\tobservable = httpClient.delete<any>(endPoint, { params: request as HttpParams, observe: 'response', responseType: 'json' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase HTTPMethods.DELETEBYDYNAMICPATH:\n\t\t\t\t\t\tlet deleteParams = {};\n\t\t\t\t\t\tlet deleteDynamicServiceUrl = serviceURL;\n\n\t\t\t\t\t\targs.forEach((arg) => {\n\t\t\t\t\t\t\tif (typeof arg === 'object') deleteParams = arg;\n\t\t\t\t\t\t\telse deleteDynamicServiceUrl = deleteDynamicServiceUrl.replace('$', arg);\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tobservable = httpClient.delete<any>(api + '/' + deleteDynamicServiceUrl, {\n\t\t\t\t\t\t\tparams: deleteParams,\n\t\t\t\t\t\t\tobserve: 'response',\n\t\t\t\t\t\t\tresponseType: 'json'\n\t\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tobservable = observable.pipe(\n\t\t\t\t\tmap((response) => new ServiceResponse(request, response?.body, proxy, response?.status)),\n\t\t\t\t\ttap((serviceRes) => {\n\t\t\t\t\t\tif (serviceRes?.statusCode === HTTPStatusCodes.NO_CONTENT) {\n\t\t\t\t\t\t\t(<any>this).messageService.add({\n\t\t\t\t\t\t\t\tkey: 'toast-root',\n\t\t\t\t\t\t\t\tseverity: 'success',\n\t\t\t\t\t\t\t\tsummary: (<any>this).translocoService.translate('messages.successMessageHeader'),\n\t\t\t\t\t\t\t\tdetail: (<any>this).translocoService.translate('messages.successMessage')\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if (serviceRes.response.type === 'ValidationWarningException') {\n\t\t\t\t\t\t\twarningState(states, serviceName, serviceRes.response, (<any>this).messageService);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsuccessState(\n\t\t\t\t\t\t\t\tstates,\n\t\t\t\t\t\t\t\tserviceName,\n\t\t\t\t\t\t\t\t(<any>this).translocoService,\n\t\t\t\t\t\t\t\t(<any>this).messageService,\n\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\tserviceRes\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t\tcatchError((error: HttpErrorResponse) => {\n\t\t\t\t\t\terrorState(\n\t\t\t\t\t\t\tstates,\n\t\t\t\t\t\t\tserviceName,\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t\t(<any>this).translocoService,\n\t\t\t\t\t\t\t(<any>this).messageService,\n\t\t\t\t\t\t\t(<any>this).keycloak,\n\t\t\t\t\t\t\tmessage\n\t\t\t\t\t\t);\n\t\t\t\t\t\treturn of(new ErrorResponse(error));\n\t\t\t\t\t}),\n\t\t\t\t\ttakeUntilDestroyed()\n\t\t\t\t);\n\n\t\t\t\treturn observable;\n\t\t\t});\n\t\t};\n\t};\n}\n","import { HTTPMethods, ProxyTypes } from '../lib/enums';\nimport { ServiceCall } from './serviceBase';\n\nexport function ServiceCallMock(\n\thttpMethod: HTTPMethods,\n\tproxy: ProxyTypes,\n\tserviceURL: string,\n\tmockAPI: string,\n\tmessage?: { success?: string; error?: string; useDefault: boolean }\n) {\n\t// return ServiceCall(httpMethod, proxy, serviceURL, message, mockAPI, true);\n}\n","import { HttpHandlerFn, HttpInterceptorFn, HttpRequest } from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { TranslocoService } from '@ngneat/transloco';\n\nconst DEFAULT_LANGUAGE = 'tr' as const;\nconst STORAGE_KEY = 'lang' as const;\n\nconst resolveLanguage = (translocoService: TranslocoService | null): string => {\n return (\n translocoService?.getActiveLang?.() ||\n localStorage.getItem(STORAGE_KEY) ||\n translocoService?.getDefaultLang?.() ||\n DEFAULT_LANGUAGE\n );\n};\n\nexport const acceptLanguageInterceptor: HttpInterceptorFn = (\n req: HttpRequest<unknown>,\n next: HttpHandlerFn\n) => {\n const translocoService = inject(TranslocoService, { optional: true }) ?? null;\n const language = resolveLanguage(translocoService);\n\n const updatedReq = req.clone({\n setHeaders: {\n 'Accept-Language': language\n }\n });\n\n return next(updatedReq);\n};\n\n","/* lib */\nexport * from './lib/enums';\nexport * from './lib/interfaces';\n\n/* src */\nexport * from './src/httpBackend';\nexport * from './src/httpClient';\nexport * from './src/pathParam';\nexport * from './src/serviceBase';\nexport * from './src/serviceMockBase';\nexport * from './src/serviceStateMethods';\n\n/* interceptor */\nexport * from './src/interceptor/accept-language.interceptor';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,WAAW,EAAA;AACtB,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,WAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACrC,IAAA,WAAA,CAAA,2BAAA,CAAA,GAAA,2BAAuD;AACvD,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,WAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC7B,IAAA,WAAA,CAAA,mBAAA,CAAA,GAAA,mBAAuC;AACvC,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,WAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACrC,IAAA,WAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,WAAA,CAAA,gBAAA,CAAA,GAAA,gBAAiC;AACjC,IAAA,WAAA,CAAA,qBAAA,CAAA,GAAA,qBAA2C;AAC5C,CAAC,EAdW,WAAW,KAAX,WAAW,GAAA,EAAA,CAAA,CAAA;IAeX;AAAZ,CAAA,UAAY,UAAU,EAAA;AACrB,IAAA,UAAA,CAAA,UAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAM;AACN,IAAA,UAAA,CAAA,UAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAU;AACV,IAAA,UAAA,CAAA,UAAA,CAAA,YAAA,CAAA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E,IAAA,QACE,gBAAgB,EAAE,aAAa,IAAI;AACnC,QAAA,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC;QACjC,gBAAgB,EAAE,cAAc,IAAI;AACpC,QAAA,gBAAgB;AAEpB,CAAC;MAEY,yBAAyB,GAAsB,CAC1D,GAAyB,EACzB,IAAmB,KACjB;AACF,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,IAAI;AAC7E,IAAA,MAAM,QAAQ,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAElD,IAAA,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC;AAC3B,QAAA,UAAU,EAAE;AACV,YAAA,iBAAiB,EAAE;AACpB;AACF,KAAA,CAAC;AAEF,IAAA,OAAO,IAAI,CAAC,UAAU,CAAC;AACzB;;AC9BA;;ACAA;;AAEG;;"}
|
|
@@ -298,9 +298,21 @@ class RecordSummaryService extends RestClient {
|
|
|
298
298
|
match(url) {
|
|
299
299
|
const path = url.split(/[?#]/)[0];
|
|
300
300
|
const route = RECORD_ROUTES.find((item) => path.startsWith(item.prefix));
|
|
301
|
-
const id = route ? path.slice(route.prefix.length).split('/')[0] :
|
|
301
|
+
const id = route ? this.recordId(path.slice(route.prefix.length).split('/')[0]) : null;
|
|
302
302
|
return route && id ? { type: route.type, id } : null;
|
|
303
303
|
}
|
|
304
|
+
// A pasted id can carry a bullet or a space around the number (TCOD-1399); anything else is not a record id
|
|
305
|
+
recordId(segment) {
|
|
306
|
+
let value = segment;
|
|
307
|
+
try {
|
|
308
|
+
value = decodeURIComponent(segment);
|
|
309
|
+
}
|
|
310
|
+
catch {
|
|
311
|
+
// a malformed escape keeps the raw segment
|
|
312
|
+
}
|
|
313
|
+
const match = value.trim().match(/^\D*(\d+)\D*$/);
|
|
314
|
+
return match ? match[1] : null;
|
|
315
|
+
}
|
|
304
316
|
// The status of an account needs an extra call, so it is read only where the status is shown
|
|
305
317
|
resolve(route, withStatus = false) {
|
|
306
318
|
return this.describe(route, withStatus).pipe(timeout(RESOLVE_TIMEOUT_MS), catchError((error) => of(error === RECORD_GONE ? this.goneRecord(route) : null)));
|