@nxtedition/types 23.0.2 → 23.0.3

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.
Files changed (41) hide show
  1. package/dist/asset.d.ts +10 -0
  2. package/dist/asset.js +1 -0
  3. package/dist/common/clone.d.ts +32 -0
  4. package/dist/common/clone.js +602 -0
  5. package/dist/common/index.d.ts +3 -0
  6. package/dist/common/index.js +3 -0
  7. package/dist/common/nxtpression.d.ts +19 -0
  8. package/dist/common/nxtpression.js +240 -0
  9. package/dist/common/search.d.ts +69 -0
  10. package/dist/common/search.js +1591 -0
  11. package/dist/common/settings.d.ts +6 -5
  12. package/dist/common/settings.js +89 -36
  13. package/dist/domains/asset.d.ts +22 -0
  14. package/dist/domains/asset.js +232 -0
  15. package/dist/domains/clone.d.ts +14 -0
  16. package/dist/domains/clone.js +192 -0
  17. package/dist/domains/connection.d.ts +39 -15
  18. package/dist/domains/connection.js +621 -174
  19. package/dist/domains/design.d.ts +24 -0
  20. package/dist/domains/design.js +303 -0
  21. package/dist/domains/file.d.ts +17 -0
  22. package/dist/domains/file.js +233 -0
  23. package/dist/domains/index.d.ts +11 -1
  24. package/dist/domains/index.js +5 -0
  25. package/dist/domains/media.d.ts +28 -0
  26. package/dist/domains/media.js +346 -0
  27. package/dist/domains/published.d.ts +18 -0
  28. package/dist/domains/published.js +164 -0
  29. package/dist/domains/revs.d.ts +13 -0
  30. package/dist/domains/revs.js +125 -0
  31. package/dist/domains/search.d.ts +3 -0
  32. package/dist/domains/search.js +62 -13
  33. package/dist/domains/settings.js +70 -26
  34. package/dist/domains/user.d.ts +14 -0
  35. package/dist/domains/user.js +141 -0
  36. package/dist/index.d.ts +20 -6
  37. package/dist/index.js +135 -0
  38. package/dist/rpc.d.ts +8 -13
  39. package/dist/rpc.js +9 -9
  40. package/dist/schema.json +724 -1546
  41. package/package.json +1 -1
@@ -6,6 +6,8 @@ export interface AssetDomainRecords {
6
6
  ":asset.refs?": AssetRefsRecord;
7
7
  ":asset.tags?": AssetTagsRecord;
8
8
  ":asset.fileRefs?": AssetFileRefsRecord;
9
+ ":asset.created?": AssetCreatedRecord;
10
+ ":asset.modified?": AssetModifiedRecord;
9
11
  }
10
12
  export interface AssetTitleRecord {
11
13
  value?: string;
@@ -66,4 +68,24 @@ export declare const randomAssetFileRefsRecord: () => AssetFileRefsRecord;
66
68
  export declare const assertGuardAssetFileRefsRecord: __AssertionGuard<AssetFileRefsRecord>;
67
69
  export declare const stringifyAssetFileRefsRecord: (input: AssetFileRefsRecord) => string;
68
70
  export declare const assertStringifyAssetFileRefsRecord: (input: unknown) => string;
71
+ export interface AssetCreatedRecord {
72
+ time?: string;
73
+ user?: string;
74
+ }
75
+ export declare const isAssetCreatedRecord: (input: unknown) => input is AssetCreatedRecord;
76
+ export declare const assertAssetCreatedRecord: (input: unknown) => AssetCreatedRecord;
77
+ export declare const randomAssetCreatedRecord: () => AssetCreatedRecord;
78
+ export declare const assertGuardAssetCreatedRecord: __AssertionGuard<AssetCreatedRecord>;
79
+ export declare const stringifyAssetCreatedRecord: (input: AssetCreatedRecord) => string;
80
+ export declare const assertStringifyAssetCreatedRecord: (input: unknown) => string;
81
+ export interface AssetModifiedRecord {
82
+ time?: string;
83
+ user?: string;
84
+ }
85
+ export declare const isAssetModifiedRecord: (input: unknown) => input is AssetModifiedRecord;
86
+ export declare const assertAssetModifiedRecord: (input: unknown) => AssetModifiedRecord;
87
+ export declare const randomAssetModifiedRecord: () => AssetModifiedRecord;
88
+ export declare const assertGuardAssetModifiedRecord: __AssertionGuard<AssetModifiedRecord>;
89
+ export declare const stringifyAssetModifiedRecord: (input: AssetModifiedRecord) => string;
90
+ export declare const assertStringifyAssetModifiedRecord: (input: unknown) => string;
69
91
  export {};
@@ -781,3 +781,235 @@ export const assertStringifyAssetFileRefsRecord = (input, errorFactory) => { con
781
781
  const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
782
782
  return $so0(input);
783
783
  }; return stringify(assert(input, errorFactory)); };
