@shipstatic/types 0.8.1 → 0.8.2
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/package.json +1 -1
- package/src/index.ts +10 -1
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,14 @@ export interface Deployment {
|
|
|
35
35
|
/** Unix timestamp (seconds) when deployment expires, null if never */
|
|
36
36
|
expires: number | null;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Response from deployment creation. Extends Deployment with one-time fields
|
|
40
|
+
* only present on creation (not on subsequent GET requests).
|
|
41
|
+
*/
|
|
42
|
+
export interface DeploymentCreateResponse extends Deployment {
|
|
43
|
+
/** Claim token for public deployments. Present when deployed without credentials. */
|
|
44
|
+
readonly claim?: string;
|
|
45
|
+
}
|
|
38
46
|
/**
|
|
39
47
|
* Response for listing deployments
|
|
40
48
|
*/
|
|
@@ -575,7 +583,7 @@ export interface DeploymentUploadOptions {
|
|
|
575
583
|
* Deployment resource interface - the contract all implementations must follow
|
|
576
584
|
*/
|
|
577
585
|
export interface DeploymentResource {
|
|
578
|
-
upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<
|
|
586
|
+
upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<DeploymentCreateResponse>;
|
|
579
587
|
list: () => Promise<DeploymentListResponse>;
|
|
580
588
|
get: (id: string) => Promise<Deployment>;
|
|
581
589
|
set: (id: string, options: {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -44,6 +44,15 @@ export interface Deployment {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Response from deployment creation. Extends Deployment with one-time fields
|
|
49
|
+
* only present on creation (not on subsequent GET requests).
|
|
50
|
+
*/
|
|
51
|
+
export interface DeploymentCreateResponse extends Deployment {
|
|
52
|
+
/** Claim token for public deployments. Present when deployed without credentials. */
|
|
53
|
+
readonly claim?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
47
56
|
/**
|
|
48
57
|
* Response for listing deployments
|
|
49
58
|
*/
|
|
@@ -882,7 +891,7 @@ export interface DeploymentUploadOptions {
|
|
|
882
891
|
* Deployment resource interface - the contract all implementations must follow
|
|
883
892
|
*/
|
|
884
893
|
export interface DeploymentResource {
|
|
885
|
-
upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<
|
|
894
|
+
upload: (input: DeployInput, options?: DeploymentUploadOptions) => Promise<DeploymentCreateResponse>;
|
|
886
895
|
list: () => Promise<DeploymentListResponse>;
|
|
887
896
|
get: (id: string) => Promise<Deployment>;
|
|
888
897
|
set: (id: string, options: { labels: string[] }) => Promise<Deployment>;
|