@pagesolver/sdk 1.0.5 → 1.0.6

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.
@@ -0,0 +1,60 @@
1
+ export interface ComparisonImage {
2
+ id: string;
3
+ businessId: string;
4
+ beforeUrl: string;
5
+ afterUrl: string;
6
+ description: string | null;
7
+ createdAt: Date;
8
+ title: string;
9
+ }
10
+ export interface ShowcaseImage {
11
+ id: string;
12
+ businessId: string;
13
+ blobUrl: string[];
14
+ createdAt: Date;
15
+ description: string | null;
16
+ title: string;
17
+ }
18
+ export interface QuickQuote {
19
+ id: string;
20
+ businessId: string;
21
+ parentId: string | null;
22
+ name: string;
23
+ description: string | null;
24
+ basePrice: string | null;
25
+ enabled: boolean;
26
+ createdAt: Date;
27
+ updatedAt: Date;
28
+ }
29
+ interface ApiResponse<T> {
30
+ data?: T;
31
+ error?: string;
32
+ status: number;
33
+ }
34
+ interface ContactData {
35
+ name: string;
36
+ email: string;
37
+ phone?: string;
38
+ message?: string;
39
+ }
40
+ interface ContactResponse {
41
+ success: boolean;
42
+ }
43
+ export declare class PageSolverClient {
44
+ private baseUrl;
45
+ private businessKey;
46
+ constructor(businessKey: string);
47
+ private request;
48
+ getComparisons(): Promise<ApiResponse<{
49
+ comparisons: ComparisonImage[];
50
+ }>>;
51
+ getShowcases(): Promise<ApiResponse<{
52
+ showcases: ShowcaseImage[];
53
+ }>>;
54
+ getQuickQuotes(): Promise<ApiResponse<{
55
+ quotes: QuickQuote[];
56
+ }>>;
57
+ contact(data: ContactData): Promise<ApiResponse<ContactResponse>>;
58
+ }
59
+ export type { ApiResponse, ContactData, ContactResponse };
60
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB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AC;QAAE,WAAW,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC,CAChD;IAOK,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC;QAAE,SAAS,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC,CAAC;IAKpE,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC;QAAE,MAAM,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC,CAAC;IAKhE,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;CAMxE;AAGD,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagesolver/sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Official SDK for PageSolver API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "scripts": {
19
19
  "build": "bun build src/index.ts --outdir dist --target node --minify --sourcemap=external && bun run build:types",
20
- "build:types": "bunx tsc --emitDeclarationOnly --outDir dist",
20
+ "build:types": "bunx tsc --project tsconfig.build.json",
21
21
  "dev": "bun --watch src/index.ts",
22
22
  "test": "bun test",
23
23
  "lint": "bunx @biomejs/biome check src",