modules inc

This commit is contained in:
nannal
2021-07-15 23:10:20 +03:00
parent 6bb353de89
commit 5921b02b7c
845 changed files with 105299 additions and 121 deletions

View File

@@ -0,0 +1,45 @@
import { CacheManager } from "../../cache/CacheManager";
import { AuthError } from "../../error/AuthError";
import { ServerTelemetryRequest } from "./ServerTelemetryRequest";
import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity";
export declare class ServerTelemetryManager {
private cacheManager;
private apiId;
private correlationId;
private forceRefresh;
private telemetryCacheKey;
private wrapperSKU;
private wrapperVer;
constructor(telemetryRequest: ServerTelemetryRequest, cacheManager: CacheManager);
/**
* API to add MSER Telemetry to request
*/
generateCurrentRequestHeaderValue(): string;
/**
* API to add MSER Telemetry for the last failed request
*/
generateLastRequestHeaderValue(): string;
/**
* API to cache token failures for MSER data capture
* @param error
*/
cacheFailedRequest(error: AuthError): void;
/**
* Update server telemetry cache entry by incrementing cache hit counter
*/
incrementCacheHits(): number;
/**
* Get the server telemetry entity from cache or initialize a new one
*/
getLastRequests(): ServerTelemetryEntity;
/**
* Remove server telemetry cache entry
*/
clearTelemetryCache(): void;
/**
* Returns the maximum number of errors that can be flushed to the server in the next network request
* @param serverTelemetryEntity
*/
static maxErrorsToSend(serverTelemetryEntity: ServerTelemetryEntity): number;
}
//# sourceMappingURL=ServerTelemetryManager.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ServerTelemetryManager.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryManager.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,qBAAa,sBAAsB;IAC/B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAS;gBAEf,gBAAgB,EAAE,sBAAsB,EAAE,YAAY,EAAE,YAAY;IAWhF;;OAEG;IACH,iCAAiC,IAAI,MAAM;IAQ3C;;OAEG;IACH,8BAA8B,IAAI,MAAM;IAexC;;;OAGG;IACH,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAmB1C;;OAEG;IACH,kBAAkB,IAAI,MAAM;IAQ5B;;OAEG;IACH,eAAe,IAAI,qBAAqB;IAOxC;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAiB3B;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,qBAAqB,EAAE,qBAAqB,GAAG,MAAM;CAwB/E"}

View File

@@ -0,0 +1,9 @@
export declare type ServerTelemetryRequest = {
clientId: string;
apiId: number;
correlationId: string;
forceRefresh?: boolean;
wrapperSKU?: string;
wrapperVer?: string;
};
//# sourceMappingURL=ServerTelemetryRequest.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ServerTelemetryRequest.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryRequest.ts"],"names":[],"mappings":"AAKA,oBAAY,sBAAsB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}