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