@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.
Files changed (43) hide show
  1. package/dist/app.d.ts +61 -1
  2. package/dist/app.js +218 -10
  3. package/dist/common/index.d.ts +1 -0
  4. package/dist/common/index.js +1 -0
  5. package/dist/common/settings.d.ts +37 -6
  6. package/dist/common/settings.js +1474 -535
  7. package/dist/common/user-notification.d.ts +8 -0
  8. package/dist/common/user-notification.js +85 -0
  9. package/dist/domains/asset.d.ts +23 -0
  10. package/dist/domains/asset.js +248 -0
  11. package/dist/domains/comment-reaction.d.ts +15 -0
  12. package/dist/domains/comment-reaction.js +115 -0
  13. package/dist/domains/comment-read-mark.d.ts +15 -0
  14. package/dist/domains/comment-read-mark.js +115 -0
  15. package/dist/domains/comment.d.ts +153 -0
  16. package/dist/domains/comment.js +5730 -0
  17. package/dist/domains/connection.d.ts +1 -1
  18. package/dist/domains/connection.js +118 -118
  19. package/dist/domains/deepstream.d.ts +14 -0
  20. package/dist/domains/deepstream.js +139 -0
  21. package/dist/domains/edit.d.ts +17 -0
  22. package/dist/domains/edit.js +224 -0
  23. package/dist/domains/index.d.ts +17 -1
  24. package/dist/domains/index.js +8 -0
  25. package/dist/domains/planning.d.ts +1 -1
  26. package/dist/domains/planning.js +29 -23
  27. package/dist/domains/publish.d.ts +1 -0
  28. package/dist/domains/publish.js +142 -46
  29. package/dist/domains/published.d.ts +2 -1
  30. package/dist/domains/published.js +50 -10
  31. package/dist/domains/settings.js +1480 -536
  32. package/dist/domains/subtitle-style.d.ts +13 -0
  33. package/dist/domains/subtitle-style.js +123 -0
  34. package/dist/domains/user-notification-status.d.ts +55 -0
  35. package/dist/domains/user-notification-status.js +715 -0
  36. package/dist/domains/user-notification.d.ts +118 -0
  37. package/dist/domains/user-notification.js +3040 -0
  38. package/dist/domains/user.d.ts +42 -8
  39. package/dist/domains/user.js +352 -12
  40. package/dist/index.d.ts +23 -1
  41. package/dist/index.js +30 -13
  42. package/dist/schema.json +1453 -32
  43. package/package.json +1 -1
