Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.d.ts « types « CoreVue « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3291b42ad85381ca22c23c4c276a2908a25120e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
interface PiwikGlobal {
  timezoneOffset: number;
  addCustomPeriod: <T>(name: string, periodClass: T) => void;
  shouldPropagateTokenAuth: boolean;
  token_auth: string;
  idSite: string|number;
  period: string;
  currentDateString: string;
}

let piwik: PiwikGlobal;

function _pk_translate(translationStringId: string, values: string[]): string;

/**
 * global ajax queue
 *
 * @type {Array} array holding XhrRequests with automatic cleanup
 */
interface GlobalAjaxQueue extends Array<XMLHttpRequest|null> {
  active:number;

  /**
   * Removes all finished requests from the queue.
   *
   * @return {void}
   */
  clean();

  /**
   * Extend Array.push with automatic cleanup for finished requests
   *
   * @return {Object}
   */
  push();

  /**
   * Extend with abort function to abort all queued requests
   *
   * @return {void}
   */
  abort();
}

interface Window {
  globalAjaxQueue: GlobalAjaxQueue;
}

interface PiwikPopoverGlobal {
  isOpen();
}

let Piwik_Popover: PiwikPopoverGlobal;

interface PiwikHelperGlobal {
  escape(text: string): string;
  redirect(params: any);
}

let piwikHelper: PiwikHelperGlobal;

interface BroadcastGlobal {
  getValueFromUrl(paramName: string, url?: string): string;
  getValueFromHash(paramName: string, url?: string): string;
  isWidgetizeRequestWithoutSession(): boolean;
}

let broadcast: BroadcastGlobal;