@spotsdev/sdk 1.3.3 → 1.5.0
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.cjs +2139 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1718 -0
- package/dist/index.d.ts +1717 -36
- package/dist/index.js +1996 -64
- package/dist/index.js.map +1 -0
- package/package.json +22 -6
- package/src/api/entities.ts +28 -84
- package/dist/api/client.d.ts +0 -12
- package/dist/api/client.js +0 -72
- package/dist/api/entities.d.ts +0 -326
- package/dist/api/entities.js +0 -9
- package/dist/api/mutations/clubs.d.ts +0 -47
- package/dist/api/mutations/clubs.js +0 -97
- package/dist/api/mutations/conversations.d.ts +0 -45
- package/dist/api/mutations/conversations.js +0 -114
- package/dist/api/mutations/index.d.ts +0 -14
- package/dist/api/mutations/index.js +0 -40
- package/dist/api/mutations/notifications.d.ts +0 -38
- package/dist/api/mutations/notifications.js +0 -64
- package/dist/api/mutations/orders.d.ts +0 -73
- package/dist/api/mutations/orders.js +0 -114
- package/dist/api/mutations/posts.d.ts +0 -123
- package/dist/api/mutations/posts.js +0 -242
- package/dist/api/mutations/products.d.ts +0 -81
- package/dist/api/mutations/products.js +0 -98
- package/dist/api/mutations/redemptions.d.ts +0 -33
- package/dist/api/mutations/redemptions.js +0 -63
- package/dist/api/mutations/spots.d.ts +0 -93
- package/dist/api/mutations/spots.js +0 -167
- package/dist/api/mutations/users.d.ts +0 -73
- package/dist/api/mutations/users.js +0 -175
- package/dist/api/queries/auth.d.ts +0 -37
- package/dist/api/queries/auth.js +0 -61
- package/dist/api/queries/clubs.d.ts +0 -52
- package/dist/api/queries/clubs.js +0 -116
- package/dist/api/queries/conversations.d.ts +0 -52
- package/dist/api/queries/conversations.js +0 -83
- package/dist/api/queries/index.d.ts +0 -28
- package/dist/api/queries/index.js +0 -69
- package/dist/api/queries/misc.d.ts +0 -30
- package/dist/api/queries/misc.js +0 -91
- package/dist/api/queries/notifications.d.ts +0 -34
- package/dist/api/queries/notifications.js +0 -62
- package/dist/api/queries/orders.d.ts +0 -45
- package/dist/api/queries/orders.js +0 -93
- package/dist/api/queries/posts.d.ts +0 -92
- package/dist/api/queries/posts.js +0 -233
- package/dist/api/queries/products.d.ts +0 -48
- package/dist/api/queries/products.js +0 -87
- package/dist/api/queries/spots.d.ts +0 -93
- package/dist/api/queries/spots.js +0 -250
- package/dist/api/queries/templates.d.ts +0 -39
- package/dist/api/queries/templates.js +0 -81
- package/dist/api/queries/users.d.ts +0 -104
- package/dist/api/queries/users.js +0 -235
- package/dist/api/queries/wallet.d.ts +0 -109
- package/dist/api/queries/wallet.js +0 -136
- package/dist/api/services/index.d.ts +0 -2
- package/dist/api/services/index.js +0 -8
- package/dist/api/services/marketplace.d.ts +0 -129
- package/dist/api/services/marketplace.js +0 -168
- package/dist/api/types.d.ts +0 -57
- package/dist/api/types.js +0 -33
package/src/api/entities.ts
CHANGED
|
@@ -3,64 +3,37 @@
|
|
|
3
3
|
*
|
|
4
4
|
* These types mirror the Prisma schema entities but without @prisma/client dependency.
|
|
5
5
|
* This allows the SDK to work in React Native where Prisma is not available.
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: Enum types are imported from @spotsdev/types (generated from OpenAPI spec).
|
|
8
|
+
* types.ts handles re-exporting from spots-types - this file only defines entity interfaces
|
|
9
|
+
* and SDK-specific types not in the OpenAPI spec.
|
|
6
10
|
*/
|
|
7
11
|
|
|
8
12
|
// ============================================================================
|
|
9
|
-
//
|
|
13
|
+
// IMPORTS FROM @spotsdev/types (used in interfaces below)
|
|
14
|
+
// These are NOT re-exported - types.ts handles the re-export from spots-types
|
|
10
15
|
// ============================================================================
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export type SpotPostType =
|
|
32
|
-
| 'CHECK_IN'
|
|
33
|
-
| 'LOOKING_FOR'
|
|
34
|
-
| 'OFFERING'
|
|
35
|
-
| 'QUESTION'
|
|
36
|
-
| 'EVENT'
|
|
37
|
-
| 'RECOMMENDATION'
|
|
38
|
-
| 'GENERAL'
|
|
39
|
-
|
|
40
|
-
export type AccountStatus = 'ACTIVE' | 'SUSPENDED' | 'DELETED' | 'PENDING'
|
|
41
|
-
|
|
42
|
-
export type ClaimStatus = 'PENDING' | 'APPROVED' | 'REJECTED'
|
|
43
|
-
|
|
44
|
-
export type ResponseStatus = 'PENDING' | 'ACCEPTED' | 'DECLINED'
|
|
45
|
-
|
|
46
|
-
export type ReportReason =
|
|
47
|
-
| 'SPAM'
|
|
48
|
-
| 'HARASSMENT'
|
|
49
|
-
| 'INAPPROPRIATE'
|
|
50
|
-
| 'SCAM'
|
|
51
|
-
| 'OTHER'
|
|
52
|
-
|
|
16
|
+
import type {
|
|
17
|
+
SpotType,
|
|
18
|
+
AccountStatus,
|
|
19
|
+
PostType,
|
|
20
|
+
PostStatus,
|
|
21
|
+
ResponseStatus,
|
|
22
|
+
ReportReason,
|
|
23
|
+
ProductType,
|
|
24
|
+
ProductStatus,
|
|
25
|
+
ProductResponseDto,
|
|
26
|
+
ClaimStatus,
|
|
27
|
+
OrderStatus,
|
|
28
|
+
NotificationType,
|
|
29
|
+
} from '@spotsdev/types'
|
|
30
|
+
|
|
31
|
+
// Type alias for backwards compatibility - SDK uses SpotPostType, API uses PostType
|
|
32
|
+
export type SpotPostType = PostType
|
|
33
|
+
|
|
34
|
+
// Enums not yet in OpenAPI spec DTOs - these stay local until API exposes them
|
|
53
35
|
export type ReportStatus = 'PENDING' | 'REVIEWED' | 'RESOLVED' | 'DISMISSED'
|
|
54
36
|
|
|
55
|
-
export type NotificationType =
|
|
56
|
-
| 'POST_RESPONSE'
|
|
57
|
-
| 'POST_REPLY'
|
|
58
|
-
| 'POST_UPVOTE'
|
|
59
|
-
| 'RESPONSE_ACCEPTED'
|
|
60
|
-
| 'RESPONSE_DECLINED'
|
|
61
|
-
| 'NEW_MESSAGE'
|
|
62
|
-
| 'SYSTEM'
|
|
63
|
-
|
|
64
37
|
// ============================================================================
|
|
65
38
|
// ENTITY INTERFACES
|
|
66
39
|
// ============================================================================
|
|
@@ -108,6 +81,7 @@ export interface Spot {
|
|
|
108
81
|
imageUrl: string | null
|
|
109
82
|
ownerId: string | null
|
|
110
83
|
isVerified: boolean
|
|
84
|
+
marketplaceEnabled: boolean
|
|
111
85
|
// Dates as strings for JSON serialization compatibility
|
|
112
86
|
createdAt: Date | string
|
|
113
87
|
updatedAt: Date | string
|
|
@@ -374,38 +348,8 @@ export interface PaginationMeta {
|
|
|
374
348
|
// MARKETPLACE TYPES
|
|
375
349
|
// ============================================================================
|
|
376
350
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
export type ProductStatus = 'DRAFT' | 'ACTIVE' | 'SOLD_OUT' | 'ARCHIVED'
|
|
380
|
-
|
|
381
|
-
export type OrderStatus =
|
|
382
|
-
| 'PENDING'
|
|
383
|
-
| 'CONFIRMED'
|
|
384
|
-
| 'PREPARING'
|
|
385
|
-
| 'READY'
|
|
386
|
-
| 'COMPLETED'
|
|
387
|
-
| 'CANCELLED'
|
|
388
|
-
| 'REFUNDED'
|
|
389
|
-
|
|
390
|
-
export interface Product {
|
|
391
|
-
id: string
|
|
392
|
-
spotId: string
|
|
393
|
-
name: string
|
|
394
|
-
slug: string
|
|
395
|
-
description: string | null
|
|
396
|
-
type: ProductType
|
|
397
|
-
status: ProductStatus
|
|
398
|
-
price: number
|
|
399
|
-
currency: string
|
|
400
|
-
imageUrl: string | null
|
|
401
|
-
images: string[]
|
|
402
|
-
stock: number | null
|
|
403
|
-
maxQuantity: number
|
|
404
|
-
sortOrder: number
|
|
405
|
-
metadata: Record<string, unknown> | null
|
|
406
|
-
createdAt: Date
|
|
407
|
-
updatedAt: Date
|
|
408
|
-
}
|
|
351
|
+
// Use ProductResponseDto from spots-types directly
|
|
352
|
+
export type Product = ProductResponseDto
|
|
409
353
|
|
|
410
354
|
export interface Order {
|
|
411
355
|
id: string
|
package/dist/api/client.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type AxiosInstance } from 'axios';
|
|
2
|
-
export interface SDKConfig {
|
|
3
|
-
baseURL: string;
|
|
4
|
-
getAccessToken: () => string | null | Promise<string | null>;
|
|
5
|
-
refreshAccessToken?: () => Promise<string>;
|
|
6
|
-
onUnauthorized?: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare let apiClient: AxiosInstance | null;
|
|
9
|
-
export declare function configureSDK(sdkConfig: SDKConfig): void;
|
|
10
|
-
export declare function getApiClient(): AxiosInstance;
|
|
11
|
-
export declare function getConfig(): SDKConfig;
|
|
12
|
-
export { apiClient };
|
package/dist/api/client.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.apiClient = void 0;
|
|
7
|
-
exports.configureSDK = configureSDK;
|
|
8
|
-
exports.getApiClient = getApiClient;
|
|
9
|
-
exports.getConfig = getConfig;
|
|
10
|
-
const axios_1 = __importDefault(require("axios"));
|
|
11
|
-
let config = null;
|
|
12
|
-
let apiClient = null;
|
|
13
|
-
exports.apiClient = apiClient;
|
|
14
|
-
function configureSDK(sdkConfig) {
|
|
15
|
-
config = sdkConfig;
|
|
16
|
-
exports.apiClient = apiClient = createApiClient(sdkConfig);
|
|
17
|
-
}
|
|
18
|
-
function getApiClient() {
|
|
19
|
-
if (!apiClient) {
|
|
20
|
-
throw new Error('SDK not configured. Call configureSDK() first.');
|
|
21
|
-
}
|
|
22
|
-
return apiClient;
|
|
23
|
-
}
|
|
24
|
-
function getConfig() {
|
|
25
|
-
if (!config) {
|
|
26
|
-
throw new Error('SDK not configured. Call configureSDK() first.');
|
|
27
|
-
}
|
|
28
|
-
return config;
|
|
29
|
-
}
|
|
30
|
-
function createApiClient(sdkConfig) {
|
|
31
|
-
const client = axios_1.default.create({
|
|
32
|
-
baseURL: sdkConfig.baseURL,
|
|
33
|
-
headers: {
|
|
34
|
-
'Content-Type': 'application/json',
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
// Request interceptor - add auth token
|
|
38
|
-
client.interceptors.request.use(async (requestConfig) => {
|
|
39
|
-
const token = await sdkConfig.getAccessToken();
|
|
40
|
-
if (token) {
|
|
41
|
-
requestConfig.headers.Authorization = `Bearer ${token}`;
|
|
42
|
-
}
|
|
43
|
-
// Debug logging
|
|
44
|
-
console.log(`[SDK] ${requestConfig.method?.toUpperCase()} ${sdkConfig.baseURL}${requestConfig.url}`);
|
|
45
|
-
return requestConfig;
|
|
46
|
-
}, error => Promise.reject(error));
|
|
47
|
-
// Response interceptor - handle 401
|
|
48
|
-
client.interceptors.response.use(response => response, async (error) => {
|
|
49
|
-
console.log(`[SDK] Error: ${error.response?.status} ${error.config?.url}`, error.message);
|
|
50
|
-
// Handle auth token expiration (401)
|
|
51
|
-
if (error.response?.status === 401) {
|
|
52
|
-
if (sdkConfig.refreshAccessToken) {
|
|
53
|
-
try {
|
|
54
|
-
const newToken = await sdkConfig.refreshAccessToken();
|
|
55
|
-
if (newToken && error.config) {
|
|
56
|
-
error.config.headers.Authorization = `Bearer ${newToken}`;
|
|
57
|
-
return client.request(error.config);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
catch {
|
|
61
|
-
sdkConfig.onUnauthorized?.();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
sdkConfig.onUnauthorized?.();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
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SGFuZGxlIGF1dGggdG9rZW4gZXhwaXJhdGlvbiAoNDAxKVxuICAgICAgaWYgKGVycm9yLnJlc3BvbnNlPy5zdGF0dXMgPT09IDQwMSkge1xuICAgICAgICBpZiAoc2RrQ29uZmlnLnJlZnJlc2hBY2Nlc3NUb2tlbikge1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjb25zdCBuZXdUb2tlbiA9IGF3YWl0IHNka0NvbmZpZy5yZWZyZXNoQWNjZXNzVG9rZW4oKVxuICAgICAgICAgICAgaWYgKG5ld1Rva2VuICYmIGVycm9yLmNvbmZpZykge1xuICAgICAgICAgICAgICBlcnJvci5jb25maWcuaGVhZGVycy5BdXRob3JpemF0aW9uID0gYEJlYXJlciAke25ld1Rva2VufWBcbiAgICAgICAgICAgICAgcmV0dXJuIGNsaWVudC5yZXF1ZXN0KGVycm9yLmNvbmZpZylcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGNhdGNoIHtcbiAgICAgICAgICAgIHNka0NvbmZpZy5vblVuYXV0aG9yaXplZD8uKClcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgc2RrQ29uZmlnLm9uVW5hdXRob3JpemVkPy4oKVxuICAgICAgICB9XG4gICAgICB9XG4gICAgICByZXR1cm4gUHJvbWlzZS5yZWplY3QoZXJyb3IpXG4gICAgfSxcbiAgKVxuXG4gIHJldHVybiBjbGllbnRcbn1cblxuZXhwb3J0IHthcGlDbGllbnR9XG4iXX0=
|
package/dist/api/entities.d.ts
DELETED
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spots SDK Entity Types
|
|
3
|
-
*
|
|
4
|
-
* These types mirror the Prisma schema entities but without @prisma/client dependency.
|
|
5
|
-
* This allows the SDK to work in React Native where Prisma is not available.
|
|
6
|
-
*/
|
|
7
|
-
export type SpotType = 'CAFE' | 'RESTAURANT' | 'BAR' | 'PARK' | 'BEACH' | 'COWORKING' | 'LIBRARY' | 'GYM' | 'MUSEUM' | 'GALLERY' | 'THEATER' | 'CINEMA' | 'MALL' | 'MARKET' | 'HOTEL' | 'HOSTEL' | 'OTHER';
|
|
8
|
-
export type SpotPostType = 'CHECK_IN' | 'LOOKING_FOR' | 'OFFERING' | 'QUESTION' | 'EVENT' | 'RECOMMENDATION' | 'GENERAL';
|
|
9
|
-
export type AccountStatus = 'ACTIVE' | 'SUSPENDED' | 'DELETED' | 'PENDING';
|
|
10
|
-
export type ClaimStatus = 'PENDING' | 'APPROVED' | 'REJECTED';
|
|
11
|
-
export type ResponseStatus = 'PENDING' | 'ACCEPTED' | 'DECLINED';
|
|
12
|
-
export type ReportReason = 'SPAM' | 'HARASSMENT' | 'INAPPROPRIATE' | 'SCAM' | 'OTHER';
|
|
13
|
-
export type ReportStatus = 'PENDING' | 'REVIEWED' | 'RESOLVED' | 'DISMISSED';
|
|
14
|
-
export type NotificationType = 'POST_RESPONSE' | 'POST_REPLY' | 'POST_UPVOTE' | 'RESPONSE_ACCEPTED' | 'RESPONSE_DECLINED' | 'NEW_MESSAGE' | 'SYSTEM';
|
|
15
|
-
export interface UserVibe {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
emoji: string | null;
|
|
19
|
-
slug?: string;
|
|
20
|
-
category?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface User {
|
|
23
|
-
id: string;
|
|
24
|
-
phone: string | null;
|
|
25
|
-
email: string | null;
|
|
26
|
-
name: string | null;
|
|
27
|
-
bio: string | null;
|
|
28
|
-
avatarUrl: string | null;
|
|
29
|
-
status: AccountStatus;
|
|
30
|
-
onboardingCompleted: boolean;
|
|
31
|
-
vibes?: UserVibe[];
|
|
32
|
-
lastActiveAt: Date | null;
|
|
33
|
-
createdAt: Date;
|
|
34
|
-
updatedAt: Date;
|
|
35
|
-
}
|
|
36
|
-
export interface Spot {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
slug: string;
|
|
40
|
-
description: string | null;
|
|
41
|
-
address: string | null;
|
|
42
|
-
city: string | null;
|
|
43
|
-
country: string | null;
|
|
44
|
-
latitude: number | null;
|
|
45
|
-
longitude: number | null;
|
|
46
|
-
lat?: number | null;
|
|
47
|
-
lng?: number | null;
|
|
48
|
-
type: SpotType;
|
|
49
|
-
googlePlaceId: string | null;
|
|
50
|
-
website: string | null;
|
|
51
|
-
phone: string | null;
|
|
52
|
-
imageUrl: string | null;
|
|
53
|
-
ownerId: string | null;
|
|
54
|
-
isVerified: boolean;
|
|
55
|
-
createdAt: Date | string;
|
|
56
|
-
updatedAt: Date | string;
|
|
57
|
-
}
|
|
58
|
-
export interface SpotPost {
|
|
59
|
-
id: string;
|
|
60
|
-
spotId: string;
|
|
61
|
-
userId: string;
|
|
62
|
-
postType: SpotPostType;
|
|
63
|
-
title: string;
|
|
64
|
-
content: string | null;
|
|
65
|
-
emoji: string | null;
|
|
66
|
-
expiresAt: Date | null;
|
|
67
|
-
status: 'ACTIVE' | 'FULFILLED' | 'EXPIRED' | 'DELETED';
|
|
68
|
-
upvoteCount: number;
|
|
69
|
-
responseCount: number;
|
|
70
|
-
replyCount: number;
|
|
71
|
-
createdAt: Date;
|
|
72
|
-
updatedAt: Date;
|
|
73
|
-
user?: User;
|
|
74
|
-
spot?: Spot;
|
|
75
|
-
}
|
|
76
|
-
export interface PostReply {
|
|
77
|
-
id: string;
|
|
78
|
-
postId: string;
|
|
79
|
-
userId: string;
|
|
80
|
-
content: string;
|
|
81
|
-
createdAt: Date;
|
|
82
|
-
updatedAt: Date;
|
|
83
|
-
user?: User;
|
|
84
|
-
}
|
|
85
|
-
export interface PostResponse {
|
|
86
|
-
id: string;
|
|
87
|
-
postId: string;
|
|
88
|
-
userId: string;
|
|
89
|
-
note: string | null;
|
|
90
|
-
status: ResponseStatus;
|
|
91
|
-
createdAt: Date;
|
|
92
|
-
updatedAt: Date;
|
|
93
|
-
user?: User;
|
|
94
|
-
post?: SpotPost;
|
|
95
|
-
}
|
|
96
|
-
export interface PostUpvote {
|
|
97
|
-
id: string;
|
|
98
|
-
postId: string;
|
|
99
|
-
userId: string;
|
|
100
|
-
createdAt: Date;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* PostUpvoter - user who upvoted a post (from /posts/:id/upvotes endpoint)
|
|
104
|
-
*/
|
|
105
|
-
export interface PostUpvoter {
|
|
106
|
-
id: string;
|
|
107
|
-
userId: string;
|
|
108
|
-
name: string | null;
|
|
109
|
-
avatarUrl: string | null;
|
|
110
|
-
createdAt: Date;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* PostUpvotesResponse - response from /posts/:id/upvotes endpoint
|
|
114
|
-
*/
|
|
115
|
-
export interface PostUpvotesResponse {
|
|
116
|
-
data: PostUpvoter[];
|
|
117
|
-
meta: {
|
|
118
|
-
total: number;
|
|
119
|
-
limit: number;
|
|
120
|
-
offset: number;
|
|
121
|
-
hasMore: boolean;
|
|
122
|
-
currentUserUpvoted: boolean;
|
|
123
|
-
isPostAuthor: boolean;
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
export interface PostReport {
|
|
127
|
-
id: string;
|
|
128
|
-
postId: string;
|
|
129
|
-
userId: string;
|
|
130
|
-
reason: ReportReason;
|
|
131
|
-
details: string | null;
|
|
132
|
-
status: ReportStatus;
|
|
133
|
-
createdAt: Date;
|
|
134
|
-
updatedAt: Date;
|
|
135
|
-
}
|
|
136
|
-
export interface Club {
|
|
137
|
-
id: string;
|
|
138
|
-
name: string;
|
|
139
|
-
slug: string;
|
|
140
|
-
description: string | null;
|
|
141
|
-
imageUrl: string | null;
|
|
142
|
-
isPrivate: boolean;
|
|
143
|
-
createdById: string;
|
|
144
|
-
createdAt: Date;
|
|
145
|
-
updatedAt: Date;
|
|
146
|
-
}
|
|
147
|
-
export interface ClubMember {
|
|
148
|
-
id: string;
|
|
149
|
-
clubId: string;
|
|
150
|
-
userId: string;
|
|
151
|
-
role: 'MEMBER' | 'ADMIN' | 'OWNER';
|
|
152
|
-
joinedAt: Date;
|
|
153
|
-
}
|
|
154
|
-
export interface Conversation {
|
|
155
|
-
id: string;
|
|
156
|
-
createdAt: Date;
|
|
157
|
-
updatedAt: Date;
|
|
158
|
-
participants?: User[];
|
|
159
|
-
messages?: Message[];
|
|
160
|
-
}
|
|
161
|
-
export interface Message {
|
|
162
|
-
id: string;
|
|
163
|
-
conversationId: string;
|
|
164
|
-
senderId: string;
|
|
165
|
-
content: string;
|
|
166
|
-
createdAt: Date;
|
|
167
|
-
sender?: User;
|
|
168
|
-
}
|
|
169
|
-
export interface Notification {
|
|
170
|
-
id: string;
|
|
171
|
-
userId: string;
|
|
172
|
-
type: NotificationType;
|
|
173
|
-
title: string;
|
|
174
|
-
body: string | null;
|
|
175
|
-
data: Record<string, unknown> | null;
|
|
176
|
-
isRead: boolean;
|
|
177
|
-
createdAt: Date;
|
|
178
|
-
}
|
|
179
|
-
export interface PostTemplate {
|
|
180
|
-
id: string;
|
|
181
|
-
postType: SpotPostType;
|
|
182
|
-
emoji: string;
|
|
183
|
-
title: string;
|
|
184
|
-
placeholder: string | null;
|
|
185
|
-
isActive: boolean;
|
|
186
|
-
sortOrder: number;
|
|
187
|
-
createdAt: Date;
|
|
188
|
-
updatedAt: Date;
|
|
189
|
-
}
|
|
190
|
-
export interface Vibe {
|
|
191
|
-
id: string;
|
|
192
|
-
name: string;
|
|
193
|
-
emoji: string | null;
|
|
194
|
-
createdAt: Date;
|
|
195
|
-
}
|
|
196
|
-
export interface Interest {
|
|
197
|
-
id: string;
|
|
198
|
-
name: string;
|
|
199
|
-
emoji: string | null;
|
|
200
|
-
category: string | null;
|
|
201
|
-
createdAt: Date;
|
|
202
|
-
}
|
|
203
|
-
export interface Intention {
|
|
204
|
-
id: string;
|
|
205
|
-
name: string;
|
|
206
|
-
emoji: string | null;
|
|
207
|
-
createdAt: Date;
|
|
208
|
-
}
|
|
209
|
-
export interface LifeSituation {
|
|
210
|
-
id: string;
|
|
211
|
-
name: string;
|
|
212
|
-
emoji: string | null;
|
|
213
|
-
createdAt: Date;
|
|
214
|
-
}
|
|
215
|
-
export interface FavoriteSpot {
|
|
216
|
-
id: string;
|
|
217
|
-
userId: string;
|
|
218
|
-
spotId: string;
|
|
219
|
-
createdAt: Date;
|
|
220
|
-
spot?: Spot;
|
|
221
|
-
}
|
|
222
|
-
export interface SpotImage {
|
|
223
|
-
id: string;
|
|
224
|
-
spotId: string;
|
|
225
|
-
url: string;
|
|
226
|
-
caption: string | null;
|
|
227
|
-
sortOrder: number;
|
|
228
|
-
createdAt: Date;
|
|
229
|
-
}
|
|
230
|
-
export interface SpotVibe {
|
|
231
|
-
id: string;
|
|
232
|
-
spotId: string;
|
|
233
|
-
vibeId: string;
|
|
234
|
-
vibe?: Vibe;
|
|
235
|
-
}
|
|
236
|
-
export interface SpotIntention {
|
|
237
|
-
id: string;
|
|
238
|
-
spotId: string;
|
|
239
|
-
intentionId: string;
|
|
240
|
-
intention?: Intention;
|
|
241
|
-
}
|
|
242
|
-
export interface SpotClaim {
|
|
243
|
-
id: string;
|
|
244
|
-
spotId: string;
|
|
245
|
-
userId: string;
|
|
246
|
-
status: ClaimStatus;
|
|
247
|
-
verificationMethod: string | null;
|
|
248
|
-
createdAt: Date;
|
|
249
|
-
updatedAt: Date;
|
|
250
|
-
}
|
|
251
|
-
export interface SpotSubscription {
|
|
252
|
-
id: string;
|
|
253
|
-
spotId: string;
|
|
254
|
-
userId: string;
|
|
255
|
-
createdAt: Date;
|
|
256
|
-
spot?: Spot;
|
|
257
|
-
}
|
|
258
|
-
export interface City {
|
|
259
|
-
id: string;
|
|
260
|
-
name: string;
|
|
261
|
-
country: string;
|
|
262
|
-
latitude: number;
|
|
263
|
-
longitude: number;
|
|
264
|
-
timezone: string | null;
|
|
265
|
-
createdAt: Date;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Paginated response with meta information
|
|
269
|
-
*/
|
|
270
|
-
export interface PaginatedResponse<T> {
|
|
271
|
-
data: T[];
|
|
272
|
-
meta: PaginationMeta;
|
|
273
|
-
}
|
|
274
|
-
export interface PaginationMeta {
|
|
275
|
-
total: number;
|
|
276
|
-
page: number;
|
|
277
|
-
limit: number;
|
|
278
|
-
totalPages: number;
|
|
279
|
-
hasNextPage: boolean;
|
|
280
|
-
hasPreviousPage: boolean;
|
|
281
|
-
}
|
|
282
|
-
export type ProductType = 'PHYSICAL' | 'DIGITAL' | 'SERVICE' | 'BUNDLE';
|
|
283
|
-
export type ProductStatus = 'DRAFT' | 'ACTIVE' | 'SOLD_OUT' | 'ARCHIVED';
|
|
284
|
-
export type OrderStatus = 'PENDING' | 'CONFIRMED' | 'PREPARING' | 'READY' | 'COMPLETED' | 'CANCELLED' | 'REFUNDED';
|
|
285
|
-
export interface Product {
|
|
286
|
-
id: string;
|
|
287
|
-
spotId: string;
|
|
288
|
-
name: string;
|
|
289
|
-
slug: string;
|
|
290
|
-
description: string | null;
|
|
291
|
-
type: ProductType;
|
|
292
|
-
status: ProductStatus;
|
|
293
|
-
price: number;
|
|
294
|
-
currency: string;
|
|
295
|
-
imageUrl: string | null;
|
|
296
|
-
images: string[];
|
|
297
|
-
stock: number | null;
|
|
298
|
-
maxQuantity: number;
|
|
299
|
-
sortOrder: number;
|
|
300
|
-
metadata: Record<string, unknown> | null;
|
|
301
|
-
createdAt: Date;
|
|
302
|
-
updatedAt: Date;
|
|
303
|
-
}
|
|
304
|
-
export interface Order {
|
|
305
|
-
id: string;
|
|
306
|
-
spotId: string;
|
|
307
|
-
userId: string;
|
|
308
|
-
status: OrderStatus;
|
|
309
|
-
subtotal: number;
|
|
310
|
-
tax: number;
|
|
311
|
-
total: number;
|
|
312
|
-
currency: string;
|
|
313
|
-
notes: string | null;
|
|
314
|
-
metadata: Record<string, unknown> | null;
|
|
315
|
-
createdAt: Date;
|
|
316
|
-
updatedAt: Date;
|
|
317
|
-
}
|
|
318
|
-
export interface OrderItem {
|
|
319
|
-
id: string;
|
|
320
|
-
orderId: string;
|
|
321
|
-
productId: string;
|
|
322
|
-
quantity: number;
|
|
323
|
-
unitPrice: number;
|
|
324
|
-
total: number;
|
|
325
|
-
createdAt: Date;
|
|
326
|
-
}
|
package/dist/api/entities.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Spots SDK Entity Types
|
|
4
|
-
*
|
|
5
|
-
* These types mirror the Prisma schema entities but without @prisma/client dependency.
|
|
6
|
-
* This allows the SDK to work in React Native where Prisma is not available.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXRpZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXBpL2VudGl0aWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7R0FLRyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU3BvdHMgU0RLIEVudGl0eSBUeXBlc1xuICpcbiAqIFRoZXNlIHR5cGVzIG1pcnJvciB0aGUgUHJpc21hIHNjaGVtYSBlbnRpdGllcyBidXQgd2l0aG91dCBAcHJpc21hL2NsaWVudCBkZXBlbmRlbmN5LlxuICogVGhpcyBhbGxvd3MgdGhlIFNESyB0byB3b3JrIGluIFJlYWN0IE5hdGl2ZSB3aGVyZSBQcmlzbWEgaXMgbm90IGF2YWlsYWJsZS5cbiAqL1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBFTlVNU1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgdHlwZSBTcG90VHlwZSA9XG4gIHwgJ0NBRkUnXG4gIHw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iBzdHJpbmdcbiAgcXVhbnRpdHk6IG51bWJlclxuICB1bml0UHJpY2U6IG51bWJlclxuICB0b3RhbDogbnVtYmVyXG4gIGNyZWF0ZWRBdDogRGF0ZVxufVxuIl19
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Clubs Mutation Hooks
|
|
3
|
-
*
|
|
4
|
-
* TanStack Query hooks for club mutation operations.
|
|
5
|
-
*/
|
|
6
|
-
import { type UseMutationOptions, type UseMutationResult } from '@tanstack/react-query';
|
|
7
|
-
import { type Club } from '../types';
|
|
8
|
-
/**
|
|
9
|
-
* Create a new club
|
|
10
|
-
*
|
|
11
|
-
* @endpoint POST /clubs
|
|
12
|
-
*/
|
|
13
|
-
export declare function useCreateClub(options?: Omit<UseMutationOptions<Club, Error, {
|
|
14
|
-
spotId: string;
|
|
15
|
-
name: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
}>, 'mutationFn'>): UseMutationResult<Club, Error, {
|
|
18
|
-
spotId: string;
|
|
19
|
-
name: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
}>;
|
|
22
|
-
/**
|
|
23
|
-
* Update a club
|
|
24
|
-
*
|
|
25
|
-
* @endpoint PUT /clubs/{id}
|
|
26
|
-
*/
|
|
27
|
-
export declare function useUpdateClub(options?: Omit<UseMutationOptions<Club, Error, {
|
|
28
|
-
clubId: string;
|
|
29
|
-
name?: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
}>, 'mutationFn'>): UseMutationResult<Club, Error, {
|
|
32
|
-
clubId: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
description?: string;
|
|
35
|
-
}>;
|
|
36
|
-
/**
|
|
37
|
-
* Join a club
|
|
38
|
-
*
|
|
39
|
-
* @endpoint POST /clubs/{id}/join
|
|
40
|
-
*/
|
|
41
|
-
export declare function useJoinClub(options?: Omit<UseMutationOptions<void, Error, string>, 'mutationFn'>): UseMutationResult<void, Error, string>;
|
|
42
|
-
/**
|
|
43
|
-
* Leave a club
|
|
44
|
-
*
|
|
45
|
-
* @endpoint POST /clubs/{id}/leave
|
|
46
|
-
*/
|
|
47
|
-
export declare function useLeaveClub(options?: Omit<UseMutationOptions<void, Error, string>, 'mutationFn'>): UseMutationResult<void, Error, string>;
|