@shipstatic/types 0.1.7 → 0.1.8
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/README.md +14 -14
- package/dist/index.d.ts +10 -10
- package/package.json +1 -1
- package/src/index.ts +10 -10
package/README.md
CHANGED
|
@@ -17,21 +17,21 @@ This package contains all shared types used between:
|
|
|
17
17
|
// Core deployment object
|
|
18
18
|
interface Deployment {
|
|
19
19
|
deployment: string; // Deployment ID
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
files: number; // Number of files
|
|
21
|
+
size: number; // Total size in bytes
|
|
22
22
|
status: 'pending' | 'success' | 'failed';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
created: number; // Unix timestamp
|
|
24
|
+
expires?: number; // Unix timestamp
|
|
25
|
+
verified?: number; // Unix timestamp
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// Successful deployment response
|
|
29
29
|
interface DeploySuccessResponse {
|
|
30
30
|
success: true;
|
|
31
31
|
deployment: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
expires: number;
|
|
33
|
+
files: number;
|
|
34
|
+
size: number;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// Deployment list response
|
|
@@ -48,10 +48,10 @@ interface DeploymentListResponse {
|
|
|
48
48
|
// Core alias object
|
|
49
49
|
interface Alias {
|
|
50
50
|
alias: string; // Alias name
|
|
51
|
-
|
|
51
|
+
deployment: string; // Target deployment ID
|
|
52
52
|
status: 'pending' | 'success' | 'failed';
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
created: number; // Unix timestamp
|
|
54
|
+
confirmed?: number; // Unix timestamp
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// Alias list response
|
|
@@ -71,9 +71,9 @@ interface Account {
|
|
|
71
71
|
name: string;
|
|
72
72
|
picture?: string;
|
|
73
73
|
subscription: 'free' | 'active' | 'suspended';
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
created: number; // Unix timestamp
|
|
75
|
+
subscribed?: number; // Unix timestamp
|
|
76
|
+
suspended?: number; // Unix timestamp
|
|
77
77
|
}
|
|
78
78
|
```
|
|
79
79
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,17 +9,17 @@ export interface Deployment {
|
|
|
9
9
|
/** The deployment ID */
|
|
10
10
|
deployment: string;
|
|
11
11
|
/** Number of files in this deployment */
|
|
12
|
-
|
|
12
|
+
files: number;
|
|
13
13
|
/** Total size of all files in bytes */
|
|
14
|
-
|
|
14
|
+
size: number;
|
|
15
15
|
/** Current deployment status */
|
|
16
16
|
status: 'pending' | 'success' | 'failed';
|
|
17
17
|
/** The deployment URL */
|
|
18
18
|
url: string;
|
|
19
19
|
/** Unix timestamp (seconds) when deployment was created */
|
|
20
|
-
|
|
20
|
+
created: number;
|
|
21
21
|
/** Unix timestamp (seconds) when deployment expires */
|
|
22
|
-
|
|
22
|
+
expires?: number;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Response for listing deployments
|
|
@@ -39,15 +39,15 @@ export interface Alias {
|
|
|
39
39
|
/** The alias name */
|
|
40
40
|
alias: string;
|
|
41
41
|
/** The deployment name this alias points to */
|
|
42
|
-
|
|
42
|
+
deployment: string;
|
|
43
43
|
/** Current alias status */
|
|
44
44
|
status: 'pending' | 'success' | 'failed';
|
|
45
45
|
/** The alias URL - internal (subdomain) or external (custom domain) */
|
|
46
46
|
url: string;
|
|
47
47
|
/** Unix timestamp (seconds) when alias was created */
|
|
48
|
-
|
|
48
|
+
created: number;
|
|
49
49
|
/** Unix timestamp (seconds) when alias was confirmed */
|
|
50
|
-
|
|
50
|
+
confirmed?: number;
|
|
51
51
|
/** Whether this was a create operation (true) or update operation (false). Optional - only present in set operations */
|
|
52
52
|
isCreate?: boolean;
|
|
53
53
|
}
|
|
@@ -86,11 +86,11 @@ export interface Account {
|
|
|
86
86
|
/** Account plan status */
|
|
87
87
|
plan: 'free' | 'active' | 'suspended';
|
|
88
88
|
/** Unix timestamp (seconds) when account was created */
|
|
89
|
-
|
|
89
|
+
created: number;
|
|
90
90
|
/** Unix timestamp (seconds) when plan started */
|
|
91
|
-
|
|
91
|
+
subscribed?: number;
|
|
92
92
|
/** Unix timestamp (seconds) when account was suspended */
|
|
93
|
-
|
|
93
|
+
suspended?: number;
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* All possible error types in the Shipstatic platform
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -14,17 +14,17 @@ export interface Deployment {
|
|
|
14
14
|
/** The deployment ID */
|
|
15
15
|
deployment: string;
|
|
16
16
|
/** Number of files in this deployment */
|
|
17
|
-
|
|
17
|
+
files: number;
|
|
18
18
|
/** Total size of all files in bytes */
|
|
19
|
-
|
|
19
|
+
size: number;
|
|
20
20
|
/** Current deployment status */
|
|
21
21
|
status: 'pending' | 'success' | 'failed';
|
|
22
22
|
/** The deployment URL */
|
|
23
23
|
url: string;
|
|
24
24
|
/** Unix timestamp (seconds) when deployment was created */
|
|
25
|
-
|
|
25
|
+
created: number;
|
|
26
26
|
/** Unix timestamp (seconds) when deployment expires */
|
|
27
|
-
|
|
27
|
+
expires?: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
|
|
@@ -51,15 +51,15 @@ export interface Alias {
|
|
|
51
51
|
/** The alias name */
|
|
52
52
|
alias: string;
|
|
53
53
|
/** The deployment name this alias points to */
|
|
54
|
-
|
|
54
|
+
deployment: string;
|
|
55
55
|
/** Current alias status */
|
|
56
56
|
status: 'pending' | 'success' | 'failed';
|
|
57
57
|
/** The alias URL - internal (subdomain) or external (custom domain) */
|
|
58
58
|
url: string;
|
|
59
59
|
/** Unix timestamp (seconds) when alias was created */
|
|
60
|
-
|
|
60
|
+
created: number;
|
|
61
61
|
/** Unix timestamp (seconds) when alias was confirmed */
|
|
62
|
-
|
|
62
|
+
confirmed?: number;
|
|
63
63
|
/** Whether this was a create operation (true) or update operation (false). Optional - only present in set operations */
|
|
64
64
|
isCreate?: boolean;
|
|
65
65
|
}
|
|
@@ -105,11 +105,11 @@ export interface Account {
|
|
|
105
105
|
/** Account plan status */
|
|
106
106
|
plan: 'free' | 'active' | 'suspended';
|
|
107
107
|
/** Unix timestamp (seconds) when account was created */
|
|
108
|
-
|
|
108
|
+
created: number;
|
|
109
109
|
/** Unix timestamp (seconds) when plan started */
|
|
110
|
-
|
|
110
|
+
subscribed?: number;
|
|
111
111
|
/** Unix timestamp (seconds) when account was suspended */
|
|
112
|
-
|
|
112
|
+
suspended?: number;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
// =============================================================================
|