@nxtedition/types 23.0.5 → 23.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/domains/asset.d.ts +12 -0
- package/dist/domains/asset.js +192 -12
- package/dist/index.js +13 -12
- package/dist/schema.json +30 -0
- package/package.json +1 -1
package/dist/domains/asset.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface AssetDomainRecords {
|
|
|
12
12
|
":asset.status?": AssetDomainStatusProvidedRecord;
|
|
13
13
|
":asset.icon?": AssetDomainIconProvidedRecord;
|
|
14
14
|
":asset.deadlines?": AssetDomainDeadlinesProvidedRecord;
|
|
15
|
+
":asset.publish?": AssetDomainPublishProvidedRecord;
|
|
15
16
|
":asset.published?": AssetDomainPublishedProvidedRecord;
|
|
16
17
|
":asset.duration?": AssetDomainDurationProvidedRecord;
|
|
17
18
|
":asset.locations?": AssetDomainLocationsProvidedRecord;
|
|
@@ -81,6 +82,7 @@ export declare const assertStringifyAssetFileRefsProvidedRecord: (input: unknown
|
|
|
81
82
|
export interface AssetCreatedProvidedRecord {
|
|
82
83
|
time?: string;
|
|
83
84
|
user?: string;
|
|
85
|
+
origin?: string;
|
|
84
86
|
}
|
|
85
87
|
export declare const isAssetCreatedProvidedRecord: (input: unknown) => input is AssetCreatedProvidedRecord;
|
|
86
88
|
export declare const assertAssetCreatedProvidedRecord: (input: unknown) => AssetCreatedProvidedRecord;
|
|
@@ -91,6 +93,7 @@ export declare const assertStringifyAssetCreatedProvidedRecord: (input: unknown)
|
|
|
91
93
|
export interface AssetModifiedProvidedRecord {
|
|
92
94
|
time?: string;
|
|
93
95
|
user?: string;
|
|
96
|
+
users?: string[];
|
|
94
97
|
}
|
|
95
98
|
export declare const isAssetModifiedProvidedRecord: (input: unknown) => input is AssetModifiedProvidedRecord;
|
|
96
99
|
export declare const assertAssetModifiedProvidedRecord: (input: unknown) => AssetModifiedProvidedRecord;
|
|
@@ -132,6 +135,15 @@ export declare const randomAssetDomainDeadlinesProvidedRecord: () => AssetDomain
|
|
|
132
135
|
export declare const assertGuardAssetDomainDeadlinesProvidedRecord: __AssertionGuard<AssetDomainDeadlinesProvidedRecord>;
|
|
133
136
|
export declare const stringifyAssetDomainDeadlinesProvidedRecord: (input: AssetDomainDeadlinesProvidedRecord) => string;
|
|
134
137
|
export declare const assertStringifyAssetDomainDeadlinesProvidedRecord: (input: unknown) => string;
|
|
138
|
+
export interface AssetDomainPublishProvidedRecord {
|
|
139
|
+
value?: string[];
|
|
140
|
+
}
|
|
141
|
+
export declare const isAssetDomainPublishProvidedRecord: (input: unknown) => input is AssetDomainPublishProvidedRecord;
|
|
142
|
+
export declare const assertAssetDomainPublishProvidedRecord: (input: unknown) => AssetDomainPublishProvidedRecord;
|
|
143
|
+
export declare const randomAssetDomainPublishProvidedRecord: () => AssetDomainPublishProvidedRecord;
|
|
144
|
+
export declare const assertGuardAssetDomainPublishProvidedRecord: __AssertionGuard<AssetDomainPublishProvidedRecord>;
|
|
145
|
+
export declare const stringifyAssetDomainPublishProvidedRecord: (input: AssetDomainPublishProvidedRecord) => string;
|
|
146
|
+
export declare const assertStringifyAssetDomainPublishProvidedRecord: (input: unknown) => string;
|
|
135
147
|
export interface AssetDomainPublishedProvidedRecord {
|
|
136
148
|
[publishedRecordId: string]: IsoTimestamp;
|
|
137
149
|
}
|
package/dist/domains/asset.js
CHANGED
|
@@ -782,12 +782,12 @@ export const assertStringifyAssetFileRefsProvidedRecord = (input, errorFactory)
|
|
|
782
782
|
return $so0(input);
|
|
783
783
|
}; return stringify(assert(input, errorFactory)); };
|
|
784
784
|
export const isAssetCreatedProvidedRecord = input => {
|
|
785
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
785
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
|
|
786
786
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
787
787
|
};
|
|
788
788
|
export const assertAssetCreatedProvidedRecord = (input, errorFactory) => {
|
|
789
789
|
const __is = input => {
|
|
790
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
790
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
|
|
791
791
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
792
792
|
};
|
|
793
793
|
if (false === __is(input))
|
|
@@ -801,6 +801,10 @@ export const assertAssetCreatedProvidedRecord = (input, errorFactory) => {
|
|
|
801
801
|
path: _path + ".user",
|
|
802
802
|
expected: "(string | undefined)",
|
|
803
803
|
value: input.user
|
|
804
|
+
}, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
|
|
805
|
+
path: _path + ".origin",
|
|
806
|
+
expected: "(string | undefined)",
|
|
807
|
+
value: input.origin
|
|
804
808
|
}, errorFactory));
|
|
805
809
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
806
810
|
path: _path + "",
|
|
@@ -825,13 +829,17 @@ export const randomAssetCreatedProvidedRecord = generator => {
|
|
|
825
829
|
user: $pick([
|
|
826
830
|
() => undefined,
|
|
827
831
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
832
|
+
])(),
|
|
833
|
+
origin: $pick([
|
|
834
|
+
() => undefined,
|
|
835
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
828
836
|
])()
|
|
829
837
|
});
|
|
830
838
|
return $ro0();
|
|
831
839
|
};
|
|
832
840
|
export const assertGuardAssetCreatedProvidedRecord = (input, errorFactory) => {
|
|
833
841
|
const __is = input => {
|
|
834
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
842
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
|
|
835
843
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
836
844
|
};
|
|
837
845
|
if (false === __is(input))
|
|
@@ -845,6 +853,10 @@ export const assertGuardAssetCreatedProvidedRecord = (input, errorFactory) => {
|
|
|
845
853
|
path: _path + ".user",
|
|
846
854
|
expected: "(string | undefined)",
|
|
847
855
|
value: input.user
|
|
856
|
+
}, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
|
|
857
|
+
path: _path + ".origin",
|
|
858
|
+
expected: "(string | undefined)",
|
|
859
|
+
value: input.origin
|
|
848
860
|
}, errorFactory));
|
|
849
861
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
850
862
|
path: _path + "",
|
|
@@ -860,12 +872,12 @@ export const assertGuardAssetCreatedProvidedRecord = (input, errorFactory) => {
|
|
|
860
872
|
export const stringifyAssetCreatedProvidedRecord = input => {
|
|
861
873
|
const $string = __typia.json.createStringify.string;
|
|
862
874
|
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}`}`)}}`;
|
|
875
|
+
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},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? $string(input.origin) : undefined}`}`)}}`;
|
|
864
876
|
return $so0(input);
|
|
865
877
|
};
|
|
866
878
|
export const assertStringifyAssetCreatedProvidedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
867
879
|
const __is = input => {
|
|
868
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
880
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
|
|
869
881
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
870
882
|
};
|
|
871
883
|
if (false === __is(input))
|
|
@@ -879,6 +891,10 @@ export const assertStringifyAssetCreatedProvidedRecord = (input, errorFactory) =
|
|
|
879
891
|
path: _path + ".user",
|
|
880
892
|
expected: "(string | undefined)",
|
|
881
893
|
value: input.user
|
|
894
|
+
}, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
|
|
895
|
+
path: _path + ".origin",
|
|
896
|
+
expected: "(string | undefined)",
|
|
897
|
+
value: input.origin
|
|
882
898
|
}, errorFactory));
|
|
883
899
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
884
900
|
path: _path + "",
|
|
@@ -894,16 +910,16 @@ export const assertStringifyAssetCreatedProvidedRecord = (input, errorFactory) =
|
|
|
894
910
|
}; const stringify = input => {
|
|
895
911
|
const $string = __typia.json.createAssertStringify.string;
|
|
896
912
|
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}`}`)}}`;
|
|
913
|
+
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},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? $string(input.origin) : undefined}`}`)}}`;
|
|
898
914
|
return $so0(input);
|
|
899
915
|
}; return stringify(assert(input, errorFactory)); };
|
|
900
916
|
export const isAssetModifiedProvidedRecord = input => {
|
|
901
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
917
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.users || Array.isArray(input.users) && input.users.every(elem => "string" === typeof elem));
|
|
902
918
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
903
919
|
};
|
|
904
920
|
export const assertAssetModifiedProvidedRecord = (input, errorFactory) => {
|
|
905
921
|
const __is = input => {
|
|
906
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
922
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.users || Array.isArray(input.users) && input.users.every(elem => "string" === typeof elem));
|
|
907
923
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
908
924
|
};
|
|
909
925
|
if (false === __is(input))
|
|
@@ -917,6 +933,18 @@ export const assertAssetModifiedProvidedRecord = (input, errorFactory) => {
|
|
|
917
933
|
path: _path + ".user",
|
|
918
934
|
expected: "(string | undefined)",
|
|
919
935
|
value: input.user
|
|
936
|
+
}, errorFactory)) && (undefined === input.users || (Array.isArray(input.users) || $guard(_exceptionable, {
|
|
937
|
+
path: _path + ".users",
|
|
938
|
+
expected: "(Array<string> | undefined)",
|
|
939
|
+
value: input.users
|
|
940
|
+
}, errorFactory)) && input.users.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
941
|
+
path: _path + ".users[" + _index1 + "]",
|
|
942
|
+
expected: "string",
|
|
943
|
+
value: elem
|
|
944
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
945
|
+
path: _path + ".users",
|
|
946
|
+
expected: "(Array<string> | undefined)",
|
|
947
|
+
value: input.users
|
|
920
948
|
}, errorFactory));
|
|
921
949
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
922
950
|
path: _path + "",
|
|
@@ -941,13 +969,17 @@ export const randomAssetModifiedProvidedRecord = generator => {
|
|
|
941
969
|
user: $pick([
|
|
942
970
|
() => undefined,
|
|
943
971
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
972
|
+
])(),
|
|
973
|
+
users: $pick([
|
|
974
|
+
() => undefined,
|
|
975
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
944
976
|
])()
|
|
945
977
|
});
|
|
946
978
|
return $ro0();
|
|
947
979
|
};
|
|
948
980
|
export const assertGuardAssetModifiedProvidedRecord = (input, errorFactory) => {
|
|
949
981
|
const __is = input => {
|
|
950
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
982
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.users || Array.isArray(input.users) && input.users.every(elem => "string" === typeof elem));
|
|
951
983
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
952
984
|
};
|
|
953
985
|
if (false === __is(input))
|
|
@@ -961,6 +993,18 @@ export const assertGuardAssetModifiedProvidedRecord = (input, errorFactory) => {
|
|
|
961
993
|
path: _path + ".user",
|
|
962
994
|
expected: "(string | undefined)",
|
|
963
995
|
value: input.user
|
|
996
|
+
}, errorFactory)) && (undefined === input.users || (Array.isArray(input.users) || $guard(_exceptionable, {
|
|
997
|
+
path: _path + ".users",
|
|
998
|
+
expected: "(Array<string> | undefined)",
|
|
999
|
+
value: input.users
|
|
1000
|
+
}, errorFactory)) && input.users.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1001
|
+
path: _path + ".users[" + _index1 + "]",
|
|
1002
|
+
expected: "string",
|
|
1003
|
+
value: elem
|
|
1004
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1005
|
+
path: _path + ".users",
|
|
1006
|
+
expected: "(Array<string> | undefined)",
|
|
1007
|
+
value: input.users
|
|
964
1008
|
}, errorFactory));
|
|
965
1009
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
966
1010
|
path: _path + "",
|
|
@@ -976,12 +1020,12 @@ export const assertGuardAssetModifiedProvidedRecord = (input, errorFactory) => {
|
|
|
976
1020
|
export const stringifyAssetModifiedProvidedRecord = input => {
|
|
977
1021
|
const $string = __typia.json.createStringify.string;
|
|
978
1022
|
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}`}`)}}`;
|
|
1023
|
+
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},`}${undefined === input.users ? "" : `"users":${undefined !== input.users ? `[${input.users.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
980
1024
|
return $so0(input);
|
|
981
1025
|
};
|
|
982
1026
|
export const assertStringifyAssetModifiedProvidedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
983
1027
|
const __is = input => {
|
|
984
|
-
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user);
|
|
1028
|
+
const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.users || Array.isArray(input.users) && input.users.every(elem => "string" === typeof elem));
|
|
985
1029
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
986
1030
|
};
|
|
987
1031
|
if (false === __is(input))
|
|
@@ -995,6 +1039,18 @@ export const assertStringifyAssetModifiedProvidedRecord = (input, errorFactory)
|
|
|
995
1039
|
path: _path + ".user",
|
|
996
1040
|
expected: "(string | undefined)",
|
|
997
1041
|
value: input.user
|
|
1042
|
+
}, errorFactory)) && (undefined === input.users || (Array.isArray(input.users) || $guard(_exceptionable, {
|
|
1043
|
+
path: _path + ".users",
|
|
1044
|
+
expected: "(Array<string> | undefined)",
|
|
1045
|
+
value: input.users
|
|
1046
|
+
}, errorFactory)) && input.users.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1047
|
+
path: _path + ".users[" + _index1 + "]",
|
|
1048
|
+
expected: "string",
|
|
1049
|
+
value: elem
|
|
1050
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1051
|
+
path: _path + ".users",
|
|
1052
|
+
expected: "(Array<string> | undefined)",
|
|
1053
|
+
value: input.users
|
|
998
1054
|
}, errorFactory));
|
|
999
1055
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1000
1056
|
path: _path + "",
|
|
@@ -1010,7 +1066,7 @@ export const assertStringifyAssetModifiedProvidedRecord = (input, errorFactory)
|
|
|
1010
1066
|
}; const stringify = input => {
|
|
1011
1067
|
const $string = __typia.json.createAssertStringify.string;
|
|
1012
1068
|
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}`}`)}}`;
|
|
1069
|
+
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},`}${undefined === input.users ? "" : `"users":${undefined !== input.users ? `[${input.users.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
1014
1070
|
return $so0(input);
|
|
1015
1071
|
}; return stringify(assert(input, errorFactory)); };
|
|
1016
1072
|
export const isAssetDomainStatusProvidedRecord = input => {
|
|
@@ -1467,6 +1523,130 @@ export const assertStringifyAssetDomainDeadlinesProvidedRecord = (input, errorFa
|
|
|
1467
1523
|
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
1468
1524
|
return $so0(input);
|
|
1469
1525
|
}; return stringify(assert(input, errorFactory)); };
|
|
1526
|
+
export const isAssetDomainPublishProvidedRecord = input => {
|
|
1527
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
1528
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1529
|
+
};
|
|
1530
|
+
export const assertAssetDomainPublishProvidedRecord = (input, errorFactory) => {
|
|
1531
|
+
const __is = input => {
|
|
1532
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
1533
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1534
|
+
};
|
|
1535
|
+
if (false === __is(input))
|
|
1536
|
+
((input, _path, _exceptionable = true) => {
|
|
1537
|
+
const $guard = __typia.createAssert.guard;
|
|
1538
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
1539
|
+
path: _path + ".value",
|
|
1540
|
+
expected: "(Array<string> | undefined)",
|
|
1541
|
+
value: input.value
|
|
1542
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1543
|
+
path: _path + ".value[" + _index1 + "]",
|
|
1544
|
+
expected: "string",
|
|
1545
|
+
value: elem
|
|
1546
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1547
|
+
path: _path + ".value",
|
|
1548
|
+
expected: "(Array<string> | undefined)",
|
|
1549
|
+
value: input.value
|
|
1550
|
+
}, errorFactory);
|
|
1551
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1552
|
+
path: _path + "",
|
|
1553
|
+
expected: "AssetDomainPublishProvidedRecord",
|
|
1554
|
+
value: input
|
|
1555
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
1556
|
+
path: _path + "",
|
|
1557
|
+
expected: "AssetDomainPublishProvidedRecord",
|
|
1558
|
+
value: input
|
|
1559
|
+
}, errorFactory);
|
|
1560
|
+
})(input, "$input", true);
|
|
1561
|
+
return input;
|
|
1562
|
+
};
|
|
1563
|
+
export const randomAssetDomainPublishProvidedRecord = generator => {
|
|
1564
|
+
const $generator = __typia.createRandom.generator;
|
|
1565
|
+
const $pick = __typia.createRandom.pick;
|
|
1566
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
1567
|
+
value: $pick([
|
|
1568
|
+
() => undefined,
|
|
1569
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
1570
|
+
])()
|
|
1571
|
+
});
|
|
1572
|
+
return $ro0();
|
|
1573
|
+
};
|
|
1574
|
+
export const assertGuardAssetDomainPublishProvidedRecord = (input, errorFactory) => {
|
|
1575
|
+
const __is = input => {
|
|
1576
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
1577
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1578
|
+
};
|
|
1579
|
+
if (false === __is(input))
|
|
1580
|
+
((input, _path, _exceptionable = true) => {
|
|
1581
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
1582
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
1583
|
+
path: _path + ".value",
|
|
1584
|
+
expected: "(Array<string> | undefined)",
|
|
1585
|
+
value: input.value
|
|
1586
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1587
|
+
path: _path + ".value[" + _index1 + "]",
|
|
1588
|
+
expected: "string",
|
|
1589
|
+
value: elem
|
|
1590
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1591
|
+
path: _path + ".value",
|
|
1592
|
+
expected: "(Array<string> | undefined)",
|
|
1593
|
+
value: input.value
|
|
1594
|
+
}, errorFactory);
|
|
1595
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1596
|
+
path: _path + "",
|
|
1597
|
+
expected: "AssetDomainPublishProvidedRecord",
|
|
1598
|
+
value: input
|
|
1599
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
1600
|
+
path: _path + "",
|
|
1601
|
+
expected: "AssetDomainPublishProvidedRecord",
|
|
1602
|
+
value: input
|
|
1603
|
+
}, errorFactory);
|
|
1604
|
+
})(input, "$input", true);
|
|
1605
|
+
};
|
|
1606
|
+
export const stringifyAssetDomainPublishProvidedRecord = input => {
|
|
1607
|
+
const $string = __typia.json.createStringify.string;
|
|
1608
|
+
const $tail = __typia.json.createStringify.tail;
|
|
1609
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
1610
|
+
return $so0(input);
|
|
1611
|
+
};
|
|
1612
|
+
export const assertStringifyAssetDomainPublishProvidedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1613
|
+
const __is = input => {
|
|
1614
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
1615
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1616
|
+
};
|
|
1617
|
+
if (false === __is(input))
|
|
1618
|
+
((input, _path, _exceptionable = true) => {
|
|
1619
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
1620
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
1621
|
+
path: _path + ".value",
|
|
1622
|
+
expected: "(Array<string> | undefined)",
|
|
1623
|
+
value: input.value
|
|
1624
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
1625
|
+
path: _path + ".value[" + _index1 + "]",
|
|
1626
|
+
expected: "string",
|
|
1627
|
+
value: elem
|
|
1628
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
1629
|
+
path: _path + ".value",
|
|
1630
|
+
expected: "(Array<string> | undefined)",
|
|
1631
|
+
value: input.value
|
|
1632
|
+
}, errorFactory);
|
|
1633
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1634
|
+
path: _path + "",
|
|
1635
|
+
expected: "AssetDomainPublishProvidedRecord",
|
|
1636
|
+
value: input
|
|
1637
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
1638
|
+
path: _path + "",
|
|
1639
|
+
expected: "AssetDomainPublishProvidedRecord",
|
|
1640
|
+
value: input
|
|
1641
|
+
}, errorFactory);
|
|
1642
|
+
})(input, "$input", true);
|
|
1643
|
+
return input;
|
|
1644
|
+
}; const stringify = input => {
|
|
1645
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
1646
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
1647
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
1648
|
+
return $so0(input);
|
|
1649
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
1470
1650
|
export const isAssetDomainPublishedProvidedRecord = input => {
|
|
1471
1651
|
const $io0 = input => Object.keys(input).every(key => {
|
|
1472
1652
|
const value = input[key];
|
package/dist/index.js
CHANGED
|
@@ -5,21 +5,21 @@ export * from './app.js';
|
|
|
5
5
|
export * from './rpc.js';
|
|
6
6
|
export * from './asset.js';
|
|
7
7
|
export const isDomains = input => {
|
|
8
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
8
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
9
9
|
return true === $iv1.has(input);
|
|
10
10
|
};
|
|
11
11
|
export const assertDomains = (input, errorFactory) => {
|
|
12
12
|
const __is = input => {
|
|
13
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
13
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
14
14
|
return true === $iv1.has(input);
|
|
15
15
|
};
|
|
16
16
|
if (false === __is(input))
|
|
17
17
|
((input, _path, _exceptionable = true) => {
|
|
18
18
|
const $guard = __typia.createAssert.guard;
|
|
19
|
-
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
19
|
+
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
20
20
|
return true === $av1.has(input) || $guard(true, {
|
|
21
21
|
path: _path + "",
|
|
22
|
-
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
22
|
+
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
23
23
|
value: input
|
|
24
24
|
}, errorFactory);
|
|
25
25
|
})(input, "$input", true);
|
|
@@ -48,6 +48,7 @@ export const randomDomains = generator => {
|
|
|
48
48
|
() => ":asset.status?",
|
|
49
49
|
() => ":asset.icon?",
|
|
50
50
|
() => ":asset.deadlines?",
|
|
51
|
+
() => ":asset.publish?",
|
|
51
52
|
() => ":asset.published?",
|
|
52
53
|
() => ":asset.duration?",
|
|
53
54
|
() => ":asset.locations?",
|
|
@@ -95,16 +96,16 @@ export const randomDomains = generator => {
|
|
|
95
96
|
};
|
|
96
97
|
export const assertGuardDomains = (input, errorFactory) => {
|
|
97
98
|
const __is = input => {
|
|
98
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
99
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
99
100
|
return true === $iv1.has(input);
|
|
100
101
|
};
|
|
101
102
|
if (false === __is(input))
|
|
102
103
|
((input, _path, _exceptionable = true) => {
|
|
103
104
|
const $guard = __typia.createAssertGuard.guard;
|
|
104
|
-
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
105
|
+
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
105
106
|
return true === $av1.has(input) || $guard(true, {
|
|
106
107
|
path: _path + "",
|
|
107
|
-
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
108
|
+
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
108
109
|
value: input
|
|
109
110
|
}, errorFactory);
|
|
110
111
|
})(input, "$input", true);
|
|
@@ -118,23 +119,23 @@ export const stringifyDomains = input => {
|
|
|
118
119
|
if ("string" === typeof input)
|
|
119
120
|
return "\"" + input + "\"";
|
|
120
121
|
$throws({
|
|
121
|
-
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
122
|
+
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
122
123
|
value: input
|
|
123
124
|
});
|
|
124
125
|
})();
|
|
125
126
|
};
|
|
126
127
|
export const assertStringifyDomains = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
127
128
|
const __is = input => {
|
|
128
|
-
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
129
|
+
const $iv1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
129
130
|
return true === $iv1.has(input);
|
|
130
131
|
};
|
|
131
132
|
if (false === __is(input))
|
|
132
133
|
((input, _path, _exceptionable = true) => {
|
|
133
134
|
const $guard = __typia.json.createAssertStringify.guard;
|
|
134
|
-
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
135
|
+
const $av1 = new Set([":bundle", ":bundle.revisions", ":connection", ":connection.methods?", ":connection.stats?", ":publish", ":publish.stats?", ":publish.methods?", ":published", ":asset.title?", ":asset.types?", ":asset.assignees?", ":asset.refs?", ":asset.tags?", ":asset.fileRefs?", ":asset.created?", ":asset.modified?", ":asset.status?", ":asset.icon?", ":asset.deadlines?", ":asset.publish?", ":asset.published?", ":asset.duration?", ":asset.locations?", ":asset.controllers?", ":asset.embedding?", ":asset.media?", ":clone", ":contact", ":event", ":event._template?", ":file.replicate", ":file.restrictions", ":general.title", ":general.tags", ":general.created", ":general.poster", ":general.status", ":general.description", ":media.source", ":media.consolidate", ":media.renders?", ":media.transcriptChanges", ":media.font", ":media.restrictions?", ":media.probe?", ":permission?", ":permission", ":pipeline-preset", ":pipeline", ":pipeline.items", ":planning", ":planning.assignees", ":planning.deadline", ":render-preset", ":revs?", ":role.tags", ":script.children", ":search", ":settings", ":storyboard", ":storyboard.pipelines", ":template", ":user"]);
|
|
135
136
|
return true === $av1.has(input) || $guard(true, {
|
|
136
137
|
path: _path + "",
|
|
137
|
-
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
138
|
+
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
138
139
|
value: input
|
|
139
140
|
}, errorFactory);
|
|
140
141
|
})(input, "$input", true);
|
|
@@ -148,7 +149,7 @@ export const assertStringifyDomains = (input, errorFactory) => { const assert =
|
|
|
148
149
|
if ("string" === typeof input)
|
|
149
150
|
return "\"" + input + "\"";
|
|
150
151
|
$throws({
|
|
151
|
-
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
152
|
+
expected: "(\":asset.assignees?\" | \":asset.controllers?\" | \":asset.created?\" | \":asset.deadlines?\" | \":asset.duration?\" | \":asset.embedding?\" | \":asset.fileRefs?\" | \":asset.icon?\" | \":asset.locations?\" | \":asset.media?\" | \":asset.modified?\" | \":asset.publish?\" | \":asset.published?\" | \":asset.refs?\" | \":asset.status?\" | \":asset.tags?\" | \":asset.title?\" | \":asset.types?\" | \":bundle\" | \":bundle.revisions\" | \":clone\" | \":connection\" | \":connection.methods?\" | \":connection.stats?\" | \":contact\" | \":event\" | \":event._template?\" | \":file.replicate\" | \":file.restrictions\" | \":general.created\" | \":general.description\" | \":general.poster\" | \":general.status\" | \":general.tags\" | \":general.title\" | \":media.consolidate\" | \":media.font\" | \":media.probe?\" | \":media.renders?\" | \":media.restrictions?\" | \":media.source\" | \":media.transcriptChanges\" | \":permission\" | \":permission?\" | \":pipeline\" | \":pipeline-preset\" | \":pipeline.items\" | \":planning\" | \":planning.assignees\" | \":planning.deadline\" | \":publish\" | \":publish.methods?\" | \":publish.stats?\" | \":published\" | \":render-preset\" | \":revs?\" | \":role.tags\" | \":script.children\" | \":search\" | \":settings\" | \":storyboard\" | \":storyboard.pipelines\" | \":template\" | \":user\")",
|
|
152
153
|
value: input
|
|
153
154
|
});
|
|
154
155
|
})();
|
package/dist/schema.json
CHANGED
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
"AssetCreatedProvidedRecord": {
|
|
37
37
|
"additionalProperties": false,
|
|
38
38
|
"properties": {
|
|
39
|
+
"origin": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
39
42
|
"time": {
|
|
40
43
|
"type": "string"
|
|
41
44
|
},
|
|
@@ -128,6 +131,18 @@
|
|
|
128
131
|
"additionalProperties": {},
|
|
129
132
|
"type": "object"
|
|
130
133
|
},
|
|
134
|
+
"AssetDomainPublishProvidedRecord": {
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"properties": {
|
|
137
|
+
"value": {
|
|
138
|
+
"items": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"type": "array"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"type": "object"
|
|
145
|
+
},
|
|
131
146
|
"AssetDomainPublishedProvidedRecord": {
|
|
132
147
|
"additionalProperties": {
|
|
133
148
|
"type": "string"
|
|
@@ -170,6 +185,9 @@
|
|
|
170
185
|
":asset.modified?": {
|
|
171
186
|
"$ref": "#/definitions/AssetModifiedProvidedRecord"
|
|
172
187
|
},
|
|
188
|
+
":asset.publish?": {
|
|
189
|
+
"$ref": "#/definitions/AssetDomainPublishProvidedRecord"
|
|
190
|
+
},
|
|
173
191
|
":asset.published?": {
|
|
174
192
|
"$ref": "#/definitions/AssetDomainPublishedProvidedRecord"
|
|
175
193
|
},
|
|
@@ -201,6 +219,7 @@
|
|
|
201
219
|
":asset.locations?",
|
|
202
220
|
":asset.media?",
|
|
203
221
|
":asset.modified?",
|
|
222
|
+
":asset.publish?",
|
|
204
223
|
":asset.published?",
|
|
205
224
|
":asset.refs?",
|
|
206
225
|
":asset.status?",
|
|
@@ -272,6 +291,12 @@
|
|
|
272
291
|
},
|
|
273
292
|
"user": {
|
|
274
293
|
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
"users": {
|
|
296
|
+
"items": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
},
|
|
299
|
+
"type": "array"
|
|
275
300
|
}
|
|
276
301
|
},
|
|
277
302
|
"type": "object"
|
|
@@ -755,6 +780,9 @@
|
|
|
755
780
|
":asset.modified?": {
|
|
756
781
|
"$ref": "#/definitions/AssetModifiedProvidedRecord"
|
|
757
782
|
},
|
|
783
|
+
":asset.publish?": {
|
|
784
|
+
"$ref": "#/definitions/AssetDomainPublishProvidedRecord"
|
|
785
|
+
},
|
|
758
786
|
":asset.published?": {
|
|
759
787
|
"$ref": "#/definitions/AssetDomainPublishedProvidedRecord"
|
|
760
788
|
},
|
|
@@ -933,6 +961,7 @@
|
|
|
933
961
|
":asset.locations?",
|
|
934
962
|
":asset.media?",
|
|
935
963
|
":asset.modified?",
|
|
964
|
+
":asset.publish?",
|
|
936
965
|
":asset.published?",
|
|
937
966
|
":asset.refs?",
|
|
938
967
|
":asset.status?",
|
|
@@ -1017,6 +1046,7 @@
|
|
|
1017
1046
|
":asset.locations?",
|
|
1018
1047
|
":asset.media?",
|
|
1019
1048
|
":asset.modified?",
|
|
1049
|
+
":asset.publish?",
|
|
1020
1050
|
":asset.published?",
|
|
1021
1051
|
":asset.refs?",
|
|
1022
1052
|
":asset.status?",
|