@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 +84 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +80 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
- package/dist/index.d.mts +0 -724
- package/dist/index.d.ts +0 -724
package/dist/index.d.mts
DELETED
|
@@ -1,724 +0,0 @@
|
|
|
1
|
-
interface HttpClientConfig {
|
|
2
|
-
/**
|
|
3
|
-
* Base URL used for every request. Defaults to an empty string so that
|
|
4
|
-
* relative paths can be used when the SDK is consumed alongside the API.
|
|
5
|
-
*/
|
|
6
|
-
baseUrl?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Optional headers that should be sent with every request.
|
|
9
|
-
*/
|
|
10
|
-
headers?: HeadersInit;
|
|
11
|
-
/**
|
|
12
|
-
* Custom fetch implementation for environments where the global fetch is
|
|
13
|
-
* not available or needs to be mocked during testing.
|
|
14
|
-
*/
|
|
15
|
-
fetchFn?: typeof fetch;
|
|
16
|
-
}
|
|
17
|
-
interface ApiSuccessResponse<T> {
|
|
18
|
-
success: true;
|
|
19
|
-
data: T;
|
|
20
|
-
error?: unknown;
|
|
21
|
-
}
|
|
22
|
-
interface ApiErrorResponse {
|
|
23
|
-
success: false;
|
|
24
|
-
error?: unknown;
|
|
25
|
-
}
|
|
26
|
-
type ApiResponse<T> = ApiSuccessResponse<T> | ApiErrorResponse;
|
|
27
|
-
declare class HttpClient {
|
|
28
|
-
private readonly baseUrl;
|
|
29
|
-
private readonly headers;
|
|
30
|
-
private readonly fetchImpl;
|
|
31
|
-
constructor(config?: HttpClientConfig);
|
|
32
|
-
post<T>(path: string, body: Record<string, unknown> | object): Promise<ApiSuccessResponse<T>>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare const plateformTypes: readonly ["STORE", "TRANSPORT", "RESTAURATION", "MULTI_SERVICE", "E_LEARNING", "DUTICOTAC"];
|
|
36
|
-
type PlateformType = (typeof plateformTypes)[number];
|
|
37
|
-
declare const sexes: readonly ["M", "F"];
|
|
38
|
-
type Sexe = (typeof sexes)[number];
|
|
39
|
-
interface AppCustomerListParams {
|
|
40
|
-
appId: string;
|
|
41
|
-
apiKey: string;
|
|
42
|
-
plateformType?: PlateformType[];
|
|
43
|
-
}
|
|
44
|
-
interface AppCustomerListItem {
|
|
45
|
-
id: string;
|
|
46
|
-
fullname: string;
|
|
47
|
-
telephone: string;
|
|
48
|
-
email: string | null;
|
|
49
|
-
photoUrl: string | null;
|
|
50
|
-
createdAt: string;
|
|
51
|
-
plateforms: PlateformType[];
|
|
52
|
-
}
|
|
53
|
-
interface AppCustomerAuthParams {
|
|
54
|
-
appId: string;
|
|
55
|
-
apiKey: string;
|
|
56
|
-
fullname: string;
|
|
57
|
-
email?: string | null;
|
|
58
|
-
telephone: string;
|
|
59
|
-
plateform?: PlateformType | null;
|
|
60
|
-
}
|
|
61
|
-
interface AppCustomerCheckParams {
|
|
62
|
-
appId: string;
|
|
63
|
-
apiKey: string;
|
|
64
|
-
telephone: string;
|
|
65
|
-
plateform?: PlateformType | null;
|
|
66
|
-
}
|
|
67
|
-
interface AppCustomer {
|
|
68
|
-
id: string;
|
|
69
|
-
fullname: string;
|
|
70
|
-
email: string | null;
|
|
71
|
-
telephone: string;
|
|
72
|
-
photoUrl: string | null;
|
|
73
|
-
plateforms: PlateformType[];
|
|
74
|
-
createdAt: string;
|
|
75
|
-
}
|
|
76
|
-
interface AppCustomerListFewItem {
|
|
77
|
-
id: string;
|
|
78
|
-
fullname: string;
|
|
79
|
-
photoUrl: string | null;
|
|
80
|
-
createdAt: string;
|
|
81
|
-
}
|
|
82
|
-
interface AppCustomerDetail extends AppCustomer {
|
|
83
|
-
addresses: Record<string, unknown>[];
|
|
84
|
-
transactions: Record<string, unknown>[];
|
|
85
|
-
storeReviews: Record<string, unknown>[];
|
|
86
|
-
app: {
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
slug: string;
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
interface AppCustomerGetParams {
|
|
93
|
-
appId: string;
|
|
94
|
-
apiKey: string;
|
|
95
|
-
id: string;
|
|
96
|
-
}
|
|
97
|
-
interface AppCustomerUpdateParams {
|
|
98
|
-
appId: string;
|
|
99
|
-
apiKey: string;
|
|
100
|
-
id: string;
|
|
101
|
-
fullname?: string | null;
|
|
102
|
-
email?: string | null;
|
|
103
|
-
photoUrl?: string | null;
|
|
104
|
-
photoId?: string | null;
|
|
105
|
-
gender?: Sexe | null;
|
|
106
|
-
dob?: string | Date | null;
|
|
107
|
-
country?: string | null;
|
|
108
|
-
}
|
|
109
|
-
declare class AppCustomerModule {
|
|
110
|
-
private readonly http;
|
|
111
|
-
constructor(http: HttpClient);
|
|
112
|
-
list(params: AppCustomerListParams): Promise<ApiSuccessResponse<AppCustomerListItem[]>>;
|
|
113
|
-
auth(params: AppCustomerAuthParams): Promise<ApiSuccessResponse<AppCustomer>>;
|
|
114
|
-
check(params: AppCustomerCheckParams): Promise<ApiSuccessResponse<AppCustomer | null>>;
|
|
115
|
-
listFew(params: AppCustomerListParams): Promise<ApiSuccessResponse<AppCustomerListFewItem[]>>;
|
|
116
|
-
get(params: AppCustomerGetParams): Promise<ApiSuccessResponse<AppCustomerDetail | null>>;
|
|
117
|
-
update(params: AppCustomerUpdateParams): Promise<ApiSuccessResponse<AppCustomerDetail>>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface ApiKeyParams {
|
|
121
|
-
apiKey: string;
|
|
122
|
-
}
|
|
123
|
-
interface AppScopedParams extends ApiKeyParams {
|
|
124
|
-
appId: string;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface BalanceParams extends AppScopedParams {
|
|
128
|
-
}
|
|
129
|
-
interface TransactionListParams extends AppScopedParams {
|
|
130
|
-
}
|
|
131
|
-
interface TransactionGetParams extends AppScopedParams {
|
|
132
|
-
id: string;
|
|
133
|
-
}
|
|
134
|
-
interface WithdrawParams extends AppScopedParams {
|
|
135
|
-
amount: number;
|
|
136
|
-
phoneNumber: string;
|
|
137
|
-
password: string;
|
|
138
|
-
paymentMethod: string;
|
|
139
|
-
}
|
|
140
|
-
declare class AppFinanceModule {
|
|
141
|
-
private readonly http;
|
|
142
|
-
constructor(http: HttpClient);
|
|
143
|
-
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>>;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface CreateAppParams extends ApiKeyParams {
|
|
150
|
-
name: string;
|
|
151
|
-
description?: string | null;
|
|
152
|
-
planId: string;
|
|
153
|
-
}
|
|
154
|
-
interface AppSummary {
|
|
155
|
-
id: string;
|
|
156
|
-
name: string;
|
|
157
|
-
slug: string;
|
|
158
|
-
description: string | null;
|
|
159
|
-
modules: unknown;
|
|
160
|
-
logo: string | null;
|
|
161
|
-
createdAt: string;
|
|
162
|
-
apiKey: string;
|
|
163
|
-
totalCustomers: number;
|
|
164
|
-
totalSales: number;
|
|
165
|
-
totalOrders: number;
|
|
166
|
-
ownerId: string;
|
|
167
|
-
balance: number;
|
|
168
|
-
plan: {
|
|
169
|
-
id: string;
|
|
170
|
-
name: string;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
interface AppDetail extends AppSummary {
|
|
174
|
-
callbackUrl?: string | null;
|
|
175
|
-
}
|
|
176
|
-
interface GetAppBySlugParams extends ApiKeyParams {
|
|
177
|
-
slug: string;
|
|
178
|
-
}
|
|
179
|
-
declare class AppInfoModule {
|
|
180
|
-
private readonly http;
|
|
181
|
-
constructor(http: HttpClient);
|
|
182
|
-
list(params: ApiKeyParams): Promise<ApiSuccessResponse<AppSummary[]>>;
|
|
183
|
-
create(params: CreateAppParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
184
|
-
getBySlug(params: GetAppBySlugParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
185
|
-
getById(params: AppScopedParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
interface GetStatisticParams extends AppScopedParams {
|
|
189
|
-
type: string;
|
|
190
|
-
year: number;
|
|
191
|
-
month: string;
|
|
192
|
-
plateform?: string | null;
|
|
193
|
-
}
|
|
194
|
-
interface CreateStatisticParams extends GetStatisticParams {
|
|
195
|
-
amount: number;
|
|
196
|
-
description?: string | null;
|
|
197
|
-
}
|
|
198
|
-
interface UpdateStatisticParams extends AppScopedParams {
|
|
199
|
-
id: string;
|
|
200
|
-
amount: number;
|
|
201
|
-
description?: string | null;
|
|
202
|
-
}
|
|
203
|
-
declare class AppStatsModule {
|
|
204
|
-
private readonly http;
|
|
205
|
-
constructor(http: HttpClient);
|
|
206
|
-
create(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>>;
|
|
207
|
-
get(params: GetStatisticParams): Promise<ApiSuccessResponse<number>>;
|
|
208
|
-
set(params: CreateStatisticParams): Promise<ApiSuccessResponse<unknown>>;
|
|
209
|
-
update(params: UpdateStatisticParams): Promise<ApiSuccessResponse<unknown>>;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
interface CreateBadgeParams extends AppScopedParams {
|
|
213
|
-
name: string;
|
|
214
|
-
description?: string | null;
|
|
215
|
-
image?: string | null;
|
|
216
|
-
imageId?: string | null;
|
|
217
|
-
sellerId: string;
|
|
218
|
-
}
|
|
219
|
-
interface EditBadgeParams extends AppScopedParams {
|
|
220
|
-
id: string;
|
|
221
|
-
name: string;
|
|
222
|
-
description?: string | null;
|
|
223
|
-
image?: string | null;
|
|
224
|
-
imageId?: string | null;
|
|
225
|
-
}
|
|
226
|
-
interface DeleteBadgeParams extends AppScopedParams {
|
|
227
|
-
id: string;
|
|
228
|
-
}
|
|
229
|
-
interface CreateCategoryParams extends AppScopedParams {
|
|
230
|
-
name: string;
|
|
231
|
-
description?: string | null;
|
|
232
|
-
sellerId: string;
|
|
233
|
-
image?: string | null;
|
|
234
|
-
imageId?: string | null;
|
|
235
|
-
parentId?: string | null;
|
|
236
|
-
}
|
|
237
|
-
interface EditCategoryParams extends AppScopedParams {
|
|
238
|
-
id: string;
|
|
239
|
-
name: string;
|
|
240
|
-
description?: string | null;
|
|
241
|
-
image?: string | null;
|
|
242
|
-
imageId?: string | null;
|
|
243
|
-
parentId?: string | null;
|
|
244
|
-
}
|
|
245
|
-
interface GetCategoryParams extends AppScopedParams {
|
|
246
|
-
id: string;
|
|
247
|
-
}
|
|
248
|
-
interface CreateCollectionParams extends AppScopedParams {
|
|
249
|
-
title: string;
|
|
250
|
-
description?: string | null;
|
|
251
|
-
slug: string;
|
|
252
|
-
image?: string | null;
|
|
253
|
-
type?: string;
|
|
254
|
-
productIds?: string[];
|
|
255
|
-
isActive?: boolean;
|
|
256
|
-
}
|
|
257
|
-
interface EditCollectionParams extends AppScopedParams {
|
|
258
|
-
id: string;
|
|
259
|
-
title: string;
|
|
260
|
-
description?: string | null;
|
|
261
|
-
slug: string;
|
|
262
|
-
image?: string | null;
|
|
263
|
-
type?: string;
|
|
264
|
-
productIds?: string[];
|
|
265
|
-
isActive?: boolean;
|
|
266
|
-
}
|
|
267
|
-
interface GetCollectionParams extends AppScopedParams {
|
|
268
|
-
id: string;
|
|
269
|
-
}
|
|
270
|
-
interface CreateDiscountParams extends AppScopedParams {
|
|
271
|
-
code: string;
|
|
272
|
-
type: string;
|
|
273
|
-
value: number;
|
|
274
|
-
startsAt: string | Date;
|
|
275
|
-
endsAt?: string | Date | null;
|
|
276
|
-
usageLimit?: number | null;
|
|
277
|
-
minRequirement?: string;
|
|
278
|
-
minQuantity?: number | null;
|
|
279
|
-
minAmount?: number | null;
|
|
280
|
-
appliesTo?: string;
|
|
281
|
-
collectionIds?: string[];
|
|
282
|
-
productIds?: string[];
|
|
283
|
-
isActive?: boolean;
|
|
284
|
-
}
|
|
285
|
-
interface EditDiscountParams extends AppScopedParams {
|
|
286
|
-
id: string;
|
|
287
|
-
code: string;
|
|
288
|
-
type?: string;
|
|
289
|
-
value?: number;
|
|
290
|
-
startsAt?: string | Date;
|
|
291
|
-
endsAt?: string | Date | null;
|
|
292
|
-
usageLimit?: number | null;
|
|
293
|
-
minRequirement?: string;
|
|
294
|
-
minQuantity?: number | null;
|
|
295
|
-
minAmount?: number | null;
|
|
296
|
-
appliesTo?: string;
|
|
297
|
-
collectionIds?: string[];
|
|
298
|
-
productIds?: string[];
|
|
299
|
-
isActive?: boolean;
|
|
300
|
-
}
|
|
301
|
-
interface GetDiscountParams extends AppScopedParams {
|
|
302
|
-
id: string;
|
|
303
|
-
}
|
|
304
|
-
interface CreateOptionParams extends AppScopedParams {
|
|
305
|
-
name: string;
|
|
306
|
-
description?: string | null;
|
|
307
|
-
values: {
|
|
308
|
-
id: string;
|
|
309
|
-
text: string;
|
|
310
|
-
}[];
|
|
311
|
-
sellerId: string;
|
|
312
|
-
}
|
|
313
|
-
interface EditOptionParams extends AppScopedParams {
|
|
314
|
-
id: string;
|
|
315
|
-
name: string;
|
|
316
|
-
description?: string | null;
|
|
317
|
-
values: {
|
|
318
|
-
id: string;
|
|
319
|
-
text: string;
|
|
320
|
-
}[];
|
|
321
|
-
}
|
|
322
|
-
interface GetOptionParams extends AppScopedParams {
|
|
323
|
-
id: string;
|
|
324
|
-
}
|
|
325
|
-
interface CreateOrderParams extends AppScopedParams {
|
|
326
|
-
customerId: string;
|
|
327
|
-
sellerId: string;
|
|
328
|
-
items: {
|
|
329
|
-
variantId: string;
|
|
330
|
-
productId: string;
|
|
331
|
-
quantity?: number;
|
|
332
|
-
}[];
|
|
333
|
-
ref?: string | null;
|
|
334
|
-
shippingAddress?: Record<string, unknown>;
|
|
335
|
-
billingAddress?: Record<string, unknown>;
|
|
336
|
-
discountTotal?: number;
|
|
337
|
-
shippingTotal?: number;
|
|
338
|
-
taxTotal?: number;
|
|
339
|
-
}
|
|
340
|
-
interface EditOrderParams extends AppScopedParams {
|
|
341
|
-
id: string;
|
|
342
|
-
status?: string | null;
|
|
343
|
-
paymentStatus?: string | null;
|
|
344
|
-
fulfillmentStatus?: string | null;
|
|
345
|
-
ref?: string | null;
|
|
346
|
-
shippingAddress?: Record<string, unknown>;
|
|
347
|
-
billingAddress?: Record<string, unknown>;
|
|
348
|
-
}
|
|
349
|
-
interface GetOrderParams extends AppScopedParams {
|
|
350
|
-
id: string;
|
|
351
|
-
}
|
|
352
|
-
interface CreateProductParams extends AppScopedParams {
|
|
353
|
-
name: string;
|
|
354
|
-
sku?: string | null;
|
|
355
|
-
description?: string | null;
|
|
356
|
-
seoTitle?: string | null;
|
|
357
|
-
seoDescription?: string | null;
|
|
358
|
-
status?: string;
|
|
359
|
-
sellerId: string;
|
|
360
|
-
categoryId: string;
|
|
361
|
-
badgeId?: string | null;
|
|
362
|
-
collectionIds?: string[];
|
|
363
|
-
tagIds?: string[];
|
|
364
|
-
shippingProfileId?: string | null;
|
|
365
|
-
variants: unknown[];
|
|
366
|
-
attributes?: {
|
|
367
|
-
key: string;
|
|
368
|
-
value: string;
|
|
369
|
-
}[];
|
|
370
|
-
}
|
|
371
|
-
interface EditProductParams extends AppScopedParams {
|
|
372
|
-
id: string;
|
|
373
|
-
name: string;
|
|
374
|
-
description?: string | null;
|
|
375
|
-
seoTitle?: string | null;
|
|
376
|
-
seoDescription?: string | null;
|
|
377
|
-
status?: string;
|
|
378
|
-
categoryId?: string;
|
|
379
|
-
badgeId?: string | null;
|
|
380
|
-
collectionIds?: string[];
|
|
381
|
-
tagIds?: string[];
|
|
382
|
-
shippingProfileId?: string | null;
|
|
383
|
-
variants: unknown[];
|
|
384
|
-
attributes?: {
|
|
385
|
-
key: string;
|
|
386
|
-
value: string;
|
|
387
|
-
}[];
|
|
388
|
-
}
|
|
389
|
-
interface GetProductParams extends AppScopedParams {
|
|
390
|
-
id: string;
|
|
391
|
-
}
|
|
392
|
-
interface CreateSellerParams extends AppScopedParams {
|
|
393
|
-
fullname: string;
|
|
394
|
-
telephone: string;
|
|
395
|
-
email: string;
|
|
396
|
-
password?: string | null;
|
|
397
|
-
confirm?: string | null;
|
|
398
|
-
avatar?: string | null;
|
|
399
|
-
avatarId?: string | null;
|
|
400
|
-
country?: string;
|
|
401
|
-
isDefault?: boolean;
|
|
402
|
-
}
|
|
403
|
-
interface EditSellerParams extends AppScopedParams {
|
|
404
|
-
id: string;
|
|
405
|
-
fullname: string;
|
|
406
|
-
avatar?: string | null;
|
|
407
|
-
avatarId?: string | null;
|
|
408
|
-
telephone: string;
|
|
409
|
-
email: string;
|
|
410
|
-
}
|
|
411
|
-
interface GetSellerParams extends AppScopedParams {
|
|
412
|
-
id: string;
|
|
413
|
-
}
|
|
414
|
-
interface CreateShippingProfileParams extends AppScopedParams {
|
|
415
|
-
name: string;
|
|
416
|
-
zones?: unknown[];
|
|
417
|
-
isDefault?: boolean;
|
|
418
|
-
}
|
|
419
|
-
interface EditShippingProfileParams extends AppScopedParams {
|
|
420
|
-
id: string;
|
|
421
|
-
name: string;
|
|
422
|
-
zones?: unknown[];
|
|
423
|
-
isDefault?: boolean;
|
|
424
|
-
}
|
|
425
|
-
interface GetShippingProfileParams extends AppScopedParams {
|
|
426
|
-
id: string;
|
|
427
|
-
}
|
|
428
|
-
interface CreateTagParams extends AppScopedParams {
|
|
429
|
-
name: string;
|
|
430
|
-
}
|
|
431
|
-
interface EditTagParams extends AppScopedParams {
|
|
432
|
-
id: string;
|
|
433
|
-
name: string;
|
|
434
|
-
}
|
|
435
|
-
interface GetTagParams extends AppScopedParams {
|
|
436
|
-
id: string;
|
|
437
|
-
}
|
|
438
|
-
interface CreateTaxParams extends AppScopedParams {
|
|
439
|
-
name: string;
|
|
440
|
-
rate: number;
|
|
441
|
-
country?: string | null;
|
|
442
|
-
region?: string | null;
|
|
443
|
-
isCompound?: boolean;
|
|
444
|
-
isShippingTaxable?: boolean;
|
|
445
|
-
}
|
|
446
|
-
interface EditTaxParams extends AppScopedParams {
|
|
447
|
-
id: string;
|
|
448
|
-
name: string;
|
|
449
|
-
rate?: number;
|
|
450
|
-
country?: string | null;
|
|
451
|
-
region?: string | null;
|
|
452
|
-
isCompound?: boolean;
|
|
453
|
-
isShippingTaxable?: boolean;
|
|
454
|
-
}
|
|
455
|
-
interface GetTaxParams extends AppScopedParams {
|
|
456
|
-
id: string;
|
|
457
|
-
}
|
|
458
|
-
declare class StoreBadgeModule {
|
|
459
|
-
private readonly http;
|
|
460
|
-
constructor(http: HttpClient);
|
|
461
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
462
|
-
create(params: CreateBadgeParams): Promise<ApiSuccessResponse<unknown>>;
|
|
463
|
-
get(params: EditBadgeParams): Promise<ApiSuccessResponse<unknown>>;
|
|
464
|
-
update(params: EditBadgeParams): Promise<ApiSuccessResponse<unknown>>;
|
|
465
|
-
delete(params: DeleteBadgeParams): Promise<ApiSuccessResponse<unknown>>;
|
|
466
|
-
}
|
|
467
|
-
declare class StoreCategoryModule {
|
|
468
|
-
private readonly http;
|
|
469
|
-
constructor(http: HttpClient);
|
|
470
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
471
|
-
create(params: CreateCategoryParams): Promise<ApiSuccessResponse<unknown>>;
|
|
472
|
-
get(params: GetCategoryParams): Promise<ApiSuccessResponse<unknown>>;
|
|
473
|
-
update(params: EditCategoryParams): Promise<ApiSuccessResponse<unknown>>;
|
|
474
|
-
delete(params: GetCategoryParams): Promise<ApiSuccessResponse<unknown>>;
|
|
475
|
-
}
|
|
476
|
-
declare class StoreCollectionModule {
|
|
477
|
-
private readonly http;
|
|
478
|
-
constructor(http: HttpClient);
|
|
479
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
480
|
-
create(params: CreateCollectionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
481
|
-
get(params: GetCollectionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
482
|
-
update(params: EditCollectionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
483
|
-
delete(params: GetCollectionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
484
|
-
}
|
|
485
|
-
declare class StoreDiscountModule {
|
|
486
|
-
private readonly http;
|
|
487
|
-
constructor(http: HttpClient);
|
|
488
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
489
|
-
create(params: CreateDiscountParams): Promise<ApiSuccessResponse<unknown>>;
|
|
490
|
-
get(params: GetDiscountParams): Promise<ApiSuccessResponse<unknown>>;
|
|
491
|
-
update(params: EditDiscountParams): Promise<ApiSuccessResponse<unknown>>;
|
|
492
|
-
delete(params: GetDiscountParams): Promise<ApiSuccessResponse<unknown>>;
|
|
493
|
-
}
|
|
494
|
-
declare class StoreOptionModule {
|
|
495
|
-
private readonly http;
|
|
496
|
-
constructor(http: HttpClient);
|
|
497
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
498
|
-
create(params: CreateOptionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
499
|
-
get(params: GetOptionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
500
|
-
update(params: EditOptionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
501
|
-
delete(params: GetOptionParams): Promise<ApiSuccessResponse<unknown>>;
|
|
502
|
-
}
|
|
503
|
-
declare class StoreOrderModule {
|
|
504
|
-
private readonly http;
|
|
505
|
-
constructor(http: HttpClient);
|
|
506
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
507
|
-
create(params: CreateOrderParams): Promise<ApiSuccessResponse<unknown>>;
|
|
508
|
-
get(params: GetOrderParams): Promise<ApiSuccessResponse<unknown>>;
|
|
509
|
-
update(params: EditOrderParams): Promise<ApiSuccessResponse<unknown>>;
|
|
510
|
-
delete(params: GetOrderParams): Promise<ApiSuccessResponse<unknown>>;
|
|
511
|
-
}
|
|
512
|
-
declare class StoreProductModule {
|
|
513
|
-
private readonly http;
|
|
514
|
-
constructor(http: HttpClient);
|
|
515
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
516
|
-
create(params: CreateProductParams): Promise<ApiSuccessResponse<unknown>>;
|
|
517
|
-
get(params: GetProductParams): Promise<ApiSuccessResponse<unknown>>;
|
|
518
|
-
update(params: EditProductParams): Promise<ApiSuccessResponse<unknown>>;
|
|
519
|
-
delete(params: GetProductParams): Promise<ApiSuccessResponse<unknown>>;
|
|
520
|
-
}
|
|
521
|
-
declare class StoreSellerModule {
|
|
522
|
-
private readonly http;
|
|
523
|
-
constructor(http: HttpClient);
|
|
524
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
525
|
-
create(params: CreateSellerParams): Promise<ApiSuccessResponse<unknown>>;
|
|
526
|
-
get(params: GetSellerParams): Promise<ApiSuccessResponse<unknown>>;
|
|
527
|
-
update(params: EditSellerParams): Promise<ApiSuccessResponse<unknown>>;
|
|
528
|
-
delete(params: GetSellerParams): Promise<ApiSuccessResponse<unknown>>;
|
|
529
|
-
}
|
|
530
|
-
declare class StoreShippingModule {
|
|
531
|
-
private readonly http;
|
|
532
|
-
constructor(http: HttpClient);
|
|
533
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
534
|
-
create(params: CreateShippingProfileParams): Promise<ApiSuccessResponse<unknown>>;
|
|
535
|
-
delete(params: GetShippingProfileParams): Promise<ApiSuccessResponse<unknown>>;
|
|
536
|
-
}
|
|
537
|
-
declare class StoreTagModule {
|
|
538
|
-
private readonly http;
|
|
539
|
-
constructor(http: HttpClient);
|
|
540
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
541
|
-
create(params: CreateTagParams): Promise<ApiSuccessResponse<unknown>>;
|
|
542
|
-
get(params: GetTagParams): Promise<ApiSuccessResponse<unknown>>;
|
|
543
|
-
update(params: EditTagParams): Promise<ApiSuccessResponse<unknown>>;
|
|
544
|
-
delete(params: GetTagParams): Promise<ApiSuccessResponse<unknown>>;
|
|
545
|
-
}
|
|
546
|
-
declare class StoreTaxModule {
|
|
547
|
-
private readonly http;
|
|
548
|
-
constructor(http: HttpClient);
|
|
549
|
-
list(params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
550
|
-
create(params: CreateTaxParams): Promise<ApiSuccessResponse<unknown>>;
|
|
551
|
-
get(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>>;
|
|
552
|
-
update(params: EditTaxParams): Promise<ApiSuccessResponse<unknown>>;
|
|
553
|
-
delete(params: GetTaxParams): Promise<ApiSuccessResponse<unknown>>;
|
|
554
|
-
}
|
|
555
|
-
declare class StoreModule {
|
|
556
|
-
private readonly http;
|
|
557
|
-
readonly badge: StoreBadgeModule;
|
|
558
|
-
readonly category: StoreCategoryModule;
|
|
559
|
-
readonly collection: StoreCollectionModule;
|
|
560
|
-
readonly discount: StoreDiscountModule;
|
|
561
|
-
readonly option: StoreOptionModule;
|
|
562
|
-
readonly order: StoreOrderModule;
|
|
563
|
-
readonly product: StoreProductModule;
|
|
564
|
-
readonly seller: StoreSellerModule;
|
|
565
|
-
readonly shipping: StoreShippingModule;
|
|
566
|
-
readonly tag: StoreTagModule;
|
|
567
|
-
readonly tax: StoreTaxModule;
|
|
568
|
-
constructor(http: HttpClient);
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
interface WelcomeItemParams extends AppScopedParams {
|
|
572
|
-
}
|
|
573
|
-
interface CreateWelcomeItemParams extends AppScopedParams {
|
|
574
|
-
fileUrl: string;
|
|
575
|
-
fileType?: string;
|
|
576
|
-
title?: string;
|
|
577
|
-
description?: string;
|
|
578
|
-
plateformType: string;
|
|
579
|
-
}
|
|
580
|
-
interface EditWelcomeItemParams extends AppScopedParams {
|
|
581
|
-
id: string;
|
|
582
|
-
fileUrl?: string;
|
|
583
|
-
fileType?: string;
|
|
584
|
-
title?: string;
|
|
585
|
-
description?: string;
|
|
586
|
-
plateformType?: string;
|
|
587
|
-
}
|
|
588
|
-
interface WelcomeItemGetParams extends AppScopedParams {
|
|
589
|
-
id: string;
|
|
590
|
-
}
|
|
591
|
-
declare class AppWelcomeItemModule {
|
|
592
|
-
private readonly http;
|
|
593
|
-
constructor(http: HttpClient);
|
|
594
|
-
list(params: WelcomeItemParams): Promise<ApiSuccessResponse<unknown>>;
|
|
595
|
-
create(params: CreateWelcomeItemParams): Promise<ApiSuccessResponse<unknown>>;
|
|
596
|
-
get(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>>;
|
|
597
|
-
update(params: EditWelcomeItemParams): Promise<ApiSuccessResponse<unknown>>;
|
|
598
|
-
delete(params: WelcomeItemGetParams): Promise<ApiSuccessResponse<unknown>>;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
interface ListServicesParams extends AppScopedParams {
|
|
602
|
-
companyId?: string | null;
|
|
603
|
-
}
|
|
604
|
-
interface ListCompaniesParams extends AppScopedParams {
|
|
605
|
-
}
|
|
606
|
-
interface CreateCompanyParams extends AppScopedParams {
|
|
607
|
-
name: string;
|
|
608
|
-
description?: string | null;
|
|
609
|
-
email?: string | null;
|
|
610
|
-
telephone?: string | null;
|
|
611
|
-
address?: string | null;
|
|
612
|
-
logo?: string | null;
|
|
613
|
-
logoId?: string | null;
|
|
614
|
-
isDefault?: boolean;
|
|
615
|
-
}
|
|
616
|
-
interface GetCompanyParams extends AppScopedParams {
|
|
617
|
-
id: string;
|
|
618
|
-
}
|
|
619
|
-
interface UpdateCompanyParams extends CreateCompanyParams {
|
|
620
|
-
id: string;
|
|
621
|
-
}
|
|
622
|
-
interface CreateServiceParams extends AppScopedParams {
|
|
623
|
-
name: string;
|
|
624
|
-
description?: string | null;
|
|
625
|
-
icon?: string | null;
|
|
626
|
-
iconId?: string | null;
|
|
627
|
-
basePrice?: number | null;
|
|
628
|
-
categories?: string[];
|
|
629
|
-
fields?: any[];
|
|
630
|
-
companyId?: string | null;
|
|
631
|
-
}
|
|
632
|
-
interface GetServiceParams extends AppScopedParams {
|
|
633
|
-
id: string;
|
|
634
|
-
companyId?: string | null;
|
|
635
|
-
}
|
|
636
|
-
interface UpdateServiceParams extends CreateServiceParams {
|
|
637
|
-
id: string;
|
|
638
|
-
}
|
|
639
|
-
interface CreateAppointmentParams extends AppScopedParams {
|
|
640
|
-
serviceId: string;
|
|
641
|
-
agentId?: string | null;
|
|
642
|
-
userId?: string;
|
|
643
|
-
filledFields: Record<string, any>;
|
|
644
|
-
totalPrice: number;
|
|
645
|
-
date: Date | string;
|
|
646
|
-
commune: string;
|
|
647
|
-
}
|
|
648
|
-
interface ListAppointmentsParams extends AppScopedParams {
|
|
649
|
-
companyId?: string | null;
|
|
650
|
-
serviceId?: string;
|
|
651
|
-
status?: string;
|
|
652
|
-
}
|
|
653
|
-
interface UpdateAppointmentStatusParams extends AppScopedParams {
|
|
654
|
-
id: string;
|
|
655
|
-
status: string;
|
|
656
|
-
companyId?: string | null;
|
|
657
|
-
}
|
|
658
|
-
interface ListAgentsParams extends AppScopedParams {
|
|
659
|
-
companyId?: string | null;
|
|
660
|
-
serviceId?: string;
|
|
661
|
-
isActive?: boolean;
|
|
662
|
-
}
|
|
663
|
-
interface CreateAgentParams extends AppScopedParams {
|
|
664
|
-
companyId?: string | null;
|
|
665
|
-
serviceIds?: string[];
|
|
666
|
-
fullname: string;
|
|
667
|
-
email?: string | null;
|
|
668
|
-
telephone?: string | null;
|
|
669
|
-
bio?: string | null;
|
|
670
|
-
photo?: string | null;
|
|
671
|
-
photoId?: string | null;
|
|
672
|
-
isActive?: boolean;
|
|
673
|
-
}
|
|
674
|
-
interface GetAgentParams extends AppScopedParams {
|
|
675
|
-
id: string;
|
|
676
|
-
companyId?: string | null;
|
|
677
|
-
}
|
|
678
|
-
interface UpdateAgentParams extends CreateAgentParams {
|
|
679
|
-
id: string;
|
|
680
|
-
}
|
|
681
|
-
declare class MultiServiceModule {
|
|
682
|
-
private readonly http;
|
|
683
|
-
constructor(http: HttpClient);
|
|
684
|
-
listCompanies(params: ListCompaniesParams): Promise<ApiSuccessResponse<unknown>>;
|
|
685
|
-
createCompany(params: CreateCompanyParams): Promise<ApiSuccessResponse<unknown>>;
|
|
686
|
-
getCompany(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>>;
|
|
687
|
-
updateCompany(params: UpdateCompanyParams): Promise<ApiSuccessResponse<unknown>>;
|
|
688
|
-
deleteCompany(params: GetCompanyParams): Promise<ApiSuccessResponse<unknown>>;
|
|
689
|
-
listServices(params: ListServicesParams): Promise<ApiSuccessResponse<unknown>>;
|
|
690
|
-
createService(params: CreateServiceParams): Promise<ApiSuccessResponse<unknown>>;
|
|
691
|
-
getService(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>>;
|
|
692
|
-
updateService(params: UpdateServiceParams): Promise<ApiSuccessResponse<unknown>>;
|
|
693
|
-
deleteService(params: GetServiceParams): Promise<ApiSuccessResponse<unknown>>;
|
|
694
|
-
createAppointment(params: CreateAppointmentParams): Promise<ApiSuccessResponse<unknown>>;
|
|
695
|
-
listAppointments(params: ListAppointmentsParams): Promise<ApiSuccessResponse<unknown>>;
|
|
696
|
-
updateAppointmentStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<unknown>>;
|
|
697
|
-
listAgents(params: ListAgentsParams): Promise<ApiSuccessResponse<unknown>>;
|
|
698
|
-
createAgent(params: CreateAgentParams): Promise<ApiSuccessResponse<unknown>>;
|
|
699
|
-
getAgent(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>>;
|
|
700
|
-
updateAgent(params: UpdateAgentParams): Promise<ApiSuccessResponse<unknown>>;
|
|
701
|
-
deleteAgent(params: GetAgentParams): Promise<ApiSuccessResponse<unknown>>;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
declare class AppModule {
|
|
705
|
-
private readonly http;
|
|
706
|
-
readonly customer: AppCustomerModule;
|
|
707
|
-
readonly stats: AppStatsModule;
|
|
708
|
-
readonly finance: AppFinanceModule;
|
|
709
|
-
readonly welcomeItem: AppWelcomeItemModule;
|
|
710
|
-
readonly info: AppInfoModule;
|
|
711
|
-
readonly store: StoreModule;
|
|
712
|
-
readonly multiService: MultiServiceModule;
|
|
713
|
-
constructor(http: HttpClient);
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
interface AppliteUIConfig extends HttpClientConfig {
|
|
717
|
-
}
|
|
718
|
-
declare class AppliteUI {
|
|
719
|
-
readonly http: HttpClient;
|
|
720
|
-
readonly app: AppModule;
|
|
721
|
-
constructor(config?: AppliteUIConfig);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
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 EditBadgeParams, type EditCategoryParams, type EditCollectionParams, type EditDiscountParams, type EditOptionParams, type EditOrderParams, type EditProductParams, type EditSellerParams, 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, MultiServiceModule, type PlateformType, type Sexe, StoreBadgeModule, StoreCategoryModule, StoreCollectionModule, StoreDiscountModule, StoreModule, StoreOptionModule, StoreOrderModule, StoreProductModule, StoreSellerModule, StoreShippingModule, StoreTagModule, StoreTaxModule, type TransactionGetParams, type TransactionListParams, type UpdateAgentParams, type UpdateAppointmentStatusParams, type UpdateCompanyParams, type UpdateServiceParams, type UpdateStatisticParams, type WelcomeItemGetParams, type WelcomeItemParams, type WithdrawParams, plateformTypes, sexes };
|