@nxtedition/types 23.0.12 → 23.0.14
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/app.d.ts +61 -1
- package/dist/app.js +218 -10
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/settings.d.ts +37 -6
- package/dist/common/settings.js +1474 -535
- package/dist/common/user-notification.d.ts +8 -0
- package/dist/common/user-notification.js +85 -0
- package/dist/domains/asset.d.ts +23 -0
- package/dist/domains/asset.js +248 -0
- package/dist/domains/comment-reaction.d.ts +15 -0
- package/dist/domains/comment-reaction.js +115 -0
- package/dist/domains/comment-read-mark.d.ts +15 -0
- package/dist/domains/comment-read-mark.js +115 -0
- package/dist/domains/comment.d.ts +153 -0
- package/dist/domains/comment.js +5730 -0
- package/dist/domains/connection.d.ts +1 -1
- package/dist/domains/connection.js +118 -118
- package/dist/domains/deepstream.d.ts +14 -0
- package/dist/domains/deepstream.js +139 -0
- package/dist/domains/edit.d.ts +17 -0
- package/dist/domains/edit.js +224 -0
- package/dist/domains/index.d.ts +17 -1
- package/dist/domains/index.js +8 -0
- package/dist/domains/planning.d.ts +1 -1
- package/dist/domains/planning.js +29 -23
- package/dist/domains/publish.d.ts +1 -0
- package/dist/domains/publish.js +142 -46
- package/dist/domains/published.d.ts +2 -1
- package/dist/domains/published.js +50 -10
- package/dist/domains/settings.js +1480 -536
- package/dist/domains/subtitle-style.d.ts +13 -0
- package/dist/domains/subtitle-style.js +123 -0
- package/dist/domains/user-notification-status.d.ts +55 -0
- package/dist/domains/user-notification-status.js +715 -0
- package/dist/domains/user-notification.d.ts +118 -0
- package/dist/domains/user-notification.js +3040 -0
- package/dist/domains/user.d.ts +42 -8
- package/dist/domains/user.js +352 -12
- package/dist/index.d.ts +23 -1
- package/dist/index.js +30 -13
- package/dist/schema.json +1453 -32
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface SubtitleStyleDomainRecords {
|
|
3
|
+
":subtitle-style": SubtitleStyleDomainRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface SubtitleStyleDomainRecord {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare const isSubtitleStyleDomainRecord: (input: unknown) => input is SubtitleStyleDomainRecord;
|
|
9
|
+
export declare const assertSubtitleStyleDomainRecord: (input: unknown) => SubtitleStyleDomainRecord;
|
|
10
|
+
export declare const randomSubtitleStyleDomainRecord: () => SubtitleStyleDomainRecord;
|
|
11
|
+
export declare const assertGuardSubtitleStyleDomainRecord: __AssertionGuard<SubtitleStyleDomainRecord>;
|
|
12
|
+
export declare const stringifySubtitleStyleDomainRecord: (input: SubtitleStyleDomainRecord) => string;
|
|
13
|
+
export declare const assertStringifySubtitleStyleDomainRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isSubtitleStyleDomainRecord = input => {
|
|
3
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
4
|
+
const value = input[key];
|
|
5
|
+
if (undefined === value)
|
|
6
|
+
return true;
|
|
7
|
+
return true;
|
|
8
|
+
});
|
|
9
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
10
|
+
};
|
|
11
|
+
export const assertSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
12
|
+
const __is = input => {
|
|
13
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
14
|
+
const value = input[key];
|
|
15
|
+
if (undefined === value)
|
|
16
|
+
return true;
|
|
17
|
+
return true;
|
|
18
|
+
});
|
|
19
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
20
|
+
};
|
|
21
|
+
if (false === __is(input))
|
|
22
|
+
((input, _path, _exceptionable = true) => {
|
|
23
|
+
const $guard = __typia.createAssert.guard;
|
|
24
|
+
const $join = __typia.createAssert.join;
|
|
25
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
26
|
+
const value = input[key];
|
|
27
|
+
if (undefined === value)
|
|
28
|
+
return true;
|
|
29
|
+
return true;
|
|
30
|
+
});
|
|
31
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
32
|
+
path: _path + "",
|
|
33
|
+
expected: "SubtitleStyleDomainRecord",
|
|
34
|
+
value: input
|
|
35
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
36
|
+
path: _path + "",
|
|
37
|
+
expected: "SubtitleStyleDomainRecord",
|
|
38
|
+
value: input
|
|
39
|
+
}, errorFactory);
|
|
40
|
+
})(input, "$input", true);
|
|
41
|
+
return input;
|
|
42
|
+
};
|
|
43
|
+
export const randomSubtitleStyleDomainRecord = generator => {
|
|
44
|
+
const $generator = __typia.createRandom.generator;
|
|
45
|
+
const $ro0 = (_recursive = false, _depth = 0) => {
|
|
46
|
+
const output = {};
|
|
47
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
|
|
48
|
+
return output;
|
|
49
|
+
};
|
|
50
|
+
return $ro0();
|
|
51
|
+
};
|
|
52
|
+
export const assertGuardSubtitleStyleDomainRecord = (input, errorFactory) => {
|
|
53
|
+
const __is = input => {
|
|
54
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
55
|
+
const value = input[key];
|
|
56
|
+
if (undefined === value)
|
|
57
|
+
return true;
|
|
58
|
+
return true;
|
|
59
|
+
});
|
|
60
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
61
|
+
};
|
|
62
|
+
if (false === __is(input))
|
|
63
|
+
((input, _path, _exceptionable = true) => {
|
|
64
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
65
|
+
const $join = __typia.createAssertGuard.join;
|
|
66
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
67
|
+
const value = input[key];
|
|
68
|
+
if (undefined === value)
|
|
69
|
+
return true;
|
|
70
|
+
return true;
|
|
71
|
+
});
|
|
72
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
73
|
+
path: _path + "",
|
|
74
|
+
expected: "SubtitleStyleDomainRecord",
|
|
75
|
+
value: input
|
|
76
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
77
|
+
path: _path + "",
|
|
78
|
+
expected: "SubtitleStyleDomainRecord",
|
|
79
|
+
value: input
|
|
80
|
+
}, errorFactory);
|
|
81
|
+
})(input, "$input", true);
|
|
82
|
+
};
|
|
83
|
+
export const stringifySubtitleStyleDomainRecord = input => {
|
|
84
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
85
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
86
|
+
return $so0(input);
|
|
87
|
+
};
|
|
88
|
+
export const assertStringifySubtitleStyleDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
89
|
+
const __is = input => {
|
|
90
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
91
|
+
const value = input[key];
|
|
92
|
+
if (undefined === value)
|
|
93
|
+
return true;
|
|
94
|
+
return true;
|
|
95
|
+
});
|
|
96
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
97
|
+
};
|
|
98
|
+
if (false === __is(input))
|
|
99
|
+
((input, _path, _exceptionable = true) => {
|
|
100
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
101
|
+
const $join = __typia.json.createAssertStringify.join;
|
|
102
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
103
|
+
const value = input[key];
|
|
104
|
+
if (undefined === value)
|
|
105
|
+
return true;
|
|
106
|
+
return true;
|
|
107
|
+
});
|
|
108
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
109
|
+
path: _path + "",
|
|
110
|
+
expected: "SubtitleStyleDomainRecord",
|
|
111
|
+
value: input
|
|
112
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
113
|
+
path: _path + "",
|
|
114
|
+
expected: "SubtitleStyleDomainRecord",
|
|
115
|
+
value: input
|
|
116
|
+
}, errorFactory);
|
|
117
|
+
})(input, "$input", true);
|
|
118
|
+
return input;
|
|
119
|
+
}; const stringify = input => {
|
|
120
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
121
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
122
|
+
return $so0(input);
|
|
123
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface UserNotificationStatusDomainRecords {
|
|
3
|
+
":user-notification-status": UserNotificationStatusDomainRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface UserNotificationStatusDomainRecord {
|
|
6
|
+
assignee?: UserNotificationStatusAssignee;
|
|
7
|
+
published?: UserNotificationStatusPublished;
|
|
8
|
+
comment?: UserNotificationStatusComment;
|
|
9
|
+
}
|
|
10
|
+
export declare const isUserNotificationStatusDomainRecord: (input: unknown) => input is UserNotificationStatusDomainRecord;
|
|
11
|
+
export declare const assertUserNotificationStatusDomainRecord: (input: unknown) => UserNotificationStatusDomainRecord;
|
|
12
|
+
export declare const randomUserNotificationStatusDomainRecord: () => UserNotificationStatusDomainRecord;
|
|
13
|
+
export declare const assertGuardUserNotificationStatusDomainRecord: __AssertionGuard<UserNotificationStatusDomainRecord>;
|
|
14
|
+
export declare const stringifyUserNotificationStatusDomainRecord: (input: UserNotificationStatusDomainRecord) => string;
|
|
15
|
+
export declare const assertStringifyUserNotificationStatusDomainRecord: (input: unknown) => string;
|
|
16
|
+
export interface UserNotificationStatusAssignee {
|
|
17
|
+
/**
|
|
18
|
+
* Array of user ID:s that was assigned to the assed last time it was
|
|
19
|
+
* considered for notifications.
|
|
20
|
+
*/
|
|
21
|
+
value?: string[];
|
|
22
|
+
}
|
|
23
|
+
export declare const isUserNotificationStatusAssignee: (input: unknown) => input is UserNotificationStatusAssignee;
|
|
24
|
+
export declare const assertUserNotificationStatusAssignee: (input: unknown) => UserNotificationStatusAssignee;
|
|
25
|
+
export declare const randomUserNotificationStatusAssignee: () => UserNotificationStatusAssignee;
|
|
26
|
+
export declare const assertGuardUserNotificationStatusAssignee: __AssertionGuard<UserNotificationStatusAssignee>;
|
|
27
|
+
export declare const stringifyUserNotificationStatusAssignee: (input: UserNotificationStatusAssignee) => string;
|
|
28
|
+
export declare const assertStringifyUserNotificationStatusAssignee: (input: unknown) => string;
|
|
29
|
+
export interface UserNotificationStatusComment {
|
|
30
|
+
/**
|
|
31
|
+
* When array of user ID:s: Indicates which users have been considered for
|
|
32
|
+
* notifications about this comment. When `true`: Indicates that we have
|
|
33
|
+
* considered this comment for notifications, but we don't know which users
|
|
34
|
+
* have been notified.
|
|
35
|
+
*/
|
|
36
|
+
value?: string[] | true;
|
|
37
|
+
}
|
|
38
|
+
export declare const isUserNotificationStatusComment: (input: unknown) => input is UserNotificationStatusComment;
|
|
39
|
+
export declare const assertUserNotificationStatusComment: (input: unknown) => UserNotificationStatusComment;
|
|
40
|
+
export declare const randomUserNotificationStatusComment: () => UserNotificationStatusComment;
|
|
41
|
+
export declare const assertGuardUserNotificationStatusComment: __AssertionGuard<UserNotificationStatusComment>;
|
|
42
|
+
export declare const stringifyUserNotificationStatusComment: (input: UserNotificationStatusComment) => string;
|
|
43
|
+
export declare const assertStringifyUserNotificationStatusComment: (input: unknown) => string;
|
|
44
|
+
export interface UserNotificationStatusPublished {
|
|
45
|
+
/**
|
|
46
|
+
* If `true`, this published asset has been considered for notifications.
|
|
47
|
+
*/
|
|
48
|
+
value?: true;
|
|
49
|
+
}
|
|
50
|
+
export declare const isUserNotificationStatusPublished: (input: unknown) => input is UserNotificationStatusPublished;
|
|
51
|
+
export declare const assertUserNotificationStatusPublished: (input: unknown) => UserNotificationStatusPublished;
|
|
52
|
+
export declare const randomUserNotificationStatusPublished: () => UserNotificationStatusPublished;
|
|
53
|
+
export declare const assertGuardUserNotificationStatusPublished: __AssertionGuard<UserNotificationStatusPublished>;
|
|
54
|
+
export declare const stringifyUserNotificationStatusPublished: (input: UserNotificationStatusPublished) => string;
|
|
55
|
+
export declare const assertStringifyUserNotificationStatusPublished: (input: unknown) => string;
|