@shipstatic/types 0.2.4 → 0.2.5
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 +9 -1
- package/dist/index.js +9 -1
- package/package.json +2 -2
- package/src/index.ts +12 -1
package/dist/index.d.ts
CHANGED
|
@@ -105,7 +105,9 @@ export declare const AccountPlan: {
|
|
|
105
105
|
readonly FREE: "free";
|
|
106
106
|
readonly PAID: "paid";
|
|
107
107
|
readonly PARTNER: "partner";
|
|
108
|
-
readonly
|
|
108
|
+
readonly SUSPENDED: "suspended";
|
|
109
|
+
readonly TERMINATING: "terminating";
|
|
110
|
+
readonly TERMINATED: "terminated";
|
|
109
111
|
};
|
|
110
112
|
export type AccountPlanType = typeof AccountPlan[keyof typeof AccountPlan];
|
|
111
113
|
/**
|
|
@@ -235,6 +237,12 @@ export declare const API_KEY_TOTAL_LENGTH: number;
|
|
|
235
237
|
export declare const DEPLOY_TOKEN_PREFIX = "token-";
|
|
236
238
|
export declare const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
|
237
239
|
export declare const DEPLOY_TOKEN_TOTAL_LENGTH: number;
|
|
240
|
+
export declare const AuthMethod: {
|
|
241
|
+
readonly JWT: "jwt";
|
|
242
|
+
readonly API_KEY: "apiKey";
|
|
243
|
+
readonly TOKEN: "token";
|
|
244
|
+
};
|
|
245
|
+
export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
|
|
238
246
|
export declare const DEPLOYMENT_CONFIG_FILENAME = "ship.json";
|
|
239
247
|
/**
|
|
240
248
|
* Validate API key format
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,9 @@ export const AccountPlan = {
|
|
|
35
35
|
FREE: 'free',
|
|
36
36
|
PAID: 'paid',
|
|
37
37
|
PARTNER: 'partner',
|
|
38
|
-
|
|
38
|
+
SUSPENDED: 'suspended',
|
|
39
|
+
TERMINATING: 'terminating',
|
|
40
|
+
TERMINATED: 'terminated'
|
|
39
41
|
};
|
|
40
42
|
// =============================================================================
|
|
41
43
|
// ERROR SYSTEM
|
|
@@ -185,6 +187,12 @@ export const API_KEY_TOTAL_LENGTH = API_KEY_PREFIX.length + API_KEY_HEX_LENGTH;
|
|
|
185
187
|
export const DEPLOY_TOKEN_PREFIX = 'token-';
|
|
186
188
|
export const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
|
187
189
|
export const DEPLOY_TOKEN_TOTAL_LENGTH = DEPLOY_TOKEN_PREFIX.length + DEPLOY_TOKEN_HEX_LENGTH; // 70
|
|
190
|
+
// Authentication Method Constants
|
|
191
|
+
export const AuthMethod = {
|
|
192
|
+
JWT: 'jwt',
|
|
193
|
+
API_KEY: 'apiKey',
|
|
194
|
+
TOKEN: 'token'
|
|
195
|
+
};
|
|
188
196
|
// Deployment Configuration
|
|
189
197
|
export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
|
|
190
198
|
// =============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipstatic/types",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
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
|
@@ -128,7 +128,9 @@ export const AccountPlan = {
|
|
|
128
128
|
FREE: 'free',
|
|
129
129
|
PAID: 'paid',
|
|
130
130
|
PARTNER: 'partner',
|
|
131
|
-
|
|
131
|
+
SUSPENDED: 'suspended',
|
|
132
|
+
TERMINATING: 'terminating',
|
|
133
|
+
TERMINATED: 'terminated'
|
|
132
134
|
} as const;
|
|
133
135
|
|
|
134
136
|
export type AccountPlanType = typeof AccountPlan[keyof typeof AccountPlan];
|
|
@@ -391,6 +393,15 @@ export const DEPLOY_TOKEN_PREFIX = 'token-';
|
|
|
391
393
|
export const DEPLOY_TOKEN_HEX_LENGTH = 64;
|
|
392
394
|
export const DEPLOY_TOKEN_TOTAL_LENGTH = DEPLOY_TOKEN_PREFIX.length + DEPLOY_TOKEN_HEX_LENGTH; // 70
|
|
393
395
|
|
|
396
|
+
// Authentication Method Constants
|
|
397
|
+
export const AuthMethod = {
|
|
398
|
+
JWT: 'jwt',
|
|
399
|
+
API_KEY: 'apiKey',
|
|
400
|
+
TOKEN: 'token'
|
|
401
|
+
} as const;
|
|
402
|
+
|
|
403
|
+
export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
|
|
404
|
+
|
|
394
405
|
// Deployment Configuration
|
|
395
406
|
export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
|
|
396
407
|
|