@shipstatic/types 0.3.14 → 0.3.15

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 CHANGED
@@ -66,8 +66,8 @@ export type DomainStatusType = typeof DomainStatus[keyof typeof DomainStatus];
66
66
  export interface Domain {
67
67
  /** The domain name */
68
68
  readonly domain: string;
69
- /** The deployment name this domain points to */
70
- deployment: string;
69
+ /** The deployment name this domain points to (null = domain added but not yet linked) */
70
+ deployment: string | null;
71
71
  /** Current domain status */
72
72
  status: DomainStatusType;
73
73
  /** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
@@ -408,7 +408,7 @@ export interface DeploymentResource {
408
408
  * Domain resource interface - the contract all implementations must follow
409
409
  */
410
410
  export interface DomainResource {
411
- set: (domainName: string, deployment: string, tags?: string[]) => Promise<Domain>;
411
+ set: (domainName: string, deployment?: string, tags?: string[]) => Promise<Domain>;
412
412
  get: (domainName: string) => Promise<Domain>;
413
413
  list: () => Promise<DomainListResponse>;
414
414
  remove: (domainName: string) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -82,8 +82,8 @@ export type DomainStatusType = typeof DomainStatus[keyof typeof DomainStatus];
82
82
  export interface Domain {
83
83
  /** The domain name */
84
84
  readonly domain: string;
85
- /** The deployment name this domain points to */
86
- deployment: string; // Mutable - can be updated to point to different deployment
85
+ /** The deployment name this domain points to (null = domain added but not yet linked) */
86
+ deployment: string | null; // Mutable - can be updated to point to different deployment
87
87
  /** Current domain status */
88
88
  status: DomainStatusType; // Mutable - can be updated
89
89
  /** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
@@ -662,7 +662,7 @@ export interface DeploymentResource {
662
662
  * Domain resource interface - the contract all implementations must follow
663
663
  */
664
664
  export interface DomainResource {
665
- set: (domainName: string, deployment: string, tags?: string[]) => Promise<Domain>;
665
+ set: (domainName: string, deployment?: string, tags?: string[]) => Promise<Domain>;
666
666
  get: (domainName: string) => Promise<Domain>;
667
667
  list: () => Promise<DomainListResponse>;
668
668
  remove: (domainName: string) => Promise<void>;