784
+ export const isAssetCreatedRecord = input => {
785
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
786
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
787
+ };
788
+ export const assertAssetCreatedRecord = (input, errorFactory) => {
789
+ const __is = input => {
790
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
791
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
792
+ };
793
+ if (false === __is(input))
794
+ ((input, _path, _exceptionable = true) => {
795
+ const $guard = __typia.createAssert.guard;
796
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
797
+ path: _path + ".time",
798
+ expected: "(string | undefined)",
799
+ value: input.time
800
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
801
+ path: _path + ".user",
802
+ expected: "(string | undefined)",
803
+ value: input.user
804
+ }, errorFactory));
805
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
806
+ path: _path + "",
807
+ expected: "AssetCreatedRecord",
808
+ value: input
809
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
810
+ path: _path + "",
811
+ expected: "AssetCreatedRecord",
812
+ value: input
813
+ }, errorFactory);
814
+ })(input, "$input", true);
815
+ return input;
816
+ };
817
+ export const randomAssetCreatedRecord = generator => {
818
+ const $generator = __typia.createRandom.generator;
819
+ const $pick = __typia.createRandom.pick;
820
+ const $ro0 = (_recursive = false, _depth = 0) => ({
821
+ time: $pick([
822
+ () => undefined,
823
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
824
+ ])(),
825
+ user: $pick([
826
+ () => undefined,
827
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
828
+ ])()
829
+ });
830
+ return $ro0();
831
+ };
832
+ export const assertGuardAssetCreatedRecord = (input, errorFactory) => {
833
+ const __is = input => {
834
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
835
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
836
+ };
837
+ if (false === __is(input))
838
+ ((input, _path, _exceptionable = true) => {
839
+ const $guard = __typia.createAssertGuard.guard;
840
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
841
+ path: _path + ".time",
842
+ expected: "(string | undefined)",
843
+ value: input.time
844
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
845
+ path: _path + ".user",
846
+ expected: "(string | undefined)",
847
+ value: input.user
848
+ }, errorFactory));
849
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
850
+ path: _path + "",
851
+ expected: "AssetCreatedRecord",
852
+ value: input
853
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
854
+ path: _path + "",
855
+ expected: "AssetCreatedRecord",
856
+ value: input
857
+ }, errorFactory);
858
+ })(input, "$input", true);
859
+ };
860
+ export const stringifyAssetCreatedRecord = input => {
861
+ const $string = __typia.json.createStringify.string;
862
+ const $tail = __typia.json.createStringify.tail;
863
+ const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined}`}`)}}`;
864
+ return $so0(input);
865
+ };
866
+ export const assertStringifyAssetCreatedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
867
+ const __is = input => {
868
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
869
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
870
+ };
871
+ if (false === __is(input))
872
+ ((input, _path, _exceptionable = true) => {
873
+ const $guard = __typia.json.createAssertStringify.guard;
874
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
875
+ path: _path + ".time",
876
+ expected: "(string | undefined)",
877
+ value: input.time
878
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
879
+ path: _path + ".user",
880
+ expected: "(string | undefined)",
881
+ value: input.user
882
+ }, errorFactory));
883
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
884
+ path: _path + "",
885
+ expected: "AssetCreatedRecord",
886
+ value: input
887
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
888
+ path: _path + "",
889
+ expected: "AssetCreatedRecord",
890
+ value: input
891
+ }, errorFactory);
892
+ })(input, "$input", true);
893
+ return input;
894
+ }; const stringify = input => {
895
+ const $string = __typia.json.createAssertStringify.string;
896
+ const $tail = __typia.json.createAssertStringify.tail;
897
+ const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined}`}`)}}`;
898
+ return $so0(input);
899
+ }; return stringify(assert(input, errorFactory)); };
900
+ export const isAssetModifiedRecord = input => {
901
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
902
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
903
+ };
904
+ export const assertAssetModifiedRecord = (input, errorFactory) => {
905
+ const __is = input => {
906
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
907
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
908
+ };
909
+ if (false === __is(input))
910
+ ((input, _path, _exceptionable = true) => {
911
+ const $guard = __typia.createAssert.guard;
912
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
913
+ path: _path + ".time",
914
+ expected: "(string | undefined)",
915
+ value: input.time
916
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
917
+ path: _path + ".user",
918
+ expected: "(string | undefined)",
919
+ value: input.user
920
+ }, errorFactory));
921
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
922
+ path: _path + "",
923
+ expected: "AssetModifiedRecord",
924
+ value: input
925
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
926
+ path: _path + "",
927
+ expected: "AssetModifiedRecord",
928
+ value: input
929
+ }, errorFactory);
930
+ })(input, "$input", true);
931
+ return input;
932
+ };
933
+ export const randomAssetModifiedRecord = generator => {
934
+ const $generator = __typia.createRandom.generator;
935
+ const $pick = __typia.createRandom.pick;
936
+ const $ro0 = (_recursive = false, _depth = 0) => ({
937
+ time: $pick([
938
+ () => undefined,
939
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
940
+ ])(),
941
+ user: $pick([
942
+ () => undefined,
943
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
944
+ ])()
945
+ });
946
+ return $ro0();
947
+ };
948
+ export const assertGuardAssetModifiedRecord = (input, errorFactory) => {
949
+ const __is = input => {
950
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
951
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
952
+ };
953
+ if (false === __is(input))
954
+ ((input, _path, _exceptionable = true) => {
955
+ const $guard = __typia.createAssertGuard.guard;
956
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
957
+ path: _path + ".time",
958
+ expected: "(string | undefined)",
959
+ value: input.time
960
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
961
+ path: _path + ".user",
962
+ expected: "(string | undefined)",
963
+ value: input.user
964
+ }, errorFactory));
965
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
966
+ path: _path + "",
967
+ expected: "AssetModifiedRecord",
968
+ value: input
969
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
970
+ path: _path + "",
971
+ expected: "AssetModifiedRecord",
972
+ value: input
973
+ }, errorFactory);
974
+ })(input, "$input", true);
975
+ };
976
+ export const stringifyAssetModifiedRecord = input => {
977
+ const $string = __typia.json.createStringify.string;
978
+ const $tail = __typia.json.createStringify.tail;
979
+ const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined}`}`)}}`;
980
+ return $so0(input);
981
+ };
982
+ export const assertStringifyAssetModifiedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
983
+ const __is = input => {
984
+ const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
985
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
986
+ };
987
+ if (false === __is(input))
988
+ ((input, _path, _exceptionable = true) => {
989
+ const $guard = __typia.json.createAssertStringify.guard;
990
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
991
+ path: _path + ".time",
992
+ expected: "(string | undefined)",
993
+ value: input.time
994
+ }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
995
+ path: _path + ".user",
996
+ expected: "(string | undefined)",
997
+ value: input.user
998
+ }, errorFactory));
999
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1000
+ path: _path + "",
1001
+ expected: "AssetModifiedRecord",
1002
+ value: input
1003
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1004
+ path: _path + "",
1005
+ expected: "AssetModifiedRecord",
1006
+ value: input
1007
+ }, errorFactory);
1008
+ })(input, "$input", true);
1009
+ return input;
1010
+ }; const stringify = input => {
1011
+ const $string = __typia.json.createAssertStringify.string;
1012
+ const $tail = __typia.json.createAssertStringify.tail;
1013
+ const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined}`}`)}}`;
1014
+ return $so0(input);
1015
+ }; return stringify(assert(input, errorFactory)); };
@@ -0,0 +1,14 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ import { CloneRule } from '../common/index.js';
3
+ export interface CloneDomainRecords {
4
+ ":clone": CloneDomainCloneRecord;
5
+ }
6
+ export interface CloneDomainCloneRecord {
7
+ rules: CloneRule[];
8
+ }
9
+ export declare const isCloneDomainCloneRecord: (input: unknown) => input is CloneDomainCloneRecord;
10
+ export declare const assertCloneDomainCloneRecord: (input: unknown) => CloneDomainCloneRecord;
11
+ export declare const randomCloneDomainCloneRecord: () => CloneDomainCloneRecord;
12
+ export declare const assertGuardCloneDomainCloneRecord: __AssertionGuard<CloneDomainCloneRecord>;
13
+ export declare const stringifyCloneDomainCloneRecord: (input: CloneDomainCloneRecord) => string;
14
+ export declare const assertStringifyCloneDomainCloneRecord: (input: unknown) => string;
@@ -0,0 +1,192 @@
1
+ import __typia from "typia";
2
+ export const isCloneDomainCloneRecord = input => {
3
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
4
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
5
+ return "object" === typeof input && null !== input && $io0(input);
6
+ };
7
+ export const assertCloneDomainCloneRecord = (input, errorFactory) => {
8
+ const __is = input => {
9
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
10
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
11
+ return "object" === typeof input && null !== input && $io0(input);
12
+ };
13
+ if (false === __is(input))
14
+ ((input, _path, _exceptionable = true) => {
15
+ const $guard = __typia.createAssert.guard;
16
+ const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rules) || $guard(_exceptionable, {
17
+ path: _path + ".rules",
18
+ expected: "Array<CloneRule>",
19
+ value: input.rules
20
+ }, errorFactory)) && input.rules.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
21
+ path: _path + ".rules[" + _index1 + "]",
22
+ expected: "CloneRule",
23
+ value: elem
24
+ }, errorFactory)) && $ao1(elem, _path + ".rules[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
25
+ path: _path + ".rules[" + _index1 + "]",
26
+ expected: "CloneRule",
27
+ value: elem
28
+ }, errorFactory)) || $guard(_exceptionable, {
29
+ path: _path + ".rules",
30
+ expected: "Array<CloneRule>",
31
+ value: input.rules
32
+ }, errorFactory);
33
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
34
+ path: _path + ".domain",
35
+ expected: "string",
36
+ value: input.domain
37
+ }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
38
+ path: _path + ".path",
39
+ expected: "(null | string | undefined)",
40
+ value: input.path
41
+ }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
42
+ path: _path + ".template",
43
+ expected: "(null | string | undefined)",
44
+ value: input.template
45
+ }, errorFactory));
46
+ return ("object" === typeof input && null !== input || $guard(true, {
47
+ path: _path + "",
48
+ expected: "CloneDomainCloneRecord",
49
+ value: input
50
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
51
+ path: _path + "",
52
+ expected: "CloneDomainCloneRecord",
53
+ value: input
54
+ }, errorFactory);
55
+ })(input, "$input", true);
56
+ return input;
57
+ };
58
+ export const randomCloneDomainCloneRecord = generator => {
59
+ const $generator = __typia.createRandom.generator;
60
+ const $pick = __typia.createRandom.pick;
61
+ const $ro0 = (_recursive = false, _depth = 0) => ({
62
+ rules: (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
63
+ });
64
+ const $ro1 = (_recursive = false, _depth = 0) => ({
65
+ domain: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
66
+ path: $pick([
67
+ () => undefined,
68
+ () => null,
69
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
70
+ ])(),
71
+ template: $pick([
72
+ () => undefined,
73
+ () => null,
74
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
75
+ ])()
76
+ });
77
+ return $ro0();
78
+ };
79
+ export const assertGuardCloneDomainCloneRecord = (input, errorFactory) => {
80
+ const __is = input => {
81
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
82
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
83
+ return "object" === typeof input && null !== input && $io0(input);
84
+ };
85
+ if (false === __is(input))
86
+ ((input, _path, _exceptionable = true) => {
87
+ const $guard = __typia.createAssertGuard.guard;
88
+ const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rules) || $guard(_exceptionable, {
89
+ path: _path + ".rules",
90
+ expected: "Array<CloneRule>",
91
+ value: input.rules
92
+ }, errorFactory)) && input.rules.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
93
+ path: _path + ".rules[" + _index1 + "]",
94
+ expected: "CloneRule",
95
+ value: elem
96
+ }, errorFactory)) && $ao1(elem, _path + ".rules[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
97
+ path: _path + ".rules[" + _index1 + "]",
98
+ expected: "CloneRule",
99
+ value: elem
100
+ }, errorFactory)) || $guard(_exceptionable, {
101
+ path: _path + ".rules",
102
+ expected: "Array<CloneRule>",
103
+ value: input.rules
104
+ }, errorFactory);
105
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
106
+ path: _path + ".domain",
107
+ expected: "string",
108
+ value: input.domain
109
+ }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
110
+ path: _path + ".path",
111
+ expected: "(null | string | undefined)",
112
+ value: input.path
113
+ }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
114
+ path: _path + ".template",
115
+ expected: "(null | string | undefined)",
116
+ value: input.template
117
+ }, errorFactory));
118
+ return ("object" === typeof input && null !== input || $guard(true, {
119
+ path: _path + "",
120
+ expected: "CloneDomainCloneRecord",
121
+ value: input
122
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
123
+ path: _path + "",
124
+ expected: "CloneDomainCloneRecord",
125
+ value: input
126
+ }, errorFactory);
127
+ })(input, "$input", true);
128
+ };
129
+ export const stringifyCloneDomainCloneRecord = input => {
130
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
131
+ const $string = __typia.json.createStringify.string;
132
+ const $so0 = input => `{"rules":${`[${input.rules.map(elem => $so1(elem)).join(",")}]`}}`;
133
+ const $so1 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? $string(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? $string(input.template) : "null" : undefined},`}"domain":${$string(input.domain)}}`;
134
+ return $so0(input);
135
+ };
136
+ export const assertStringifyCloneDomainCloneRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
137
+ const __is = input => {
138
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
139
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
140
+ return "object" === typeof input && null !== input && $io0(input);
141
+ };
142
+ if (false === __is(input))
143
+ ((input, _path, _exceptionable = true) => {
144
+ const $guard = __typia.json.createAssertStringify.guard;
145
+ const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rules) || $guard(_exceptionable, {
146
+ path: _path + ".rules",
147
+ expected: "Array<CloneRule>",
148
+ value: input.rules
149
+ }, errorFactory)) && input.rules.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
150
+ path: _path + ".rules[" + _index1 + "]",
151
+ expected: "CloneRule",
152
+ value: elem
153
+ }, errorFactory)) && $ao1(elem, _path + ".rules[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
154
+ path: _path + ".rules[" + _index1 + "]",
155
+ expected: "CloneRule",
156
+ value: elem
157
+ }, errorFactory)) || $guard(_exceptionable, {
158
+ path: _path + ".rules",
159
+ expected: "Array<CloneRule>",
160
+ value: input.rules
161
+ }, errorFactory);
162
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
163
+ path: _path + ".domain",
164
+ expected: "string",
165
+ value: input.domain
166
+ }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
167
+ path: _path + ".path",
168
+ expected: "(null | string | undefined)",
169
+ value: input.path
170
+ }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
171
+ path: _path + ".template",
172
+ expected: "(null | string | undefined)",
173
+ value: input.template
174
+ }, errorFactory));
175
+ return ("object" === typeof input && null !== input || $guard(true, {
176
+ path: _path + "",
177
+ expected: "CloneDomainCloneRecord",
178
+ value: input
179
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
180
+ path: _path + "",
181
+ expected: "CloneDomainCloneRecord",
182
+ value: input
183
+ }, errorFactory);
184
+ })(input, "$input", true);
185
+ return input;
186
+ }; const stringify = input => {
187
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
188
+ const $string = __typia.json.createAssertStringify.string;
189
+ const $so0 = input => `{"rules":${`[${input.rules.map(elem => $so1(elem)).join(",")}]`}}`;
190
+ const $so1 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? $string(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? $string(input.template) : "null" : undefined},`}"domain":${$string(input.domain)}}`;
191
+ return $so0(input);
192
+ }; return stringify(assert(input, errorFactory)); };
@@ -11,20 +11,17 @@ export declare const randomConnectionRecord: () => ConnectionRecord;
11
11
  export declare const assertGuardConnectionRecord: __AssertionGuard<ConnectionRecord>;
