@nxtedition/types 23.0.2 → 23.0.4

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 (59) hide show
  1. package/dist/asset.d.ts +10 -0
  2. package/dist/asset.js +1 -0
  3. package/dist/common/clone.d.ts +32 -0
  4. package/dist/common/clone.js +602 -0
  5. package/dist/common/date.d.ts +8 -0
  6. package/dist/common/date.js +59 -0
  7. package/dist/common/index.d.ts +8 -0
  8. package/dist/common/index.js +8 -0
  9. package/dist/common/media.d.ts +8 -0
  10. package/dist/common/media.js +83 -0
  11. package/dist/common/nxtpression.d.ts +19 -0
  12. package/dist/common/nxtpression.js +240 -0
  13. package/dist/common/pipeline.d.ts +8 -0
  14. package/dist/common/pipeline.js +88 -0
  15. package/dist/common/promoted-tag.d.ts +13 -0
  16. package/dist/common/promoted-tag.js +147 -0
  17. package/dist/common/render-preset.d.ts +32 -0
  18. package/dist/common/render-preset.js +516 -0
  19. package/dist/common/search.d.ts +69 -0
  20. package/dist/common/search.js +1591 -0
  21. package/dist/common/settings.d.ts +26 -11
  22. package/dist/common/settings.js +812 -333
  23. package/dist/domains/asset.d.ts +172 -49
  24. package/dist/domains/asset.js +1533 -72
  25. package/dist/domains/clone.d.ts +14 -0
  26. package/dist/domains/clone.js +192 -0
  27. package/dist/domains/connection.d.ts +39 -15
  28. package/dist/domains/connection.js +621 -174
  29. package/dist/domains/design.d.ts +24 -0
  30. package/dist/domains/design.js +303 -0
  31. package/dist/domains/file.d.ts +17 -0
  32. package/dist/domains/file.js +233 -0
  33. package/dist/domains/index.d.ts +19 -1
  34. package/dist/domains/index.js +9 -0
  35. package/dist/domains/media.d.ts +42 -2
  36. package/dist/domains/media.js +1070 -24
  37. package/dist/domains/pipeline-preset.d.ts +17 -0
  38. package/dist/domains/pipeline-preset.js +225 -0
  39. package/dist/domains/pipeline.d.ts +29 -0
  40. package/dist/domains/pipeline.js +423 -0
  41. package/dist/domains/published.d.ts +18 -0
  42. package/dist/domains/published.js +164 -0
  43. package/dist/domains/render-preset.d.ts +4 -0
  44. package/dist/domains/render-preset.js +1 -0
  45. package/dist/domains/revs.d.ts +13 -0
  46. package/dist/domains/revs.js +125 -0
  47. package/dist/domains/search.d.ts +3 -0
  48. package/dist/domains/search.js +62 -13
  49. package/dist/domains/settings.js +796 -339
  50. package/dist/domains/storyboard.d.ts +14 -0
  51. package/dist/domains/storyboard.js +125 -0
  52. package/dist/domains/user.d.ts +14 -0
  53. package/dist/domains/user.js +141 -0
  54. package/dist/index.d.ts +88 -5
  55. package/dist/index.js +151 -0
  56. package/dist/rpc.d.ts +8 -13
  57. package/dist/rpc.js +9 -9
  58. package/dist/schema.json +1701 -1565
  59. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ import { CloneRule } from '../common/index.js';
