@applite/js-sdk 0.0.1 → 0.0.2

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.js CHANGED
@@ -28,7 +28,11 @@ __export(index_exports, {
28
28
  AppWelcomeItemModule: () => AppWelcomeItemModule,
29
29
  AppliteUI: () => AppliteUI,
30
30
  HttpClient: () => HttpClient,
31
+ MultiServiceAgentModule: () => MultiServiceAgentModule,
32
+ MultiServiceAppointmentModule: () => MultiServiceAppointmentModule,
33
+ MultiServiceCompanyModule: () => MultiServiceCompanyModule,
31
34
  MultiServiceModule: () => MultiServiceModule,
35
+ MultiServiceServiceModule: () => MultiServiceServiceModule,
32
36
  StoreBadgeModule: () => StoreBadgeModule,
33
37
  StoreCategoryModule: () => StoreCategoryModule,
34
38
  StoreCollectionModule: () => StoreCollectionModule,
@@ -529,85 +533,117 @@ var AppWelcomeItemModule = class {
529
533
  }
530
534
  };
531
535
 
532
- // src/modules/app/multi-service/index.ts
533
- var MultiServiceModule = class {
536
+ // src/modules/app/multi-service/agent.ts
537
+ var MultiServiceAgentModule = class {
534
538
  constructor(http) {
535
539
  this.http = http;
536
540
  }
537
- listCompanies(params) {
541
+ list(params) {
538
542
  const { appId, ...body } = params;
539
- return this.http.post(`/app/${appId}/multi-service/companies/list`, body);
543
+ return this.http.post(`/app/${appId}/multi-service/agents/list`, body);
540
544
  }
541
- createCompany(params) {
545
+ create(params) {
542
546
  const { appId, ...body } = params;
543
- return this.http.post(`/app/${appId}/multi-service/companies/create`, body);
544
- }
545
- getCompany(params) {
546
- const { appId, id, ...body } = params;
547
- return this.http.post(`/app/${appId}/multi-service/companies/${id}`, body);
548
- }
549
- updateCompany(params) {
550
- const { appId, id, ...body } = params;
551
- return this.http.post(`/app/${appId}/multi-service/companies/${id}/edit`, body);
547
+ return this.http.post(`/app/${appId}/multi-service/agents/create`, body);
552
548
  }
553
- deleteCompany(params) {
549
+ get(params) {
554
550
  const { appId, id, ...body } = params;
555
- return this.http.post(`/app/${appId}/multi-service/companies/${id}/delete`, body);
556
- }
557
- listServices(params) {
558
- const { appId, ...body } = params;
559
- return this.http.post(`/app/${appId}/multi-service/services/list`, body);
560
- }
561
- createService(params) {
562
- const { appId, ...body } = params;
563
- return this.http.post(`/app/${appId}/multi-service/services/create`, body);
551
+ return this.http.post(`/app/${appId}/multi-service/agents/${id}`, body);
564
552
  }
565
- getService(params) {
553
+ update(params) {
566
554
  const { appId, id, ...body } = params;
567
- return this.http.post(`/app/${appId}/multi-service/services/${id}`, body);
555
+ return this.http.post(`/app/${appId}/multi-service/agents/${id}/edit`, body);
568
556
  }
569
- updateService(params) {
557
+ delete(params) {
570
558
  const { appId, id, ...body } = params;
571
- return this.http.post(`/app/${appId}/multi-service/services/${id}/edit`, body);
559
+ return this.http.post(`/app/${appId}/multi-service/agents/${id}/delete`, body);
572
560
  }
573
- deleteService(params) {
574
- const { appId, id, ...body } = params;
575
- return this.http.post(`/app/${appId}/multi-service/services/${id}/delete`, body);
561
+ };
562
+
563
+ // src/modules/app/multi-service/appointment.ts
564
+ var MultiServiceAppointmentModule = class {
565
+ constructor(http) {
566
+ this.http = http;
576
567
  }
577
- createAppointment(params) {
568
+ create(params) {
578
569
  const { appId, ...body } = params;
579
570
  return this.http.post(`/app/${appId}/multi-service/appointments/create`, body);
580
571
  }
581
- listAppointments(params) {
572
+ list(params) {
582
573
  const { appId, ...body } = params;
583
574
  return this.http.post(`/app/${appId}/multi-service/appointments/list`, body);
584
575
  }
585
- updateAppointmentStatus(params) {
576
+ updateStatus(params) {
586
577
  const { appId, id, ...body } = params;
587
578
  return this.http.post(
588
579
  `/app/${appId}/multi-service/appointments/${id}/status`,
589
580
  body
590
581
  );
591
582
  }
592
- listAgents(params) {
583
+ };
584
+
585
+ // src/modules/app/multi-service/company.ts
586
+ var MultiServiceCompanyModule = class {
587
+ constructor(http) {
588
+ this.http = http;
589
+ }
590
+ list(params) {
593
591
  const { appId, ...body } = params;
594
- return this.http.post(`/app/${appId}/multi-service/agents/list`, body);
592
+ return this.http.post(`/app/${appId}/multi-service/companies/list`, body);
595
593
  }
596
- createAgent(params) {
594
+ create(params) {
597
595
  const { appId, ...body } = params;
598
- return this.http.post(`/app/${appId}/multi-service/agents/create`, body);
596
+ return this.http.post(`/app/${appId}/multi-service/companies/create`, body);
599
597
  }
600
- getAgent(params) {
598
+ get(params) {
601
599
  const { appId, id, ...body } = params;
602
- return this.http.post(`/app/${appId}/multi-service/agents/${id}`, body);
600
+ return this.http.post(`/app/${appId}/multi-service/companies/${id}`, body);
603
601
  }
604
- updateAgent(params) {
602
+ update(params) {
605
603
  const { appId, id, ...body } = params;
606
- return this.http.post(`/app/${appId}/multi-service/agents/${id}/edit`, body);
604
+ return this.http.post(`/app/${appId}/multi-service/companies/${id}/edit`, body);
607
605
  }
608
- deleteAgent(params) {
606
+ delete(params) {
609
607
  const { appId, id, ...body } = params;
610
- return this.http.post(`/app/${appId}/multi-service/agents/${id}/delete`, body);
608
+ return this.http.post(`/app/${appId}/multi-service/companies/${id}/delete`, body);
609
+ }
610
+ };
611
+
612
+ // src/modules/app/multi-service/service.ts
613
+ var MultiServiceServiceModule = class {
614
+ constructor(http) {
615
+ this.http = http;
616
+ }
617
+ list(params) {
618
+ const { appId, ...body } = params;
619
+ return this.http.post(`/app/${appId}/multi-service/services/list`, body);
620
+ }
621
+ create(params) {
622
+ const { appId, ...body } = params;
623
+ return this.http.post(`/app/${appId}/multi-service/services/create`, body);
624
+ }
625
+ get(params) {
626
+ const { appId, id, ...body } = params;
627
+ return this.http.post(`/app/${appId}/multi-service/services/${id}`, body);
628
+ }
629
+ update(params) {
630
+ const { appId, id, ...body } = params;
631
+ return this.http.post(`/app/${appId}/multi-service/services/${id}/edit`, body);
632
+ }
633
+ delete(params) {
634
+ const { appId, id, ...body } = params;
635
+ return this.http.post(`/app/${appId}/multi-service/services/${id}/delete`, body);
636
+ }
637
+ };
638
+
639
+ // src/modules/app/multi-service/index.ts
640
+ var MultiServiceModule = class {
641
+ constructor(http) {
642
+ this.http = http;
643
+ this.company = new MultiServiceCompanyModule(http);
644
+ this.service = new MultiServiceServiceModule(http);
645
+ this.appointment = new MultiServiceAppointmentModule(http);
646
+ this.agent = new MultiServiceAgentModule(http);
611
647
  }
612
648
  };
613
649
 
@@ -646,7 +682,11 @@ var AppliteUI = class {
646
682
  AppWelcomeItemModule,
647
683
  AppliteUI,
648
684
  HttpClient,
685
+ MultiServiceAgentModule,
686
+ MultiServiceAppointmentModule,
687
+ MultiServiceCompanyModule,
649
688
  MultiServiceModule,
689
+ MultiServiceServiceModule,
650
690
  StoreBadgeModule,
651
691
  StoreCategoryModule,
652
692
  StoreCollectionModule,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/http.ts","../src/modules/app/customer.ts","../src/modules/app/finance.ts","../src/modules/app/info.ts","../src/modules/app/stats.ts","../src/modules/app/store.ts","../src/modules/app/welcome-item.ts","../src/modules/app/multi-service/index.ts","../src/modules/app/index.ts"],"sourcesContent":["import { HttpClient, HttpClientConfig } from \"./http\";\nimport { AppModule } from \"./modules/app\";\n\nexport interface AppliteUIConfig extends HttpClientConfig {}\n\nexport class AppliteUI {\n readonly http: HttpClient;\n readonly app: AppModule;\n\n constructor(config: AppliteUIConfig = {}) {\n this.http = new HttpClient({\n baseUrl: config.baseUrl,\n headers: config.headers,\n fetchFn: config.fetchFn,\n });\n\n this.app = new AppModule(this.http);\n }\n}\n\nexport * from \"./http\";\nexport * from \"./modules/app\";\n","export interface HttpClientConfig {\n /**\n * Base URL used for every request. Defaults to an empty string so that\n * relative paths can be used when the SDK is consumed alongside the API.\n */\n baseUrl?: string;\n /**\n * Optional headers that should be sent with every request.\n */\n headers?: HeadersInit;\n /**\n * Custom fetch implementation for environments where the global fetch is\n * not available or needs to be mocked during testing.\n */\n fetchFn?: typeof fetch;\n}\n\nexport interface ApiSuccessResponse<T> {\n success: true;\n data: T;\n error?: unknown;\n}\n\nexport interface ApiErrorResponse {\n success: false;\n error?: unknown;\n}\n\nexport type ApiResponse<T> = ApiSuccessResponse<T> | ApiErrorResponse;\n\nexport class HttpClient {\n private readonly baseUrl: string;\n private readonly headers: HeadersInit;\n private readonly fetchImpl: typeof fetch;\n\n constructor(config: HttpClientConfig = {}) {\n this.baseUrl = config.baseUrl?.replace(/\\/$/, \"\") ?? \"\";\n this.headers = config.headers ?? {};\n this.fetchImpl = config.fetchFn ?? fetch;\n }\n\n async post<T>(path: string, body: Record<string, unknown> | object): Promise<ApiSuccessResponse<T>> {\n const url = `${this.baseUrl}${path}`;\n const response = await this.fetchImpl(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...this.headers,\n },\n body: JSON.stringify(body),\n });\n\n const contentType = response.headers.get(\"content-type\") ?? \"\";\n const isJson = contentType.includes(\"application/json\");\n const payload: ApiResponse<T> | null = isJson\n ? await response.json()\n : null;\n\n if (!response.ok) {\n const message = payload?.error ?? response.statusText;\n throw new Error(`Request failed with status ${response.status}: ${message}`);\n }\n\n if (!payload || payload.success !== true) {\n throw new Error(`Request failed: ${payload?.error ?? \"Unknown error\"}`);\n }\n\n return payload;\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\n\nexport const plateformTypes = [\n \"STORE\",\n \"TRANSPORT\",\n \"RESTAURATION\",\n \"MULTI_SERVICE\",\n \"E_LEARNING\",\n \"DUTICOTAC\",\n] as const;\n\nexport type PlateformType = (typeof plateformTypes)[number];\n\nexport const sexes = [\"M\", \"F\"] as const;\n\nexport type Sexe = (typeof sexes)[number];\n\nexport interface AppCustomerListParams {\n appId: string;\n apiKey: string;\n plateformType?: PlateformType[];\n}\n\nexport interface AppCustomerListItem {\n id: string;\n fullname: string;\n telephone: string;\n email: string | null;\n photoUrl: string | null;\n createdAt: string;\n plateforms: PlateformType[];\n}\n\nexport interface AppCustomerAuthParams {\n appId: string;\n apiKey: string;\n fullname: string;\n email?: string | null;\n telephone: string;\n plateform?: PlateformType | null;\n}\n\nexport interface AppCustomerCheckParams {\n appId: string;\n apiKey: string;\n telephone: string;\n plateform?: PlateformType | null;\n}\n\nexport interface AppCustomer {\n id: string;\n fullname: string;\n email: string | null;\n telephone: string;\n photoUrl: string | null;\n plateforms: PlateformType[];\n createdAt: string;\n}\n\nexport interface AppCustomerListFewItem {\n id: string;\n fullname: string;\n photoUrl: string | null;\n createdAt: string;\n}\n\nexport interface AppCustomerDetail extends AppCustomer {\n addresses: Record<string, unknown>[];\n transactions: Record<string, unknown>[];\n storeReviews: Record<string, unknown>[];\n app: {\n id: string;\n name: string;\n slug: string;\n };\n}\n\nexport interface AppCustomerGetParams {\n appId: string;\n apiKey: string;\n id: string;\n}\n\nexport interface AppCustomerUpdateParams {\n appId: string;\n apiKey: string;\n id: string;\n fullname?: string | null;\n email?: string | null;\n photoUrl?: string | null;\n photoId?: string | null;\n gender?: Sexe | null;\n dob?: string | Date | null;\n country?: string | null;\n}\n\nexport class AppCustomerModule {\n constructor(private readonly http: HttpClient) {}\n\n async list(\n params: AppCustomerListParams\n ): Promise<ApiSuccessResponse<AppCustomerListItem[]>> {\n const { appId, apiKey, plateformType = [] } = params;\n return this.http.post<AppCustomerListItem[]>(\n `/app/${appId}/customer/list`,\n {\n apiKey,\n plateformType,\n }\n );\n }\n\n async auth(params: AppCustomerAuthParams): Promise<ApiSuccessResponse<AppCustomer>> {\n const { appId, apiKey, fullname, email = null, telephone, plateform = null } = params;\n return this.http.post<AppCustomer>(`/app/${appId}/customer/auth`, {\n apiKey,\n fullname,\n email,\n telephone,\n plateform,\n });\n }\n\n async check(\n params: AppCustomerCheckParams\n ): Promise<ApiSuccessResponse<AppCustomer | null>> {\n const { appId, apiKey, telephone, plateform = null } = params;\n return this.http.post<AppCustomer | null>(`/app/${appId}/customer/check`, {\n apiKey,\n telephone,\n plateform,\n });\n }\n\n async listFew(\n params: AppCustomerListParams\n ): Promise<ApiSuccessResponse<AppCustomerListFewItem[]>> {\n const { appId, apiKey, plateformType = [] } = params;\n return this.http.post<AppCustomerListFewItem[]>(\n `/app/${appId}/customer/list/few`,\n {\n apiKey,\n plateformType,\n }\n );\n }\n\n async get(\n params: AppCustomerGetParams\n ): Promise<ApiSuccessResponse<AppCustomerDetail | null>> {\n const { appId, apiKey, id } = params;\n return this.http.post<AppCustomerDetail | null>(\n `/app/${appId}/customer/${id}`,\n {\n apiKey,\n }\n );\n }\n\n async update(\n params: AppCustomerUpdateParams\n ): Promise<ApiSuccessResponse<AppCustomerDetail>> {\n const { appId, apiKey, id, ...rest } = params;\n return this.http.post<AppCustomerDetail>(\n `/app/${appId}/customer/${id}/update`,\n {\n apiKey,\n ...rest,\n }\n );\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\nimport { AppScopedParams } from \"./types\";\n\nexport interface BalanceParams extends AppScopedParams {}\n\nexport interface TransactionListParams extends AppScopedParams {}\n\nexport interface TransactionGetParams extends AppScopedParams {\n id: string;\n}\n\nexport interface WithdrawParams extends AppScopedParams {\n amount: number;\n phoneNumber: string;\n password: string;\n paymentMethod: string;\n}\n\nexport class AppFinanceModule {\n constructor(private readonly http: HttpClient) {}\n\n balance(params: BalanceParams): Promise<ApiSuccessResponse<number | null>> {\n const { appId, ...body } = params;\n return this.http.post<number | null>(`/app/${appId}/balance`, body);\n }\n\n listTransactions(\n params: TransactionListParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/transaction/list`, body);\n }\n\n getTransaction(\n params: TransactionGetParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/transaction/${id}`, body);\n }\n\n withdraw(params: WithdrawParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/withdraw`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\nimport { ApiKeyParams, AppScopedParams } from \"./types\";\n\nexport interface CreateAppParams extends ApiKeyParams {\n name: string;\n description?: string | null;\n planId: string;\n}\n\nexport interface AppSummary {\n id: string;\n name: string;\n slug: string;\n description: string | null;\n modules: unknown;\n logo: string | null;\n createdAt: string;\n apiKey: string;\n totalCustomers: number;\n totalSales: number;\n totalOrders: number;\n ownerId: string;\n balance: number;\n plan: {\n id: string;\n name: string;\n };\n}\n\nexport interface AppDetail extends AppSummary {\n callbackUrl?: string | null;\n}\n\nexport interface GetAppBySlugParams extends ApiKeyParams {\n slug: string;\n}\n\nexport class AppInfoModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: ApiKeyParams): Promise<ApiSuccessResponse<AppSummary[]>> {\n return this.http.post<AppSummary[]>(\"/app/app/list\", params);\n }\n\n create(params: CreateAppParams): Promise<ApiSuccessResponse<AppDetail>> {\n return this.http.post<AppDetail>(\"/app/app/create\", params);\n }\n\n getBySlug(params: GetAppBySlugParams): Promise<ApiSuccessResponse<AppDetail>> {\n const { slug, ...body } = params;\n return this.http.post<AppDetail>(`/app/app/get/${slug}`, body);\n }\n\n getById(params: AppScopedParams): Promise<ApiSuccessResponse<AppDetail>> {\n const { appId, ...body } = params;\n return this.http.post<AppDetail>(`/app/app/${appId}`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\nimport { AppScopedParams } from \"./types\";\n\nexport interface GetStatisticParams extends AppScopedParams {\n type: string;\n year: number;\n month: string;\n plateform?: string | null;\n}\n\nexport interface CreateStatisticParams extends GetStatisticParams {\n amount: number;\n description?: string | null;\n}\n\nexport interface UpdateStatisticParams extends AppScopedParams {\n id: string;\n amount: number;\n description?: string | null;\n}\n\nexport class AppStatsModule {\n constructor(private readonly http: HttpClient) {}\n\n create(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/stats/create`, body);\n }\n\n get(params: GetStatisticParams): Promise<ApiSuccessResponse<number>> {\n const { appId, ...body } = params;\n return this.http.post<number>(`/app/${appId}/stats/get`, body);\n }\n\n set(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/stats/set`, body);\n }\n\n update(params: UpdateStatisticParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/stats/${id}/update`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\nimport { AppScopedParams } from \"./types\";\n\nexport interface CreateBadgeParams extends AppScopedParams {\n name: string;\n description?: string | null;\n image?: string | null;\n imageId?: string | null;\n sellerId: string;\n}\n\nexport interface EditBadgeParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n image?: string | null;\n imageId?: string | null;\n}\n\nexport interface DeleteBadgeParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateCategoryParams extends AppScopedParams {\n name: string;\n description?: string | null;\n sellerId: string;\n image?: string | null;\n imageId?: string | null;\n parentId?: string | null;\n}\n\nexport interface EditCategoryParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n image?: string | null;\n imageId?: string | null;\n parentId?: string | null;\n}\n\nexport interface GetCategoryParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateCollectionParams extends AppScopedParams {\n title: string;\n description?: string | null;\n slug: string;\n image?: string | null;\n type?: string;\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface EditCollectionParams extends AppScopedParams {\n id: string;\n title: string;\n description?: string | null;\n slug: string;\n image?: string | null;\n type?: string;\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface GetCollectionParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateDiscountParams extends AppScopedParams {\n code: string;\n type: string;\n value: number;\n startsAt: string | Date;\n endsAt?: string | Date | null;\n usageLimit?: number | null;\n minRequirement?: string;\n minQuantity?: number | null;\n minAmount?: number | null;\n appliesTo?: string;\n collectionIds?: string[];\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface EditDiscountParams extends AppScopedParams {\n id: string;\n code: string;\n type?: string;\n value?: number;\n startsAt?: string | Date;\n endsAt?: string | Date | null;\n usageLimit?: number | null;\n minRequirement?: string;\n minQuantity?: number | null;\n minAmount?: number | null;\n appliesTo?: string;\n collectionIds?: string[];\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface GetDiscountParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateOptionParams extends AppScopedParams {\n name: string;\n description?: string | null;\n values: { id: string; text: string }[];\n sellerId: string;\n}\n\nexport interface EditOptionParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n values: { id: string; text: string }[];\n}\n\nexport interface GetOptionParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateOrderParams extends AppScopedParams {\n customerId: string;\n sellerId: string;\n items: { variantId: string; productId: string; quantity?: number }[];\n ref?: string | null;\n shippingAddress?: Record<string, unknown>;\n billingAddress?: Record<string, unknown>;\n discountTotal?: number;\n shippingTotal?: number;\n taxTotal?: number;\n}\n\nexport interface EditOrderParams extends AppScopedParams {\n id: string;\n status?: string | null;\n paymentStatus?: string | null;\n fulfillmentStatus?: string | null;\n ref?: string | null;\n shippingAddress?: Record<string, unknown>;\n billingAddress?: Record<string, unknown>;\n}\n\nexport interface GetOrderParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateProductParams extends AppScopedParams {\n name: string;\n sku?: string | null;\n description?: string | null;\n seoTitle?: string | null;\n seoDescription?: string | null;\n status?: string;\n sellerId: string;\n categoryId: string;\n badgeId?: string | null;\n collectionIds?: string[];\n tagIds?: string[];\n shippingProfileId?: string | null;\n variants: unknown[];\n attributes?: { key: string; value: string }[];\n}\n\nexport interface EditProductParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n seoTitle?: string | null;\n seoDescription?: string | null;\n status?: string;\n categoryId?: string;\n badgeId?: string | null;\n collectionIds?: string[];\n tagIds?: string[];\n shippingProfileId?: string | null;\n variants: unknown[];\n attributes?: { key: string; value: string }[];\n}\n\nexport interface GetProductParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateSellerParams extends AppScopedParams {\n fullname: string;\n telephone: string;\n email: string;\n password?: string | null;\n confirm?: string | null;\n avatar?: string | null;\n avatarId?: string | null;\n country?: string;\n isDefault?: boolean;\n}\n\nexport interface EditSellerParams extends AppScopedParams {\n id: string;\n fullname: string;\n avatar?: string | null;\n avatarId?: string | null;\n telephone: string;\n email: string;\n}\n\nexport interface GetSellerParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateShippingProfileParams extends AppScopedParams {\n name: string;\n zones?: unknown[];\n isDefault?: boolean;\n}\n\nexport interface EditShippingProfileParams extends AppScopedParams {\n id: string;\n name: string;\n zones?: unknown[];\n isDefault?: boolean;\n}\n\nexport interface GetShippingProfileParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateTagParams extends AppScopedParams {\n name: string;\n}\n\nexport interface EditTagParams extends AppScopedParams {\n id: string;\n name: string;\n}\n\nexport interface GetTagParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateTaxParams extends AppScopedParams {\n name: string;\n rate: number;\n country?: string | null;\n region?: string | null;\n isCompound?: boolean;\n isShippingTaxable?: boolean;\n}\n\nexport interface EditTaxParams extends AppScopedParams {\n id: string;\n name: string;\n rate?: number;\n country?: string | null;\n region?: string | null;\n isCompound?: boolean;\n isShippingTaxable?: boolean;\n}\n\nexport interface GetTaxParams extends AppScopedParams {\n id: string;\n}\n\nexport class StoreBadgeModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/list`, body);\n }\n\n create(\n params: CreateBadgeParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/create`, body);\n }\n\n get(params: EditBadgeParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/${id}`, body);\n }\n\n update(\n params: EditBadgeParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/${id}/edit`, body);\n }\n\n delete(\n params: DeleteBadgeParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/${id}/delete`, body);\n }\n}\n\nexport class StoreCategoryModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/list`, body);\n }\n\n create(\n params: CreateCategoryParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/create`, body);\n }\n\n get(params: GetCategoryParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/${id}`, body);\n }\n\n update(\n params: EditCategoryParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/${id}/edit`, body);\n }\n\n delete(\n params: GetCategoryParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/${id}/delete`, body);\n }\n}\n\nexport class StoreCollectionModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/list`, body);\n }\n\n create(\n params: CreateCollectionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/create`, body);\n }\n\n get(params: GetCollectionParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/${id}`, body);\n }\n\n update(\n params: EditCollectionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/${id}/edit`, body);\n }\n\n delete(\n params: GetCollectionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/${id}/delete`, body);\n }\n}\n\nexport class StoreDiscountModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/list`, body);\n }\n\n create(\n params: CreateDiscountParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/create`, body);\n }\n\n get(params: GetDiscountParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/${id}`, body);\n }\n\n update(\n params: EditDiscountParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/${id}/edit`, body);\n }\n\n delete(\n params: GetDiscountParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/${id}/delete`, body);\n }\n}\n\nexport class StoreOptionModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/list`, body);\n }\n\n create(\n params: CreateOptionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/create`, body);\n }\n\n get(params: GetOptionParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/${id}`, body);\n }\n\n update(\n params: EditOptionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/${id}/edit`, body);\n }\n\n delete(\n params: GetOptionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/${id}/delete`, body);\n }\n}\n\nexport class StoreOrderModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/list`, body);\n }\n\n create(\n params: CreateOrderParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/create`, body);\n }\n\n get(params: GetOrderParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/${id}`, body);\n }\n\n update(\n params: EditOrderParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/${id}/edit`, body);\n }\n\n delete(\n params: GetOrderParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/${id}/delete`, body);\n }\n}\n\nexport class StoreProductModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/list`, body);\n }\n\n create(\n params: CreateProductParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/create`, body);\n }\n\n get(params: GetProductParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/${id}`, body);\n }\n\n update(\n params: EditProductParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/${id}/edit`, body);\n }\n\n delete(\n params: GetProductParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/${id}/delete`, body);\n }\n}\n\nexport class StoreSellerModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/list`, body);\n }\n\n create(\n params: CreateSellerParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/create`, body);\n }\n\n get(params: GetSellerParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/${id}`, body);\n }\n\n update(\n params: EditSellerParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/${id}/edit`, body);\n }\n\n delete(\n params: GetSellerParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/${id}/delete`, body);\n }\n}\n\nexport class StoreShippingModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/shipping/list`, body);\n }\n\n create(\n params: CreateShippingProfileParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/shipping/create`, body);\n }\n\n delete(\n params: GetShippingProfileParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/shipping/${id}/delete`, body);\n }\n}\n\nexport class StoreTagModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/list`, body);\n }\n\n create(params: CreateTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/create`, body);\n }\n\n get(params: GetTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/${id}`, body);\n }\n\n update(params: EditTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/${id}/edit`, body);\n }\n\n delete(params: GetTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/${id}/delete`, body);\n }\n}\n\nexport class StoreTaxModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/list`, body);\n }\n\n create(params: CreateTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/create`, body);\n }\n\n get(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/${id}`, body);\n }\n\n update(params: EditTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/${id}/edit`, body);\n }\n\n delete(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/${id}/delete`, body);\n }\n}\n\nexport class StoreModule {\n readonly badge: StoreBadgeModule;\n readonly category: StoreCategoryModule;\n readonly collection: StoreCollectionModule;\n readonly discount: StoreDiscountModule;\n readonly option: StoreOptionModule;\n readonly order: StoreOrderModule;\n readonly product: StoreProductModule;\n readonly seller: StoreSellerModule;\n readonly shipping: StoreShippingModule;\n readonly tag: StoreTagModule;\n readonly tax: StoreTaxModule;\n\n constructor(private readonly http: HttpClient) {\n this.badge = new StoreBadgeModule(http);\n this.category = new StoreCategoryModule(http);\n this.collection = new StoreCollectionModule(http);\n this.discount = new StoreDiscountModule(http);\n this.option = new StoreOptionModule(http);\n this.order = new StoreOrderModule(http);\n this.product = new StoreProductModule(http);\n this.seller = new StoreSellerModule(http);\n this.shipping = new StoreShippingModule(http);\n this.tag = new StoreTagModule(http);\n this.tax = new StoreTaxModule(http);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\nimport { AppScopedParams } from \"./types\";\n\nexport interface WelcomeItemParams extends AppScopedParams {}\n\nexport interface CreateWelcomeItemParams extends AppScopedParams {\n fileUrl: string;\n fileType?: string;\n title?: string;\n description?: string;\n plateformType: string;\n}\n\nexport interface EditWelcomeItemParams extends AppScopedParams {\n id: string;\n fileUrl?: string;\n fileType?: string;\n title?: string;\n description?: string;\n plateformType?: string;\n}\n\nexport interface WelcomeItemGetParams extends AppScopedParams {\n id: string;\n}\n\nexport class AppWelcomeItemModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: WelcomeItemParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/list`, body);\n }\n\n create(params: CreateWelcomeItemParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/create`, body);\n }\n\n get(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/${id}`, body);\n }\n\n update(params: EditWelcomeItemParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/${id}/edit`, body);\n }\n\n delete(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/${id}/delete`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../../http\";\nimport { AppScopedParams } from \"../types\";\n\nexport interface ListServicesParams extends AppScopedParams {\n companyId?: string | null;\n}\n\nexport interface ListCompaniesParams extends AppScopedParams {}\n\nexport interface CreateCompanyParams extends AppScopedParams {\n name: string;\n description?: string | null;\n email?: string | null;\n telephone?: string | null;\n address?: string | null;\n logo?: string | null;\n logoId?: string | null;\n isDefault?: boolean;\n}\n\nexport interface GetCompanyParams extends AppScopedParams {\n id: string;\n}\n\nexport interface UpdateCompanyParams extends CreateCompanyParams {\n id: string;\n}\n\nexport interface CreateServiceParams extends AppScopedParams {\n name: string;\n description?: string | null;\n icon?: string | null;\n iconId?: string | null;\n basePrice?: number | null;\n categories?: string[];\n fields?: any[];\n companyId?: string | null;\n}\n\nexport interface GetServiceParams extends AppScopedParams {\n id: string;\n companyId?: string | null;\n}\n\nexport interface UpdateServiceParams extends CreateServiceParams {\n id: string;\n}\n\nexport interface CreateAppointmentParams extends AppScopedParams {\n serviceId: string;\n agentId?: string | null;\n userId?: string;\n filledFields: Record<string, any>;\n totalPrice: number;\n date: Date | string;\n commune: string;\n}\n\nexport interface ListAppointmentsParams extends AppScopedParams {\n companyId?: string | null;\n serviceId?: string;\n status?: string;\n}\n\nexport interface UpdateAppointmentStatusParams extends AppScopedParams {\n id: string;\n status: string;\n companyId?: string | null;\n}\n\nexport interface ListAgentsParams extends AppScopedParams {\n companyId?: string | null;\n serviceId?: string;\n isActive?: boolean;\n}\n\nexport interface CreateAgentParams extends AppScopedParams {\n companyId?: string | null;\n serviceIds?: string[];\n fullname: string;\n email?: string | null;\n telephone?: string | null;\n bio?: string | null;\n photo?: string | null;\n photoId?: string | null;\n isActive?: boolean;\n}\n\nexport interface GetAgentParams extends AppScopedParams {\n id: string;\n companyId?: string | null;\n}\n\nexport interface UpdateAgentParams extends CreateAgentParams {\n id: string;\n}\n\nexport class MultiServiceModule {\n constructor(private readonly http: HttpClient) {}\n\n listCompanies(\n params: ListCompaniesParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/list`, body);\n }\n\n createCompany(\n params: CreateCompanyParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/create`, body);\n }\n\n getCompany(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/${id}`, body);\n }\n\n updateCompany(\n params: UpdateCompanyParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/${id}/edit`, body);\n }\n\n deleteCompany(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/${id}/delete`, body);\n }\n\n listServices(\n params: ListServicesParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/list`, body);\n }\n\n createService(\n params: CreateServiceParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/create`, body);\n }\n\n getService(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/${id}`, body);\n }\n\n updateService(\n params: UpdateServiceParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/${id}/edit`, body);\n }\n\n deleteService(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/${id}/delete`, body);\n }\n\n createAppointment(\n params: CreateAppointmentParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/appointments/create`, body);\n }\n\n listAppointments(\n params: ListAppointmentsParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/appointments/list`, body);\n }\n\n updateAppointmentStatus(\n params: UpdateAppointmentStatusParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(\n `/app/${appId}/multi-service/appointments/${id}/status`,\n body\n );\n }\n\n listAgents(params: ListAgentsParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/list`, body);\n }\n\n createAgent(params: CreateAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/create`, body);\n }\n\n getAgent(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/${id}`, body);\n }\n\n updateAgent(params: UpdateAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/${id}/edit`, body);\n }\n\n deleteAgent(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/${id}/delete`, body);\n }\n}\n","import { HttpClient } from \"../../http\";\nimport { AppCustomerModule } from \"./customer\";\nimport { AppFinanceModule } from \"./finance\";\nimport { AppInfoModule } from \"./info\";\nimport { AppStatsModule } from \"./stats\";\nimport { StoreModule } from \"./store\";\nimport { AppWelcomeItemModule } from \"./welcome-item\";\nimport { MultiServiceModule } from \"./multi-service\";\n\nexport * from \"./customer\";\nexport * from \"./finance\";\nexport * from \"./info\";\nexport * from \"./stats\";\nexport * from \"./store\";\nexport * from \"./types\";\nexport * from \"./welcome-item\";\nexport * from \"./multi-service\";\n\nexport class AppModule {\n readonly customer: AppCustomerModule;\n readonly stats: AppStatsModule;\n readonly finance: AppFinanceModule;\n readonly welcomeItem: AppWelcomeItemModule;\n readonly info: AppInfoModule;\n readonly store: StoreModule;\n readonly multiService: MultiServiceModule;\n\n constructor(private readonly http: HttpClient) {\n this.customer = new AppCustomerModule(http);\n this.stats = new AppStatsModule(http);\n this.finance = new AppFinanceModule(http);\n this.welcomeItem = new AppWelcomeItemModule(http);\n this.info = new AppInfoModule(http);\n this.store = new StoreModule(http);\n this.multiService = new MultiServiceModule(http);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC8BO,IAAM,aAAN,MAAiB;AAAA,EAKtB,YAAY,SAA2B,CAAC,GAAG;AACzC,SAAK,UAAU,OAAO,SAAS,QAAQ,OAAO,EAAE,KAAK;AACrD,SAAK,UAAU,OAAO,WAAW,CAAC;AAClC,SAAK,YAAY,OAAO,WAAW;AAAA,EACrC;AAAA,EAEA,MAAM,KAAQ,MAAc,MAAwE;AAClG,UAAM,MAAM,GAAG,KAAK,OAAO,GAAG,IAAI;AAClC,UAAM,WAAW,MAAM,KAAK,UAAU,KAAK;AAAA,MACzC,QAAQ;AAAA,MACR,SAAS;AAAA,QACP,gBAAgB;AAAA,QAChB,GAAG,KAAK;AAAA,MACV;AAAA,MACA,MAAM,KAAK,UAAU,IAAI;AAAA,IAC3B,CAAC;AAED,UAAM,cAAc,SAAS,QAAQ,IAAI,cAAc,KAAK;AAC5D,UAAM,SAAS,YAAY,SAAS,kBAAkB;AACtD,UAAM,UAAiC,SACnC,MAAM,SAAS,KAAK,IACpB;AAEJ,QAAI,CAAC,SAAS,IAAI;AAChB,YAAM,UAAU,SAAS,SAAS,SAAS;AAC3C,YAAM,IAAI,MAAM,8BAA8B,SAAS,MAAM,KAAK,OAAO,EAAE;AAAA,IAC7E;AAEA,QAAI,CAAC,WAAW,QAAQ,YAAY,MAAM;AACxC,YAAM,IAAI,MAAM,mBAAmB,SAAS,SAAS,eAAe,EAAE;AAAA,IACxE;AAEA,WAAO;AAAA,EACT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M,EAAE,OAAO,IAAI,GAAG,KAAK,IAAI;AAC/B,WAAO,KAAK,KAAK,KAAK,QAAQ,KAAK,yBAAyB,EAAE,WAAW,IAAI;AAAA,EAC/E;AACF;;;AChMO,IAAM,YAAN,MAAgB;AAAA,EASrB,YAA6B,MAAkB;AAAlB;AAC3B,SAAK,WAAW,IAAI,kBAAkB,IAAI;AAC1C,SAAK,QAAQ,IAAI,eAAe,IAAI;AACpC,SAAK,UAAU,IAAI,iBAAiB,IAAI;AACxC,SAAK,cAAc,IAAI,qBAAqB,IAAI;AAChD,SAAK,OAAO,IAAI,cAAc,IAAI;AAClC,SAAK,QAAQ,IAAI,YAAY,IAAI;AACjC,SAAK,eAAe,IAAI,mBAAmB,IAAI;AAAA,EACjD;AACF;;;AT/BO,IAAM,YAAN,MAAgB;AAAA,EAIrB,YAAY,SAA0B,CAAC,GAAG;AACxC,SAAK,OAAO,IAAI,WAAW;AAAA,MACzB,SAAS,OAAO;AAAA,MAChB,SAAS,OAAO;AAAA,MAChB,SAAS,OAAO;AAAA,IAClB,CAAC;AAED,SAAK,MAAM,IAAI,UAAU,KAAK,IAAI;AAAA,EACpC;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/http.ts","../src/modules/app/customer.ts","../src/modules/app/finance.ts","../src/modules/app/info.ts","../src/modules/app/stats.ts","../src/modules/app/store.ts","../src/modules/app/welcome-item.ts","../src/modules/app/multi-service/agent.ts","../src/modules/app/multi-service/appointment.ts","../src/modules/app/multi-service/company.ts","../src/modules/app/multi-service/service.ts","../src/modules/app/multi-service/index.ts","../src/modules/app/index.ts"],"sourcesContent":["import { HttpClient, HttpClientConfig } from \"./http\";\nimport { AppModule } from \"./modules/app\";\n\nexport interface AppliteUIConfig extends HttpClientConfig {}\n\nexport class AppliteUI {\n readonly http: HttpClient;\n readonly app: AppModule;\n\n constructor(config: AppliteUIConfig = {}) {\n this.http = new HttpClient({\n baseUrl: config.baseUrl,\n headers: config.headers,\n fetchFn: config.fetchFn,\n });\n\n this.app = new AppModule(this.http);\n }\n}\n\nexport * from \"./http\";\nexport * from \"./modules/app\";\n","export interface HttpClientConfig {\n /**\n * Base URL used for every request. Defaults to an empty string so that\n * relative paths can be used when the SDK is consumed alongside the API.\n */\n baseUrl?: string;\n /**\n * Optional headers that should be sent with every request.\n */\n headers?: HeadersInit;\n /**\n * Custom fetch implementation for environments where the global fetch is\n * not available or needs to be mocked during testing.\n */\n fetchFn?: typeof fetch;\n}\n\nexport interface ApiSuccessResponse<T> {\n success: true;\n data: T;\n error?: unknown;\n}\n\nexport interface ApiErrorResponse {\n success: false;\n error?: unknown;\n}\n\nexport type ApiResponse<T> = ApiSuccessResponse<T> | ApiErrorResponse;\n\nexport class HttpClient {\n private readonly baseUrl: string;\n private readonly headers: HeadersInit;\n private readonly fetchImpl: typeof fetch;\n\n constructor(config: HttpClientConfig = {}) {\n this.baseUrl = config.baseUrl?.replace(/\\/$/, \"\") ?? \"\";\n this.headers = config.headers ?? {};\n this.fetchImpl = config.fetchFn ?? fetch;\n }\n\n async post<T>(path: string, body: Record<string, unknown> | object): Promise<ApiSuccessResponse<T>> {\n const url = `${this.baseUrl}${path}`;\n const response = await this.fetchImpl(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...this.headers,\n },\n body: JSON.stringify(body),\n });\n\n const contentType = response.headers.get(\"content-type\") ?? \"\";\n const isJson = contentType.includes(\"application/json\");\n const payload: ApiResponse<T> | null = isJson\n ? await response.json()\n : null;\n\n if (!response.ok) {\n const message = payload?.error ?? response.statusText;\n throw new Error(`Request failed with status ${response.status}: ${message}`);\n }\n\n if (!payload || payload.success !== true) {\n throw new Error(`Request failed: ${payload?.error ?? \"Unknown error\"}`);\n }\n\n return payload;\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\n\nexport const plateformTypes = [\n \"STORE\",\n \"TRANSPORT\",\n \"RESTAURATION\",\n \"MULTI_SERVICE\",\n \"E_LEARNING\",\n \"DUTICOTAC\",\n] as const;\n\nexport type PlateformType = (typeof plateformTypes)[number];\n\nexport const sexes = [\"M\", \"F\"] as const;\n\nexport type Sexe = (typeof sexes)[number];\n\nexport interface AppCustomerListParams {\n appId: string;\n apiKey: string;\n plateformType?: PlateformType[];\n}\n\nexport interface AppCustomerListItem {\n id: string;\n fullname: string;\n telephone: string;\n email: string | null;\n photoUrl: string | null;\n createdAt: string;\n plateforms: PlateformType[];\n}\n\nexport interface AppCustomerAuthParams {\n appId: string;\n apiKey: string;\n fullname: string;\n email?: string | null;\n telephone: string;\n plateform?: PlateformType | null;\n}\n\nexport interface AppCustomerCheckParams {\n appId: string;\n apiKey: string;\n telephone: string;\n plateform?: PlateformType | null;\n}\n\nexport interface AppCustomer {\n id: string;\n fullname: string;\n email: string | null;\n telephone: string;\n photoUrl: string | null;\n plateforms: PlateformType[];\n createdAt: string;\n}\n\nexport interface AppCustomerListFewItem {\n id: string;\n fullname: string;\n photoUrl: string | null;\n createdAt: string;\n}\n\nexport interface AppCustomerDetail extends AppCustomer {\n addresses: Record<string, unknown>[];\n transactions: Record<string, unknown>[];\n storeReviews: Record<string, unknown>[];\n app: {\n id: string;\n name: string;\n slug: string;\n };\n}\n\nexport interface AppCustomerGetParams {\n appId: string;\n apiKey: string;\n id: string;\n}\n\nexport interface AppCustomerUpdateParams {\n appId: string;\n apiKey: string;\n id: string;\n fullname?: string | null;\n email?: string | null;\n photoUrl?: string | null;\n photoId?: string | null;\n gender?: Sexe | null;\n dob?: string | Date | null;\n country?: string | null;\n}\n\nexport class AppCustomerModule {\n constructor(private readonly http: HttpClient) {}\n\n async list(\n params: AppCustomerListParams\n ): Promise<ApiSuccessResponse<AppCustomerListItem[]>> {\n const { appId, apiKey, plateformType = [] } = params;\n return this.http.post<AppCustomerListItem[]>(\n `/app/${appId}/customer/list`,\n {\n apiKey,\n plateformType,\n }\n );\n }\n\n async auth(params: AppCustomerAuthParams): Promise<ApiSuccessResponse<AppCustomer>> {\n const { appId, apiKey, fullname, email = null, telephone, plateform = null } = params;\n return this.http.post<AppCustomer>(`/app/${appId}/customer/auth`, {\n apiKey,\n fullname,\n email,\n telephone,\n plateform,\n });\n }\n\n async check(\n params: AppCustomerCheckParams\n ): Promise<ApiSuccessResponse<AppCustomer | null>> {\n const { appId, apiKey, telephone, plateform = null } = params;\n return this.http.post<AppCustomer | null>(`/app/${appId}/customer/check`, {\n apiKey,\n telephone,\n plateform,\n });\n }\n\n async listFew(\n params: AppCustomerListParams\n ): Promise<ApiSuccessResponse<AppCustomerListFewItem[]>> {\n const { appId, apiKey, plateformType = [] } = params;\n return this.http.post<AppCustomerListFewItem[]>(\n `/app/${appId}/customer/list/few`,\n {\n apiKey,\n plateformType,\n }\n );\n }\n\n async get(\n params: AppCustomerGetParams\n ): Promise<ApiSuccessResponse<AppCustomerDetail | null>> {\n const { appId, apiKey, id } = params;\n return this.http.post<AppCustomerDetail | null>(\n `/app/${appId}/customer/${id}`,\n {\n apiKey,\n }\n );\n }\n\n async update(\n params: AppCustomerUpdateParams\n ): Promise<ApiSuccessResponse<AppCustomerDetail>> {\n const { appId, apiKey, id, ...rest } = params;\n return this.http.post<AppCustomerDetail>(\n `/app/${appId}/customer/${id}/update`,\n {\n apiKey,\n ...rest,\n }\n );\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { AppScopedParams } from \"@/modules/app/types\";\nimport { CreateAppWithdraw } from \"@applite/db\";\nimport { z } from \"zod\";\n\nexport interface BalanceParams extends AppScopedParams {}\n\nexport interface TransactionListParams extends AppScopedParams {}\n\nexport interface TransactionGetParams extends AppScopedParams {\n id: string;\n}\n\nexport type WithdrawParams = z.infer<typeof CreateAppWithdraw> & {\n appId: string;\n};\n\nexport class AppFinanceModule {\n constructor(private readonly http: HttpClient) {}\n\n balance(params: BalanceParams): Promise<ApiSuccessResponse<number | null>> {\n const { appId, ...body } = params;\n return this.http.post<number | null>(`/app/${appId}/balance`, body);\n }\n\n listTransactions(\n params: TransactionListParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/transaction/list`, body);\n }\n\n getTransaction(\n params: TransactionGetParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/transaction/${id}`, body);\n }\n\n withdraw(params: WithdrawParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/withdraw`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { ApiKeyParams, AppScopedParams } from \"@/modules/app/types\";\nimport { CreateAppSchema } from \"@applite/db\";\nimport { z } from \"zod\";\n\nexport type CreateAppParams = z.infer<typeof CreateAppSchema>;\n\nexport interface AppSummary {\n id: string;\n name: string;\n slug: string;\n description: string | null;\n modules: unknown;\n logo: string | null;\n createdAt: string;\n apiKey: string;\n totalCustomers: number;\n totalSales: number;\n totalOrders: number;\n ownerId: string;\n balance: number;\n plan: {\n id: string;\n name: string;\n };\n}\n\nexport interface AppDetail extends AppSummary {\n callbackUrl?: string | null;\n}\n\nexport interface GetAppBySlugParams extends ApiKeyParams {\n slug: string;\n}\n\nexport class AppInfoModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: ApiKeyParams): Promise<ApiSuccessResponse<AppSummary[]>> {\n return this.http.post<AppSummary[]>(\"/app/app/list\", params);\n }\n\n create(params: CreateAppParams): Promise<ApiSuccessResponse<AppDetail>> {\n return this.http.post<AppDetail>(\"/app/app/create\", params);\n }\n\n getBySlug(params: GetAppBySlugParams): Promise<ApiSuccessResponse<AppDetail>> {\n const { slug, ...body } = params;\n return this.http.post<AppDetail>(`/app/app/get/${slug}`, body);\n }\n\n getById(params: AppScopedParams): Promise<ApiSuccessResponse<AppDetail>> {\n const { appId, ...body } = params;\n return this.http.post<AppDetail>(`/app/app/${appId}`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"../../http\";\nimport { AppScopedParams } from \"./types\";\n\nexport interface GetStatisticParams extends AppScopedParams {\n type: string;\n year: number;\n month: string;\n plateform?: string | null;\n}\n\nexport interface CreateStatisticParams extends GetStatisticParams {\n amount: number;\n description?: string | null;\n}\n\nexport interface UpdateStatisticParams extends AppScopedParams {\n id: string;\n amount: number;\n description?: string | null;\n}\n\nexport class AppStatsModule {\n constructor(private readonly http: HttpClient) {}\n\n create(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/stats/create`, body);\n }\n\n get(params: GetStatisticParams): Promise<ApiSuccessResponse<number>> {\n const { appId, ...body } = params;\n return this.http.post<number>(`/app/${appId}/stats/get`, body);\n }\n\n set(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/stats/set`, body);\n }\n\n update(params: UpdateStatisticParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/stats/${id}/update`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { AppScopedParams } from \"@/modules/app/types\";\n\nexport interface CreateBadgeParams extends AppScopedParams {\n name: string;\n description?: string | null;\n image?: string | null;\n imageId?: string | null;\n sellerId: string;\n}\n\nexport interface EditBadgeParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n image?: string | null;\n imageId?: string | null;\n}\n\nexport interface DeleteBadgeParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateCategoryParams extends AppScopedParams {\n name: string;\n description?: string | null;\n sellerId: string;\n image?: string | null;\n imageId?: string | null;\n parentId?: string | null;\n}\n\nexport interface EditCategoryParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n image?: string | null;\n imageId?: string | null;\n parentId?: string | null;\n}\n\nexport interface GetCategoryParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateCollectionParams extends AppScopedParams {\n title: string;\n description?: string | null;\n slug: string;\n image?: string | null;\n type?: string;\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface EditCollectionParams extends AppScopedParams {\n id: string;\n title: string;\n description?: string | null;\n slug: string;\n image?: string | null;\n type?: string;\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface GetCollectionParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateDiscountParams extends AppScopedParams {\n code: string;\n type: string;\n value: number;\n startsAt: string | Date;\n endsAt?: string | Date | null;\n usageLimit?: number | null;\n minRequirement?: string;\n minQuantity?: number | null;\n minAmount?: number | null;\n appliesTo?: string;\n collectionIds?: string[];\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface EditDiscountParams extends AppScopedParams {\n id: string;\n code: string;\n type?: string;\n value?: number;\n startsAt?: string | Date;\n endsAt?: string | Date | null;\n usageLimit?: number | null;\n minRequirement?: string;\n minQuantity?: number | null;\n minAmount?: number | null;\n appliesTo?: string;\n collectionIds?: string[];\n productIds?: string[];\n isActive?: boolean;\n}\n\nexport interface GetDiscountParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateOptionParams extends AppScopedParams {\n name: string;\n description?: string | null;\n values: { id: string; text: string }[];\n sellerId: string;\n}\n\nexport interface EditOptionParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n values: { id: string; text: string }[];\n}\n\nexport interface GetOptionParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateOrderParams extends AppScopedParams {\n customerId: string;\n sellerId: string;\n items: { variantId: string; productId: string; quantity?: number }[];\n ref?: string | null;\n shippingAddress?: Record<string, unknown>;\n billingAddress?: Record<string, unknown>;\n discountTotal?: number;\n shippingTotal?: number;\n taxTotal?: number;\n}\n\nexport interface EditOrderParams extends AppScopedParams {\n id: string;\n status?: string | null;\n paymentStatus?: string | null;\n fulfillmentStatus?: string | null;\n ref?: string | null;\n shippingAddress?: Record<string, unknown>;\n billingAddress?: Record<string, unknown>;\n}\n\nexport interface GetOrderParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateProductParams extends AppScopedParams {\n name: string;\n sku?: string | null;\n description?: string | null;\n seoTitle?: string | null;\n seoDescription?: string | null;\n status?: string;\n sellerId: string;\n categoryId: string;\n badgeId?: string | null;\n collectionIds?: string[];\n tagIds?: string[];\n shippingProfileId?: string | null;\n variants: unknown[];\n attributes?: { key: string; value: string }[];\n}\n\nexport interface EditProductParams extends AppScopedParams {\n id: string;\n name: string;\n description?: string | null;\n seoTitle?: string | null;\n seoDescription?: string | null;\n status?: string;\n categoryId?: string;\n badgeId?: string | null;\n collectionIds?: string[];\n tagIds?: string[];\n shippingProfileId?: string | null;\n variants: unknown[];\n attributes?: { key: string; value: string }[];\n}\n\nexport interface GetProductParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateSellerParams extends AppScopedParams {\n fullname: string;\n telephone: string;\n email: string;\n password?: string | null;\n confirm?: string | null;\n avatar?: string | null;\n avatarId?: string | null;\n country?: string;\n isDefault?: boolean;\n}\n\nexport interface EditSellerParams extends AppScopedParams {\n id: string;\n fullname: string;\n avatar?: string | null;\n avatarId?: string | null;\n telephone: string;\n email: string;\n}\n\nexport interface GetSellerParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateShippingProfileParams extends AppScopedParams {\n name: string;\n zones?: unknown[];\n isDefault?: boolean;\n}\n\nexport interface EditShippingProfileParams extends AppScopedParams {\n id: string;\n name: string;\n zones?: unknown[];\n isDefault?: boolean;\n}\n\nexport interface GetShippingProfileParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateTagParams extends AppScopedParams {\n name: string;\n}\n\nexport interface EditTagParams extends AppScopedParams {\n id: string;\n name: string;\n}\n\nexport interface GetTagParams extends AppScopedParams {\n id: string;\n}\n\nexport interface CreateTaxParams extends AppScopedParams {\n name: string;\n rate: number;\n country?: string | null;\n region?: string | null;\n isCompound?: boolean;\n isShippingTaxable?: boolean;\n}\n\nexport interface EditTaxParams extends AppScopedParams {\n id: string;\n name: string;\n rate?: number;\n country?: string | null;\n region?: string | null;\n isCompound?: boolean;\n isShippingTaxable?: boolean;\n}\n\nexport interface GetTaxParams extends AppScopedParams {\n id: string;\n}\n\nexport class StoreBadgeModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/list`, body);\n }\n\n create(\n params: CreateBadgeParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/create`, body);\n }\n\n get(params: EditBadgeParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/${id}`, body);\n }\n\n update(\n params: EditBadgeParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/${id}/edit`, body);\n }\n\n delete(\n params: DeleteBadgeParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/badge/${id}/delete`, body);\n }\n}\n\nexport class StoreCategoryModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/list`, body);\n }\n\n create(\n params: CreateCategoryParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/create`, body);\n }\n\n get(params: GetCategoryParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/${id}`, body);\n }\n\n update(\n params: EditCategoryParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/${id}/edit`, body);\n }\n\n delete(\n params: GetCategoryParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/category/${id}/delete`, body);\n }\n}\n\nexport class StoreCollectionModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/list`, body);\n }\n\n create(\n params: CreateCollectionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/create`, body);\n }\n\n get(params: GetCollectionParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/${id}`, body);\n }\n\n update(\n params: EditCollectionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/${id}/edit`, body);\n }\n\n delete(\n params: GetCollectionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/collection/${id}/delete`, body);\n }\n}\n\nexport class StoreDiscountModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/list`, body);\n }\n\n create(\n params: CreateDiscountParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/create`, body);\n }\n\n get(params: GetDiscountParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/${id}`, body);\n }\n\n update(\n params: EditDiscountParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/${id}/edit`, body);\n }\n\n delete(\n params: GetDiscountParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/discount/${id}/delete`, body);\n }\n}\n\nexport class StoreOptionModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/list`, body);\n }\n\n create(\n params: CreateOptionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/create`, body);\n }\n\n get(params: GetOptionParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/${id}`, body);\n }\n\n update(\n params: EditOptionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/${id}/edit`, body);\n }\n\n delete(\n params: GetOptionParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/option/${id}/delete`, body);\n }\n}\n\nexport class StoreOrderModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/list`, body);\n }\n\n create(\n params: CreateOrderParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/create`, body);\n }\n\n get(params: GetOrderParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/${id}`, body);\n }\n\n update(\n params: EditOrderParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/${id}/edit`, body);\n }\n\n delete(\n params: GetOrderParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/order/${id}/delete`, body);\n }\n}\n\nexport class StoreProductModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/list`, body);\n }\n\n create(\n params: CreateProductParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/create`, body);\n }\n\n get(params: GetProductParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/${id}`, body);\n }\n\n update(\n params: EditProductParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/${id}/edit`, body);\n }\n\n delete(\n params: GetProductParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/product/${id}/delete`, body);\n }\n}\n\nexport class StoreSellerModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/list`, body);\n }\n\n create(\n params: CreateSellerParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/create`, body);\n }\n\n get(params: GetSellerParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/${id}`, body);\n }\n\n update(\n params: EditSellerParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/${id}/edit`, body);\n }\n\n delete(\n params: GetSellerParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/seller/${id}/delete`, body);\n }\n}\n\nexport class StoreShippingModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/shipping/list`, body);\n }\n\n create(\n params: CreateShippingProfileParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/shipping/create`, body);\n }\n\n delete(\n params: GetShippingProfileParams\n ): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/shipping/${id}/delete`, body);\n }\n}\n\nexport class StoreTagModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/list`, body);\n }\n\n create(params: CreateTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/create`, body);\n }\n\n get(params: GetTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/${id}`, body);\n }\n\n update(params: EditTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/${id}/edit`, body);\n }\n\n delete(params: GetTagParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tag/${id}/delete`, body);\n }\n}\n\nexport class StoreTaxModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/list`, body);\n }\n\n create(params: CreateTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/create`, body);\n }\n\n get(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/${id}`, body);\n }\n\n update(params: EditTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/${id}/edit`, body);\n }\n\n delete(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/store/tax/${id}/delete`, body);\n }\n}\n\nexport class StoreModule {\n readonly badge: StoreBadgeModule;\n readonly category: StoreCategoryModule;\n readonly collection: StoreCollectionModule;\n readonly discount: StoreDiscountModule;\n readonly option: StoreOptionModule;\n readonly order: StoreOrderModule;\n readonly product: StoreProductModule;\n readonly seller: StoreSellerModule;\n readonly shipping: StoreShippingModule;\n readonly tag: StoreTagModule;\n readonly tax: StoreTaxModule;\n\n constructor(private readonly http: HttpClient) {\n this.badge = new StoreBadgeModule(http);\n this.category = new StoreCategoryModule(http);\n this.collection = new StoreCollectionModule(http);\n this.discount = new StoreDiscountModule(http);\n this.option = new StoreOptionModule(http);\n this.order = new StoreOrderModule(http);\n this.product = new StoreProductModule(http);\n this.seller = new StoreSellerModule(http);\n this.shipping = new StoreShippingModule(http);\n this.tag = new StoreTagModule(http);\n this.tax = new StoreTaxModule(http);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { AppScopedParams } from \"@/modules/app/types\";\n\nexport interface WelcomeItemParams extends AppScopedParams {}\n\nexport interface CreateWelcomeItemParams extends AppScopedParams {\n fileUrl: string;\n fileType?: string;\n title?: string;\n description?: string;\n plateformType: string;\n}\n\nexport interface EditWelcomeItemParams extends AppScopedParams {\n id: string;\n fileUrl?: string;\n fileType?: string;\n title?: string;\n description?: string;\n plateformType?: string;\n}\n\nexport interface WelcomeItemGetParams extends AppScopedParams {\n id: string;\n}\n\nexport class AppWelcomeItemModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: WelcomeItemParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/list`, body);\n }\n\n create(params: CreateWelcomeItemParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/create`, body);\n }\n\n get(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/${id}`, body);\n }\n\n update(params: EditWelcomeItemParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/${id}/edit`, body);\n }\n\n delete(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/welcome-item/${id}/delete`, body);\n }\n}\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { AppScopedParams } from \"@/modules/app/types\";\nimport { CreateAgentSchema, UpdateAgentSchema } from \"@applite/db\";\nimport { z } from \"zod\";\n\nexport type CreateAgentParams = z.infer<typeof CreateAgentSchema> & {\n appId: string;\n};\n\nexport type EditAgentParams = z.infer<typeof UpdateAgentSchema> & {\n appId: string;\n id: string;\n};\n\nexport interface GetAgentParams extends AppScopedParams {\n id: string;\n companyId?: string | null;\n}\n\nexport interface ListAgentsParams extends AppScopedParams {\n companyId?: string | null;\n serviceId?: string;\n isActive?: boolean;\n}\n\nexport class MultiServiceAgentModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: ListAgentsParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/list`, body);\n }\n\n create(params: CreateAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/create`, body);\n }\n\n get(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/${id}`, body);\n }\n\n update(params: EditAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/${id}/edit`, body);\n }\n\n delete(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/agents/${id}/delete`, body);\n }\n}\n\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { AppScopedParams } from \"@/modules/app/types\";\nimport { CreateAppointmentSchema, UpdateAppointmentStatusSchema } from \"@applite/db\";\nimport { z } from \"zod\";\n\nexport type CreateAppointmentParams = z.infer<typeof CreateAppointmentSchema> & {\n appId: string;\n};\n\nexport type UpdateAppointmentStatusParams = z.infer<typeof UpdateAppointmentStatusSchema> & {\n appId: string;\n id: string;\n companyId?: string | null;\n};\n\nexport interface ListAppointmentsParams extends AppScopedParams {\n companyId?: string | null;\n serviceId?: string;\n status?: string;\n}\n\nexport class MultiServiceAppointmentModule {\n constructor(private readonly http: HttpClient) {}\n\n create(params: CreateAppointmentParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/appointments/create`, body);\n }\n\n list(params: ListAppointmentsParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/appointments/list`, body);\n }\n\n updateStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(\n `/app/${appId}/multi-service/appointments/${id}/status`,\n body\n );\n }\n}\n\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { AppScopedParams } from \"@/modules/app/types\";\nimport { CreateCompanySchema, UpdateCompanySchema } from \"@applite/db\";\nimport { z } from \"zod\";\n\nexport type CreateCompanyParams = z.infer<typeof CreateCompanySchema> & {\n appId: string;\n};\n\nexport type EditCompanyParams = z.infer<typeof UpdateCompanySchema> & {\n appId: string;\n id: string;\n};\n\nexport interface GetCompanyParams extends AppScopedParams {\n id: string;\n}\n\nexport interface ListCompaniesParams extends AppScopedParams {}\n\nexport class MultiServiceCompanyModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: ListCompaniesParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/list`, body);\n }\n\n create(params: CreateCompanyParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/create`, body);\n }\n\n get(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/${id}`, body);\n }\n\n update(params: EditCompanyParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/${id}/edit`, body);\n }\n\n delete(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/companies/${id}/delete`, body);\n }\n}\n\n","import { HttpClient, ApiSuccessResponse } from \"@/http\";\nimport { AppScopedParams } from \"@/modules/app/types\";\nimport { CreateServiceSchema, UpdateServiceSchema } from \"@applite/db\";\nimport { z } from \"zod\";\n\nexport type CreateServiceParams = z.infer<typeof CreateServiceSchema> & {\n appId: string;\n};\n\nexport type EditServiceParams = z.infer<typeof UpdateServiceSchema> & {\n appId: string;\n id: string;\n};\n\nexport interface GetServiceParams extends AppScopedParams {\n id: string;\n companyId?: string | null;\n}\n\nexport interface ListServicesParams extends AppScopedParams {\n companyId?: string | null;\n}\n\nexport class MultiServiceServiceModule {\n constructor(private readonly http: HttpClient) {}\n\n list(params: ListServicesParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/list`, body);\n }\n\n create(params: CreateServiceParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/create`, body);\n }\n\n get(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/${id}`, body);\n }\n\n update(params: EditServiceParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/${id}/edit`, body);\n }\n\n delete(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>> {\n const { appId, id, ...body } = params;\n return this.http.post(`/app/${appId}/multi-service/services/${id}/delete`, body);\n }\n}\n\n","import { HttpClient } from \"@/http\";\nimport { MultiServiceAgentModule } from \"./agent\";\nimport { MultiServiceAppointmentModule } from \"./appointment\";\nimport { MultiServiceCompanyModule } from \"./company\";\nimport { MultiServiceServiceModule } from \"./service\";\n\nexport * from \"./agent\";\nexport * from \"./appointment\";\nexport * from \"./company\";\nexport * from \"./service\";\n\nexport class MultiServiceModule {\n readonly company: MultiServiceCompanyModule;\n readonly service: MultiServiceServiceModule;\n readonly appointment: MultiServiceAppointmentModule;\n readonly agent: MultiServiceAgentModule;\n\n constructor(private readonly http: HttpClient) {\n this.company = new MultiServiceCompanyModule(http);\n this.service = new MultiServiceServiceModule(http);\n this.appointment = new MultiServiceAppointmentModule(http);\n this.agent = new MultiServiceAgentModule(http);\n }\n}\n\n","import { HttpClient } from \"@/http\";\nimport { AppCustomerModule } from \"@/modules/app/customer\";\nimport { AppFinanceModule } from \"@/modules/app/finance\";\nimport { AppInfoModule } from \"@/modules/app/info\";\nimport { AppStatsModule } from \"@/modules/app/stats\";\nimport { StoreModule } from \"@/modules/app/store\";\nimport { AppWelcomeItemModule } from \"@/modules/app/welcome-item\";\nimport { MultiServiceModule } from \"@/modules/app/multi-service\";\n\nexport * from \"@/modules/app/customer\";\nexport * from \"@/modules/app/finance\";\nexport * from \"@/modules/app/info\";\nexport * from \"@/modules/app/stats\";\nexport * from \"@/modules/app/store\";\nexport * from \"@/modules/app/types\";\nexport * from \"@/modules/app/welcome-item\";\nexport * from \"@/modules/app/multi-service\";\n\nexport class AppModule {\n readonly customer: AppCustomerModule;\n readonly stats: AppStatsModule;\n readonly finance: AppFinanceModule;\n readonly welcomeItem: AppWelcomeItemModule;\n readonly info: AppInfoModule;\n readonly store: StoreModule;\n readonly multiService: MultiServiceModule;\n\n constructor(private readonly http: HttpClient) {\n this.customer = new AppCustomerModule(http);\n this.stats = new AppStatsModule(http);\n this.finance = new AppFinanceModule(http);\n this.welcomeItem = new AppWelcomeItemModule(http);\n this.info = new AppInfoModule(http);\n this.store = new StoreModule(http);\n this.multiService = new MultiServiceModule(http);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC8BO,IAAM,aAAN,MAAiB;AAAA,EAKtB,YAAY,SAA2B,CAAC,GAAG;AACzC,SAAK,UAAU,OAAO,SAAS,QAAQ,OAAO,EAAE,KAAK;AACrD,SAAK,UAAU,OAAO,WAAW,CAAC;AAClC,SAAK,YAAY,OAAO,WAAW;AAAA,EACrC;AAAA,EAEA,MAAM,KAAQ,MAAc,MAAwE;AAClG,UAAM,MAAM,GAAG,KAAK,OAAO,GAAG,IAAI;AAClC,UAAM,WAAW,MAAM,KAAK,UAAU,KAAK;AAAA,MACzC,QAAQ;AAAA,MACR,SAAS;AAAA,QACP,gBAAgB;AAAA,QAChB,GAAG,KAAK;AAAA,MACV;AAAA,MACA,MAAM,KAAK,UAAU,IAAI;AAAA,IAC3B,CAAC;AAED,UAAM,cAAc,SAAS,QAAQ,IAAI,cAAc,KAAK;AAC5D,UAAM,SAAS,YAAY,SAAS,kBAAkB;AACtD,UAAM,UAAiC,SACnC,MAAM,SAAS,KAAK,IACpB;AAEJ,QAAI,CAAC,SAAS,IAAI;AAChB,YAAM,UAAU,SAAS,SAAS,SAAS;AAC3C,YAAM,IAAI,MAAM,8BAA8B,SAAS,MAAM,KAAK,OAAO,EAAE;AAAA,IAC7E;AAEA,QAAI,CAAC,WAAW,QAAQ,YAAY,MAAM;AACxC,YAAM,I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