@nxtedition/types 1.2.0 → 1.2.1

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.
@@ -1,26 +1,22 @@
1
1
  import { type AssertionGuard as __AssertionGuard } from "typia";
2
2
  import { tags } from 'typia';
3
3
  export interface File {
4
- id: string & tags.MinLength<1>;
4
+ id: string & tags.Pattern<"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$">;
5
+ size: (number & tags.Minimum<0> & tags.Type<"uint32">) | null;
6
+ seekable: boolean;
5
7
  deleted: boolean;
6
- completed: boolean;
7
- uploading: boolean;
8
- zones: string[];
9
- replicas: string[];
8
+ path: string;
10
9
  refs: Array<{
11
10
  file?: string;
12
11
  }>;
13
- btime: number | null;
14
- seekable: boolean;
15
- resumable: boolean;
16
- size: (number & tags.Minimum<0>) | null;
17
- position: (number & tags.Minimum<0>) | null;
18
- hash: (string & (tags.MaxLength<0> | tags.Pattern<"^[A-Fa-f0-9]{32}$">)) | null;
19
- mimeType: string | null;
20
12
  tags: string[];
21
13
  error: Array<{
22
14
  message: string;
23
15
  }>;
16
+ resumable: string;
17
+ mimeType: string;
18
+ hash: string & tags.Pattern<"^([A-Fa-f0-9]{32})?$">;
19
+ btime: (number & tags.Minimum<0> & tags.Type<"uint32">) | null;
24
20
  }
25
21
  export declare const isFile: (input: unknown) => input is File;
26
22
  export declare const assertFile: (input: unknown) => File;
@@ -28,3 +24,16 @@ export declare const randomFile: () => File;
28
24
  export declare const assertGuardFile: __AssertionGuard<File>;
29
25
  export declare const stringifyFile: (input: File) => string;
30
26
  export declare const assertStringifyFile: (input: unknown) => string;
27
+ export interface FileStats extends File {
28
+ position: (number & tags.Minimum<0> & tags.Type<"uint32">) | null;
29
+ uploading: boolean | null;
30
+ completed: boolean;
31
+ zones: string[];
32
+ replicas: string[];
33
+ }
34
+ export declare const isFileStats: (input: unknown) => input is FileStats;
35
+ export declare const assertFileStats: (input: unknown) => FileStats;
36
+ export declare const randomFileStats: () => FileStats;
37
+ export declare const assertGuardFileStats: __AssertionGuard<FileStats>;
38
+ export declare const stringifyFileStats: (input: FileStats) => string;
39
+ export declare const assertStringifyFileStats: (input: unknown) => string;