3
+ export interface CloneDomainRecords {
4
+ ":clone": CloneDomainCloneRecord;
5
+ }
6
+ export interface CloneDomainCloneRecord {
7
+ rules: CloneRule[];
8
+ }
9
+ export declare const isCloneDomainCloneRecord: (input: unknown) => input is CloneDomainCloneRecord;
10
+ export declare const assertCloneDomainCloneRecord: (input: unknown) => CloneDomainCloneRecord;
11
+ export declare const randomCloneDomainCloneRecord: () => CloneDomainCloneRecord;
12
+ export declare const assertGuardCloneDomainCloneRecord: __AssertionGuard<CloneDomainCloneRecord>;
13
+ export declare const stringifyCloneDomainCloneRecord: (input: CloneDomainCloneRecord) => string;
14
+ export declare const assertStringifyCloneDomainCloneRecord: (input: unknown) => string;
@@ -0,0 +1,192 @@
1
+ import __typia from "typia";
2
+ export const isCloneDomainCloneRecord = input => {
3
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
4
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
5
+ return "object" === typeof input && null !== input && $io0(input);
6
+ };
7
+ export const assertCloneDomainCloneRecord = (input, errorFactory) => {
8
+ const __is = input => {
9
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
10
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
11
+ return "object" === typeof input && null !== input && $io0(input);
12
+ };
13
+ if (false === __is(input))
14
+ ((input, _path, _exceptionable = true) => {
15
+ const $guard = __typia.createAssert.guard;
16
+ const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rules) || $guard(_exceptionable, {
17
+ path: _path + ".rules",
18
+ expected: "Array<CloneRule>",
19
+ value: input.rules
20
+ }, errorFactory)) && input.rules.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
21
+ path: _path + ".rules[" + _index1 + "]",
22
+ expected: "CloneRule",
23
+ value: elem
24
+ }, errorFactory)) && $ao1(elem, _path + ".rules[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
25
+ path: _path + ".rules[" + _index1 + "]",
26
+ expected: "CloneRule",
27
+ value: elem
28
+ }, errorFactory)) || $guard(_exceptionable, {
29
+ path: _path + ".rules",
30
+ expected: "Array<CloneRule>",
31
+ value: input.rules
32
+ }, errorFactory);
33
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
34
+ path: _path + ".domain",
35
+ expected: "string",
36
+ value: input.domain
37
+ }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
38
+ path: _path + ".path",
39
+ expected: "(null | string | undefined)",
40
+ value: input.path
41
+ }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
42
+ path: _path + ".template",
43
+ expected: "(null | string | undefined)",
44
+ value: input.template
45
+ }, errorFactory));
46
+ return ("object" === typeof input && null !== input || $guard(true, {
47
+ path: _path + "",
48
+ expected: "CloneDomainCloneRecord",
49
+ value: input
50
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
51
+ path: _path + "",
52
+ expected: "CloneDomainCloneRecord",
53
+ value: input
54
+ }, errorFactory);
55
+ })(input, "$input", true);
56
+ return input;
57
+ };
58
+ export const randomCloneDomainCloneRecord = generator => {
59
+ const $generator = __typia.createRandom.generator;
60
+ const $pick = __typia.createRandom.pick;
61
+ const $ro0 = (_recursive = false, _depth = 0) => ({
62
+ rules: (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
63
+ });
64
+ const $ro1 = (_recursive = false, _depth = 0) => ({
65
+ domain: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
66
+ path: $pick([
67
+ () => undefined,
68
+ () => null,
69
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
70
+ ])(),
71
+ template: $pick([
72
+ () => undefined,
73
+ () => null,
74
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
75
+ ])()
76
+ });
77
+ return $ro0();
78
+ };
79
+ export const assertGuardCloneDomainCloneRecord = (input, errorFactory) => {
80
+ const __is = input => {
81
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
82
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
83
+ return "object" === typeof input && null !== input && $io0(input);
84
+ };
85
+ if (false === __is(input))
86
+ ((input, _path, _exceptionable = true) => {
87
+ const $guard = __typia.createAssertGuard.guard;
88
+ const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rules) || $guard(_exceptionable, {
89
+ path: _path + ".rules",
90
+ expected: "Array<CloneRule>",
91
+ value: input.rules
92
+ }, errorFactory)) && input.rules.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
93
+ path: _path + ".rules[" + _index1 + "]",
94
+ expected: "CloneRule",
95
+ value: elem
96
+ }, errorFactory)) && $ao1(elem, _path + ".rules[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
97
+ path: _path + ".rules[" + _index1 + "]",
98
+ expected: "CloneRule",
99
+ value: elem
100
+ }, errorFactory)) || $guard(_exceptionable, {
101
+ path: _path + ".rules",
102
+ expected: "Array<CloneRule>",
103
+ value: input.rules
104
+ }, errorFactory);
105
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
106
+ path: _path + ".domain",
107
+ expected: "string",
108
+ value: input.domain
109
+ }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
110
+ path: _path + ".path",
111
+ expected: "(null | string | undefined)",
112
+ value: input.path
113
+ }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
114
+ path: _path + ".template",
115
+ expected: "(null | string | undefined)",
116
+ value: input.template
117
+ }, errorFactory));
118
+ return ("object" === typeof input && null !== input || $guard(true, {
119
+ path: _path + "",
120
+ expected: "CloneDomainCloneRecord",
121
+ value: input
122
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
123
+ path: _path + "",
124
+ expected: "CloneDomainCloneRecord",
125
+ value: input
126
+ }, errorFactory);
127
+ })(input, "$input", true);
128
+ };
129
+ export const stringifyCloneDomainCloneRecord = input => {
130
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
131
+ const $string = __typia.json.createStringify.string;
132
+ const $so0 = input => `{"rules":${`[${input.rules.map(elem => $so1(elem)).join(",")}]`}}`;
133
+ const $so1 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? $string(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? $string(input.template) : "null" : undefined},`}"domain":${$string(input.domain)}}`;
134
+ return $so0(input);
135
+ };
136
+ export const assertStringifyCloneDomainCloneRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
137
+ const __is = input => {
138
+ const $io0 = input => Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
139
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
140
+ return "object" === typeof input && null !== input && $io0(input);
141
+ };
142
+ if (false === __is(input))
143
+ ((input, _path, _exceptionable = true) => {
144
+ const $guard = __typia.json.createAssertStringify.guard;
145
+ const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rules) || $guard(_exceptionable, {
146
+ path: _path + ".rules",
147
+ expected: "Array<CloneRule>",
148
+ value: input.rules
149
+ }, errorFactory)) && input.rules.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
150
+ path: _path + ".rules[" + _index1 + "]",
151
+ expected: "CloneRule",
152
+ value: elem
153
+ }, errorFactory)) && $ao1(elem, _path + ".rules[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
154
+ path: _path + ".rules[" + _index1 + "]",
155
+ expected: "CloneRule",
156
+ value: elem
157
+ }, errorFactory)) || $guard(_exceptionable, {
158
+ path: _path + ".rules",
159
+ expected: "Array<CloneRule>",
160
+ value: input.rules
161
+ }, errorFactory);
162
+ const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
163
+ path: _path + ".domain",
164
+ expected: "string",
165
+ value: input.domain
166
+ }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
167
+ path: _path + ".path",
168
+ expected: "(null | string | undefined)",
169
+ value: input.path
170
+ }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
171
+ path: _path + ".template",
172
+ expected: "(null | string | undefined)",
173
+ value: input.template
174
+ }, errorFactory));
175
+ return ("object" === typeof input && null !== input || $guard(true, {
176
+ path: _path + "",
177
+ expected: "CloneDomainCloneRecord",
178
+ value: input
179
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
180
+ path: _path + "",
181
+ expected: "CloneDomainCloneRecord",
182
+ value: input
183
+ }, errorFactory);
184
+ })(input, "$input", true);
185
+ return input;
186
+ }; const stringify = input => {
187
+ const $io1 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
188
+ const $string = __typia.json.createAssertStringify.string;
189
+ const $so0 = input => `{"rules":${`[${input.rules.map(elem => $so1(elem)).join(",")}]`}}`;
190
+ const $so1 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? $string(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? $string(input.template) : "null" : undefined},`}"domain":${$string(input.domain)}}`;
191
+ return $so0(input);
192
+ }; return stringify(assert(input, errorFactory)); };
@@ -11,20 +11,17 @@ export declare const randomConnectionRecord: () => ConnectionRecord;
11
11
  export declare const assertGuardConnectionRecord: __AssertionGuard<ConnectionRecord>;