12
12
  export declare const stringifyConnectionRecord: (input: ConnectionRecord) => string;
13
13
  export declare const assertStringifyConnectionRecord: (input: unknown) => string;
14
- export interface ConnectionStatsRecord {
15
- status: string;
16
- substatus: string;
17
- pages?: Array<{
18
- id: unknown;
19
- }>;
14
+ export interface ConnectionRecordCommon {
15
+ type: string;
16
+ notifyOnPublish?: boolean;
20
17
  }
21
- export declare const isConnectionStatsRecord: (input: unknown) => input is ConnectionStatsRecord;
22
- export declare const assertConnectionStatsRecord: (input: unknown) => ConnectionStatsRecord;
23
- export declare const randomConnectionStatsRecord: () => ConnectionStatsRecord;
24
- export declare const assertGuardConnectionStatsRecord: __AssertionGuard<ConnectionStatsRecord>;
25
- export declare const stringifyConnectionStatsRecord: (input: ConnectionStatsRecord) => string;
26
- export declare const assertStringifyConnectionStatsRecord: (input: unknown) => string;
27
- export interface ReutersConnectionRecord {
18
+ export declare const isConnectionRecordCommon: (input: unknown) => input is ConnectionRecordCommon;
19
+ export declare const assertConnectionRecordCommon: (input: unknown) => ConnectionRecordCommon;
20
+ export declare const randomConnectionRecordCommon: () => ConnectionRecordCommon;
21
+ export declare const assertGuardConnectionRecordCommon: __AssertionGuard<ConnectionRecordCommon>;
22
+ export declare const stringifyConnectionRecordCommon: (input: ConnectionRecordCommon) => string;
23
+ export declare const assertStringifyConnectionRecordCommon: (input: unknown) => string;
24
+ export interface ReutersConnectionRecord extends ConnectionRecordCommon {
28
25
  type: "reuters";
29
26
  clientId?: string;
30
27
  clientSecret?: string;
@@ -36,7 +33,7 @@ export declare const randomReutersConnectionRecord: () => ReutersConnectionRecor
36
33
  export declare const assertGuardReutersConnectionRecord: __AssertionGuard<ReutersConnectionRecord>;
37
34
  export declare const stringifyReutersConnectionRecord: (input: ReutersConnectionRecord) => string;
38
35
  export declare const assertStringifyReutersConnectionRecord: (input: unknown) => string;
39
- export interface FacebookConnectionRecord {
36
+ export interface FacebookConnectionRecord extends ConnectionRecordCommon {
40
37
  type: "facebook";
41
38
  grantedScopes?: string[];
42
39
  }
@@ -46,13 +43,27 @@ export declare const randomFacebookConnectionRecord: () => FacebookConnectionRec
46
43
  export declare const assertGuardFacebookConnectionRecord: __AssertionGuard<FacebookConnectionRecord>;
47
44
  export declare const stringifyFacebookConnectionRecord: (input: FacebookConnectionRecord) => string;
48
45
  export declare const assertStringifyFacebookConnectionRecord: (input: unknown) => string;
49
- export interface FilePublishConnectionRecord {
46
+ export interface FilePublishConnectionRecord extends ConnectionRecordCommon {
50
47
  type: "file";
51
48
  protocol: string;
52
49
  host?: string;
53
50
  port?: number;
54
51
  ignoreMissing?: boolean;
55
52
  concurrency?: number;
53
+ stabilityThreshold?: number;
54
+ pollInterval?: number;
55
+ listConcurrency?: number;
56
+ /**
57
+ * S3 client options
58
+ */
59
+ client?: unknown;
60
+ /**
61
+ * S3 bucket name
62
+ */
63
+ bucket?: string;
64
+ metafile?: {
65
+ content: string;
66
+ };
56
67
  }
57
68
  export declare const isFilePublishConnectionRecord: (input: unknown) => input is FilePublishConnectionRecord;
58
69
  export declare const assertFilePublishConnectionRecord: (input: unknown) => FilePublishConnectionRecord;
@@ -60,3 +71,16 @@ export declare const randomFilePublishConnectionRecord: () => FilePublishConnect
60
71
  export declare const assertGuardFilePublishConnectionRecord: __AssertionGuard<FilePublishConnectionRecord>;
61
72
  export declare const stringifyFilePublishConnectionRecord: (input: FilePublishConnectionRecord) => string;
62
73
  export declare const assertStringifyFilePublishConnectionRecord: (input: unknown) => string;
74
+ export interface ConnectionStatsRecord {
75
+ status: string;
76
+ substatus: string;
77
+ pages?: Array<{
78
+ id: unknown;
79
+ }>;
80
+ }
81
+ export declare const isConnectionStatsRecord: (input: unknown) => input is ConnectionStatsRecord;
82
+ export declare const assertConnectionStatsRecord: (input: unknown) => ConnectionStatsRecord;
83
+ export declare const randomConnectionStatsRecord: () => ConnectionStatsRecord;
84
+ export declare const assertGuardConnectionStatsRecord: __AssertionGuard<ConnectionStatsRecord>;
85
+ export declare const stringifyConnectionStatsRecord: (input: ConnectionStatsRecord) => string;
86
+ export declare const assertStringifyConnectionStatsRecord: (input: unknown) => string;