@shipstatic/types 0.3.13 → 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) */
@@ -178,8 +178,10 @@ export interface Account {
178
178
  * Allows per-account customization of limits without changing plan
179
179
  */
180
180
  export interface AccountOverrides {
181
- /** Override for maximum resources (deployments + domains) */
182
- resources?: number;
181
+ /** Override for maximum number of domains */
182
+ domains?: number;
183
+ /** Override for maximum number of deployments */
184
+ deployments?: number;
183
185
  /** Override for maximum individual file size in bytes */
184
186
  fileSize?: number;
185
187
  /** Override for maximum number of files per deployment */
@@ -406,7 +408,7 @@ export interface DeploymentResource {
406
408
  * Domain resource interface - the contract all implementations must follow
407
409
  */
408
410
  export interface DomainResource {
409
- set: (domainName: string, deployment: string, tags?: string[]) => Promise<Domain>;
411
+ set: (domainName: string, deployment?: string, tags?: string[]) => Promise<Domain>;
410
412
  get: (domainName: string) => Promise<Domain>;
411
413
  list: () => Promise<DomainListResponse>;
412
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.13",
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) */
@@ -211,8 +211,10 @@ export interface Account {
211
211
  * Allows per-account customization of limits without changing plan
212
212
  */
213
213
  export interface AccountOverrides {
214
- /** Override for maximum resources (deployments + domains) */
215
- resources?: number;
214
+ /** Override for maximum number of domains */
215
+ domains?: number;
216
+ /** Override for maximum number of deployments */
217
+ deployments?: number;
216
218
  /** Override for maximum individual file size in bytes */
217
219
  fileSize?: number;
218
220
  /** Override for maximum number of files per deployment */
@@ -660,7 +662,7 @@ export interface DeploymentResource {
660
662
  * Domain resource interface - the contract all implementations must follow
661
663
  */
662
664
  export interface DomainResource {
663
- set: (domainName: string, deployment: string, tags?: string[]) => Promise<Domain>;
665
+ set: (domainName: string, deployment?: string, tags?: string[]) => Promise<Domain>;
664
666
  get: (domainName: string) => Promise<Domain>;
665
667
  list: () => Promise<DomainListResponse>;
666
668
  remove: (domainName: string) => Promise<void>;