@@ -5,10 +5,11 @@ export interface PublishedDomainRecords {
5
5
  export interface PublishedRecord {
6
6
  type: string;
7
7
  parent: string;
8
- asset: string;
8
+ asset: string[];
9
9
  time: number;
10
10
  connection: string;
11
11
  user?: string;
12
+ error?: boolean;
12
13
  }
13
14
  export declare const isPublishedRecord: (input: unknown) => input is PublishedRecord;
14
15
  export declare const assertPublishedRecord: (input: unknown) => PublishedRecord;
@@ -1,11 +1,11 @@
1
1
  import __typia from "typia";
2
2
  export const isPublishedRecord = input => {
3
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
3
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
4
4
  return "object" === typeof input && null !== input && $io0(input);
5
5
  };
6
6
  export const assertPublishedRecord = (input, errorFactory) => {
7
7
  const __is = input => {
8
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
8
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
9
9
  return "object" === typeof input && null !== input && $io0(input);
10
10
  };
11
11
  if (false === __is(input))
@@ -19,9 +19,17 @@ export const assertPublishedRecord = (input, errorFactory) => {
19
19
  path: _path + ".parent",
20
20
  expected: "string",
21
21
  value: input.parent
22
- }, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
22
+ }, errorFactory)) && ((Array.isArray(input.asset) || $guard(_exceptionable, {
23
23
  path: _path + ".asset",
24
+ expected: "Array<string>",
25
+ value: input.asset
26
+ }, errorFactory)) && input.asset.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
27
+ path: _path + ".asset[" + _index1 + "]",
24
28
  expected: "string",
29
+ value: elem
30
+ }, errorFactory)) || $guard(_exceptionable, {
31
+ path: _path + ".asset",
32
+ expected: "Array<string>",
25
33
  value: input.asset
26
34
  }, errorFactory)) && ("number" === typeof input.time || $guard(_exceptionable, {
27
35
  path: _path + ".time",
@@ -35,6 +43,10 @@ export const assertPublishedRecord = (input, errorFactory) => {
35
43
  path: _path + ".user",
36
44
  expected: "(string | undefined)",
37
45
  value: input.user
46
+ }, errorFactory)) && (undefined === input.error || "boolean" === typeof input.error || $guard(_exceptionable, {
47
+ path: _path + ".error",
48
+ expected: "(boolean | undefined)",
49
+ value: input.error
38
50
  }, errorFactory));
39
51
  return ("object" === typeof input && null !== input || $guard(true, {
40
52
  path: _path + "",
@@ -54,19 +66,23 @@ export const randomPublishedRecord = generator => {
54
66
  const $ro0 = (_recursive = false, _depth = 0) => ({
55
67
  type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
56
68
  parent: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
57
- asset: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
69
+ asset: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
58
70
  time: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
59
71
  connection: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
60
72
  user: $pick([
61
73
  () => undefined,
62
74
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
75
+ ])(),
76
+ error: $pick([
77
+ () => undefined,
78
+ () => (generator?.boolean ?? $generator.boolean)()
63
79
  ])()
64
80
  });
65
81
  return $ro0();
66
82
  };
67
83
  export const assertGuardPublishedRecord = (input, errorFactory) => {
68
84
  const __is = input => {
69
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
85
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
70
86
  return "object" === typeof input && null !== input && $io0(input);
71
87
  };
72
88
  if (false === __is(input))
@@ -80,9 +96,17 @@ export const assertGuardPublishedRecord = (input, errorFactory) => {
80
96
  path: _path + ".parent",
81
97
  expected: "string",
82
98
  value: input.parent
83
- }, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
99
+ }, errorFactory)) && ((Array.isArray(input.asset) || $guard(_exceptionable, {
84
100
  path: _path + ".asset",
101
+ expected: "Array<string>",
102
+ value: input.asset
103
+ }, errorFactory)) && input.asset.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
104
+ path: _path + ".asset[" + _index1 + "]",
85
105
  expected: "string",
106
+ value: elem
107
+ }, errorFactory)) || $guard(_exceptionable, {
108
+ path: _path + ".asset",
109
+ expected: "Array<string>",
86
110
  value: input.asset
87
111
  }, errorFactory)) && ("number" === typeof input.time || $guard(_exceptionable, {
88
112
  path: _path + ".time",
@@ -96,6 +120,10 @@ export const assertGuardPublishedRecord = (input, errorFactory) => {
96
120
  path: _path + ".user",
97
121
  expected: "(string | undefined)",
98
122
  value: input.user
123
+ }, errorFactory)) && (undefined === input.error || "boolean" === typeof input.error || $guard(_exceptionable, {
124
+ path: _path + ".error",
125
+ expected: "(boolean | undefined)",
126
+ value: input.error
99
127
  }, errorFactory));
100
128
  return ("object" === typeof input && null !== input || $guard(true, {
101
129
  path: _path + "",
@@ -110,12 +138,12 @@ export const assertGuardPublishedRecord = (input, errorFactory) => {
110
138
  };
111
139
  export const stringifyPublishedRecord = input => {
112
140
  const $string = __typia.json.createStringify.string;
113
- const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${$string(input.asset)},"time":${input.time},"connection":${$string(input.connection)}}`;
141
+ const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? input.error : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${`[${input.asset.map(elem => $string(elem)).join(",")}]`},"time":${input.time},"connection":${$string(input.connection)}}`;
114
142
  return $so0(input);
115
143
  };
116
144
  export const assertStringifyPublishedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
117
145
  const __is = input => {
118
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && ("number" === typeof input.time && !Number.isNaN(input.time)) && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
146
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && (Array.isArray(input.asset) && input.asset.every(elem => "string" === typeof elem)) && ("number" === typeof input.time && !Number.isNaN(input.time)) && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user) && (undefined === input.error || "boolean" === typeof input.error);
119
147
  return "object" === typeof input && null !== input && $io0(input);
120
148
  };
121
149
  if (false === __is(input))
@@ -129,9 +157,17 @@ export const assertStringifyPublishedRecord = (input, errorFactory) => { const a
129
157
  path: _path + ".parent",
130
158
  expected: "string",
131
159
  value: input.parent
132
- }, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
160
+ }, errorFactory)) && ((Array.isArray(input.asset) || $guard(_exceptionable, {
133
161
  path: _path + ".asset",
162
+ expected: "Array<string>",
163
+ value: input.asset
164
+ }, errorFactory)) && input.asset.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
165
+ path: _path + ".asset[" + _index1 + "]",
134
166
  expected: "string",
167
+ value: elem
168
+ }, errorFactory)) || $guard(_exceptionable, {
169
+ path: _path + ".asset",
170
+ expected: "Array<string>",
135
171
  value: input.asset
136
172
  }, errorFactory)) && ("number" === typeof input.time && !Number.isNaN(input.time) || $guard(_exceptionable, {
137
173
  path: _path + ".time",
@@ -145,6 +181,10 @@ export const assertStringifyPublishedRecord = (input, errorFactory) => { const a
145
181
  path: _path + ".user",
146
182
  expected: "(string | undefined)",
147
183
  value: input.user
184
+ }, errorFactory)) && (undefined === input.error || "boolean" === typeof input.error || $guard(_exceptionable, {
185
+ path: _path + ".error",
186
+ expected: "(boolean | undefined)",
187
+ value: input.error
148
188
  }, errorFactory));
149
189
  return ("object" === typeof input && null !== input || $guard(true, {
150
190
  path: _path + "",
@@ -159,6 +199,6 @@ export const assertStringifyPublishedRecord = (input, errorFactory) => { const a
159
199
  return input;
160
200
  }; const stringify = input => {
161
201
  const $string = __typia.json.createAssertStringify.string;
162
- const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${$string(input.asset)},"time":${input.time},"connection":${$string(input.connection)}}`;
202
+ const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? input.error : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${`[${input.asset.map(elem => $string(elem)).join(",")}]`},"time":${input.time},"connection":${$string(input.connection)}}`;
163
203
  return $so0(input);
164
204
  }; return stringify(assert(input, errorFactory)); };