1 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es6/defaults.js" {
|
2 |
|
3 | export const PLUGIN_PATH = "@qiwi/semantic-release-gh-pages-plugin";
|
4 | export const DEFAULT_BRANCH = "gh-pages";
|
5 | export const DEFAULT_SRC = "docs";
|
6 | export const DEFAULT_DST = ".";
|
7 | export const DEFAULT_MSG = "docs updated <%= nextRelease.gitTag %>";
|
8 | export const DEFAULT_ENTERPRISE = false;
|
9 | export const DEFAULT_PULL_TAGS_BRANCH = "master";
|
10 | export const DEFAULT_PATTERN = "**/*";
|
11 | }
|
12 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es6/interface.js" {
|
13 |
|
14 | import { BranchSpec, Context } from 'semantic-release';
|
15 | export interface ILogger {
|
16 | log: (message: string, ...vars: any[]) => void;
|
17 | error: (message: string, ...vars: any[]) => void;
|
18 | }
|
19 | export type TAnyMap = {
|
20 | [key: string]: any;
|
21 | };
|
22 | export type TStringMap = {
|
23 | [key: string]: string;
|
24 | };
|
25 | export type TContext = Context & {
|
26 | env: TStringMap;
|
27 | branch?: Exclude<BranchSpec, string>;
|
28 | cwd: string;
|
29 | options: TAnyMap & {
|
30 | publish?: Array<any>;
|
31 | verifyConditions?: Array<any>;
|
32 | };
|
33 | };
|
34 | export interface IGhpagesPluginConfig {
|
35 | src: string;
|
36 | dst: string;
|
37 | ciBranch: string;
|
38 | docsBranch: string;
|
39 | pullTagsBranch?: string;
|
40 | msg: string;
|
41 | repo: string;
|
42 | token?: string;
|
43 | enterprise?: boolean;
|
44 | dotfiles?: boolean;
|
45 | add?: boolean;
|
46 | pattern?: string;
|
47 | }
|
48 | export interface IPushOpts extends IGhpagesPluginConfig {
|
49 | message: string;
|
50 | logger: ILogger;
|
51 | env: TAnyMap;
|
52 | cwd: string;
|
53 | }
|
54 | }
|
55 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es6/util.js" {
|
56 | import { ICallable } from '@qiwi/substrate-types';
|
57 | export const catchToSmth: (fn: ICallable, smth?: any) => (...args: any[]) => any;
|
58 | export const anyDefined: (...args: any[]) => any;
|
59 | export const isDirectory: (path: string) => any;
|
60 | }
|
61 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es6/config.js" {
|
62 | import { IGhpagesPluginConfig, TAnyMap, TContext } from "@qiwi/semantic-release-gh-pages-plugin/target/es6/interface.js";
|
63 | export { DEFAULT_BRANCH, DEFAULT_SRC, DEFAULT_MSG, DEFAULT_DST, DEFAULT_ENTERPRISE, PLUGIN_PATH, DEFAULT_PULL_TAGS_BRANCH, DEFAULT_PATTERN, } from "@qiwi/semantic-release-gh-pages-plugin/target/es6/defaults.js";
|
64 | export const GITIO_REPO_PATTERN: RegExp;
|
65 | |
66 |
|
67 |
|
68 | export const extractRepoName: (repoUrl: string) => string;
|
69 | |
70 |
|
71 |
|
72 | export const extractRepoDomain: (repoUrl: string) => string;
|
73 | |
74 |
|
75 |
|
76 | export const extractRepoToken: (repoUrl: string) => string;
|
77 | |
78 |
|
79 |
|
80 | export const getRepoUrl: (pluginConfig: TAnyMap, context: TContext, enterprise: boolean) => Promise<string>;
|
81 | |
82 |
|
83 |
|
84 | export const getUrlFromPackage: () => string;
|
85 | |
86 |
|
87 |
|
88 | export const getToken: (env: TAnyMap, repoUrl: string) => string | undefined;
|
89 | |
90 |
|
91 |
|
92 | export const reassembleRepoUrl: (redirectedUrl: string, context: TContext) => string | undefined;
|
93 | |
94 |
|
95 |
|
96 | export const resolveConfig: (pluginConfig: TAnyMap, context: TContext, path?: string, step?: string) => Promise<IGhpagesPluginConfig>;
|
97 | |
98 |
|
99 |
|
100 | export const resolveOptions: (pluginConfig: TAnyMap, context: TContext, path?: string, step?: string) => TAnyMap;
|
101 | }
|
102 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es6/ghpages.js" {
|
103 | import { IPushOpts } from "@qiwi/semantic-release-gh-pages-plugin/target/es6/interface.js";
|
104 | |
105 |
|
106 |
|
107 | export const OK: {
|
108 | status: string;
|
109 | };
|
110 | |
111 |
|
112 |
|
113 | export const pullTags: (opts: IPushOpts) => Promise<any>;
|
114 | |
115 |
|
116 |
|
117 | export const pushPages: (opts: IPushOpts) => Promise<unknown>;
|
118 | |
119 |
|
120 |
|
121 | export const _publish: (opts: IPushOpts) => Promise<unknown>;
|
122 | |
123 |
|
124 |
|
125 | export const publish: (opts: IPushOpts) => Promise<unknown>;
|
126 | }
|
127 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es6/tpl.js" {
|
128 | import { ILogger, TAnyMap } from "@qiwi/semantic-release-gh-pages-plugin/target/es6/interface.js";
|
129 | |
130 |
|
131 |
|
132 | export const render: (template: string, context: TAnyMap, logger: ILogger) => string;
|
133 | }
|
134 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es6/index.js" {
|
135 | import { TContext } from "@qiwi/semantic-release-gh-pages-plugin/target/es6/interface.js";
|
136 | export * from "@qiwi/semantic-release-gh-pages-plugin/target/es6/defaults.js";
|
137 | export const verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
|
138 | export const publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
|
139 | const _default: {
|
140 | verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
|
141 | publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
|
142 | };
|
143 | export default _default;
|
144 | }
|
145 | declare module "@qiwi/semantic-release-gh-pages-plugin" {
|
146 | export * from "@qiwi/semantic-release-gh-pages-plugin/target/es6/index.js"
|
147 | }
|
148 |
|
149 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es5/defaults.js" {
|
150 |
|
151 | export const PLUGIN_PATH = "@qiwi/semantic-release-gh-pages-plugin";
|
152 | export const DEFAULT_BRANCH = "gh-pages";
|
153 | export const DEFAULT_SRC = "docs";
|
154 | export const DEFAULT_DST = ".";
|
155 | export const DEFAULT_MSG = "docs updated <%= nextRelease.gitTag %>";
|
156 | export const DEFAULT_ENTERPRISE = false;
|
157 | export const DEFAULT_PULL_TAGS_BRANCH = "master";
|
158 | export const DEFAULT_PATTERN = "**/*";
|
159 | }
|
160 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es5/interface.js" {
|
161 |
|
162 | import { BranchSpec, Context } from 'semantic-release';
|
163 | export interface ILogger {
|
164 | log: (message: string, ...vars: any[]) => void;
|
165 | error: (message: string, ...vars: any[]) => void;
|
166 | }
|
167 | export type TAnyMap = {
|
168 | [key: string]: any;
|
169 | };
|
170 | export type TStringMap = {
|
171 | [key: string]: string;
|
172 | };
|
173 | export type TContext = Context & {
|
174 | env: TStringMap;
|
175 | branch?: Exclude<BranchSpec, string>;
|
176 | cwd: string;
|
177 | options: TAnyMap & {
|
178 | publish?: Array<any>;
|
179 | verifyConditions?: Array<any>;
|
180 | };
|
181 | };
|
182 | export interface IGhpagesPluginConfig {
|
183 | src: string;
|
184 | dst: string;
|
185 | ciBranch: string;
|
186 | docsBranch: string;
|
187 | pullTagsBranch?: string;
|
188 | msg: string;
|
189 | repo: string;
|
190 | token?: string;
|
191 | enterprise?: boolean;
|
192 | dotfiles?: boolean;
|
193 | add?: boolean;
|
194 | pattern?: string;
|
195 | }
|
196 | export interface IPushOpts extends IGhpagesPluginConfig {
|
197 | message: string;
|
198 | logger: ILogger;
|
199 | env: TAnyMap;
|
200 | cwd: string;
|
201 | }
|
202 | }
|
203 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es5/util.js" {
|
204 | import { ICallable } from '@qiwi/substrate-types';
|
205 | export const catchToSmth: (fn: ICallable, smth?: any) => (...args: any[]) => any;
|
206 | export const anyDefined: (...args: any[]) => any;
|
207 | export const isDirectory: (path: string) => any;
|
208 | }
|
209 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es5/config.js" {
|
210 | import { IGhpagesPluginConfig, TAnyMap, TContext } from "@qiwi/semantic-release-gh-pages-plugin/target/es5/interface.js";
|
211 | export { DEFAULT_BRANCH, DEFAULT_SRC, DEFAULT_MSG, DEFAULT_DST, DEFAULT_ENTERPRISE, PLUGIN_PATH, DEFAULT_PULL_TAGS_BRANCH, DEFAULT_PATTERN, } from "@qiwi/semantic-release-gh-pages-plugin/target/es5/defaults.js";
|
212 | export const GITIO_REPO_PATTERN: RegExp;
|
213 | |
214 |
|
215 |
|
216 | export const extractRepoName: (repoUrl: string) => string;
|
217 | |
218 |
|
219 |
|
220 | export const extractRepoDomain: (repoUrl: string) => string;
|
221 | |
222 |
|
223 |
|
224 | export const extractRepoToken: (repoUrl: string) => string;
|
225 | |
226 |
|
227 |
|
228 | export const getRepoUrl: (pluginConfig: TAnyMap, context: TContext, enterprise: boolean) => Promise<string>;
|
229 | |
230 |
|
231 |
|
232 | export const getUrlFromPackage: () => string;
|
233 | |
234 |
|
235 |
|
236 | export const getToken: (env: TAnyMap, repoUrl: string) => string | undefined;
|
237 | |
238 |
|
239 |
|
240 | export const reassembleRepoUrl: (redirectedUrl: string, context: TContext) => string | undefined;
|
241 | |
242 |
|
243 |
|
244 | export const resolveConfig: (pluginConfig: TAnyMap, context: TContext, path?: string, step?: string) => Promise<IGhpagesPluginConfig>;
|
245 | |
246 |
|
247 |
|
248 | export const resolveOptions: (pluginConfig: TAnyMap, context: TContext, path?: string, step?: string) => TAnyMap;
|
249 | }
|
250 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es5/ghpages.js" {
|
251 | import { IPushOpts } from "@qiwi/semantic-release-gh-pages-plugin/target/es5/interface.js";
|
252 | |
253 |
|
254 |
|
255 | export const OK: {
|
256 | status: string;
|
257 | };
|
258 | |
259 |
|
260 |
|
261 | export const pullTags: (opts: IPushOpts) => Promise<any>;
|
262 | |
263 |
|
264 |
|
265 | export const pushPages: (opts: IPushOpts) => Promise<unknown>;
|
266 | |
267 |
|
268 |
|
269 | export const _publish: (opts: IPushOpts) => Promise<unknown>;
|
270 | |
271 |
|
272 |
|
273 | export const publish: (opts: IPushOpts) => Promise<unknown>;
|
274 | }
|
275 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es5/tpl.js" {
|
276 | import { ILogger, TAnyMap } from "@qiwi/semantic-release-gh-pages-plugin/target/es5/interface.js";
|
277 | |
278 |
|
279 |
|
280 | export const render: (template: string, context: TAnyMap, logger: ILogger) => string;
|
281 | }
|
282 | declare module "@qiwi/semantic-release-gh-pages-plugin/target/es5/index.js" {
|
283 | import { TContext } from "@qiwi/semantic-release-gh-pages-plugin/target/es5/interface.js";
|
284 | export * from "@qiwi/semantic-release-gh-pages-plugin/target/es5/defaults.js";
|
285 | export const verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
|
286 | export const publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
|
287 | const _default: {
|
288 | verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
|
289 | publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
|
290 | };
|
291 | export default _default;
|
292 | } |
\ | No newline at end of file |