@nxtedition/types 1.6.3 → 1.6.6
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/dist/common/block.d.ts +2 -3
- package/dist/common/block.js +766 -84
- package/dist/common/error.d.ts +19 -0
- package/dist/common/error.js +404 -0
- package/dist/common/file.d.ts +6 -3
- package/dist/common/file.js +1628 -100
- package/dist/common/settings.d.ts +145 -1
- package/dist/common/settings.js +23 -16
- package/dist/domains/connection.d.ts +1 -16
- package/dist/domains/permission.d.ts +2 -26
- package/dist/domains/publish.d.ts +2 -170
- package/package.json +8 -7
|
@@ -7,22 +7,7 @@ export interface ConnectionDomainRecords {
|
|
|
7
7
|
export type ConnectionRecord = FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord;
|
|
8
8
|
export declare const isConnectionRecord: (input: unknown) => input is ConnectionRecord;
|
|
9
9
|
export declare const assertConnectionRecord: (input: unknown) => ConnectionRecord;
|
|
10
|
-
export declare const randomConnectionRecord: () =>
|
|
11
|
-
type: "file";
|
|
12
|
-
protocol: string;
|
|
13
|
-
host?: string | undefined;
|
|
14
|
-
port?: number | undefined;
|
|
15
|
-
ignoreMissing?: boolean | undefined;
|
|
16
|
-
concurrency?: number | undefined;
|
|
17
|
-
} | {
|
|
18
|
-
type: "reuters";
|
|
19
|
-
clientId?: string | undefined;
|
|
20
|
-
clientSecret?: string | undefined;
|
|
21
|
-
audience?: string | undefined;
|
|
22
|
-
} | {
|
|
23
|
-
type: "facebook";
|
|
24
|
-
grantedScopes?: string[] | undefined;
|
|
25
|
-
};
|
|
10
|
+
export declare const randomConnectionRecord: () => ConnectionRecord;
|
|
26
11
|
export declare const assertGuardConnectionRecord: __AssertionGuard<ConnectionRecord>;
|
|
27
12
|
export declare const stringifyConnectionRecord: (input: ConnectionRecord) => string;
|
|
28
13
|
export declare const assertStringifyConnectionRecord: (input: unknown) => string;
|
|
@@ -15,38 +15,14 @@ export declare const assertStringifyProvidedPermissionRecord: (input: unknown) =
|
|
|
15
15
|
export type PermissionRecord = PermissionRecordPermisson;
|
|
16
16
|
export declare const isPermissionRecord: (input: unknown) => input is PermissionRecordPermisson;
|
|
17
17
|
export declare const assertPermissionRecord: (input: unknown) => PermissionRecordPermisson;
|
|
18
|
-
export declare const randomPermissionRecord: () =>
|
|
19
|
-
type: "tag";
|
|
20
|
-
method?: undefined;
|
|
21
|
-
tags: string[];
|
|
22
|
-
} | {
|
|
23
|
-
type: "asset";
|
|
24
|
-
method: string;
|
|
25
|
-
tags?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
type: "rpc";
|
|
28
|
-
method: string;
|
|
29
|
-
tags?: undefined;
|
|
30
|
-
};
|
|
18
|
+
export declare const randomPermissionRecord: () => PermissionRecordPermisson;
|
|
31
19
|
export declare const assertGuardPermissionRecord: __AssertionGuard<PermissionRecord>;
|
|
32
20
|
export declare const stringifyPermissionRecord: (input: PermissionRecordPermisson) => string;
|
|
33
21
|
export declare const assertStringifyPermissionRecord: (input: unknown) => string;
|
|
34
22
|
export type PermissionRecordPermisson = TagPermission | AssetPermission | RpcPermission;
|
|
35
23
|
export declare const isPermissionRecordPermisson: (input: unknown) => input is PermissionRecordPermisson;
|
|
36
24
|
export declare const assertPermissionRecordPermisson: (input: unknown) => PermissionRecordPermisson;
|
|
37
|
-
export declare const randomPermissionRecordPermisson: () =>
|
|
38
|
-
type: "tag";
|
|
39
|
-
method?: undefined;
|
|
40
|
-
tags: string[];
|
|
41
|
-
} | {
|
|
42
|
-
type: "asset";
|
|
43
|
-
method: string;
|
|
44
|
-
tags?: undefined;
|
|
45
|
-
} | {
|
|
46
|
-
type: "rpc";
|
|
47
|
-
method: string;
|
|
48
|
-
tags?: undefined;
|
|
49
|
-
};
|
|
25
|
+
export declare const randomPermissionRecordPermisson: () => PermissionRecordPermisson;
|
|
50
26
|
export declare const assertGuardPermissionRecordPermisson: __AssertionGuard<PermissionRecordPermisson>;
|
|
51
27
|
export declare const stringifyPermissionRecordPermisson: (input: PermissionRecordPermisson) => string;
|
|
52
28
|
export declare const assertStringifyPermissionRecordPermisson: (input: unknown) => string;
|
|
@@ -8,182 +8,14 @@ export interface PublishDomainRecords {
|
|
|
8
8
|
export type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord;
|
|
9
9
|
export declare const isPublishRecord: (input: unknown) => input is PublishRecord;
|
|
10
10
|
export declare const assertPublishRecord: (input: unknown) => PublishRecord;
|
|
11
|
-
export declare const randomPublishRecord: () =>
|
|
12
|
-
draft?: {
|
|
13
|
-
snippet?: {
|
|
14
|
-
title?: string | undefined;
|
|
15
|
-
tags?: string[] | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
} | undefined;
|
|
19
|
-
type: "youtube";
|
|
20
|
-
asset?: string | undefined;
|
|
21
|
-
connection?: string | undefined;
|
|
22
|
-
render?: unknown;
|
|
23
|
-
published?: {
|
|
24
|
-
[x: string]: unknown;
|
|
25
|
-
} | undefined;
|
|
26
|
-
remote?: {
|
|
27
|
-
[x: string]: unknown;
|
|
28
|
-
} | undefined;
|
|
29
|
-
error?: {
|
|
30
|
-
method: string;
|
|
31
|
-
} | null | undefined;
|
|
32
|
-
messages?: {
|
|
33
|
-
level: number;
|
|
34
|
-
code: string;
|
|
35
|
-
msg: string;
|
|
36
|
-
}[] | undefined;
|
|
37
|
-
} | {
|
|
38
|
-
pageId?: string | undefined;
|
|
39
|
-
type: "facebook";
|
|
40
|
-
asset?: string | undefined;
|
|
41
|
-
connection?: string | undefined;
|
|
42
|
-
render?: unknown;
|
|
43
|
-
draft?: {
|
|
44
|
-
[x: string]: unknown;
|
|
45
|
-
} | undefined;
|
|
46
|
-
published?: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
} | undefined;
|
|
49
|
-
remote?: {
|
|
50
|
-
[x: string]: unknown;
|
|
51
|
-
} | undefined;
|
|
52
|
-
error?: {
|
|
53
|
-
method: string;
|
|
54
|
-
} | null | undefined;
|
|
55
|
-
messages?: {
|
|
56
|
-
level: number;
|
|
57
|
-
code: string;
|
|
58
|
-
msg: string;
|
|
59
|
-
}[] | undefined;
|
|
60
|
-
} | {
|
|
61
|
-
directory?: string | undefined;
|
|
62
|
-
filename?: string | undefined;
|
|
63
|
-
renders?: {
|
|
64
|
-
[x: string]: {
|
|
65
|
-
name?: string | undefined;
|
|
66
|
-
path?: string | undefined;
|
|
67
|
-
collisionStrategy?: "overwrite" | "skip" | undefined;
|
|
68
|
-
preset?: string | undefined;
|
|
69
|
-
type?: string | undefined;
|
|
70
|
-
profile?: unknown;
|
|
71
|
-
scene?: string | undefined;
|
|
72
|
-
};
|
|
73
|
-
} | undefined;
|
|
74
|
-
draft?: {
|
|
75
|
-
[x: string]: unknown;
|
|
76
|
-
directory?: string | undefined;
|
|
77
|
-
filename?: string | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
remote?: {
|
|
80
|
-
[x: string]: unknown;
|
|
81
|
-
directory?: string | undefined;
|
|
82
|
-
filename?: string | undefined;
|
|
83
|
-
renders?: {
|
|
84
|
-
[x: string]: {
|
|
85
|
-
path?: string | undefined;
|
|
86
|
-
messages?: {
|
|
87
|
-
level: number;
|
|
88
|
-
code: string;
|
|
89
|
-
msg: string;
|
|
90
|
-
}[] | undefined;
|
|
91
|
-
query?: unknown;
|
|
92
|
-
size?: string | undefined;
|
|
93
|
-
hash?: string | undefined;
|
|
94
|
-
source?: string | undefined;
|
|
95
|
-
};
|
|
96
|
-
} | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
published?: {
|
|
99
|
-
[x: string]: unknown;
|
|
100
|
-
directory?: string | undefined;
|
|
101
|
-
filename?: string | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
type: "file";
|
|
104
|
-
asset?: string | undefined;
|
|
105
|
-
connection?: string | undefined;
|
|
106
|
-
render?: unknown;
|
|
107
|
-
error?: {
|
|
108
|
-
method: string;
|
|
109
|
-
} | null | undefined;
|
|
110
|
-
messages?: {
|
|
111
|
-
level: number;
|
|
112
|
-
code: string;
|
|
113
|
-
msg: string;
|
|
114
|
-
}[] | undefined;
|
|
115
|
-
};
|
|
11
|
+
export declare const randomPublishRecord: () => PublishRecord;
|
|
116
12
|
export declare const assertGuardPublishRecord: __AssertionGuard<PublishRecord>;
|
|
117
13
|
export declare const stringifyPublishRecord: (input: PublishRecord) => string;
|
|
118
14
|
export declare const assertStringifyPublishRecord: (input: unknown) => string;
|
|
119
15
|
export type PublishStatsRecord = YoutubePublishStatsRecord | FacebookPublishStatsRecord | FilePublishStatsRecord;
|
|
120
16
|
export declare const isPublishStatsRecord: (input: unknown) => input is PublishStatsRecord;
|
|
121
17
|
export declare const assertPublishStatsRecord: (input: unknown) => PublishStatsRecord;
|
|
122
|
-
export declare const randomPublishStatsRecord: () =>
|
|
123
|
-
status?: string | undefined;
|
|
124
|
-
substatus?: string | undefined;
|
|
125
|
-
messages?: {
|
|
126
|
-
level: number;
|
|
127
|
-
code: string;
|
|
128
|
-
msg: string;
|
|
129
|
-
}[] | undefined;
|
|
130
|
-
retrieved?: {
|
|
131
|
-
[x: string]: unknown;
|
|
132
|
-
} | undefined;
|
|
133
|
-
defaults?: {
|
|
134
|
-
[x: string]: unknown;
|
|
135
|
-
} | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
status?: string | undefined;
|
|
138
|
-
substatus?: string | undefined;
|
|
139
|
-
messages?: {
|
|
140
|
-
level: number;
|
|
141
|
-
code: string;
|
|
142
|
-
msg: string;
|
|
143
|
-
}[] | undefined;
|
|
144
|
-
retrieved?: {
|
|
145
|
-
[x: string]: unknown;
|
|
146
|
-
} | undefined;
|
|
147
|
-
defaults?: {
|
|
148
|
-
[x: string]: unknown;
|
|
149
|
-
} | undefined;
|
|
150
|
-
} | {
|
|
151
|
-
retrieved?: {
|
|
152
|
-
[x: string]: unknown;
|
|
153
|
-
filename?: string | undefined;
|
|
154
|
-
directory?: string | undefined;
|
|
155
|
-
renders?: {
|
|
156
|
-
[x: string]: {
|
|
157
|
-
path: string;
|
|
158
|
-
size?: string | undefined;
|
|
159
|
-
hash?: string | undefined;
|
|
160
|
-
};
|
|
161
|
-
} | undefined;
|
|
162
|
-
} | undefined;
|
|
163
|
-
defaults?: {
|
|
164
|
-
[x: string]: unknown;
|
|
165
|
-
directory: string;
|
|
166
|
-
filename: string;
|
|
167
|
-
renders: {
|
|
168
|
-
[x: string]: {
|
|
169
|
-
name?: string | undefined;
|
|
170
|
-
path?: string | undefined;
|
|
171
|
-
collisionStrategy?: "overwrite" | "skip" | undefined;
|
|
172
|
-
preset?: string | undefined;
|
|
173
|
-
type?: string | undefined;
|
|
174
|
-
profile?: unknown;
|
|
175
|
-
scene?: string | undefined;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
} | undefined;
|
|
179
|
-
status?: string | undefined;
|
|
180
|
-
substatus?: string | undefined;
|
|
181
|
-
messages?: {
|
|
182
|
-
level: number;
|
|
183
|
-
code: string;
|
|
184
|
-
msg: string;
|
|
185
|
-
}[] | undefined;
|
|
186
|
-
};
|
|
18
|
+
export declare const randomPublishStatsRecord: () => PublishStatsRecord;
|
|
187
19
|
export declare const assertGuardPublishStatsRecord: __AssertionGuard<PublishStatsRecord>;
|
|
188
20
|
export declare const stringifyPublishStatsRecord: (input: PublishStatsRecord) => string;
|
|
189
21
|
export declare const assertStringifyPublishStatsRecord: (input: unknown) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/types",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"prepare": "ts-patch install && typia patch",
|
|
7
8
|
"prebuild": "rimraf dist",
|
|
@@ -20,16 +21,16 @@
|
|
|
20
21
|
"dist"
|
|
21
22
|
],
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"type-fest": "^4.
|
|
24
|
-
"typia": "^6.
|
|
24
|
+
"type-fest": "^4.23.0",
|
|
25
|
+
"typia": "^6.5.4"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"fast-json-stringify": "^
|
|
28
|
+
"fast-json-stringify": "^6.0.0",
|
|
28
29
|
"mitata": "^0.1.11",
|
|
29
|
-
"rimraf": "^5.0.
|
|
30
|
+
"rimraf": "^5.0.8",
|
|
30
31
|
"spark-md5": "^3.0.2",
|
|
31
32
|
"ts-node": "^10.9.2",
|
|
32
|
-
"ts-patch": "^3.1
|
|
33
|
-
"typescript": "^5.4
|
|
33
|
+
"ts-patch": "^3.2.1",
|
|
34
|
+
"typescript": "^5.5.4"
|
|
34
35
|
}
|
|
35
36
|
}
|