@nxtedition/types 1.2.8 → 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/dist/common/settings.d.ts +11 -4
- package/dist/common/settings.js +467 -335
- package/dist/domains/connection.d.ts +16 -1
- package/dist/domains/publish.d.ts +183 -23
- package/dist/domains/publish.js +598 -365
- package/dist/domains/settings.js +504 -375
- package/package.json +2 -2
|
@@ -7,7 +7,22 @@ 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: () =>
|
|
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
|
+
};
|
|
11
26
|
export declare const assertGuardConnectionRecord: __AssertionGuard<ConnectionRecord>;
|
|
12
27
|
export declare const stringifyConnectionRecord: (input: ConnectionRecord) => string;
|
|
13
28
|
export declare const assertStringifyConnectionRecord: (input: unknown) => string;
|
|
@@ -8,14 +8,182 @@ 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: () =>
|
|
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
|
+
};
|
|
12
116
|
export declare const assertGuardPublishRecord: __AssertionGuard<PublishRecord>;
|
|
13
117
|
export declare const stringifyPublishRecord: (input: PublishRecord) => string;
|
|
14
118
|
export declare const assertStringifyPublishRecord: (input: unknown) => string;
|
|
15
119
|
export type PublishStatsRecord = YoutubePublishStatsRecord | FacebookPublishStatsRecord | FilePublishStatsRecord;
|
|
16
120
|
export declare const isPublishStatsRecord: (input: unknown) => input is PublishStatsRecord;
|
|
17
121
|
export declare const assertPublishStatsRecord: (input: unknown) => PublishStatsRecord;
|
|
18
|
-
export declare const randomPublishStatsRecord: () =>
|
|
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
|
+
};
|
|
19
187
|
export declare const assertGuardPublishStatsRecord: __AssertionGuard<PublishStatsRecord>;
|
|
20
188
|
export declare const stringifyPublishStatsRecord: (input: PublishStatsRecord) => string;
|
|
21
189
|
export declare const assertStringifyPublishStatsRecord: (input: unknown) => string;
|
|
@@ -60,12 +228,13 @@ export declare const randomYoutubePublishRecord: () => YoutubePublishRecord;
|
|
|
60
228
|
export declare const assertGuardYoutubePublishRecord: __AssertionGuard<YoutubePublishRecord>;
|
|
61
229
|
export declare const stringifyYoutubePublishRecord: (input: YoutubePublishRecord) => string;
|
|
62
230
|
export declare const assertStringifyYoutubePublishRecord: (input: unknown) => string;
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
export declare const
|
|
66
|
-
export declare const
|
|
231
|
+
export interface YoutubePublishStatsRecord extends PublishStatsRecordCommon {
|
|
232
|
+
}
|
|
233
|
+
export declare const isYoutubePublishStatsRecord: (input: unknown) => input is YoutubePublishStatsRecord;
|
|
234
|
+
export declare const assertYoutubePublishStatsRecord: (input: unknown) => YoutubePublishStatsRecord;
|
|
235
|
+
export declare const randomYoutubePublishStatsRecord: () => YoutubePublishStatsRecord;
|
|
67
236
|
export declare const assertGuardYoutubePublishStatsRecord: __AssertionGuard<YoutubePublishStatsRecord>;
|
|
68
|
-
export declare const stringifyYoutubePublishStatsRecord: (input:
|
|
237
|
+
export declare const stringifyYoutubePublishStatsRecord: (input: YoutubePublishStatsRecord) => string;
|
|
69
238
|
export declare const assertStringifyYoutubePublishStatsRecord: (input: unknown) => string;
|
|
70
239
|
export interface FacebookPublishRecord extends PublishRecordCommon<"facebook"> {
|
|
71
240
|
pageId?: string;
|
|
@@ -76,12 +245,13 @@ export declare const randomFacebookPublishRecord: () => FacebookPublishRecord;
|
|
|
76
245
|
export declare const assertGuardFacebookPublishRecord: __AssertionGuard<FacebookPublishRecord>;
|
|
77
246
|
export declare const stringifyFacebookPublishRecord: (input: FacebookPublishRecord) => string;
|
|
78
247
|
export declare const assertStringifyFacebookPublishRecord: (input: unknown) => string;
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
export declare const
|
|
82
|
-
export declare const
|
|
248
|
+
export interface FacebookPublishStatsRecord extends PublishStatsRecordCommon {
|
|
249
|
+
}
|
|
250
|
+
export declare const isFacebookPublishStatsRecord: (input: unknown) => input is FacebookPublishStatsRecord;
|
|
251
|
+
export declare const assertFacebookPublishStatsRecord: (input: unknown) => FacebookPublishStatsRecord;
|
|
252
|
+
export declare const randomFacebookPublishStatsRecord: () => FacebookPublishStatsRecord;
|
|
83
253
|
export declare const assertGuardFacebookPublishStatsRecord: __AssertionGuard<FacebookPublishStatsRecord>;
|
|
84
|
-
export declare const stringifyFacebookPublishStatsRecord: (input:
|
|
254
|
+
export declare const stringifyFacebookPublishStatsRecord: (input: FacebookPublishStatsRecord) => string;
|
|
85
255
|
export declare const assertStringifyFacebookPublishStatsRecord: (input: unknown) => string;
|
|
86
256
|
export interface FilePublishRecord extends PublishRecordCommon<"file"> {
|
|
87
257
|
directory?: string;
|
|
@@ -192,7 +362,7 @@ export declare const assertStringifyFilePublishRetrievedRender: (input: unknown)
|
|
|
192
362
|
export interface FilePublishDefaults extends Record<string, unknown> {
|
|
193
363
|
directory: string;
|
|
194
364
|
filename: string;
|
|
195
|
-
renders: Record<string,
|
|
365
|
+
renders: Record<string, FilePublishRender>;
|
|
196
366
|
}
|
|
197
367
|
export declare const isFilePublishDefaults: (input: unknown) => input is FilePublishDefaults;
|
|
198
368
|
export declare const assertFilePublishDefaults: (input: unknown) => FilePublishDefaults;
|
|
@@ -200,14 +370,4 @@ export declare const randomFilePublishDefaults: () => FilePublishDefaults;
|
|
|
200
370
|
export declare const assertGuardFilePublishDefaults: __AssertionGuard<FilePublishDefaults>;
|
|
201
371
|
export declare const stringifyFilePublishDefaults: (input: FilePublishDefaults) => string;
|
|
202
372
|
export declare const assertStringifyFilePublishDefaults: (input: unknown) => string;
|
|
203
|
-
export interface FilePublishDefaultRender {
|
|
204
|
-
path?: string;
|
|
205
|
-
collisionStrategy?: "skip" | "overwrite";
|
|
206
|
-
}
|
|
207
|
-
export declare const isFilePublishDefaultRender: (input: unknown) => input is FilePublishDefaultRender;
|
|
208
|
-
export declare const assertFilePublishDefaultRender: (input: unknown) => FilePublishDefaultRender;
|
|
209
|
-
export declare const randomFilePublishDefaultRender: () => FilePublishDefaultRender;
|
|
210
|
-
export declare const assertGuardFilePublishDefaultRender: __AssertionGuard<FilePublishDefaultRender>;
|
|
211
|
-
export declare const stringifyFilePublishDefaultRender: (input: FilePublishDefaultRender) => string;
|
|
212
|
-
export declare const assertStringifyFilePublishDefaultRender: (input: unknown) => string;
|
|
213
373
|
export {};
|