@shipstatic/types 0.2.4 → 0.2.6
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/index.d.ts +11 -2
- package/dist/index.js +11 -2
- package/package.json +2 -2
- package/src/index.ts +14 -2
package/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,8 @@ export interface DeploymentListResponse {
|
|
|
53
53
|
*/
|
|
54
54
|
export declare const AliasStatus: {
|
|
55
55
|
readonly PENDING: "pending";
|
|
56
|
-
readonly
|
|
56
|
+
readonly PARTIAL: "partial";
|
|
57
|
+
readonly CONFIRMED: "confirmed";
|
|
57
58
|
readonly FAILED: "failed";
|
|
58
59
|
};
|
|
59
60
|
export type AliasStatusType = typeof AliasStatus[keyof typeof AliasStatus];
|
|
@@ -105,7 +106,9 @@ export declare const AccountPlan: {
|
|
|
105
106
|
readonly FREE: "free";
|
|
106
107
|
readonly PAID: "paid";
|
|
107
108
|
readonly PARTNER: "partner";
|
|
108
|
-
readonly
|
|
109
|
+
readonly SUSPENDED: "suspended";
|
|
110
|
+
readonly TERMINATING: "terminating";
|
|
111
|
+
readonly TERMINATED: "terminated";
|
|
109
112
|
};
|
|
110
113
|
export type AccountPlanType = typeof AccountPlan[keyof typeof AccountPlan];
|
|
111
114
|
/**
|
|
@@ -235,6 +238,12 @@ export declare const API_KEY_TOTAL_LENGTH: number;
|
|
|
235
238
|
export declare const DEPLOY_TOKEN_PREFIX = "token-";
|
|
236
239
|
export declare const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
|
237
240
|
export declare const DEPLOY_TOKEN_TOTAL_LENGTH: number;
|
|
241
|
+
export declare const AuthMethod: {
|
|
242
|
+
readonly JWT: "jwt";
|
|
243
|
+
readonly API_KEY: "apiKey";
|
|
244
|
+
readonly TOKEN: "token";
|
|
245
|
+
};
|
|
246
|
+
export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
|
|
238
247
|
export declare const DEPLOYMENT_CONFIG_FILENAME = "ship.json";
|
|
239
248
|
/**
|
|
240
249
|
* Validate API key format
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,8 @@ export const DeploymentStatus = {
|
|
|
22
22
|
*/
|
|
23
23
|
export const AliasStatus = {
|
|
24
24
|
PENDING: 'pending',
|
|
25
|
-
|
|
25
|
+
PARTIAL: 'partial',
|
|
26
|
+
CONFIRMED: 'confirmed',
|
|
26
27
|
FAILED: 'failed'
|
|
27
28
|
};
|
|
28
29
|
// =============================================================================
|
|
@@ -35,7 +36,9 @@ export const AccountPlan = {
|
|
|
35
36
|
FREE: 'free',
|
|
36
37
|
PAID: 'paid',
|
|
37
38
|
PARTNER: 'partner',
|
|
38
|
-
|
|
39
|
+
SUSPENDED: 'suspended',
|
|
40
|
+
TERMINATING: 'terminating',
|
|
41
|
+
TERMINATED: 'terminated'
|
|
39
42
|
};
|
|
40
43
|
// =============================================================================
|
|
41
44
|
// ERROR SYSTEM
|
|
@@ -185,6 +188,12 @@ export const API_KEY_TOTAL_LENGTH = API_KEY_PREFIX.length + API_KEY_HEX_LENGTH;
|
|
|
185
188
|
export const DEPLOY_TOKEN_PREFIX = 'token-';
|
|
186
189
|
export const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
|
187
190
|
export const DEPLOY_TOKEN_TOTAL_LENGTH = DEPLOY_TOKEN_PREFIX.length + DEPLOY_TOKEN_HEX_LENGTH; // 70
|
|
191
|
+
// Authentication Method Constants
|
|
192
|
+
export const AuthMethod = {
|
|
193
|
+
JWT: 'jwt',
|
|
194
|
+
API_KEY: 'apiKey',
|
|
195
|
+
TOKEN: 'token'
|
|
196
|
+
};
|
|
188
197
|
// Deployment Configuration
|
|
189
198
|
export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
|
|
190
199
|
// =============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipstatic/types",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Shared types for Shipstatic platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^24.3.0",
|
|
37
|
-
"typescript": "^5.
|
|
37
|
+
"typescript": "^5.9.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsc",
|
package/src/index.ts
CHANGED
|
@@ -67,7 +67,8 @@ export interface DeploymentListResponse {
|
|
|
67
67
|
*/
|
|
68
68
|
export const AliasStatus = {
|
|
69
69
|
PENDING: 'pending',
|
|
70
|
-
|
|
70
|
+
PARTIAL: 'partial',
|
|
71
|
+
CONFIRMED: 'confirmed',
|
|
71
72
|
FAILED: 'failed'
|
|
72
73
|
} as const;
|
|
73
74
|
|
|
@@ -128,7 +129,9 @@ export const AccountPlan = {
|
|
|
128
129
|
FREE: 'free',
|
|
129
130
|
PAID: 'paid',
|
|
130
131
|
PARTNER: 'partner',
|
|
131
|
-
|
|
132
|
+
SUSPENDED: 'suspended',
|
|
133
|
+
TERMINATING: 'terminating',
|
|
134
|
+
TERMINATED: 'terminated'
|
|
132
135
|
} as const;
|
|
133
136
|
|
|
134
137
|
export type AccountPlanType = typeof AccountPlan[keyof typeof AccountPlan];
|
|
@@ -391,6 +394,15 @@ export const DEPLOY_TOKEN_PREFIX = 'token-';
|
|
|
391
394
|
export const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
|
392
395
|
export const DEPLOY_TOKEN_TOTAL_LENGTH = DEPLOY_TOKEN_PREFIX.length + DEPLOY_TOKEN_HEX_LENGTH; // 70
|
|
393
396
|
|
|
397
|
+
// Authentication Method Constants
|
|
398
|
+
export const AuthMethod = {
|
|
399
|
+
JWT: 'jwt',
|
|
400
|
+
API_KEY: 'apiKey',
|
|
401
|
+
TOKEN: 'token'
|
|
402
|
+
} as const;
|
|
403
|
+
|
|
404
|
+
export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
|
|
405
|
+
|
|
394
406
|
// Deployment Configuration
|
|
395
407
|
export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
|
|
396
408
|
|