@salefony/api-sdk 1.0.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.
@@ -0,0 +1,1862 @@
1
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
2
+
3
+ interface SDKConfig {
4
+ baseUrl: string;
5
+ apiKey?: string;
6
+ authToken?: string;
7
+ /** Vendor API anahtarı (Marketspace desteği için) */
8
+ vendorKey?: string;
9
+ headers?: Record<string, string>;
10
+ timeout?: number;
11
+ /** Otomatik yeniden deneme sayısı */
12
+ retries?: number;
13
+ /** Geliştirici modu: Logları konsola basar */
14
+ debug?: boolean;
15
+ }
16
+ declare class ApiClient {
17
+ private readonly config;
18
+ private readonly axiosInstance;
19
+ constructor(config: SDKConfig);
20
+ private initializeInterceptors;
21
+ private updateAuthHeaders;
22
+ /**
23
+ * Bearer token ayarlar (Chainable)
24
+ */
25
+ setAuthToken(token: string): this;
26
+ /**
27
+ * Vendor API anahtarı ayarlar (Chainable)
28
+ */
29
+ setVendorKey(key: string): this;
30
+ /**
31
+ * Ekstra headerlar ekler (Chainable)
32
+ */
33
+ setExtraHeaders(headers: Record<string, string>): this;
34
+ /**
35
+ * Bearer token temizler (Chainable)
36
+ */
37
+ clearAuth(): this;
38
+ get instance(): AxiosInstance;
39
+ }
40
+
41
+ /**
42
+ * Common Query Types
43
+ */
44
+ type SortOrder = 'asc' | 'desc';
45
+ interface Pagination {
46
+ take?: number;
47
+ skip?: number;
48
+ }
49
+ type StringFilter = {
50
+ contains?: string;
51
+ startsWith?: string;
52
+ endsWith?: string;
53
+ equals?: string;
54
+ in?: string[];
55
+ notIn?: string[];
56
+ mode?: 'default' | 'insensitive';
57
+ };
58
+ type NumberFilter = {
59
+ equals?: number;
60
+ gt?: number;
61
+ gte?: number;
62
+ lt?: number;
63
+ lte?: number;
64
+ in?: number[];
65
+ notIn?: number[];
66
+ };
67
+ type BooleanFilter = {
68
+ equals?: boolean;
69
+ };
70
+ type DateFilter = {
71
+ equals?: Date | string;
72
+ gt?: Date | string;
73
+ gte?: Date | string;
74
+ lt?: Date | string;
75
+ lte?: Date | string;
76
+ };
77
+ /**
78
+ * Backend-driven query params.
79
+ * Uses columns (dot notation), filter, paginate, sort - no include/where.
80
+ */
81
+ interface QueryParams<Column extends string = string> {
82
+ /** Dot-notation columns: "id", "title", "translation.*", "parent.id" */
83
+ columns?: Column | Column[];
84
+ /** Simple filter: { isActive: true, typeId: 'x' } */
85
+ filter?: Record<string, unknown>;
86
+ /** Pagination */
87
+ paginate?: {
88
+ page?: number;
89
+ limit?: number;
90
+ };
91
+ /** Sort: "field:asc" or "field:desc" */
92
+ sort?: string;
93
+ /** Search query */
94
+ search?: string;
95
+ /** Language for translations */
96
+ language?: string;
97
+ }
98
+ /**
99
+ * @deprecated Use QueryParams instead
100
+ */
101
+ interface FindManyArgs<WhereInput = any, OrderByInput = any, IncludeInput = any, SelectInput = any> {
102
+ where?: WhereInput;
103
+ orderBy?: OrderByInput | OrderByInput[];
104
+ include?: IncludeInput;
105
+ select?: SelectInput;
106
+ take?: number;
107
+ skip?: number;
108
+ distinct?: string[];
109
+ columns?: string | string[];
110
+ page?: number;
111
+ limit?: number;
112
+ sort?: string;
113
+ filters?: Record<string, unknown>;
114
+ }
115
+ interface FindUniqueArgs<WhereInput = any, IncludeInput = any, SelectInput = any> {
116
+ where: WhereInput;
117
+ include?: IncludeInput;
118
+ select?: SelectInput;
119
+ columns?: string | string[];
120
+ }
121
+
122
+ /**
123
+ * Pagination ve liste meta bilgisi.
124
+ */
125
+ interface ListMeta {
126
+ /** Toplam kayıt sayısı */
127
+ total?: number;
128
+ /** Mevcut sayfa numarası (1-based) */
129
+ page?: number;
130
+ /** Sayfa başına kayıt sayısı */
131
+ limit?: number;
132
+ /** Toplam sayfa sayısı */
133
+ totalPages?: number;
134
+ /** Sonraki sayfa var mı */
135
+ hasNextPage?: boolean;
136
+ /** Önceki sayfa var mı */
137
+ hasPreviousPage?: boolean;
138
+ /** count (geriye uyumluluk) */
139
+ count?: number;
140
+ [key: string]: unknown;
141
+ }
142
+ interface ApiResponse<T> {
143
+ /** Ana veri payload'ı */
144
+ data: T;
145
+ /** Pagination ve ek meta bilgisi (list() için) */
146
+ meta?: ListMeta;
147
+ }
148
+ interface RequestOptions {
149
+ /** Veriyi önbelleğe alıp almayacağı (ms cinsinden) */
150
+ cache?: number;
151
+ /** Özel header eklemek için */
152
+ headers?: Record<string, string>;
153
+ }
154
+ /**
155
+ * Get params - backend-driven columns, no include.
156
+ */
157
+ interface GetParams<Column extends string = string> {
158
+ /** Resource identifier */
159
+ id: string;
160
+ /** Dot-notation columns: "id", "title", "translation.*", "parent.id" */
161
+ columns?: Column | Column[];
162
+ /** Language for translations */
163
+ language?: string;
164
+ /** @deprecated Use columns */
165
+ include?: unknown;
166
+ /** @deprecated Use columns */
167
+ select?: unknown;
168
+ }
169
+ /**
170
+ * List params - columns, filter, paginate, sort.
171
+ */
172
+ interface ListParams<Column extends string = string> {
173
+ /** Dot-notation columns */
174
+ columns?: Column | Column[];
175
+ /** Simple filter */
176
+ filter?: Record<string, unknown>;
177
+ paginate?: {
178
+ page?: number;
179
+ limit?: number;
180
+ };
181
+ /** Sort: "field:asc" or "field:desc" */
182
+ sort?: string;
183
+ search?: string;
184
+ language?: string;
185
+ /** @deprecated Use filter */
186
+ where?: Record<string, unknown>;
187
+ /** @deprecated Use columns */
188
+ include?: unknown;
189
+ /** @deprecated Use paginate */
190
+ take?: number;
191
+ skip?: number;
192
+ orderBy?: unknown;
193
+ }
194
+ declare abstract class BaseResource {
195
+ protected readonly httpClient: AxiosInstance;
196
+ constructor(httpClient: AxiosInstance);
197
+ protected request<T>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
198
+ }
199
+ /**
200
+ * C# LINQ tarzı fluent Query Builder.
201
+ * Uses columns, filter, paginate, sort - backend-driven.
202
+ */
203
+ declare class QueryBuilder<T, WhereInput, OrderByInput, IncludeInput, SelectInput, Column extends string = string> {
204
+ private readonly resource;
205
+ private args;
206
+ constructor(resource: CrudResource<T, WhereInput, OrderByInput, any, any, IncludeInput, SelectInput, Column>);
207
+ /** Add columns (dot notation) - typed for autocomplete */
208
+ columns(...cols: Column[]): this;
209
+ /** Add filter (LINQ Where) */
210
+ where(where: WhereInput | Record<string, unknown>): this;
211
+ /** Add filter (alias) */
212
+ filter(filter: Record<string, unknown>): this;
213
+ /** Sort: "field:asc" or "field:desc" */
214
+ sort(sort: string): this;
215
+ /** Artan sıralama (LINQ OrderBy) */
216
+ orderBy(orderBy: OrderByInput | OrderByInput[]): this;
217
+ /** Azalan sıralama (LINQ OrderByDescending) */
218
+ orderByDescending(field: string | OrderByInput): this;
219
+ /** @deprecated Use columns() */
220
+ include(include: IncludeInput): this;
221
+ /** @deprecated Use columns() */
222
+ select(select: SelectInput): this;
223
+ /** Alınacak kayıt sayısı (LINQ Take) */
224
+ take(take: number): this;
225
+ /** Atlanacak kayıt sayısı (LINQ Skip) */
226
+ skip(skip: number): this;
227
+ /** Sorguyu çalıştır - liste döner (LINQ ToList) */
228
+ toList(options?: RequestOptions): Promise<ApiResponse<T[]>>;
229
+ /** Sorguyu çalıştır - liste döner (execute alias) */
230
+ execute(options?: RequestOptions): Promise<ApiResponse<T[]>>;
231
+ /** İlk kaydı getir, yoksa hata (LINQ First) */
232
+ first(options?: RequestOptions): Promise<ApiResponse<T>>;
233
+ /** İlk kaydı getir, yoksa null (LINQ FirstOrDefault) */
234
+ firstOrDefault(options?: RequestOptions): Promise<ApiResponse<T | null>>;
235
+ /** Tek kayıt bekle, 0 veya 2+ ise hata (LINQ Single) */
236
+ single(options?: RequestOptions): Promise<ApiResponse<T>>;
237
+ /** Tek kayıt bekle, yoksa null (LINQ SingleOrDefault) */
238
+ singleOrDefault(options?: RequestOptions): Promise<ApiResponse<T | null>>;
239
+ /** Kayıt sayısı (LINQ Count) */
240
+ count(options?: RequestOptions): Promise<number>;
241
+ /** En az bir kayıt var mı (LINQ Any) */
242
+ any(options?: RequestOptions): Promise<boolean>;
243
+ }
244
+ declare abstract class CrudResource<T, WhereInput = any, OrderByInput = any, CreateInput = any, UpdateInput = any, IncludeInput = any, SelectInput = any, Column extends string = string> extends BaseResource {
245
+ protected readonly path: string;
246
+ constructor(httpClient: AxiosInstance, path: string);
247
+ /**
248
+ * LINQ tarzı fluent query başlatır (boş)
249
+ */
250
+ query(): QueryBuilder<T, WhereInput, OrderByInput, IncludeInput, SelectInput, Column>;
251
+ /**
252
+ * LINQ tarzı chain başlatır - where ile.
253
+ * @example sdk.admin.collections.where({ isActive: true }).orderBy({ order: 'asc' }).take(10).toList()
254
+ */
255
+ where(where: WhereInput): QueryBuilder<T, WhereInput, OrderByInput, IncludeInput, SelectInput, Column>;
256
+ /**
257
+ * Get a single resource by ID.
258
+ * @param idOrParams - ID string or { id, columns?, language? }
259
+ * @example
260
+ * sdk.admin.collections.get('xyz');
261
+ * sdk.admin.collections.get({ id: 'xyz', columns: ['id', 'title', 'translations.*', 'parent.id'] });
262
+ */
263
+ get(idOrParams: string | GetParams<Column>, options?: RequestOptions): Promise<ApiResponse<T>>;
264
+ /**
265
+ * List resources with columns, filter, paginate, sort.
266
+ * @example
267
+ * sdk.admin.collections.list({
268
+ * columns: ['id', 'title', 'translations.*', 'parent.id'],
269
+ * filter: { isActive: true },
270
+ * paginate: { page: 1, limit: 20 },
271
+ * sort: 'order:asc'
272
+ * });
273
+ */
274
+ list(params?: ListParams<Column>, options?: RequestOptions): Promise<ApiResponse<T[]>>;
275
+ /**
276
+ * Edit (update) a resource by ID (Cloudflare-style).
277
+ * @example await client.admin.collections.edit('xyz', { name: 'New Name' })
278
+ */
279
+ edit(id: string, data: UpdateInput, options?: RequestOptions): Promise<ApiResponse<T>>;
280
+ /**
281
+ * Delete a resource by ID (Cloudflare-style).
282
+ * @example await client.admin.collections.delete('xyz')
283
+ */
284
+ deleteById(id: string, options?: RequestOptions): Promise<void>;
285
+ /** @deprecated Use list() instead */
286
+ findMany(args?: FindManyArgs<WhereInput, OrderByInput, IncludeInput, SelectInput>, options?: RequestOptions): Promise<ApiResponse<T[]>>;
287
+ count(args?: {
288
+ where?: WhereInput;
289
+ }, options?: RequestOptions): Promise<number>;
290
+ /** @deprecated Use list() with take: 1 */
291
+ findFirst(args?: FindManyArgs<WhereInput, OrderByInput, IncludeInput, SelectInput>, options?: RequestOptions): Promise<ApiResponse<T>>;
292
+ /** @deprecated Use get() instead */
293
+ findUnique(args: FindUniqueArgs<WhereInput, IncludeInput, SelectInput>, options?: RequestOptions): Promise<ApiResponse<T>>;
294
+ create(data: CreateInput, options?: RequestOptions): Promise<ApiResponse<T>>;
295
+ update(where: WhereInput, data: UpdateInput, options?: RequestOptions): Promise<ApiResponse<T>>;
296
+ /** @deprecated Use deleteById() instead */
297
+ delete(where: WhereInput, options?: RequestOptions): Promise<ApiResponse<T>>;
298
+ }
299
+
300
+ /**
301
+ * Common Base Model
302
+ */
303
+ interface BaseModel {
304
+ id: string;
305
+ createdAt: string;
306
+ updatedAt: string;
307
+ }
308
+
309
+ /**
310
+ * Store Model & Filtering
311
+ */
312
+ interface Store extends BaseModel {
313
+ name: string;
314
+ slug: string;
315
+ domainName?: string;
316
+ userId: string;
317
+ isActive: boolean;
318
+ taxInformation?: any;
319
+ metadata?: any;
320
+ settings?: any;
321
+ }
322
+ interface StoreWhereInput {
323
+ id?: string | StringFilter;
324
+ name?: string | StringFilter;
325
+ slug?: string | StringFilter;
326
+ isActive?: boolean | BooleanFilter;
327
+ userId?: string | StringFilter;
328
+ AND?: StoreWhereInput[];
329
+ OR?: StoreWhereInput[];
330
+ NOT?: StoreWhereInput[];
331
+ }
332
+ interface StoreOrderByInput {
333
+ name?: SortOrder;
334
+ createdAt?: SortOrder;
335
+ updatedAt?: SortOrder;
336
+ }
337
+ interface StoreCreateInput {
338
+ name: string;
339
+ slug: string;
340
+ domainName?: string;
341
+ userId: string;
342
+ isActive?: boolean;
343
+ taxInformation?: any;
344
+ metadata?: any;
345
+ settings?: any;
346
+ }
347
+ interface StoreUpdateInput {
348
+ name?: string;
349
+ slug?: string;
350
+ domainName?: string;
351
+ isActive?: boolean;
352
+ taxInformation?: any;
353
+ metadata?: any;
354
+ settings?: any;
355
+ }
356
+ /**
357
+ * Content Model & Filtering
358
+ */
359
+ interface Content extends BaseModel {
360
+ slug: string;
361
+ collectionId: string;
362
+ order: number;
363
+ isActive: boolean;
364
+ publishedAt?: string;
365
+ storeId: string;
366
+ vendorId?: string;
367
+ }
368
+ interface ContentWhereInput {
369
+ slug?: string | StringFilter;
370
+ collectionId?: string | StringFilter;
371
+ storeId?: string | StringFilter;
372
+ vendorId?: string | StringFilter;
373
+ isActive?: boolean | BooleanFilter;
374
+ order?: number | NumberFilter;
375
+ publishedAt?: DateFilter;
376
+ }
377
+ interface ContentCreateInput {
378
+ slug: string;
379
+ collectionId: string;
380
+ order?: number;
381
+ isActive?: boolean;
382
+ publishedAt?: string;
383
+ storeId: string;
384
+ vendorId?: string;
385
+ }
386
+ interface ContentUpdateInput {
387
+ slug?: string;
388
+ collectionId?: string;
389
+ order?: number;
390
+ isActive?: boolean;
391
+ publishedAt?: string;
392
+ }
393
+ /**
394
+ * Collection Model & Filtering
395
+ */
396
+ interface Collection extends BaseModel {
397
+ name: string;
398
+ slug: string;
399
+ storeId: string;
400
+ vendorId?: string;
401
+ isActive: boolean;
402
+ order: number;
403
+ }
404
+ interface CollectionWhereInput {
405
+ name?: string | StringFilter;
406
+ slug?: string | StringFilter;
407
+ storeId?: string | StringFilter;
408
+ vendorId?: string | StringFilter;
409
+ isActive?: boolean | BooleanFilter;
410
+ }
411
+ interface CollectionCreateInput {
412
+ name: string;
413
+ slug: string;
414
+ storeId: string;
415
+ vendorId?: string;
416
+ isActive?: boolean;
417
+ order?: number;
418
+ }
419
+ interface CollectionUpdateInput {
420
+ name?: string;
421
+ slug?: string;
422
+ isActive?: boolean;
423
+ order?: number;
424
+ }
425
+ /**
426
+ * User Model
427
+ */
428
+ interface User extends BaseModel {
429
+ name?: string;
430
+ email: string;
431
+ emailVerified?: boolean;
432
+ image?: string;
433
+ phone?: string;
434
+ role?: string;
435
+ emailNotifications?: boolean;
436
+ smsNotifications?: boolean;
437
+ newsletter?: boolean;
438
+ }
439
+ interface UserWhereInput {
440
+ email?: string | StringFilter;
441
+ id?: string | StringFilter;
442
+ }
443
+ interface UserCreateInput {
444
+ email: string;
445
+ name?: string;
446
+ image?: string;
447
+ phone?: string;
448
+ }
449
+ interface UserUpdateInput {
450
+ name?: string;
451
+ image?: string;
452
+ phone?: string;
453
+ emailNotifications?: boolean;
454
+ smsNotifications?: boolean;
455
+ newsletter?: boolean;
456
+ }
457
+ /**
458
+ * Navigation Model
459
+ */
460
+ interface Navigation extends BaseModel {
461
+ name: string;
462
+ slug: string;
463
+ storeId: string;
464
+ isActive: boolean;
465
+ items?: NavigationItem[];
466
+ }
467
+ interface NavigationWhereInput {
468
+ name?: string | StringFilter;
469
+ slug?: string | StringFilter;
470
+ isActive?: boolean | BooleanFilter;
471
+ }
472
+ interface NavigationCreateInput {
473
+ name: string;
474
+ slug: string;
475
+ storeId: string;
476
+ isActive?: boolean;
477
+ }
478
+ interface NavigationUpdateInput {
479
+ name?: string;
480
+ slug?: string;
481
+ isActive?: boolean;
482
+ }
483
+ interface NavigationOrderByInput {
484
+ name?: SortOrder;
485
+ createdAt?: SortOrder;
486
+ }
487
+ interface NavigationItem extends BaseModel {
488
+ title: string;
489
+ url: string;
490
+ order: number;
491
+ parentId?: string;
492
+ navigationId: string;
493
+ }
494
+ /**
495
+ * Media Model
496
+ */
497
+ interface Media extends BaseModel {
498
+ fileName: string;
499
+ originalName: string;
500
+ mimeType: string;
501
+ size: number;
502
+ url: string;
503
+ thumbnailUrl?: string;
504
+ storeId: string;
505
+ vendorId?: string;
506
+ }
507
+ interface MediaWhereInput {
508
+ fileName?: string | StringFilter;
509
+ originalName?: string | StringFilter;
510
+ mimeType?: string | StringFilter;
511
+ storeId?: string | StringFilter;
512
+ vendorId?: string | StringFilter;
513
+ }
514
+ interface MediaCreateInput {
515
+ fileName: string;
516
+ originalName: string;
517
+ mimeType: string;
518
+ size: number;
519
+ url: string;
520
+ thumbnailUrl?: string;
521
+ storeId: string;
522
+ vendorId?: string;
523
+ }
524
+ interface MediaUpdateInput {
525
+ fileName?: string;
526
+ originalName?: string;
527
+ isActive?: boolean;
528
+ }
529
+ interface MediaOrderByInput {
530
+ createdAt?: SortOrder;
531
+ size?: SortOrder;
532
+ }
533
+ /**
534
+ * Product Model
535
+ */
536
+ interface Product extends BaseModel {
537
+ title: string;
538
+ slug: string;
539
+ description?: string;
540
+ thumbnail?: string;
541
+ images?: string[];
542
+ variants?: any[];
543
+ options?: any[];
544
+ metadata?: any;
545
+ storeId: string;
546
+ }
547
+ interface ProductWhereInput {
548
+ title?: string | StringFilter;
549
+ slug?: string | StringFilter;
550
+ storeId?: string | StringFilter;
551
+ }
552
+ /**
553
+ * Cart Model
554
+ */
555
+ interface Cart extends BaseModel {
556
+ email?: string;
557
+ items?: any[];
558
+ shippingAddress?: any;
559
+ billingAddress?: any;
560
+ metadata?: any;
561
+ storeId: string;
562
+ }
563
+ interface CartCreateInput {
564
+ email?: string;
565
+ metadata?: any;
566
+ }
567
+ interface CartUpdateInput {
568
+ email?: string;
569
+ shippingAddress?: any;
570
+ billingAddress?: any;
571
+ metadata?: any;
572
+ }
573
+ /**
574
+ * Order Model
575
+ */
576
+ interface Order extends BaseModel {
577
+ customerEmail: string;
578
+ status: string;
579
+ fulfillmentStatus: string;
580
+ paymentStatus: string;
581
+ total: number;
582
+ currencyCode: string;
583
+ items?: any[];
584
+ metadata?: any;
585
+ storeId: string;
586
+ }
587
+ /**
588
+ * RFQ Model
589
+ */
590
+ interface Rfq extends BaseModel {
591
+ userId: string;
592
+ storeId: string;
593
+ subject: string;
594
+ message: string;
595
+ status: string;
596
+ items?: any[];
597
+ metadata?: any;
598
+ }
599
+ interface RfqCreateInput {
600
+ subject: string;
601
+ message: string;
602
+ items?: any[];
603
+ metadata?: any;
604
+ }
605
+
606
+ /**
607
+ * Vendor Model & Filtering
608
+ */
609
+ interface Vendor extends BaseModel {
610
+ name: string;
611
+ slug: string;
612
+ apiKey: string;
613
+ isActive: boolean;
614
+ storeId: string;
615
+ metadata?: any;
616
+ }
617
+ interface VendorWhereInput {
618
+ id?: string | StringFilter;
619
+ name?: string | StringFilter;
620
+ slug?: string | StringFilter;
621
+ isActive?: boolean | BooleanFilter;
622
+ storeId?: string | StringFilter;
623
+ }
624
+ interface VendorOrderByInput {
625
+ name?: SortOrder;
626
+ createdAt?: SortOrder;
627
+ }
628
+ interface VendorCreateInput {
629
+ name: string;
630
+ slug: string;
631
+ apiKey?: string;
632
+ isActive?: boolean;
633
+ /** Backend API key'den otomatik alınır; client göndermezse boş bırakılabilir */
634
+ storeId?: string;
635
+ metadata?: any;
636
+ }
637
+ interface VendorUpdateInput {
638
+ name?: string;
639
+ slug?: string;
640
+ isActive?: boolean;
641
+ metadata?: any;
642
+ }
643
+ /**
644
+ * Layout Model
645
+ */
646
+ interface Layout extends BaseModel {
647
+ name: string;
648
+ slug: string;
649
+ description?: string;
650
+ layoutData?: any;
651
+ contentId?: string;
652
+ layoutType?: string;
653
+ isActive: boolean;
654
+ seoJsonLd?: any;
655
+ translations?: any[];
656
+ }
657
+ interface LayoutWhereInput {
658
+ id?: string | StringFilter;
659
+ name?: string | StringFilter;
660
+ slug?: string | StringFilter;
661
+ isActive?: boolean | BooleanFilter;
662
+ }
663
+ interface LayoutOrderByInput {
664
+ name?: SortOrder;
665
+ createdAt?: SortOrder;
666
+ }
667
+ interface LayoutCreateInput {
668
+ name: string;
669
+ slug: string;
670
+ description?: string;
671
+ layoutData?: any;
672
+ contentId?: string;
673
+ layoutType?: string;
674
+ isActive?: boolean;
675
+ seoJsonLd?: any;
676
+ translations?: any[];
677
+ }
678
+ interface LayoutUpdateInput {
679
+ name?: string;
680
+ description?: string;
681
+ layoutData?: any;
682
+ isActive?: boolean;
683
+ seoJsonLd?: any;
684
+ translations?: any[];
685
+ }
686
+ /**
687
+ * ApiKey Model
688
+ */
689
+ interface ApiKey extends BaseModel {
690
+ name: string;
691
+ key: string;
692
+ description?: string;
693
+ expiresAt?: string;
694
+ permissions?: any;
695
+ storeId: string;
696
+ isActive: boolean;
697
+ }
698
+ interface ApiKeyWhereInput {
699
+ name?: string | StringFilter;
700
+ isActive?: boolean | BooleanFilter;
701
+ }
702
+ interface ApiKeyCreateInput {
703
+ name: string;
704
+ description?: string;
705
+ expiresAt?: string;
706
+ permissions?: any;
707
+ storeId: string;
708
+ isActive?: boolean;
709
+ }
710
+ interface ApiKeyUpdateInput {
711
+ name?: string;
712
+ description?: string;
713
+ expiresAt?: string;
714
+ permissions?: any;
715
+ isActive?: boolean;
716
+ }
717
+ /**
718
+ * SEO Settings Model
719
+ */
720
+ interface SeoSettings {
721
+ title?: string;
722
+ description?: string;
723
+ keywords?: string;
724
+ ogImage?: string;
725
+ twitterCard?: string;
726
+ googleVerification?: string;
727
+ robotsTxt?: string;
728
+ sitemapEnabled?: boolean;
729
+ }
730
+ /**
731
+ * Site Settings Model
732
+ */
733
+ interface Settings extends BaseModel {
734
+ storeId: string;
735
+ config: any;
736
+ customDomain?: string;
737
+ favicon?: string;
738
+ logo?: string;
739
+ }
740
+ /**
741
+ * Language Model
742
+ */
743
+ interface Language$1 extends BaseModel {
744
+ name: string;
745
+ code: string;
746
+ isDefault: boolean;
747
+ isActive: boolean;
748
+ storeId: string;
749
+ }
750
+ interface LanguageWhereInput {
751
+ name?: string | StringFilter;
752
+ code?: string | StringFilter;
753
+ isActive?: boolean | BooleanFilter;
754
+ }
755
+ interface LanguageCreateInput {
756
+ name: string;
757
+ code: string;
758
+ isDefault?: boolean;
759
+ isActive?: boolean;
760
+ storeId: string;
761
+ }
762
+ interface LanguageUpdateInput {
763
+ name?: string;
764
+ code?: string;
765
+ isDefault?: boolean;
766
+ isActive?: boolean;
767
+ }
768
+ /**
769
+ * Datasource Model
770
+ */
771
+ interface Datasource extends BaseModel {
772
+ name: string;
773
+ slug: string;
774
+ type: string;
775
+ config: any;
776
+ storeId: string;
777
+ }
778
+ interface DatasourceWhereInput {
779
+ name?: string | StringFilter;
780
+ slug?: string | StringFilter;
781
+ type?: string | StringFilter;
782
+ }
783
+ interface DatasourceCreateInput {
784
+ name: string;
785
+ slug: string;
786
+ type: string;
787
+ config: any;
788
+ storeId: string;
789
+ }
790
+ interface DatasourceUpdateInput {
791
+ name?: string;
792
+ slug?: string;
793
+ type?: string;
794
+ config?: any;
795
+ }
796
+ /**
797
+ * Metadata Model
798
+ */
799
+ interface Metadata extends BaseModel {
800
+ key: string;
801
+ value: any;
802
+ type: string;
803
+ scope: string;
804
+ storeId: string;
805
+ }
806
+ interface MetadataWhereInput {
807
+ key?: string | StringFilter;
808
+ type?: string | StringFilter;
809
+ scope?: string | StringFilter;
810
+ }
811
+ interface MetadataCreateInput {
812
+ key: string;
813
+ value: any;
814
+ type: string;
815
+ scope: string;
816
+ storeId: string;
817
+ }
818
+ interface MetadataUpdateInput {
819
+ key?: string;
820
+ value?: any;
821
+ type?: string;
822
+ scope?: string;
823
+ }
824
+
825
+ /**
826
+ * Backend-driven column definitions for autocomplete.
827
+ * Schema is defined by backend; these types provide IntelliSense.
828
+ * Format: "field", "relation.field", "relation.*"
829
+ */
830
+ /** Collection model columns (from Prisma schema) */
831
+ type CollectionColumn = 'id' | 'slug' | 'typeId' | 'parentId' | 'order' | 'isActive' | 'metadata' | 'images' | 'banner' | 'storeId' | 'vendorId' | 'createdAt' | 'updatedAt' | 'title' | 'description' | 'type' | 'type.id' | 'type.slug' | 'type.*' | 'parent' | 'parent.id' | 'parent.slug' | 'parent.title' | 'parent.translations.*' | 'parent.*' | 'children' | 'children.id' | 'children.*' | 'translations' | 'translations.*' | 'translations.id' | 'translations.title' | 'translations.description' | 'translations.languageCode' | 'contents' | 'contents.id' | 'contents.*' | 'vendor' | 'vendor.id' | 'vendor.*';
832
+ /** Content model columns */
833
+ type ContentColumn = 'id' | 'slug' | 'collectionId' | 'typeId' | 'order' | 'isActive' | 'metadata' | 'storeId' | 'vendorId' | 'publishedAt' | 'expiresAt' | 'images' | 'banner' | 'createdAt' | 'updatedAt' | 'title' | 'description' | 'collection' | 'collection.id' | 'collection.slug' | 'collection.*' | 'translations' | 'translations.*' | 'translations.title' | 'translations.description' | 'type' | 'type.id' | 'type.*' | 'attributes' | 'attributes.*' | 'attributes.customdata' | 'attributes.entry' | 'vendor' | 'vendor.*';
834
+ /** Layout (PageLayout) model columns */
835
+ type LayoutColumn = 'id' | 'name' | 'slug' | 'description' | 'layoutData' | 'contentId' | 'layoutType' | 'isActive' | 'seoJsonLd' | 'storeId' | 'createdAt' | 'updatedAt' | 'LayoutTranslation' | 'LayoutTranslation.*' | 'LayoutTranslation.id' | 'LayoutTranslation.languageCode' | 'LayoutTranslation.seo' | 'LayoutTranslation.title' | 'LayoutTranslation.description' | 'LayoutTranslation.content';
836
+ /** Navigation model columns */
837
+ type NavigationColumn = 'id' | 'name' | 'slug' | 'description' | 'isActive' | 'menuItems' | 'storeId' | 'createdAt' | 'updatedAt' | 'items' | 'items.*' | 'items.id' | 'items.type' | 'items.order' | 'items.url' | 'items.collectionId' | 'translations' | 'translations.*';
838
+ /** Language model columns */
839
+ type LanguageColumn = 'id' | 'name' | 'code' | 'regionId' | 'regionName' | 'language' | 'isDefault' | 'isActive' | 'direction' | 'createdAt' | 'updatedAt' | 'languageData' | 'popular' | 'storeId' | 'store' | 'store.id' | 'store.*';
840
+ /** ContentTypes (Datasource) model columns */
841
+ type DatasourceColumn = 'id' | 'slug' | 'title' | 'seoJsonLd' | 'isActive' | 'images' | 'listingLayout' | 'contentLayout' | 'order' | 'storeId' | 'metadata' | 'pageId' | 'reviewMode' | 'variantMode' | 'translations' | 'translations.*' | 'store' | 'store.id' | 'store.*' | 'Collection' | 'Collection.id' | 'Collection.*' | 'Content' | 'Content.id' | 'Content.*' | 'MetaData' | 'MetaData.*' | 'pageLayout' | 'pageLayout.*';
842
+ /** MetaData model columns */
843
+ type MetadataColumn = 'id' | 'slug' | 'title' | 'seoJsonLd' | 'isActive' | 'order' | 'storeId' | 'metadata' | 'typeId' | 'displayNameVariableName' | 'type' | 'type.id' | 'type.*' | 'store' | 'store.id' | 'entries' | 'entries.*' | 'CustomData' | 'CustomData.*';
844
+ /** Vendor model columns */
845
+ type VendorColumn = 'id' | 'name' | 'slug' | 'apiKey' | 'isActive' | 'createdAt' | 'updatedAt' | 'storeId' | 'store' | 'store.id' | 'store.*' | 'collections' | 'collections.*' | 'contents' | 'contents.*';
846
+ /** ApiKey model columns */
847
+ type ApiKeyColumn = 'id' | 'name' | 'key' | 'description' | 'storeId' | 'permissions' | 'lastUsedAt' | 'expiresAt' | 'isActive' | 'createdAt' | 'updatedAt' | 'store' | 'store.id' | 'store.*';
848
+ /** Media model columns */
849
+ type MediaColumn = 'id' | 'storeId' | 'name' | 'type' | 'mimeType' | 'size' | 'url' | 'key' | 'alt' | 'width' | 'height' | 'createdAt' | 'updatedAt';
850
+ /** Store model columns */
851
+ type StoreColumn = 'id' | 'name' | 'slug' | 'domainName' | 'userId' | 'isActive' | 'createdAt' | 'updatedAt' | 'templateId' | 'google_UA_ID' | 'defaultLanguageId' | 'user' | 'user.id' | 'user.*' | 'defaultLanguage' | 'defaultLanguage.id' | 'defaultLanguage.*';
852
+ /** Project model columns (if used - content type based) */
853
+ type ProjectColumn = 'id' | 'slug' | 'sectorId' | 'createdAt' | 'updatedAt' | 'sector' | 'sector.id' | 'sector.slug' | 'sector.*' | 'translations' | 'translations.*' | 'translations.title' | 'translations.description' | 'translations.languageCode';
854
+ /** Sector model columns (if used) */
855
+ type SectorColumn = 'id' | 'slug' | 'storeId' | 'createdAt' | 'updatedAt' | 'translations' | 'translations.*';
856
+ /** PageSection model columns */
857
+ type SectionColumn = 'id' | 'name' | 'slug' | 'layoutId' | 'order' | 'sectionData' | 'storeId' | 'createdAt' | 'updatedAt' | 'layout' | 'layout.*';
858
+ /** SiteSettings model columns */
859
+ type SiteSettingsColumn = 'id' | 'key' | 'value' | 'storeId' | 'createdAt' | 'updatedAt' | 'store' | 'store.id' | 'store.*';
860
+ /** Review model columns */
861
+ type ReviewColumn = 'id' | 'storeId' | 'contentId' | 'rating' | 'comment' | 'status' | 'createdAt' | 'updatedAt' | 'content' | 'content.id' | 'content.*';
862
+ /** Generic column - use when resource schema not yet defined */
863
+ type GenericColumn = string;
864
+ /** Union of all defined column types */
865
+ type AnyColumn = CollectionColumn | ContentColumn | LayoutColumn | NavigationColumn | LanguageColumn | DatasourceColumn | MetadataColumn | VendorColumn | ApiKeyColumn | MediaColumn | StoreColumn | ProjectColumn | SectorColumn | SectionColumn | SiteSettingsColumn | ReviewColumn;
866
+ /**
867
+ * Generic column helper - provides autocomplete for any column type.
868
+ * Use with resource-specific helpers for best DX.
869
+ * @example
870
+ * const cols = columns<CollectionColumn>('id', 'slug', 'translations.*', 'parent.id');
871
+ */
872
+ declare function columns<C extends string>(...cols: C[]): C[];
873
+
874
+ /** Helper for typed columns autocomplete */
875
+ declare const vendorColumns: (...cols: VendorColumn[]) => VendorColumn[];
876
+ /**
877
+ * Vendor Kaynak Yönetimi (Admin)
878
+ */
879
+ declare class VendorResource extends CrudResource<Vendor, VendorWhereInput, VendorOrderByInput, VendorCreateInput, VendorUpdateInput, any, any, VendorColumn> {
880
+ constructor(httpClient: AxiosInstance, path?: string);
881
+ deactivate(id: string): Promise<ApiResponse<Vendor>>;
882
+ activate(id: string): Promise<ApiResponse<Vendor>>;
883
+ }
884
+
885
+ /** Helper for typed columns autocomplete */
886
+ declare const sectionColumns: (...cols: SectionColumn[]) => SectionColumn[];
887
+ declare class SectionResource extends CrudResource<any, any, any, any, any, any, any, SectionColumn> {
888
+ constructor(httpClient: AxiosInstance);
889
+ }
890
+
891
+ declare class ThemeResource extends BaseResource {
892
+ constructor(httpClient: AxiosInstance);
893
+ getAll(): Promise<ApiResponse<any>>;
894
+ getInstalled(): Promise<ApiResponse<any>>;
895
+ install(themeId: string): Promise<ApiResponse<any>>;
896
+ getById(id: string): Promise<ApiResponse<any>>;
897
+ }
898
+
899
+ /** Helper for typed columns autocomplete */
900
+ declare const layoutColumns: (...cols: LayoutColumn[]) => LayoutColumn[];
901
+ declare class LayoutResource extends CrudResource<Layout, LayoutWhereInput, LayoutOrderByInput, LayoutCreateInput, LayoutUpdateInput, any, any, LayoutColumn> {
902
+ constructor(httpClient: AxiosInstance, path?: string);
903
+ getLayout(id: string): Promise<ApiResponse<any>>;
904
+ updateLayout(id: string, data: any): Promise<ApiResponse<any>>;
905
+ getEditInfo(previewUrl: string): Promise<ApiResponse<any>>;
906
+ updateEditInfo(previewUrl: string, data: any): Promise<ApiResponse<any>>;
907
+ getTranslate(id: string, language?: string, source?: string): Promise<ApiResponse<any>>;
908
+ updateTranslate(id: string, data: {
909
+ items?: any[];
910
+ targetLanguage?: string;
911
+ }): Promise<ApiResponse<any>>;
912
+ }
913
+
914
+ declare class SettingsResource extends BaseResource {
915
+ private path;
916
+ constructor(httpClient: AxiosInstance, path?: string);
917
+ get(): Promise<ApiResponse<Settings[]>>;
918
+ update(data: any): Promise<ApiResponse<any>>;
919
+ initialize(): Promise<ApiResponse<any>>;
920
+ getLinking(): Promise<ApiResponse<any>>;
921
+ deleteLinking(id: string): Promise<ApiResponse<any>>;
922
+ getSiteLinking(): Promise<ApiResponse<any>>;
923
+ updateSiteLinking(data: any): Promise<ApiResponse<any>>;
924
+ getTranslate(id: string, source?: string): Promise<ApiResponse<any>>;
925
+ updateTranslate(id: string, data: any): Promise<ApiResponse<any>>;
926
+ }
927
+
928
+ /** Helper for typed columns autocomplete */
929
+ declare const apiKeyColumns: (...cols: ApiKeyColumn[]) => ApiKeyColumn[];
930
+ declare class ApiKeyResource extends CrudResource<ApiKey, ApiKeyWhereInput, any, ApiKeyCreateInput, ApiKeyUpdateInput, any, any, ApiKeyColumn> {
931
+ constructor(httpClient: AxiosInstance, path?: string);
932
+ revoke(id: string): Promise<ApiResponse<ApiKey>>;
933
+ }
934
+
935
+ /** Helper for typed columns autocomplete */
936
+ declare const datasourceColumns: (...cols: DatasourceColumn[]) => DatasourceColumn[];
937
+ declare class DatasourceResource extends CrudResource<Datasource, DatasourceWhereInput, any, CreateDatasourceInput, UpdateDatasourceInput, any, any, DatasourceColumn> {
938
+ constructor(httpClient: AxiosInstance, path?: string);
939
+ getById(id: string): Promise<ApiResponse<any>>;
940
+ updateLinking(id: string, linking: any): Promise<ApiResponse<any>>;
941
+ getTranslate(id: string, source?: string): Promise<ApiResponse<any>>;
942
+ updateTranslate(id: string, data: any): Promise<ApiResponse<any>>;
943
+ }
944
+ interface CreateDatasourceInput extends DatasourceCreateInput {
945
+ title?: string;
946
+ }
947
+ interface UpdateDatasourceInput extends DatasourceUpdateInput {
948
+ title?: string;
949
+ }
950
+
951
+ /** Helper for typed columns autocomplete */
952
+ declare const metadataColumns: (...cols: MetadataColumn[]) => MetadataColumn[];
953
+ declare class MetadataResource extends CrudResource<Metadata, MetadataWhereInput, any, MetadataCreateInput, MetadataUpdateInput, any, any, MetadataColumn> {
954
+ constructor(httpClient: AxiosInstance, path?: string);
955
+ /** Get metadata by ID (backend GET /:id) */
956
+ getById(id: string): Promise<ApiResponse<Metadata>>;
957
+ /** @deprecated Use edit(id, data) instead */
958
+ updateById(id: string, data: any): Promise<ApiResponse<Metadata>>;
959
+ /** Delete metadata (backend DELETE /:id) - Cloudflare-style */
960
+ deleteById(id: string): Promise<void>;
961
+ /**
962
+ * Get metadata entry form
963
+ */
964
+ getEntryForm(metadataId: string): Promise<ApiResponse<any>>;
965
+ /**
966
+ * Create a meta entry
967
+ */
968
+ createEntry(metadataId: string, data: any): Promise<ApiResponse<any>>;
969
+ /**
970
+ * Update a meta entry
971
+ */
972
+ updateEntry(metadataId: string, entryId: string, data: any): Promise<ApiResponse<any>>;
973
+ /**
974
+ * Delete a meta entry
975
+ */
976
+ deleteEntry(metadataId: string, entryId: string): Promise<ApiResponse<any>>;
977
+ /**
978
+ * Get entry by ID
979
+ */
980
+ getEntryById(metadataId: string, entryId: string): Promise<ApiResponse<any>>;
981
+ }
982
+
983
+ declare class SEOResource extends BaseResource {
984
+ private readonly path;
985
+ constructor(httpClient: AxiosInstance, path?: string);
986
+ /**
987
+ * SEO doğrulama durumunu getirir (Validates listesi)
988
+ */
989
+ getValidation(): Promise<ApiResponse<any[]>>;
990
+ /**
991
+ * Site ayarlarını getirir (UtilityController üzerinden)
992
+ */
993
+ getSettings(languageCode?: string): Promise<ApiResponse<any>>;
994
+ /**
995
+ * Site ayarlarını günceller (UtilityController üzerinden)
996
+ */
997
+ updateSettings(data: any): Promise<ApiResponse<any>>;
998
+ }
999
+
1000
+ /** Helper for typed columns autocomplete */
1001
+ declare const storeColumns: (...cols: StoreColumn[]) => StoreColumn[];
1002
+ declare class StoreResource$1 extends CrudResource<Store, StoreWhereInput, StoreOrderByInput, StoreCreateInput, StoreUpdateInput, any, any, StoreColumn> {
1003
+ constructor(httpClient: AxiosInstance, path?: string);
1004
+ getStore(): Promise<ApiResponse<Store>>;
1005
+ getStoreGraph(body: {
1006
+ fields?: string[];
1007
+ filters?: any;
1008
+ pagination?: {
1009
+ skip?: number;
1010
+ take?: number;
1011
+ order?: any;
1012
+ };
1013
+ }): Promise<ApiResponse<any>>;
1014
+ updateStore(data: {
1015
+ billing?: any;
1016
+ }): Promise<ApiResponse<any>>;
1017
+ }
1018
+
1019
+ /** Helper for typed columns autocomplete */
1020
+ declare const contentColumns$1: (...cols: ContentColumn[]) => ContentColumn[];
1021
+ declare class ContentResource$1 extends CrudResource<Content, ContentWhereInput, any, ContentCreateInput, ContentUpdateInput, any, any, ContentColumn> {
1022
+ constructor(httpClient: AxiosInstance, path?: string);
1023
+ /** @deprecated Use edit(id, data) instead */
1024
+ updateById(id: string, data: any): Promise<ApiResponse<any>>;
1025
+ getLinking(id: string): Promise<ApiResponse<any>>;
1026
+ updateLinking(id: string, data: any): Promise<ApiResponse<any>>;
1027
+ getTranslate(id: string, source?: string): Promise<ApiResponse<any>>;
1028
+ updateTranslate(id: string, data: any): Promise<ApiResponse<any>>;
1029
+ getVariants(id: string): Promise<ApiResponse<any>>;
1030
+ updateVariants(id: string, data: any): Promise<ApiResponse<any>>;
1031
+ updateCustomData(id: string, data: any): Promise<ApiResponse<any>>;
1032
+ getImportSchema(): Promise<ApiResponse<any>>;
1033
+ bulkImport(data: any): Promise<ApiResponse<any>>;
1034
+ createMockData(): Promise<ApiResponse<any>>;
1035
+ }
1036
+
1037
+ /** Helper for typed columns autocomplete */
1038
+ declare const collectionColumns$1: (...cols: CollectionColumn[]) => CollectionColumn[];
1039
+ declare class CollectionResource$1 extends CrudResource<Collection, CollectionWhereInput, any, CollectionCreateInput, CollectionUpdateInput, any, any, CollectionColumn> {
1040
+ constructor(httpClient: AxiosInstance, path?: string);
1041
+ /** @deprecated Use edit(id, data) instead */
1042
+ updateById(id: string, data: any): Promise<ApiResponse<any>>;
1043
+ getTranslate(id: string, source?: string): Promise<ApiResponse<any>>;
1044
+ updateTranslate(id: string, data: any): Promise<ApiResponse<any>>;
1045
+ bulkImport(data: any): Promise<ApiResponse<any>>;
1046
+ }
1047
+
1048
+ /** Helper for typed columns autocomplete */
1049
+ declare const navigationColumns: (...cols: NavigationColumn[]) => NavigationColumn[];
1050
+ declare class NavigationResource$1 extends CrudResource<Navigation, NavigationWhereInput, NavigationOrderByInput, NavigationCreateInput, NavigationUpdateInput, any, any, NavigationColumn> {
1051
+ constructor(httpClient: AxiosInstance, path?: string);
1052
+ getItems(navigationId: string): Promise<ApiResponse<any[]>>;
1053
+ createItem(navigationId: string, data: any): Promise<ApiResponse<any>>;
1054
+ updateItemsOrder(navigationId: string, items: any[]): Promise<ApiResponse<any>>;
1055
+ updateItem(itemId: string, data: any): Promise<ApiResponse<any>>;
1056
+ getItemById(itemId: string): Promise<ApiResponse<any>>;
1057
+ deleteItem(itemId: string): Promise<ApiResponse<any>>;
1058
+ getTranslate(id: string, source?: string): Promise<ApiResponse<any>>;
1059
+ updateTranslate(id: string, data: any): Promise<ApiResponse<any>>;
1060
+ }
1061
+
1062
+ /** Backend CreateMediaDto: pre-signed URL flow */
1063
+ interface AdminMediaCreateInput {
1064
+ fileName: string;
1065
+ contentType: string;
1066
+ fileSize?: number;
1067
+ width?: number | null;
1068
+ height?: number | null;
1069
+ alt?: string;
1070
+ }
1071
+ declare class MediaResource$1 extends BaseResource {
1072
+ private path;
1073
+ constructor(httpClient: AxiosInstance, path?: string);
1074
+ getAll(): Promise<ApiResponse<Media[]>>;
1075
+ create(data: AdminMediaCreateInput): Promise<ApiResponse<{
1076
+ media: Media;
1077
+ uploadUrl: string;
1078
+ }>>;
1079
+ getById(mediaId: string): Promise<ApiResponse<Media>>;
1080
+ /** Cloudflare-style: delete resource by ID */
1081
+ deleteById(mediaId: string): Promise<void>;
1082
+ /** @deprecated Use deleteById(id) instead */
1083
+ delete(mediaId: string): Promise<ApiResponse<any>>;
1084
+ }
1085
+
1086
+ /** Helper for typed columns autocomplete */
1087
+ declare const languageColumns: (...cols: LanguageColumn[]) => LanguageColumn[];
1088
+ declare class LanguageResource$1 extends CrudResource<Language$1, LanguageWhereInput, any, LanguageCreateInput, LanguageUpdateInput, any, any, LanguageColumn> {
1089
+ constructor(httpClient: AxiosInstance, path?: string);
1090
+ /**
1091
+ * Get default language
1092
+ */
1093
+ getDefault(): Promise<ApiResponse<Language$1>>;
1094
+ }
1095
+
1096
+ /**
1097
+ * Better Auth Login isteği
1098
+ */
1099
+ interface LoginInput {
1100
+ email: string;
1101
+ password?: string;
1102
+ provider: 'email' | 'google';
1103
+ }
1104
+ /**
1105
+ * Better Auth Register isteği
1106
+ */
1107
+ interface RegisterInput {
1108
+ email: string;
1109
+ password?: string;
1110
+ name: string;
1111
+ image?: string;
1112
+ }
1113
+ /**
1114
+ * Better Auth Mobil Login Yanıtı
1115
+ */
1116
+ interface AuthResponse {
1117
+ accessToken: string;
1118
+ refreshToken: string;
1119
+ user: User;
1120
+ storeId?: string;
1121
+ }
1122
+ /**
1123
+ * Better Auth Session Yanıtı
1124
+ */
1125
+ interface SessionResponse {
1126
+ session: {
1127
+ id: string;
1128
+ userId: string;
1129
+ expiresAt: Date;
1130
+ token: string;
1131
+ createdAt: Date;
1132
+ updatedAt: Date;
1133
+ ipAddress?: string;
1134
+ userAgent?: string;
1135
+ };
1136
+ user: User;
1137
+ }
1138
+ /**
1139
+ * Token doğrulama yanıtı
1140
+ */
1141
+ interface TokenValidateResponse {
1142
+ userId: string;
1143
+ storeId: string;
1144
+ sessionId: string;
1145
+ }
1146
+
1147
+ /**
1148
+ * Better Auth - Kimlik Doğrulama Kaynağı
1149
+ * Admin ve Frontstore için ortak kullanılabilir ancak burada admin namespace'i içinde yapılandırılmıştır.
1150
+ */
1151
+ declare class AuthResource extends BaseResource {
1152
+ private path;
1153
+ constructor(httpClient: AxiosInstance, path?: string);
1154
+ /**
1155
+ * Email/Password ile giriş (Web - Cookie based)
1156
+ */
1157
+ signInEmail(input: Omit<LoginInput, 'provider'>): Promise<ApiResponse<any>>;
1158
+ /**
1159
+ * Email/Password ile kayıt (Web - Cookie based)
1160
+ */
1161
+ signUpEmail(input: RegisterInput): Promise<ApiResponse<any>>;
1162
+ /**
1163
+ * Mobil Uygulama Login (Token based)
1164
+ * Bu metod, SDK kullanımı için en uygun olanıdır.
1165
+ */
1166
+ mobileLogin(input: LoginInput): Promise<ApiResponse<AuthResponse>>;
1167
+ /**
1168
+ * Mobil Token Yenileme
1169
+ */
1170
+ mobileRefresh(token: string): Promise<ApiResponse<{
1171
+ accessToken: string;
1172
+ refreshToken: string;
1173
+ }>>;
1174
+ /**
1175
+ * Mobil Token Doğrulama
1176
+ */
1177
+ mobileValidate(): Promise<ApiResponse<TokenValidateResponse>>;
1178
+ /**
1179
+ * Mevcut session bilgisini getirir
1180
+ */
1181
+ getSession(): Promise<ApiResponse<SessionResponse>>;
1182
+ /**
1183
+ * Çıkış yap (Backend: POST /api/auth/logout)
1184
+ */
1185
+ signOut(): Promise<ApiResponse<any>>;
1186
+ /**
1187
+ * Logout - invalidate session on backend (Backend: POST /api/auth/logout)
1188
+ */
1189
+ logout(): Promise<ApiResponse<any>>;
1190
+ }
1191
+
1192
+ declare class GoogleResource extends BaseResource {
1193
+ constructor(httpClient: AxiosInstance);
1194
+ getSites(): Promise<ApiResponse<any>>;
1195
+ getAnalytics(propertyId: string): Promise<ApiResponse<any>>;
1196
+ updateSitemap(siteUrl: string, sitemapUrl: string): Promise<ApiResponse<any>>;
1197
+ getPerformance(siteUrl: string, startDate: string, endDate: string): Promise<ApiResponse<any>>;
1198
+ connectGoogleAnalytics(data: {
1199
+ accessToken: string;
1200
+ refreshToken?: string;
1201
+ scope?: string;
1202
+ expiresAt?: number;
1203
+ }): Promise<ApiResponse<any>>;
1204
+ getAnalyticsAccount(): Promise<ApiResponse<any>>;
1205
+ getAnalyticsAccountDetails(acc: string): Promise<ApiResponse<any>>;
1206
+ getDetailedAnalytics(acc: string, propertyId: string, reportType: string): Promise<ApiResponse<any>>;
1207
+ }
1208
+
1209
+ declare class CloudflareResource extends BaseResource {
1210
+ constructor(httpClient: AxiosInstance);
1211
+ getAccounts(): Promise<ApiResponse<any>>;
1212
+ getZones(verified?: string): Promise<ApiResponse<any>>;
1213
+ getZonesSelect(): Promise<ApiResponse<any>>;
1214
+ createZone(domain: string, openProviderData?: any): Promise<ApiResponse<any>>;
1215
+ getZoneById(zoneId: string): Promise<ApiResponse<any>>;
1216
+ createDnsRecord(zoneId: string, data: any): Promise<ApiResponse<any>>;
1217
+ updateDnsRecord(zoneId: string, data: any): Promise<ApiResponse<any>>;
1218
+ deleteDnsRecord(zoneId: string, dnsId: string): Promise<ApiResponse<any>>;
1219
+ submitSitemap(): Promise<ApiResponse<any>>;
1220
+ checkZone(zoneId: string): Promise<ApiResponse<any>>;
1221
+ getAccountById(accountId: string): Promise<ApiResponse<any>>;
1222
+ fixWebmasterVerify(): Promise<ApiResponse<any>>;
1223
+ searchDomains(query: string): Promise<ApiResponse<any>>;
1224
+ buyDomain(data: {
1225
+ domain: {
1226
+ domain: string;
1227
+ };
1228
+ cardToken: string;
1229
+ }): Promise<ApiResponse<any>>;
1230
+ }
1231
+
1232
+ declare class ReviewResource$1 extends CrudResource<any> {
1233
+ constructor(httpClient: AxiosInstance);
1234
+ getReviews(params?: any): Promise<ApiResponse<any>>;
1235
+ }
1236
+
1237
+ declare class CustomDataResource extends BaseResource {
1238
+ constructor(httpClient: AxiosInstance);
1239
+ getAll(scope: string): Promise<ApiResponse<any>>;
1240
+ create(scope: string, data: any): Promise<ApiResponse<any>>;
1241
+ getById(scope: string, id: string): Promise<ApiResponse<any>>;
1242
+ update(scope: string, id: string, data: any): Promise<ApiResponse<any>>;
1243
+ delete(scope: string, id: string): Promise<ApiResponse<any>>;
1244
+ getForm(scope: string, type: string): Promise<ApiResponse<any>>;
1245
+ getFormVariants(scope: string, categoryId: string): Promise<ApiResponse<any>>;
1246
+ }
1247
+
1248
+ /** Helper for typed columns autocomplete */
1249
+ declare const projectColumns: (...cols: ProjectColumn[]) => ProjectColumn[];
1250
+ declare class ProjectResource extends CrudResource<any, any, any, any, any, any, any, ProjectColumn> {
1251
+ constructor(httpClient: AxiosInstance);
1252
+ }
1253
+
1254
+ /** Helper for typed columns autocomplete */
1255
+ declare const sectorColumns: (...cols: SectorColumn[]) => SectorColumn[];
1256
+ declare class SectorResource extends CrudResource<any, any, any, any, any, any, any, SectorColumn> {
1257
+ constructor(httpClient: AxiosInstance);
1258
+ }
1259
+
1260
+ declare class WebmailResource extends BaseResource {
1261
+ constructor(httpClient: AxiosInstance);
1262
+ getWebmail(): Promise<ApiResponse<any>>;
1263
+ getMailboxes(email?: string): Promise<ApiResponse<any>>;
1264
+ createMailbox(data: any): Promise<ApiResponse<any>>;
1265
+ updateMailbox(data: any): Promise<ApiResponse<any>>;
1266
+ deleteMailbox(email: string): Promise<ApiResponse<any>>;
1267
+ }
1268
+
1269
+ declare class SubscriptionResource extends BaseResource {
1270
+ constructor(httpClient: AxiosInstance);
1271
+ getPackages(category?: string): Promise<ApiResponse<any>>;
1272
+ subscribe(data: any): Promise<ApiResponse<any>>;
1273
+ getCurrentSubscription(): Promise<ApiResponse<any>>;
1274
+ cancelSubscription(id: string): Promise<ApiResponse<any>>;
1275
+ upgradeSubscription(data: any): Promise<ApiResponse<any>>;
1276
+ retrySubscription(data: any): Promise<ApiResponse<any>>;
1277
+ getBilling(): Promise<ApiResponse<any>>;
1278
+ validateSubscription(): Promise<ApiResponse<any>>;
1279
+ }
1280
+
1281
+ declare class PurchaseResource extends BaseResource {
1282
+ constructor(httpClient: AxiosInstance);
1283
+ getPurchases(): Promise<ApiResponse<any>>;
1284
+ createPurchase(data: any): Promise<ApiResponse<any>>;
1285
+ }
1286
+
1287
+ type index$5_AdminMediaCreateInput = AdminMediaCreateInput;
1288
+ type index$5_ApiKeyResource = ApiKeyResource;
1289
+ declare const index$5_ApiKeyResource: typeof ApiKeyResource;
1290
+ type index$5_AuthResource = AuthResource;
1291
+ declare const index$5_AuthResource: typeof AuthResource;
1292
+ type index$5_CloudflareResource = CloudflareResource;
1293
+ declare const index$5_CloudflareResource: typeof CloudflareResource;
1294
+ type index$5_CreateDatasourceInput = CreateDatasourceInput;
1295
+ type index$5_CustomDataResource = CustomDataResource;
1296
+ declare const index$5_CustomDataResource: typeof CustomDataResource;
1297
+ type index$5_DatasourceResource = DatasourceResource;
1298
+ declare const index$5_DatasourceResource: typeof DatasourceResource;
1299
+ type index$5_GoogleResource = GoogleResource;
1300
+ declare const index$5_GoogleResource: typeof GoogleResource;
1301
+ type index$5_LayoutResource = LayoutResource;
1302
+ declare const index$5_LayoutResource: typeof LayoutResource;
1303
+ type index$5_MetadataResource = MetadataResource;
1304
+ declare const index$5_MetadataResource: typeof MetadataResource;
1305
+ type index$5_ProjectResource = ProjectResource;
1306
+ declare const index$5_ProjectResource: typeof ProjectResource;
1307
+ type index$5_PurchaseResource = PurchaseResource;
1308
+ declare const index$5_PurchaseResource: typeof PurchaseResource;
1309
+ type index$5_SEOResource = SEOResource;
1310
+ declare const index$5_SEOResource: typeof SEOResource;
1311
+ type index$5_SectionResource = SectionResource;
1312
+ declare const index$5_SectionResource: typeof SectionResource;
1313
+ type index$5_SectorResource = SectorResource;
1314
+ declare const index$5_SectorResource: typeof SectorResource;
1315
+ type index$5_SettingsResource = SettingsResource;
1316
+ declare const index$5_SettingsResource: typeof SettingsResource;
1317
+ type index$5_SubscriptionResource = SubscriptionResource;
1318
+ declare const index$5_SubscriptionResource: typeof SubscriptionResource;
1319
+ type index$5_ThemeResource = ThemeResource;
1320
+ declare const index$5_ThemeResource: typeof ThemeResource;
1321
+ type index$5_UpdateDatasourceInput = UpdateDatasourceInput;
1322
+ type index$5_VendorResource = VendorResource;
1323
+ declare const index$5_VendorResource: typeof VendorResource;
1324
+ type index$5_WebmailResource = WebmailResource;
1325
+ declare const index$5_WebmailResource: typeof WebmailResource;
1326
+ declare const index$5_apiKeyColumns: typeof apiKeyColumns;
1327
+ declare const index$5_datasourceColumns: typeof datasourceColumns;
1328
+ declare const index$5_languageColumns: typeof languageColumns;
1329
+ declare const index$5_layoutColumns: typeof layoutColumns;
1330
+ declare const index$5_metadataColumns: typeof metadataColumns;
1331
+ declare const index$5_navigationColumns: typeof navigationColumns;
1332
+ declare const index$5_projectColumns: typeof projectColumns;
1333
+ declare const index$5_sectionColumns: typeof sectionColumns;
1334
+ declare const index$5_sectorColumns: typeof sectorColumns;
1335
+ declare const index$5_storeColumns: typeof storeColumns;
1336
+ declare const index$5_vendorColumns: typeof vendorColumns;
1337
+ declare namespace index$5 {
1338
+ export { type index$5_AdminMediaCreateInput as AdminMediaCreateInput, index$5_ApiKeyResource as ApiKeyResource, index$5_AuthResource as AuthResource, index$5_CloudflareResource as CloudflareResource, CollectionResource$1 as CollectionResource, ContentResource$1 as ContentResource, type index$5_CreateDatasourceInput as CreateDatasourceInput, index$5_CustomDataResource as CustomDataResource, index$5_DatasourceResource as DatasourceResource, index$5_GoogleResource as GoogleResource, LanguageResource$1 as LanguageResource, index$5_LayoutResource as LayoutResource, MediaResource$1 as MediaResource, index$5_MetadataResource as MetadataResource, NavigationResource$1 as NavigationResource, index$5_ProjectResource as ProjectResource, index$5_PurchaseResource as PurchaseResource, ReviewResource$1 as ReviewResource, index$5_SEOResource as SEOResource, index$5_SectionResource as SectionResource, index$5_SectorResource as SectorResource, index$5_SettingsResource as SettingsResource, StoreResource$1 as StoreResource, index$5_SubscriptionResource as SubscriptionResource, index$5_ThemeResource as ThemeResource, type index$5_UpdateDatasourceInput as UpdateDatasourceInput, index$5_VendorResource as VendorResource, index$5_WebmailResource as WebmailResource, index$5_apiKeyColumns as apiKeyColumns, collectionColumns$1 as collectionColumns, contentColumns$1 as contentColumns, index$5_datasourceColumns as datasourceColumns, index$5_languageColumns as languageColumns, index$5_layoutColumns as layoutColumns, index$5_metadataColumns as metadataColumns, index$5_navigationColumns as navigationColumns, index$5_projectColumns as projectColumns, index$5_sectionColumns as sectionColumns, index$5_sectorColumns as sectorColumns, index$5_storeColumns as storeColumns, index$5_vendorColumns as vendorColumns };
1339
+ }
1340
+
1341
+ declare class StoreResource extends CrudResource<Store, StoreWhereInput, StoreOrderByInput, StoreCreateInput, StoreUpdateInput> {
1342
+ constructor(httpClient: AxiosInstance, path?: string);
1343
+ getBySlug(slug: string): Promise<Store | null>;
1344
+ }
1345
+
1346
+ /** Helper for typed columns autocomplete */
1347
+ declare const contentColumns: (...cols: ContentColumn[]) => ContentColumn[];
1348
+ declare class ContentResource extends CrudResource<Content, ContentWhereInput, any, ContentCreateInput, ContentUpdateInput, any, any, ContentColumn> {
1349
+ constructor(httpClient: AxiosInstance, path?: string);
1350
+ getByCollection(collectionId: string): Promise<ApiResponse<Content[]>>;
1351
+ getByScope(scope: string, query?: any): Promise<ApiResponse<any>>;
1352
+ getByIdByScope(scope: string, id: string, query?: any): Promise<ApiResponse<Content>>;
1353
+ }
1354
+
1355
+ /** Helper for typed columns autocomplete */
1356
+ declare const collectionColumns: (...cols: CollectionColumn[]) => CollectionColumn[];
1357
+ declare class CollectionResource extends CrudResource<Collection, CollectionWhereInput, any, CollectionCreateInput, CollectionUpdateInput, any, any, CollectionColumn> {
1358
+ constructor(httpClient: AxiosInstance, path?: string);
1359
+ getByStore(storeId: string): Promise<ApiResponse<Collection[]>>;
1360
+ getByScope(scope: string, query?: any): Promise<ApiResponse<any>>;
1361
+ getFilters(scope: string, filters: any, language?: string, parentId?: string): Promise<ApiResponse<any>>;
1362
+ }
1363
+
1364
+ declare class NavigationResource extends CrudResource<Navigation, NavigationWhereInput, NavigationOrderByInput, NavigationCreateInput, NavigationUpdateInput> {
1365
+ constructor(httpClient: AxiosInstance, path?: string);
1366
+ getItems(navigationId: string): Promise<ApiResponse<NavigationItem[]>>;
1367
+ }
1368
+
1369
+ declare class MediaResource extends CrudResource<Media, MediaWhereInput, MediaOrderByInput, MediaCreateInput, MediaUpdateInput> {
1370
+ constructor(httpClient: AxiosInstance, path?: string);
1371
+ }
1372
+
1373
+ declare class UserResource extends CrudResource<User, UserWhereInput, any, UserCreateInput, UserUpdateInput> {
1374
+ constructor(httpClient: AxiosInstance, path?: string);
1375
+ me(): Promise<ApiResponse<User>>;
1376
+ }
1377
+
1378
+ declare class ShopResource extends BaseResource {
1379
+ constructor(httpClient: AxiosInstance);
1380
+ getProducts(params?: any): Promise<ApiResponse<Product[]>>;
1381
+ getProduct(id: string): Promise<ApiResponse<Product>>;
1382
+ createCart(data: CartCreateInput): Promise<ApiResponse<Cart>>;
1383
+ getCart(id: string): Promise<ApiResponse<Cart>>;
1384
+ updateCart(id: string, data: CartUpdateInput): Promise<ApiResponse<Cart>>;
1385
+ addLineItem(cartId: string, data: {
1386
+ variantId: string;
1387
+ quantity: number;
1388
+ metadata?: any;
1389
+ }): Promise<ApiResponse<Cart>>;
1390
+ updateLineItem(cartId: string, lineId: string, data: {
1391
+ quantity: number;
1392
+ metadata?: any;
1393
+ }): Promise<ApiResponse<Cart>>;
1394
+ removeLineItem(cartId: string, lineId: string): Promise<ApiResponse<Cart>>;
1395
+ completeCart(cartId: string): Promise<ApiResponse<Order>>;
1396
+ getMyOrders(params?: {
1397
+ limit?: number;
1398
+ offset?: number;
1399
+ }): Promise<ApiResponse<Order[]>>;
1400
+ getOrder(id: string): Promise<ApiResponse<Order>>;
1401
+ createPaymentLink(data: any): Promise<ApiResponse<any>>;
1402
+ handlePaymentCallback(data: any): Promise<ApiResponse<any>>;
1403
+ getInstallments(data: any): Promise<ApiResponse<any>>;
1404
+ getCards(): Promise<ApiResponse<any>>;
1405
+ saveCard(data: any): Promise<ApiResponse<any>>;
1406
+ deleteCard(cardToken: string): Promise<ApiResponse<any>>;
1407
+ }
1408
+
1409
+ declare class UtilityResource extends BaseResource {
1410
+ constructor(httpClient: AxiosInstance);
1411
+ search(query: string, language?: string): Promise<ApiResponse<any>>;
1412
+ getRfqs(userId: string): Promise<ApiResponse<Rfq[]>>;
1413
+ getRfqById(userId: string, id: string): Promise<ApiResponse<Rfq>>;
1414
+ createRfq(userId: string, data: RfqCreateInput): Promise<ApiResponse<Rfq>>;
1415
+ getSettings(languageCode?: string): Promise<ApiResponse<any>>;
1416
+ updateSettings(id: string, language: string, data: any): Promise<ApiResponse<any>>;
1417
+ getRobots(): Promise<string>;
1418
+ getSitemap(): Promise<string>;
1419
+ getSitemapPart(scope: string, part: string, language?: string): Promise<string>;
1420
+ }
1421
+
1422
+ declare class FavoriteResource extends BaseResource {
1423
+ constructor(httpClient: AxiosInstance);
1424
+ getFavorites(userId: string, language?: string): Promise<ApiResponse<any[]>>;
1425
+ addFavorite(userId: string, contentId: string): Promise<ApiResponse<any>>;
1426
+ removeFavorite(userId: string, id?: string, contentId?: string): Promise<ApiResponse<any>>;
1427
+ }
1428
+
1429
+ interface Language {
1430
+ id: string;
1431
+ name: string;
1432
+ code: string;
1433
+ isActive: boolean;
1434
+ isDefault: boolean;
1435
+ }
1436
+ declare class LanguageResource extends BaseResource {
1437
+ constructor(httpClient: AxiosInstance);
1438
+ getLanguages(includeInactive?: boolean): Promise<ApiResponse<Language[]>>;
1439
+ }
1440
+
1441
+ declare class PageLayoutResource extends CrudResource<any> {
1442
+ constructor(httpClient: AxiosInstance);
1443
+ getById(id: string, contentId?: string, preview?: boolean): Promise<ApiResponse<any>>;
1444
+ }
1445
+
1446
+ declare class ContentTypesResource extends CrudResource<any> {
1447
+ constructor(httpClient: AxiosInstance);
1448
+ }
1449
+
1450
+ declare class ReviewResource extends BaseResource {
1451
+ private path;
1452
+ constructor(httpClient: AxiosInstance);
1453
+ getReviews(slug: string, page?: number, limit?: number, language?: string): Promise<ApiResponse<any>>;
1454
+ createReview(slug: string, userId: string, data: {
1455
+ note: string;
1456
+ rate: number;
1457
+ locale: string;
1458
+ }): Promise<ApiResponse<any>>;
1459
+ }
1460
+
1461
+ interface GetSlugsDto {
1462
+ slugs?: string[];
1463
+ language?: string;
1464
+ source?: string;
1465
+ searchParams?: Record<string, any>;
1466
+ }
1467
+ interface SlugToPageCount {
1468
+ contents: number;
1469
+ collections: number;
1470
+ pageLayouts: number;
1471
+ contentType: number;
1472
+ }
1473
+ declare class SlugsResource extends BaseResource {
1474
+ private path;
1475
+ constructor(httpClient: AxiosInstance);
1476
+ /**
1477
+ * Get store settings by origin
1478
+ */
1479
+ getStore(): Promise<ApiResponse<any>>;
1480
+ /**
1481
+ * Get comprehensive page data based on slugs
1482
+ */
1483
+ getPageData(dto: GetSlugsDto): Promise<ApiResponse<any>>;
1484
+ }
1485
+
1486
+ type index$4_CollectionResource = CollectionResource;
1487
+ declare const index$4_CollectionResource: typeof CollectionResource;
1488
+ type index$4_ContentResource = ContentResource;
1489
+ declare const index$4_ContentResource: typeof ContentResource;
1490
+ type index$4_ContentTypesResource = ContentTypesResource;
1491
+ declare const index$4_ContentTypesResource: typeof ContentTypesResource;
1492
+ type index$4_FavoriteResource = FavoriteResource;
1493
+ declare const index$4_FavoriteResource: typeof FavoriteResource;
1494
+ type index$4_GetSlugsDto = GetSlugsDto;
1495
+ type index$4_Language = Language;
1496
+ type index$4_LanguageResource = LanguageResource;
1497
+ declare const index$4_LanguageResource: typeof LanguageResource;
1498
+ type index$4_MediaResource = MediaResource;
1499
+ declare const index$4_MediaResource: typeof MediaResource;
1500
+ type index$4_NavigationResource = NavigationResource;
1501
+ declare const index$4_NavigationResource: typeof NavigationResource;
1502
+ type index$4_PageLayoutResource = PageLayoutResource;
1503
+ declare const index$4_PageLayoutResource: typeof PageLayoutResource;
1504
+ type index$4_ReviewResource = ReviewResource;
1505
+ declare const index$4_ReviewResource: typeof ReviewResource;
1506
+ type index$4_ShopResource = ShopResource;
1507
+ declare const index$4_ShopResource: typeof ShopResource;
1508
+ type index$4_SlugToPageCount = SlugToPageCount;
1509
+ type index$4_SlugsResource = SlugsResource;
1510
+ declare const index$4_SlugsResource: typeof SlugsResource;
1511
+ type index$4_StoreResource = StoreResource;
1512
+ declare const index$4_StoreResource: typeof StoreResource;
1513
+ type index$4_UserResource = UserResource;
1514
+ declare const index$4_UserResource: typeof UserResource;
1515
+ type index$4_UtilityResource = UtilityResource;
1516
+ declare const index$4_UtilityResource: typeof UtilityResource;
1517
+ declare const index$4_collectionColumns: typeof collectionColumns;
1518
+ declare const index$4_contentColumns: typeof contentColumns;
1519
+ declare namespace index$4 {
1520
+ export { index$4_CollectionResource as CollectionResource, index$4_ContentResource as ContentResource, index$4_ContentTypesResource as ContentTypesResource, index$4_FavoriteResource as FavoriteResource, type index$4_GetSlugsDto as GetSlugsDto, type index$4_Language as Language, index$4_LanguageResource as LanguageResource, index$4_MediaResource as MediaResource, index$4_NavigationResource as NavigationResource, index$4_PageLayoutResource as PageLayoutResource, index$4_ReviewResource as ReviewResource, index$4_ShopResource as ShopResource, type index$4_SlugToPageCount as SlugToPageCount, index$4_SlugsResource as SlugsResource, index$4_StoreResource as StoreResource, index$4_UserResource as UserResource, index$4_UtilityResource as UtilityResource, index$4_collectionColumns as collectionColumns, index$4_contentColumns as contentColumns };
1521
+ }
1522
+
1523
+ /**
1524
+ * Base error class for all SDK related errors.
1525
+ * Developer-friendly: includes request context when available.
1526
+ */
1527
+ declare class SalefonyError extends Error {
1528
+ readonly statusCode?: number | undefined;
1529
+ readonly rawError?: unknown | undefined;
1530
+ /** Request context for debugging (URL, method) */
1531
+ readonly requestContext?: {
1532
+ method?: string;
1533
+ url?: string;
1534
+ } | undefined;
1535
+ constructor(message: string, statusCode?: number | undefined, rawError?: unknown | undefined,
1536
+ /** Request context for debugging (URL, method) */
1537
+ requestContext?: {
1538
+ method?: string;
1539
+ url?: string;
1540
+ } | undefined);
1541
+ /** Validation hataları için field-wise detaylar */
1542
+ get details(): unknown;
1543
+ /** Hata sunucudan mı geldi (5xx) */
1544
+ get isServerError(): boolean;
1545
+ /** İstemci hatası mı (4xx) */
1546
+ get isClientError(): boolean;
1547
+ }
1548
+ /**
1549
+ * Thrown when the API returns a 401 or 403
1550
+ */
1551
+ declare class SalefonyAuthError extends SalefonyError {
1552
+ constructor(message: string, statusCode?: number, rawError?: unknown, requestContext?: {
1553
+ method?: string;
1554
+ url?: string;
1555
+ });
1556
+ }
1557
+ /**
1558
+ * Thrown when a request fails validation (400 or 422)
1559
+ */
1560
+ declare class SalefonyValidationError extends SalefonyError {
1561
+ constructor(message: string, statusCode?: number, rawError?: unknown, requestContext?: {
1562
+ method?: string;
1563
+ url?: string;
1564
+ });
1565
+ }
1566
+ /**
1567
+ * Thrown when a resource is not found (404)
1568
+ */
1569
+ declare class SalefonyNotFoundError extends SalefonyError {
1570
+ constructor(message: string, rawError?: unknown, requestContext?: {
1571
+ method?: string;
1572
+ url?: string;
1573
+ });
1574
+ }
1575
+
1576
+ /**
1577
+ * Response'tan data'yı güvenli şekilde çıkarır.
1578
+ * undefined/null durumunda fallback döner.
1579
+ *
1580
+ * @example
1581
+ * const data = unwrap(response); // response.data ?? response ?? null
1582
+ * const items = unwrap(response, []); // Boş array fallback
1583
+ */
1584
+ declare function unwrap<T>(response: ApiResponse<T> | T | null | undefined, fallback?: T): T;
1585
+ /**
1586
+ * Response'tan data'yı çıkarır, array değilse boş array döner.
1587
+ * list() sonuçları için idealdir.
1588
+ */
1589
+ declare function unwrapList<T>(response: ApiResponse<T[]> | T[] | null | undefined): T[];
1590
+ /**
1591
+ * Pagination meta bilgisini çıkarır.
1592
+ */
1593
+ declare function unwrapMeta(response: ApiResponse<unknown> | null | undefined): ListMeta | undefined;
1594
+
1595
+ type index$3_ApiKey = ApiKey;
1596
+ type index$3_ApiKeyCreateInput = ApiKeyCreateInput;
1597
+ type index$3_ApiKeyUpdateInput = ApiKeyUpdateInput;
1598
+ type index$3_ApiKeyWhereInput = ApiKeyWhereInput;
1599
+ type index$3_AuthResponse = AuthResponse;
1600
+ type index$3_BooleanFilter = BooleanFilter;
1601
+ type index$3_Collection = Collection;
1602
+ type index$3_CollectionCreateInput = CollectionCreateInput;
1603
+ type index$3_CollectionUpdateInput = CollectionUpdateInput;
1604
+ type index$3_CollectionWhereInput = CollectionWhereInput;
1605
+ type index$3_Content = Content;
1606
+ type index$3_ContentCreateInput = ContentCreateInput;
1607
+ type index$3_ContentUpdateInput = ContentUpdateInput;
1608
+ type index$3_ContentWhereInput = ContentWhereInput;
1609
+ type index$3_Datasource = Datasource;
1610
+ type index$3_DatasourceCreateInput = DatasourceCreateInput;
1611
+ type index$3_DatasourceUpdateInput = DatasourceUpdateInput;
1612
+ type index$3_DatasourceWhereInput = DatasourceWhereInput;
1613
+ type index$3_DateFilter = DateFilter;
1614
+ type index$3_FindManyArgs<WhereInput = any, OrderByInput = any, IncludeInput = any, SelectInput = any> = FindManyArgs<WhereInput, OrderByInput, IncludeInput, SelectInput>;
1615
+ type index$3_FindUniqueArgs<WhereInput = any, IncludeInput = any, SelectInput = any> = FindUniqueArgs<WhereInput, IncludeInput, SelectInput>;
1616
+ type index$3_LanguageCreateInput = LanguageCreateInput;
1617
+ type index$3_LanguageUpdateInput = LanguageUpdateInput;
1618
+ type index$3_LanguageWhereInput = LanguageWhereInput;
1619
+ type index$3_Layout = Layout;
1620
+ type index$3_LayoutCreateInput = LayoutCreateInput;
1621
+ type index$3_LayoutOrderByInput = LayoutOrderByInput;
1622
+ type index$3_LayoutUpdateInput = LayoutUpdateInput;
1623
+ type index$3_LayoutWhereInput = LayoutWhereInput;
1624
+ type index$3_LoginInput = LoginInput;
1625
+ type index$3_Media = Media;
1626
+ type index$3_MediaCreateInput = MediaCreateInput;
1627
+ type index$3_MediaOrderByInput = MediaOrderByInput;
1628
+ type index$3_MediaUpdateInput = MediaUpdateInput;
1629
+ type index$3_MediaWhereInput = MediaWhereInput;
1630
+ type index$3_Metadata = Metadata;
1631
+ type index$3_MetadataCreateInput = MetadataCreateInput;
1632
+ type index$3_MetadataUpdateInput = MetadataUpdateInput;
1633
+ type index$3_MetadataWhereInput = MetadataWhereInput;
1634
+ type index$3_Navigation = Navigation;
1635
+ type index$3_NavigationCreateInput = NavigationCreateInput;
1636
+ type index$3_NavigationOrderByInput = NavigationOrderByInput;
1637
+ type index$3_NavigationUpdateInput = NavigationUpdateInput;
1638
+ type index$3_NavigationWhereInput = NavigationWhereInput;
1639
+ type index$3_NumberFilter = NumberFilter;
1640
+ type index$3_Pagination = Pagination;
1641
+ type index$3_QueryParams<Column extends string = string> = QueryParams<Column>;
1642
+ type index$3_RegisterInput = RegisterInput;
1643
+ type index$3_SeoSettings = SeoSettings;
1644
+ type index$3_SessionResponse = SessionResponse;
1645
+ type index$3_Settings = Settings;
1646
+ type index$3_SortOrder = SortOrder;
1647
+ type index$3_Store = Store;
1648
+ type index$3_StoreCreateInput = StoreCreateInput;
1649
+ type index$3_StoreOrderByInput = StoreOrderByInput;
1650
+ type index$3_StoreUpdateInput = StoreUpdateInput;
1651
+ type index$3_StoreWhereInput = StoreWhereInput;
1652
+ type index$3_StringFilter = StringFilter;
1653
+ type index$3_TokenValidateResponse = TokenValidateResponse;
1654
+ type index$3_Vendor = Vendor;
1655
+ type index$3_VendorCreateInput = VendorCreateInput;
1656
+ type index$3_VendorOrderByInput = VendorOrderByInput;
1657
+ type index$3_VendorUpdateInput = VendorUpdateInput;
1658
+ type index$3_VendorWhereInput = VendorWhereInput;
1659
+ declare namespace index$3 {
1660
+ export type { index$3_ApiKey as ApiKey, index$3_ApiKeyCreateInput as ApiKeyCreateInput, index$3_ApiKeyUpdateInput as ApiKeyUpdateInput, index$3_ApiKeyWhereInput as ApiKeyWhereInput, index$3_AuthResponse as AuthResponse, index$3_BooleanFilter as BooleanFilter, index$3_Collection as Collection, index$3_CollectionCreateInput as CollectionCreateInput, index$3_CollectionUpdateInput as CollectionUpdateInput, index$3_CollectionWhereInput as CollectionWhereInput, index$3_Content as Content, index$3_ContentCreateInput as ContentCreateInput, index$3_ContentUpdateInput as ContentUpdateInput, index$3_ContentWhereInput as ContentWhereInput, index$3_Datasource as Datasource, index$3_DatasourceCreateInput as DatasourceCreateInput, index$3_DatasourceUpdateInput as DatasourceUpdateInput, index$3_DatasourceWhereInput as DatasourceWhereInput, index$3_DateFilter as DateFilter, index$3_FindManyArgs as FindManyArgs, index$3_FindUniqueArgs as FindUniqueArgs, Language$1 as Language, index$3_LanguageCreateInput as LanguageCreateInput, index$3_LanguageUpdateInput as LanguageUpdateInput, index$3_LanguageWhereInput as LanguageWhereInput, index$3_Layout as Layout, index$3_LayoutCreateInput as LayoutCreateInput, index$3_LayoutOrderByInput as LayoutOrderByInput, index$3_LayoutUpdateInput as LayoutUpdateInput, index$3_LayoutWhereInput as LayoutWhereInput, index$3_LoginInput as LoginInput, index$3_Media as Media, index$3_MediaCreateInput as MediaCreateInput, index$3_MediaOrderByInput as MediaOrderByInput, index$3_MediaUpdateInput as MediaUpdateInput, index$3_MediaWhereInput as MediaWhereInput, index$3_Metadata as Metadata, index$3_MetadataCreateInput as MetadataCreateInput, index$3_MetadataUpdateInput as MetadataUpdateInput, index$3_MetadataWhereInput as MetadataWhereInput, index$3_Navigation as Navigation, index$3_NavigationCreateInput as NavigationCreateInput, index$3_NavigationOrderByInput as NavigationOrderByInput, index$3_NavigationUpdateInput as NavigationUpdateInput, index$3_NavigationWhereInput as NavigationWhereInput, index$3_NumberFilter as NumberFilter, index$3_Pagination as Pagination, index$3_QueryParams as QueryParams, index$3_RegisterInput as RegisterInput, index$3_SeoSettings as SeoSettings, index$3_SessionResponse as SessionResponse, index$3_Settings as Settings, index$3_SortOrder as SortOrder, index$3_Store as Store, index$3_StoreCreateInput as StoreCreateInput, index$3_StoreOrderByInput as StoreOrderByInput, index$3_StoreUpdateInput as StoreUpdateInput, index$3_StoreWhereInput as StoreWhereInput, index$3_StringFilter as StringFilter, index$3_TokenValidateResponse as TokenValidateResponse, index$3_Vendor as Vendor, index$3_VendorCreateInput as VendorCreateInput, index$3_VendorOrderByInput as VendorOrderByInput, index$3_VendorUpdateInput as VendorUpdateInput, index$3_VendorWhereInput as VendorWhereInput };
1661
+ }
1662
+
1663
+ type index$2_BooleanFilter = BooleanFilter;
1664
+ type index$2_Cart = Cart;
1665
+ type index$2_CartCreateInput = CartCreateInput;
1666
+ type index$2_CartUpdateInput = CartUpdateInput;
1667
+ type index$2_Collection = Collection;
1668
+ type index$2_CollectionCreateInput = CollectionCreateInput;
1669
+ type index$2_CollectionUpdateInput = CollectionUpdateInput;
1670
+ type index$2_CollectionWhereInput = CollectionWhereInput;
1671
+ type index$2_Content = Content;
1672
+ type index$2_ContentCreateInput = ContentCreateInput;
1673
+ type index$2_ContentUpdateInput = ContentUpdateInput;
1674
+ type index$2_ContentWhereInput = ContentWhereInput;
1675
+ type index$2_DateFilter = DateFilter;
1676
+ type index$2_FindManyArgs<WhereInput = any, OrderByInput = any, IncludeInput = any, SelectInput = any> = FindManyArgs<WhereInput, OrderByInput, IncludeInput, SelectInput>;
1677
+ type index$2_FindUniqueArgs<WhereInput = any, IncludeInput = any, SelectInput = any> = FindUniqueArgs<WhereInput, IncludeInput, SelectInput>;
1678
+ type index$2_Media = Media;
1679
+ type index$2_MediaCreateInput = MediaCreateInput;
1680
+ type index$2_MediaOrderByInput = MediaOrderByInput;
1681
+ type index$2_MediaUpdateInput = MediaUpdateInput;
1682
+ type index$2_MediaWhereInput = MediaWhereInput;
1683
+ type index$2_Navigation = Navigation;
1684
+ type index$2_NavigationCreateInput = NavigationCreateInput;
1685
+ type index$2_NavigationItem = NavigationItem;
1686
+ type index$2_NavigationOrderByInput = NavigationOrderByInput;
1687
+ type index$2_NavigationUpdateInput = NavigationUpdateInput;
1688
+ type index$2_NavigationWhereInput = NavigationWhereInput;
1689
+ type index$2_NumberFilter = NumberFilter;
1690
+ type index$2_Order = Order;
1691
+ type index$2_Pagination = Pagination;
1692
+ type index$2_Product = Product;
1693
+ type index$2_ProductWhereInput = ProductWhereInput;
1694
+ type index$2_QueryParams<Column extends string = string> = QueryParams<Column>;
1695
+ type index$2_Rfq = Rfq;
1696
+ type index$2_RfqCreateInput = RfqCreateInput;
1697
+ type index$2_SortOrder = SortOrder;
1698
+ type index$2_Store = Store;
1699
+ type index$2_StoreCreateInput = StoreCreateInput;
1700
+ type index$2_StoreOrderByInput = StoreOrderByInput;
1701
+ type index$2_StoreUpdateInput = StoreUpdateInput;
1702
+ type index$2_StoreWhereInput = StoreWhereInput;
1703
+ type index$2_StringFilter = StringFilter;
1704
+ type index$2_User = User;
1705
+ type index$2_UserCreateInput = UserCreateInput;
1706
+ type index$2_UserUpdateInput = UserUpdateInput;
1707
+ type index$2_UserWhereInput = UserWhereInput;
1708
+ declare namespace index$2 {
1709
+ export type { index$2_BooleanFilter as BooleanFilter, index$2_Cart as Cart, index$2_CartCreateInput as CartCreateInput, index$2_CartUpdateInput as CartUpdateInput, index$2_Collection as Collection, index$2_CollectionCreateInput as CollectionCreateInput, index$2_CollectionUpdateInput as CollectionUpdateInput, index$2_CollectionWhereInput as CollectionWhereInput, index$2_Content as Content, index$2_ContentCreateInput as ContentCreateInput, index$2_ContentUpdateInput as ContentUpdateInput, index$2_ContentWhereInput as ContentWhereInput, index$2_DateFilter as DateFilter, index$2_FindManyArgs as FindManyArgs, index$2_FindUniqueArgs as FindUniqueArgs, index$2_Media as Media, index$2_MediaCreateInput as MediaCreateInput, index$2_MediaOrderByInput as MediaOrderByInput, index$2_MediaUpdateInput as MediaUpdateInput, index$2_MediaWhereInput as MediaWhereInput, index$2_Navigation as Navigation, index$2_NavigationCreateInput as NavigationCreateInput, index$2_NavigationItem as NavigationItem, index$2_NavigationOrderByInput as NavigationOrderByInput, index$2_NavigationUpdateInput as NavigationUpdateInput, index$2_NavigationWhereInput as NavigationWhereInput, index$2_NumberFilter as NumberFilter, index$2_Order as Order, index$2_Pagination as Pagination, index$2_Product as Product, index$2_ProductWhereInput as ProductWhereInput, index$2_QueryParams as QueryParams, index$2_Rfq as Rfq, index$2_RfqCreateInput as RfqCreateInput, index$2_SortOrder as SortOrder, index$2_Store as Store, index$2_StoreCreateInput as StoreCreateInput, index$2_StoreOrderByInput as StoreOrderByInput, index$2_StoreUpdateInput as StoreUpdateInput, index$2_StoreWhereInput as StoreWhereInput, index$2_StringFilter as StringFilter, index$2_User as User, index$2_UserCreateInput as UserCreateInput, index$2_UserUpdateInput as UserUpdateInput, index$2_UserWhereInput as UserWhereInput };
1710
+ }
1711
+
1712
+ type index$1_BaseModel = BaseModel;
1713
+ type index$1_BooleanFilter = BooleanFilter;
1714
+ type index$1_DateFilter = DateFilter;
1715
+ type index$1_FindManyArgs<WhereInput = any, OrderByInput = any, IncludeInput = any, SelectInput = any> = FindManyArgs<WhereInput, OrderByInput, IncludeInput, SelectInput>;
1716
+ type index$1_FindUniqueArgs<WhereInput = any, IncludeInput = any, SelectInput = any> = FindUniqueArgs<WhereInput, IncludeInput, SelectInput>;
1717
+ type index$1_NumberFilter = NumberFilter;
1718
+ type index$1_Pagination = Pagination;
1719
+ type index$1_QueryParams<Column extends string = string> = QueryParams<Column>;
1720
+ type index$1_SortOrder = SortOrder;
1721
+ type index$1_StringFilter = StringFilter;
1722
+ declare namespace index$1 {
1723
+ export type { index$1_BaseModel as BaseModel, index$1_BooleanFilter as BooleanFilter, index$1_DateFilter as DateFilter, index$1_FindManyArgs as FindManyArgs, index$1_FindUniqueArgs as FindUniqueArgs, index$1_NumberFilter as NumberFilter, index$1_Pagination as Pagination, index$1_QueryParams as QueryParams, index$1_SortOrder as SortOrder, index$1_StringFilter as StringFilter };
1724
+ }
1725
+
1726
+ type index_AnyColumn = AnyColumn;
1727
+ type index_ApiKeyColumn = ApiKeyColumn;
1728
+ type index_CollectionColumn = CollectionColumn;
1729
+ type index_ContentColumn = ContentColumn;
1730
+ type index_DatasourceColumn = DatasourceColumn;
1731
+ type index_GenericColumn = GenericColumn;
1732
+ type index_LanguageColumn = LanguageColumn;
1733
+ type index_LayoutColumn = LayoutColumn;
1734
+ type index_MediaColumn = MediaColumn;
1735
+ type index_MetadataColumn = MetadataColumn;
1736
+ type index_NavigationColumn = NavigationColumn;
1737
+ type index_ProjectColumn = ProjectColumn;
1738
+ type index_ReviewColumn = ReviewColumn;
1739
+ type index_SectionColumn = SectionColumn;
1740
+ type index_SectorColumn = SectorColumn;
1741
+ type index_SiteSettingsColumn = SiteSettingsColumn;
1742
+ type index_StoreColumn = StoreColumn;
1743
+ type index_VendorColumn = VendorColumn;
1744
+ declare const index_columns: typeof columns;
1745
+ declare namespace index {
1746
+ export { type index_AnyColumn as AnyColumn, type index_ApiKeyColumn as ApiKeyColumn, type index_CollectionColumn as CollectionColumn, type index_ContentColumn as ContentColumn, type index_DatasourceColumn as DatasourceColumn, type index_GenericColumn as GenericColumn, type index_LanguageColumn as LanguageColumn, type index_LayoutColumn as LayoutColumn, type index_MediaColumn as MediaColumn, type index_MetadataColumn as MetadataColumn, type index_NavigationColumn as NavigationColumn, type index_ProjectColumn as ProjectColumn, type index_ReviewColumn as ReviewColumn, type index_SectionColumn as SectionColumn, type index_SectorColumn as SectorColumn, type index_SiteSettingsColumn as SiteSettingsColumn, type index_StoreColumn as StoreColumn, type index_VendorColumn as VendorColumn, index_columns as columns };
1747
+ }
1748
+
1749
+ /**
1750
+ * Admin Resource Grubu
1751
+ */
1752
+ declare class AdminNamespace {
1753
+ readonly vendors: VendorResource;
1754
+ readonly contents: ContentResource$1;
1755
+ readonly stores: StoreResource$1;
1756
+ readonly collections: CollectionResource$1;
1757
+ readonly navigations: NavigationResource$1;
1758
+ readonly layouts: LayoutResource;
1759
+ readonly settings: SettingsResource;
1760
+ readonly apiKeys: ApiKeyResource;
1761
+ readonly media: MediaResource$1;
1762
+ readonly languages: LanguageResource$1;
1763
+ readonly datasource: DatasourceResource;
1764
+ readonly metadata: MetadataResource;
1765
+ readonly seo: SEOResource;
1766
+ readonly auth: AuthResource;
1767
+ readonly sections: SectionResource;
1768
+ readonly themes: ThemeResource;
1769
+ readonly google: GoogleResource;
1770
+ readonly cloudflare: CloudflareResource;
1771
+ readonly reviews: ReviewResource$1;
1772
+ readonly customData: CustomDataResource;
1773
+ readonly projects: ProjectResource;
1774
+ readonly sectors: SectorResource;
1775
+ readonly webmail: WebmailResource;
1776
+ readonly subscriptions: SubscriptionResource;
1777
+ readonly purchases: PurchaseResource;
1778
+ constructor(client: ApiClient);
1779
+ }
1780
+ /**
1781
+ * Frontstore Resource Grubu
1782
+ */
1783
+ declare class FrontstoreNamespace {
1784
+ readonly store: StoreResource;
1785
+ readonly collection: CollectionResource;
1786
+ readonly content: ContentResource;
1787
+ readonly navigation: NavigationResource;
1788
+ readonly media: MediaResource;
1789
+ readonly user: UserResource;
1790
+ readonly shop: ShopResource;
1791
+ readonly utility: UtilityResource;
1792
+ readonly favorite: FavoriteResource;
1793
+ readonly language: LanguageResource;
1794
+ readonly layouts: PageLayoutResource;
1795
+ readonly contentTypes: ContentTypesResource;
1796
+ readonly review: ReviewResource;
1797
+ readonly slugs: SlugsResource;
1798
+ constructor(client: ApiClient);
1799
+ }
1800
+ /**
1801
+ * Salefony API SDK Ana Sınıfı
1802
+ */
1803
+ declare class SalefonyApiSdk {
1804
+ private readonly client;
1805
+ /** Admin API Kaynakları */
1806
+ readonly admin: AdminNamespace;
1807
+ /** Frontstore API Kaynakları */
1808
+ readonly frontstore: FrontstoreNamespace;
1809
+ readonly store: StoreResource;
1810
+ readonly collection: CollectionResource;
1811
+ readonly content: ContentResource;
1812
+ readonly user: UserResource;
1813
+ readonly navigation: NavigationResource;
1814
+ readonly media: MediaResource;
1815
+ readonly shop: ShopResource;
1816
+ readonly utility: UtilityResource;
1817
+ readonly favorite: FavoriteResource;
1818
+ readonly language: LanguageResource;
1819
+ readonly layouts: PageLayoutResource;
1820
+ readonly contentTypes: ContentTypesResource;
1821
+ readonly review: ReviewResource;
1822
+ readonly slugs: SlugsResource;
1823
+ constructor(config: SDKConfig);
1824
+ /**
1825
+ * Ekstra headerlar ekler (Method Chaining)
1826
+ */
1827
+ setHeaders(headers: Record<string, string>): this;
1828
+ /**
1829
+ * Bearer token ayarlar (Method Chaining)
1830
+ */
1831
+ setAuthToken(token: string): this;
1832
+ /**
1833
+ * Vendor API anahtarı ayarlar (Method Chaining)
1834
+ */
1835
+ setVendorKey(key: string): this;
1836
+ /**
1837
+ * Bearer token temizler (Method Chaining)
1838
+ */
1839
+ logout(): this;
1840
+ /**
1841
+ * API Client instance'ını döner
1842
+ */
1843
+ get apiClient(): ApiClient;
1844
+ }
1845
+ /**
1846
+ * SDK Factory Fonksiyonu
1847
+ * @param config - Zorunlu: baseUrl. Opsiyonel: authToken, debug, timeout, retries...
1848
+ * @example
1849
+ * const sdk = createSDK({ baseUrl: 'https://api.example.com' });
1850
+ * const sdk = createSDK({ baseUrl: process.env.API_URL!, authToken: jwt, debug: true });
1851
+ */
1852
+ declare const createSDK: (config: SDKConfig) => SalefonyApiSdk;
1853
+ /**
1854
+ * Kısmi config ile SDK oluşturur; eksik alanları env'den doldurur.
1855
+ * NEXT_PUBLIC_BACKEND_API_URL, BACKEND_API_URL, NODE_ENV otomatik okunur.
1856
+ * @param config - En az baseUrl veya env'de API URL tanımlı olmalı
1857
+ */
1858
+ declare function createSDKFromEnv(config?: Partial<SDKConfig> & {
1859
+ baseUrl?: string;
1860
+ }): SalefonyApiSdk;
1861
+
1862
+ export { index$5 as AdminResources, index$3 as AdminTypes, type AnyColumn, ApiClient, type ApiKeyColumn, type ApiResponse, BaseResource, type CollectionColumn, index$1 as CommonTypes, type ContentColumn, CrudResource, type DatasourceColumn, index$4 as FrontstoreResources, index$2 as FrontstoreTypes, type GenericColumn, type GetParams, type LanguageColumn, type LayoutColumn, type ListMeta, type ListParams, type MediaColumn, type MetadataColumn, type NavigationColumn, type ProjectColumn, QueryBuilder, type RequestOptions, type ReviewColumn, type SDKConfig, SalefonyApiSdk, SalefonyAuthError, SalefonyError, SalefonyNotFoundError, SalefonyValidationError, index as SchemaTypes, type SectionColumn, type SectorColumn, type SiteSettingsColumn, type StoreColumn, type VendorColumn, apiKeyColumns, collectionColumns$1 as collectionColumns, columns, contentColumns$1 as contentColumns, createSDK, createSDKFromEnv, datasourceColumns, languageColumns, layoutColumns, metadataColumns, navigationColumns, projectColumns, sectionColumns, sectorColumns, storeColumns, unwrap, unwrapList, unwrapMeta, vendorColumns };