@nxtedition/types 23.0.49 → 23.0.51
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/file.d.ts +1 -0
- package/dist/common/file.js +7 -2
- package/dist/common/settings.d.ts +1 -0
- package/dist/nxtpression.d.ts +141 -63
- package/dist/records/domains/connection/empty.d.ts +7 -0
- package/dist/records/domains/connection/facebook.d.ts +8 -0
- package/dist/records/domains/connection/file/ftp.d.ts +9 -0
- package/dist/records/domains/connection/file/ftp.js +1 -0
- package/dist/records/domains/connection/file/index.d.ts +29 -0
- package/dist/records/domains/connection/file/index.js +4 -0
- package/dist/records/domains/connection/file/s3.d.ts +6 -0
- package/dist/records/domains/connection/file/s3.js +1 -0
- package/dist/records/domains/connection/file/sftp.d.ts +12 -0
- package/dist/records/domains/connection/file/sftp.js +1 -0
- package/dist/records/domains/connection/file/smb.d.ts +9 -0
- package/dist/records/domains/connection/file/smb.js +1 -0
- package/dist/records/domains/connection/index.d.ts +38 -0
- package/dist/records/domains/connection/index.js +4 -0
- package/dist/records/domains/connection/reuters.d.ts +10 -0
- package/dist/records/domains/connection/reuters.js +1 -0
- package/dist/records/domains/index.d.ts +6 -5
- package/dist/records/domains/index.js +2 -2
- package/dist/records/domains/publish/empty.d.ts +8 -0
- package/dist/records/domains/publish/empty.js +1 -0
- package/dist/records/domains/publish/facebook.d.ts +11 -0
- package/dist/records/domains/publish/facebook.js +1 -0
- package/dist/records/domains/publish/file-legacy.d.ts +26 -0
- package/dist/records/domains/publish/file-legacy.js +1 -0
- package/dist/records/domains/publish/file.d.ts +66 -0
- package/dist/records/domains/publish/file.js +1 -0
- package/dist/records/domains/publish/index.d.ts +66 -0
- package/dist/records/domains/publish/index.js +5 -0
- package/dist/records/domains/publish/youtube.d.ts +16 -0
- package/dist/records/domains/publish/youtube.js +1 -0
- package/dist/records/index.d.ts +1 -1
- package/dist/records/utils.d.ts +4 -2
- package/dist/records/utils.tds.js +1 -1
- package/dist/records/validate/assert-guard.d.ts +3 -4
- package/dist/records/validate/assert-guard.js +474 -687
- package/dist/records/validate/assert.d.ts +3 -4
- package/dist/records/validate/assert.js +474 -687
- package/dist/records/validate/is.d.ts +3 -4
- package/dist/records/validate/is.js +39 -108
- package/dist/records/validate/schemas.d.ts +4 -5
- package/dist/records/validate/schemas.js +403 -437
- package/dist/records/validate/stringify.d.ts +3 -4
- package/dist/records/validate/stringify.js +66 -154
- package/dist/records/validate/utils.d.ts +4 -3
- package/dist/records/validate/utils.js +3 -0
- package/dist/records/validate/validate-equals.d.ts +3 -4
- package/dist/records/validate/validate-equals.js +723 -714
- package/dist/records/validate/validate.d.ts +3 -4
- package/dist/records/validate/validate.js +437 -635
- package/package.json +1 -1
- package/dist/records/domains/connection.d.ts +0 -77
- package/dist/records/domains/publish.d.ts +0 -149
- /package/dist/records/domains/{connection.js → connection/empty.js} +0 -0
- /package/dist/records/domains/{publish.js → connection/facebook.js} +0 -0
package/dist/common/file.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export interface FileStats extends File {
|
|
|
36
36
|
]>;
|
|
37
37
|
progress?: number & import('typia').tags.Minimum<0> & import('typia').tags.Maximum<1>;
|
|
38
38
|
speed?: number & import('typia').tags.Minimum<0>;
|
|
39
|
+
complete: boolean;
|
|
39
40
|
}
|
|
40
41
|
export declare const assertFileStats: (input: unknown) => FileStats;
|
|
41
42
|
export declare const stringifyFileStats: (input: FileStats) => string;
|
package/dist/common/file.js
CHANGED
|
@@ -361,7 +361,7 @@ export const assertFile = (() => { const _io0 = input => "string" === typeof inp
|
|
|
361
361
|
}
|
|
362
362
|
return input;
|
|
363
363
|
}; })();
|
|
364
|
-
export const assertFileStats = (() => { const _io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && __typia_transform__isTypeUint64._isTypeUint64(input.position))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && ("string" === typeof input.id && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && __typia_transform__isTypeUint64._isTypeUint64(input.size))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && __typia_transform__isTypeUint64._isTypeUint64(input.btime))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && _io2(elem)) || "object" === typeof input.error && null !== input.error && _io2(input.error)))); const _io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end); const _io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io3 = input => Object.keys(input).every(key => {
|
|
364
|
+
export const assertFileStats = (() => { const _io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && __typia_transform__isTypeUint64._isTypeUint64(input.position))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && "boolean" === typeof input.complete && ("string" === typeof input.id && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && __typia_transform__isTypeUint64._isTypeUint64(input.size))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && __typia_transform__isTypeUint64._isTypeUint64(input.btime))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && _io2(elem)) || "object" === typeof input.error && null !== input.error && _io2(input.error)))); const _io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end); const _io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io3 = input => Object.keys(input).every(key => {
|
|
365
365
|
const value = input[key];
|
|
366
366
|
if (undefined === value)
|
|
367
367
|
return true;
|
|
@@ -501,6 +501,11 @@ export const assertFileStats = (() => { const _io0 = input => (null === input.po
|
|
|
501
501
|
path: _path + ".speed",
|
|
502
502
|
expected: "((number & Minimum<0>) | undefined)",
|
|
503
503
|
value: input.speed
|
|
504
|
+
}, _errorFactory)) && ("boolean" === typeof input.complete || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
505
|
+
method: "typia.createAssert",
|
|
506
|
+
path: _path + ".complete",
|
|
507
|
+
expected: "boolean",
|
|
508
|
+
value: input.complete
|
|
504
509
|
}, _errorFactory)) && ("string" === typeof input.id && (RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
505
510
|
method: "typia.createAssert",
|
|
506
511
|
path: _path + ".id",
|
|
@@ -768,7 +773,7 @@ export const assertFileStats = (() => { const _io0 = input => (null === input.po
|
|
|
768
773
|
}
|
|
769
774
|
return input;
|
|
770
775
|
}; })();
|
|
771
|
-
export const stringifyFileStats = (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => _so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
776
|
+
export const stringifyFileStats = (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"complete":${input.complete},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => _so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
|
|
772
777
|
if (Array.isArray(input.error))
|
|
773
778
|
return `[${input.error.map(elem => _so2(elem)).join(",")}]`;
|
|
774
779
|
if ("object" === typeof input.error && null !== input.error)
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -351,24 +351,32 @@ declare interface CommentReadMarkDomainRecords {
|
|
|
351
351
|
":comment-read-mark": CommentReadMarkDomainRecord;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
declare interface
|
|
355
|
-
|
|
354
|
+
declare interface ConnectionBase {
|
|
355
|
+
type: string | null;
|
|
356
|
+
userNotificationsEnabled?: boolean;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
declare interface ConnectionDef<Type extends string | null> {
|
|
360
|
+
connection: ConnectionBase & {
|
|
361
|
+
type: Type;
|
|
362
|
+
};
|
|
363
|
+
methods: ConnectionMethodsBase;
|
|
364
|
+
stats: ConnectionStatsBase;
|
|
356
365
|
}
|
|
357
366
|
|
|
358
367
|
declare interface ConnectionDomainRecords {
|
|
359
368
|
[":connection"]: ConnectionRecord;
|
|
360
|
-
[":connection.methods?"]:
|
|
361
|
-
[":connection.stats?"]:
|
|
369
|
+
[":connection.methods?"]: MethodsRecord;
|
|
370
|
+
[":connection.stats?"]: StatsRecord;
|
|
362
371
|
}
|
|
363
372
|
|
|
364
|
-
declare
|
|
365
|
-
|
|
366
|
-
declare interface ConnectionRecordCommon {
|
|
367
|
-
type: string;
|
|
368
|
-
userNotificationsEnabled?: boolean;
|
|
373
|
+
declare interface ConnectionMethodsBase {
|
|
374
|
+
[key: string]: object;
|
|
369
375
|
}
|
|
370
376
|
|
|
371
|
-
declare
|
|
377
|
+
declare type ConnectionRecord = Union["connection"];
|
|
378
|
+
|
|
379
|
+
declare interface ConnectionStatsBase {
|
|
372
380
|
status?: string;
|
|
373
381
|
substatus?: string;
|
|
374
382
|
pages?: Array<{
|
|
@@ -442,7 +450,8 @@ declare interface DesignViewRow<Id = string, Key = string, Value = void> {
|
|
|
442
450
|
value: Value;
|
|
443
451
|
}
|
|
444
452
|
|
|
445
|
-
declare
|
|
453
|
+
declare interface DomainRecords extends AssetDomainRecords, BundleDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords {
|
|
454
|
+
}
|
|
446
455
|
|
|
447
456
|
declare type Dynamic = false | string[];
|
|
448
457
|
|
|
@@ -465,6 +474,14 @@ declare interface ElementNodeContent {
|
|
|
465
474
|
children: TextNodeContent[];
|
|
466
475
|
}
|
|
467
476
|
|
|
477
|
+
declare interface EmptyConnectionDef extends ConnectionDef<null> {
|
|
478
|
+
connection: EmptyConnectionRecord;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare interface EmptyConnectionRecord extends ConnectionBase {
|
|
482
|
+
type: null;
|
|
483
|
+
}
|
|
484
|
+
|
|
468
485
|
/**
|
|
469
486
|
Represents a strictly empty plain object, the `{}` value.
|
|
470
487
|
|
|
@@ -495,6 +512,10 @@ declare type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
|
495
512
|
|
|
496
513
|
declare const emptyObjectSymbol: unique symbol;
|
|
497
514
|
|
|
515
|
+
declare interface EmptyPublishDef extends PublishDef<null> {
|
|
516
|
+
publish: EmptyPublishRecord;
|
|
517
|
+
}
|
|
518
|
+
|
|
498
519
|
declare interface EmptyPublishRecord {
|
|
499
520
|
type: null;
|
|
500
521
|
asset?: string | null;
|
|
@@ -572,16 +593,26 @@ declare interface EventTemplateRecord {
|
|
|
572
593
|
|
|
573
594
|
declare type ExactRecords = MiscRecords & MediaRecords & AssetRecords & MonitorRecords & StorageRecords;
|
|
574
595
|
|
|
575
|
-
declare interface
|
|
596
|
+
declare interface FacebookConnectionDef extends ConnectionDef<"facebook"> {
|
|
597
|
+
connection: FacebookConnectionRecord;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
declare interface FacebookConnectionRecord extends ConnectionBase {
|
|
576
601
|
type: "facebook";
|
|
577
602
|
grantedScopes?: string[];
|
|
578
603
|
}
|
|
579
604
|
|
|
580
|
-
declare interface
|
|
605
|
+
declare interface FacebookPublishDef extends PublishDef<"facebook"> {
|
|
606
|
+
publish: FacebookPublishRecord;
|
|
607
|
+
stats: FacebookPublishStatsRecord;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
declare interface FacebookPublishRecord extends PublishRecordBase {
|
|
611
|
+
type: "facebook";
|
|
581
612
|
pageId?: string;
|
|
582
613
|
}
|
|
583
614
|
|
|
584
|
-
declare interface FacebookPublishStatsRecord extends
|
|
615
|
+
declare interface FacebookPublishStatsRecord extends PublishStatsRecordBase {
|
|
585
616
|
}
|
|
586
617
|
|
|
587
618
|
declare interface File_2 {
|
|
@@ -600,18 +631,7 @@ declare interface File_2 {
|
|
|
600
631
|
error: NxtError[] | NxtError | null;
|
|
601
632
|
}
|
|
602
633
|
|
|
603
|
-
declare interface
|
|
604
|
-
protocol: "ftp";
|
|
605
|
-
host: string;
|
|
606
|
-
username?: string;
|
|
607
|
-
password?: string;
|
|
608
|
-
utf8?: boolean;
|
|
609
|
-
timezone?: string;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
declare type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
|
|
613
|
-
|
|
614
|
-
declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
|
|
634
|
+
declare interface FileConnectionBase extends ConnectionBase {
|
|
615
635
|
type: "file";
|
|
616
636
|
protocol: string;
|
|
617
637
|
host?: string;
|
|
@@ -626,13 +646,30 @@ declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
|
|
|
626
646
|
};
|
|
627
647
|
}
|
|
628
648
|
|
|
629
|
-
declare interface
|
|
649
|
+
declare interface FileConnectionDef extends ConnectionDef<"file"> {
|
|
650
|
+
connection: FileConnectionRecord;
|
|
651
|
+
methods: ConnectionMethodsBase;
|
|
652
|
+
stats: ConnectionStatsBase;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
declare interface FileConnectionFtpRecord extends FileConnectionBase {
|
|
656
|
+
protocol: "ftp";
|
|
657
|
+
host: string;
|
|
658
|
+
username?: string;
|
|
659
|
+
password?: string;
|
|
660
|
+
utf8?: boolean;
|
|
661
|
+
timezone?: string;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
declare type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
|
|
665
|
+
|
|
666
|
+
declare interface FileConnectionS3Record extends FileConnectionBase {
|
|
630
667
|
protocol: "s3";
|
|
631
668
|
client?: unknown;
|
|
632
669
|
bucket?: string;
|
|
633
670
|
}
|
|
634
671
|
|
|
635
|
-
declare interface FileConnectionSftpRecord extends
|
|
672
|
+
declare interface FileConnectionSftpRecord extends FileConnectionBase {
|
|
636
673
|
protocol: "sftp";
|
|
637
674
|
host: string;
|
|
638
675
|
username?: string;
|
|
@@ -644,7 +681,7 @@ declare interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
|
|
|
644
681
|
mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
|
|
645
682
|
}
|
|
646
683
|
|
|
647
|
-
declare interface FileConnectionSmbRecord extends
|
|
684
|
+
declare interface FileConnectionSmbRecord extends FileConnectionBase {
|
|
648
685
|
protocol: "smb";
|
|
649
686
|
host: string;
|
|
650
687
|
share: string;
|
|
@@ -661,23 +698,33 @@ declare interface FileDomainRecords {
|
|
|
661
698
|
|
|
662
699
|
declare type FileDomainStatsRecord = FileStats;
|
|
663
700
|
|
|
664
|
-
declare interface
|
|
701
|
+
declare interface FileLegacyPublishDef extends PublishDef<"file"> {
|
|
702
|
+
publish: FilePublishRecordLegacy;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
declare interface FilePublishDef extends PublishDef<"file"> {
|
|
706
|
+
publish: FilePublishRecord;
|
|
707
|
+
stats: FilePublishStatsRecord;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
declare interface FilePublishDefaults {
|
|
665
711
|
directory: string;
|
|
666
712
|
filename: string;
|
|
667
713
|
renders: Record<string, FilePublishRender>;
|
|
668
714
|
}
|
|
669
715
|
|
|
670
|
-
declare interface FilePublishDraft
|
|
716
|
+
declare interface FilePublishDraft {
|
|
671
717
|
directory?: string;
|
|
672
718
|
filename?: string;
|
|
673
719
|
}
|
|
674
720
|
|
|
675
|
-
declare interface FilePublishPublished
|
|
721
|
+
declare interface FilePublishPublished {
|
|
676
722
|
directory?: string;
|
|
677
723
|
filename: string;
|
|
678
724
|
}
|
|
679
725
|
|
|
680
|
-
declare interface FilePublishRecord extends
|
|
726
|
+
declare interface FilePublishRecord extends PublishRecordBase {
|
|
727
|
+
type: "file";
|
|
681
728
|
directory?: string;
|
|
682
729
|
filename?: string;
|
|
683
730
|
renders?: Record<string, FilePublishRender>;
|
|
@@ -686,7 +733,8 @@ declare interface FilePublishRecord extends PublishRecordCommon<"file"> {
|
|
|
686
733
|
published?: FilePublishPublished;
|
|
687
734
|
}
|
|
688
735
|
|
|
689
|
-
declare interface FilePublishRecordLegacy extends
|
|
736
|
+
declare interface FilePublishRecordLegacy extends PublishRecordBase {
|
|
737
|
+
type: "file";
|
|
690
738
|
directory?: string;
|
|
691
739
|
filename?: string;
|
|
692
740
|
draft?: FilePublishDraft;
|
|
@@ -695,7 +743,7 @@ declare interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
|
|
|
695
743
|
renders?: undefined;
|
|
696
744
|
}
|
|
697
745
|
|
|
698
|
-
declare interface FilePublishRemote
|
|
746
|
+
declare interface FilePublishRemote {
|
|
699
747
|
directory?: string;
|
|
700
748
|
filename?: string;
|
|
701
749
|
renders?: Record<string, FilePublishRemoteRender>;
|
|
@@ -729,7 +777,7 @@ declare type FilePublishRender = Nxtpression<ResolvedFilePublishRender, {
|
|
|
729
777
|
name: string;
|
|
730
778
|
}>;
|
|
731
779
|
|
|
732
|
-
declare interface FilePublishRetrieved
|
|
780
|
+
declare interface FilePublishRetrieved {
|
|
733
781
|
filename?: string;
|
|
734
782
|
directory?: string;
|
|
735
783
|
renders?: Record<string, FilePublishRetrievedRender>;
|
|
@@ -741,7 +789,7 @@ declare interface FilePublishRetrievedRender {
|
|
|
741
789
|
hash?: string;
|
|
742
790
|
}
|
|
743
791
|
|
|
744
|
-
declare interface FilePublishStatsRecord extends
|
|
792
|
+
declare interface FilePublishStatsRecord extends PublishStatsRecordBase {
|
|
745
793
|
retrieved?: FilePublishRetrieved;
|
|
746
794
|
defaults?: FilePublishDefaults;
|
|
747
795
|
}
|
|
@@ -783,6 +831,7 @@ declare interface FileStats extends File_2 {
|
|
|
783
831
|
]>;
|
|
784
832
|
progress?: number & Minimum<0> & Maximum<1>;
|
|
785
833
|
speed?: number & Minimum<0>;
|
|
834
|
+
complete: boolean;
|
|
786
835
|
}
|
|
787
836
|
|
|
788
837
|
declare interface FontFace_2 {
|
|
@@ -1208,6 +1257,8 @@ declare interface Message {
|
|
|
1208
1257
|
msg: string;
|
|
1209
1258
|
}
|
|
1210
1259
|
|
|
1260
|
+
declare type MethodsRecord = Union["methods"];
|
|
1261
|
+
|
|
1211
1262
|
/**
|
|
1212
1263
|
* Minimum value constraint tag.
|
|
1213
1264
|
*
|
|
@@ -1868,22 +1919,33 @@ declare interface ProvidedPermissionRecord {
|
|
|
1868
1919
|
permissions: PermissionRecordPermisson[];
|
|
1869
1920
|
}
|
|
1870
1921
|
|
|
1871
|
-
declare
|
|
1922
|
+
declare type PublishAcceptsProvidedRecord = Union_2["accepts"];
|
|
1923
|
+
|
|
1924
|
+
declare interface PublishDef<Type extends string | null> {
|
|
1925
|
+
publish: PublishRecordBase & {
|
|
1926
|
+
type: Type;
|
|
1927
|
+
};
|
|
1928
|
+
stats: PublishStatsRecordBase;
|
|
1929
|
+
methods: PublishDomainMethodsRecordBase;
|
|
1930
|
+
accepts: PublishDomainAcceptsProvidedRecordBase;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
declare interface PublishDomainAcceptsProvidedRecordBase {
|
|
1872
1934
|
value?: unknown;
|
|
1873
1935
|
}
|
|
1874
1936
|
|
|
1875
|
-
declare interface
|
|
1937
|
+
declare interface PublishDomainMethodsRecordBase {
|
|
1876
1938
|
[key: string]: {
|
|
1877
1939
|
rpcId: string;
|
|
1878
|
-
rpcData:
|
|
1940
|
+
rpcData: unknown;
|
|
1879
1941
|
};
|
|
1880
1942
|
}
|
|
1881
1943
|
|
|
1882
1944
|
declare interface PublishDomainRecords {
|
|
1883
1945
|
[":publish"]: PublishRecord;
|
|
1884
1946
|
[":publish.stats?"]: PublishStatsRecord;
|
|
1885
|
-
[":publish.methods?"]:
|
|
1886
|
-
[":publish.accepts"]:
|
|
1947
|
+
[":publish.methods?"]: PublishMethodsRecord;
|
|
1948
|
+
[":publish.accepts"]: PublishAcceptsProvidedRecord;
|
|
1887
1949
|
}
|
|
1888
1950
|
|
|
1889
1951
|
declare interface PublishedDomainRecords {
|
|
@@ -1900,40 +1962,40 @@ declare interface PublishedRecord {
|
|
|
1900
1962
|
error?: boolean;
|
|
1901
1963
|
}
|
|
1902
1964
|
|
|
1903
|
-
declare type
|
|
1965
|
+
declare type PublishMethodsRecord = Union_2["methods"];
|
|
1966
|
+
|
|
1967
|
+
declare type PublishRecord = Union_2["publish"];
|
|
1904
1968
|
|
|
1905
|
-
declare interface
|
|
1906
|
-
type:
|
|
1969
|
+
declare interface PublishRecordBase {
|
|
1970
|
+
type: string | null;
|
|
1907
1971
|
asset?: string | null;
|
|
1908
1972
|
connection?: string;
|
|
1909
|
-
render?:
|
|
1910
|
-
draft?:
|
|
1911
|
-
published?:
|
|
1912
|
-
remote?:
|
|
1973
|
+
render?: PublishRenderBase;
|
|
1974
|
+
draft?: unknown;
|
|
1975
|
+
published?: unknown;
|
|
1976
|
+
remote?: unknown;
|
|
1913
1977
|
error?: {
|
|
1914
1978
|
method: string;
|
|
1915
1979
|
} | null;
|
|
1916
1980
|
messages?: Message[];
|
|
1917
1981
|
}
|
|
1918
1982
|
|
|
1919
|
-
/**
|
|
1920
|
-
|
|
1921
|
-
*/
|
|
1922
|
-
declare interface PublishRender {
|
|
1983
|
+
/** render preset + overrides */
|
|
1984
|
+
declare interface PublishRenderBase {
|
|
1923
1985
|
preset?: string;
|
|
1924
1986
|
type: string;
|
|
1925
1987
|
scene?: RenderSceneObject;
|
|
1926
1988
|
profile?: RenderProfileObject;
|
|
1927
1989
|
}
|
|
1928
1990
|
|
|
1929
|
-
declare type PublishStatsRecord =
|
|
1991
|
+
declare type PublishStatsRecord = Union_2["stats"];
|
|
1930
1992
|
|
|
1931
|
-
declare interface
|
|
1993
|
+
declare interface PublishStatsRecordBase {
|
|
1932
1994
|
status?: string;
|
|
1933
1995
|
substatus?: string;
|
|
1934
1996
|
messages?: Message[];
|
|
1935
|
-
retrieved?:
|
|
1936
|
-
defaults?:
|
|
1997
|
+
retrieved?: unknown;
|
|
1998
|
+
defaults?: unknown;
|
|
1937
1999
|
}
|
|
1938
2000
|
|
|
1939
2001
|
declare interface QuoteNodeContent extends ElementNodeContent {
|
|
@@ -1946,6 +2008,7 @@ number
|
|
|
1946
2008
|
];
|
|
1947
2009
|
|
|
1948
2010
|
declare interface Records extends KeyedDomainRecords, KeyedProvidedDomainRecords, DbExactRecords, DbProvidedRecord {
|
|
2011
|
+
[key: string]: unknown;
|
|
1949
2012
|
}
|
|
1950
2013
|
|
|
1951
2014
|
declare type RecordState = RecordStateNumber | RecordStateString;
|
|
@@ -2164,15 +2227,18 @@ declare interface ReplaceOperation {
|
|
|
2164
2227
|
value: any;
|
|
2165
2228
|
}
|
|
2166
2229
|
|
|
2167
|
-
declare interface ResolvedFilePublishRender extends
|
|
2168
|
-
preset?: string;
|
|
2230
|
+
declare interface ResolvedFilePublishRender extends PublishRenderBase {
|
|
2169
2231
|
name?: string;
|
|
2170
2232
|
path: string;
|
|
2171
2233
|
collisionStrategy?: "overwrite" | "skip";
|
|
2172
2234
|
ignoreEmptyScene?: boolean;
|
|
2173
2235
|
}
|
|
2174
2236
|
|
|
2175
|
-
declare interface
|
|
2237
|
+
declare interface ReutersConnectionDef extends ConnectionDef<"reuters"> {
|
|
2238
|
+
connection: ReutersConnectionRecord;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
declare interface ReutersConnectionRecord extends ConnectionBase {
|
|
2176
2242
|
type: "reuters";
|
|
2177
2243
|
clientId?: string;
|
|
2178
2244
|
clientSecret?: string;
|
|
@@ -2661,6 +2727,7 @@ declare interface Settings {
|
|
|
2661
2727
|
assetRoute?: boolean;
|
|
2662
2728
|
devWarnings?: boolean;
|
|
2663
2729
|
multiplexWebSockets?: boolean;
|
|
2730
|
+
systemHealth?: boolean;
|
|
2664
2731
|
};
|
|
2665
2732
|
notifications?: {
|
|
2666
2733
|
events?: {
|
|
@@ -2714,6 +2781,8 @@ declare type SingleKeyObject<ObjectType> =
|
|
|
2714
2781
|
|
|
2715
2782
|
declare type Spread<T1, T2> = Omit<T2, keyof T1> & T1;
|
|
2716
2783
|
|
|
2784
|
+
declare type StatsRecord = Union["stats"];
|
|
2785
|
+
|
|
2717
2786
|
declare interface StorageLocationsRecord {
|
|
2718
2787
|
[key: string]: StorageLocationsRecordEntry;
|
|
2719
2788
|
}
|
|
@@ -3249,6 +3318,10 @@ export declare interface Underscore {
|
|
|
3249
3318
|
fetch(options?: RequestInit, suspend?: boolean): (resource: string) => NxtpressionFetch;
|
|
3250
3319
|
}
|
|
3251
3320
|
|
|
3321
|
+
declare type Union = FileConnectionDef | FacebookConnectionDef | ReutersConnectionDef | EmptyConnectionDef;
|
|
3322
|
+
|
|
3323
|
+
declare type Union_2 = EmptyPublishDef | YoutubePublishDef | FacebookPublishDef | FilePublishDef | FileLegacyPublishDef;
|
|
3324
|
+
|
|
3252
3325
|
declare interface Unsubscribable {
|
|
3253
3326
|
unsubscribe(): void;
|
|
3254
3327
|
}
|
|
@@ -3407,7 +3480,13 @@ declare type WidgetType = "default" | "assetTypes" | "assetTags" | "geopoint" |
|
|
|
3407
3480
|
*/
|
|
3408
3481
|
declare type YjsSnapshot = string;
|
|
3409
3482
|
|
|
3410
|
-
declare interface
|
|
3483
|
+
declare interface YoutubePublishDef extends PublishDef<"youtube"> {
|
|
3484
|
+
publish: YoutubePublishRecord;
|
|
3485
|
+
stats: YoutubePublishStatsRecord;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
declare interface YoutubePublishRecord extends PublishRecordBase {
|
|
3489
|
+
type: "youtube";
|
|
3411
3490
|
draft?: {
|
|
3412
3491
|
snippet?: {
|
|
3413
3492
|
title?: string;
|
|
@@ -3417,7 +3496,6 @@ declare interface YoutubePublishRecord extends PublishRecordCommon<"youtube"> {
|
|
|
3417
3496
|
};
|
|
3418
3497
|
}
|
|
3419
3498
|
|
|
3420
|
-
declare
|
|
3421
|
-
}
|
|
3499
|
+
declare type YoutubePublishStatsRecord = PublishStatsRecordBase;
|
|
3422
3500
|
|
|
3423
3501
|
export { }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ConnectionDef, ConnectionBase } from './index.ts';
|
|
2
|
+
export interface FacebookConnectionDef extends ConnectionDef<"facebook"> {
|
|
3
|
+
connection: FacebookConnectionRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface FacebookConnectionRecord extends ConnectionBase {
|
|
6
|
+
type: "facebook";
|
|
7
|
+
grantedScopes?: string[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ConnectionDef, ConnectionMethodsBase, ConnectionBase, ConnectionStatsBase } from '../index.ts';
|
|
2
|
+
import type { FileConnectionFtpRecord } from './ftp.ts';
|
|
3
|
+
export * from './ftp.ts';
|
|
4
|
+
import type { FileConnectionS3Record } from './s3.ts';
|
|
5
|
+
export * from './s3.ts';
|
|
6
|
+
import type { FileConnectionSmbRecord } from './smb.ts';
|
|
7
|
+
export * from './smb.ts';
|
|
8
|
+
import type { FileConnectionSftpRecord } from './sftp.ts';
|
|
9
|
+
export * from './sftp.ts';
|
|
10
|
+
export interface FileConnectionDef extends ConnectionDef<"file"> {
|
|
11
|
+
connection: FileConnectionRecord;
|
|
12
|
+
methods: ConnectionMethodsBase;
|
|
13
|
+
stats: ConnectionStatsBase;
|
|
14
|
+
}
|
|
15
|
+
export type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
|
|
16
|
+
export interface FileConnectionBase extends ConnectionBase {
|
|
17
|
+
type: "file";
|
|
18
|
+
protocol: string;
|
|
19
|
+
host?: string;
|
|
20
|
+
port?: number | string;
|
|
21
|
+
ignoreMissing?: boolean;
|
|
22
|
+
concurrency?: number;
|
|
23
|
+
stabilityThreshold?: number;
|
|
24
|
+
pollInterval?: number;
|
|
25
|
+
listConcurrency?: number;
|
|
26
|
+
metafile?: {
|
|
27
|
+
content: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FileConnectionBase } from './index.ts';
|
|
2
|
+
export interface FileConnectionSftpRecord extends FileConnectionBase {
|
|
3
|
+
protocol: "sftp";
|
|
4
|
+
host: string;
|
|
5
|
+
username?: string;
|
|
6
|
+
password?: string;
|
|
7
|
+
privateKey?: string;
|
|
8
|
+
timezone?: string;
|
|
9
|
+
debug?: boolean;
|
|
10
|
+
root?: string;
|
|
11
|
+
mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { FileConnectionDef } from './file/index.ts';
|
|
2
|
+
export * from './file/index.ts';
|
|
3
|
+
import type { FacebookConnectionDef } from './facebook.ts';
|
|
4
|
+
export * from './facebook.ts';
|
|
5
|
+
import type { ReutersConnectionDef } from './reuters.ts';
|
|
6
|
+
export * from './reuters.ts';
|
|
7
|
+
import type { EmptyConnectionDef } from './empty.ts';
|
|
8
|
+
export * from './empty.ts';
|
|
9
|
+
type Union = FileConnectionDef | FacebookConnectionDef | ReutersConnectionDef | EmptyConnectionDef;
|
|
10
|
+
export type ConnectionRecord = Union["connection"];
|
|
11
|
+
export type MethodsRecord = Union["methods"];
|
|
12
|
+
export type StatsRecord = Union["stats"];
|
|
13
|
+
export interface ConnectionDomainRecords {
|
|
14
|
+
[":connection"]: ConnectionRecord;
|
|
15
|
+
[":connection.methods?"]: MethodsRecord;
|
|
16
|
+
[":connection.stats?"]: StatsRecord;
|
|
17
|
+
}
|
|
18
|
+
export interface ConnectionDef<Type extends string | null> {
|
|
19
|
+
connection: ConnectionBase & {
|
|
20
|
+
type: Type;
|
|
21
|
+
};
|
|
22
|
+
methods: ConnectionMethodsBase;
|
|
23
|
+
stats: ConnectionStatsBase;
|
|
24
|
+
}
|
|
25
|
+
export interface ConnectionBase {
|
|
26
|
+
type: string | null;
|
|
27
|
+
userNotificationsEnabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ConnectionMethodsBase {
|
|
30
|
+
[key: string]: object;
|
|
31
|
+
}
|
|
32
|
+
export interface ConnectionStatsBase {
|
|
33
|
+
status?: string;
|
|
34
|
+
substatus?: string;
|
|
35
|
+
pages?: Array<{
|
|
36
|
+
id: unknown;
|
|
37
|
+
}>;
|
|
38
|
+
}
|