12
12
  export declare const stringifyConnectionRecord: (input: ConnectionRecord) => string;
13
13
  export declare const assertStringifyConnectionRecord: (input: unknown) => string;
14
- export interface ConnectionStatsRecord {
15
- status: string;
16
- substatus: string;
17
- pages?: Array<{
18
- id: unknown;
19
- }>;
14
+ export interface ConnectionRecordCommon {
15
+ type: string;
16
+ notifyOnPublish?: boolean;
20
17
  }
21
- export declare const isConnectionStatsRecord: (input: unknown) => input is ConnectionStatsRecord;
22
- export declare const assertConnectionStatsRecord: (input: unknown) => ConnectionStatsRecord;
23
- export declare const randomConnectionStatsRecord: () => ConnectionStatsRecord;
24
- export declare const assertGuardConnectionStatsRecord: __AssertionGuard<ConnectionStatsRecord>;
25
- export declare const stringifyConnectionStatsRecord: (input: ConnectionStatsRecord) => string;
26
- export declare const assertStringifyConnectionStatsRecord: (input: unknown) => string;
27
- export interface ReutersConnectionRecord {
18
+ export declare const isConnectionRecordCommon: (input: unknown) => input is ConnectionRecordCommon;
19
+ export declare const assertConnectionRecordCommon: (input: unknown) => ConnectionRecordCommon;
20
+ export declare const randomConnectionRecordCommon: () => ConnectionRecordCommon;
21
+ export declare const assertGuardConnectionRecordCommon: __AssertionGuard<ConnectionRecordCommon>;
22
+ export declare const stringifyConnectionRecordCommon: (input: ConnectionRecordCommon) => string;
23
+ export declare const assertStringifyConnectionRecordCommon: (input: unknown) => string;
24
+ export interface ReutersConnectionRecord extends ConnectionRecordCommon {
28
25
  type: "reuters";
29
26
  clientId?: string;
30
27
  clientSecret?: string;
@@ -36,7 +33,7 @@ export declare const randomReutersConnectionRecord: () => ReutersConnectionRecor
36
33
  export declare const assertGuardReutersConnectionRecord: __AssertionGuard<ReutersConnectionRecord>;
37
34
  export declare const stringifyReutersConnectionRecord: (input: ReutersConnectionRecord) => string;
38
35
  export declare const assertStringifyReutersConnectionRecord: (input: unknown) => string;
39
- export interface FacebookConnectionRecord {
36
+ export interface FacebookConnectionRecord extends ConnectionRecordCommon {
40
37
  type: "facebook";
41
38
  grantedScopes?: string[];
42
39
  }
@@ -46,13 +43,27 @@ export declare const randomFacebookConnectionRecord: () => FacebookConnectionRec
46
43
  export declare const assertGuardFacebookConnectionRecord: __AssertionGuard<FacebookConnectionRecord>;
47
44
  export declare const stringifyFacebookConnectionRecord: (input: FacebookConnectionRecord) => string;
48
45
  export declare const assertStringifyFacebookConnectionRecord: (input: unknown) => string;
49
- export interface FilePublishConnectionRecord {
46
+ export interface FilePublishConnectionRecord extends ConnectionRecordCommon {
50
47
  type: "file";
51
48
  protocol: string;
52
49
  host?: string;
53
50
  port?: number;
54
51
  ignoreMissing?: boolean;
55
52
  concurrency?: number;
53
+ stabilityThreshold?: number;
54
+ pollInterval?: number;
55
+ listConcurrency?: number;
56
+ /**
57
+ * S3 client options
58
+ */
59
+ client?: unknown;
60
+ /**
61
+ * S3 bucket name
62
+ */
63
+ bucket?: string;
64
+ metafile?: {
65
+ content: string;
66
+ };
56
67
  }
57
68
  export declare const isFilePublishConnectionRecord: (input: unknown) => input is FilePublishConnectionRecord;
58
69
  export declare const assertFilePublishConnectionRecord: (input: unknown) => FilePublishConnectionRecord;
@@ -60,3 +71,16 @@ export declare const randomFilePublishConnectionRecord: () => FilePublishConnect
60
71
  export declare const assertGuardFilePublishConnectionRecord: __AssertionGuard<FilePublishConnectionRecord>;
61
72
  export declare const stringifyFilePublishConnectionRecord: (input: FilePublishConnectionRecord) => string;
62
73
  export declare const assertStringifyFilePublishConnectionRecord: (input: unknown) => string;
74
+ export interface ConnectionStatsRecord {
75
+ status: string;
76
+ substatus: string;
77
+ pages?: Array<{
78
+ id: unknown;
79
+ }>;
80
+ }
81
+ export declare const isConnectionStatsRecord: (input: unknown) => input is ConnectionStatsRecord;
82
+ export declare const assertConnectionStatsRecord: (input: unknown) => ConnectionStatsRecord;
83
+ export declare const randomConnectionStatsRecord: () => ConnectionStatsRecord;
84
+ export declare const assertGuardConnectionStatsRecord: __AssertionGuard<ConnectionStatsRecord>;
85
+ export declare const stringifyConnectionStatsRecord: (input: ConnectionStatsRecord) => string;
86
+ export declare const assertStringifyConnectionStatsRecord: (input: unknown) => string;