@nxtedition/types 1.0.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/README.md +62 -0
- package/dist/common/block.d.ts +25 -0
- package/dist/common/block.js +571 -0
- package/dist/common/index.d.ts +32 -0
- package/dist/common/index.js +565 -0
- package/dist/common/lock.d.ts +12 -0
- package/dist/common/lock.js +152 -0
- package/dist/common/settings.d.ts +150 -0
- package/dist/common/settings.js +2642 -0
- package/dist/domains/asset.d.ts +23 -0
- package/dist/domains/asset.js +225 -0
- package/dist/domains/connection.d.ts +62 -0
- package/dist/domains/connection.js +1167 -0
- package/dist/domains/event.d.ts +18 -0
- package/dist/domains/event.js +165 -0
- package/dist/domains/general.d.ts +23 -0
- package/dist/domains/general.js +225 -0
- package/dist/domains/index.d.ts +25 -0
- package/dist/domains/index.js +12 -0
- package/dist/domains/media.d.ts +32 -0
- package/dist/domains/media.js +465 -0
- package/dist/domains/permission.d.ts +24 -0
- package/dist/domains/permission.js +375 -0
- package/dist/domains/publish.d.ts +213 -0
- package/dist/domains/publish.js +9664 -0
- package/dist/domains/role.d.ts +13 -0
- package/dist/domains/role.js +119 -0
- package/dist/domains/script.d.ts +13 -0
- package/dist/domains/script.js +125 -0
- package/dist/domains/search.d.ts +13 -0
- package/dist/domains/search.js +119 -0
- package/dist/domains/settings.d.ts +13 -0
- package/dist/domains/settings.js +2765 -0
- package/dist/domains/template.d.ts +23 -0
- package/dist/domains/template.js +372 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +2 -0
- package/package.json +34 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface AssetDomainRecords {
|
|
3
|
+
":asset.title?": AssetTitleRecord;
|
|
4
|
+
":asset.types?": AssetTypesRecord;
|
|
5
|
+
}
|
|
6
|
+
export interface AssetTitleRecord {
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const isAssetTitleRecord: (input: unknown) => input is AssetTitleRecord;
|
|
10
|
+
export declare const assertAssetTitleRecord: (input: unknown) => AssetTitleRecord;
|
|
11
|
+
export declare const randomAssetTitleRecord: () => AssetTitleRecord;
|
|
12
|
+
export declare const assertGuardAssetTitleRecord: __AssertionGuard<AssetTitleRecord>;
|
|
13
|
+
export declare const stringifyAssetTitleRecord: (input: AssetTitleRecord) => string;
|
|
14
|
+
export declare const assertStringifyAssetTitleRecord: (input: unknown) => string;
|
|
15
|
+
export interface AssetTypesRecord {
|
|
16
|
+
value?: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const isAssetTypesRecord: (input: unknown) => input is AssetTypesRecord;
|
|
19
|
+
export declare const assertAssetTypesRecord: (input: unknown) => AssetTypesRecord;
|
|
20
|
+
export declare const randomAssetTypesRecord: () => AssetTypesRecord;
|
|
21
|
+
export declare const assertGuardAssetTypesRecord: __AssertionGuard<AssetTypesRecord>;
|
|
22
|
+
export declare const stringifyAssetTypesRecord: (input: AssetTypesRecord) => string;
|
|
23
|
+
export declare const assertStringifyAssetTypesRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isAssetTitleRecord = input => {
|
|
3
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
4
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
|
+
};
|
|
6
|
+
export const assertAssetTitleRecord = (input, errorFactory) => {
|
|
7
|
+
const __is = input => {
|
|
8
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
9
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
10
|
+
};
|
|
11
|
+
if (false === __is(input))
|
|
12
|
+
((input, _path, _exceptionable = true) => {
|
|
13
|
+
const $guard = __typia.createAssert.guard;
|
|
14
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
15
|
+
path: _path + ".value",
|
|
16
|
+
expected: "(string | undefined)",
|
|
17
|
+
value: input.value
|
|
18
|
+
}, errorFactory);
|
|
19
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
20
|
+
path: _path + "",
|
|
21
|
+
expected: "AssetTitleRecord",
|
|
22
|
+
value: input
|
|
23
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
24
|
+
path: _path + "",
|
|
25
|
+
expected: "AssetTitleRecord",
|
|
26
|
+
value: input
|
|
27
|
+
}, errorFactory);
|
|
28
|
+
})(input, "$input", true);
|
|
29
|
+
return input;
|
|
30
|
+
};
|
|
31
|
+
export const randomAssetTitleRecord = generator => {
|
|
32
|
+
const $generator = __typia.createRandom.generator;
|
|
33
|
+
const $pick = __typia.createRandom.pick;
|
|
34
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
35
|
+
value: $pick([
|
|
36
|
+
() => undefined,
|
|
37
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
38
|
+
])()
|
|
39
|
+
});
|
|
40
|
+
return $ro0();
|
|
41
|
+
};
|
|
42
|
+
export const assertGuardAssetTitleRecord = (input, errorFactory) => {
|
|
43
|
+
const __is = input => {
|
|
44
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
45
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
46
|
+
};
|
|
47
|
+
if (false === __is(input))
|
|
48
|
+
((input, _path, _exceptionable = true) => {
|
|
49
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
50
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
51
|
+
path: _path + ".value",
|
|
52
|
+
expected: "(string | undefined)",
|
|
53
|
+
value: input.value
|
|
54
|
+
}, errorFactory);
|
|
55
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
56
|
+
path: _path + "",
|
|
57
|
+
expected: "AssetTitleRecord",
|
|
58
|
+
value: input
|
|
59
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
60
|
+
path: _path + "",
|
|
61
|
+
expected: "AssetTitleRecord",
|
|
62
|
+
value: input
|
|
63
|
+
}, errorFactory);
|
|
64
|
+
})(input, "$input", true);
|
|
65
|
+
};
|
|
66
|
+
export const stringifyAssetTitleRecord = input => {
|
|
67
|
+
const $string = __typia.json.createStringify.string;
|
|
68
|
+
const $tail = __typia.json.createStringify.tail;
|
|
69
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
|
|
70
|
+
return $so0(input);
|
|
71
|
+
};
|
|
72
|
+
export const assertStringifyAssetTitleRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
73
|
+
const __is = input => {
|
|
74
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
75
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
76
|
+
};
|
|
77
|
+
if (false === __is(input))
|
|
78
|
+
((input, _path, _exceptionable = true) => {
|
|
79
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
80
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
81
|
+
path: _path + ".value",
|
|
82
|
+
expected: "(string | undefined)",
|
|
83
|
+
value: input.value
|
|
84
|
+
}, errorFactory);
|
|
85
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
86
|
+
path: _path + "",
|
|
87
|
+
expected: "AssetTitleRecord",
|
|
88
|
+
value: input
|
|
89
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
90
|
+
path: _path + "",
|
|
91
|
+
expected: "AssetTitleRecord",
|
|
92
|
+
value: input
|
|
93
|
+
}, errorFactory);
|
|
94
|
+
})(input, "$input", true);
|
|
95
|
+
return input;
|
|
96
|
+
}; const stringify = input => {
|
|
97
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
98
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
99
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
|
|
100
|
+
return $so0(input);
|
|
101
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
102
|
+
export const isAssetTypesRecord = input => {
|
|
103
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
104
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
105
|
+
};
|
|
106
|
+
export const assertAssetTypesRecord = (input, errorFactory) => {
|
|
107
|
+
const __is = input => {
|
|
108
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
109
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
110
|
+
};
|
|
111
|
+
if (false === __is(input))
|
|
112
|
+
((input, _path, _exceptionable = true) => {
|
|
113
|
+
const $guard = __typia.createAssert.guard;
|
|
114
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
115
|
+
path: _path + ".value",
|
|
116
|
+
expected: "(Array<string> | undefined)",
|
|
117
|
+
value: input.value
|
|
118
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
119
|
+
path: _path + ".value[" + _index1 + "]",
|
|
120
|
+
expected: "string",
|
|
121
|
+
value: elem
|
|
122
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
123
|
+
path: _path + ".value",
|
|
124
|
+
expected: "(Array<string> | undefined)",
|
|
125
|
+
value: input.value
|
|
126
|
+
}, errorFactory);
|
|
127
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
128
|
+
path: _path + "",
|
|
129
|
+
expected: "AssetTypesRecord",
|
|
130
|
+
value: input
|
|
131
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
132
|
+
path: _path + "",
|
|
133
|
+
expected: "AssetTypesRecord",
|
|
134
|
+
value: input
|
|
135
|
+
}, errorFactory);
|
|
136
|
+
})(input, "$input", true);
|
|
137
|
+
return input;
|
|
138
|
+
};
|
|
139
|
+
export const randomAssetTypesRecord = generator => {
|
|
140
|
+
const $generator = __typia.createRandom.generator;
|
|
141
|
+
const $pick = __typia.createRandom.pick;
|
|
142
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
143
|
+
value: $pick([
|
|
144
|
+
() => undefined,
|
|
145
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
146
|
+
])()
|
|
147
|
+
});
|
|
148
|
+
return $ro0();
|
|
149
|
+
};
|
|
150
|
+
export const assertGuardAssetTypesRecord = (input, errorFactory) => {
|
|
151
|
+
const __is = input => {
|
|
152
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
153
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
154
|
+
};
|
|
155
|
+
if (false === __is(input))
|
|
156
|
+
((input, _path, _exceptionable = true) => {
|
|
157
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
158
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
159
|
+
path: _path + ".value",
|
|
160
|
+
expected: "(Array<string> | undefined)",
|
|
161
|
+
value: input.value
|
|
162
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
163
|
+
path: _path + ".value[" + _index1 + "]",
|
|
164
|
+
expected: "string",
|
|
165
|
+
value: elem
|
|
166
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
167
|
+
path: _path + ".value",
|
|
168
|
+
expected: "(Array<string> | undefined)",
|
|
169
|
+
value: input.value
|
|
170
|
+
}, errorFactory);
|
|
171
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
172
|
+
path: _path + "",
|
|
173
|
+
expected: "AssetTypesRecord",
|
|
174
|
+
value: input
|
|
175
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
176
|
+
path: _path + "",
|
|
177
|
+
expected: "AssetTypesRecord",
|
|
178
|
+
value: input
|
|
179
|
+
}, errorFactory);
|
|
180
|
+
})(input, "$input", true);
|
|
181
|
+
};
|
|
182
|
+
export const stringifyAssetTypesRecord = input => {
|
|
183
|
+
const $string = __typia.json.createStringify.string;
|
|
184
|
+
const $tail = __typia.json.createStringify.tail;
|
|
185
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
186
|
+
return $so0(input);
|
|
187
|
+
};
|
|
188
|
+
export const assertStringifyAssetTypesRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
189
|
+
const __is = input => {
|
|
190
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
191
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
192
|
+
};
|
|
193
|
+
if (false === __is(input))
|
|
194
|
+
((input, _path, _exceptionable = true) => {
|
|
195
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
196
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
197
|
+
path: _path + ".value",
|
|
198
|
+
expected: "(Array<string> | undefined)",
|
|
199
|
+
value: input.value
|
|
200
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
201
|
+
path: _path + ".value[" + _index1 + "]",
|
|
202
|
+
expected: "string",
|
|
203
|
+
value: elem
|
|
204
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
205
|
+
path: _path + ".value",
|
|
206
|
+
expected: "(Array<string> | undefined)",
|
|
207
|
+
value: input.value
|
|
208
|
+
}, errorFactory);
|
|
209
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
210
|
+
path: _path + "",
|
|
211
|
+
expected: "AssetTypesRecord",
|
|
212
|
+
value: input
|
|
213
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
214
|
+
path: _path + "",
|
|
215
|
+
expected: "AssetTypesRecord",
|
|
216
|
+
value: input
|
|
217
|
+
}, errorFactory);
|
|
218
|
+
})(input, "$input", true);
|
|
219
|
+
return input;
|
|
220
|
+
}; const stringify = input => {
|
|
221
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
222
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
223
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
224
|
+
return $so0(input);
|
|
225
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface ConnectionDomainRecords {
|
|
3
|
+
[":connection"]: ConnectionRecord;
|
|
4
|
+
[":connection.methods?"]: Record<string, object>;
|
|
5
|
+
[":connection.stats?"]: ConnectionStatsRecord;
|
|
6
|
+
}
|
|
7
|
+
export type ConnectionRecord = FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord;
|
|
8
|
+
export declare const isConnectionRecord: (input: unknown) => input is ConnectionRecord;
|
|
9
|
+
export declare const assertConnectionRecord: (input: unknown) => ConnectionRecord;
|
|
10
|
+
export declare const randomConnectionRecord: () => ConnectionRecord;
|
|
11
|
+
export declare const assertGuardConnectionRecord: __AssertionGuard<ConnectionRecord>;
|
|
12
|
+
export declare const stringifyConnectionRecord: (input: ConnectionRecord) => string;
|
|
13
|
+
export declare const assertStringifyConnectionRecord: (input: unknown) => string;
|
|
14
|
+
export interface ConnectionStatsRecord {
|
|
15
|
+
status: string;
|
|
16
|
+
substatus: string;
|
|
17
|
+
pages?: Array<{
|
|
18
|
+
id: unknown;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
export declare const isConnectionStatsRecord: (input: unknown) => input is ConnectionStatsRecord;
|
|
22
|
+
export declare const assertConnectionStatsRecord: (input: unknown) => ConnectionStatsRecord;
|
|
23
|
+
export declare const randomConnectionStatsRecord: () => ConnectionStatsRecord;
|
|
24
|
+
export declare const assertGuardConnectionStatsRecord: __AssertionGuard<ConnectionStatsRecord>;
|
|
25
|
+
export declare const stringifyConnectionStatsRecord: (input: ConnectionStatsRecord) => string;
|
|
26
|
+
export declare const assertStringifyConnectionStatsRecord: (input: unknown) => string;
|
|
27
|
+
export interface ReutersConnectionRecord {
|
|
28
|
+
type: "reuters";
|
|
29
|
+
clientId?: string;
|
|
30
|
+
clientSecret?: string;
|
|
31
|
+
audience?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const isReutersConnectionRecord: (input: unknown) => input is ReutersConnectionRecord;
|
|
34
|
+
export declare const assertReutersConnectionRecord: (input: unknown) => ReutersConnectionRecord;
|
|
35
|
+
export declare const randomReutersConnectionRecord: () => ReutersConnectionRecord;
|
|
36
|
+
export declare const assertGuardReutersConnectionRecord: __AssertionGuard<ReutersConnectionRecord>;
|
|
37
|
+
export declare const stringifyReutersConnectionRecord: (input: ReutersConnectionRecord) => string;
|
|
38
|
+
export declare const assertStringifyReutersConnectionRecord: (input: unknown) => string;
|
|
39
|
+
export interface FacebookConnectionRecord {
|
|
40
|
+
type: "facebook";
|
|
41
|
+
grantedScopes?: string[];
|
|
42
|
+
}
|
|
43
|
+
export declare const isFacebookConnectionRecord: (input: unknown) => input is FacebookConnectionRecord;
|
|
44
|
+
export declare const assertFacebookConnectionRecord: (input: unknown) => FacebookConnectionRecord;
|
|
45
|
+
export declare const randomFacebookConnectionRecord: () => FacebookConnectionRecord;
|
|
46
|
+
export declare const assertGuardFacebookConnectionRecord: __AssertionGuard<FacebookConnectionRecord>;
|
|
47
|
+
export declare const stringifyFacebookConnectionRecord: (input: FacebookConnectionRecord) => string;
|
|
48
|
+
export declare const assertStringifyFacebookConnectionRecord: (input: unknown) => string;
|
|
49
|
+
export interface FilePublishConnectionRecord {
|
|
50
|
+
type: "file";
|
|
51
|
+
protocol: string;
|
|
52
|
+
host?: string;
|
|
53
|
+
port?: number;
|
|
54
|
+
ignoreMissing?: boolean;
|
|
55
|
+
concurrency?: number;
|
|
56
|
+
}
|
|
57
|
+
export declare const isFilePublishConnectionRecord: (input: unknown) => input is FilePublishConnectionRecord;
|
|
58
|
+
export declare const assertFilePublishConnectionRecord: (input: unknown) => FilePublishConnectionRecord;
|
|
59
|
+
export declare const randomFilePublishConnectionRecord: () => FilePublishConnectionRecord;
|
|
60
|
+
export declare const assertGuardFilePublishConnectionRecord: __AssertionGuard<FilePublishConnectionRecord>;
|
|
61
|
+
export declare const stringifyFilePublishConnectionRecord: (input: FilePublishConnectionRecord) => string;
|
|
62
|
+
export declare const assertStringifyFilePublishConnectionRecord: (input: unknown) => string;
|