@shipstatic/types 0.4.1 → 0.4.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/index.d.ts CHANGED
@@ -79,8 +79,6 @@ export interface Domain {
79
79
  readonly created: number;
80
80
  /** Whether this was a create (201) or update (200) operation */
81
81
  readonly isCreate?: boolean;
82
- /** Unix timestamp (seconds) when domain was verified */
83
- verified?: number;
84
82
  /** Unix timestamp (seconds) when deployment binding last changed */
85
83
  bound?: number;
86
84
  }
@@ -670,10 +668,10 @@ export interface RateLimitData {
670
668
  timestamp: number;
671
669
  }
672
670
  /**
673
- * Generate deployment URL from deployment ID and sites domain
671
+ * Generate deployment URL from deployment ID and base domain
674
672
  */
675
- export declare function generateDeploymentUrl(deployment: string, sitesDomain?: string): string;
673
+ export declare function generateDeploymentUrl(deployment: string, baseDomain?: string): string;
676
674
  /**
677
675
  * Generate domain URL based on whether it's internal (subdomain) or external (custom domain)
678
676
  */
679
- export declare function generateDomainUrl(domain: string, sitesDomain?: string): string;
677
+ export declare function generateDomainUrl(domainName: string, baseDomain?: string): string;
package/dist/index.js CHANGED
@@ -281,21 +281,21 @@ export const FileValidationStatus = {
281
281
  // URL GENERATION UTILITIES
282
282
  // =============================================================================
283
283
  /**
284
- * Generate deployment URL from deployment ID and sites domain
284
+ * Generate deployment URL from deployment ID and base domain
285
285
  */
286
- export function generateDeploymentUrl(deployment, sitesDomain) {
287
- const domain = sitesDomain || 'statichost.com';
286
+ export function generateDeploymentUrl(deployment, baseDomain) {
287
+ const domain = baseDomain || 'shipstatic.com';
288
288
  return `https://${deployment}.${domain}`;
289
289
  }
290
290
  /**
291
291
  * Generate domain URL based on whether it's internal (subdomain) or external (custom domain)
292
292
  */
293
- export function generateDomainUrl(domain, sitesDomain) {
293
+ export function generateDomainUrl(domainName, baseDomain) {
294
294
  // If domain contains dots, it's an external domain
295
- if (domain.includes('.')) {
296
- return `https://${domain}`;
295
+ if (domainName.includes('.')) {
296
+ return `https://${domainName}`;
297
297
  }
298
298
  // Otherwise it's an internal subdomain
299
- const siteDomain = sitesDomain || 'statichost.dev';
300
- return `https://${domain}.${siteDomain}`;
299
+ const domain = baseDomain || 'shipstatic.com';
300
+ return `https://${domainName}.${domain}`;
301
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -95,8 +95,6 @@ export interface Domain {
95
95
  readonly created: number;
96
96
  /** Whether this was a create (201) or update (200) operation */
97
97
  readonly isCreate?: boolean;
98
- /** Unix timestamp (seconds) when domain was verified */
99
- verified?: number; // Mutable - can be updated
100
98
  /** Unix timestamp (seconds) when deployment binding last changed */
101
99
  bound?: number;
102
100
  }
@@ -1005,23 +1003,23 @@ export interface RateLimitData {
1005
1003
  // =============================================================================
1006
1004
 
1007
1005
  /**
1008
- * Generate deployment URL from deployment ID and sites domain
1006
+ * Generate deployment URL from deployment ID and base domain
1009
1007
  */
1010
- export function generateDeploymentUrl(deployment: string, sitesDomain?: string): string {
1011
- const domain = sitesDomain || 'statichost.com';
1008
+ export function generateDeploymentUrl(deployment: string, baseDomain?: string): string {
1009
+ const domain = baseDomain || 'shipstatic.com';
1012
1010
  return `https://${deployment}.${domain}`;
1013
1011
  }
1014
1012
 
1015
1013
  /**
1016
1014
  * Generate domain URL based on whether it's internal (subdomain) or external (custom domain)
1017
1015
  */
1018
- export function generateDomainUrl(domain: string, sitesDomain?: string): string {
1016
+ export function generateDomainUrl(domainName: string, baseDomain?: string): string {
1019
1017
  // If domain contains dots, it's an external domain
1020
- if (domain.includes('.')) {
1021
- return `https://${domain}`;
1018
+ if (domainName.includes('.')) {
1019
+ return `https://${domainName}`;
1022
1020
  }
1023
1021
 
1024
1022
  // Otherwise it's an internal subdomain
1025
- const siteDomain = sitesDomain || 'statichost.dev';
1026
- return `https://${domain}.${siteDomain}`;
1023
+ const domain = baseDomain || 'shipstatic.com';
1024
+ return `https://${domainName}.${domain}`;
1027
1025
  }