@nxtedition/types 23.0.50 → 23.0.52
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 +157 -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/general.d.ts +16 -0
- package/dist/records/domains/index.d.ts +4 -4
- 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/exact/storage.d.ts +1 -1
- package/dist/records/validate/assert-guard.js +570 -687
- package/dist/records/validate/assert.js +579 -694
- package/dist/records/validate/is.js +51 -109
- package/dist/records/validate/schemas.js +421 -380
- package/dist/records/validate/stringify.js +74 -155
- package/dist/records/validate/utils.d.ts +2 -0
- package/dist/records/validate/utils.js +3 -0
- package/dist/records/validate/validate-equals.js +961 -819
- package/dist/records/validate/validate.js +550 -638
- 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<{
|
|
@@ -466,6 +474,14 @@ declare interface ElementNodeContent {
|
|
|
466
474
|
children: TextNodeContent[];
|
|
467
475
|
}
|
|
468
476
|
|
|
477
|
+
declare interface EmptyConnectionDef extends ConnectionDef<null> {
|
|
478
|
+
connection: EmptyConnectionRecord;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare interface EmptyConnectionRecord extends ConnectionBase {
|
|
482
|
+
type: null;
|
|
483
|
+
}
|
|
484
|
+
|
|
469
485
|
/**
|
|
470
486
|
Represents a strictly empty plain object, the `{}` value.
|
|
471
487
|
|
|
@@ -496,6 +512,10 @@ declare type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
|
496
512
|
|
|
497
513
|
declare const emptyObjectSymbol: unique symbol;
|
|
498
514
|
|
|
515
|
+
declare interface EmptyPublishDef extends PublishDef<null> {
|
|
516
|
+
publish: EmptyPublishRecord;
|
|
517
|
+
}
|
|
518
|
+
|
|
499
519
|
declare interface EmptyPublishRecord {
|
|
500
520
|
type: null;
|
|
501
521
|
asset?: string | null;
|
|
@@ -573,16 +593,26 @@ declare interface EventTemplateRecord {
|
|
|
573
593
|
|
|
574
594
|
declare type ExactRecords = MiscRecords & MediaRecords & AssetRecords & MonitorRecords & StorageRecords;
|
|
575
595
|
|
|
576
|
-
declare interface
|
|
596
|
+
declare interface FacebookConnectionDef extends ConnectionDef<"facebook"> {
|
|
597
|
+
connection: FacebookConnectionRecord;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
declare interface FacebookConnectionRecord extends ConnectionBase {
|
|
577
601
|
type: "facebook";
|
|
578
602
|
grantedScopes?: string[];
|
|
579
603
|
}
|
|
580
604
|
|
|
581
|
-
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";
|
|
582
612
|
pageId?: string;
|
|
583
613
|
}
|
|
584
614
|
|
|
585
|
-
declare interface FacebookPublishStatsRecord extends
|
|
615
|
+
declare interface FacebookPublishStatsRecord extends PublishStatsRecordBase {
|
|
586
616
|
}
|
|
587
617
|
|
|
588
618
|
declare interface File_2 {
|
|
@@ -601,18 +631,7 @@ declare interface File_2 {
|
|
|
601
631
|
error: NxtError[] | NxtError | null;
|
|
602
632
|
}
|
|
603
633
|
|
|
604
|
-
declare interface
|
|
605
|
-
protocol: "ftp";
|
|
606
|
-
host: string;
|
|
607
|
-
username?: string;
|
|
608
|
-
password?: string;
|
|
609
|
-
utf8?: boolean;
|
|
610
|
-
timezone?: string;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
declare type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
|
|
614
|
-
|
|
615
|
-
declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
|
|
634
|
+
declare interface FileConnectionBase extends ConnectionBase {
|
|
616
635
|
type: "file";
|
|
617
636
|
protocol: string;
|
|
618
637
|
host?: string;
|
|
@@ -627,13 +646,30 @@ declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
|
|
|
627
646
|
};
|
|
628
647
|
}
|
|
629
648
|
|
|
630
|
-
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 {
|
|
631
667
|
protocol: "s3";
|
|
632
668
|
client?: unknown;
|
|
633
669
|
bucket?: string;
|
|
634
670
|
}
|
|
635
671
|
|
|
636
|
-
declare interface FileConnectionSftpRecord extends
|
|
672
|
+
declare interface FileConnectionSftpRecord extends FileConnectionBase {
|
|
637
673
|
protocol: "sftp";
|
|
638
674
|
host: string;
|
|
639
675
|
username?: string;
|
|
@@ -645,7 +681,7 @@ declare interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
|
|
|
645
681
|
mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
|
|
646
682
|
}
|
|
647
683
|
|
|
648
|
-
declare interface FileConnectionSmbRecord extends
|
|
684
|
+
declare interface FileConnectionSmbRecord extends FileConnectionBase {
|
|
649
685
|
protocol: "smb";
|
|
650
686
|
host: string;
|
|
651
687
|
share: string;
|
|
@@ -662,23 +698,33 @@ declare interface FileDomainRecords {
|
|
|
662
698
|
|
|
663
699
|
declare type FileDomainStatsRecord = FileStats;
|
|
664
700
|
|
|
665
|
-
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 {
|
|
666
711
|
directory: string;
|
|
667
712
|
filename: string;
|
|
668
713
|
renders: Record<string, FilePublishRender>;
|
|
669
714
|
}
|
|
670
715
|
|
|
671
|
-
declare interface FilePublishDraft
|
|
716
|
+
declare interface FilePublishDraft {
|
|
672
717
|
directory?: string;
|
|
673
718
|
filename?: string;
|
|
674
719
|
}
|
|
675
720
|
|
|
676
|
-
declare interface FilePublishPublished
|
|
721
|
+
declare interface FilePublishPublished {
|
|
677
722
|
directory?: string;
|
|
678
723
|
filename: string;
|
|
679
724
|
}
|
|
680
725
|
|
|
681
|
-
declare interface FilePublishRecord extends
|
|
726
|
+
declare interface FilePublishRecord extends PublishRecordBase {
|
|
727
|
+
type: "file";
|
|
682
728
|
directory?: string;
|
|
683
729
|
filename?: string;
|
|
684
730
|
renders?: Record<string, FilePublishRender>;
|
|
@@ -687,7 +733,8 @@ declare interface FilePublishRecord extends PublishRecordCommon<"file"> {
|
|
|
687
733
|
published?: FilePublishPublished;
|
|
688
734
|
}
|
|
689
735
|
|
|
690
|
-
declare interface FilePublishRecordLegacy extends
|
|
736
|
+
declare interface FilePublishRecordLegacy extends PublishRecordBase {
|
|
737
|
+
type: "file";
|
|
691
738
|
directory?: string;
|
|
692
739
|
filename?: string;
|
|
693
740
|
draft?: FilePublishDraft;
|
|
@@ -696,7 +743,7 @@ declare interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
|
|
|
696
743
|
renders?: undefined;
|
|
697
744
|
}
|
|
698
745
|
|
|
699
|
-
declare interface FilePublishRemote
|
|
746
|
+
declare interface FilePublishRemote {
|
|
700
747
|
directory?: string;
|
|
701
748
|
filename?: string;
|
|
702
749
|
renders?: Record<string, FilePublishRemoteRender>;
|
|
@@ -730,7 +777,7 @@ declare type FilePublishRender = Nxtpression<ResolvedFilePublishRender, {
|
|
|
730
777
|
name: string;
|
|
731
778
|
}>;
|
|
732
779
|
|
|
733
|
-
declare interface FilePublishRetrieved
|
|
780
|
+
declare interface FilePublishRetrieved {
|
|
734
781
|
filename?: string;
|
|
735
782
|
directory?: string;
|
|
736
783
|
renders?: Record<string, FilePublishRetrievedRender>;
|
|
@@ -742,7 +789,7 @@ declare interface FilePublishRetrievedRender {
|
|
|
742
789
|
hash?: string;
|
|
743
790
|
}
|
|
744
791
|
|
|
745
|
-
declare interface FilePublishStatsRecord extends
|
|
792
|
+
declare interface FilePublishStatsRecord extends PublishStatsRecordBase {
|
|
746
793
|
retrieved?: FilePublishRetrieved;
|
|
747
794
|
defaults?: FilePublishDefaults;
|
|
748
795
|
}
|
|
@@ -784,6 +831,7 @@ declare interface FileStats extends File_2 {
|
|
|
784
831
|
]>;
|
|
785
832
|
progress?: number & Minimum<0> & Maximum<1>;
|
|
786
833
|
speed?: number & Minimum<0>;
|
|
834
|
+
complete: boolean;
|
|
787
835
|
}
|
|
788
836
|
|
|
789
837
|
declare interface FontFace_2 {
|
|
@@ -796,6 +844,18 @@ declare interface FontFace_2 {
|
|
|
796
844
|
ranges: Range_2[];
|
|
797
845
|
}
|
|
798
846
|
|
|
847
|
+
declare interface GeneralAssetRecord {
|
|
848
|
+
title?: string;
|
|
849
|
+
tags?: string;
|
|
850
|
+
media?: string;
|
|
851
|
+
duration?: string;
|
|
852
|
+
deadlines?: string;
|
|
853
|
+
assignees?: string;
|
|
854
|
+
locations?: string;
|
|
855
|
+
status?: string;
|
|
856
|
+
storage?: string;
|
|
857
|
+
}
|
|
858
|
+
|
|
799
859
|
declare interface GeneralCreatedRecord {
|
|
800
860
|
time?: string;
|
|
801
861
|
user?: string;
|
|
@@ -813,6 +873,12 @@ declare interface GeneralDomainRecords {
|
|
|
813
873
|
":general.poster": GeneralPosterRecord;
|
|
814
874
|
":general.status": GeneralStatusRecord;
|
|
815
875
|
":general.description": GeneralDescriptionRecord;
|
|
876
|
+
":general._asset": GeneralAssetRecord;
|
|
877
|
+
":general._embedding": GeneralEmbeddingRecord;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
declare interface GeneralEmbeddingRecord {
|
|
881
|
+
[hash: string]: string | null;
|
|
816
882
|
}
|
|
817
883
|
|
|
818
884
|
declare interface GeneralPosterRecord {
|
|
@@ -1209,6 +1275,8 @@ declare interface Message {
|
|
|
1209
1275
|
msg: string;
|
|
1210
1276
|
}
|
|
1211
1277
|
|
|
1278
|
+
declare type MethodsRecord = Union["methods"];
|
|
1279
|
+
|
|
1212
1280
|
/**
|
|
1213
1281
|
* Minimum value constraint tag.
|
|
1214
1282
|
*
|
|
@@ -1869,22 +1937,33 @@ declare interface ProvidedPermissionRecord {
|
|
|
1869
1937
|
permissions: PermissionRecordPermisson[];
|
|
1870
1938
|
}
|
|
1871
1939
|
|
|
1872
|
-
declare
|
|
1940
|
+
declare type PublishAcceptsProvidedRecord = Union_2["accepts"];
|
|
1941
|
+
|
|
1942
|
+
declare interface PublishDef<Type extends string | null> {
|
|
1943
|
+
publish: PublishRecordBase & {
|
|
1944
|
+
type: Type;
|
|
1945
|
+
};
|
|
1946
|
+
stats: PublishStatsRecordBase;
|
|
1947
|
+
methods: PublishDomainMethodsRecordBase;
|
|
1948
|
+
accepts: PublishDomainAcceptsProvidedRecordBase;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
declare interface PublishDomainAcceptsProvidedRecordBase {
|
|
1873
1952
|
value?: unknown;
|
|
1874
1953
|
}
|
|
1875
1954
|
|
|
1876
|
-
declare interface
|
|
1955
|
+
declare interface PublishDomainMethodsRecordBase {
|
|
1877
1956
|
[key: string]: {
|
|
1878
1957
|
rpcId: string;
|
|
1879
|
-
rpcData:
|
|
1958
|
+
rpcData: unknown;
|
|
1880
1959
|
};
|
|
1881
1960
|
}
|
|
1882
1961
|
|
|
1883
1962
|
declare interface PublishDomainRecords {
|
|
1884
1963
|
[":publish"]: PublishRecord;
|
|
1885
1964
|
[":publish.stats?"]: PublishStatsRecord;
|
|
1886
|
-
[":publish.methods?"]:
|
|
1887
|
-
[":publish.accepts"]:
|
|
1965
|
+
[":publish.methods?"]: PublishMethodsRecord;
|
|
1966
|
+
[":publish.accepts"]: PublishAcceptsProvidedRecord;
|
|
1888
1967
|
}
|
|
1889
1968
|
|
|
1890
1969
|
declare interface PublishedDomainRecords {
|
|
@@ -1901,40 +1980,40 @@ declare interface PublishedRecord {
|
|
|
1901
1980
|
error?: boolean;
|
|
1902
1981
|
}
|
|
1903
1982
|
|
|
1904
|
-
declare type
|
|
1983
|
+
declare type PublishMethodsRecord = Union_2["methods"];
|
|
1984
|
+
|
|
1985
|
+
declare type PublishRecord = Union_2["publish"];
|
|
1905
1986
|
|
|
1906
|
-
declare interface
|
|
1907
|
-
type:
|
|
1987
|
+
declare interface PublishRecordBase {
|
|
1988
|
+
type: string | null;
|
|
1908
1989
|
asset?: string | null;
|
|
1909
1990
|
connection?: string;
|
|
1910
|
-
render?:
|
|
1911
|
-
draft?:
|
|
1912
|
-
published?:
|
|
1913
|
-
remote?:
|
|
1991
|
+
render?: PublishRenderBase;
|
|
1992
|
+
draft?: unknown;
|
|
1993
|
+
published?: unknown;
|
|
1994
|
+
remote?: unknown;
|
|
1914
1995
|
error?: {
|
|
1915
1996
|
method: string;
|
|
1916
1997
|
} | null;
|
|
1917
1998
|
messages?: Message[];
|
|
1918
1999
|
}
|
|
1919
2000
|
|
|
1920
|
-
/**
|
|
1921
|
-
|
|
1922
|
-
*/
|
|
1923
|
-
declare interface PublishRender {
|
|
2001
|
+
/** render preset + overrides */
|
|
2002
|
+
declare interface PublishRenderBase {
|
|
1924
2003
|
preset?: string;
|
|
1925
2004
|
type: string;
|
|
1926
2005
|
scene?: RenderSceneObject;
|
|
1927
2006
|
profile?: RenderProfileObject;
|
|
1928
2007
|
}
|
|
1929
2008
|
|
|
1930
|
-
declare type PublishStatsRecord =
|
|
2009
|
+
declare type PublishStatsRecord = Union_2["stats"];
|
|
1931
2010
|
|
|
1932
|
-
declare interface
|
|
2011
|
+
declare interface PublishStatsRecordBase {
|
|
1933
2012
|
status?: string;
|
|
1934
2013
|
substatus?: string;
|
|
1935
2014
|
messages?: Message[];
|
|
1936
|
-
retrieved?:
|
|
1937
|
-
defaults?:
|
|
2015
|
+
retrieved?: unknown;
|
|
2016
|
+
defaults?: unknown;
|
|
1938
2017
|
}
|
|
1939
2018
|
|
|
1940
2019
|
declare interface QuoteNodeContent extends ElementNodeContent {
|
|
@@ -2166,15 +2245,18 @@ declare interface ReplaceOperation {
|
|
|
2166
2245
|
value: any;
|
|
2167
2246
|
}
|
|
2168
2247
|
|
|
2169
|
-
declare interface ResolvedFilePublishRender extends
|
|
2170
|
-
preset?: string;
|
|
2248
|
+
declare interface ResolvedFilePublishRender extends PublishRenderBase {
|
|
2171
2249
|
name?: string;
|
|
2172
2250
|
path: string;
|
|
2173
2251
|
collisionStrategy?: "overwrite" | "skip";
|
|
2174
2252
|
ignoreEmptyScene?: boolean;
|
|
2175
2253
|
}
|
|
2176
2254
|
|
|
2177
|
-
declare interface
|
|
2255
|
+
declare interface ReutersConnectionDef extends ConnectionDef<"reuters"> {
|
|
2256
|
+
connection: ReutersConnectionRecord;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
declare interface ReutersConnectionRecord extends ConnectionBase {
|
|
2178
2260
|
type: "reuters";
|
|
2179
2261
|
clientId?: string;
|
|
2180
2262
|
clientSecret?: string;
|
|
@@ -2663,6 +2745,7 @@ declare interface Settings {
|
|
|
2663
2745
|
assetRoute?: boolean;
|
|
2664
2746
|
devWarnings?: boolean;
|
|
2665
2747
|
multiplexWebSockets?: boolean;
|
|
2748
|
+
systemHealth?: boolean;
|
|
2666
2749
|
};
|
|
2667
2750
|
notifications?: {
|
|
2668
2751
|
events?: {
|
|
@@ -2716,6 +2799,8 @@ declare type SingleKeyObject<ObjectType> =
|
|
|
2716
2799
|
|
|
2717
2800
|
declare type Spread<T1, T2> = Omit<T2, keyof T1> & T1;
|
|
2718
2801
|
|
|
2802
|
+
declare type StatsRecord = Union["stats"];
|
|
2803
|
+
|
|
2719
2804
|
declare interface StorageLocationsRecord {
|
|
2720
2805
|
[key: string]: StorageLocationsRecordEntry;
|
|
2721
2806
|
}
|
|
@@ -2733,7 +2818,7 @@ declare interface StorageLocationsRecordEntry {
|
|
|
2733
2818
|
capacity: number | null;
|
|
2734
2819
|
origin: string;
|
|
2735
2820
|
allows: ("get" | "put" | "del")[];
|
|
2736
|
-
net
|
|
2821
|
+
net?: {
|
|
2737
2822
|
rx: number;
|
|
2738
2823
|
tx: number;
|
|
2739
2824
|
};
|
|
@@ -3251,6 +3336,10 @@ export declare interface Underscore {
|
|
|
3251
3336
|
fetch(options?: RequestInit, suspend?: boolean): (resource: string) => NxtpressionFetch;
|
|
3252
3337
|
}
|
|
3253
3338
|
|
|
3339
|
+
declare type Union = FileConnectionDef | FacebookConnectionDef | ReutersConnectionDef | EmptyConnectionDef;
|
|
3340
|
+
|
|
3341
|
+
declare type Union_2 = EmptyPublishDef | YoutubePublishDef | FacebookPublishDef | FilePublishDef | FileLegacyPublishDef;
|
|
3342
|
+
|
|
3254
3343
|
declare interface Unsubscribable {
|
|
3255
3344
|
unsubscribe(): void;
|
|
3256
3345
|
}
|
|
@@ -3409,7 +3498,13 @@ declare type WidgetType = "default" | "assetTypes" | "assetTags" | "geopoint" |
|
|
|
3409
3498
|
*/
|
|
3410
3499
|
declare type YjsSnapshot = string;
|
|
3411
3500
|
|
|
3412
|
-
declare interface
|
|
3501
|
+
declare interface YoutubePublishDef extends PublishDef<"youtube"> {
|
|
3502
|
+
publish: YoutubePublishRecord;
|
|
3503
|
+
stats: YoutubePublishStatsRecord;
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
declare interface YoutubePublishRecord extends PublishRecordBase {
|
|
3507
|
+
type: "youtube";
|
|
3413
3508
|
draft?: {
|
|
3414
3509
|
snippet?: {
|
|
3415
3510
|
title?: string;
|
|
@@ -3419,7 +3514,6 @@ declare interface YoutubePublishRecord extends PublishRecordCommon<"youtube"> {
|
|
|
3419
3514
|
};
|
|
3420
3515
|
}
|
|
3421
3516
|
|
|
3422
|
-
declare
|
|
3423
|
-
}
|
|
3517
|
+
declare type YoutubePublishStatsRecord = PublishStatsRecordBase;
|
|
3424
3518
|
|
|
3425
3519
|
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 {};
|