@applite/js-sdk 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,3 @@
1
- import { CreateAppWithdraw, CreateAppSchema, CreateAgentSchema, UpdateAgentSchema, CreateAppointmentSchema, UpdateAppointmentStatusSchema, CreateCompanySchema, UpdateCompanySchema, CreateServiceSchema, UpdateServiceSchema } from '@applite/db';
2
- import { z } from 'zod';
3
-
4
1
  interface HttpClientConfig {
5
2
  /**
6
3
  * Base URL used for every request. Defaults to an empty string so that
@@ -22,6 +19,17 @@ interface ApiSuccessResponse<T> {
22
19
  data: T;
23
20
  error?: unknown;
24
21
  }
22
+ interface ApiSuccessResponseWithMeta<T> {
23
+ success: true;
24
+ data: T[];
25
+ meta: {
26
+ total: number;
27
+ page: number;
28
+ limit: number;
29
+ totalPages: number;
30
+ };
31
+ error?: unknown;
32
+ }
25
33
  interface ApiErrorResponse {
26
34
  success: false;
27
35
  error?: unknown;
@@ -35,16 +43,61 @@ declare class HttpClient {
35
43
  post<T>(path: string, body: Record<string, unknown> | object): Promise<ApiSuccessResponse<T>>;
36
44
  }
37
45
 
38
- declare const plateformTypes: readonly ["STORE", "TRANSPORT", "RESTAURATION", "MULTI_SERVICE", "E_LEARNING", "DUTICOTAC"];
39
- type PlateformType = (typeof plateformTypes)[number];
40
- declare const sexes: readonly ["M", "F"];
41
- type Sexe = (typeof sexes)[number];
42
- interface AppCustomerListParams {
43
- appId: string;
46
+ type Sexe = "M" | "F";
47
+ type MemberRole = "ADMIN" | "USER";
48
+ type PlateformType = "STORE" | "TRANSPORT" | "RESTAURATION" | "MULTI_SERVICE" | "E_LEARNING" | "DUTICOTAC" | "KOLABO";
49
+ type Currency = "USD" | "EUR" | "XOF" | "XAF";
50
+ type TransactionStatus = "PENDING" | "CONFIRMED" | "CANCELLED" | "FAILED";
51
+ type TransactionProvider = "CASH" | "OM_CI" | "MTN_CI" | "MOOV_CI" | "WAVE_CI" | "CREDIT_CARD" | "IAP" | "BILLING_DEDUCTION";
52
+ type ProductStatus = "DRAFT" | "ACTIVE" | "ARCHIVED";
53
+ type InventoryPolicy = "DENY" | "CONTINUE";
54
+ type OrderStatus = "PENDING" | "CONFIRMED" | "SHIPPING" | "SHIPPED" | "CANCELLED";
55
+ type PaymentStatus = "PENDING" | "PAID" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FAILED";
56
+ type FulfillmentStatus = "UNFULFILLED" | "PARTIALLY_FULFILLED" | "FULFILLED" | "RETURNED";
57
+ type StoreOptionType = "select" | "radio" | "checkbox" | "color" | "image";
58
+ type CollectionType = "MANUAL" | "SMART";
59
+ type DiscountType = "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
60
+ type DiscountMinRequirement = "NONE" | "AMOUNT" | "QUANTITY";
61
+ type DiscountAppliesTo = "ALL" | "COLLECTIONS" | "PRODUCTS";
62
+ type ShippingRateType = "FLAT" | "WEIGHT_BASED" | "PRICE_BASED";
63
+ type SubscriptionStatus = "ACTIVE" | "PAST_DUE" | "CANCELED" | "SUSPENDED";
64
+ type FileType = "IMAGE" | "VIDEO" | "GIF";
65
+ type FieldType = "TEXT" | "NUMBER" | "SELECT" | "MULTIPLE_SELECT" | "EMAIL" | "PHONE" | "DATE";
66
+ type AppointmentStatus = "PENDING" | "CONFIRMED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED";
67
+ type KolaboAppStatus = "PENDING" | "APPROVED" | "REVALIATING" | "REJECTED";
68
+ type KolaboPartnerType = "INDEPENDENT" | "AGENCY";
69
+ interface PaginationMeta {
70
+ total: number;
71
+ page: number;
72
+ limit: number;
73
+ totalPages: number;
74
+ }
75
+ interface ApiKeyParams {
44
76
  apiKey: string;
45
- plateformType?: PlateformType[];
46
77
  }
47
- interface AppCustomerListItem {
78
+ interface AppScopedParams extends ApiKeyParams {
79
+ appId: string;
80
+ }
81
+ interface EntityIdParams extends AppScopedParams {
82
+ id: string;
83
+ }
84
+ interface ListParams extends AppScopedParams {
85
+ page?: number;
86
+ limit?: number;
87
+ }
88
+ interface SearchableListParams extends ListParams {
89
+ search?: string;
90
+ ids?: string[];
91
+ }
92
+ interface AdvancedImageType {
93
+ url: string;
94
+ id: string;
95
+ }
96
+
97
+ /**
98
+ * Customer in list response
99
+ */
100
+ interface CustomerListItem {
48
101
  id: string;
49
102
  fullname: string;
50
103
  telephone: string;
@@ -53,80 +106,132 @@ interface AppCustomerListItem {
53
106
  createdAt: string;
54
107
  plateforms: PlateformType[];
55
108
  }
56
- interface AppCustomerAuthParams {
57
- appId: string;
58
- apiKey: string;
59
- fullname: string;
60
- email?: string | null;
61
- telephone: string;
62
- plateform?: PlateformType | null;
63
- }
64
- interface AppCustomerCheckParams {
65
- appId: string;
66
- apiKey: string;
67
- telephone: string;
68
- plateform?: PlateformType | null;
69
- }
70
- interface AppCustomer {
109
+ /**
110
+ * Customer minimal info in list/few response
111
+ */
112
+ interface CustomerListFewItem {
71
113
  id: string;
72
114
  fullname: string;
73
- email: string | null;
74
- telephone: string;
75
115
  photoUrl: string | null;
76
- plateforms: PlateformType[];
77
116
  createdAt: string;
78
117
  }
79
- interface AppCustomerListFewItem {
118
+ /**
119
+ * Customer base info
120
+ */
121
+ interface Customer {
80
122
  id: string;
81
123
  fullname: string;
124
+ email: string | null;
125
+ telephone: string;
82
126
  photoUrl: string | null;
127
+ plateforms: PlateformType[];
83
128
  createdAt: string;
84
129
  }
85
- interface AppCustomerDetail extends AppCustomer {
86
- addresses: Record<string, unknown>[];
87
- transactions: Record<string, unknown>[];
88
- storeReviews: Record<string, unknown>[];
130
+ /**
131
+ * Customer detail with relations
132
+ */
133
+ interface CustomerDetail extends Customer {
134
+ gender: Sexe | null;
135
+ dob: string | null;
136
+ country: string | null;
137
+ addresses: CustomerAddress[];
138
+ transactions: CustomerTransaction[];
139
+ storeReviews: CustomerStoreReview[];
89
140
  app: {
90
141
  id: string;
91
142
  name: string;
92
143
  slug: string;
93
144
  };
94
145
  }
95
- interface AppCustomerGetParams {
96
- appId: string;
97
- apiKey: string;
146
+ interface CustomerAddress {
147
+ id: string;
148
+ label: string | null;
149
+ firstName: string;
150
+ lastName: string;
151
+ address1: string;
152
+ address2: string | null;
153
+ city: string;
154
+ country: string;
155
+ zip: string | null;
156
+ phone: string | null;
157
+ isDefault: boolean;
158
+ }
159
+ interface CustomerTransaction {
98
160
  id: string;
161
+ amount: number;
162
+ status: string;
163
+ provider: string;
164
+ createdAt: string;
99
165
  }
100
- interface AppCustomerUpdateParams {
101
- appId: string;
102
- apiKey: string;
166
+ interface CustomerStoreReview {
167
+ id: string;
168
+ rating: number;
169
+ comment: string | null;
170
+ productId: string;
171
+ createdAt: string;
172
+ }
173
+ interface CustomerListParams extends AppScopedParams {
174
+ plateformType?: PlateformType[];
175
+ }
176
+ interface CustomerAuthParams extends AppScopedParams {
177
+ fullname: string;
178
+ email?: string | null;
179
+ telephone: string;
180
+ plateform?: PlateformType | null;
181
+ }
182
+ interface CustomerCheckParams extends AppScopedParams {
183
+ telephone: string;
184
+ plateform?: PlateformType | null;
185
+ }
186
+ interface CustomerGetParams extends AppScopedParams {
187
+ id: string;
188
+ }
189
+ interface CustomerUpdateParams extends AppScopedParams {
103
190
  id: string;
104
191
  fullname?: string | null;
105
192
  email?: string | null;
106
193
  photoUrl?: string | null;
107
194
  photoId?: string | null;
108
195
  gender?: Sexe | null;
109
- dob?: string | Date | null;
196
+ dob?: string | null;
110
197
  country?: string | null;
111
198
  }
199
+
112
200
  declare class AppCustomerModule {
113
201
  private readonly http;
114
202
  constructor(http: HttpClient);
115
- list(params: AppCustomerListParams): Promise<ApiSuccessResponse<AppCustomerListItem[]>>;
116
- auth(params: AppCustomerAuthParams): Promise<ApiSuccessResponse<AppCustomer>>;
117
- check(params: AppCustomerCheckParams): Promise<ApiSuccessResponse<AppCustomer | null>>;
118
- listFew(params: AppCustomerListParams): Promise<ApiSuccessResponse<AppCustomerListFewItem[]>>;
119
- get(params: AppCustomerGetParams): Promise<ApiSuccessResponse<AppCustomerDetail | null>>;
120
- update(params: AppCustomerUpdateParams): Promise<ApiSuccessResponse<AppCustomerDetail>>;
203
+ list(params: CustomerListParams): Promise<ApiSuccessResponse<CustomerListItem[]>>;
204
+ auth(params: CustomerAuthParams): Promise<ApiSuccessResponse<Customer>>;
205
+ check(params: CustomerCheckParams): Promise<ApiSuccessResponse<Customer | null>>;
206
+ listFew(params: CustomerListParams): Promise<ApiSuccessResponse<CustomerListFewItem[]>>;
207
+ get(params: CustomerGetParams): Promise<ApiSuccessResponse<CustomerDetail | null>>;
208
+ update(params: CustomerUpdateParams): Promise<ApiSuccessResponse<CustomerDetail>>;
121
209
  }
122
210
 
123
- interface ApiKeyParams {
124
- apiKey: string;
125
- }
126
- interface AppScopedParams extends ApiKeyParams {
211
+ interface Transaction {
212
+ id: string;
127
213
  appId: string;
214
+ customerId: string | null;
215
+ amount: number;
216
+ status: TransactionStatus;
217
+ provider: TransactionProvider;
218
+ ref: string | null;
219
+ description: string | null;
220
+ createdAt: string;
221
+ updatedAt: string;
222
+ }
223
+ interface TransactionDetail extends Transaction {
224
+ customer: {
225
+ id: string;
226
+ fullname: string;
227
+ telephone: string;
228
+ } | null;
229
+ }
230
+ interface WithdrawResult {
231
+ success: boolean;
232
+ message: string;
233
+ transactionId?: string;
128
234
  }
129
-
130
235
  interface BalanceParams extends AppScopedParams {
131
236
  }
132
237
  interface TransactionListParams extends AppScopedParams {
@@ -134,25 +239,31 @@ interface TransactionListParams extends AppScopedParams {
134
239
  interface TransactionGetParams extends AppScopedParams {
135
240
  id: string;
136
241
  }
137
- type WithdrawParams = z.infer<typeof CreateAppWithdraw> & {
138
- appId: string;
139
- };
242
+ interface WithdrawParams extends AppScopedParams {
243
+ amount: number;
244
+ phoneNumber: string;
245
+ password: string;
246
+ paymentMethod: string;
247
+ }
248
+
140
249
  declare class AppFinanceModule {
141
250
  private readonly http;
142
251
  constructor(http: HttpClient);
143
252
  balance(params: BalanceParams): Promise<ApiSuccessResponse<number | null>>;
144
- listTransactions(params: TransactionListParams): Promise<ApiSuccessResponse<unknown>>;
145
- getTransaction(params: TransactionGetParams): Promise<ApiSuccessResponse<unknown>>;
146
- withdraw(params: WithdrawParams): Promise<ApiSuccessResponse<unknown>>;
253
+ listTransactions(params: TransactionListParams): Promise<ApiSuccessResponse<Transaction[]>>;
254
+ getTransaction(params: TransactionGetParams): Promise<ApiSuccessResponse<TransactionDetail | null>>;
255
+ withdraw(params: WithdrawParams): Promise<ApiSuccessResponse<WithdrawResult>>;
147
256
  }
148
257
 
149
- type CreateAppParams = z.infer<typeof CreateAppSchema>;
258
+ /**
259
+ * App summary in list response
260
+ */
150
261
  interface AppSummary {
151
262
  id: string;
152
263
  name: string;
153
264
  slug: string;
154
265
  description: string | null;
155
- modules: unknown;
266
+ modules: Record<string, unknown> | null;
156
267
  logo: string | null;
157
268
  createdAt: string;
158
269
  apiKey: string;
@@ -162,26 +273,50 @@ interface AppSummary {
162
273
  ownerId: string;
163
274
  balance: number;
164
275
  }
276
+ /**
277
+ * App detail
278
+ */
165
279
  interface AppDetail extends AppSummary {
166
- callbackUrl?: string | null;
280
+ callbackUrl: string | null;
281
+ }
282
+ interface CreateAppParams extends ApiKeyParams {
283
+ name: string;
284
+ description?: string | null;
167
285
  }
168
286
  interface GetAppBySlugParams extends ApiKeyParams {
169
287
  slug: string;
170
288
  }
289
+ interface ListAppsParams extends ApiKeyParams {
290
+ }
291
+ interface GetAppByIdParams extends AppScopedParams {
292
+ }
293
+
171
294
  declare class AppInfoModule {
172
295
  private readonly http;
173
296
  constructor(http: HttpClient);
174
- list(params: ApiKeyParams): Promise<ApiSuccessResponse<AppSummary[]>>;
297
+ list(params: ListAppsParams): Promise<ApiSuccessResponse<AppSummary[]>>;
175
298
  create(params: CreateAppParams): Promise<ApiSuccessResponse<AppDetail>>;
176
299
  getBySlug(params: GetAppBySlugParams): Promise<ApiSuccessResponse<AppDetail>>;
177
- getById(params: AppScopedParams): Promise<ApiSuccessResponse<AppDetail>>;
300
+ getById(params: GetAppByIdParams): Promise<ApiSuccessResponse<AppDetail>>;
178
301
  }
179
302
 
303
+ interface Statistic {
304
+ id: string;
305
+ appId: string;
306
+ type: string;
307
+ year: number;
308
+ month: string;
309
+ amount: number;
310
+ description: string | null;
311
+ plateform: PlateformType | null;
312
+ createdAt: string;
313
+ updatedAt: string;
314
+ }
180
315
  interface GetStatisticParams extends AppScopedParams {
181
316
  type: string;
182
317
  year: number;
183
318
  month: string;
184
- plateform?: string | null;
319
+ plateform?: PlateformType | null;
185
320
  }
186
321
  interface CreateStatisticParams extends GetStatisticParams {
187
322
  amount: number;
@@ -192,16 +327,17 @@ interface UpdateStatisticParams extends AppScopedParams {
192
327
  amount: number;
193
328
  description?: string | null;
194
329
  }
330
+
195
331
  declare class AppStatsModule {
196
332
  private readonly http;
197
333
  constructor(http: HttpClient);
198
- create(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>>;
334
+ create(params: CreateStatisticParams): Promise<ApiSuccessResponse<Statistic>>;
199
335
  get(params: GetStatisticParams): Promise<ApiSuccessResponse<number>>;
200
- set(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>>;
201
- update(params: UpdateStatisticParams): Promise<ApiSuccessResponse<unknown>>;
336
+ set(params: CreateStatisticParams): Promise<ApiSuccessResponse<Statistic>>;
337
+ update(params: UpdateStatisticParams): Promise<ApiSuccessResponse<Statistic>>;
202
338
  }
203
339
 
204
- interface CreateBadgeParams extends AppScopedParams {
340
+ interface CreateBadgeParams$1 extends AppScopedParams {
205
341
  name: string;
206
342
  description?: string | null;
207
343
  image?: string | null;
@@ -215,10 +351,10 @@ interface EditBadgeParams extends AppScopedParams {
215
351
  image?: string | null;
216
352
  imageId?: string | null;
217
353
  }
218
- interface DeleteBadgeParams extends AppScopedParams {
354
+ interface DeleteBadgeParams$1 extends AppScopedParams {
219
355
  id: string;
220
356
  }
221
- interface CreateCategoryParams extends AppScopedParams {
357
+ interface CreateCategoryParams$1 extends AppScopedParams {
222
358
  name: string;
223
359
  description?: string | null;
224
360
  sellerId: string;
@@ -234,10 +370,10 @@ interface EditCategoryParams extends AppScopedParams {
234
370
  imageId?: string | null;
235
371
  parentId?: string | null;
236
372
  }
237
- interface GetCategoryParams extends AppScopedParams {
373
+ interface GetCategoryParams$1 extends AppScopedParams {
238
374
  id: string;
239
375
  }
240
- interface CreateCollectionParams extends AppScopedParams {
376
+ interface CreateCollectionParams$1 extends AppScopedParams {
241
377
  title: string;
242
378
  description?: string | null;
243
379
  slug: string;
@@ -256,10 +392,10 @@ interface EditCollectionParams extends AppScopedParams {
256
392
  productIds?: string[];
257
393
  isActive?: boolean;
258
394
  }
259
- interface GetCollectionParams extends AppScopedParams {
395
+ interface GetCollectionParams$1 extends AppScopedParams {
260
396
  id: string;
261
397
  }
262
- interface CreateDiscountParams extends AppScopedParams {
398
+ interface CreateDiscountParams$1 extends AppScopedParams {
263
399
  code: string;
264
400
  type: string;
265
401
  value: number;
@@ -290,10 +426,10 @@ interface EditDiscountParams extends AppScopedParams {
290
426
  productIds?: string[];
291
427
  isActive?: boolean;
292
428
  }
293
- interface GetDiscountParams extends AppScopedParams {
429
+ interface GetDiscountParams$1 extends AppScopedParams {
294
430
  id: string;
295
431
  }
296
- interface CreateOptionParams extends AppScopedParams {
432
+ interface CreateOptionParams$1 extends AppScopedParams {
297
433
  name: string;
298
434
  description?: string | null;
299
435
  values: {
@@ -311,10 +447,10 @@ interface EditOptionParams extends AppScopedParams {
311
447
  text: string;
312
448
  }[];
313
449
  }
314
- interface GetOptionParams extends AppScopedParams {
450
+ interface GetOptionParams$1 extends AppScopedParams {
315
451
  id: string;
316
452
  }
317
- interface CreateOrderParams extends AppScopedParams {
453
+ interface CreateOrderParams$1 extends AppScopedParams {
318
454
  customerId: string;
319
455
  sellerId: string;
320
456
  items: {
@@ -338,10 +474,10 @@ interface EditOrderParams extends AppScopedParams {
338
474
  shippingAddress?: Record<string, unknown>;
339
475
  billingAddress?: Record<string, unknown>;
340
476
  }
341
- interface GetOrderParams extends AppScopedParams {
477
+ interface GetOrderParams$1 extends AppScopedParams {
342
478
  id: string;
343
479
  }
344
- interface CreateProductParams extends AppScopedParams {
480
+ interface CreateProductParams$1 extends AppScopedParams {
345
481
  name: string;
346
482
  sku?: string | null;
347
483
  description?: string | null;
@@ -378,10 +514,10 @@ interface EditProductParams extends AppScopedParams {
378
514
  value: string;
379
515
  }[];
380
516
  }
381
- interface GetProductParams extends AppScopedParams {
517
+ interface GetProductParams$1 extends AppScopedParams {
382
518
  id: string;
383
519
  }
384
- interface CreateSellerParams extends AppScopedParams {
520
+ interface CreateSellerParams$1 extends AppScopedParams {
385
521
  fullname: string;
386
522
  telephone: string;
387
523
  email: string;
@@ -400,34 +536,28 @@ interface EditSellerParams extends AppScopedParams {
400
536
  telephone: string;
401
537
  email: string;
402
538
  }
403
- interface GetSellerParams extends AppScopedParams {
539
+ interface GetSellerParams$1 extends AppScopedParams {
404
540
  id: string;
405
541
  }
406
- interface CreateShippingProfileParams extends AppScopedParams {
407
- name: string;
408
- zones?: unknown[];
409
- isDefault?: boolean;
410
- }
411
- interface EditShippingProfileParams extends AppScopedParams {
412
- id: string;
542
+ interface CreateShippingProfileParams$1 extends AppScopedParams {
413
543
  name: string;
414
544
  zones?: unknown[];
415
545
  isDefault?: boolean;
416
546
  }
417
- interface GetShippingProfileParams extends AppScopedParams {
547
+ interface GetShippingProfileParams$1 extends AppScopedParams {
418
548
  id: string;
419
549
  }
420
- interface CreateTagParams extends AppScopedParams {
550
+ interface CreateTagParams$1 extends AppScopedParams {
421
551
  name: string;
422
552
  }
423
553
  interface EditTagParams extends AppScopedParams {
424
554
  id: string;
425
555
  name: string;
426
556
  }
427
- interface GetTagParams extends AppScopedParams {
557
+ interface GetTagParams$1 extends AppScopedParams {
428
558
  id: string;
429
559
  }
430
- interface CreateTaxParams extends AppScopedParams {
560
+ interface CreateTaxParams$1 extends AppScopedParams {
431
561
  name: string;
432
562
  rate: number;
433
563
  country?: string | null;
@@ -444,105 +574,105 @@ interface EditTaxParams extends AppScopedParams {
444
574
  isCompound?: boolean;
445
575
  isShippingTaxable?: boolean;
446
576
  }
447
- interface GetTaxParams extends AppScopedParams {
577
+ interface GetTaxParams$1 extends AppScopedParams {
448
578
  id: string;
449
579
  }
450
580
  declare class StoreBadgeModule {
451
581
  private readonly http;
452
582
  constructor(http: HttpClient);
453
583
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
454
- create(params: CreateBadgeParams): Promise<ApiSuccessResponse<unknown>>;
584
+ create(params: CreateBadgeParams$1): Promise<ApiSuccessResponse<unknown>>;
455
585
  get(params: EditBadgeParams): Promise<ApiSuccessResponse<unknown>>;
456
586
  update(params: EditBadgeParams): Promise<ApiSuccessResponse<unknown>>;
457
- delete(params: DeleteBadgeParams): Promise<ApiSuccessResponse<unknown>>;
587
+ delete(params: DeleteBadgeParams$1): Promise<ApiSuccessResponse<unknown>>;
458
588
  }
459
589
  declare class StoreCategoryModule {
460
590
  private readonly http;
461
591
  constructor(http: HttpClient);
462
592
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
463
- create(params: CreateCategoryParams): Promise<ApiSuccessResponse<unknown>>;
464
- get(params: GetCategoryParams): Promise<ApiSuccessResponse<unknown>>;
593
+ create(params: CreateCategoryParams$1): Promise<ApiSuccessResponse<unknown>>;
594
+ get(params: GetCategoryParams$1): Promise<ApiSuccessResponse<unknown>>;
465
595
  update(params: EditCategoryParams): Promise<ApiSuccessResponse<unknown>>;
466
- delete(params: GetCategoryParams): Promise<ApiSuccessResponse<unknown>>;
596
+ delete(params: GetCategoryParams$1): Promise<ApiSuccessResponse<unknown>>;
467
597
  }
468
598
  declare class StoreCollectionModule {
469
599
  private readonly http;
470
600
  constructor(http: HttpClient);
471
601
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
472
- create(params: CreateCollectionParams): Promise<ApiSuccessResponse<unknown>>;
473
- get(params: GetCollectionParams): Promise<ApiSuccessResponse<unknown>>;
602
+ create(params: CreateCollectionParams$1): Promise<ApiSuccessResponse<unknown>>;
603
+ get(params: GetCollectionParams$1): Promise<ApiSuccessResponse<unknown>>;
474
604
  update(params: EditCollectionParams): Promise<ApiSuccessResponse<unknown>>;
475
- delete(params: GetCollectionParams): Promise<ApiSuccessResponse<unknown>>;
605
+ delete(params: GetCollectionParams$1): Promise<ApiSuccessResponse<unknown>>;
476
606
  }
477
607
  declare class StoreDiscountModule {
478
608
  private readonly http;
479
609
  constructor(http: HttpClient);
480
610
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
481
- create(params: CreateDiscountParams): Promise<ApiSuccessResponse<unknown>>;
482
- get(params: GetDiscountParams): Promise<ApiSuccessResponse<unknown>>;
611
+ create(params: CreateDiscountParams$1): Promise<ApiSuccessResponse<unknown>>;
612
+ get(params: GetDiscountParams$1): Promise<ApiSuccessResponse<unknown>>;
483
613
  update(params: EditDiscountParams): Promise<ApiSuccessResponse<unknown>>;
484
- delete(params: GetDiscountParams): Promise<ApiSuccessResponse<unknown>>;
614
+ delete(params: GetDiscountParams$1): Promise<ApiSuccessResponse<unknown>>;
485
615
  }
486
616
  declare class StoreOptionModule {
487
617
  private readonly http;
488
618
  constructor(http: HttpClient);
489
619
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
490
- create(params: CreateOptionParams): Promise<ApiSuccessResponse<unknown>>;
491
- get(params: GetOptionParams): Promise<ApiSuccessResponse<unknown>>;
620
+ create(params: CreateOptionParams$1): Promise<ApiSuccessResponse<unknown>>;
621
+ get(params: GetOptionParams$1): Promise<ApiSuccessResponse<unknown>>;
492
622
  update(params: EditOptionParams): Promise<ApiSuccessResponse<unknown>>;
493
- delete(params: GetOptionParams): Promise<ApiSuccessResponse<unknown>>;
623
+ delete(params: GetOptionParams$1): Promise<ApiSuccessResponse<unknown>>;
494
624
  }
495
625
  declare class StoreOrderModule {
496
626
  private readonly http;
497
627
  constructor(http: HttpClient);
498
628
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
499
- create(params: CreateOrderParams): Promise<ApiSuccessResponse<unknown>>;
500
- get(params: GetOrderParams): Promise<ApiSuccessResponse<unknown>>;
629
+ create(params: CreateOrderParams$1): Promise<ApiSuccessResponse<unknown>>;
630
+ get(params: GetOrderParams$1): Promise<ApiSuccessResponse<unknown>>;
501
631
  update(params: EditOrderParams): Promise<ApiSuccessResponse<unknown>>;
502
- delete(params: GetOrderParams): Promise<ApiSuccessResponse<unknown>>;
632
+ delete(params: GetOrderParams$1): Promise<ApiSuccessResponse<unknown>>;
503
633
  }
504
634
  declare class StoreProductModule {
505
635
  private readonly http;
506
636
  constructor(http: HttpClient);
507
637
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
508
- create(params: CreateProductParams): Promise<ApiSuccessResponse<unknown>>;
509
- get(params: GetProductParams): Promise<ApiSuccessResponse<unknown>>;
638
+ create(params: CreateProductParams$1): Promise<ApiSuccessResponse<unknown>>;
639
+ get(params: GetProductParams$1): Promise<ApiSuccessResponse<unknown>>;
510
640
  update(params: EditProductParams): Promise<ApiSuccessResponse<unknown>>;
511
- delete(params: GetProductParams): Promise<ApiSuccessResponse<unknown>>;
641
+ delete(params: GetProductParams$1): Promise<ApiSuccessResponse<unknown>>;
512
642
  }
513
643
  declare class StoreSellerModule {
514
644
  private readonly http;
515
645
  constructor(http: HttpClient);
516
646
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
517
- create(params: CreateSellerParams): Promise<ApiSuccessResponse<unknown>>;
518
- get(params: GetSellerParams): Promise<ApiSuccessResponse<unknown>>;
647
+ create(params: CreateSellerParams$1): Promise<ApiSuccessResponse<unknown>>;
648
+ get(params: GetSellerParams$1): Promise<ApiSuccessResponse<unknown>>;
519
649
  update(params: EditSellerParams): Promise<ApiSuccessResponse<unknown>>;
520
- delete(params: GetSellerParams): Promise<ApiSuccessResponse<unknown>>;
650
+ delete(params: GetSellerParams$1): Promise<ApiSuccessResponse<unknown>>;
521
651
  }
522
652
  declare class StoreShippingModule {
523
653
  private readonly http;
524
654
  constructor(http: HttpClient);
525
655
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
526
- create(params: CreateShippingProfileParams): Promise<ApiSuccessResponse<unknown>>;
527
- delete(params: GetShippingProfileParams): Promise<ApiSuccessResponse<unknown>>;
656
+ create(params: CreateShippingProfileParams$1): Promise<ApiSuccessResponse<unknown>>;
657
+ delete(params: GetShippingProfileParams$1): Promise<ApiSuccessResponse<unknown>>;
528
658
  }
529
659
  declare class StoreTagModule {
530
660
  private readonly http;
531
661
  constructor(http: HttpClient);
532
662
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
533
- create(params: CreateTagParams): Promise<ApiSuccessResponse<unknown>>;
534
- get(params: GetTagParams): Promise<ApiSuccessResponse<unknown>>;
663
+ create(params: CreateTagParams$1): Promise<ApiSuccessResponse<unknown>>;
664
+ get(params: GetTagParams$1): Promise<ApiSuccessResponse<unknown>>;
535
665
  update(params: EditTagParams): Promise<ApiSuccessResponse<unknown>>;
536
- delete(params: GetTagParams): Promise<ApiSuccessResponse<unknown>>;
666
+ delete(params: GetTagParams$1): Promise<ApiSuccessResponse<unknown>>;
537
667
  }
538
668
  declare class StoreTaxModule {
539
669
  private readonly http;
540
670
  constructor(http: HttpClient);
541
671
  list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
542
- create(params: CreateTaxParams): Promise<ApiSuccessResponse<unknown>>;
543
- get(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>>;
672
+ create(params: CreateTaxParams$1): Promise<ApiSuccessResponse<unknown>>;
673
+ get(params: GetTaxParams$1): Promise<ApiSuccessResponse<unknown>>;
544
674
  update(params: EditTaxParams): Promise<ApiSuccessResponse<unknown>>;
545
- delete(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>>;
675
+ delete(params: GetTaxParams$1): Promise<ApiSuccessResponse<unknown>>;
546
676
  }
547
677
  declare class StoreModule {
548
678
  readonly badge: StoreBadgeModule;
@@ -559,127 +689,384 @@ declare class StoreModule {
559
689
  constructor(http: HttpClient);
560
690
  }
561
691
 
562
- interface WelcomeItemParams extends AppScopedParams {
692
+ interface WelcomeItem {
693
+ id: string;
694
+ appId: string;
695
+ fileUrl: string;
696
+ fileType: FileType;
697
+ title: string | null;
698
+ description: string | null;
699
+ plateformType: PlateformType;
700
+ sortOrder: number;
701
+ createdAt: string;
702
+ updatedAt: string;
703
+ }
704
+ interface ListWelcomeItemsParams extends AppScopedParams {
705
+ plateformType?: PlateformType;
563
706
  }
564
707
  interface CreateWelcomeItemParams extends AppScopedParams {
565
708
  fileUrl: string;
566
- fileType?: string;
567
- title?: string;
568
- description?: string;
569
- plateformType: string;
709
+ fileType?: FileType;
710
+ title?: string | null;
711
+ description?: string | null;
712
+ plateformType: PlateformType;
570
713
  }
571
- interface EditWelcomeItemParams extends AppScopedParams {
714
+ interface UpdateWelcomeItemParams extends AppScopedParams {
572
715
  id: string;
573
716
  fileUrl?: string;
574
- fileType?: string;
575
- title?: string;
576
- description?: string;
577
- plateformType?: string;
717
+ fileType?: FileType;
718
+ title?: string | null;
719
+ description?: string | null;
720
+ plateformType?: PlateformType;
721
+ }
722
+ interface GetWelcomeItemParams extends AppScopedParams {
723
+ id: string;
578
724
  }
579
- interface WelcomeItemGetParams extends AppScopedParams {
725
+ interface DeleteWelcomeItemParams extends AppScopedParams {
580
726
  id: string;
581
727
  }
728
+
582
729
  declare class AppWelcomeItemModule {
583
730
  private readonly http;
584
731
  constructor(http: HttpClient);
585
- list(params: WelcomeItemParams): Promise<ApiSuccessResponse<unknown>>;
586
- create(params: CreateWelcomeItemParams): Promise<ApiSuccessResponse<unknown>>;
587
- get(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>>;
588
- update(params: EditWelcomeItemParams): Promise<ApiSuccessResponse<unknown>>;
589
- delete(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>>;
732
+ list(params: ListWelcomeItemsParams): Promise<ApiSuccessResponse<WelcomeItem[]>>;
733
+ create(params: CreateWelcomeItemParams): Promise<ApiSuccessResponse<WelcomeItem>>;
734
+ get(params: GetWelcomeItemParams): Promise<ApiSuccessResponse<WelcomeItem | null>>;
735
+ update(params: UpdateWelcomeItemParams): Promise<ApiSuccessResponse<WelcomeItem>>;
736
+ delete(params: DeleteWelcomeItemParams): Promise<ApiSuccessResponse<{
737
+ deleted: boolean;
738
+ }>>;
590
739
  }
591
740
 
592
- type CreateAgentParams = z.infer<typeof CreateAgentSchema> & {
741
+ /**
742
+ * Company summary for nested relations
743
+ */
744
+ interface CompanySummary {
745
+ id: string;
746
+ name: string;
747
+ }
748
+ /**
749
+ * Company list item
750
+ */
751
+ interface MultiServiceCompanyListItem {
752
+ id: string;
593
753
  appId: string;
594
- };
595
- type EditAgentParams = z.infer<typeof UpdateAgentSchema> & {
754
+ name: string;
755
+ description: string | null;
756
+ email: string | null;
757
+ telephone: string | null;
758
+ address: string | null;
759
+ logo: string | null;
760
+ isDefault: boolean;
761
+ createdAt: string;
762
+ updatedAt: string;
763
+ }
764
+ /**
765
+ * Company detail with services, agents, appointments
766
+ */
767
+ interface MultiServiceCompanyDetail extends MultiServiceCompanyListItem {
768
+ services: Array<{
769
+ id: string;
770
+ name: string;
771
+ slug: string;
772
+ }>;
773
+ agents: Array<{
774
+ id: string;
775
+ fullname: string;
776
+ }>;
777
+ _count: {
778
+ services: number;
779
+ agents: number;
780
+ appointments: number;
781
+ };
782
+ }
783
+ interface CreateCompanyParams extends AppScopedParams {
784
+ name: string;
785
+ description?: string | null;
786
+ email?: string | null;
787
+ telephone?: string | null;
788
+ address?: string | null;
789
+ logo?: string | null;
790
+ isDefault?: boolean;
791
+ }
792
+ interface UpdateCompanyParams extends EntityIdParams {
793
+ name?: string;
794
+ description?: string | null;
795
+ email?: string | null;
796
+ telephone?: string | null;
797
+ address?: string | null;
798
+ logo?: string | null;
799
+ isDefault?: boolean;
800
+ }
801
+ interface DeleteCompanyParams extends EntityIdParams {
802
+ }
803
+ interface GetCompanyParams extends EntityIdParams {
804
+ }
805
+ interface ListCompaniesParams extends AppScopedParams {
806
+ }
807
+
808
+ interface FieldOption {
809
+ id: string;
810
+ fieldId: string;
811
+ label: string;
812
+ value: string;
813
+ description: string | null;
814
+ price: number | null;
815
+ }
816
+ interface ServiceField {
817
+ id: string;
818
+ serviceId: string;
819
+ label: string;
820
+ description: string | null;
821
+ type: FieldType;
822
+ required: boolean;
823
+ min: number | null;
824
+ max: number | null;
825
+ minLength: number | null;
826
+ maxLength: number | null;
827
+ regex: string | null;
828
+ multiplier: boolean;
829
+ options: FieldOption[];
830
+ }
831
+ /**
832
+ * Service summary for nested relations
833
+ */
834
+ interface ServiceSummary {
835
+ id: string;
836
+ name: string;
837
+ }
838
+ /**
839
+ * Service list item with company and fields
840
+ */
841
+ interface MultiServiceServiceListItem {
842
+ id: string;
596
843
  appId: string;
844
+ companyId: string;
845
+ slug: string;
846
+ name: string;
847
+ description: string | null;
848
+ icon: string | null;
849
+ basePrice: number | null;
850
+ categories: string[];
851
+ agentIds: string[];
852
+ createdAt: string;
853
+ updatedAt: string;
854
+ company: CompanySummary;
855
+ fields: ServiceField[];
856
+ }
857
+ /**
858
+ * Service detail
859
+ */
860
+ interface MultiServiceServiceDetail extends MultiServiceServiceListItem {
861
+ agents: Array<{
862
+ id: string;
863
+ fullname: string;
864
+ }>;
865
+ }
866
+ interface FieldOptionInput {
867
+ id?: string;
868
+ label: string;
869
+ value: string;
870
+ description?: string | null;
871
+ price?: number | null;
872
+ }
873
+ interface ServiceFieldInput {
874
+ id?: string;
875
+ label: string;
876
+ description?: string | null;
877
+ type: FieldType;
878
+ required?: boolean;
879
+ min?: number | null;
880
+ max?: number | null;
881
+ minLength?: number | null;
882
+ maxLength?: number | null;
883
+ regex?: string | null;
884
+ multiplier?: boolean;
885
+ options?: FieldOptionInput[];
886
+ }
887
+ interface CreateServiceParams extends AppScopedParams {
888
+ companyId: string;
889
+ name: string;
890
+ slug?: string;
891
+ description?: string | null;
892
+ icon?: string | null;
893
+ basePrice?: number | null;
894
+ categories?: string[];
895
+ agentIds?: string[];
896
+ fields?: ServiceFieldInput[];
897
+ }
898
+ interface UpdateServiceParams extends EntityIdParams {
899
+ name?: string;
900
+ description?: string | null;
901
+ icon?: string | null;
902
+ basePrice?: number | null;
903
+ categories?: string[];
904
+ agentIds?: string[];
905
+ fields?: ServiceFieldInput[];
906
+ }
907
+ interface DeleteServiceParams extends EntityIdParams {
908
+ }
909
+ interface GetServiceParams extends EntityIdParams {
910
+ }
911
+ interface ListServicesParams extends AppScopedParams {
912
+ companyId?: string;
913
+ }
914
+
915
+ /**
916
+ * Agent summary for nested relations
917
+ */
918
+ interface AgentSummary {
597
919
  id: string;
598
- };
599
- interface GetAgentParams extends AppScopedParams {
920
+ fullname: string;
921
+ }
922
+ /**
923
+ * Agent list item with company and services
924
+ */
925
+ interface MultiServiceAgentListItem {
600
926
  id: string;
601
- companyId?: string | null;
927
+ appId: string;
928
+ companyId: string;
929
+ serviceIds: string[];
930
+ fullname: string;
931
+ email: string | null;
932
+ telephone: string | null;
933
+ bio: string | null;
934
+ photo: string | null;
935
+ isActive: boolean;
936
+ createdAt: string;
937
+ updatedAt: string;
938
+ company: CompanySummary;
939
+ services: ServiceSummary[];
940
+ }
941
+ /**
942
+ * Agent detail
943
+ */
944
+ interface MultiServiceAgentDetail extends MultiServiceAgentListItem {
945
+ _count: {
946
+ appointments: number;
947
+ };
948
+ }
949
+ interface CreateAgentParams extends AppScopedParams {
950
+ companyId: string;
951
+ fullname: string;
952
+ email?: string | null;
953
+ telephone?: string | null;
954
+ bio?: string | null;
955
+ photo?: string | null;
956
+ isActive?: boolean;
957
+ serviceIds?: string[];
958
+ }
959
+ interface UpdateAgentParams extends EntityIdParams {
960
+ fullname?: string;
961
+ email?: string | null;
962
+ telephone?: string | null;
963
+ bio?: string | null;
964
+ photo?: string | null;
965
+ isActive?: boolean;
966
+ serviceIds?: string[];
967
+ }
968
+ interface DeleteAgentParams extends EntityIdParams {
969
+ }
970
+ interface GetAgentParams extends EntityIdParams {
602
971
  }
603
972
  interface ListAgentsParams extends AppScopedParams {
604
- companyId?: string | null;
605
973
  serviceId?: string;
606
974
  isActive?: boolean;
607
975
  }
976
+
608
977
  declare class MultiServiceAgentModule {
609
978
  private readonly http;
610
979
  constructor(http: HttpClient);
611
- list(params: ListAgentsParams): Promise<ApiSuccessResponse<unknown>>;
612
- create(params: CreateAgentParams): Promise<ApiSuccessResponse<unknown>>;
613
- get(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>>;
614
- update(params: EditAgentParams): Promise<ApiSuccessResponse<unknown>>;
615
- delete(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>>;
980
+ list(params: ListAgentsParams): Promise<ApiSuccessResponse<MultiServiceAgentListItem[]>>;
981
+ create(params: CreateAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
982
+ get(params: GetAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
983
+ update(params: UpdateAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
984
+ delete(params: DeleteAgentParams): Promise<ApiSuccessResponse<{
985
+ deleted: boolean;
986
+ }>>;
616
987
  }
617
988
 
618
- type CreateAppointmentParams = z.infer<typeof CreateAppointmentSchema> & {
619
- appId: string;
620
- };
621
- type UpdateAppointmentStatusParams = z.infer<typeof UpdateAppointmentStatusSchema> & {
622
- appId: string;
989
+ /**
990
+ * Appointment list item with service and agent
991
+ */
992
+ interface MultiServiceAppointmentListItem {
623
993
  id: string;
624
- companyId?: string | null;
625
- };
994
+ appId: string;
995
+ companyId: string;
996
+ serviceId: string;
997
+ agentId: string | null;
998
+ userId: string | null;
999
+ filledFields: Record<string, unknown>;
1000
+ totalPrice: number;
1001
+ date: string;
1002
+ commune: string;
1003
+ status: AppointmentStatus;
1004
+ createdAt: string;
1005
+ updatedAt: string;
1006
+ service: ServiceSummary;
1007
+ agent: AgentSummary | null;
1008
+ }
1009
+ /**
1010
+ * Appointment detail
1011
+ */
1012
+ interface MultiServiceAppointmentDetail extends MultiServiceAppointmentListItem {
1013
+ company: {
1014
+ id: string;
1015
+ name: string;
1016
+ };
1017
+ }
1018
+ interface CreateAppointmentParams extends AppScopedParams {
1019
+ companyId: string;
1020
+ serviceId: string;
1021
+ agentId?: string | null;
1022
+ userId?: string | null;
1023
+ filledFields: Record<string, unknown>;
1024
+ totalPrice: number;
1025
+ date: string;
1026
+ commune: string;
1027
+ status?: AppointmentStatus;
1028
+ }
1029
+ interface UpdateAppointmentStatusParams extends EntityIdParams {
1030
+ status: AppointmentStatus;
1031
+ }
1032
+ interface GetAppointmentParams extends EntityIdParams {
1033
+ }
626
1034
  interface ListAppointmentsParams extends AppScopedParams {
627
- companyId?: string | null;
1035
+ companyId?: string;
628
1036
  serviceId?: string;
629
- status?: string;
1037
+ status?: AppointmentStatus;
630
1038
  }
1039
+
631
1040
  declare class MultiServiceAppointmentModule {
632
1041
  private readonly http;
633
1042
  constructor(http: HttpClient);
634
- create(params: CreateAppointmentParams): Promise<ApiSuccessResponse<unknown>>;
635
- list(params: ListAppointmentsParams): Promise<ApiSuccessResponse<unknown>>;
636
- updateStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<unknown>>;
1043
+ create(params: CreateAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
1044
+ list(params: ListAppointmentsParams): Promise<ApiSuccessResponse<MultiServiceAppointmentListItem[]>>;
1045
+ updateStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
637
1046
  }
638
1047
 
639
- type CreateCompanyParams = z.infer<typeof CreateCompanySchema> & {
640
- appId: string;
641
- };
642
- type EditCompanyParams = z.infer<typeof UpdateCompanySchema> & {
643
- appId: string;
644
- id: string;
645
- };
646
- interface GetCompanyParams extends AppScopedParams {
647
- id: string;
648
- }
649
- interface ListCompaniesParams extends AppScopedParams {
650
- }
651
1048
  declare class MultiServiceCompanyModule {
652
1049
  private readonly http;
653
1050
  constructor(http: HttpClient);
654
- list(params: ListCompaniesParams): Promise<ApiSuccessResponse<unknown>>;
655
- create(params: CreateCompanyParams): Promise<ApiSuccessResponse<unknown>>;
656
- get(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>>;
657
- update(params: EditCompanyParams): Promise<ApiSuccessResponse<unknown>>;
658
- delete(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>>;
1051
+ list(params: ListCompaniesParams): Promise<ApiSuccessResponse<MultiServiceCompanyListItem[]>>;
1052
+ create(params: CreateCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
1053
+ get(params: GetCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
1054
+ update(params: UpdateCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
1055
+ delete(params: DeleteCompanyParams): Promise<ApiSuccessResponse<{
1056
+ deleted: boolean;
1057
+ }>>;
659
1058
  }
660
1059
 
661
- type CreateServiceParams = z.infer<typeof CreateServiceSchema> & {
662
- appId: string;
663
- };
664
- type EditServiceParams = z.infer<typeof UpdateServiceSchema> & {
665
- appId: string;
666
- id: string;
667
- };
668
- interface GetServiceParams extends AppScopedParams {
669
- id: string;
670
- companyId?: string | null;
671
- }
672
- interface ListServicesParams extends AppScopedParams {
673
- companyId?: string | null;
674
- }
675
1060
  declare class MultiServiceServiceModule {
676
1061
  private readonly http;
677
1062
  constructor(http: HttpClient);
678
- list(params: ListServicesParams): Promise<ApiSuccessResponse<unknown>>;
679
- create(params: CreateServiceParams): Promise<ApiSuccessResponse<unknown>>;
680
- get(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>>;
681
- update(params: EditServiceParams): Promise<ApiSuccessResponse<unknown>>;
682
- delete(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>>;
1063
+ list(params: ListServicesParams): Promise<ApiSuccessResponse<MultiServiceServiceListItem[]>>;
1064
+ create(params: CreateServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
1065
+ get(params: GetServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
1066
+ update(params: UpdateServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
1067
+ delete(params: DeleteServiceParams): Promise<ApiSuccessResponse<{
1068
+ deleted: boolean;
1069
+ }>>;
683
1070
  }
684
1071
 
685
1072
  declare class MultiServiceModule {
@@ -702,6 +1089,891 @@ declare class AppModule {
702
1089
  constructor(http: HttpClient);
703
1090
  }
704
1091
 
1092
+ /**
1093
+ * Seller summary used in nested relations (badge, category, product, etc.)
1094
+ */
1095
+ interface SellerSummary {
1096
+ id: string;
1097
+ fullname: string;
1098
+ avatar: string | null;
1099
+ telephone: string;
1100
+ isDefault: boolean;
1101
+ }
1102
+ /**
1103
+ * Seller list item (password and hash fields omitted)
1104
+ */
1105
+ interface StoreSellerListItem {
1106
+ id: string;
1107
+ appId: string;
1108
+ fullname: string;
1109
+ telephone: string;
1110
+ email: string;
1111
+ avatar: string | null;
1112
+ avatarId: string | null;
1113
+ country: string;
1114
+ isDefault: boolean;
1115
+ description: string | null;
1116
+ address: string | null;
1117
+ status: string;
1118
+ createdAt: string;
1119
+ updatedAt: string;
1120
+ }
1121
+ /**
1122
+ * Seller detail with relations
1123
+ */
1124
+ interface StoreSellerDetail extends StoreSellerListItem {
1125
+ badges: Array<{
1126
+ id: string;
1127
+ name: string;
1128
+ slug: string;
1129
+ image: string | null;
1130
+ }>;
1131
+ categories: Array<{
1132
+ id: string;
1133
+ name: string;
1134
+ slug: string;
1135
+ image: string | null;
1136
+ }>;
1137
+ options: Array<{
1138
+ id: string;
1139
+ name: string;
1140
+ }>;
1141
+ products: Array<{
1142
+ id: string;
1143
+ name: string;
1144
+ slug: string;
1145
+ }>;
1146
+ }
1147
+ interface CreateSellerParams extends AppScopedParams {
1148
+ fullname: string;
1149
+ telephone: string;
1150
+ email: string;
1151
+ password?: string | null;
1152
+ confirm?: string | null;
1153
+ avatar?: string | null;
1154
+ avatarId?: string | null;
1155
+ country?: string;
1156
+ isDefault?: boolean;
1157
+ }
1158
+ interface UpdateSellerParams extends EntityIdParams {
1159
+ fullname: string;
1160
+ telephone: string;
1161
+ email: string;
1162
+ avatar?: string | null;
1163
+ avatarId?: string | null;
1164
+ }
1165
+ interface DeleteSellerParams extends EntityIdParams {
1166
+ }
1167
+ interface GetSellerParams extends EntityIdParams {
1168
+ }
1169
+ interface ListSellersParams extends AppScopedParams {
1170
+ }
1171
+
1172
+ /**
1173
+ * Badge list item with seller summary
1174
+ */
1175
+ interface StoreBadgeListItem {
1176
+ id: string;
1177
+ image: string | null;
1178
+ imageId: string | null;
1179
+ name: string;
1180
+ description: string | null;
1181
+ slug: string;
1182
+ color: string | null;
1183
+ appId: string;
1184
+ sellerId: string;
1185
+ isActive: boolean;
1186
+ createdAt: string;
1187
+ updatedAt: string;
1188
+ seller: SellerSummary;
1189
+ }
1190
+ /**
1191
+ * Badge detail with app info and product count
1192
+ */
1193
+ interface StoreBadgeDetail {
1194
+ id: string;
1195
+ image: string | null;
1196
+ imageId: string | null;
1197
+ name: string;
1198
+ description: string | null;
1199
+ slug: string;
1200
+ color: string | null;
1201
+ appId: string;
1202
+ sellerId: string;
1203
+ isActive: boolean;
1204
+ createdAt: string;
1205
+ updatedAt: string;
1206
+ app: {
1207
+ id: string;
1208
+ name: string;
1209
+ slug: string;
1210
+ };
1211
+ _count: {
1212
+ products: number;
1213
+ };
1214
+ }
1215
+ interface CreateBadgeParams extends AppScopedParams {
1216
+ name: string;
1217
+ description?: string | null;
1218
+ image?: string | null;
1219
+ imageId?: string | null;
1220
+ sellerId: string;
1221
+ }
1222
+ interface UpdateBadgeParams extends EntityIdParams {
1223
+ name: string;
1224
+ description?: string | null;
1225
+ image?: string | null;
1226
+ imageId?: string | null;
1227
+ }
1228
+ interface DeleteBadgeParams extends EntityIdParams {
1229
+ }
1230
+ interface GetBadgeParams extends EntityIdParams {
1231
+ }
1232
+ interface ListBadgesParams extends AppScopedParams {
1233
+ }
1234
+
1235
+ /**
1236
+ * Category list item with parent and seller
1237
+ */
1238
+ interface StoreCategoryListItem {
1239
+ id: string;
1240
+ appId: string;
1241
+ image: string | null;
1242
+ imageId: string | null;
1243
+ name: string;
1244
+ description: string | null;
1245
+ slug: string;
1246
+ sellerId: string;
1247
+ parentId: string | null;
1248
+ isActive: boolean;
1249
+ sortOrder: number;
1250
+ createdAt: string;
1251
+ updatedAt: string;
1252
+ parent: {
1253
+ name: string;
1254
+ } | null;
1255
+ seller: SellerSummary;
1256
+ }
1257
+ /**
1258
+ * Category detail with subcategories and products
1259
+ */
1260
+ interface StoreCategoryDetail {
1261
+ id: string;
1262
+ appId: string;
1263
+ image: string | null;
1264
+ imageId: string | null;
1265
+ name: string;
1266
+ description: string | null;
1267
+ slug: string;
1268
+ sellerId: string;
1269
+ parentId: string | null;
1270
+ isActive: boolean;
1271
+ sortOrder: number;
1272
+ createdAt: string;
1273
+ updatedAt: string;
1274
+ parent: {
1275
+ id: string;
1276
+ name: string;
1277
+ } | null;
1278
+ subCategories: Array<{
1279
+ id: string;
1280
+ name: string;
1281
+ slug: string;
1282
+ }>;
1283
+ _count: {
1284
+ products: number;
1285
+ };
1286
+ }
1287
+ interface CreateCategoryParams extends AppScopedParams {
1288
+ name: string;
1289
+ description?: string | null;
1290
+ image?: string | null;
1291
+ imageId?: string | null;
1292
+ sellerId: string;
1293
+ parentId?: string | null;
1294
+ isActive?: boolean;
1295
+ sortOrder?: number;
1296
+ }
1297
+ interface UpdateCategoryParams extends EntityIdParams {
1298
+ name: string;
1299
+ description?: string | null;
1300
+ image?: string | null;
1301
+ imageId?: string | null;
1302
+ parentId?: string | null;
1303
+ isActive?: boolean;
1304
+ sortOrder?: number;
1305
+ }
1306
+ interface DeleteCategoryParams extends EntityIdParams {
1307
+ }
1308
+ interface GetCategoryParams extends EntityIdParams {
1309
+ }
1310
+ interface ListCategoriesParams extends SearchableListParams {
1311
+ parentId?: string;
1312
+ sellerId?: string;
1313
+ }
1314
+
1315
+ /**
1316
+ * Tag list item
1317
+ */
1318
+ interface StoreTagListItem {
1319
+ id: string;
1320
+ name: string;
1321
+ sellerId: string | null;
1322
+ appId: string;
1323
+ productIds: string[];
1324
+ createdAt: string;
1325
+ updatedAt: string;
1326
+ }
1327
+ /**
1328
+ * Tag detail with product count
1329
+ */
1330
+ interface StoreTagDetail extends StoreTagListItem {
1331
+ _count: {
1332
+ products: number;
1333
+ };
1334
+ }
1335
+ interface CreateTagParams extends AppScopedParams {
1336
+ name: string;
1337
+ sellerId?: string;
1338
+ }
1339
+ interface UpdateTagParams extends EntityIdParams {
1340
+ name: string;
1341
+ }
1342
+ interface DeleteTagParams extends EntityIdParams {
1343
+ }
1344
+ interface GetTagParams extends EntityIdParams {
1345
+ }
1346
+ interface ListTagsParams extends SearchableListParams {
1347
+ sellerId?: string;
1348
+ }
1349
+
1350
+ /**
1351
+ * Collection list item
1352
+ */
1353
+ interface StoreCollectionListItem {
1354
+ id: string;
1355
+ appId: string;
1356
+ sellerId: string | null;
1357
+ title: string;
1358
+ description: string | null;
1359
+ slug: string;
1360
+ image: string | null;
1361
+ type: CollectionType;
1362
+ productIds: string[];
1363
+ isActive: boolean;
1364
+ createdAt: string;
1365
+ updatedAt: string;
1366
+ }
1367
+ /**
1368
+ * Collection detail with products
1369
+ */
1370
+ interface StoreCollectionDetail extends StoreCollectionListItem {
1371
+ products: Array<{
1372
+ id: string;
1373
+ name: string;
1374
+ slug: string;
1375
+ }>;
1376
+ _count: {
1377
+ products: number;
1378
+ };
1379
+ }
1380
+ interface CreateCollectionParams extends AppScopedParams {
1381
+ title: string;
1382
+ description?: string | null;
1383
+ slug?: string;
1384
+ image?: string | null;
1385
+ type?: CollectionType;
1386
+ productIds?: string[];
1387
+ sellerId?: string;
1388
+ isActive?: boolean;
1389
+ }
1390
+ interface UpdateCollectionParams extends EntityIdParams {
1391
+ title: string;
1392
+ description?: string | null;
1393
+ image?: string | null;
1394
+ type?: CollectionType;
1395
+ productIds?: string[];
1396
+ isActive?: boolean;
1397
+ }
1398
+ interface DeleteCollectionParams extends EntityIdParams {
1399
+ }
1400
+ interface GetCollectionParams extends EntityIdParams {
1401
+ }
1402
+ interface ListCollectionsParams extends SearchableListParams {
1403
+ sellerId?: string;
1404
+ type?: CollectionType;
1405
+ }
1406
+
1407
+ /**
1408
+ * Option value
1409
+ */
1410
+ interface StoreOptionValue {
1411
+ id: string;
1412
+ text: string;
1413
+ imageId: string | null;
1414
+ image: string | null;
1415
+ sortOrder: number;
1416
+ optionId: string | null;
1417
+ sellerId: string | null;
1418
+ appId: string;
1419
+ variantIds: string[];
1420
+ createdAt: string;
1421
+ updatedAt: string;
1422
+ }
1423
+ /**
1424
+ * Option list item with values
1425
+ */
1426
+ interface StoreOptionListItem {
1427
+ id: string;
1428
+ name: string;
1429
+ description: string | null;
1430
+ type: StoreOptionType;
1431
+ appId: string;
1432
+ sellerId: string;
1433
+ isRequired: boolean;
1434
+ isActive: boolean;
1435
+ createdAt: string;
1436
+ updatedAt: string;
1437
+ values: StoreOptionValue[];
1438
+ seller: SellerSummary;
1439
+ }
1440
+ /**
1441
+ * Option detail
1442
+ */
1443
+ interface StoreOptionDetail extends StoreOptionListItem {
1444
+ }
1445
+ interface OptionValueInput {
1446
+ id?: string;
1447
+ text: string;
1448
+ image?: string | null;
1449
+ imageId?: string | null;
1450
+ sortOrder?: number;
1451
+ }
1452
+ interface CreateOptionParams extends AppScopedParams {
1453
+ name: string;
1454
+ description?: string | null;
1455
+ type?: StoreOptionType;
1456
+ sellerId: string;
1457
+ isRequired?: boolean;
1458
+ isActive?: boolean;
1459
+ values: OptionValueInput[];
1460
+ }
1461
+ interface UpdateOptionParams extends EntityIdParams {
1462
+ name: string;
1463
+ description?: string | null;
1464
+ type?: StoreOptionType;
1465
+ isRequired?: boolean;
1466
+ isActive?: boolean;
1467
+ values: OptionValueInput[];
1468
+ }
1469
+ interface DeleteOptionParams extends EntityIdParams {
1470
+ }
1471
+ interface GetOptionParams extends EntityIdParams {
1472
+ }
1473
+ interface ListOptionsParams extends SearchableListParams {
1474
+ sellerId?: string;
1475
+ }
1476
+
1477
+ interface ProductImage {
1478
+ url: string;
1479
+ }
1480
+ interface ProductImageFull {
1481
+ id: string;
1482
+ url: string;
1483
+ imageId: string | null;
1484
+ variantId: string;
1485
+ sellerId: string;
1486
+ appId: string;
1487
+ }
1488
+ interface ProductVariantOptionValue {
1489
+ id: string;
1490
+ text: string;
1491
+ optionId: string | null;
1492
+ }
1493
+ interface ProductDimension {
1494
+ length: number | null;
1495
+ width: number | null;
1496
+ height: number | null;
1497
+ }
1498
+ /**
1499
+ * Variant in product list (minimal data)
1500
+ */
1501
+ interface ProductVariantListItem {
1502
+ id: string;
1503
+ price: number;
1504
+ discountPrice: number | null;
1505
+ createdAt: string;
1506
+ images: ProductImage[];
1507
+ }
1508
+ /**
1509
+ * Product list item
1510
+ */
1511
+ interface StoreProductListItem {
1512
+ id: string;
1513
+ name: string;
1514
+ slug: string;
1515
+ categoryId: string;
1516
+ sellerId: string;
1517
+ badgeId: string | null;
1518
+ status: ProductStatus;
1519
+ createdAt: string;
1520
+ _count: {
1521
+ variants: number;
1522
+ reviews: number;
1523
+ };
1524
+ variants: ProductVariantListItem[];
1525
+ }
1526
+ /**
1527
+ * Full variant in product detail
1528
+ */
1529
+ interface ProductVariantDetail {
1530
+ id: string;
1531
+ productId: string;
1532
+ sku: string | null;
1533
+ barcode: string | null;
1534
+ name: string;
1535
+ description: string;
1536
+ price: number;
1537
+ discountPrice: number | null;
1538
+ compareAtPrice: number | null;
1539
+ costPerItem: number | null;
1540
+ isDefault: boolean;
1541
+ quantity: number;
1542
+ inventoryManagement: InventoryPolicy;
1543
+ allowBackorder: boolean;
1544
+ lowStoreAlert: number;
1545
+ weight: number | null;
1546
+ weightUnit: string | null;
1547
+ dimensions: ProductDimension | null;
1548
+ infinite: boolean;
1549
+ rating: number;
1550
+ createdAt: string;
1551
+ updatedAt: string;
1552
+ sellerId: string;
1553
+ appId: string;
1554
+ optionValueIds: string[];
1555
+ images: ProductImageFull[];
1556
+ optionValues: ProductVariantOptionValue[];
1557
+ }
1558
+ /**
1559
+ * Product detail with full relations
1560
+ */
1561
+ interface StoreProductDetail {
1562
+ id: string;
1563
+ name: string;
1564
+ description: string | null;
1565
+ slug: string;
1566
+ sku: string | null;
1567
+ appId: string;
1568
+ sellerId: string;
1569
+ badgeId: string | null;
1570
+ categoryId: string;
1571
+ isActive: boolean;
1572
+ isFeatured: boolean;
1573
+ rating: number;
1574
+ reviewCount: number;
1575
+ status: ProductStatus;
1576
+ seoTitle: string | null;
1577
+ seoDescription: string | null;
1578
+ tagIds: string[];
1579
+ collectionIds: string[];
1580
+ shippingProfileId: string | null;
1581
+ taxId: string | null;
1582
+ discountIds: string[];
1583
+ createdAt: string;
1584
+ seller: SellerSummary;
1585
+ badge: {
1586
+ id: string;
1587
+ name: string;
1588
+ } | null;
1589
+ category: {
1590
+ id: string;
1591
+ name: string;
1592
+ };
1593
+ variants: ProductVariantDetail[];
1594
+ }
1595
+ interface ProductVariantInput {
1596
+ id?: string;
1597
+ images: Array<{
1598
+ url: string;
1599
+ imageId?: string;
1600
+ }>;
1601
+ price: number;
1602
+ discountPrice?: number | null;
1603
+ compareAtPrice?: number | null;
1604
+ costPerItem?: number | null;
1605
+ isDefault?: boolean;
1606
+ quantity: number;
1607
+ inventoryManagement?: InventoryPolicy;
1608
+ allowBackorder?: boolean;
1609
+ sku?: string | null;
1610
+ barcode?: string | null;
1611
+ weight?: number | null;
1612
+ weightUnit?: string;
1613
+ valueIds?: string[];
1614
+ name?: string;
1615
+ description?: string;
1616
+ }
1617
+ interface ProductAttributeInput {
1618
+ key: string;
1619
+ value: string;
1620
+ }
1621
+ interface CreateProductParams extends AppScopedParams {
1622
+ name: string;
1623
+ sku?: string | null;
1624
+ description?: string | null;
1625
+ seoTitle?: string | null;
1626
+ seoDescription?: string | null;
1627
+ status?: ProductStatus;
1628
+ sellerId: string;
1629
+ categoryId: string;
1630
+ badgeId?: string | null;
1631
+ collectionIds?: string[];
1632
+ tagIds?: string[];
1633
+ shippingProfileId?: string | null;
1634
+ taxId?: string | null;
1635
+ discountIds?: string[];
1636
+ variants: ProductVariantInput[];
1637
+ attributes?: ProductAttributeInput[];
1638
+ }
1639
+ interface UpdateProductParams extends EntityIdParams {
1640
+ name: string;
1641
+ description?: string | null;
1642
+ seoTitle?: string | null;
1643
+ seoDescription?: string | null;
1644
+ status?: ProductStatus;
1645
+ categoryId: string;
1646
+ badgeId?: string | null;
1647
+ collectionIds?: string[];
1648
+ tagIds?: string[];
1649
+ shippingProfileId?: string | null;
1650
+ taxId?: string | null;
1651
+ discountIds?: string[];
1652
+ variants: ProductVariantInput[];
1653
+ attributes?: ProductAttributeInput[];
1654
+ }
1655
+ interface DeleteProductParams extends EntityIdParams {
1656
+ }
1657
+ interface GetProductParams extends EntityIdParams {
1658
+ }
1659
+ interface ListProductsParams extends SearchableListParams {
1660
+ categoryId?: string;
1661
+ sellerId?: string;
1662
+ collectionIds?: string[];
1663
+ tagIds?: string[];
1664
+ status?: ProductStatus;
1665
+ }
1666
+
1667
+ /**
1668
+ * Discount list item
1669
+ */
1670
+ interface StoreDiscountListItem {
1671
+ id: string;
1672
+ appId: string;
1673
+ sellerId: string | null;
1674
+ code: string;
1675
+ type: DiscountType;
1676
+ value: number;
1677
+ startsAt: string;
1678
+ endsAt: string | null;
1679
+ usageLimit: number | null;
1680
+ usedCount: number;
1681
+ minRequirement: DiscountMinRequirement;
1682
+ minQuantity: number | null;
1683
+ minAmount: number | null;
1684
+ appliesTo: DiscountAppliesTo;
1685
+ collectionIds: string[];
1686
+ productIds: string[];
1687
+ isActive: boolean;
1688
+ createdAt: string;
1689
+ updatedAt: string;
1690
+ }
1691
+ /**
1692
+ * Discount detail with products
1693
+ */
1694
+ interface StoreDiscountDetail extends StoreDiscountListItem {
1695
+ products: Array<{
1696
+ id: string;
1697
+ name: string;
1698
+ slug: string;
1699
+ }>;
1700
+ }
1701
+ interface CreateDiscountParams extends AppScopedParams {
1702
+ code: string;
1703
+ type: DiscountType;
1704
+ value: number;
1705
+ startsAt: string;
1706
+ endsAt?: string | null;
1707
+ usageLimit?: number | null;
1708
+ minRequirement?: DiscountMinRequirement;
1709
+ minQuantity?: number | null;
1710
+ minAmount?: number | null;
1711
+ appliesTo?: DiscountAppliesTo;
1712
+ collectionIds?: string[];
1713
+ productIds?: string[];
1714
+ sellerId?: string;
1715
+ isActive?: boolean;
1716
+ }
1717
+ interface UpdateDiscountParams extends EntityIdParams {
1718
+ code?: string;
1719
+ type?: DiscountType;
1720
+ value?: number;
1721
+ startsAt?: string;
1722
+ endsAt?: string | null;
1723
+ usageLimit?: number | null;
1724
+ minRequirement?: DiscountMinRequirement;
1725
+ minQuantity?: number | null;
1726
+ minAmount?: number | null;
1727
+ appliesTo?: DiscountAppliesTo;
1728
+ collectionIds?: string[];
1729
+ productIds?: string[];
1730
+ isActive?: boolean;
1731
+ }
1732
+ interface DeleteDiscountParams extends EntityIdParams {
1733
+ }
1734
+ interface GetDiscountParams extends EntityIdParams {
1735
+ }
1736
+ interface ListDiscountsParams extends SearchableListParams {
1737
+ sellerId?: string;
1738
+ isActive?: boolean;
1739
+ }
1740
+
1741
+ /**
1742
+ * Shipping rate
1743
+ */
1744
+ interface StoreShippingRate {
1745
+ id: string;
1746
+ zoneId: string;
1747
+ name: string;
1748
+ type: ShippingRateType;
1749
+ price: number;
1750
+ minVal: number | null;
1751
+ maxVal: number | null;
1752
+ createdAt: string;
1753
+ updatedAt: string;
1754
+ }
1755
+ /**
1756
+ * Shipping zone with rates
1757
+ */
1758
+ interface StoreShippingZone {
1759
+ id: string;
1760
+ profileId: string;
1761
+ name: string;
1762
+ countries: string[];
1763
+ rates: StoreShippingRate[];
1764
+ createdAt: string;
1765
+ updatedAt: string;
1766
+ }
1767
+ /**
1768
+ * Shipping profile list item
1769
+ */
1770
+ interface StoreShippingProfileListItem {
1771
+ id: string;
1772
+ appId: string;
1773
+ sellerId: string;
1774
+ name: string;
1775
+ isDefault: boolean;
1776
+ createdAt: string;
1777
+ updatedAt: string;
1778
+ }
1779
+ /**
1780
+ * Shipping profile detail with zones
1781
+ */
1782
+ interface StoreShippingProfileDetail extends StoreShippingProfileListItem {
1783
+ zones: StoreShippingZone[];
1784
+ _count: {
1785
+ products: number;
1786
+ };
1787
+ }
1788
+ interface ShippingRateInput {
1789
+ id?: string;
1790
+ name: string;
1791
+ type: ShippingRateType;
1792
+ price: number;
1793
+ minVal?: number | null;
1794
+ maxVal?: number | null;
1795
+ }
1796
+ interface ShippingZoneInput {
1797
+ id?: string;
1798
+ name: string;
1799
+ countries: string[];
1800
+ rates: ShippingRateInput[];
1801
+ }
1802
+ interface CreateShippingProfileParams extends AppScopedParams {
1803
+ name: string;
1804
+ sellerId: string;
1805
+ isDefault?: boolean;
1806
+ zones?: ShippingZoneInput[];
1807
+ }
1808
+ interface UpdateShippingProfileParams extends EntityIdParams {
1809
+ name?: string;
1810
+ isDefault?: boolean;
1811
+ zones?: ShippingZoneInput[];
1812
+ }
1813
+ interface DeleteShippingProfileParams extends EntityIdParams {
1814
+ }
1815
+ interface GetShippingProfileParams extends EntityIdParams {
1816
+ }
1817
+ interface ListShippingProfilesParams extends AppScopedParams {
1818
+ sellerId?: string;
1819
+ }
1820
+
1821
+ /**
1822
+ * Tax list item
1823
+ */
1824
+ interface StoreTaxListItem {
1825
+ id: string;
1826
+ appId: string;
1827
+ sellerId: string;
1828
+ name: string;
1829
+ rate: number;
1830
+ country: string | null;
1831
+ region: string | null;
1832
+ isCompound: boolean;
1833
+ isShippingTaxable: boolean;
1834
+ createdAt: string;
1835
+ updatedAt: string;
1836
+ }
1837
+ /**
1838
+ * Tax detail with product count
1839
+ */
1840
+ interface StoreTaxDetail extends StoreTaxListItem {
1841
+ _count: {
1842
+ products: number;
1843
+ };
1844
+ }
1845
+ interface CreateTaxParams extends AppScopedParams {
1846
+ name: string;
1847
+ rate: number;
1848
+ sellerId: string;
1849
+ country?: string | null;
1850
+ region?: string | null;
1851
+ isCompound?: boolean;
1852
+ isShippingTaxable?: boolean;
1853
+ }
1854
+ interface UpdateTaxParams extends EntityIdParams {
1855
+ name?: string;
1856
+ rate?: number;
1857
+ country?: string | null;
1858
+ region?: string | null;
1859
+ isCompound?: boolean;
1860
+ isShippingTaxable?: boolean;
1861
+ }
1862
+ interface DeleteTaxParams extends EntityIdParams {
1863
+ }
1864
+ interface GetTaxParams extends EntityIdParams {
1865
+ }
1866
+ interface ListTaxesParams extends AppScopedParams {
1867
+ sellerId?: string;
1868
+ }
1869
+
1870
+ interface OrderAddress {
1871
+ firstName: string;
1872
+ lastName: string;
1873
+ address1: string;
1874
+ address2?: string | null;
1875
+ city: string;
1876
+ country: string;
1877
+ zip?: string | null;
1878
+ phone?: string | null;
1879
+ }
1880
+ interface OrderCustomerSummary {
1881
+ id: string;
1882
+ fullname: string;
1883
+ telephone: string;
1884
+ }
1885
+ interface OrderSellerSummary {
1886
+ id: string;
1887
+ fullname: string;
1888
+ avatar: string | null;
1889
+ }
1890
+ interface OrderItemVariant {
1891
+ id: string;
1892
+ price: number;
1893
+ discountPrice: number | null;
1894
+ product: {
1895
+ id: string;
1896
+ name: string;
1897
+ slug: string;
1898
+ };
1899
+ images: Array<{
1900
+ url: string;
1901
+ }>;
1902
+ }
1903
+ interface OrderCartItem {
1904
+ id: string;
1905
+ variantId: string;
1906
+ productId: string;
1907
+ quantity: number;
1908
+ createdAt: string;
1909
+ updatedAt: string;
1910
+ orderId: string;
1911
+ variant: OrderItemVariant;
1912
+ }
1913
+ /**
1914
+ * Order list item with customer, seller, and items
1915
+ */
1916
+ interface StoreOrderListItem {
1917
+ id: string;
1918
+ ref: string | null;
1919
+ total: number;
1920
+ subtotal: number;
1921
+ taxTotal: number;
1922
+ shippingTotal: number;
1923
+ discountTotal: number;
1924
+ status: OrderStatus;
1925
+ paymentStatus: PaymentStatus;
1926
+ fulfillmentStatus: FulfillmentStatus;
1927
+ shippingAddress: OrderAddress | null;
1928
+ billingAddress: OrderAddress | null;
1929
+ customerId: string;
1930
+ sellerId: string;
1931
+ appId: string;
1932
+ createdAt: string;
1933
+ updatedAt: string;
1934
+ customer: OrderCustomerSummary;
1935
+ seller: OrderSellerSummary;
1936
+ items: OrderCartItem[];
1937
+ }
1938
+ /**
1939
+ * Order detail
1940
+ */
1941
+ interface StoreOrderDetail extends StoreOrderListItem {
1942
+ }
1943
+ interface OrderItemInput {
1944
+ variantId: string;
1945
+ productId: string;
1946
+ quantity: number;
1947
+ }
1948
+ interface CreateOrderParams extends AppScopedParams {
1949
+ customerId: string;
1950
+ sellerId: string;
1951
+ items: OrderItemInput[];
1952
+ shippingAddress?: OrderAddress;
1953
+ billingAddress?: OrderAddress;
1954
+ status?: OrderStatus;
1955
+ paymentStatus?: PaymentStatus;
1956
+ fulfillmentStatus?: FulfillmentStatus;
1957
+ }
1958
+ interface UpdateOrderParams extends EntityIdParams {
1959
+ status?: OrderStatus;
1960
+ paymentStatus?: PaymentStatus;
1961
+ fulfillmentStatus?: FulfillmentStatus;
1962
+ shippingAddress?: OrderAddress;
1963
+ billingAddress?: OrderAddress;
1964
+ }
1965
+ interface DeleteOrderParams extends EntityIdParams {
1966
+ }
1967
+ interface GetOrderParams extends EntityIdParams {
1968
+ }
1969
+ interface ListOrdersParams extends SearchableListParams {
1970
+ customerId?: string;
1971
+ sellerId?: string;
1972
+ status?: OrderStatus;
1973
+ paymentStatus?: PaymentStatus;
1974
+ fulfillmentStatus?: FulfillmentStatus;
1975
+ }
1976
+
705
1977
  interface AppliteUIConfig extends HttpClientConfig {
706
1978
  }
707
1979
  declare class AppliteUI {
@@ -710,4 +1982,4 @@ declare class AppliteUI {
710
1982
  constructor(config?: AppliteUIConfig);
711
1983
  }
712
1984
 
713
- export { type ApiErrorResponse, type ApiKeyParams, type ApiResponse, type ApiSuccessResponse, type AppCustomer, type AppCustomerAuthParams, type AppCustomerCheckParams, type AppCustomerDetail, type AppCustomerGetParams, type AppCustomerListFewItem, type AppCustomerListItem, type AppCustomerListParams, AppCustomerModule, type AppCustomerUpdateParams, type AppDetail, AppFinanceModule, AppInfoModule, AppModule, type AppScopedParams, AppStatsModule, type AppSummary, AppWelcomeItemModule, AppliteUI, type AppliteUIConfig, type BalanceParams, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateWelcomeItemParams, type DeleteBadgeParams, type EditAgentParams, type EditBadgeParams, type EditCategoryParams, type EditCollectionParams, type EditCompanyParams, type EditDiscountParams, type EditOptionParams, type EditOrderParams, type EditProductParams, type EditSellerParams, type EditServiceParams, type EditShippingProfileParams, type EditTagParams, type EditTaxParams, type EditWelcomeItemParams, type GetAgentParams, type GetAppBySlugParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetOptionParams, type GetOrderParams, type GetProductParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, HttpClient, type HttpClientConfig, type ListAgentsParams, type ListAppointmentsParams, type ListCompaniesParams, type ListServicesParams, MultiServiceAgentModule, MultiServiceAppointmentModule, MultiServiceCompanyModule, MultiServiceModule, MultiServiceServiceModule, type PlateformType, type Sexe, StoreBadgeModule, StoreCategoryModule, StoreCollectionModule, StoreDiscountModule, StoreModule, StoreOptionModule, StoreOrderModule, StoreProductModule, StoreSellerModule, StoreShippingModule, StoreTagModule, StoreTaxModule, type TransactionGetParams, type TransactionListParams, type UpdateAppointmentStatusParams, type UpdateStatisticParams, type WelcomeItemGetParams, type WelcomeItemParams, type WithdrawParams, plateformTypes, sexes };
1985
+ export { type AdvancedImageType, type AgentSummary, type ApiErrorResponse, type ApiKeyParams, type ApiResponse, type ApiSuccessResponse, type ApiSuccessResponseWithMeta, AppCustomerModule, type AppDetail, AppFinanceModule, AppInfoModule, AppModule, type AppScopedParams, AppStatsModule, type AppSummary, AppWelcomeItemModule, AppliteUI, type AppliteUIConfig, type AppointmentStatus, type BalanceParams, type CollectionType, type CompanySummary, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateWelcomeItemParams, type Currency, type Customer, type CustomerAddress, type CustomerAuthParams, type CustomerCheckParams, type CustomerDetail, type CustomerGetParams, type CustomerListFewItem, type CustomerListItem, type CustomerListParams, type CustomerStoreReview, type CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, type DeleteOptionParams, type DeleteOrderParams, type DeleteProductParams, type DeleteSellerParams, type DeleteServiceParams, type DeleteShippingProfileParams, type DeleteTagParams, type DeleteTaxParams, type DeleteWelcomeItemParams, type DiscountAppliesTo, type DiscountMinRequirement, type DiscountType, type EntityIdParams, type FieldOption, type FieldOptionInput, type FieldType, type FileType, type FulfillmentStatus, type GetAgentParams, type GetAppByIdParams, type GetAppBySlugParams, type GetAppointmentParams, type GetBadgeParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetOptionParams, type GetOrderParams, type GetProductParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, type GetWelcomeItemParams, HttpClient, type HttpClientConfig, type InventoryPolicy, type KolaboAppStatus, type KolaboPartnerType, type ListAgentsParams, type ListAppointmentsParams, type ListAppsParams, type ListBadgesParams, type ListCategoriesParams, type ListCollectionsParams, type ListCompaniesParams, type ListDiscountsParams, type ListOptionsParams, type ListOrdersParams, type ListParams, type ListProductsParams, type ListSellersParams, type ListServicesParams, type ListShippingProfilesParams, type ListTagsParams, type ListTaxesParams, type ListWelcomeItemsParams, type MemberRole, type MultiServiceAgentDetail, type MultiServiceAgentListItem, type MultiServiceAppointmentDetail, type MultiServiceAppointmentListItem, type MultiServiceCompanyDetail, type MultiServiceCompanyListItem, MultiServiceModule, type MultiServiceServiceDetail, type MultiServiceServiceListItem, type OptionValueInput, type OrderAddress, type OrderCartItem, type OrderCustomerSummary, type OrderItemInput, type OrderItemVariant, type OrderSellerSummary, type OrderStatus, type PaginationMeta, type PaymentStatus, type PlateformType, type ProductAttributeInput, type ProductDimension, type ProductImage, type ProductImageFull, type ProductStatus, type ProductVariantDetail, type ProductVariantInput, type ProductVariantListItem, type ProductVariantOptionValue, type SearchableListParams, type SellerSummary, type ServiceField, type ServiceFieldInput, type ServiceSummary, type Sexe, type ShippingRateInput, type ShippingRateType, type ShippingZoneInput, type Statistic, type StoreBadgeDetail, type StoreBadgeListItem, type StoreCategoryDetail, type StoreCategoryListItem, type StoreCollectionDetail, type StoreCollectionListItem, type StoreDiscountDetail, type StoreDiscountListItem, StoreModule, type StoreOptionDetail, type StoreOptionListItem, type StoreOptionType, type StoreOptionValue, type StoreOrderDetail, type StoreOrderListItem, type StoreProductDetail, type StoreProductListItem, type StoreSellerDetail, type StoreSellerListItem, type StoreShippingProfileDetail, type StoreShippingProfileListItem, type StoreShippingRate, type StoreShippingZone, type StoreTagDetail, type StoreTagListItem, type StoreTaxDetail, type StoreTaxListItem, type SubscriptionStatus, type Transaction, type TransactionDetail, type TransactionGetParams, type TransactionListParams, type TransactionProvider, type TransactionStatus, type UpdateAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, type UpdateCategoryParams, type UpdateCollectionParams, type UpdateCompanyParams, type UpdateDiscountParams, type UpdateOptionParams, type UpdateOrderParams, type UpdateProductParams, type UpdateSellerParams, type UpdateServiceParams, type UpdateShippingProfileParams, type UpdateStatisticParams, type UpdateTagParams, type UpdateTaxParams, type UpdateWelcomeItemParams, type WelcomeItem, type WithdrawParams, type WithdrawResult };