@tramvai/module-page-render-mode 7.5.3 → 7.7.0
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/lib/PageRenderWrapper.browser.js +4 -4
- package/lib/PageRenderWrapper.d.ts +1 -1
- package/lib/PageRenderWrapper.es.js +4 -4
- package/lib/PageRenderWrapper.js +3 -3
- package/lib/browser.js +27 -3
- package/lib/private-tokens.browser.js +9 -0
- package/lib/private-tokens.d.ts +27 -0
- package/lib/private-tokens.es.js +9 -0
- package/lib/private-tokens.js +17 -0
- package/lib/server.es.js +1 -1
- package/lib/server.js +5 -0
- package/lib/staticPages/backgroundFetchService.d.ts +9 -7
- package/lib/staticPages/backgroundFetchService.es.js +20 -20
- package/lib/staticPages/backgroundFetchService.js +20 -20
- package/lib/staticPages/fileSystemCache.d.ts +72 -0
- package/lib/staticPages/fileSystemCache.es.js +367 -0
- package/lib/staticPages/fileSystemCache.js +376 -0
- package/lib/staticPages/staticPagesService.d.ts +16 -9
- package/lib/staticPages/staticPagesService.es.js +124 -39
- package/lib/staticPages/staticPagesService.js +124 -39
- package/lib/staticPages.d.ts +410 -155
- package/lib/staticPages.es.js +233 -67
- package/lib/staticPages.js +232 -70
- package/lib/tokens.browser.js +15 -1
- package/lib/tokens.d.ts +90 -32
- package/lib/tokens.es.js +15 -1
- package/lib/tokens.js +19 -0
- package/lib/utils/cacheKey.d.ts +4 -6
- package/lib/utils/cacheKey.es.js +8 -3
- package/lib/utils/cacheKey.js +8 -2
- package/lib/utils/getPageRenderMode.browser.js +14 -2
- package/lib/utils/getPageRenderMode.d.ts +8 -3
- package/lib/utils/getPageRenderMode.es.js +14 -2
- package/lib/utils/getPageRenderMode.js +14 -2
- package/package.json +16 -14
package/lib/staticPages.d.ts
CHANGED
|
@@ -1,280 +1,535 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import type { Counter } from 'prom-client';
|
|
3
2
|
import { BackgroundFetchService } from './staticPages/backgroundFetchService';
|
|
4
3
|
import { StaticPagesService } from './staticPages/staticPagesService';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
__type?: "base token";
|
|
10
|
-
}
|
|
11
|
-
export declare const STATIC_PAGES_CACHE_HIT_METRIC_TOKEN: Counter<any> & {
|
|
12
|
-
__type?: "base token";
|
|
13
|
-
};
|
|
14
|
-
export declare const STATIC_PAGES_SERVICE: StaticPagesService & {
|
|
15
|
-
__type?: "base token";
|
|
16
|
-
};
|
|
17
|
-
export declare const staticPagesProviders: (import("@tinkoff/dippy/lib/Provider").ValueProvider<Counter<any>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
4
|
+
import { FileSystemCache } from './staticPages/fileSystemCache';
|
|
5
|
+
export declare const staticPagesProviders: (import("@tinkoff/dippy/lib/Provider").ValueProvider<{
|
|
6
|
+
hit: import("prom-client").Counter<any>;
|
|
7
|
+
} & {
|
|
8
|
+
__type?: "base token" | undefined;
|
|
9
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
18
10
|
metrics: import("@tramvai/tokens-metrics").Metrics & {
|
|
19
|
-
__type?: "base token";
|
|
20
|
-
};
|
|
21
|
-
},
|
|
11
|
+
__type?: "base token" | undefined;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
hit: import("prom-client").Counter<any>;
|
|
15
|
+
} & {
|
|
16
|
+
__type?: "base token" | undefined;
|
|
17
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<{
|
|
18
|
+
hit: import("prom-client").Counter<any>;
|
|
19
|
+
} & {
|
|
20
|
+
__type?: "base token" | undefined;
|
|
21
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
22
22
|
metrics: import("@tramvai/tokens-metrics").Metrics & {
|
|
23
|
-
__type?: "base token";
|
|
24
|
-
};
|
|
25
|
-
},
|
|
23
|
+
__type?: "base token" | undefined;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
hit: import("prom-client").Counter<any>;
|
|
27
|
+
} & {
|
|
28
|
+
__type?: "base token" | undefined;
|
|
29
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<{
|
|
30
|
+
hit: import("prom-client").Counter<any>;
|
|
31
|
+
} & {
|
|
32
|
+
__type?: "base token" | undefined;
|
|
33
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
34
|
+
__type?: "base token" | undefined;
|
|
35
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
26
36
|
createCache: import("@tramvai/tokens-common").CacheFactory & {
|
|
27
|
-
__type?: "base token";
|
|
37
|
+
__type?: "base token" | undefined;
|
|
28
38
|
};
|
|
29
39
|
staticPagesOptions: import("./tokens").StaticPagesOptions & {
|
|
30
|
-
__type?: "base token";
|
|
40
|
+
__type?: "base token" | undefined;
|
|
31
41
|
};
|
|
32
|
-
}, import("@tramvai/tokens-common").Cache<
|
|
42
|
+
}, import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
43
|
+
__type?: "base token" | undefined;
|
|
44
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
45
|
+
__type?: "base token" | undefined;
|
|
46
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
33
47
|
createCache: import("@tramvai/tokens-common").CacheFactory & {
|
|
34
|
-
__type?: "base token";
|
|
48
|
+
__type?: "base token" | undefined;
|
|
35
49
|
};
|
|
36
50
|
staticPagesOptions: import("./tokens").StaticPagesOptions & {
|
|
37
|
-
__type?: "base token";
|
|
38
|
-
};
|
|
39
|
-
}, import("@tramvai/tokens-common").Cache<
|
|
40
|
-
__type?: "base token";
|
|
51
|
+
__type?: "base token" | undefined;
|
|
52
|
+
};
|
|
53
|
+
}, import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
54
|
+
__type?: "base token" | undefined;
|
|
55
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
56
|
+
__type?: "base token" | undefined;
|
|
57
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("./tokens").StaticPagesOptions & {
|
|
58
|
+
__type?: "base token" | undefined;
|
|
41
59
|
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<unknown, import("./tokens").StaticPagesOptions & {
|
|
42
|
-
__type?: "base token";
|
|
60
|
+
__type?: "base token" | undefined;
|
|
43
61
|
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("./tokens").StaticPagesOptions & {
|
|
44
|
-
__type?: "base token";
|
|
62
|
+
__type?: "base token" | undefined;
|
|
45
63
|
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<unknown, import("./tokens").StaticPagesOptions & {
|
|
46
|
-
__type?: "base token";
|
|
64
|
+
__type?: "base token" | undefined;
|
|
47
65
|
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("./tokens").StaticPagesOptions & {
|
|
48
|
-
__type?: "base token";
|
|
66
|
+
__type?: "base token" | undefined;
|
|
67
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<((entry: {
|
|
68
|
+
ttl: number;
|
|
69
|
+
updatedAt: number;
|
|
70
|
+
}) => string) & {
|
|
71
|
+
__type?: "base token" | undefined;
|
|
72
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<unknown, ((entry: {
|
|
73
|
+
ttl: number;
|
|
74
|
+
updatedAt: number;
|
|
75
|
+
}) => string) & {
|
|
76
|
+
__type?: "base token" | undefined;
|
|
77
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<((entry: {
|
|
78
|
+
ttl: number;
|
|
79
|
+
updatedAt: number;
|
|
80
|
+
}) => string) & {
|
|
81
|
+
__type?: "base token" | undefined;
|
|
82
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<unknown, ((entry: {
|
|
83
|
+
ttl: number;
|
|
84
|
+
updatedAt: number;
|
|
85
|
+
}) => string) & {
|
|
86
|
+
__type?: "base token" | undefined;
|
|
87
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<((entry: {
|
|
88
|
+
ttl: number;
|
|
89
|
+
updatedAt: number;
|
|
90
|
+
}) => string) & {
|
|
91
|
+
__type?: "base token" | undefined;
|
|
92
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<(() => boolean) & {
|
|
93
|
+
__type?: "base token" | undefined;
|
|
94
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<unknown, (() => boolean) & {
|
|
95
|
+
__type?: "base token" | undefined;
|
|
96
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<(() => boolean) & {
|
|
97
|
+
__type?: "base token" | undefined;
|
|
98
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<unknown, (() => boolean) & {
|
|
99
|
+
__type?: "base token" | undefined;
|
|
100
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<(() => boolean) & {
|
|
101
|
+
__type?: "base token" | undefined;
|
|
102
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("./tokens").FileSystemCacheOptions & {
|
|
103
|
+
__type?: "base token" | undefined;
|
|
104
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<unknown, import("./tokens").FileSystemCacheOptions & {
|
|
105
|
+
__type?: "base token" | undefined;
|
|
106
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("./tokens").FileSystemCacheOptions & {
|
|
107
|
+
__type?: "base token" | undefined;
|
|
108
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<unknown, import("./tokens").FileSystemCacheOptions & {
|
|
109
|
+
__type?: "base token" | undefined;
|
|
110
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("./tokens").FileSystemCacheOptions & {
|
|
111
|
+
__type?: "base token" | undefined;
|
|
112
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<(FileSystemCache & {
|
|
113
|
+
__type?: "base token" | undefined;
|
|
114
|
+
}) | null> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
115
|
+
fsCacheEnabled: (() => boolean) & {
|
|
116
|
+
__type?: "base token" | undefined;
|
|
117
|
+
};
|
|
118
|
+
fsCacheOptions: import("./tokens").FileSystemCacheOptions & {
|
|
119
|
+
__type?: "base token" | undefined;
|
|
120
|
+
};
|
|
121
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
122
|
+
[key: string]: any;
|
|
123
|
+
name: string;
|
|
124
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
125
|
+
__type?: "base token" | undefined;
|
|
126
|
+
};
|
|
127
|
+
metrics: {
|
|
128
|
+
hit: import("prom-client").Counter<any>;
|
|
129
|
+
miss: import("prom-client").Counter<any>;
|
|
130
|
+
size: import("prom-client").Gauge<any>;
|
|
131
|
+
bytes: import("prom-client").Gauge<any>;
|
|
132
|
+
} & {
|
|
133
|
+
__type?: "base token" | undefined;
|
|
134
|
+
};
|
|
135
|
+
}, (FileSystemCache & {
|
|
136
|
+
__type?: "base token" | undefined;
|
|
137
|
+
}) | null> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<(FileSystemCache & {
|
|
138
|
+
__type?: "base token" | undefined;
|
|
139
|
+
}) | null> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
140
|
+
fsCacheEnabled: (() => boolean) & {
|
|
141
|
+
__type?: "base token" | undefined;
|
|
142
|
+
};
|
|
143
|
+
fsCacheOptions: import("./tokens").FileSystemCacheOptions & {
|
|
144
|
+
__type?: "base token" | undefined;
|
|
145
|
+
};
|
|
146
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
name: string;
|
|
149
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
150
|
+
__type?: "base token" | undefined;
|
|
151
|
+
};
|
|
152
|
+
metrics: {
|
|
153
|
+
hit: import("prom-client").Counter<any>;
|
|
154
|
+
miss: import("prom-client").Counter<any>;
|
|
155
|
+
size: import("prom-client").Gauge<any>;
|
|
156
|
+
bytes: import("prom-client").Gauge<any>;
|
|
157
|
+
} & {
|
|
158
|
+
__type?: "base token" | undefined;
|
|
159
|
+
};
|
|
160
|
+
}, (FileSystemCache & {
|
|
161
|
+
__type?: "base token" | undefined;
|
|
162
|
+
}) | null> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<(FileSystemCache & {
|
|
163
|
+
__type?: "base token" | undefined;
|
|
164
|
+
}) | null> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/core").Command & {
|
|
165
|
+
__type?: "multi token" | undefined;
|
|
166
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
167
|
+
fsCache: (FileSystemCache & {
|
|
168
|
+
__type?: "base token" | undefined;
|
|
169
|
+
}) | null;
|
|
170
|
+
fsCacheEnabled: (() => boolean) & {
|
|
171
|
+
__type?: "base token" | undefined;
|
|
172
|
+
};
|
|
173
|
+
}, import("@tramvai/core").Command & {
|
|
174
|
+
__type?: "multi token" | undefined;
|
|
175
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("@tramvai/core").Command & {
|
|
176
|
+
__type?: "multi token" | undefined;
|
|
177
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
178
|
+
fsCache: (FileSystemCache & {
|
|
179
|
+
__type?: "base token" | undefined;
|
|
180
|
+
}) | null;
|
|
181
|
+
fsCacheEnabled: (() => boolean) & {
|
|
182
|
+
__type?: "base token" | undefined;
|
|
183
|
+
};
|
|
184
|
+
}, import("@tramvai/core").Command & {
|
|
185
|
+
__type?: "multi token" | undefined;
|
|
186
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("@tramvai/core").Command & {
|
|
187
|
+
__type?: "multi token" | undefined;
|
|
49
188
|
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
50
189
|
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
51
|
-
__type?: "base token";
|
|
190
|
+
__type?: "base token" | undefined;
|
|
52
191
|
};
|
|
53
|
-
|
|
54
|
-
|
|
192
|
+
}, (() => boolean) & {
|
|
193
|
+
__type?: "multi token" | undefined;
|
|
194
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
195
|
+
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
196
|
+
__type?: "base token" | undefined;
|
|
55
197
|
};
|
|
56
|
-
}, () =>
|
|
198
|
+
}, (() => boolean) & {
|
|
199
|
+
__type?: "multi token" | undefined;
|
|
200
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
57
201
|
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
58
|
-
__type?: "base token";
|
|
202
|
+
__type?: "base token" | undefined;
|
|
59
203
|
};
|
|
60
|
-
|
|
61
|
-
|
|
204
|
+
router: {
|
|
205
|
+
token: import("@tinkoff/router").AbstractRouter & {
|
|
206
|
+
__type?: "base token" | undefined;
|
|
207
|
+
};
|
|
208
|
+
optional: true;
|
|
62
209
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
210
|
+
pageService: {
|
|
211
|
+
token: import("@tramvai/tokens-router").PageService & {
|
|
212
|
+
__type?: "base token" | undefined;
|
|
213
|
+
};
|
|
214
|
+
optional: true;
|
|
66
215
|
};
|
|
67
|
-
|
|
216
|
+
defaultRenderMode: ("ssr" & {
|
|
217
|
+
__type?: "base token" | undefined;
|
|
218
|
+
}) | ("client" & {
|
|
219
|
+
__type?: "base token" | undefined;
|
|
220
|
+
}) | ("static" & {
|
|
221
|
+
__type?: "base token" | undefined;
|
|
222
|
+
}) | ((() => import("@tramvai/tokens-render").TramvaiRenderMode) & {
|
|
223
|
+
__type?: "base token" | undefined;
|
|
224
|
+
});
|
|
225
|
+
fileSystemCache: {
|
|
226
|
+
token: (FileSystemCache & {
|
|
227
|
+
__type?: "base token" | undefined;
|
|
228
|
+
}) | null;
|
|
229
|
+
optional: true;
|
|
230
|
+
};
|
|
231
|
+
}, (() => import("@tramvai/tokens-render").TramvaiRenderMode) & {
|
|
232
|
+
__type?: "base token" | undefined;
|
|
233
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
68
234
|
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
69
|
-
__type?: "base token";
|
|
235
|
+
__type?: "base token" | undefined;
|
|
70
236
|
};
|
|
71
|
-
|
|
237
|
+
router: {
|
|
238
|
+
token: import("@tinkoff/router").AbstractRouter & {
|
|
239
|
+
__type?: "base token" | undefined;
|
|
240
|
+
};
|
|
241
|
+
optional: true;
|
|
242
|
+
};
|
|
243
|
+
pageService: {
|
|
244
|
+
token: import("@tramvai/tokens-router").PageService & {
|
|
245
|
+
__type?: "base token" | undefined;
|
|
246
|
+
};
|
|
247
|
+
optional: true;
|
|
248
|
+
};
|
|
249
|
+
defaultRenderMode: ("ssr" & {
|
|
250
|
+
__type?: "base token" | undefined;
|
|
251
|
+
}) | ("client" & {
|
|
252
|
+
__type?: "base token" | undefined;
|
|
253
|
+
}) | ("static" & {
|
|
254
|
+
__type?: "base token" | undefined;
|
|
255
|
+
}) | ((() => import("@tramvai/tokens-render").TramvaiRenderMode) & {
|
|
256
|
+
__type?: "base token" | undefined;
|
|
257
|
+
});
|
|
258
|
+
fileSystemCache: {
|
|
259
|
+
token: (FileSystemCache & {
|
|
260
|
+
__type?: "base token" | undefined;
|
|
261
|
+
}) | null;
|
|
262
|
+
optional: true;
|
|
263
|
+
};
|
|
264
|
+
}, (() => import("@tramvai/tokens-render").TramvaiRenderMode) & {
|
|
265
|
+
__type?: "base token" | undefined;
|
|
266
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<BackgroundFetchService & {
|
|
267
|
+
__type?: "base token" | undefined;
|
|
268
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
72
269
|
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
73
270
|
[key: string]: any;
|
|
74
271
|
name: string;
|
|
75
272
|
}) => import("@tramvai/tokens-common").Logger) & {
|
|
76
|
-
__type?: "base token";
|
|
273
|
+
__type?: "base token" | undefined;
|
|
274
|
+
};
|
|
275
|
+
envManager: import("@tramvai/tokens-common").EnvironmentManager & {
|
|
276
|
+
__type?: "base token" | undefined;
|
|
77
277
|
};
|
|
78
278
|
backgroundFetchEnabled: (() => boolean) & {
|
|
79
|
-
__type?: "base token";
|
|
279
|
+
__type?: "base token" | undefined;
|
|
80
280
|
};
|
|
81
|
-
}, BackgroundFetchService
|
|
281
|
+
}, BackgroundFetchService & {
|
|
282
|
+
__type?: "base token" | undefined;
|
|
283
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<BackgroundFetchService & {
|
|
284
|
+
__type?: "base token" | undefined;
|
|
285
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
82
286
|
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
83
287
|
[key: string]: any;
|
|
84
288
|
name: string;
|
|
85
289
|
}) => import("@tramvai/tokens-common").Logger) & {
|
|
86
|
-
__type?: "base token";
|
|
290
|
+
__type?: "base token" | undefined;
|
|
87
291
|
};
|
|
88
|
-
|
|
89
|
-
__type?: "base token";
|
|
292
|
+
envManager: import("@tramvai/tokens-common").EnvironmentManager & {
|
|
293
|
+
__type?: "base token" | undefined;
|
|
90
294
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
295
|
+
backgroundFetchEnabled: (() => boolean) & {
|
|
296
|
+
__type?: "base token" | undefined;
|
|
297
|
+
};
|
|
298
|
+
}, BackgroundFetchService & {
|
|
299
|
+
__type?: "base token" | undefined;
|
|
300
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<BackgroundFetchService & {
|
|
301
|
+
__type?: "base token" | undefined;
|
|
302
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<StaticPagesService & {
|
|
303
|
+
__type?: "base token" | undefined;
|
|
304
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
305
|
+
staticPagesKey: (() => string) & {
|
|
306
|
+
__type?: "base token" | undefined;
|
|
94
307
|
};
|
|
95
308
|
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
96
|
-
__type?: "base token";
|
|
309
|
+
__type?: "base token" | undefined;
|
|
97
310
|
};
|
|
98
311
|
responseManager: import("@tramvai/tokens-common").ResponseManager & {
|
|
99
|
-
__type?: "base token";
|
|
312
|
+
__type?: "base token" | undefined;
|
|
100
313
|
};
|
|
101
314
|
response: import("fastify").FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> & {
|
|
102
|
-
__type?: "base token";
|
|
315
|
+
__type?: "base token" | undefined;
|
|
103
316
|
};
|
|
104
317
|
environmentManager: import("@tramvai/tokens-common").EnvironmentManager & {
|
|
105
|
-
__type?: "base token";
|
|
106
|
-
};
|
|
107
|
-
userAgent: import("@tinkoff/user-agent").UserAgent & {
|
|
108
|
-
__type?: "base token";
|
|
318
|
+
__type?: "base token" | undefined;
|
|
109
319
|
};
|
|
110
320
|
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
111
321
|
[key: string]: any;
|
|
112
322
|
name: string;
|
|
113
323
|
}) => import("@tramvai/tokens-common").Logger) & {
|
|
114
|
-
__type?: "base token";
|
|
324
|
+
__type?: "base token" | undefined;
|
|
325
|
+
};
|
|
326
|
+
cache: import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
327
|
+
__type?: "base token" | undefined;
|
|
115
328
|
};
|
|
116
|
-
|
|
117
|
-
__type?: "base token";
|
|
329
|
+
fsCache: (FileSystemCache & {
|
|
330
|
+
__type?: "base token" | undefined;
|
|
331
|
+
}) | null;
|
|
332
|
+
fsCacheEnabled: (() => boolean) & {
|
|
333
|
+
__type?: "base token" | undefined;
|
|
118
334
|
};
|
|
119
335
|
modifyCache: {
|
|
120
336
|
token: ((entry: import("./tokens").StaticPagesCacheEntry) => import("./tokens").StaticPagesCacheEntry) & {
|
|
121
|
-
__type?: "multi token";
|
|
337
|
+
__type?: "multi token" | undefined;
|
|
122
338
|
};
|
|
123
339
|
optional: boolean;
|
|
124
340
|
};
|
|
125
341
|
shouldUseCache: (() => boolean) & {
|
|
126
|
-
__type?: "multi token";
|
|
342
|
+
__type?: "multi token" | undefined;
|
|
127
343
|
};
|
|
128
344
|
backgroundFetchService: BackgroundFetchService & {
|
|
129
|
-
__type?: "base token";
|
|
345
|
+
__type?: "base token" | undefined;
|
|
130
346
|
};
|
|
131
347
|
options: import("./tokens").StaticPagesOptions & {
|
|
132
|
-
__type?: "base token";
|
|
348
|
+
__type?: "base token" | undefined;
|
|
133
349
|
};
|
|
134
350
|
cache5xxResponse: (() => boolean) & {
|
|
135
|
-
__type?: "base token";
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
351
|
+
__type?: "base token" | undefined;
|
|
352
|
+
};
|
|
353
|
+
cacheControlFactory: ((entry: {
|
|
354
|
+
ttl: number;
|
|
355
|
+
updatedAt: number;
|
|
356
|
+
}) => string) & {
|
|
357
|
+
__type?: "base token" | undefined;
|
|
358
|
+
};
|
|
359
|
+
}, StaticPagesService & {
|
|
360
|
+
__type?: "base token" | undefined;
|
|
361
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<StaticPagesService & {
|
|
362
|
+
__type?: "base token" | undefined;
|
|
363
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
364
|
+
staticPagesKey: (() => string) & {
|
|
365
|
+
__type?: "base token" | undefined;
|
|
140
366
|
};
|
|
141
367
|
requestManager: import("@tramvai/tokens-common").RequestManager & {
|
|
142
|
-
__type?: "base token";
|
|
368
|
+
__type?: "base token" | undefined;
|
|
143
369
|
};
|
|
144
370
|
responseManager: import("@tramvai/tokens-common").ResponseManager & {
|
|
145
|
-
__type?: "base token";
|
|
371
|
+
__type?: "base token" | undefined;
|
|
146
372
|
};
|
|
147
373
|
response: import("fastify").FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> & {
|
|
148
|
-
__type?: "base token";
|
|
374
|
+
__type?: "base token" | undefined;
|
|
149
375
|
};
|
|
150
376
|
environmentManager: import("@tramvai/tokens-common").EnvironmentManager & {
|
|
151
|
-
__type?: "base token";
|
|
152
|
-
};
|
|
153
|
-
userAgent: import("@tinkoff/user-agent").UserAgent & {
|
|
154
|
-
__type?: "base token";
|
|
377
|
+
__type?: "base token" | undefined;
|
|
155
378
|
};
|
|
156
379
|
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
157
380
|
[key: string]: any;
|
|
158
381
|
name: string;
|
|
159
382
|
}) => import("@tramvai/tokens-common").Logger) & {
|
|
160
|
-
__type?: "base token";
|
|
383
|
+
__type?: "base token" | undefined;
|
|
161
384
|
};
|
|
162
|
-
cache: import("@tramvai/tokens-common").Cache<
|
|
163
|
-
__type?: "base token";
|
|
385
|
+
cache: import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
386
|
+
__type?: "base token" | undefined;
|
|
387
|
+
};
|
|
388
|
+
fsCache: (FileSystemCache & {
|
|
389
|
+
__type?: "base token" | undefined;
|
|
390
|
+
}) | null;
|
|
391
|
+
fsCacheEnabled: (() => boolean) & {
|
|
392
|
+
__type?: "base token" | undefined;
|
|
164
393
|
};
|
|
165
394
|
modifyCache: {
|
|
166
395
|
token: ((entry: import("./tokens").StaticPagesCacheEntry) => import("./tokens").StaticPagesCacheEntry) & {
|
|
167
|
-
__type?: "multi token";
|
|
396
|
+
__type?: "multi token" | undefined;
|
|
168
397
|
};
|
|
169
398
|
optional: boolean;
|
|
170
399
|
};
|
|
171
400
|
shouldUseCache: (() => boolean) & {
|
|
172
|
-
__type?: "multi token";
|
|
401
|
+
__type?: "multi token" | undefined;
|
|
173
402
|
};
|
|
174
403
|
backgroundFetchService: BackgroundFetchService & {
|
|
175
|
-
__type?: "base token";
|
|
404
|
+
__type?: "base token" | undefined;
|
|
176
405
|
};
|
|
177
406
|
options: import("./tokens").StaticPagesOptions & {
|
|
178
|
-
__type?: "base token";
|
|
407
|
+
__type?: "base token" | undefined;
|
|
179
408
|
};
|
|
180
409
|
cache5xxResponse: (() => boolean) & {
|
|
181
|
-
__type?: "base token";
|
|
182
|
-
};
|
|
183
|
-
|
|
410
|
+
__type?: "base token" | undefined;
|
|
411
|
+
};
|
|
412
|
+
cacheControlFactory: ((entry: {
|
|
413
|
+
ttl: number;
|
|
414
|
+
updatedAt: number;
|
|
415
|
+
}) => string) & {
|
|
416
|
+
__type?: "base token" | undefined;
|
|
417
|
+
};
|
|
418
|
+
}, StaticPagesService & {
|
|
419
|
+
__type?: "base token" | undefined;
|
|
420
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<StaticPagesService & {
|
|
421
|
+
__type?: "base token" | undefined;
|
|
422
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
184
423
|
di: import("@tinkoff/dippy").Container & {
|
|
185
|
-
__type?: "base token";
|
|
424
|
+
__type?: "base token" | undefined;
|
|
186
425
|
};
|
|
187
426
|
staticPagesCommandLine: {
|
|
188
|
-
token: ("
|
|
189
|
-
__type?: "base token";
|
|
427
|
+
token: ("clear" & {
|
|
428
|
+
__type?: "base token" | undefined;
|
|
429
|
+
}) | ("init" & {
|
|
430
|
+
__type?: "base token" | undefined;
|
|
190
431
|
}) | ("listen" & {
|
|
191
|
-
__type?: "base token";
|
|
432
|
+
__type?: "base token" | undefined;
|
|
192
433
|
}) | ("customerStart" & {
|
|
193
|
-
__type?: "base token";
|
|
434
|
+
__type?: "base token" | undefined;
|
|
194
435
|
}) | ("resolveUserDeps" & {
|
|
195
|
-
__type?: "base token";
|
|
436
|
+
__type?: "base token" | undefined;
|
|
196
437
|
}) | ("resolvePageDeps" & {
|
|
197
|
-
__type?: "base token";
|
|
438
|
+
__type?: "base token" | undefined;
|
|
198
439
|
}) | ("generatePage" & {
|
|
199
|
-
__type?: "base token";
|
|
200
|
-
}) | ("clear" & {
|
|
201
|
-
__type?: "base token";
|
|
440
|
+
__type?: "base token" | undefined;
|
|
202
441
|
}) | ("spaTransition" & {
|
|
203
|
-
__type?: "base token";
|
|
442
|
+
__type?: "base token" | undefined;
|
|
204
443
|
}) | ("afterSpaTransition" & {
|
|
205
|
-
__type?: "base token";
|
|
444
|
+
__type?: "base token" | undefined;
|
|
206
445
|
}) | ("close" & {
|
|
207
|
-
__type?: "base token";
|
|
446
|
+
__type?: "base token" | undefined;
|
|
208
447
|
});
|
|
209
448
|
optional: boolean;
|
|
210
449
|
};
|
|
211
|
-
},
|
|
450
|
+
}, import("@tramvai/core").Command & {
|
|
451
|
+
__type?: "multi token" | undefined;
|
|
452
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
212
453
|
di: import("@tinkoff/dippy").Container & {
|
|
213
|
-
__type?: "base token";
|
|
454
|
+
__type?: "base token" | undefined;
|
|
214
455
|
};
|
|
215
456
|
staticPagesCommandLine: {
|
|
216
|
-
token: ("
|
|
217
|
-
__type?: "base token";
|
|
457
|
+
token: ("clear" & {
|
|
458
|
+
__type?: "base token" | undefined;
|
|
459
|
+
}) | ("init" & {
|
|
460
|
+
__type?: "base token" | undefined;
|
|
218
461
|
}) | ("listen" & {
|
|
219
|
-
__type?: "base token";
|
|
462
|
+
__type?: "base token" | undefined;
|
|
220
463
|
}) | ("customerStart" & {
|
|
221
|
-
__type?: "base token";
|
|
464
|
+
__type?: "base token" | undefined;
|
|
222
465
|
}) | ("resolveUserDeps" & {
|
|
223
|
-
__type?: "base token";
|
|
466
|
+
__type?: "base token" | undefined;
|
|
224
467
|
}) | ("resolvePageDeps" & {
|
|
225
|
-
__type?: "base token";
|
|
468
|
+
__type?: "base token" | undefined;
|
|
226
469
|
}) | ("generatePage" & {
|
|
227
|
-
__type?: "base token";
|
|
228
|
-
}) | ("clear" & {
|
|
229
|
-
__type?: "base token";
|
|
470
|
+
__type?: "base token" | undefined;
|
|
230
471
|
}) | ("spaTransition" & {
|
|
231
|
-
__type?: "base token";
|
|
472
|
+
__type?: "base token" | undefined;
|
|
232
473
|
}) | ("afterSpaTransition" & {
|
|
233
|
-
__type?: "base token";
|
|
474
|
+
__type?: "base token" | undefined;
|
|
234
475
|
}) | ("close" & {
|
|
235
|
-
__type?: "base token";
|
|
476
|
+
__type?: "base token" | undefined;
|
|
236
477
|
});
|
|
237
478
|
optional: boolean;
|
|
238
479
|
};
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
__type?: "base token";
|
|
248
|
-
}) | ("client" & {
|
|
249
|
-
__type?: "base token";
|
|
250
|
-
}) | ("static" & {
|
|
251
|
-
__type?: "base token";
|
|
252
|
-
}) | ((() => import("@tramvai/tokens-render").TramvaiRenderMode) & {
|
|
253
|
-
__type?: "base token";
|
|
254
|
-
});
|
|
255
|
-
}, () => void> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
256
|
-
staticPagesService: StaticPagesService & {
|
|
257
|
-
__type?: "base token";
|
|
258
|
-
};
|
|
259
|
-
pageService: import("@tramvai/tokens-router").PageService & {
|
|
260
|
-
__type?: "base token";
|
|
480
|
+
}, import("@tramvai/core").Command & {
|
|
481
|
+
__type?: "multi token" | undefined;
|
|
482
|
+
}> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/papi").NormalizedHandler<any, any> & {
|
|
483
|
+
__papi_parameters__: import("@tramvai/papi").NormalizedPapiParameters<any, any>;
|
|
484
|
+
} & {
|
|
485
|
+
__type?: "multi token" | undefined;
|
|
486
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
487
|
+
staticPagesCache: import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
488
|
+
__type?: "base token" | undefined;
|
|
261
489
|
};
|
|
262
|
-
|
|
263
|
-
__type?: "base token";
|
|
264
|
-
}) |
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
__type?: "base token";
|
|
268
|
-
}) | ((() => import("@tramvai/tokens-render").TramvaiRenderMode) & {
|
|
269
|
-
__type?: "base token";
|
|
270
|
-
});
|
|
271
|
-
}, () => void> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/papi").Papi> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
272
|
-
staticPagesCache: import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>> & {
|
|
273
|
-
__type?: "base token";
|
|
490
|
+
fsCache: (FileSystemCache & {
|
|
491
|
+
__type?: "base token" | undefined;
|
|
492
|
+
}) | null;
|
|
493
|
+
fsCacheEnabled: (() => boolean) & {
|
|
494
|
+
__type?: "base token" | undefined;
|
|
274
495
|
};
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
496
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
497
|
+
[key: string]: any;
|
|
498
|
+
name: string;
|
|
499
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
500
|
+
__type?: "base token" | undefined;
|
|
501
|
+
};
|
|
502
|
+
}, import("@tramvai/papi").NormalizedHandler<any, any> & {
|
|
503
|
+
__papi_parameters__: import("@tramvai/papi").NormalizedPapiParameters<any, any>;
|
|
504
|
+
} & {
|
|
505
|
+
__type?: "multi token" | undefined;
|
|
506
|
+
}> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("@tramvai/papi").NormalizedHandler<any, any> & {
|
|
507
|
+
__papi_parameters__: import("@tramvai/papi").NormalizedPapiParameters<any, any>;
|
|
508
|
+
} & {
|
|
509
|
+
__type?: "multi token" | undefined;
|
|
510
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
511
|
+
staticPagesCache: import("@tramvai/tokens-common").Cache<import("./tokens").StaticPagesCacheEntry> & {
|
|
512
|
+
__type?: "base token" | undefined;
|
|
513
|
+
};
|
|
514
|
+
fsCache: (FileSystemCache & {
|
|
515
|
+
__type?: "base token" | undefined;
|
|
516
|
+
}) | null;
|
|
517
|
+
fsCacheEnabled: (() => boolean) & {
|
|
518
|
+
__type?: "base token" | undefined;
|
|
278
519
|
};
|
|
279
|
-
|
|
520
|
+
logger: import("@tramvai/tokens-common").Logger & ((configOrName: string | {
|
|
521
|
+
[key: string]: any;
|
|
522
|
+
name: string;
|
|
523
|
+
}) => import("@tramvai/tokens-common").Logger) & {
|
|
524
|
+
__type?: "base token" | undefined;
|
|
525
|
+
};
|
|
526
|
+
}, import("@tramvai/papi").NormalizedHandler<any, any> & {
|
|
527
|
+
__papi_parameters__: import("@tramvai/papi").NormalizedPapiParameters<any, any>;
|
|
528
|
+
} & {
|
|
529
|
+
__type?: "multi token" | undefined;
|
|
530
|
+
}> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("@tramvai/papi").NormalizedHandler<any, any> & {
|
|
531
|
+
__papi_parameters__: import("@tramvai/papi").NormalizedPapiParameters<any, any>;
|
|
532
|
+
} & {
|
|
533
|
+
__type?: "multi token" | undefined;
|
|
534
|
+
}>)[];
|
|
280
535
|
//# sourceMappingURL=staticPages.d.ts.map
|