@shipstatic/types 0.1.12 → 0.1.14

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
@@ -237,3 +237,19 @@ export declare function validateApiUrl(apiUrl: string): void;
237
237
  * Validate subdomain format (deployment pattern)
238
238
  */
239
239
  export declare function validateSubdomain(input: string): boolean;
240
+ /**
241
+ * Request payload for SPA check endpoint
242
+ */
243
+ export interface SPACheckRequest {
244
+ /** Array of file paths */
245
+ files: string[];
246
+ /** Raw HTML content of index.html file */
247
+ index: string;
248
+ }
249
+ /**
250
+ * Response from SPA check endpoint
251
+ */
252
+ export interface SPACheckResponse {
253
+ /** Whether the project is detected as a Single Page Application */
254
+ isSPA: boolean;
255
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -440,4 +440,26 @@ export function validateApiUrl(apiUrl: string): void {
440
440
  export function validateSubdomain(input: string): boolean {
441
441
  // Deployment subdomain format: word-word-7chars (e.g. "happy-cat-abc1234")
442
442
  return /^[a-z]+-[a-z]+-[a-z0-9]{7}$/i.test(input);
443
+ }
444
+
445
+ // =============================================================================
446
+ // SPA CHECK TYPES
447
+ // =============================================================================
448
+
449
+ /**
450
+ * Request payload for SPA check endpoint
451
+ */
452
+ export interface SPACheckRequest {
453
+ /** Array of file paths */
454
+ files: string[];
455
+ /** Raw HTML content of index.html file */
456
+ index: string;
457
+ }
458
+
459
+ /**
460
+ * Response from SPA check endpoint
461
+ */
462
+ export interface SPACheckResponse {
463
+ /** Whether the project is detected as a Single Page Application */
464
+ isSPA: boolean;
443
465
  }