@shipstatic/ship 0.5.1 → 0.5.3
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/browser.d.ts +11 -5
- package/dist/browser.js +5 -5
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs +17 -17
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _shipstatic_types from '@shipstatic/types';
|
|
2
|
-
import { ProgressInfo, StaticFile, Deployment, DeploymentListResponse,
|
|
2
|
+
import { ProgressInfo, StaticFile, Domain, Deployment, DeploymentListResponse, DomainListResponse, DomainDnsResponse, DomainRecordsResponse, DomainValidateResponse, TokenCreateResponse, TokenListResponse, Account, ConfigResponse, PlatformConfig, ResolvedConfig, DeployInput, AccountResource, DeploymentResource, DomainResource, TokenResource, ValidatableFile, FileValidationResult } from '@shipstatic/types';
|
|
3
3
|
export * from '@shipstatic/types';
|
|
4
4
|
export { Account, AccountResource, DEFAULT_API, DeployInput, Deployment, DeploymentResource, Domain, DomainResource, ErrorType, FileValidationStatus as FILE_VALIDATION_STATUS, PingResponse, ResolvedConfig, ShipError, StaticFile, TokenResource } from '@shipstatic/types';
|
|
5
5
|
|
|
@@ -9,6 +9,14 @@ export { Account, AccountResource, DEFAULT_API, DeployInput, Deployment, Deploym
|
|
|
9
9
|
* Core types come from @shipstatic/types, while SDK-specific types are defined here.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Domain set result with SDK-injected isCreate flag.
|
|
14
|
+
* isCreate is derived from HTTP status code (201 = create, 200 = update)
|
|
15
|
+
* and is not part of the Domain entity contract.
|
|
16
|
+
*/
|
|
17
|
+
type DomainSetResult = Domain & {
|
|
18
|
+
isCreate: boolean;
|
|
19
|
+
};
|
|
12
20
|
/**
|
|
13
21
|
* Universal deploy options for both Node.js and Browser environments
|
|
14
22
|
*/
|
|
@@ -194,10 +202,9 @@ declare class ApiHttp extends SimpleEvents {
|
|
|
194
202
|
getDeployment(id: string): Promise<Deployment>;
|
|
195
203
|
updateDeploymentLabels(id: string, labels: string[]): Promise<Deployment>;
|
|
196
204
|
removeDeployment(id: string): Promise<void>;
|
|
197
|
-
setDomain(name: string, deployment?: string, labels?: string[]): Promise<
|
|
205
|
+
setDomain(name: string, deployment?: string, labels?: string[]): Promise<DomainSetResult>;
|
|
198
206
|
listDomains(): Promise<DomainListResponse>;
|
|
199
207
|
getDomain(name: string): Promise<Domain>;
|
|
200
|
-
updateDomainLabels(name: string, labels: string[]): Promise<Domain>;
|
|
201
208
|
removeDomain(name: string): Promise<void>;
|
|
202
209
|
verifyDomain(name: string): Promise<{
|
|
203
210
|
message: string;
|
|
@@ -215,7 +222,6 @@ declare class ApiHttp extends SimpleEvents {
|
|
|
215
222
|
getAccount(): Promise<Account>;
|
|
216
223
|
getConfig(): Promise<ConfigResponse>;
|
|
217
224
|
ping(): Promise<boolean>;
|
|
218
|
-
getPingResponse(): Promise<PingResponse>;
|
|
219
225
|
checkSPA(files: StaticFile[]): Promise<boolean>;
|
|
220
226
|
}
|
|
221
227
|
|
|
@@ -638,4 +644,4 @@ declare class Ship extends Ship$1 {
|
|
|
638
644
|
protected getDeployBodyCreator(): DeployBodyCreator;
|
|
639
645
|
}
|
|
640
646
|
|
|
641
|
-
export { type ApiDeployOptions, ApiHttp, type ApiHttpOptions, type DeployBody, type DeployBodyCreator, type DeployFile, type DeploymentOptions, type DeploymentResourceContext, type ExecutionEnvironment, JUNK_DIRECTORIES, type MD5Result, type ResourceContext, Ship, type ShipClientOptions, type ShipEvents, __setTestEnvironment, allValidFilesReady, calculateMD5, createAccountResource, createDeploymentResource, createDomainResource, createTokenResource, Ship as default, filterJunk, formatFileSize, getCurrentConfig, getENV, getValidFiles, loadConfig, mergeDeployOptions, optimizeDeployPaths, pluralize, processFilesForBrowser, resolveConfig, setConfig as setPlatformConfig, validateFiles };
|
|
647
|
+
export { type ApiDeployOptions, ApiHttp, type ApiHttpOptions, type DeployBody, type DeployBodyCreator, type DeployFile, type DeploymentOptions, type DeploymentResourceContext, type DomainSetResult, type ExecutionEnvironment, JUNK_DIRECTORIES, type MD5Result, type ResourceContext, Ship, type ShipClientOptions, type ShipEvents, __setTestEnvironment, allValidFilesReady, calculateMD5, createAccountResource, createDeploymentResource, createDomainResource, createTokenResource, Ship as default, filterJunk, formatFileSize, getCurrentConfig, getENV, getValidFiles, loadConfig, mergeDeployOptions, optimizeDeployPaths, pluralize, processFilesForBrowser, resolveConfig, setConfig as setPlatformConfig, validateFiles };
|