@nxtedition/types 23.0.11 → 23.0.13
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/file.d.ts +1 -1
- package/dist/common/file.js +32 -32
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/settings.d.ts +34 -6
- package/dist/common/settings.js +1399 -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 +5729 -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 +1401 -534
- 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 +1438 -35
- package/package.json +1 -1
package/dist/domains/user.d.ts
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
1
|
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
2
|
export interface UserDomainRecords {
|
|
3
|
-
":user":
|
|
3
|
+
":user": UserDomainRecord;
|
|
4
|
+
":user.latestSeenNotification": UserDomainLatestSeenNotificationRecord;
|
|
5
|
+
":user.receivedNotifications?": UserDomainReceivedNotificationsProvidedRecord;
|
|
6
|
+
":user.unseenNotifications?": UserDomainUnseenNotificationsRecord;
|
|
4
7
|
}
|
|
5
|
-
export interface
|
|
8
|
+
export interface UserDomainRecord {
|
|
6
9
|
username?: string;
|
|
7
10
|
roles?: string[];
|
|
8
11
|
}
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
12
|
+
export declare const isUserDomainRecord: (input: unknown) => input is UserDomainRecord;
|
|
13
|
+
export declare const assertUserDomainRecord: (input: unknown) => UserDomainRecord;
|
|
14
|
+
export declare const randomUserDomainRecord: () => UserDomainRecord;
|
|
15
|
+
export declare const assertGuardUserDomainRecord: __AssertionGuard<UserDomainRecord>;
|
|
16
|
+
export declare const stringifyUserDomainRecord: (input: UserDomainRecord) => string;
|
|
17
|
+
export declare const assertStringifyUserDomainRecord: (input: unknown) => string;
|
|
18
|
+
export interface UserDomainLatestSeenNotificationRecord {
|
|
19
|
+
value?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const isUserDomainLatestSeenNotificationRecord: (input: unknown) => input is UserDomainLatestSeenNotificationRecord;
|
|
22
|
+
export declare const assertUserDomainLatestSeenNotificationRecord: (input: unknown) => UserDomainLatestSeenNotificationRecord;
|
|
23
|
+
export declare const randomUserDomainLatestSeenNotificationRecord: () => UserDomainLatestSeenNotificationRecord;
|
|
24
|
+
export declare const assertGuardUserDomainLatestSeenNotificationRecord: __AssertionGuard<UserDomainLatestSeenNotificationRecord>;
|
|
25
|
+
export declare const stringifyUserDomainLatestSeenNotificationRecord: (input: UserDomainLatestSeenNotificationRecord) => string;
|
|
26
|
+
export declare const assertStringifyUserDomainLatestSeenNotificationRecord: (input: unknown) => string;
|
|
27
|
+
export interface UserDomainReceivedNotificationsProvidedRecord {
|
|
28
|
+
/**
|
|
29
|
+
* IDs of notifications the user has received.
|
|
30
|
+
*/
|
|
31
|
+
value?: string[];
|
|
32
|
+
}
|
|
33
|
+
export declare const isUserDomainReceivedNotificationsProvidedRecord: (input: unknown) => input is UserDomainReceivedNotificationsProvidedRecord;
|
|
34
|
+
export declare const assertUserDomainReceivedNotificationsProvidedRecord: (input: unknown) => UserDomainReceivedNotificationsProvidedRecord;
|
|
35
|
+
export declare const randomUserDomainReceivedNotificationsProvidedRecord: () => UserDomainReceivedNotificationsProvidedRecord;
|
|
36
|
+
export declare const assertGuardUserDomainReceivedNotificationsProvidedRecord: __AssertionGuard<UserDomainReceivedNotificationsProvidedRecord>;
|
|
37
|
+
export declare const stringifyUserDomainReceivedNotificationsProvidedRecord: (input: UserDomainReceivedNotificationsProvidedRecord) => string;
|
|
38
|
+
export declare const assertStringifyUserDomainReceivedNotificationsProvidedRecord: (input: unknown) => string;
|
|
39
|
+
export interface UserDomainUnseenNotificationsRecord {
|
|
40
|
+
hasUnseen?: boolean;
|
|
41
|
+
latestReceived?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const isUserDomainUnseenNotificationsRecord: (input: unknown) => input is UserDomainUnseenNotificationsRecord;
|
|
44
|
+
export declare const assertUserDomainUnseenNotificationsRecord: (input: unknown) => UserDomainUnseenNotificationsRecord;
|
|
45
|
+
export declare const randomUserDomainUnseenNotificationsRecord: () => UserDomainUnseenNotificationsRecord;
|
|
46
|
+
export declare const assertGuardUserDomainUnseenNotificationsRecord: __AssertionGuard<UserDomainUnseenNotificationsRecord>;
|
|
47
|
+
export declare const stringifyUserDomainUnseenNotificationsRecord: (input: UserDomainUnseenNotificationsRecord) => string;
|
|
48
|
+
export declare const assertStringifyUserDomainUnseenNotificationsRecord: (input: unknown) => string;
|
package/dist/domains/user.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
|
-
export const
|
|
2
|
+
export const isUserDomainRecord = input => {
|
|
3
3
|
const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
|
|
4
4
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5
5
|
};
|
|
6
|
-
export const
|
|
6
|
+
export const assertUserDomainRecord = (input, errorFactory) => {
|
|
7
7
|
const __is = input => {
|
|
8
8
|
const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
|
|
9
9
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
@@ -30,17 +30,17 @@ export const assertUserRecord = (input, errorFactory) => {
|
|
|
30
30
|
}, errorFactory));
|
|
31
31
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
32
32
|
path: _path + "",
|
|
33
|
-
expected: "
|
|
33
|
+
expected: "UserDomainRecord",
|
|
34
34
|
value: input
|
|
35
35
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
36
36
|
path: _path + "",
|
|
37
|
-
expected: "
|
|
37
|
+
expected: "UserDomainRecord",
|
|
38
38
|
value: input
|
|
39
39
|
}, errorFactory);
|
|
40
40
|
})(input, "$input", true);
|
|
41
41
|
return input;
|
|
42
42
|
};
|
|
43
|
-
export const
|
|
43
|
+
export const randomUserDomainRecord = generator => {
|
|
44
44
|
const $generator = __typia.createRandom.generator;
|
|
45
45
|
const $pick = __typia.createRandom.pick;
|
|
46
46
|
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
@@ -55,7 +55,7 @@ export const randomUserRecord = generator => {
|
|
|
55
55
|
});
|
|
56
56
|
return $ro0();
|
|
57
57
|
};
|
|
58
|
-
export const
|
|
58
|
+
export const assertGuardUserDomainRecord = (input, errorFactory) => {
|
|
59
59
|
const __is = input => {
|
|
60
60
|
const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
|
|
61
61
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
@@ -82,22 +82,22 @@ export const assertGuardUserRecord = (input, errorFactory) => {
|
|
|
82
82
|
}, errorFactory));
|
|
83
83
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
84
84
|
path: _path + "",
|
|
85
|
-
expected: "
|
|
85
|
+
expected: "UserDomainRecord",
|
|
86
86
|
value: input
|
|
87
87
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
88
88
|
path: _path + "",
|
|
89
|
-
expected: "
|
|
89
|
+
expected: "UserDomainRecord",
|
|
90
90
|
value: input
|
|
91
91
|
}, errorFactory);
|
|
92
92
|
})(input, "$input", true);
|
|
93
93
|
};
|
|
94
|
-
export const
|
|
94
|
+
export const stringifyUserDomainRecord = input => {
|
|
95
95
|
const $string = __typia.json.createStringify.string;
|
|
96
96
|
const $tail = __typia.json.createStringify.tail;
|
|
97
97
|
const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
98
98
|
return $so0(input);
|
|
99
99
|
};
|
|
100
|
-
export const
|
|
100
|
+
export const assertStringifyUserDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
101
101
|
const __is = input => {
|
|
102
102
|
const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
|
|
103
103
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
@@ -124,11 +124,11 @@ export const assertStringifyUserRecord = (input, errorFactory) => { const assert
|
|
|
124
124
|
}, errorFactory));
|
|
125
125
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
126
126
|
path: _path + "",
|
|
127
|
-
expected: "
|
|
127
|
+
expected: "UserDomainRecord",
|
|
128
128
|
value: input
|
|
129
129
|
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
130
130
|
path: _path + "",
|
|
131
|
-
expected: "
|
|
131
|
+
expected: "UserDomainRecord",
|
|
132
132
|
value: input
|
|
133
133
|
}, errorFactory);
|
|
134
134
|
})(input, "$input", true);
|
|
@@ -139,3 +139,343 @@ export const assertStringifyUserRecord = (input, errorFactory) => { const assert
|
|
|
139
139
|
const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
140
140
|
return $so0(input);
|
|
141
141
|
}; return stringify(assert(input, errorFactory)); };
|
|
142
|
+
export const isUserDomainLatestSeenNotificationRecord = input => {
|
|
143
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
144
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
145
|
+
};
|
|
146
|
+
export const assertUserDomainLatestSeenNotificationRecord = (input, errorFactory) => {
|
|
147
|
+
const __is = input => {
|
|
148
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
149
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
150
|
+
};
|
|
151
|
+
if (false === __is(input))
|
|
152
|
+
((input, _path, _exceptionable = true) => {
|
|
153
|
+
const $guard = __typia.createAssert.guard;
|
|
154
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
155
|
+
path: _path + ".value",
|
|
156
|
+
expected: "(string | undefined)",
|
|
157
|
+
value: input.value
|
|
158
|
+
}, errorFactory);
|
|
159
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
160
|
+
path: _path + "",
|
|
161
|
+
expected: "UserDomainLatestSeenNotificationRecord",
|
|
162
|
+
value: input
|
|
163
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
164
|
+
path: _path + "",
|
|
165
|
+
expected: "UserDomainLatestSeenNotificationRecord",
|
|
166
|
+
value: input
|
|
167
|
+
}, errorFactory);
|
|
168
|
+
})(input, "$input", true);
|
|
169
|
+
return input;
|
|
170
|
+
};
|
|
171
|
+
export const randomUserDomainLatestSeenNotificationRecord = generator => {
|
|
172
|
+
const $generator = __typia.createRandom.generator;
|
|
173
|
+
const $pick = __typia.createRandom.pick;
|
|
174
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
175
|
+
value: $pick([
|
|
176
|
+
() => undefined,
|
|
177
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
178
|
+
])()
|
|
179
|
+
});
|
|
180
|
+
return $ro0();
|
|
181
|
+
};
|
|
182
|
+
export const assertGuardUserDomainLatestSeenNotificationRecord = (input, errorFactory) => {
|
|
183
|
+
const __is = input => {
|
|
184
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
185
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
186
|
+
};
|
|
187
|
+
if (false === __is(input))
|
|
188
|
+
((input, _path, _exceptionable = true) => {
|
|
189
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
190
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
191
|
+
path: _path + ".value",
|
|
192
|
+
expected: "(string | undefined)",
|
|
193
|
+
value: input.value
|
|
194
|
+
}, errorFactory);
|
|
195
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
196
|
+
path: _path + "",
|
|
197
|
+
expected: "UserDomainLatestSeenNotificationRecord",
|
|
198
|
+
value: input
|
|
199
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
200
|
+
path: _path + "",
|
|
201
|
+
expected: "UserDomainLatestSeenNotificationRecord",
|
|
202
|
+
value: input
|
|
203
|
+
}, errorFactory);
|
|
204
|
+
})(input, "$input", true);
|
|
205
|
+
};
|
|
206
|
+
export const stringifyUserDomainLatestSeenNotificationRecord = input => {
|
|
207
|
+
const $string = __typia.json.createStringify.string;
|
|
208
|
+
const $tail = __typia.json.createStringify.tail;
|
|
209
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
|
|
210
|
+
return $so0(input);
|
|
211
|
+
};
|
|
212
|
+
export const assertStringifyUserDomainLatestSeenNotificationRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
213
|
+
const __is = input => {
|
|
214
|
+
const $io0 = input => undefined === input.value || "string" === typeof input.value;
|
|
215
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
216
|
+
};
|
|
217
|
+
if (false === __is(input))
|
|
218
|
+
((input, _path, _exceptionable = true) => {
|
|
219
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
220
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
|
|
221
|
+
path: _path + ".value",
|
|
222
|
+
expected: "(string | undefined)",
|
|
223
|
+
value: input.value
|
|
224
|
+
}, errorFactory);
|
|
225
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
226
|
+
path: _path + "",
|
|
227
|
+
expected: "UserDomainLatestSeenNotificationRecord",
|
|
228
|
+
value: input
|
|
229
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
230
|
+
path: _path + "",
|
|
231
|
+
expected: "UserDomainLatestSeenNotificationRecord",
|
|
232
|
+
value: input
|
|
233
|
+
}, errorFactory);
|
|
234
|
+
})(input, "$input", true);
|
|
235
|
+
return input;
|
|
236
|
+
}; const stringify = input => {
|
|
237
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
238
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
239
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
|
|
240
|
+
return $so0(input);
|
|
241
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
242
|
+
export const isUserDomainReceivedNotificationsProvidedRecord = input => {
|
|
243
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
244
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
245
|
+
};
|
|
246
|
+
export const assertUserDomainReceivedNotificationsProvidedRecord = (input, errorFactory) => {
|
|
247
|
+
const __is = input => {
|
|
248
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
249
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
250
|
+
};
|
|
251
|
+
if (false === __is(input))
|
|
252
|
+
((input, _path, _exceptionable = true) => {
|
|
253
|
+
const $guard = __typia.createAssert.guard;
|
|
254
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
255
|
+
path: _path + ".value",
|
|
256
|
+
expected: "(Array<string> | undefined)",
|
|
257
|
+
value: input.value
|
|
258
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
259
|
+
path: _path + ".value[" + _index1 + "]",
|
|
260
|
+
expected: "string",
|
|
261
|
+
value: elem
|
|
262
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
263
|
+
path: _path + ".value",
|
|
264
|
+
expected: "(Array<string> | undefined)",
|
|
265
|
+
value: input.value
|
|
266
|
+
}, errorFactory);
|
|
267
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
268
|
+
path: _path + "",
|
|
269
|
+
expected: "UserDomainReceivedNotificationsProvidedRecord",
|
|
270
|
+
value: input
|
|
271
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
272
|
+
path: _path + "",
|
|
273
|
+
expected: "UserDomainReceivedNotificationsProvidedRecord",
|
|
274
|
+
value: input
|
|
275
|
+
}, errorFactory);
|
|
276
|
+
})(input, "$input", true);
|
|
277
|
+
return input;
|
|
278
|
+
};
|
|
279
|
+
export const randomUserDomainReceivedNotificationsProvidedRecord = generator => {
|
|
280
|
+
const $generator = __typia.createRandom.generator;
|
|
281
|
+
const $pick = __typia.createRandom.pick;
|
|
282
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
283
|
+
value: $pick([
|
|
284
|
+
() => undefined,
|
|
285
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
286
|
+
])()
|
|
287
|
+
});
|
|
288
|
+
return $ro0();
|
|
289
|
+
};
|
|
290
|
+
export const assertGuardUserDomainReceivedNotificationsProvidedRecord = (input, errorFactory) => {
|
|
291
|
+
const __is = input => {
|
|
292
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
293
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
294
|
+
};
|
|
295
|
+
if (false === __is(input))
|
|
296
|
+
((input, _path, _exceptionable = true) => {
|
|
297
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
298
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
299
|
+
path: _path + ".value",
|
|
300
|
+
expected: "(Array<string> | undefined)",
|
|
301
|
+
value: input.value
|
|
302
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
303
|
+
path: _path + ".value[" + _index1 + "]",
|
|
304
|
+
expected: "string",
|
|
305
|
+
value: elem
|
|
306
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
307
|
+
path: _path + ".value",
|
|
308
|
+
expected: "(Array<string> | undefined)",
|
|
309
|
+
value: input.value
|
|
310
|
+
}, errorFactory);
|
|
311
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
312
|
+
path: _path + "",
|
|
313
|
+
expected: "UserDomainReceivedNotificationsProvidedRecord",
|
|
314
|
+
value: input
|
|
315
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
316
|
+
path: _path + "",
|
|
317
|
+
expected: "UserDomainReceivedNotificationsProvidedRecord",
|
|
318
|
+
value: input
|
|
319
|
+
}, errorFactory);
|
|
320
|
+
})(input, "$input", true);
|
|
321
|
+
};
|
|
322
|
+
export const stringifyUserDomainReceivedNotificationsProvidedRecord = input => {
|
|
323
|
+
const $string = __typia.json.createStringify.string;
|
|
324
|
+
const $tail = __typia.json.createStringify.tail;
|
|
325
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
326
|
+
return $so0(input);
|
|
327
|
+
};
|
|
328
|
+
export const assertStringifyUserDomainReceivedNotificationsProvidedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
329
|
+
const __is = input => {
|
|
330
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
331
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
332
|
+
};
|
|
333
|
+
if (false === __is(input))
|
|
334
|
+
((input, _path, _exceptionable = true) => {
|
|
335
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
336
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
337
|
+
path: _path + ".value",
|
|
338
|
+
expected: "(Array<string> | undefined)",
|
|
339
|
+
value: input.value
|
|
340
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
341
|
+
path: _path + ".value[" + _index1 + "]",
|
|
342
|
+
expected: "string",
|
|
343
|
+
value: elem
|
|
344
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
345
|
+
path: _path + ".value",
|
|
346
|
+
expected: "(Array<string> | undefined)",
|
|
347
|
+
value: input.value
|
|
348
|
+
}, errorFactory);
|
|
349
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
350
|
+
path: _path + "",
|
|
351
|
+
expected: "UserDomainReceivedNotificationsProvidedRecord",
|
|
352
|
+
value: input
|
|
353
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
354
|
+
path: _path + "",
|
|
355
|
+
expected: "UserDomainReceivedNotificationsProvidedRecord",
|
|
356
|
+
value: input
|
|
357
|
+
}, errorFactory);
|
|
358
|
+
})(input, "$input", true);
|
|
359
|
+
return input;
|
|
360
|
+
}; const stringify = input => {
|
|
361
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
362
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
363
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
364
|
+
return $so0(input);
|
|
365
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
366
|
+
export const isUserDomainUnseenNotificationsRecord = input => {
|
|
367
|
+
const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
|
|
368
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
369
|
+
};
|
|
370
|
+
export const assertUserDomainUnseenNotificationsRecord = (input, errorFactory) => {
|
|
371
|
+
const __is = input => {
|
|
372
|
+
const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
|
|
373
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
374
|
+
};
|
|
375
|
+
if (false === __is(input))
|
|
376
|
+
((input, _path, _exceptionable = true) => {
|
|
377
|
+
const $guard = __typia.createAssert.guard;
|
|
378
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen || $guard(_exceptionable, {
|
|
379
|
+
path: _path + ".hasUnseen",
|
|
380
|
+
expected: "(boolean | undefined)",
|
|
381
|
+
value: input.hasUnseen
|
|
382
|
+
}, errorFactory)) && (undefined === input.latestReceived || "string" === typeof input.latestReceived || $guard(_exceptionable, {
|
|
383
|
+
path: _path + ".latestReceived",
|
|
384
|
+
expected: "(string | undefined)",
|
|
385
|
+
value: input.latestReceived
|
|
386
|
+
}, errorFactory));
|
|
387
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
388
|
+
path: _path + "",
|
|
389
|
+
expected: "UserDomainUnseenNotificationsRecord",
|
|
390
|
+
value: input
|
|
391
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
392
|
+
path: _path + "",
|
|
393
|
+
expected: "UserDomainUnseenNotificationsRecord",
|
|
394
|
+
value: input
|
|
395
|
+
}, errorFactory);
|
|
396
|
+
})(input, "$input", true);
|
|
397
|
+
return input;
|
|
398
|
+
};
|
|
399
|
+
export const randomUserDomainUnseenNotificationsRecord = generator => {
|
|
400
|
+
const $generator = __typia.createRandom.generator;
|
|
401
|
+
const $pick = __typia.createRandom.pick;
|
|
402
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
403
|
+
hasUnseen: $pick([
|
|
404
|
+
() => undefined,
|
|
405
|
+
() => (generator?.boolean ?? $generator.boolean)()
|
|
406
|
+
])(),
|
|
407
|
+
latestReceived: $pick([
|
|
408
|
+
() => undefined,
|
|
409
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
410
|
+
])()
|
|
411
|
+
});
|
|
412
|
+
return $ro0();
|
|
413
|
+
};
|
|
414
|
+
export const assertGuardUserDomainUnseenNotificationsRecord = (input, errorFactory) => {
|
|
415
|
+
const __is = input => {
|
|
416
|
+
const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
|
|
417
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
418
|
+
};
|
|
419
|
+
if (false === __is(input))
|
|
420
|
+
((input, _path, _exceptionable = true) => {
|
|
421
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
422
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen || $guard(_exceptionable, {
|
|
423
|
+
path: _path + ".hasUnseen",
|
|
424
|
+
expected: "(boolean | undefined)",
|
|
425
|
+
value: input.hasUnseen
|
|
426
|
+
}, errorFactory)) && (undefined === input.latestReceived || "string" === typeof input.latestReceived || $guard(_exceptionable, {
|
|
427
|
+
path: _path + ".latestReceived",
|
|
428
|
+
expected: "(string | undefined)",
|
|
429
|
+
value: input.latestReceived
|
|
430
|
+
}, errorFactory));
|
|
431
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
432
|
+
path: _path + "",
|
|
433
|
+
expected: "UserDomainUnseenNotificationsRecord",
|
|
434
|
+
value: input
|
|
435
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
436
|
+
path: _path + "",
|
|
437
|
+
expected: "UserDomainUnseenNotificationsRecord",
|
|
438
|
+
value: input
|
|
439
|
+
}, errorFactory);
|
|
440
|
+
})(input, "$input", true);
|
|
441
|
+
};
|
|
442
|
+
export const stringifyUserDomainUnseenNotificationsRecord = input => {
|
|
443
|
+
const $string = __typia.json.createStringify.string;
|
|
444
|
+
const $tail = __typia.json.createStringify.tail;
|
|
445
|
+
const $so0 = input => `{${$tail(`${undefined === input.hasUnseen ? "" : `"hasUnseen":${undefined !== input.hasUnseen ? input.hasUnseen : undefined},`}${undefined === input.latestReceived ? "" : `"latestReceived":${undefined !== input.latestReceived ? $string(input.latestReceived) : undefined}`}`)}}`;
|
|
446
|
+
return $so0(input);
|
|
447
|
+
};
|
|
448
|
+
export const assertStringifyUserDomainUnseenNotificationsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
449
|
+
const __is = input => {
|
|
450
|
+
const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
|
|
451
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
452
|
+
};
|
|
453
|
+
if (false === __is(input))
|
|
454
|
+
((input, _path, _exceptionable = true) => {
|
|
455
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
456
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen || $guard(_exceptionable, {
|
|
457
|
+
path: _path + ".hasUnseen",
|
|
458
|
+
expected: "(boolean | undefined)",
|
|
459
|
+
value: input.hasUnseen
|
|
460
|
+
}, errorFactory)) && (undefined === input.latestReceived || "string" === typeof input.latestReceived || $guard(_exceptionable, {
|
|
461
|
+
path: _path + ".latestReceived",
|
|
462
|
+
expected: "(string | undefined)",
|
|
463
|
+
value: input.latestReceived
|
|
464
|
+
}, errorFactory));
|
|
465
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
466
|
+
path: _path + "",
|
|
467
|
+
expected: "UserDomainUnseenNotificationsRecord",
|
|
468
|
+
value: input
|
|
469
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
470
|
+
path: _path + "",
|
|
471
|
+
expected: "UserDomainUnseenNotificationsRecord",
|
|
472
|
+
value: input
|
|
473
|
+
}, errorFactory);
|
|
474
|
+
})(input, "$input", true);
|
|
475
|
+
return input;
|
|
476
|
+
}; const stringify = input => {
|
|
477
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
478
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
479
|
+
const $so0 = input => `{${$tail(`${undefined === input.hasUnseen ? "" : `"hasUnseen":${undefined !== input.hasUnseen ? input.hasUnseen : undefined},`}${undefined === input.latestReceived ? "" : `"latestReceived":${undefined !== input.latestReceived ? $string(input.latestReceived) : undefined}`}`)}}`;
|
|
480
|
+
return $so0(input);
|
|
481
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,29 @@ export type Records = {
|
|
|
43
43
|
};
|
|
44
44
|
pick: string[];
|
|
45
45
|
};
|
|
46
|
-
} & AssetRecords
|
|
46
|
+
} & AssetRecords & {
|
|
47
|
+
"asset-daemon": {
|
|
48
|
+
"user-notify"?: boolean;
|
|
49
|
+
};
|
|
50
|
+
"asset-daemon:user-notify.state": {
|
|
51
|
+
since?: string | 0 | null;
|
|
52
|
+
version?: number;
|
|
53
|
+
error?: object | null;
|
|
54
|
+
status?: string | null;
|
|
55
|
+
};
|
|
56
|
+
"deepstream-replicator.stats?": {
|
|
57
|
+
replicators?: Record<string, {
|
|
58
|
+
to: {
|
|
59
|
+
synced?: boolean;
|
|
60
|
+
since?: string | 0 | null;
|
|
61
|
+
};
|
|
62
|
+
from: {
|
|
63
|
+
since?: string | 0 | null;
|
|
64
|
+
};
|
|
65
|
+
}>;
|
|
66
|
+
synced?: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
47
69
|
interface DomainRows {
|
|
48
70
|
rows: string[];
|
|
49
71
|
}
|