@alfresco/adf-core 8.4.0-17645733517 → 8.4.0-17676172540
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/fesm2022/adf-core.mjs +5 -5
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-api.mjs +3 -5
- package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
- package/package.json +4 -5
- package/schematics/migrations/schematics/migrations/7_0_0/index.d.ts +1 -2
- package/schematics/migrations/schematics/migrations/7_0_0/index.js +46 -59
- package/schematics/migrations/schematics/migrations/7_0_0/index.js.map +1 -1
- package/schematics/migrations/schematics/migrations/collection.json +0 -5
|
@@ -3,7 +3,7 @@ import * as i1 from '@angular/common/http';
|
|
|
3
3
|
import { HttpEventType, HttpUrlEncodingCodec, HttpParams, HttpContext, HttpHeaders } from '@angular/common/http';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { Injectable } from '@angular/core';
|
|
6
|
-
import { Subject, of, throwError } from 'rxjs';
|
|
6
|
+
import { Subject, lastValueFrom, of, throwError } from 'rxjs';
|
|
7
7
|
import { map, catchError, takeUntil } from 'rxjs/operators';
|
|
8
8
|
import ee from 'event-emitter';
|
|
9
9
|
|
|
@@ -291,8 +291,7 @@ class AdfHttpClient {
|
|
|
291
291
|
requestWithLegacyEventEmitters(request$, emitters, returnType) {
|
|
292
292
|
const abort$ = new Subject();
|
|
293
293
|
const { eventEmitter, apiClientEmitter } = emitters;
|
|
294
|
-
const promise = request
|
|
295
|
-
.pipe(map((res) => {
|
|
294
|
+
const promise = lastValueFrom(request$.pipe(map((res) => {
|
|
296
295
|
if (isHttpUploadProgressEvent(res)) {
|
|
297
296
|
const percent = Math.round((res.loaded / res.total) * 100);
|
|
298
297
|
eventEmitter.emit('progress', { loaded: res.loaded, total: res.total, percent });
|
|
@@ -325,8 +324,7 @@ class AdfHttpClient {
|
|
|
325
324
|
};
|
|
326
325
|
const alfrescoApiError = new AlfrescoApiResponseError(msg, err.status, error);
|
|
327
326
|
return throwError(alfrescoApiError);
|
|
328
|
-
}), takeUntil(abort$))
|
|
329
|
-
.toPromise();
|
|
327
|
+
}), takeUntil(abort$)));
|
|
330
328
|
promise.abort = function () {
|
|
331
329
|
eventEmitter.emit('abort');
|
|
332
330
|
abort$.next();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alfresco-adf-core-api.mjs","sources":["../../../../lib/core/api/src/lib/types.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.utils.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.param-encoder.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.response-error.ts","../../../../lib/core/api/src/lib/adf-http-client.service.ts","../../../../lib/core/api/src/lib/interfaces.ts","../../../../lib/core/api/src/index.ts","../../../../lib/core/api/src/alfresco-adf-core-api.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface Dictionary<T> {\n [key: string]: T;\n}\n\nexport type Constructor<T> = new (...args: any[]) => T;\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HttpEvent,\n HttpUploadProgressEvent,\n HttpEventType,\n HttpResponse,\n HttpParams,\n HttpParameterCodec,\n HttpUrlEncodingCodec\n} from '@angular/common/http';\nimport { Constructor } from '../types';\n\nexport const isHttpUploadProgressEvent = <T>(val: HttpEvent<T>): val is HttpUploadProgressEvent => val.type === HttpEventType.UploadProgress;\nexport const isHttpResponseEvent = <T>(val: HttpEvent<T>): val is HttpResponse<T> => val.type === HttpEventType.Response;\nexport const isDate = (value: unknown): value is Date => value instanceof Date;\nexport const isXML = (value: unknown): boolean => typeof value === 'string' && value.startsWith('<?xml');\nexport const isBlobResponse = (response: HttpResponse<any>, returnType: Constructor<unknown> | 'blob'): response is HttpResponse<Blob> =>\n returnType === 'blob' || response.body instanceof Blob;\nexport const isConstructor = <T = unknown>(value: any): value is Constructor<T> =>\n typeof value === 'function' && !!value?.prototype?.constructor.name;\n\nconst convertParamsToString = (value: any): any => (isDate(value) ? value.toISOString() : value);\nexport const getQueryParamsWithCustomEncoder = (\n obj: Record<string | number, unknown>,\n encoder: HttpParameterCodec = new HttpUrlEncodingCodec()\n): HttpParams | undefined => {\n if (!obj) {\n return undefined;\n }\n\n let httpParams = new HttpParams({\n encoder\n });\n\n const params = removeNilValues(obj);\n\n for (const key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) {\n const value = params[key];\n if (value instanceof Array) {\n const array = value.map(convertParamsToString).filter(Boolean);\n httpParams = httpParams.appendAll({\n [key]: array\n });\n } else {\n httpParams = httpParams.append(key, convertParamsToString(value));\n }\n }\n }\n\n return httpParams;\n};\n\n/**\n * Removes null and undefined values from an object.\n *\n * @param obj object to process\n * @returns object with updated values\n */\nexport const removeNilValues = (obj: Record<string | number, unknown>) => {\n if (!obj) {\n return {};\n }\n\n return Object.keys(obj).reduce((acc, key) => {\n const value = obj[key];\n const isNil = value === undefined || value === null;\n return isNil ? acc : { ...acc, [key]: value };\n }, {});\n};\n\nexport const convertObjectToFormData = (formParams: Record<string | number, string | Blob | Array<string | Blob>>): FormData => {\n const formData = new FormData();\n\n for (const key in formParams) {\n if (Object.prototype.hasOwnProperty.call(formParams, key)) {\n const value = formParams[key];\n if (value instanceof File) {\n formData.append(key, value, value.name);\n } else if (Array.isArray(value)) {\n value.forEach((item) => formData.append(key, item));\n } else {\n formData.append(key, value);\n }\n }\n }\n\n return formData;\n};\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HttpParameterCodec } from '@angular/common/http';\n\n// The default implementation of HttpParameterCodec from angular\n// does not encode some special characters like + with is causing issues with the alfresco js API and returns 500 error\n\nexport class AlfrescoApiParamEncoder implements HttpParameterCodec {\n encodeKey(key: string): string {\n return encodeURIComponent(key);\n }\n\n encodeValue(value: string): string {\n return encodeURIComponent(value);\n }\n\n decodeKey(key: string): string {\n return decodeURIComponent(key);\n }\n\n decodeValue(value: string): string {\n return decodeURIComponent(value);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class AlfrescoApiResponseError extends Error {\n public name = 'AlfrescoApiResponseError';\n\n constructor(msg: string, public status: number, public response: Record<string, any>) {\n super(msg);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SHOULD_ADD_AUTH_TOKEN } from '@alfresco/adf-core/auth';\nimport { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient } from '@alfresco/js-api';\nimport { HttpClient, HttpContext, HttpErrorResponse, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, of, Subject, throwError } from 'rxjs';\nimport { catchError, map, takeUntil } from 'rxjs/operators';\nimport {\n convertObjectToFormData,\n getQueryParamsWithCustomEncoder,\n isBlobResponse,\n isConstructor,\n isHttpResponseEvent,\n isHttpUploadProgressEvent,\n removeNilValues\n} from './alfresco-api/alfresco-api.utils';\nimport { AlfrescoApiParamEncoder } from './alfresco-api/alfresco-api.param-encoder';\nimport { AlfrescoApiResponseError } from './alfresco-api/alfresco-api.response-error';\nimport { Constructor } from './types';\nimport { RequestOptions, SecurityOptions } from './interfaces';\nimport ee, { Emitter } from 'event-emitter';\n\nexport interface Emitters {\n readonly eventEmitter: Emitter;\n readonly apiClientEmitter: Emitter;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AdfHttpClient implements ee.Emitter, JsApiHttpClient {\n on: ee.EmitterMethod;\n off: ee.EmitterMethod;\n once: ee.EmitterMethod;\n _disableCsrf: boolean;\n\n emit: (type: string, ...args: any[]) => void;\n\n get disableCsrf(): boolean {\n return this._disableCsrf;\n }\n\n set disableCsrf(disableCsrf: boolean) {\n this._disableCsrf = disableCsrf;\n }\n\n private defaultSecurityOptions = {\n withCredentials: true,\n isBpmRequest: false,\n authentications: {},\n defaultHeaders: {}\n };\n\n constructor(private httpClient: HttpClient) {\n ee(this);\n }\n\n setDefaultSecurityOption(options: any) {\n this.defaultSecurityOptions = this.merge(this.defaultSecurityOptions, options);\n }\n\n merge(...objects): any {\n const result = {};\n\n objects.forEach((source) => {\n Object.keys(source).forEach((prop) => {\n if (prop in result && Array.isArray(result[prop])) {\n result[prop] = result[prop].concat(source[prop]);\n } else if (prop in result && typeof result[prop] === 'object') {\n result[prop] = this.merge(result[prop], source[prop]);\n } else {\n result[prop] = source[prop];\n }\n });\n });\n\n return result;\n }\n\n request<T = any>(url: string, options?: RequestOptions, sc: SecurityOptions = this.defaultSecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n const body = AdfHttpClient.getBody(options);\n const params = getQueryParamsWithCustomEncoder(options.queryParams, new AlfrescoApiParamEncoder());\n const responseType = AdfHttpClient.getResponseType(options);\n const context = new HttpContext().set(SHOULD_ADD_AUTH_TOKEN, true);\n const security: SecurityOptions = { ...this.defaultSecurityOptions, ...sc };\n const headers = this.getHeaders(options);\n if (!emitters) {\n emitters = this.getEventEmitters();\n }\n\n const request = this.httpClient.request(options.httpMethod, url, {\n context,\n ...(body && { body }),\n ...(responseType && { responseType }),\n ...security,\n ...(params && { params }),\n headers,\n observe: 'events',\n reportProgress: true\n });\n\n return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType);\n }\n\n post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'POST' }, sc, emitters);\n }\n\n put<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'PUT' }, sc, emitters);\n }\n\n get<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'GET' }, sc, emitters);\n }\n\n delete<T = void>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'DELETE' }, sc, emitters);\n }\n\n private addPromiseListeners<T = any>(promise: Promise<T>, eventEmitter: any) {\n const eventPromise = Object.assign(promise, {\n on() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.on.apply(eventEmitter, arguments);\n return this;\n },\n once() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.once.apply(eventEmitter, arguments);\n return this;\n },\n emit() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.emit.apply(eventEmitter, arguments);\n return this;\n },\n off() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.off.apply(eventEmitter, arguments);\n return this;\n }\n });\n\n return eventPromise;\n }\n\n private getEventEmitters(): Emitters {\n const apiClientEmitter = {\n on: this.on.bind(this),\n off: this.off.bind(this),\n once: this.once.bind(this),\n emit: this.emit.bind(this)\n };\n\n return {\n apiClientEmitter,\n eventEmitter: ee({})\n };\n }\n\n private requestWithLegacyEventEmitters<T = any>(request$: Observable<HttpEvent<T>>, emitters: JsApiEmitters, returnType: any): Promise<T> {\n const abort$ = new Subject<void>();\n const { eventEmitter, apiClientEmitter } = emitters;\n\n const promise = request$\n .pipe(\n map((res) => {\n if (isHttpUploadProgressEvent(res)) {\n const percent = Math.round((res.loaded / res.total) * 100);\n eventEmitter.emit('progress', { loaded: res.loaded, total: res.total, percent });\n }\n\n if (isHttpResponseEvent(res)) {\n eventEmitter.emit('success', res.body);\n return AdfHttpClient.deserialize(res, returnType);\n }\n }),\n catchError((err: HttpErrorResponse): Observable<AlfrescoApiResponseError> => {\n // since we can't always determinate ahead of time if the response is going to be xml or plain text response\n // we need to handle false positive cases here.\n\n if (err.status === 200) {\n eventEmitter.emit('success', err.error.text);\n return of(err.error.text);\n }\n\n eventEmitter.emit('error', err);\n apiClientEmitter.emit('error', { ...err, response: { req: err } });\n\n if (err.status === 401) {\n eventEmitter.emit('unauthorized');\n apiClientEmitter.emit('unauthorized');\n }\n\n // for backwards compatibility we need to convert it to error class as the HttpErrorResponse only implements Error interface, not extending it,\n // and we need to be able to correctly pass instanceof Error conditions used inside repository\n // we also need to pass error as Stringify string as we are detecting statusCodes using JSON.parse(error.message) in some places\n const msg = typeof err.error === 'string' ? err.error : JSON.stringify(err.error);\n\n // for backwards compatibility to handle cases in code where we try read response.error.response.body;\n\n const error = {\n ...err,\n body: err.error\n };\n\n const alfrescoApiError = new AlfrescoApiResponseError(msg, err.status, error);\n return throwError(alfrescoApiError);\n }),\n takeUntil(abort$)\n )\n .toPromise();\n\n (promise as any).abort = function () {\n eventEmitter.emit('abort');\n abort$.next();\n abort$.complete();\n return this;\n };\n\n return this.addPromiseListeners(promise, eventEmitter);\n }\n\n private static getBody(options: RequestOptions): any {\n const contentType = options.contentType ? options.contentType : AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const isFormData = contentType === 'multipart/form-data';\n const isFormUrlEncoded = contentType === 'application/x-www-form-urlencoded';\n const body = options.bodyParam;\n\n if (isFormData) {\n return convertObjectToFormData(options.formParams);\n }\n\n if (isFormUrlEncoded) {\n return new HttpParams({ fromObject: removeNilValues(options.formParams) });\n }\n\n return body;\n }\n\n private getHeaders(options: RequestOptions): HttpHeaders {\n const contentType = options.contentType || AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const accept = options.accept || AdfHttpClient.jsonPreferredMime(options.accepts);\n\n const optionsHeaders = {\n ...options.headerParams,\n ...(accept && { Accept: accept }),\n ...(contentType && { 'Content-Type': contentType })\n };\n\n if (!this.disableCsrf) {\n this.setCsrfToken(optionsHeaders);\n }\n\n return new HttpHeaders(optionsHeaders);\n }\n\n /**\n * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n *\n * @param contentTypes a contentType array\n * @returns The chosen content type, preferring JSON.\n */\n private static jsonPreferredMime(contentTypes: readonly string[]): string {\n if (!contentTypes?.length) {\n return 'application/json';\n }\n\n for (let i = 0; i < contentTypes.length; i++) {\n if (AdfHttpClient.isJsonMime(contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n }\n\n /**\n * Checks whether the given content type represents JSON.<br>\n * JSON content type examples:<br>\n * <ul>\n * <li>application/json</li>\n * <li>application/json; charset=UTF8</li>\n * <li>APPLICATION/JSON</li>\n * </ul>\n *\n * @param contentType The MIME content type to check.\n * @returns <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.\n */\n private static isJsonMime(contentType: string): boolean {\n return Boolean(contentType?.match(/^application\\/json(;.*)?$/i));\n }\n\n private setCsrfToken(optionsHeaders: any) {\n const token = this.createCSRFToken();\n optionsHeaders['X-CSRF-TOKEN'] = token;\n\n try {\n document.cookie = 'CSRF-TOKEN=' + token + ';path=/';\n } catch {\n /* continue regardless of error */\n }\n }\n\n private createCSRFToken(a?: any): string {\n const randomValue = AdfHttpClient.getSecureRandomValue();\n return a ? (a ^ ((randomValue * 16) >> (a / 4))).toString(16) : ([1e16] + (1e16).toString()).replace(/[01]/g, this.createCSRFToken);\n }\n\n private static getSecureRandomValue(): number {\n const max = Math.pow(2, 32);\n return window.crypto.getRandomValues(new Uint32Array(1))[0] / max;\n }\n\n private static getResponseType(options: RequestOptions): 'blob' | 'json' | 'text' {\n const isBlobType = options.returnType?.toString().toLowerCase() === 'blob' || options.responseType?.toString().toLowerCase() === 'blob';\n\n if (isBlobType) {\n return 'blob';\n }\n\n if (options.returnType === 'String') {\n return 'text';\n }\n\n return 'json';\n }\n\n /**\n * Deserialize an HTTP response body into a value of the specified type.\n *\n * @param response response object\n * @param returnType return type\n * @returns deserialized object\n */\n private static deserialize<T>(response: HttpResponse<T>, returnType?: Constructor<unknown> | 'blob'): any {\n if (response === null) {\n return null;\n }\n\n const body = response.body;\n\n if (!returnType) {\n // for backwards compatibility we need to return empty string instead of null,\n // to avoid issues when accessing null response would break application [C309878]\n // cannot read property 'entry' of null in cases like\n // return this.post(apiUrl, saveFormRepresentation).pipe(map((res: any) => res.entry))\n\n return body !== null ? body : '';\n }\n\n if (isBlobResponse(response, returnType)) {\n return AdfHttpClient.deserializeBlobResponse(response);\n }\n\n if (!isConstructor(returnType)) {\n return body;\n }\n\n if (Array.isArray(body)) {\n return body.map((element) => new returnType(element));\n }\n\n return new returnType(body);\n }\n\n private static deserializeBlobResponse(response: HttpResponse<Blob>) {\n return new Blob([response.body], { type: response.headers.get('Content-Type') });\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SecurityOptions {\n readonly withCredentials?: boolean;\n readonly authentications?: Authentication;\n readonly defaultHeaders?: Record<string, string>;\n}\n\nexport interface Oauth2 {\n refreshToken?: string;\n accessToken?: string;\n}\n\nexport interface BasicAuth {\n username?: string;\n password?: string;\n ticket?: string;\n}\n\nexport interface Authentication {\n basicAuth?: BasicAuth;\n oauth2?: Oauth2;\n cookie?: string;\n type?: string;\n}\n\nexport interface RequestOptions {\n httpMethod?: string;\n pathParams?: any;\n queryParams?: any;\n headerParams?: any;\n formParams?: any;\n bodyParam?: any;\n returnType?: any;\n responseType?: string;\n accepts?: string[];\n contentTypes?: string[];\n readonly accept?: string;\n readonly contentType?: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/types';\nexport * from './lib/adf-http-client.service';\nexport * from './lib/interfaces';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;;ACfH;;;;;;;;;;;;;;;AAeG;AAaI,MAAM,yBAAyB,GAAG,CAAI,GAAiB,KAAqC,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,cAAc;AACrI,MAAM,mBAAmB,GAAG,CAAI,GAAiB,KAA6B,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,QAAQ;AACjH,MAAM,MAAM,GAAG,CAAC,KAAc,KAAoB,KAAK,YAAY,IAAI;AACvE,MAAM,KAAK,GAAG,CAAC,KAAc,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;AACjG,MAAM,cAAc,GAAG,CAAC,QAA2B,EAAE,UAAyC,KACjG,UAAU,KAAK,MAAM,IAAI,QAAQ,CAAC,IAAI,YAAY,IAAI;AACnD,MAAM,aAAa,GAAG,CAAc,KAAU,KACjD,OAAO,KAAK,KAAK,UAAU,IAAI,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI;AAEvE,MAAM,qBAAqB,GAAG,CAAC,KAAU,MAAW,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC;AACzF,MAAM,+BAA+B,GAAG,CAC3C,GAAqC,EACrC,OAAA,GAA8B,IAAI,oBAAoB,EAAE,KAChC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BAAA;;;AC7CD;;;;;;;;;;;;;;;AAeG;;ACfH;;;;;;;;;;;;;;;AAeG;;ACfH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"alfresco-adf-core-api.mjs","sources":["../../../../lib/core/api/src/lib/types.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.utils.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.param-encoder.ts","../../../../lib/core/api/src/lib/alfresco-api/alfresco-api.response-error.ts","../../../../lib/core/api/src/lib/adf-http-client.service.ts","../../../../lib/core/api/src/lib/interfaces.ts","../../../../lib/core/api/src/index.ts","../../../../lib/core/api/src/alfresco-adf-core-api.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface Dictionary<T> {\n [key: string]: T;\n}\n\nexport type Constructor<T> = new (...args: any[]) => T;\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n HttpEvent,\n HttpUploadProgressEvent,\n HttpEventType,\n HttpResponse,\n HttpParams,\n HttpParameterCodec,\n HttpUrlEncodingCodec\n} from '@angular/common/http';\nimport { Constructor } from '../types';\n\nexport const isHttpUploadProgressEvent = <T>(val: HttpEvent<T>): val is HttpUploadProgressEvent => val.type === HttpEventType.UploadProgress;\nexport const isHttpResponseEvent = <T>(val: HttpEvent<T>): val is HttpResponse<T> => val.type === HttpEventType.Response;\nexport const isDate = (value: unknown): value is Date => value instanceof Date;\nexport const isXML = (value: unknown): boolean => typeof value === 'string' && value.startsWith('<?xml');\nexport const isBlobResponse = (response: HttpResponse<any>, returnType: Constructor<unknown> | 'blob'): response is HttpResponse<Blob> =>\n returnType === 'blob' || response.body instanceof Blob;\nexport const isConstructor = <T = unknown>(value: any): value is Constructor<T> =>\n typeof value === 'function' && !!value?.prototype?.constructor.name;\n\nconst convertParamsToString = (value: any): any => (isDate(value) ? value.toISOString() : value);\nexport const getQueryParamsWithCustomEncoder = (\n obj: Record<string | number, unknown>,\n encoder: HttpParameterCodec = new HttpUrlEncodingCodec()\n): HttpParams | undefined => {\n if (!obj) {\n return undefined;\n }\n\n let httpParams = new HttpParams({\n encoder\n });\n\n const params = removeNilValues(obj);\n\n for (const key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) {\n const value = params[key];\n if (value instanceof Array) {\n const array = value.map(convertParamsToString).filter(Boolean);\n httpParams = httpParams.appendAll({\n [key]: array\n });\n } else {\n httpParams = httpParams.append(key, convertParamsToString(value));\n }\n }\n }\n\n return httpParams;\n};\n\n/**\n * Removes null and undefined values from an object.\n *\n * @param obj object to process\n * @returns object with updated values\n */\nexport const removeNilValues = (obj: Record<string | number, unknown>) => {\n if (!obj) {\n return {};\n }\n\n return Object.keys(obj).reduce((acc, key) => {\n const value = obj[key];\n const isNil = value === undefined || value === null;\n return isNil ? acc : { ...acc, [key]: value };\n }, {});\n};\n\nexport const convertObjectToFormData = (formParams: Record<string | number, string | Blob | Array<string | Blob>>): FormData => {\n const formData = new FormData();\n\n for (const key in formParams) {\n if (Object.prototype.hasOwnProperty.call(formParams, key)) {\n const value = formParams[key];\n if (value instanceof File) {\n formData.append(key, value, value.name);\n } else if (Array.isArray(value)) {\n value.forEach((item) => formData.append(key, item));\n } else {\n formData.append(key, value);\n }\n }\n }\n\n return formData;\n};\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HttpParameterCodec } from '@angular/common/http';\n\n// The default implementation of HttpParameterCodec from angular\n// does not encode some special characters like + with is causing issues with the alfresco js API and returns 500 error\n\nexport class AlfrescoApiParamEncoder implements HttpParameterCodec {\n encodeKey(key: string): string {\n return encodeURIComponent(key);\n }\n\n encodeValue(value: string): string {\n return encodeURIComponent(value);\n }\n\n decodeKey(key: string): string {\n return decodeURIComponent(key);\n }\n\n decodeValue(value: string): string {\n return decodeURIComponent(value);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class AlfrescoApiResponseError extends Error {\n public name = 'AlfrescoApiResponseError';\n\n constructor(msg: string, public status: number, public response: Record<string, any>) {\n super(msg);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SHOULD_ADD_AUTH_TOKEN } from '@alfresco/adf-core/auth';\nimport { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient } from '@alfresco/js-api';\nimport { HttpClient, HttpContext, HttpErrorResponse, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { lastValueFrom, Observable, of, Subject, throwError } from 'rxjs';\nimport { catchError, map, takeUntil } from 'rxjs/operators';\nimport {\n convertObjectToFormData,\n getQueryParamsWithCustomEncoder,\n isBlobResponse,\n isConstructor,\n isHttpResponseEvent,\n isHttpUploadProgressEvent,\n removeNilValues\n} from './alfresco-api/alfresco-api.utils';\nimport { AlfrescoApiParamEncoder } from './alfresco-api/alfresco-api.param-encoder';\nimport { AlfrescoApiResponseError } from './alfresco-api/alfresco-api.response-error';\nimport { Constructor } from './types';\nimport { RequestOptions, SecurityOptions } from './interfaces';\nimport ee, { Emitter } from 'event-emitter';\n\nexport interface Emitters {\n readonly eventEmitter: Emitter;\n readonly apiClientEmitter: Emitter;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AdfHttpClient implements ee.Emitter, JsApiHttpClient {\n on: ee.EmitterMethod;\n off: ee.EmitterMethod;\n once: ee.EmitterMethod;\n _disableCsrf: boolean;\n\n emit: (type: string, ...args: any[]) => void;\n\n get disableCsrf(): boolean {\n return this._disableCsrf;\n }\n\n set disableCsrf(disableCsrf: boolean) {\n this._disableCsrf = disableCsrf;\n }\n\n private defaultSecurityOptions = {\n withCredentials: true,\n isBpmRequest: false,\n authentications: {},\n defaultHeaders: {}\n };\n\n constructor(private httpClient: HttpClient) {\n ee(this);\n }\n\n setDefaultSecurityOption(options: any) {\n this.defaultSecurityOptions = this.merge(this.defaultSecurityOptions, options);\n }\n\n merge(...objects): any {\n const result = {};\n\n objects.forEach((source) => {\n Object.keys(source).forEach((prop) => {\n if (prop in result && Array.isArray(result[prop])) {\n result[prop] = result[prop].concat(source[prop]);\n } else if (prop in result && typeof result[prop] === 'object') {\n result[prop] = this.merge(result[prop], source[prop]);\n } else {\n result[prop] = source[prop];\n }\n });\n });\n\n return result;\n }\n\n request<T = any>(url: string, options?: RequestOptions, sc: SecurityOptions = this.defaultSecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n const body = AdfHttpClient.getBody(options);\n const params = getQueryParamsWithCustomEncoder(options.queryParams, new AlfrescoApiParamEncoder());\n const responseType = AdfHttpClient.getResponseType(options);\n const context = new HttpContext().set(SHOULD_ADD_AUTH_TOKEN, true);\n const security: SecurityOptions = { ...this.defaultSecurityOptions, ...sc };\n const headers = this.getHeaders(options);\n if (!emitters) {\n emitters = this.getEventEmitters();\n }\n\n const request = this.httpClient.request(options.httpMethod, url, {\n context,\n ...(body && { body }),\n ...(responseType && { responseType }),\n ...security,\n ...(params && { params }),\n headers,\n observe: 'events',\n reportProgress: true\n });\n\n return this.requestWithLegacyEventEmitters<T>(request, emitters, options.returnType);\n }\n\n post<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'POST' }, sc, emitters);\n }\n\n put<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'PUT' }, sc, emitters);\n }\n\n get<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'GET' }, sc, emitters);\n }\n\n delete<T = void>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T> {\n return this.request<T>(url, { ...options, httpMethod: 'DELETE' }, sc, emitters);\n }\n\n private addPromiseListeners<T = any>(promise: Promise<T>, eventEmitter: any) {\n const eventPromise = Object.assign(promise, {\n on() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.on.apply(eventEmitter, arguments);\n return this;\n },\n once() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.once.apply(eventEmitter, arguments);\n return this;\n },\n emit() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.emit.apply(eventEmitter, arguments);\n return this;\n },\n off() {\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n eventEmitter.off.apply(eventEmitter, arguments);\n return this;\n }\n });\n\n return eventPromise;\n }\n\n private getEventEmitters(): Emitters {\n const apiClientEmitter = {\n on: this.on.bind(this),\n off: this.off.bind(this),\n once: this.once.bind(this),\n emit: this.emit.bind(this)\n };\n\n return {\n apiClientEmitter,\n eventEmitter: ee({})\n };\n }\n\n private requestWithLegacyEventEmitters<T = any>(request$: Observable<HttpEvent<T>>, emitters: JsApiEmitters, returnType: any): Promise<T> {\n const abort$ = new Subject<void>();\n const { eventEmitter, apiClientEmitter } = emitters;\n\n const promise = lastValueFrom(\n request$.pipe(\n map((res) => {\n if (isHttpUploadProgressEvent(res)) {\n const percent = Math.round((res.loaded / res.total) * 100);\n eventEmitter.emit('progress', { loaded: res.loaded, total: res.total, percent });\n }\n\n if (isHttpResponseEvent(res)) {\n eventEmitter.emit('success', res.body);\n return AdfHttpClient.deserialize(res, returnType);\n }\n }),\n catchError((err: HttpErrorResponse): Observable<AlfrescoApiResponseError> => {\n // since we can't always determinate ahead of time if the response is going to be xml or plain text response\n // we need to handle false positive cases here.\n\n if (err.status === 200) {\n eventEmitter.emit('success', err.error.text);\n return of(err.error.text);\n }\n\n eventEmitter.emit('error', err);\n apiClientEmitter.emit('error', { ...err, response: { req: err } });\n\n if (err.status === 401) {\n eventEmitter.emit('unauthorized');\n apiClientEmitter.emit('unauthorized');\n }\n\n // for backwards compatibility we need to convert it to error class as the HttpErrorResponse only implements Error interface, not extending it,\n // and we need to be able to correctly pass instanceof Error conditions used inside repository\n // we also need to pass error as Stringify string as we are detecting statusCodes using JSON.parse(error.message) in some places\n const msg = typeof err.error === 'string' ? err.error : JSON.stringify(err.error);\n\n // for backwards compatibility to handle cases in code where we try read response.error.response.body;\n\n const error = {\n ...err,\n body: err.error\n };\n\n const alfrescoApiError = new AlfrescoApiResponseError(msg, err.status, error);\n return throwError(alfrescoApiError);\n }),\n takeUntil(abort$)\n )\n );\n\n (promise as any).abort = function () {\n eventEmitter.emit('abort');\n abort$.next();\n abort$.complete();\n return this;\n };\n\n return this.addPromiseListeners(promise, eventEmitter);\n }\n\n private static getBody(options: RequestOptions): any {\n const contentType = options.contentType ? options.contentType : AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const isFormData = contentType === 'multipart/form-data';\n const isFormUrlEncoded = contentType === 'application/x-www-form-urlencoded';\n const body = options.bodyParam;\n\n if (isFormData) {\n return convertObjectToFormData(options.formParams);\n }\n\n if (isFormUrlEncoded) {\n return new HttpParams({ fromObject: removeNilValues(options.formParams) });\n }\n\n return body;\n }\n\n private getHeaders(options: RequestOptions): HttpHeaders {\n const contentType = options.contentType || AdfHttpClient.jsonPreferredMime(options.contentTypes);\n const accept = options.accept || AdfHttpClient.jsonPreferredMime(options.accepts);\n\n const optionsHeaders = {\n ...options.headerParams,\n ...(accept && { Accept: accept }),\n ...(contentType && { 'Content-Type': contentType })\n };\n\n if (!this.disableCsrf) {\n this.setCsrfToken(optionsHeaders);\n }\n\n return new HttpHeaders(optionsHeaders);\n }\n\n /**\n * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n *\n * @param contentTypes a contentType array\n * @returns The chosen content type, preferring JSON.\n */\n private static jsonPreferredMime(contentTypes: readonly string[]): string {\n if (!contentTypes?.length) {\n return 'application/json';\n }\n\n for (let i = 0; i < contentTypes.length; i++) {\n if (AdfHttpClient.isJsonMime(contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n }\n\n /**\n * Checks whether the given content type represents JSON.<br>\n * JSON content type examples:<br>\n * <ul>\n * <li>application/json</li>\n * <li>application/json; charset=UTF8</li>\n * <li>APPLICATION/JSON</li>\n * </ul>\n *\n * @param contentType The MIME content type to check.\n * @returns <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.\n */\n private static isJsonMime(contentType: string): boolean {\n return Boolean(contentType?.match(/^application\\/json(;.*)?$/i));\n }\n\n private setCsrfToken(optionsHeaders: any) {\n const token = this.createCSRFToken();\n optionsHeaders['X-CSRF-TOKEN'] = token;\n\n try {\n document.cookie = 'CSRF-TOKEN=' + token + ';path=/';\n } catch {\n /* continue regardless of error */\n }\n }\n\n private createCSRFToken(a?: any): string {\n const randomValue = AdfHttpClient.getSecureRandomValue();\n return a ? (a ^ ((randomValue * 16) >> (a / 4))).toString(16) : ([1e16] + (1e16).toString()).replace(/[01]/g, this.createCSRFToken);\n }\n\n private static getSecureRandomValue(): number {\n const max = Math.pow(2, 32);\n return window.crypto.getRandomValues(new Uint32Array(1))[0] / max;\n }\n\n private static getResponseType(options: RequestOptions): 'blob' | 'json' | 'text' {\n const isBlobType = options.returnType?.toString().toLowerCase() === 'blob' || options.responseType?.toString().toLowerCase() === 'blob';\n\n if (isBlobType) {\n return 'blob';\n }\n\n if (options.returnType === 'String') {\n return 'text';\n }\n\n return 'json';\n }\n\n /**\n * Deserialize an HTTP response body into a value of the specified type.\n *\n * @param response response object\n * @param returnType return type\n * @returns deserialized object\n */\n private static deserialize<T>(response: HttpResponse<T>, returnType?: Constructor<unknown> | 'blob'): any {\n if (response === null) {\n return null;\n }\n\n const body = response.body;\n\n if (!returnType) {\n // for backwards compatibility we need to return empty string instead of null,\n // to avoid issues when accessing null response would break application [C309878]\n // cannot read property 'entry' of null in cases like\n // return this.post(apiUrl, saveFormRepresentation).pipe(map((res: any) => res.entry))\n\n return body !== null ? body : '';\n }\n\n if (isBlobResponse(response, returnType)) {\n return AdfHttpClient.deserializeBlobResponse(response);\n }\n\n if (!isConstructor(returnType)) {\n return body;\n }\n\n if (Array.isArray(body)) {\n return body.map((element) => new returnType(element));\n }\n\n return new returnType(body);\n }\n\n private static deserializeBlobResponse(response: HttpResponse<Blob>) {\n return new Blob([response.body], { type: response.headers.get('Content-Type') });\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SecurityOptions {\n readonly withCredentials?: boolean;\n readonly authentications?: Authentication;\n readonly defaultHeaders?: Record<string, string>;\n}\n\nexport interface Oauth2 {\n refreshToken?: string;\n accessToken?: string;\n}\n\nexport interface BasicAuth {\n username?: string;\n password?: string;\n ticket?: string;\n}\n\nexport interface Authentication {\n basicAuth?: BasicAuth;\n oauth2?: Oauth2;\n cookie?: string;\n type?: string;\n}\n\nexport interface RequestOptions {\n httpMethod?: string;\n pathParams?: any;\n queryParams?: any;\n headerParams?: any;\n formParams?: any;\n bodyParam?: any;\n returnType?: any;\n responseType?: string;\n accepts?: string[];\n contentTypes?: string[];\n readonly accept?: string;\n readonly contentType?: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/types';\nexport * from './lib/adf-http-client.service';\nexport * from './lib/interfaces';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;;ACfH;;;;;;;;;;;;;;;AAeG;AAaI,MAAM,yBAAyB,GAAG,CAAI,GAAiB,KAAqC,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,cAAc;AACrI,MAAM,mBAAmB,GAAG,CAAI,GAAiB,KAA6B,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC,QAAQ;AACjH,MAAM,MAAM,GAAG,CAAC,KAAc,KAAoB,KAAK,YAAY,IAAI;AACvE,MAAM,KAAK,GAAG,CAAC,KAAc,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;AACjG,MAAM,cAAc,GAAG,CAAC,QAA2B,EAAE,UAAyC,KACjG,UAAU,KAAK,MAAM,IAAI,QAAQ,CAAC,IAAI,YAAY,IAAI;AACnD,MAAM,aAAa,GAAG,CAAc,KAAU,KACjD,OAAO,KAAK,KAAK,UAAU,IAAI,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI;AAEvE,MAAM,qBAAqB,GAAG,CAAC,KAAU,MAAW,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC;AACzF,MAAM,+BAA+B,GAAG,CAC3C,GAAqC,EACrC,OAAA,GAA8B,IAAI,oBAAoB,EAAE,KAChC;IACxB,IAAI,CAAC,GAAG,EAAE;AACN,QAAA,OAAO,SAAS;IACpB;AAEA,IAAA,IAAI,UAAU,GAAG,IAAI,UAAU,CAAC;QAC5B;AACH,KAAA,CAAC;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|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "8.4.0-
|
|
4
|
+
"version": "8.4.0-17676172540",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,11 +63,10 @@
|
|
|
63
63
|
"@angular/router": ">=16.0.0",
|
|
64
64
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
65
65
|
"@ngx-translate/core": ">=16.0.0",
|
|
66
|
-
"@alfresco/js-api": ">=9.4.0-
|
|
67
|
-
"@alfresco/adf-extensions": ">=8.4.0-
|
|
66
|
+
"@alfresco/js-api": ">=9.4.0-17676172540",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.4.0-17676172540",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
|
-
"pdfjs-dist": ">=3.3.122"
|
|
70
|
-
"ts-morph": ">=20.0.0"
|
|
69
|
+
"pdfjs-dist": ">=3.3.122"
|
|
71
70
|
},
|
|
72
71
|
"keywords": [
|
|
73
72
|
"core",
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { Rule, Tree } from '@angular-devkit/schematics';
|
|
18
|
-
import { Project } from 'ts-morph';
|
|
19
18
|
/**
|
|
20
19
|
* @returns Schematic rule for updating imports
|
|
21
20
|
*/
|
|
22
21
|
export declare function updateAlfrescoApiImports(): Rule;
|
|
23
|
-
export declare const visitor: (filePath: string, tree: Pick<Tree, "read" | "overwrite"
|
|
22
|
+
export declare const visitor: (filePath: string, tree: Pick<Tree, "read" | "overwrite">) => void;
|
|
24
23
|
export default updateAlfrescoApiImports;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.visitor = void 0;
|
|
20
20
|
exports.updateAlfrescoApiImports = updateAlfrescoApiImports;
|
|
21
|
+
const ts = require("typescript");
|
|
21
22
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
22
|
-
const ts_morph_1 = require("ts-morph");
|
|
23
23
|
const alfrescoApiServiceMigration = {
|
|
24
24
|
change: {
|
|
25
25
|
importedValue: 'AlfrescoApiService',
|
|
@@ -55,14 +55,12 @@ const migrations = [alfrescoApiServiceMigration, alfrescoApiMockMigration, alfre
|
|
|
55
55
|
* @returns Schematic rule for updating imports
|
|
56
56
|
*/
|
|
57
57
|
function updateAlfrescoApiImports() {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return (tree, _context) => {
|
|
61
|
-
tree.visit((filePath) => (0, exports.visitor)(filePath, tree, project));
|
|
58
|
+
return (tree) => {
|
|
59
|
+
tree.visit((filePath) => (0, exports.visitor)(filePath, tree));
|
|
62
60
|
return tree;
|
|
63
61
|
};
|
|
64
62
|
}
|
|
65
|
-
const visitor = (filePath, tree
|
|
63
|
+
const visitor = (filePath, tree) => {
|
|
66
64
|
if (!filePath.includes('/.git/') &&
|
|
67
65
|
!filePath.includes('/node_modules/') &&
|
|
68
66
|
!filePath.includes('/.angular/') &&
|
|
@@ -72,8 +70,10 @@ const visitor = (filePath, tree, project) => {
|
|
|
72
70
|
if (!bufferFileContent) {
|
|
73
71
|
throw new schematics_1.SchematicsException(`Could not read file: ${filePath}`);
|
|
74
72
|
}
|
|
73
|
+
const fileContent = bufferFileContent.toString();
|
|
74
|
+
const sourceFile = ts.createSourceFile(filePath, fileContent, ts.ScriptTarget.Latest, true);
|
|
75
75
|
migrations.forEach((migrationData) => {
|
|
76
|
-
const fileWithUpdatedImport = moveImport(
|
|
76
|
+
const fileWithUpdatedImport = moveImport(bufferFileContent, sourceFile, migrationData);
|
|
77
77
|
if (fileWithUpdatedImport) {
|
|
78
78
|
tree.overwrite(filePath, fileWithUpdatedImport);
|
|
79
79
|
}
|
|
@@ -81,64 +81,51 @@ const visitor = (filePath, tree, project) => {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
exports.visitor = visitor;
|
|
84
|
-
const moveImport = (
|
|
85
|
-
var _a
|
|
84
|
+
const moveImport = (bufferFileContent, sourceFile, migrationData) => {
|
|
85
|
+
var _a;
|
|
86
86
|
const fileContent = bufferFileContent.toString();
|
|
87
87
|
const predictImport = fileContent.includes(migrationData.change.importedValue);
|
|
88
|
-
if (predictImport) {
|
|
89
|
-
|
|
90
|
-
const alfrescoApiImportResult = getImportedValueFromSource(sourceFile, {
|
|
91
|
-
importedIdentifier: migrationData.change.importedValue,
|
|
92
|
-
from: migrationData.change.importSource
|
|
93
|
-
});
|
|
94
|
-
if (alfrescoApiImportResult === null || alfrescoApiImportResult === void 0 ? void 0 : alfrescoApiImportResult.importedValue) {
|
|
95
|
-
if (alfrescoApiImportResult.allImportedValuesCount === 1) {
|
|
96
|
-
// There is only one import e.g. import { A } from 'A';
|
|
97
|
-
// Therefore, we need to remove whole import statement
|
|
98
|
-
(_b = alfrescoApiImportResult.importSource) === null || _b === void 0 ? void 0 : _b.remove();
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
(_c = alfrescoApiImportResult.importedValue) === null || _c === void 0 ? void 0 : _c.remove();
|
|
102
|
-
}
|
|
103
|
-
const alfrescoContentServiceImport = getSourceImport(sourceFile, migrationData.to.importSource);
|
|
104
|
-
if (alfrescoContentServiceImport) {
|
|
105
|
-
alfrescoContentServiceImport.addNamedImport(migrationData.to.importedValue);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
sourceFile.insertStatements(sourceFile.getImportDeclarations().length + 1, `import { ${migrationData.to.importedValue} } from '${migrationData.to.importSource}';`);
|
|
109
|
-
}
|
|
110
|
-
return sourceFile.getFullText();
|
|
111
|
-
}
|
|
88
|
+
if (!predictImport) {
|
|
89
|
+
return undefined;
|
|
112
90
|
}
|
|
113
|
-
|
|
114
|
-
};
|
|
115
|
-
const getSourceImport = (sourceFile, from) => {
|
|
116
|
-
const moduleImports = sourceFile.getImportDeclarations();
|
|
91
|
+
const moduleImports = sourceFile.statements.filter(ts.isImportDeclaration);
|
|
117
92
|
const importDeclaration = moduleImports.find((moduleImport) => {
|
|
118
|
-
const currentImportSource = moduleImport.
|
|
119
|
-
return currentImportSource ===
|
|
93
|
+
const currentImportSource = moduleImport.moduleSpecifier.getText().replace(/['"]/g, '');
|
|
94
|
+
return currentImportSource === migrationData.change.importSource;
|
|
120
95
|
});
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const getImportedValueFromSource = (sourceFile, searchedImport) => {
|
|
124
|
-
var _a;
|
|
125
|
-
const importSource = getSourceImport(sourceFile, searchedImport.from);
|
|
126
|
-
if (!importSource) {
|
|
127
|
-
return {
|
|
128
|
-
importedValue: undefined,
|
|
129
|
-
importSource: undefined,
|
|
130
|
-
allImportedValuesCount: undefined
|
|
131
|
-
};
|
|
96
|
+
if (!((_a = importDeclaration === null || importDeclaration === void 0 ? void 0 : importDeclaration.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings)) {
|
|
97
|
+
return undefined;
|
|
132
98
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
99
|
+
if (!ts.isNamedImports(importDeclaration.importClause.namedBindings)) {
|
|
100
|
+
return undefined;
|
|
101
|
+
}
|
|
102
|
+
const namedImportsElements = importDeclaration.importClause.namedBindings.elements;
|
|
103
|
+
const importedValue = namedImportsElements.find((binding) => binding.name.text === migrationData.change.importedValue);
|
|
104
|
+
if (importedValue) {
|
|
105
|
+
let updatedContent = namedImportsElements.length === 1
|
|
106
|
+
? removeTextRange(fileContent, importDeclaration.getFullStart(), importDeclaration.getEnd())
|
|
107
|
+
: removeTextRange(fileContent, importedValue.getFullStart(), importedValue.getEnd());
|
|
108
|
+
const alreadyImported = moduleImports.some((moduleImport) => {
|
|
109
|
+
var _a;
|
|
110
|
+
const currentImportSource = moduleImport.moduleSpecifier.getText().replace(/['"]/g, '');
|
|
111
|
+
return (currentImportSource === migrationData.to.importSource &&
|
|
112
|
+
((_a = moduleImport.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings) &&
|
|
113
|
+
ts.isNamedImports(moduleImport.importClause.namedBindings) &&
|
|
114
|
+
moduleImport.importClause.namedBindings.elements.some((element) => element.name.text === migrationData.to.importedValue));
|
|
115
|
+
});
|
|
116
|
+
if (!alreadyImported) {
|
|
117
|
+
const firstNonImport = sourceFile.statements.find((statement) => !ts.isImportDeclaration(statement));
|
|
118
|
+
const insertPosition = firstNonImport ? firstNonImport.getFullStart() : fileContent.length;
|
|
119
|
+
updatedContent =
|
|
120
|
+
updatedContent.slice(0, insertPosition).trimEnd() +
|
|
121
|
+
`\nimport { ${migrationData.to.importedValue} } from '${migrationData.to.importSource}';\n` +
|
|
122
|
+
updatedContent.slice(insertPosition);
|
|
123
|
+
}
|
|
124
|
+
updatedContent = updatedContent.replace(/^\s*\n+/g, '').replace(/\n{3,}/g, '\n\n');
|
|
125
|
+
return updatedContent;
|
|
126
|
+
}
|
|
127
|
+
return undefined;
|
|
142
128
|
};
|
|
129
|
+
const removeTextRange = (text, start, end) => text.slice(0, start) + text.slice(end);
|
|
143
130
|
exports.default = updateAlfrescoApiImports;
|
|
144
131
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../lib/core/schematics/migrations/7_0_0/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAsDH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../lib/core/schematics/migrations/7_0_0/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAsDH,4DAKC;AAzDD,iCAAiC;AACjC,2DAA6E;AAa7E,MAAM,2BAA2B,GAAkB;IAC/C,MAAM,EAAE;QACJ,aAAa,EAAE,oBAAoB;QAC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
13
13
|
"packages": {
|
|
14
|
-
"ts-morph": {
|
|
15
|
-
"version": "^20.0.0",
|
|
16
|
-
"alwaysAddToPackageJson": true,
|
|
17
|
-
"addToPackageJson": "devDependencies"
|
|
18
|
-
},
|
|
19
14
|
"@alfresco/adf-content-services": {
|
|
20
15
|
"version": "7.0.0",
|
|
21
16
|
"alwaysAddToPackageJson": false
|