Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / @wa-motif-open-api/datarecords-service   js

Repository URL to install this package:

Version: 0.6.0 

/ fesm5 / wa-motif-open-api-datarecords-service.js.map

{"version":3,"file":"wa-motif-open-api-datarecords-service.js.map","sources":["ng://@wa-motif-open-api/datarecords-service/lib/encoder.ts","ng://@wa-motif-open-api/datarecords-service/lib/configuration.ts","ng://@wa-motif-open-api/datarecords-service/lib/api/datarecords.service.ts","ng://@wa-motif-open-api/datarecords-service/lib/api/api.ts","ng://@wa-motif-open-api/datarecords-service/lib/variables.ts","ng://@wa-motif-open-api/datarecords-service/lib/api.module.ts"],"sourcesContent":["    import { HttpUrlEncodingCodec } from '@angular/common/http';\n\n/**\n* CustomHttpUrlEncodingCodec\n* Fix plus sign (+) not encoding, so sent as blank space\n* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318\n*/\nexport class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {\n    encodeKey(k: string): string {\n        k = super.encodeKey(k);\n        return k.replace(/\\+/gi, '%2B');\n    }\n    encodeValue(v: string): string {\n        v = super.encodeValue(v);\n        return v.replace(/\\+/gi, '%2B');\n    }\n}\n\n","export interface ConfigurationParameters {\n    apiKeys?: {[ key: string ]: string};\n    username?: string;\n    password?: string;\n    accessToken?: string | (() => string);\n    basePath?: string;\n    withCredentials?: boolean;\n}\n\nexport class Configuration {\n    apiKeys?: {[ key: string ]: string};\n    username?: string;\n    password?: string;\n    accessToken?: string | (() => string);\n    basePath?: string;\n    withCredentials?: boolean;\n\n    constructor(configurationParameters: ConfigurationParameters = {}) {\n        this.apiKeys = configurationParameters.apiKeys;\n        this.username = configurationParameters.username;\n        this.password = configurationParameters.password;\n        this.accessToken = configurationParameters.accessToken;\n        this.basePath = configurationParameters.basePath;\n        this.withCredentials = configurationParameters.withCredentials;\n    }\n\n    /**\n     * Select the correct content-type to use for a request.\n     * Uses {@link Configuration#isJsonMime} to determine the correct content-type.\n     * If no content type is found return the first found type if the contentTypes is not empty\n     * @param contentTypes - the array of content types that are available for selection\n     * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n     */\n    public selectHeaderContentType (contentTypes: string[]): string | undefined {\n        if (contentTypes.length === 0) {\n            return undefined;\n        }\n\n        let type = contentTypes.find(x => this.isJsonMime(x));\n        if (type === undefined) {\n            return contentTypes[0];\n        }\n        return type;\n    }\n\n    /**\n     * Select the correct accept content-type to use for a request.\n     * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.\n     * If no content type is found return the first found type if the contentTypes is not empty\n     * @param accepts - the array of content types that are available for selection.\n     * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n     */\n    public selectHeaderAccept(accepts: string[]): string | undefined {\n        if (accepts.length === 0) {\n            return undefined;\n        }\n\n        let type = accepts.find(x => this.isJsonMime(x));\n        if (type === undefined) {\n            return accepts[0];\n        }\n        return type;\n    }\n\n    /**\n     * Check if the given MIME is a JSON MIME.\n     * JSON MIME examples:\n     *   application/json\n     *   application/json; charset=UTF8\n     *   APPLICATION/JSON\n     *   application/vnd.company+json\n     * @param mime - MIME (Multipurpose Internet Mail Extensions)\n     * @return True if the given MIME is JSON, false otherwise.\n     */\n    public isJsonMime(mime: string): boolean {\n        const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n        return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n    }\n}\n","/**\n * Motif Datarecords Service API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.0\n * Contact: info@vipera.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/* tslint:disable:no-unused-variable member-ordering */\n\nimport { Inject, Injectable, Optional }                      from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams,\n         HttpResponse, HttpEvent }                           from '@angular/common/http';\nimport { CustomHttpUrlEncodingCodec }                        from '../encoder';\n\nimport { Observable }                                        from 'rxjs';\n\nimport { DatarecordList } from '../model/datarecordList';\nimport { ErrorVipera } from '../model/errorVipera';\n\nimport { WC_API_BASE_PATH } from 'web-console-core';\nimport { Configuration }                                     from '../configuration';\nimport { DatarecordsServiceInterface }                            from './datarecords.serviceInterface';\n\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class DatarecordsService implements DatarecordsServiceInterface {\n\n    protected basePath = 'http://localhost:8080/rest/v2';\n    public defaultHeaders = new HttpHeaders();\n    public configuration = new Configuration();\n\n    constructor(protected httpClient: HttpClient, @Optional()@Inject(WC_API_BASE_PATH) basePath: string, @Optional() configuration: Configuration) {\n\n        if (configuration) {\n            this.configuration = configuration;\n            this.configuration.basePath = configuration.basePath || basePath || this.basePath;\n\n        } else {\n            this.configuration.basePath = basePath || this.basePath;\n        }\n    }\n\n    /**\n     * @param consumes string[] mime-types\n     * @return true: consumes contains 'multipart/form-data', false: otherwise\n     */\n    private canConsumeForm(consumes: string[]): boolean {\n        const form = 'multipart/form-data';\n        for (const consume of consumes) {\n            if (form === consume) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n\n    /**\n     * Export datarecords as csv file\n     * Export datarecords as csv file\n     * @param type Datarecords type (PERFORMANCE, TRANSACTION, DIAGNOSTIC, SECURITY...)\n     * @param hashedSession Hashed session (SHA512)\n     * @param usersId User natural ID\n     * @param operations Operations list\n     * @param fromDate From date (2016-08-30 17:12:46Z)\n     * @param toDate To date (2016-08-30 17:12:46Z)\n     * @param resultCode Result code\n     * @param anyError Default value is false\n     * @param singleCsv Default value is true\n     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n     * @param reportProgress flag to report request and response progress.\n     */\n    public exportDatarecords(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe?: 'body', reportProgress?: boolean): Observable<Blob>;\n    public exportDatarecords(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Blob>>;\n    public exportDatarecords(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Blob>>;\n    public exportDatarecords(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n        if (type === null || type === undefined) {\n            throw new Error('Required parameter type was null or undefined when calling exportDatarecords.');\n        }\n\n        let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n        if (hashedSession !== undefined && hashedSession !== null) {\n            queryParameters = queryParameters.set('hashedSession', <any>hashedSession);\n        }\n        if (usersId !== undefined && usersId !== null) {\n            queryParameters = queryParameters.set('usersId', <any>usersId);\n        }\n        if (operations) {\n            operations.forEach((element) => {\n                queryParameters = queryParameters.append('operations', <any>element);\n            })\n        }\n        if (fromDate !== undefined && fromDate !== null) {\n            queryParameters = queryParameters.set('fromDate', <any>fromDate.toISOString());\n        }\n        if (toDate !== undefined && toDate !== null) {\n            queryParameters = queryParameters.set('toDate', <any>toDate.toISOString());\n        }\n        if (resultCode !== undefined && resultCode !== null) {\n            queryParameters = queryParameters.set('resultCode', <any>resultCode);\n        }\n        if (anyError !== undefined && anyError !== null) {\n            queryParameters = queryParameters.set('anyError', <any>anyError);\n        }\n        if (singleCsv !== undefined && singleCsv !== null) {\n            queryParameters = queryParameters.set('singleCsv', <any>singleCsv);\n        }\n\n        let headers = this.defaultHeaders;\n\n        // authentication (vipera_basic) required\n        if (this.configuration.username || this.configuration.password) {\n            headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));\n        }\n        // authentication (vipera_cookie) required\n        // authentication (vipera_oauth2) required\n        if (this.configuration.accessToken) {\n            const accessToken = typeof this.configuration.accessToken === 'function'\n                ? this.configuration.accessToken()\n                : this.configuration.accessToken;\n            headers = headers.set('Authorization', 'Bearer ' + accessToken);\n        }\n\n        // to determine the Accept header\n        const httpHeaderAccepts: string[] = [\n            'application/zip',\n            'application/json'\n        ];\n        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n        if (httpHeaderAcceptSelected !== undefined) {\n            headers = headers.set('Accept', httpHeaderAcceptSelected);\n        }\n\n        // to determine the Content-Type header\n        const consumes: string[] = [\n        ];\n\n        return this.httpClient.get(`${this.configuration.basePath}/datarecords/types/${encodeURIComponent(String(type))}/export`,\n            {\n                params: queryParameters,\n                responseType: \"blob\",\n                withCredentials: this.configuration.withCredentials,\n                headers: headers,\n                observe: observe,\n                reportProgress: reportProgress\n            }\n        );\n    }\n\n    /**\n     * Get datarecords by type\n     * Get datarecords by type\n     * @param type Datarecords type (PERFORMANCE, TRANSACTION, DIAGNOSTIC, SECURITY...)\n     * @param fromDate From date (2016-08-30 17:12:46Z)\n     * @param toDate To date (2016-08-30 17:12:46Z)\n     * @param page Page (omit to retrieve all records at once)\n     * @param pageSize Page size\n     * @param sort Sorting fields\n     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n     * @param reportProgress flag to report request and response progress.\n     */\n    public getDatarecords(type: string, fromDate?: Date, toDate?: Date, page?: number, pageSize?: number, sort?: string, observe?: 'body', reportProgress?: boolean): Observable<DatarecordList>;\n    public getDatarecords(type: string, fromDate?: Date, toDate?: Date, page?: number, pageSize?: number, sort?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DatarecordList>>;\n    public getDatarecords(type: string, fromDate?: Date, toDate?: Date, page?: number, pageSize?: number, sort?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DatarecordList>>;\n    public getDatarecords(type: string, fromDate?: Date, toDate?: Date, page?: number, pageSize?: number, sort?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n        if (type === null || type === undefined) {\n            throw new Error('Required parameter type was null or undefined when calling getDatarecords.');\n        }\n\n        let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n        if (fromDate !== undefined && fromDate !== null) {\n            queryParameters = queryParameters.set('fromDate', <any>fromDate.toISOString());\n        }\n        if (toDate !== undefined && toDate !== null) {\n            queryParameters = queryParameters.set('toDate', <any>toDate.toISOString());\n        }\n        if (page !== undefined && page !== null) {\n            queryParameters = queryParameters.set('page', <any>page);\n        }\n        if (pageSize !== undefined && pageSize !== null) {\n            queryParameters = queryParameters.set('page_size', <any>pageSize);\n        }\n        if (sort !== undefined && sort !== null) {\n            queryParameters = queryParameters.set('sort', <any>sort);\n        }\n\n        let headers = this.defaultHeaders;\n\n        // authentication (vipera_basic) required\n        if (this.configuration.username || this.configuration.password) {\n            headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));\n        }\n        // authentication (vipera_cookie) required\n        // authentication (vipera_oauth2) required\n        if (this.configuration.accessToken) {\n            const accessToken = typeof this.configuration.accessToken === 'function'\n                ? this.configuration.accessToken()\n                : this.configuration.accessToken;\n            headers = headers.set('Authorization', 'Bearer ' + accessToken);\n        }\n\n        // to determine the Accept header\n        const httpHeaderAccepts: string[] = [\n            'application/json'\n        ];\n        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n        if (httpHeaderAcceptSelected !== undefined) {\n            headers = headers.set('Accept', httpHeaderAcceptSelected);\n        }\n\n        // to determine the Content-Type header\n        const consumes: string[] = [\n        ];\n\n        return this.httpClient.get<DatarecordList>(`${this.configuration.basePath}/datarecords/types/${encodeURIComponent(String(type))}`,\n            {\n                params: queryParameters,\n                withCredentials: this.configuration.withCredentials,\n                headers: headers,\n                observe: observe,\n                reportProgress: reportProgress\n            }\n        );\n    }\n\n    /**\n     * Retrieve datarecords types\n     * Retrieve datarecords types\n     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n     * @param reportProgress flag to report request and response progress.\n     */\n    public getDatarecordsTypes(observe?: 'body', reportProgress?: boolean): Observable<Array<string>>;\n    public getDatarecordsTypes(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<string>>>;\n    public getDatarecordsTypes(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<string>>>;\n    public getDatarecordsTypes(observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n        let headers = this.defaultHeaders;\n\n        // authentication (vipera_basic) required\n        if (this.configuration.username || this.configuration.password) {\n            headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));\n        }\n        // authentication (vipera_cookie) required\n        // authentication (vipera_oauth2) required\n        if (this.configuration.accessToken) {\n            const accessToken = typeof this.configuration.accessToken === 'function'\n                ? this.configuration.accessToken()\n                : this.configuration.accessToken;\n            headers = headers.set('Authorization', 'Bearer ' + accessToken);\n        }\n\n        // to determine the Accept header\n        const httpHeaderAccepts: string[] = [\n            'application/json'\n        ];\n        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n        if (httpHeaderAcceptSelected !== undefined) {\n            headers = headers.set('Accept', httpHeaderAcceptSelected);\n        }\n\n        // to determine the Content-Type header\n        const consumes: string[] = [\n        ];\n\n        return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/datarecords/types`,\n            {\n                withCredentials: this.configuration.withCredentials,\n                headers: headers,\n                observe: observe,\n                reportProgress: reportProgress\n            }\n        );\n    }\n\n    /**\n     * Verify datarecords export with these param queries don\\&#39;t exceed limits\n     * Verify datarecords export with these param queries don\\&#39;t exceed limits\n     * @param type Datarecords type (PERFORMANCE, TRANSACTION, DIAGNOSTIC, SECURITY...)\n     * @param hashedSession Hashed session (SHA512)\n     * @param usersId User natural ID\n     * @param operations Operations list\n     * @param fromDate From date (2016-08-30 17:12:46Z)\n     * @param toDate To date (2016-08-30 17:12:46Z)\n     * @param resultCode Result code\n     * @param anyError Default value is false\n     * @param singleCsv Default value is true\n     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n     * @param reportProgress flag to report request and response progress.\n     */\n    public verifyDatarecordsExport(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe?: 'body', reportProgress?: boolean): Observable<object>;\n    public verifyDatarecordsExport(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<object>>;\n    public verifyDatarecordsExport(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<object>>;\n    public verifyDatarecordsExport(type: string, hashedSession?: string, usersId?: number, operations?: Array<string>, fromDate?: Date, toDate?: Date, resultCode?: string, anyError?: boolean, singleCsv?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n        if (type === null || type === undefined) {\n            throw new Error('Required parameter type was null or undefined when calling verifyDatarecordsExport.');\n        }\n\n        let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n        if (hashedSession !== undefined && hashedSession !== null) {\n            queryParameters = queryParameters.set('hashedSession', <any>hashedSession);\n        }\n        if (usersId !== undefined && usersId !== null) {\n            queryParameters = queryParameters.set('usersId', <any>usersId);\n        }\n        if (operations) {\n            operations.forEach((element) => {\n                queryParameters = queryParameters.append('operations', <any>element);\n            })\n        }\n        if (fromDate !== undefined && fromDate !== null) {\n            queryParameters = queryParameters.set('fromDate', <any>fromDate.toISOString());\n        }\n        if (toDate !== undefined && toDate !== null) {\n            queryParameters = queryParameters.set('toDate', <any>toDate.toISOString());\n        }\n        if (resultCode !== undefined && resultCode !== null) {\n            queryParameters = queryParameters.set('resultCode', <any>resultCode);\n        }\n        if (anyError !== undefined && anyError !== null) {\n            queryParameters = queryParameters.set('anyError', <any>anyError);\n        }\n        if (singleCsv !== undefined && singleCsv !== null) {\n            queryParameters = queryParameters.set('singleCsv', <any>singleCsv);\n        }\n\n        let headers = this.defaultHeaders;\n\n        // authentication (vipera_basic) required\n        if (this.configuration.username || this.configuration.password) {\n            headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));\n        }\n        // authentication (vipera_cookie) required\n        // authentication (vipera_oauth2) required\n        if (this.configuration.accessToken) {\n            const accessToken = typeof this.configuration.accessToken === 'function'\n                ? this.configuration.accessToken()\n                : this.configuration.accessToken;\n            headers = headers.set('Authorization', 'Bearer ' + accessToken);\n        }\n\n        // to determine the Accept header\n        const httpHeaderAccepts: string[] = [\n            'application/json'\n        ];\n        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n        if (httpHeaderAcceptSelected !== undefined) {\n            headers = headers.set('Accept', httpHeaderAcceptSelected);\n        }\n\n        // to determine the Content-Type header\n        const consumes: string[] = [\n        ];\n\n        return this.httpClient.get<object>(`${this.configuration.basePath}/datarecords/types/${encodeURIComponent(String(type))}/export/verify`,\n            {\n                params: queryParameters,\n                withCredentials: this.configuration.withCredentials,\n                headers: headers,\n                observe: observe,\n                reportProgress: reportProgress\n            }\n        );\n    }\n\n}\n","export * from './datarecords.service';\nimport { DatarecordsService } from './datarecords.service';\nexport * from './datarecords.serviceInterface'\nexport const APIS = [DatarecordsService];\n","import { InjectionToken } from '@angular/core';\n\nexport const BASE_PATH = new InjectionToken<string>('basePath');\nexport const COLLECTION_FORMATS = {\n    'csv': ',',\n    'tsv': '   ',\n    'ssv': ' ',\n    'pipes': '|'\n}\n","import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';\nimport { Configuration } from './configuration';\nimport { HttpClient } from '@angular/common/http';\n\n\nimport { DatarecordsService } from './api/datarecords.service';\n\n@NgModule({\n  imports:      [],\n  declarations: [],\n  exports:      [],\n  providers: [\n    DatarecordsService ]\n})\nexport class DatarecordsServiceModule {\n    public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders {\n        return {\n            ngModule: DatarecordsServiceModule,\n            providers: [ { provide: Configuration, useFactory: configurationFactory } ]\n        };\n    }\n\n    constructor( @Optional() @SkipSelf() parentModule: DatarecordsServiceModule,\n                 @Optional() http: HttpClient) {\n        if (parentModule) {\n            throw new Error('DatarecordsServiceModule is already loaded. Import in your base AppModule only.');\n        }\n        if (!http) {\n            throw new Error('You need to import the HttpClientModule in your AppModule! \\n' +\n            'See also https://github.com/angular/angular/issues/20575');\n        }\n    }\n}\n"],"names":["tslib_1.__extends","tslib_1.__values"],"mappings":";;;;;;;;;;;;;;AAOA;;;;;;IAAgDA,8CAAoB;IAApE;;KASC;;;;;IARG,8CAAS;;;;IAAT,UAAU,CAAS;QACf,CAAC,GAAG,iBAAM,SAAS,YAAC,CAAC,CAAC,CAAC;QACvB,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;KACnC;;;;;IACD,gDAAW;;;;IAAX,UAAY,CAAS;QACjB,CAAC,GAAG,iBAAM,WAAW,YAAC,CAAC,CAAC,CAAC;QACzB,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;KACnC;IACL,iCAAC;CATD,CAAgD,oBAAoB,GASnE;;;;;;;ICCG,uBAAY,uBAAqD;QAArD,wCAAA,EAAA,4BAAqD;QAC7D,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC,OAAO,CAAC;QAC/C,IAAI,CAAC,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC;QACjD,IAAI,C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