@contentstack/cli-utilities 1.2.0 → 1.3.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/cli-ux.js +19 -5
- package/lib/contentstack-management-sdk.js +21 -11
- package/lib/helpers.js +15 -0
- package/lib/index.js +27 -1
- package/package.json +2 -2
- package/types/cli-ux.d.ts +2 -1
- package/types/contentstack-management-sdk.d.ts +10 -2
- package/types/encrypter.d.ts +1 -1
- package/types/helpers.d.ts +1 -0
- package/types/http-client/client.d.ts +2 -0
- package/types/index.d.ts +4 -1
- package/types/interfaces/index.d.ts +3 -0
- package/types/http-client.d.ts +0 -54
- package/types/selectors/index.d.ts +0 -12
- package/types/selectors/interfaces.d.ts +0 -32
- package/types/selectors/validations.d.ts +0 -1
package/lib/cli-ux.js
CHANGED
|
@@ -20,9 +20,18 @@ class CLIInterface {
|
|
|
20
20
|
return core_1.ux.table;
|
|
21
21
|
}
|
|
22
22
|
init(context) { }
|
|
23
|
+
registerSearchPlugin() {
|
|
24
|
+
inquirer_1.default.registerPrompt('search-list', require('inquirer-search-list'));
|
|
25
|
+
inquirer_1.default.registerPrompt('search-checkbox', require('inquirer-search-checkbox'));
|
|
26
|
+
}
|
|
23
27
|
print(message, opts) {
|
|
24
|
-
if (opts
|
|
25
|
-
|
|
28
|
+
if (opts) {
|
|
29
|
+
let chalkFn = chalk_1.default;
|
|
30
|
+
if (opts.color)
|
|
31
|
+
chalkFn = chalkFn[opts.color];
|
|
32
|
+
if (opts.bold)
|
|
33
|
+
chalkFn = chalkFn.bold;
|
|
34
|
+
core_1.ux.log(chalkFn(message_handler_1.default.parse(message)));
|
|
26
35
|
return;
|
|
27
36
|
}
|
|
28
37
|
core_1.ux.log(message_handler_1.default.parse(message));
|
|
@@ -46,9 +55,14 @@ class CLIInterface {
|
|
|
46
55
|
core_1.ux.table(data, columns, options);
|
|
47
56
|
}
|
|
48
57
|
async inquire(inquirePayload) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
if (Array.isArray(inquirePayload)) {
|
|
59
|
+
return inquirer_1.default.prompt(inquirePayload);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
inquirePayload.message = message_handler_1.default.parse(inquirePayload.message);
|
|
63
|
+
const result = await inquirer_1.default.prompt(inquirePayload);
|
|
64
|
+
return result[inquirePayload.name];
|
|
65
|
+
}
|
|
52
66
|
}
|
|
53
67
|
prompt(name, options) {
|
|
54
68
|
return core_1.ux.prompt(name, options);
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.managementSDKInitiator = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
|
-
const https_1 = require("https");
|
|
5
5
|
const management_1 = require("@contentstack/management");
|
|
6
|
+
const node_https_1 = require("node:https");
|
|
6
7
|
const config_handler_1 = tslib_1.__importDefault(require("./config-handler"));
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
class ManagementSDKInitiator {
|
|
9
|
+
constructor() { }
|
|
10
|
+
init(context) {
|
|
11
|
+
this.analyticsInfo = context === null || context === void 0 ? void 0 : context.analyticsInfo;
|
|
12
|
+
}
|
|
13
|
+
async createAPIClient(config) {
|
|
9
14
|
const option = {
|
|
10
15
|
host: config.host,
|
|
11
16
|
maxContentLength: 100000000,
|
|
@@ -13,7 +18,7 @@ exports.default = async (config) => {
|
|
|
13
18
|
maxRequests: 10,
|
|
14
19
|
retryLimit: 3,
|
|
15
20
|
timeout: 60000,
|
|
16
|
-
httpsAgent: new
|
|
21
|
+
httpsAgent: new node_https_1.Agent({
|
|
17
22
|
maxSockets: 100,
|
|
18
23
|
maxFreeSockets: 10,
|
|
19
24
|
keepAlive: true,
|
|
@@ -47,12 +52,19 @@ exports.default = async (config) => {
|
|
|
47
52
|
},
|
|
48
53
|
};
|
|
49
54
|
if (typeof config.branchName === 'string') {
|
|
50
|
-
option.headers
|
|
55
|
+
if (!option.headers)
|
|
56
|
+
option.headers = {};
|
|
57
|
+
option.headers.branch = config.branchName;
|
|
58
|
+
}
|
|
59
|
+
if (this.analyticsInfo) {
|
|
60
|
+
if (!option.headers)
|
|
61
|
+
option.headers = {};
|
|
62
|
+
option.headers['X-CS-CLI'] = this.analyticsInfo;
|
|
51
63
|
}
|
|
52
64
|
if (!config.management_token) {
|
|
53
65
|
const authtoken = config_handler_1.default.get('authtoken');
|
|
54
66
|
if (authtoken) {
|
|
55
|
-
option.authtoken =
|
|
67
|
+
option.authtoken = authtoken;
|
|
56
68
|
option.authorization = '';
|
|
57
69
|
}
|
|
58
70
|
else {
|
|
@@ -62,8 +74,6 @@ exports.default = async (config) => {
|
|
|
62
74
|
}
|
|
63
75
|
return (0, management_1.client)(option);
|
|
64
76
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
};
|
|
77
|
+
}
|
|
78
|
+
exports.managementSDKInitiator = new ManagementSDKInitiator();
|
|
79
|
+
exports.default = exports.managementSDKInitiator.createAPIClient.bind(exports.managementSDKInitiator);
|
package/lib/helpers.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isAuthenticated = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const config_handler_1 = tslib_1.__importDefault(require("./config-handler"));
|
|
6
|
+
function isAuthenticated() {
|
|
7
|
+
const authtoken = config_handler_1.default.get('authtoken');
|
|
8
|
+
if (authtoken) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.isAuthenticated = isAuthenticated;
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Command = exports.flags = exports.args = exports.NodeCrypto = exports.printFlagDeprecation = exports.managementSDKClient = exports.configHandler = exports.messageHandler = exports.CLIError = exports.cliux = exports.logger = void 0;
|
|
3
|
+
exports.stdout = exports.stderr = exports.execute = exports.ux = exports.flush = exports.settings = exports.toConfiguredId = exports.toStandardizedId = exports.tsPath = exports.toCached = exports.run = exports.Plugin = exports.Parser = exports.Interfaces = exports.HelpBase = exports.Help = exports.loadHelpClass = exports.Flags = exports.Errors = exports.Config = exports.CommandHelp = exports.Args = exports.Command = exports.flags = exports.args = exports.NodeCrypto = exports.printFlagDeprecation = exports.managementSDKInitiator = exports.managementSDKClient = exports.configHandler = exports.messageHandler = exports.CLIError = exports.cliux = exports.logger = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var logger_1 = require("./logger");
|
|
6
6
|
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return tslib_1.__importDefault(logger_1).default; } });
|
|
@@ -14,6 +14,7 @@ var config_handler_1 = require("./config-handler");
|
|
|
14
14
|
Object.defineProperty(exports, "configHandler", { enumerable: true, get: function () { return tslib_1.__importDefault(config_handler_1).default; } });
|
|
15
15
|
var contentstack_management_sdk_1 = require("./contentstack-management-sdk");
|
|
16
16
|
Object.defineProperty(exports, "managementSDKClient", { enumerable: true, get: function () { return tslib_1.__importDefault(contentstack_management_sdk_1).default; } });
|
|
17
|
+
Object.defineProperty(exports, "managementSDKInitiator", { enumerable: true, get: function () { return contentstack_management_sdk_1.managementSDKInitiator; } });
|
|
17
18
|
var flag_deprecation_check_1 = require("./flag-deprecation-check");
|
|
18
19
|
Object.defineProperty(exports, "printFlagDeprecation", { enumerable: true, get: function () { return tslib_1.__importDefault(flag_deprecation_check_1).default; } });
|
|
19
20
|
tslib_1.__exportStar(require("./http-client"), exports);
|
|
@@ -23,3 +24,28 @@ var cli_ux_2 = require("./cli-ux");
|
|
|
23
24
|
Object.defineProperty(exports, "args", { enumerable: true, get: function () { return cli_ux_2.Args; } });
|
|
24
25
|
Object.defineProperty(exports, "flags", { enumerable: true, get: function () { return cli_ux_2.Flags; } });
|
|
25
26
|
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return cli_ux_2.Command; } });
|
|
27
|
+
tslib_1.__exportStar(require("./helpers"), exports);
|
|
28
|
+
// NOTE Exporting all @oclif/core modules: So that all the module can be acessed through cli-utility
|
|
29
|
+
var core_1 = require("@oclif/core");
|
|
30
|
+
Object.defineProperty(exports, "Args", { enumerable: true, get: function () { return core_1.Args; } });
|
|
31
|
+
Object.defineProperty(exports, "CommandHelp", { enumerable: true, get: function () { return core_1.CommandHelp; } });
|
|
32
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return core_1.Config; } });
|
|
33
|
+
Object.defineProperty(exports, "Errors", { enumerable: true, get: function () { return core_1.Errors; } });
|
|
34
|
+
Object.defineProperty(exports, "Flags", { enumerable: true, get: function () { return core_1.Flags; } });
|
|
35
|
+
Object.defineProperty(exports, "loadHelpClass", { enumerable: true, get: function () { return core_1.loadHelpClass; } });
|
|
36
|
+
Object.defineProperty(exports, "Help", { enumerable: true, get: function () { return core_1.Help; } });
|
|
37
|
+
Object.defineProperty(exports, "HelpBase", { enumerable: true, get: function () { return core_1.HelpBase; } });
|
|
38
|
+
Object.defineProperty(exports, "Interfaces", { enumerable: true, get: function () { return core_1.Interfaces; } });
|
|
39
|
+
Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return core_1.Parser; } });
|
|
40
|
+
Object.defineProperty(exports, "Plugin", { enumerable: true, get: function () { return core_1.Plugin; } });
|
|
41
|
+
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
|
|
42
|
+
Object.defineProperty(exports, "toCached", { enumerable: true, get: function () { return core_1.toCached; } });
|
|
43
|
+
Object.defineProperty(exports, "tsPath", { enumerable: true, get: function () { return core_1.tsPath; } });
|
|
44
|
+
Object.defineProperty(exports, "toStandardizedId", { enumerable: true, get: function () { return core_1.toStandardizedId; } });
|
|
45
|
+
Object.defineProperty(exports, "toConfiguredId", { enumerable: true, get: function () { return core_1.toConfiguredId; } });
|
|
46
|
+
Object.defineProperty(exports, "settings", { enumerable: true, get: function () { return core_1.settings; } });
|
|
47
|
+
Object.defineProperty(exports, "flush", { enumerable: true, get: function () { return core_1.flush; } });
|
|
48
|
+
Object.defineProperty(exports, "ux", { enumerable: true, get: function () { return core_1.ux; } });
|
|
49
|
+
Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return core_1.execute; } });
|
|
50
|
+
Object.defineProperty(exports, "stderr", { enumerable: true, get: function () { return core_1.stderr; } });
|
|
51
|
+
Object.defineProperty(exports, "stdout", { enumerable: true, get: function () { return core_1.stdout; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-utilities",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Utilities for contentstack projects",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"typescript": "^4.9.3",
|
|
72
72
|
"tslib": "^1.13.0"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|
package/types/cli-ux.d.ts
CHANGED
|
@@ -9,12 +9,13 @@ declare class CLIInterface {
|
|
|
9
9
|
constructor();
|
|
10
10
|
get uxTable(): typeof Table.table;
|
|
11
11
|
init(context: any): void;
|
|
12
|
+
registerSearchPlugin(): void;
|
|
12
13
|
print(message: string, opts?: PrintOptions): void;
|
|
13
14
|
success(message: string): void;
|
|
14
15
|
error(message: string, ...params: any): void;
|
|
15
16
|
loader(message?: string): void;
|
|
16
17
|
table(data: Record<string, unknown>[], columns: Table.table.Columns<Record<string, unknown>>, options?: Table.table.Options): void;
|
|
17
|
-
inquire<T>(inquirePayload: InquirePayload): Promise<T>;
|
|
18
|
+
inquire<T>(inquirePayload: InquirePayload | Array<InquirePayload>): Promise<T>;
|
|
18
19
|
prompt(name: string, options?: CliUXPromptOptions): Promise<any>;
|
|
19
20
|
confirm(message?: string): Promise<boolean>;
|
|
20
21
|
progress(options?: any): any;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import { ContentstackClient } from '@contentstack/management';
|
|
2
|
-
declare
|
|
1
|
+
import { ContentstackClient, ContentstackConfig } from '@contentstack/management';
|
|
2
|
+
declare class ManagementSDKInitiator {
|
|
3
|
+
private analyticsInfo;
|
|
4
|
+
constructor();
|
|
5
|
+
init(context: any): void;
|
|
6
|
+
createAPIClient(config: any): Promise<ContentstackClient>;
|
|
7
|
+
}
|
|
8
|
+
export declare const managementSDKInitiator: ManagementSDKInitiator;
|
|
9
|
+
declare const _default: any;
|
|
3
10
|
export default _default;
|
|
11
|
+
export { ContentstackConfig, ContentstackClient };
|
package/types/encrypter.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isAuthenticated(): boolean;
|
|
@@ -225,6 +225,8 @@ export declare class HttpClient {
|
|
|
225
225
|
*/
|
|
226
226
|
prepareRequestPayload(): any;
|
|
227
227
|
}
|
|
228
|
+
export interface HttpRequestConfig extends AxiosRequestConfig {
|
|
229
|
+
}
|
|
228
230
|
type BodyFormat = 'json' | 'formParams';
|
|
229
231
|
type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS';
|
|
230
232
|
export {};
|
package/types/index.d.ts
CHANGED
|
@@ -3,8 +3,11 @@ export { default as cliux } from './cli-ux';
|
|
|
3
3
|
export { default as CLIError } from './cli-error';
|
|
4
4
|
export { default as messageHandler } from './message-handler';
|
|
5
5
|
export { default as configHandler } from './config-handler';
|
|
6
|
-
export { default as managementSDKClient } from './contentstack-management-sdk';
|
|
6
|
+
export { default as managementSDKClient, managementSDKInitiator, ContentstackClient, ContentstackConfig, } from './contentstack-management-sdk';
|
|
7
7
|
export { default as printFlagDeprecation } from './flag-deprecation-check';
|
|
8
8
|
export * from './http-client';
|
|
9
9
|
export { default as NodeCrypto } from './encrypter';
|
|
10
10
|
export { Args as args, Flags as flags, Command } from './cli-ux';
|
|
11
|
+
export * from './helpers';
|
|
12
|
+
export { Args, CommandHelp, Config, Errors, Flags, loadHelpClass, Help, HelpBase, HelpSection, HelpSectionRenderer, HelpSectionKeyValueTable, Hook, Interfaces, Parser, Plugin, run, toCached, tsPath, toStandardizedId, toConfiguredId, settings, Settings, flush, ux, execute, stderr, stdout, } from '@oclif/core';
|
|
13
|
+
export { FlagInput } from '@oclif/core/lib/interfaces/parser';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { IPromptOptions } from "@oclif/core/lib/cli-ux";
|
|
2
2
|
export interface PrintOptions {
|
|
3
|
+
bold?: boolean;
|
|
3
4
|
color?: string;
|
|
4
5
|
}
|
|
5
6
|
export interface InquirePayload {
|
|
6
7
|
type: string;
|
|
7
8
|
name: string;
|
|
9
|
+
default?: any;
|
|
8
10
|
message: string;
|
|
9
11
|
choices?: Array<any>;
|
|
10
12
|
transformer?: Function;
|
|
13
|
+
validate?(input: any, answers?: any): boolean | string | Promise<boolean | string>;
|
|
11
14
|
}
|
|
12
15
|
export interface Region {
|
|
13
16
|
name: string;
|
package/types/http-client.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import { HttpResponse } from '../src/http-client';
|
|
3
|
-
|
|
4
|
-
type BodyFormat = 'json' | 'formParams';
|
|
5
|
-
|
|
6
|
-
type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* CLI HttpClient
|
|
10
|
-
*/
|
|
11
|
-
export declare class HttpClient {
|
|
12
|
-
private request: AxiosRequestConfig;
|
|
13
|
-
private readonly axiosInstance: AxiosInstance;
|
|
14
|
-
constructor();
|
|
15
|
-
static create(): HttpClient;
|
|
16
|
-
requestConfig(): AxiosRequestConfig;
|
|
17
|
-
resetConfig(): HttpClient;
|
|
18
|
-
baseUrl(baseUrl: string): HttpClient;
|
|
19
|
-
headers(headers: any): HttpClient;
|
|
20
|
-
queryParams(queryParams: object): HttpClient;
|
|
21
|
-
basicAuth(username: string, password: string): HttpClient;
|
|
22
|
-
token(token: string, type: string): HttpClient;
|
|
23
|
-
options(options: AxiosRequestConfig): HttpClient;
|
|
24
|
-
payload(data: any): HttpClient;
|
|
25
|
-
timeout(timeout: number): this;
|
|
26
|
-
asJson(): HttpClient;
|
|
27
|
-
asFormParams(): HttpClient;
|
|
28
|
-
payloadFormat(format: BodyFormat): HttpClient;
|
|
29
|
-
accept(accept: string): HttpClient;
|
|
30
|
-
acceptJson(): HttpClient;
|
|
31
|
-
contentType(contentType: string): HttpClient;
|
|
32
|
-
get<R>(url: string, queryParams?: object): Promise<HttpResponse<R>>;
|
|
33
|
-
post<R>(url: string, payload?: any): Promise<HttpResponse<R>>;
|
|
34
|
-
put<R>(url: string, payload?: any): Promise<HttpResponse<R>>;
|
|
35
|
-
patch<R>(url: string, payload?: any): Promise<HttpResponse<R>>;
|
|
36
|
-
delete<R>(url: string, queryParams?: object): Promise<HttpResponse<R>>;
|
|
37
|
-
send<R>(method: HttpMethod, url: string): Promise<HttpResponse<R>>;
|
|
38
|
-
createAndSendRequest(method: HttpMethod, url: string): Promise<AxiosResponse>;
|
|
39
|
-
prepareRequestPayload(): any;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* CLI HttpClient
|
|
44
|
-
*/
|
|
45
|
-
export declare class HttpResponse {
|
|
46
|
-
private readonly response: AxiosResponse;
|
|
47
|
-
constructor();
|
|
48
|
-
get status(): number;
|
|
49
|
-
get data();
|
|
50
|
-
get payload();
|
|
51
|
-
get headers();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface HttpRequestConfig extends AxiosRequestConfig {}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Token, selectedOrganization, Stack, ContentType, Environment, Entry, Locale } from './interfaces';
|
|
2
|
-
export declare function chooseOrganization(client: any, displayMessage?: string, region?: string, orgUid?: string): Promise<selectedOrganization>;
|
|
3
|
-
export declare function chooseStack(client: any, organizationId: string, displayMessage?: string, region?: string): Promise<Stack>;
|
|
4
|
-
export declare function chooseContentType(stackApiKey: string, displayMessage?: string, region?: string): Promise<ContentType>;
|
|
5
|
-
export declare function chooseEntry(contentTypeUid: string, stackApiKey: string, displayMessage?: string, region?: string): Promise<Entry>;
|
|
6
|
-
export declare function chooseContentTypes(stack: any, displayMessage?: string): Promise<ContentType[]>;
|
|
7
|
-
export declare function chooseEnvironments(stack: any, displayMessage?: string): Promise<Environment[]>;
|
|
8
|
-
export declare function chooseEnvironment(stack: any, displayMessage?: string): Promise<Environment>;
|
|
9
|
-
export declare function chooseLocales(stack: any, displayMessage?: string): Promise<Locale[]>;
|
|
10
|
-
export declare function chooseLocale(stack: any, displayMessage?: string, defaultLocale?: Locale): Promise<Locale>;
|
|
11
|
-
export declare function chooseTokenAlias(): Promise<Token>;
|
|
12
|
-
export declare function chooseDeliveryTokenAlias(): Promise<Token>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface Token {
|
|
2
|
-
token: string;
|
|
3
|
-
apiKey: string;
|
|
4
|
-
}
|
|
5
|
-
export interface Organization {
|
|
6
|
-
uid: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export interface selectedOrganization {
|
|
10
|
-
orgUid: string;
|
|
11
|
-
orgName: string;
|
|
12
|
-
}
|
|
13
|
-
export interface Stack {
|
|
14
|
-
name: string;
|
|
15
|
-
api_key: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ContentType {
|
|
18
|
-
uid: string;
|
|
19
|
-
title: string;
|
|
20
|
-
}
|
|
21
|
-
export interface Environment {
|
|
22
|
-
name: string;
|
|
23
|
-
uid: string;
|
|
24
|
-
}
|
|
25
|
-
export interface Entry {
|
|
26
|
-
uid: string;
|
|
27
|
-
title: string;
|
|
28
|
-
}
|
|
29
|
-
export interface Locale {
|
|
30
|
-
name: string;
|
|
31
|
-
code: string;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function shouldNotBeEmpty(input: any): boolean;
|