This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
import type { InsightsAdditionalEventParams } from "../types";
export type WithAdditionalParams<TEventType> = InsightsAdditionalEventParams | TEventType;
export declare function extractAdditionalParams<TEventType extends {
index: string;
}>(params: Array<InsightsAdditionalEventParams | TEventType>): {
events: TEventType[];
additionalParams?: InsightsAdditionalEventParams;
};

View File

@@ -0,0 +1,5 @@
export declare const supportsCookies: () => boolean;
export declare const supportsSendBeacon: () => boolean;
export declare const supportsXMLHttpRequest: () => boolean;
export declare const supportsNodeHttpModule: () => boolean;
export declare const supportsNativeFetch: () => boolean;

View File

@@ -0,0 +1,2 @@
import type { RequestFnType } from "./request";
export declare function getRequesterForBrowser(): RequestFnType;

View File

@@ -0,0 +1,2 @@
import type { RequestFnType } from "./request";
export declare function getRequesterForNode(): RequestFnType;

6
node_modules/search-insights/dist/utils/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
export declare const isUndefined: (value: any) => value is undefined;
export declare const isString: (value: any) => value is string;
export declare const isNumber: (value: any) => value is number;
export declare const isFunction: (value: any) => value is Function;
export * from "./extractAdditionalParams";
export * from "./featureDetection";

5
node_modules/search-insights/dist/utils/request.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
export type RequestFnType = (url: string, data: Record<string, unknown>) => Promise<boolean>;
export declare const requestWithXMLHttpRequest: RequestFnType;
export declare const requestWithSendBeacon: RequestFnType;
export declare const requestWithNodeHttpModule: RequestFnType;
export declare const requestWithNativeFetch: RequestFnType;

7
node_modules/search-insights/dist/utils/uuid.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/**
* Create UUID according to
* https://www.ietf.org/rfc/rfc4122.txt.
*
* @returns Generated UUID.
*/
export declare function createUUID(): string;