@customafk/lunas-api-sdk 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1424 -330
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1424 -330
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -122,6 +122,19 @@ declare enum ECouponConditionOperator {
|
|
|
122
122
|
LT = 'LT',
|
|
123
123
|
LTE = 'LTE',
|
|
124
124
|
}
|
|
125
|
+
declare enum EExpenseCategory {
|
|
126
|
+
RENT = 'RENT',
|
|
127
|
+
SALARIES = 'SALARIES',
|
|
128
|
+
UTILITIES = 'UTILITIES',
|
|
129
|
+
MARKETING = 'MARKETING',
|
|
130
|
+
OFFICE_SUPPLIES = 'OFFICE_SUPPLIES',
|
|
131
|
+
SOFTWARE_SUBSCRIPTION = 'SOFTWARE_SUBSCRIPTION',
|
|
132
|
+
SHIPPING_LOGISTICS = 'SHIPPING_LOGISTICS',
|
|
133
|
+
MAINTENANCE = 'MAINTENANCE',
|
|
134
|
+
PRODUCT_PURCHASE = 'PRODUCT_PURCHASE',
|
|
135
|
+
TAX = 'TAX',
|
|
136
|
+
OTHER = 'OTHER',
|
|
137
|
+
}
|
|
125
138
|
type TResponsePagination = {
|
|
126
139
|
page: number;
|
|
127
140
|
limit: number;
|
|
@@ -493,7 +506,6 @@ declare const _createClient: () => {
|
|
|
493
506
|
updatedAt: Date;
|
|
494
507
|
description: string | null;
|
|
495
508
|
isActive: boolean;
|
|
496
|
-
expiresAt: Date | null;
|
|
497
509
|
code: string;
|
|
498
510
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
499
511
|
discountValue: number;
|
|
@@ -501,6 +513,7 @@ declare const _createClient: () => {
|
|
|
501
513
|
minimumOrderValue: number;
|
|
502
514
|
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
503
515
|
startDate: Date | null;
|
|
516
|
+
expiresAt: Date | null;
|
|
504
517
|
usageLimit: number | null;
|
|
505
518
|
usageLimitPerCustomer: number | null;
|
|
506
519
|
isExclusive: boolean;
|
|
@@ -961,7 +974,6 @@ declare const _createClient: () => {
|
|
|
961
974
|
updatedAt: Date;
|
|
962
975
|
description: string | null;
|
|
963
976
|
isActive: boolean;
|
|
964
|
-
expiresAt: Date | null;
|
|
965
977
|
code: string;
|
|
966
978
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
967
979
|
discountValue: number;
|
|
@@ -969,6 +981,7 @@ declare const _createClient: () => {
|
|
|
969
981
|
minimumOrderValue: number;
|
|
970
982
|
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
971
983
|
startDate: Date | null;
|
|
984
|
+
expiresAt: Date | null;
|
|
972
985
|
usageLimit: number | null;
|
|
973
986
|
usageLimitPerCustomer: number | null;
|
|
974
987
|
isExclusive: boolean;
|
|
@@ -1437,7 +1450,6 @@ declare const _createClient: () => {
|
|
|
1437
1450
|
updatedAt: Date;
|
|
1438
1451
|
description: string | null;
|
|
1439
1452
|
isActive: boolean;
|
|
1440
|
-
expiresAt: Date | null;
|
|
1441
1453
|
code: string;
|
|
1442
1454
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
1443
1455
|
discountValue: number;
|
|
@@ -1445,6 +1457,7 @@ declare const _createClient: () => {
|
|
|
1445
1457
|
minimumOrderValue: number;
|
|
1446
1458
|
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
1447
1459
|
startDate: Date | null;
|
|
1460
|
+
expiresAt: Date | null;
|
|
1448
1461
|
usageLimit: number | null;
|
|
1449
1462
|
usageLimitPerCustomer: number | null;
|
|
1450
1463
|
isExclusive: boolean;
|
|
@@ -1600,7 +1613,6 @@ declare const _createClient: () => {
|
|
|
1600
1613
|
updatedAt: Date;
|
|
1601
1614
|
description: string | null;
|
|
1602
1615
|
isActive: boolean;
|
|
1603
|
-
expiresAt: Date | null;
|
|
1604
1616
|
code: string;
|
|
1605
1617
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
1606
1618
|
discountValue: number;
|
|
@@ -1608,6 +1620,7 @@ declare const _createClient: () => {
|
|
|
1608
1620
|
minimumOrderValue: number;
|
|
1609
1621
|
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
1610
1622
|
startDate: Date | null;
|
|
1623
|
+
expiresAt: Date | null;
|
|
1611
1624
|
usageLimit: number | null;
|
|
1612
1625
|
usageLimitPerCustomer: number | null;
|
|
1613
1626
|
isExclusive: boolean;
|
|
@@ -1675,7 +1688,6 @@ declare const _createClient: () => {
|
|
|
1675
1688
|
updatedAt: Date;
|
|
1676
1689
|
description: string | null;
|
|
1677
1690
|
isActive: boolean;
|
|
1678
|
-
expiresAt: Date | null;
|
|
1679
1691
|
code: string;
|
|
1680
1692
|
discountType: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING";
|
|
1681
1693
|
discountValue: number;
|
|
@@ -1683,6 +1695,7 @@ declare const _createClient: () => {
|
|
|
1683
1695
|
minimumOrderValue: number;
|
|
1684
1696
|
scopeType: "ORDER" | "PRODUCT" | "SHIPPING";
|
|
1685
1697
|
startDate: Date | null;
|
|
1698
|
+
expiresAt: Date | null;
|
|
1686
1699
|
usageLimit: number | null;
|
|
1687
1700
|
usageLimitPerCustomer: number | null;
|
|
1688
1701
|
isExclusive: boolean;
|
|
@@ -2459,10 +2472,10 @@ declare const _createClient: () => {
|
|
|
2459
2472
|
actorUuid: string | null;
|
|
2460
2473
|
title: string;
|
|
2461
2474
|
content: string | null;
|
|
2475
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
2462
2476
|
manifestUuid: string | null;
|
|
2463
2477
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
2464
2478
|
startedAt: Date;
|
|
2465
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
2466
2479
|
isPublic: boolean;
|
|
2467
2480
|
metadata: unknown;
|
|
2468
2481
|
}[];
|
|
@@ -2473,8 +2486,8 @@ declare const _createClient: () => {
|
|
|
2473
2486
|
createdAt: Date;
|
|
2474
2487
|
updatedAt: Date;
|
|
2475
2488
|
description: string | null;
|
|
2476
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
2477
2489
|
amount: number;
|
|
2490
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
2478
2491
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
2479
2492
|
paymentUuid: string | null;
|
|
2480
2493
|
}[];
|
|
@@ -2612,10 +2625,10 @@ declare const _createClient: () => {
|
|
|
2612
2625
|
actorUuid: string | null;
|
|
2613
2626
|
title: string;
|
|
2614
2627
|
content: string | null;
|
|
2628
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
2615
2629
|
manifestUuid: string | null;
|
|
2616
2630
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
2617
2631
|
startedAt: Date;
|
|
2618
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
2619
2632
|
isPublic: boolean;
|
|
2620
2633
|
metadata: unknown;
|
|
2621
2634
|
}[];
|
|
@@ -2626,8 +2639,8 @@ declare const _createClient: () => {
|
|
|
2626
2639
|
createdAt: Date;
|
|
2627
2640
|
updatedAt: Date;
|
|
2628
2641
|
description: string | null;
|
|
2629
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
2630
2642
|
amount: number;
|
|
2643
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
2631
2644
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
2632
2645
|
paymentUuid: string | null;
|
|
2633
2646
|
}[];
|
|
@@ -3067,10 +3080,10 @@ declare const _createClient: () => {
|
|
|
3067
3080
|
actorUuid: string | null;
|
|
3068
3081
|
title: string;
|
|
3069
3082
|
content: string | null;
|
|
3083
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
3070
3084
|
manifestUuid: string | null;
|
|
3071
3085
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
3072
3086
|
startedAt: Date;
|
|
3073
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
3074
3087
|
isPublic: boolean;
|
|
3075
3088
|
metadata: unknown;
|
|
3076
3089
|
}[];
|
|
@@ -3081,8 +3094,8 @@ declare const _createClient: () => {
|
|
|
3081
3094
|
createdAt: Date;
|
|
3082
3095
|
updatedAt: Date;
|
|
3083
3096
|
description: string | null;
|
|
3084
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
3085
3097
|
amount: number;
|
|
3098
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
3086
3099
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
3087
3100
|
paymentUuid: string | null;
|
|
3088
3101
|
}[];
|
|
@@ -3220,10 +3233,10 @@ declare const _createClient: () => {
|
|
|
3220
3233
|
actorUuid: string | null;
|
|
3221
3234
|
title: string;
|
|
3222
3235
|
content: string | null;
|
|
3236
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
3223
3237
|
manifestUuid: string | null;
|
|
3224
3238
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
3225
3239
|
startedAt: Date;
|
|
3226
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
3227
3240
|
isPublic: boolean;
|
|
3228
3241
|
metadata: unknown;
|
|
3229
3242
|
}[];
|
|
@@ -3234,8 +3247,8 @@ declare const _createClient: () => {
|
|
|
3234
3247
|
createdAt: Date;
|
|
3235
3248
|
updatedAt: Date;
|
|
3236
3249
|
description: string | null;
|
|
3237
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
3238
3250
|
amount: number;
|
|
3251
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
3239
3252
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
3240
3253
|
paymentUuid: string | null;
|
|
3241
3254
|
}[];
|
|
@@ -4540,8 +4553,8 @@ declare const _createClient: () => {
|
|
|
4540
4553
|
name: string;
|
|
4541
4554
|
createdAt: Date | null;
|
|
4542
4555
|
updatedAt: Date | null;
|
|
4543
|
-
id: number;
|
|
4544
4556
|
code: string;
|
|
4557
|
+
id: number;
|
|
4545
4558
|
exchangeRate: number;
|
|
4546
4559
|
};
|
|
4547
4560
|
message: null;
|
|
@@ -4652,8 +4665,8 @@ declare const _createClient: () => {
|
|
|
4652
4665
|
name: string;
|
|
4653
4666
|
createdAt: Date | null;
|
|
4654
4667
|
updatedAt: Date | null;
|
|
4655
|
-
id: number;
|
|
4656
4668
|
code: string;
|
|
4669
|
+
id: number;
|
|
4657
4670
|
exchangeRate: number;
|
|
4658
4671
|
};
|
|
4659
4672
|
message: null;
|
|
@@ -4763,8 +4776,8 @@ declare const _createClient: () => {
|
|
|
4763
4776
|
name: string;
|
|
4764
4777
|
createdAt: Date | null;
|
|
4765
4778
|
updatedAt: Date | null;
|
|
4766
|
-
id: number;
|
|
4767
4779
|
code: string;
|
|
4780
|
+
id: number;
|
|
4768
4781
|
exchangeRate: number;
|
|
4769
4782
|
}[];
|
|
4770
4783
|
message: null;
|
|
@@ -4974,6 +4987,16 @@ declare const _createClient: () => {
|
|
|
4974
4987
|
previous: number;
|
|
4975
4988
|
changePercent: number | null;
|
|
4976
4989
|
};
|
|
4990
|
+
expenses: {
|
|
4991
|
+
current: number;
|
|
4992
|
+
previous: number;
|
|
4993
|
+
changePercent: number | null;
|
|
4994
|
+
};
|
|
4995
|
+
profit: {
|
|
4996
|
+
current: number;
|
|
4997
|
+
previous: number;
|
|
4998
|
+
changePercent: number | null;
|
|
4999
|
+
};
|
|
4977
5000
|
newCustomers: {
|
|
4978
5001
|
current: number;
|
|
4979
5002
|
previous: number;
|
|
@@ -5059,6 +5082,7 @@ declare const _createClient: () => {
|
|
|
5059
5082
|
headers?: {} | undefined;
|
|
5060
5083
|
query: {
|
|
5061
5084
|
limit: number;
|
|
5085
|
+
sortBy: "revenue" | "unitsSold" | "orderCount";
|
|
5062
5086
|
startDate?: string | undefined;
|
|
5063
5087
|
endDate?: string | undefined;
|
|
5064
5088
|
};
|
|
@@ -5078,6 +5102,7 @@ declare const _createClient: () => {
|
|
|
5078
5102
|
productName: string;
|
|
5079
5103
|
unitsSold: number;
|
|
5080
5104
|
revenue: number;
|
|
5105
|
+
orderCount: number;
|
|
5081
5106
|
}[];
|
|
5082
5107
|
message: null;
|
|
5083
5108
|
error: null;
|
|
@@ -5193,7 +5218,7 @@ declare const _createClient: () => {
|
|
|
5193
5218
|
} & {
|
|
5194
5219
|
'~path': string;
|
|
5195
5220
|
};
|
|
5196
|
-
"
|
|
5221
|
+
"customer-repeat-rate": {
|
|
5197
5222
|
get: ((options?: {
|
|
5198
5223
|
fetch?: RequestInit | undefined;
|
|
5199
5224
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -5214,10 +5239,15 @@ declare const _createClient: () => {
|
|
|
5214
5239
|
success: true;
|
|
5215
5240
|
statusCode: number;
|
|
5216
5241
|
data: {
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5242
|
+
period: {
|
|
5243
|
+
startDate: string;
|
|
5244
|
+
endDate: string;
|
|
5245
|
+
};
|
|
5246
|
+
totalCustomers: number;
|
|
5247
|
+
newCustomers: number;
|
|
5248
|
+
repeatCustomers: number;
|
|
5249
|
+
repeatPurchaseRate: number;
|
|
5250
|
+
};
|
|
5221
5251
|
message: null;
|
|
5222
5252
|
error: null;
|
|
5223
5253
|
meta: TResponseMeta;
|
|
@@ -5237,16 +5267,17 @@ declare const _createClient: () => {
|
|
|
5237
5267
|
} & {
|
|
5238
5268
|
'~path': string;
|
|
5239
5269
|
};
|
|
5240
|
-
"
|
|
5241
|
-
get: ((options
|
|
5270
|
+
"product-margin-ranking": {
|
|
5271
|
+
get: ((options: {
|
|
5242
5272
|
fetch?: RequestInit | undefined;
|
|
5243
5273
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5244
5274
|
headers?: {} | undefined;
|
|
5245
|
-
query
|
|
5275
|
+
query: {
|
|
5276
|
+
limit: number;
|
|
5246
5277
|
startDate?: string | undefined;
|
|
5247
5278
|
endDate?: string | undefined;
|
|
5248
|
-
}
|
|
5249
|
-
}
|
|
5279
|
+
};
|
|
5280
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
5250
5281
|
200: {
|
|
5251
5282
|
success: false;
|
|
5252
5283
|
statusCode: number;
|
|
@@ -5258,13 +5289,12 @@ declare const _createClient: () => {
|
|
|
5258
5289
|
success: true;
|
|
5259
5290
|
statusCode: number;
|
|
5260
5291
|
data: {
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
};
|
|
5292
|
+
productUuid: string | null;
|
|
5293
|
+
productName: string;
|
|
5294
|
+
unitsSold: number;
|
|
5295
|
+
revenue: number;
|
|
5296
|
+
estimatedMargin: number;
|
|
5297
|
+
}[];
|
|
5268
5298
|
message: null;
|
|
5269
5299
|
error: null;
|
|
5270
5300
|
meta: TResponseMeta;
|
|
@@ -5284,7 +5314,7 @@ declare const _createClient: () => {
|
|
|
5284
5314
|
} & {
|
|
5285
5315
|
'~path': string;
|
|
5286
5316
|
};
|
|
5287
|
-
"
|
|
5317
|
+
"expense-trend": {
|
|
5288
5318
|
get: ((options: {
|
|
5289
5319
|
fetch?: RequestInit | undefined;
|
|
5290
5320
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -5307,7 +5337,10 @@ declare const _createClient: () => {
|
|
|
5307
5337
|
statusCode: number;
|
|
5308
5338
|
data: {
|
|
5309
5339
|
interval: "day" | "week" | "month";
|
|
5310
|
-
series:
|
|
5340
|
+
series: {
|
|
5341
|
+
bucket: string;
|
|
5342
|
+
expenses: number;
|
|
5343
|
+
}[];
|
|
5311
5344
|
};
|
|
5312
5345
|
message: null;
|
|
5313
5346
|
error: null;
|
|
@@ -5328,17 +5361,16 @@ declare const _createClient: () => {
|
|
|
5328
5361
|
} & {
|
|
5329
5362
|
'~path': string;
|
|
5330
5363
|
};
|
|
5331
|
-
"
|
|
5332
|
-
get: ((options
|
|
5364
|
+
"expense-breakdown": {
|
|
5365
|
+
get: ((options?: {
|
|
5333
5366
|
fetch?: RequestInit | undefined;
|
|
5334
5367
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5335
5368
|
headers?: {} | undefined;
|
|
5336
|
-
query
|
|
5337
|
-
interval: "day" | "week" | "month";
|
|
5369
|
+
query?: {
|
|
5338
5370
|
startDate?: string | undefined;
|
|
5339
5371
|
endDate?: string | undefined;
|
|
5340
|
-
};
|
|
5341
|
-
}) => Promise<Treaty.TreatyResponse<{
|
|
5372
|
+
} | undefined;
|
|
5373
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5342
5374
|
200: {
|
|
5343
5375
|
success: false;
|
|
5344
5376
|
statusCode: number;
|
|
@@ -5350,8 +5382,12 @@ declare const _createClient: () => {
|
|
|
5350
5382
|
success: true;
|
|
5351
5383
|
statusCode: number;
|
|
5352
5384
|
data: {
|
|
5353
|
-
|
|
5354
|
-
|
|
5385
|
+
total: number;
|
|
5386
|
+
byCategory: {
|
|
5387
|
+
category: EExpenseCategory;
|
|
5388
|
+
count: number;
|
|
5389
|
+
amount: number;
|
|
5390
|
+
}[];
|
|
5355
5391
|
};
|
|
5356
5392
|
message: null;
|
|
5357
5393
|
error: null;
|
|
@@ -5372,13 +5408,13 @@ declare const _createClient: () => {
|
|
|
5372
5408
|
} & {
|
|
5373
5409
|
'~path': string;
|
|
5374
5410
|
};
|
|
5375
|
-
"
|
|
5411
|
+
"profit-trend": {
|
|
5376
5412
|
get: ((options: {
|
|
5377
5413
|
fetch?: RequestInit | undefined;
|
|
5378
5414
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5379
5415
|
headers?: {} | undefined;
|
|
5380
5416
|
query: {
|
|
5381
|
-
|
|
5417
|
+
interval: "day" | "week" | "month";
|
|
5382
5418
|
startDate?: string | undefined;
|
|
5383
5419
|
endDate?: string | undefined;
|
|
5384
5420
|
};
|
|
@@ -5394,13 +5430,14 @@ declare const _createClient: () => {
|
|
|
5394
5430
|
success: true;
|
|
5395
5431
|
statusCode: number;
|
|
5396
5432
|
data: {
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5433
|
+
interval: "day" | "week" | "month";
|
|
5434
|
+
series: {
|
|
5435
|
+
bucket: string;
|
|
5436
|
+
revenue: number;
|
|
5437
|
+
expenses: number;
|
|
5438
|
+
profit: number;
|
|
5439
|
+
}[];
|
|
5440
|
+
};
|
|
5404
5441
|
message: null;
|
|
5405
5442
|
error: null;
|
|
5406
5443
|
meta: TResponseMeta;
|
|
@@ -5420,7 +5457,7 @@ declare const _createClient: () => {
|
|
|
5420
5457
|
} & {
|
|
5421
5458
|
'~path': string;
|
|
5422
5459
|
};
|
|
5423
|
-
"
|
|
5460
|
+
"payment-methods": {
|
|
5424
5461
|
get: ((options?: {
|
|
5425
5462
|
fetch?: RequestInit | undefined;
|
|
5426
5463
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -5441,14 +5478,10 @@ declare const _createClient: () => {
|
|
|
5441
5478
|
success: true;
|
|
5442
5479
|
statusCode: number;
|
|
5443
5480
|
data: {
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
orderCount: number;
|
|
5449
|
-
totalOutstanding: number;
|
|
5450
|
-
}[];
|
|
5451
|
-
};
|
|
5481
|
+
paymentMethod: string;
|
|
5482
|
+
transactionCount: number;
|
|
5483
|
+
totalAmount: number;
|
|
5484
|
+
}[];
|
|
5452
5485
|
message: null;
|
|
5453
5486
|
error: null;
|
|
5454
5487
|
meta: TResponseMeta;
|
|
@@ -5468,7 +5501,7 @@ declare const _createClient: () => {
|
|
|
5468
5501
|
} & {
|
|
5469
5502
|
'~path': string;
|
|
5470
5503
|
};
|
|
5471
|
-
"
|
|
5504
|
+
"revenue-by-payment-type": {
|
|
5472
5505
|
get: ((options?: {
|
|
5473
5506
|
fetch?: RequestInit | undefined;
|
|
5474
5507
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -5490,10 +5523,10 @@ declare const _createClient: () => {
|
|
|
5490
5523
|
statusCode: number;
|
|
5491
5524
|
data: {
|
|
5492
5525
|
total: number;
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5526
|
+
byPaymentType: {
|
|
5527
|
+
paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
|
|
5528
|
+
transactionCount: number;
|
|
5529
|
+
totalAmount: number;
|
|
5497
5530
|
}[];
|
|
5498
5531
|
};
|
|
5499
5532
|
message: null;
|
|
@@ -5515,94 +5548,247 @@ declare const _createClient: () => {
|
|
|
5515
5548
|
} & {
|
|
5516
5549
|
'~path': string;
|
|
5517
5550
|
};
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
valueType?: "PERCENTAGE" | "FIXED" | undefined;
|
|
5528
|
-
depositValue?: number | undefined;
|
|
5529
|
-
surchargeValue?: number | undefined;
|
|
5530
|
-
} | undefined, options?: {
|
|
5531
|
-
fetch?: RequestInit | undefined;
|
|
5532
|
-
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5533
|
-
headers?: {} | undefined;
|
|
5534
|
-
query?: {} | undefined;
|
|
5535
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5536
|
-
200: {
|
|
5537
|
-
success: false;
|
|
5538
|
-
statusCode: number;
|
|
5539
|
-
data: null;
|
|
5540
|
-
message: string;
|
|
5541
|
-
error: TResponseError;
|
|
5542
|
-
meta: TResponseMeta;
|
|
5543
|
-
} | {
|
|
5544
|
-
success: true;
|
|
5545
|
-
statusCode: number;
|
|
5546
|
-
data: {
|
|
5547
|
-
uuid: string;
|
|
5551
|
+
"order-status-trend": {
|
|
5552
|
+
get: ((options: {
|
|
5553
|
+
fetch?: RequestInit | undefined;
|
|
5554
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5555
|
+
headers?: {} | undefined;
|
|
5556
|
+
query: {
|
|
5557
|
+
interval: "day" | "week" | "month";
|
|
5558
|
+
startDate?: string | undefined;
|
|
5559
|
+
endDate?: string | undefined;
|
|
5548
5560
|
};
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5568
|
-
headers?: {} | undefined;
|
|
5569
|
-
query?: {} | undefined;
|
|
5570
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5571
|
-
200: {
|
|
5572
|
-
success: false;
|
|
5573
|
-
statusCode: number;
|
|
5574
|
-
data: null;
|
|
5575
|
-
message: string;
|
|
5576
|
-
error: TResponseError;
|
|
5577
|
-
meta: TResponseMeta;
|
|
5578
|
-
} | {
|
|
5579
|
-
success: true;
|
|
5580
|
-
statusCode: number;
|
|
5581
|
-
data: {
|
|
5582
|
-
uuid: string;
|
|
5561
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
5562
|
+
200: {
|
|
5563
|
+
success: false;
|
|
5564
|
+
statusCode: number;
|
|
5565
|
+
data: null;
|
|
5566
|
+
message: string;
|
|
5567
|
+
error: TResponseError;
|
|
5568
|
+
meta: TResponseMeta;
|
|
5569
|
+
} | {
|
|
5570
|
+
success: true;
|
|
5571
|
+
statusCode: number;
|
|
5572
|
+
data: {
|
|
5573
|
+
interval: "day" | "week" | "month";
|
|
5574
|
+
series: Record<string, string | number>[];
|
|
5575
|
+
};
|
|
5576
|
+
message: null;
|
|
5577
|
+
error: null;
|
|
5578
|
+
meta: TResponseMeta;
|
|
5583
5579
|
};
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
expected?: string;
|
|
5580
|
+
422: {
|
|
5581
|
+
type: "validation";
|
|
5582
|
+
on: string;
|
|
5583
|
+
summary?: string;
|
|
5584
|
+
message?: string;
|
|
5585
|
+
found?: unknown;
|
|
5586
|
+
property?: string;
|
|
5587
|
+
expected?: string;
|
|
5588
|
+
};
|
|
5589
|
+
}>>) & {
|
|
5590
|
+
'~path': string;
|
|
5596
5591
|
};
|
|
5597
|
-
}
|
|
5592
|
+
} & {
|
|
5598
5593
|
'~path': string;
|
|
5599
5594
|
};
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5595
|
+
"fulfillment-status-trend": {
|
|
5596
|
+
get: ((options: {
|
|
5597
|
+
fetch?: RequestInit | undefined;
|
|
5598
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5599
|
+
headers?: {} | undefined;
|
|
5600
|
+
query: {
|
|
5601
|
+
interval: "day" | "week" | "month";
|
|
5602
|
+
startDate?: string | undefined;
|
|
5603
|
+
endDate?: string | undefined;
|
|
5604
|
+
};
|
|
5605
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
5606
|
+
200: {
|
|
5607
|
+
success: false;
|
|
5608
|
+
statusCode: number;
|
|
5609
|
+
data: null;
|
|
5610
|
+
message: string;
|
|
5611
|
+
error: TResponseError;
|
|
5612
|
+
meta: TResponseMeta;
|
|
5613
|
+
} | {
|
|
5614
|
+
success: true;
|
|
5615
|
+
statusCode: number;
|
|
5616
|
+
data: {
|
|
5617
|
+
interval: "day" | "week" | "month";
|
|
5618
|
+
series: Record<string, string | number>[];
|
|
5619
|
+
};
|
|
5620
|
+
message: null;
|
|
5621
|
+
error: null;
|
|
5622
|
+
meta: TResponseMeta;
|
|
5623
|
+
};
|
|
5624
|
+
422: {
|
|
5625
|
+
type: "validation";
|
|
5626
|
+
on: string;
|
|
5627
|
+
summary?: string;
|
|
5628
|
+
message?: string;
|
|
5629
|
+
found?: unknown;
|
|
5630
|
+
property?: string;
|
|
5631
|
+
expected?: string;
|
|
5632
|
+
};
|
|
5633
|
+
}>>) & {
|
|
5634
|
+
'~path': string;
|
|
5635
|
+
};
|
|
5636
|
+
} & {
|
|
5637
|
+
'~path': string;
|
|
5638
|
+
};
|
|
5639
|
+
"top-customers": {
|
|
5640
|
+
get: ((options: {
|
|
5641
|
+
fetch?: RequestInit | undefined;
|
|
5642
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5643
|
+
headers?: {} | undefined;
|
|
5644
|
+
query: {
|
|
5645
|
+
limit: number;
|
|
5646
|
+
startDate?: string | undefined;
|
|
5647
|
+
endDate?: string | undefined;
|
|
5648
|
+
};
|
|
5649
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
5650
|
+
200: {
|
|
5651
|
+
success: false;
|
|
5652
|
+
statusCode: number;
|
|
5653
|
+
data: null;
|
|
5654
|
+
message: string;
|
|
5655
|
+
error: TResponseError;
|
|
5656
|
+
meta: TResponseMeta;
|
|
5657
|
+
} | {
|
|
5658
|
+
success: true;
|
|
5659
|
+
statusCode: number;
|
|
5660
|
+
data: {
|
|
5661
|
+
userUuid: string | null;
|
|
5662
|
+
customerEmail: string | null;
|
|
5663
|
+
customerName: string;
|
|
5664
|
+
isGuest: boolean;
|
|
5665
|
+
orderCount: number;
|
|
5666
|
+
totalRevenue: number;
|
|
5667
|
+
}[];
|
|
5668
|
+
message: null;
|
|
5669
|
+
error: null;
|
|
5670
|
+
meta: TResponseMeta;
|
|
5671
|
+
};
|
|
5672
|
+
422: {
|
|
5673
|
+
type: "validation";
|
|
5674
|
+
on: string;
|
|
5675
|
+
summary?: string;
|
|
5676
|
+
message?: string;
|
|
5677
|
+
found?: unknown;
|
|
5678
|
+
property?: string;
|
|
5679
|
+
expected?: string;
|
|
5680
|
+
};
|
|
5681
|
+
}>>) & {
|
|
5682
|
+
'~path': string;
|
|
5683
|
+
};
|
|
5684
|
+
} & {
|
|
5685
|
+
'~path': string;
|
|
5686
|
+
};
|
|
5687
|
+
"outstanding-balance": {
|
|
5688
|
+
get: ((options?: {
|
|
5689
|
+
fetch?: RequestInit | undefined;
|
|
5690
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5691
|
+
headers?: {} | undefined;
|
|
5692
|
+
query?: {
|
|
5693
|
+
startDate?: string | undefined;
|
|
5694
|
+
endDate?: string | undefined;
|
|
5695
|
+
} | undefined;
|
|
5696
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5697
|
+
200: {
|
|
5698
|
+
success: false;
|
|
5699
|
+
statusCode: number;
|
|
5700
|
+
data: null;
|
|
5701
|
+
message: string;
|
|
5702
|
+
error: TResponseError;
|
|
5703
|
+
meta: TResponseMeta;
|
|
5704
|
+
} | {
|
|
5705
|
+
success: true;
|
|
5706
|
+
statusCode: number;
|
|
5707
|
+
data: {
|
|
5708
|
+
totalOutstanding: number;
|
|
5709
|
+
orderCount: number;
|
|
5710
|
+
byStatus: {
|
|
5711
|
+
status: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED";
|
|
5712
|
+
orderCount: number;
|
|
5713
|
+
totalOutstanding: number;
|
|
5714
|
+
}[];
|
|
5715
|
+
};
|
|
5716
|
+
message: null;
|
|
5717
|
+
error: null;
|
|
5718
|
+
meta: TResponseMeta;
|
|
5719
|
+
};
|
|
5720
|
+
422: {
|
|
5721
|
+
type: "validation";
|
|
5722
|
+
on: string;
|
|
5723
|
+
summary?: string;
|
|
5724
|
+
message?: string;
|
|
5725
|
+
found?: unknown;
|
|
5726
|
+
property?: string;
|
|
5727
|
+
expected?: string;
|
|
5728
|
+
};
|
|
5729
|
+
}>>) & {
|
|
5730
|
+
'~path': string;
|
|
5731
|
+
};
|
|
5732
|
+
} & {
|
|
5733
|
+
'~path': string;
|
|
5734
|
+
};
|
|
5735
|
+
"order-type-breakdown": {
|
|
5736
|
+
get: ((options?: {
|
|
5737
|
+
fetch?: RequestInit | undefined;
|
|
5738
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5739
|
+
headers?: {} | undefined;
|
|
5740
|
+
query?: {
|
|
5741
|
+
startDate?: string | undefined;
|
|
5742
|
+
endDate?: string | undefined;
|
|
5743
|
+
} | undefined;
|
|
5744
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5745
|
+
200: {
|
|
5746
|
+
success: false;
|
|
5747
|
+
statusCode: number;
|
|
5748
|
+
data: null;
|
|
5749
|
+
message: string;
|
|
5750
|
+
error: TResponseError;
|
|
5751
|
+
meta: TResponseMeta;
|
|
5752
|
+
} | {
|
|
5753
|
+
success: true;
|
|
5754
|
+
statusCode: number;
|
|
5755
|
+
data: {
|
|
5756
|
+
total: number;
|
|
5757
|
+
byOrderType: {
|
|
5758
|
+
orderType: "ORDER" | "IN-STOCK";
|
|
5759
|
+
orderCount: number;
|
|
5760
|
+
totalRevenue: number;
|
|
5761
|
+
}[];
|
|
5762
|
+
};
|
|
5763
|
+
message: null;
|
|
5764
|
+
error: null;
|
|
5765
|
+
meta: TResponseMeta;
|
|
5766
|
+
};
|
|
5767
|
+
422: {
|
|
5768
|
+
type: "validation";
|
|
5769
|
+
on: string;
|
|
5770
|
+
summary?: string;
|
|
5771
|
+
message?: string;
|
|
5772
|
+
found?: unknown;
|
|
5773
|
+
property?: string;
|
|
5774
|
+
expected?: string;
|
|
5775
|
+
};
|
|
5776
|
+
}>>) & {
|
|
5777
|
+
'~path': string;
|
|
5778
|
+
};
|
|
5779
|
+
} & {
|
|
5780
|
+
'~path': string;
|
|
5781
|
+
};
|
|
5782
|
+
} & {
|
|
5783
|
+
'~path': string;
|
|
5784
|
+
};
|
|
5785
|
+
deposits: ((params: {
|
|
5786
|
+
depositId: string | number;
|
|
5787
|
+
}) => {
|
|
5788
|
+
patch: ((body?: {
|
|
5789
|
+
name?: string | undefined;
|
|
5790
|
+
description?: string | undefined;
|
|
5791
|
+
valueType?: "PERCENTAGE" | "FIXED" | undefined;
|
|
5606
5792
|
depositValue?: number | undefined;
|
|
5607
5793
|
surchargeValue?: number | undefined;
|
|
5608
5794
|
} | undefined, options?: {
|
|
@@ -5675,8 +5861,15 @@ declare const _createClient: () => {
|
|
|
5675
5861
|
}>>) & {
|
|
5676
5862
|
'~path': string;
|
|
5677
5863
|
};
|
|
5678
|
-
|
|
5679
|
-
|
|
5864
|
+
'~path': string;
|
|
5865
|
+
} & {
|
|
5866
|
+
patch: ((body?: {
|
|
5867
|
+
name?: string | undefined;
|
|
5868
|
+
description?: string | undefined;
|
|
5869
|
+
valueType?: "PERCENTAGE" | "FIXED" | undefined;
|
|
5870
|
+
depositValue?: number | undefined;
|
|
5871
|
+
surchargeValue?: number | undefined;
|
|
5872
|
+
} | undefined, options?: {
|
|
5680
5873
|
fetch?: RequestInit | undefined;
|
|
5681
5874
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5682
5875
|
headers?: {} | undefined;
|
|
@@ -5693,29 +5886,25 @@ declare const _createClient: () => {
|
|
|
5693
5886
|
success: true;
|
|
5694
5887
|
statusCode: number;
|
|
5695
5888
|
data: {
|
|
5696
|
-
name: string;
|
|
5697
5889
|
uuid: string;
|
|
5698
|
-
|
|
5699
|
-
updatedAt: Date;
|
|
5700
|
-
description: string | null;
|
|
5701
|
-
valueType: "PERCENTAGE" | "FIXED";
|
|
5702
|
-
depositValue: number;
|
|
5703
|
-
surchargeValue: number;
|
|
5704
|
-
}[];
|
|
5890
|
+
};
|
|
5705
5891
|
message: null;
|
|
5706
5892
|
error: null;
|
|
5707
5893
|
meta: TResponseMeta;
|
|
5708
5894
|
};
|
|
5895
|
+
422: {
|
|
5896
|
+
type: "validation";
|
|
5897
|
+
on: string;
|
|
5898
|
+
summary?: string;
|
|
5899
|
+
message?: string;
|
|
5900
|
+
found?: unknown;
|
|
5901
|
+
property?: string;
|
|
5902
|
+
expected?: string;
|
|
5903
|
+
};
|
|
5709
5904
|
}>>) & {
|
|
5710
5905
|
'~path': string;
|
|
5711
5906
|
};
|
|
5712
|
-
|
|
5713
|
-
name: string;
|
|
5714
|
-
valueType: "PERCENTAGE" | "FIXED";
|
|
5715
|
-
depositValue: number;
|
|
5716
|
-
surchargeValue: number;
|
|
5717
|
-
description?: string | undefined;
|
|
5718
|
-
}, options?: {
|
|
5907
|
+
delete: ((body?: {} | undefined, options?: {
|
|
5719
5908
|
fetch?: RequestInit | undefined;
|
|
5720
5909
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5721
5910
|
headers?: {} | undefined;
|
|
@@ -5750,12 +5939,7 @@ declare const _createClient: () => {
|
|
|
5750
5939
|
}>>) & {
|
|
5751
5940
|
'~path': string;
|
|
5752
5941
|
};
|
|
5753
|
-
} & {
|
|
5754
|
-
'~path': string;
|
|
5755
|
-
};
|
|
5756
|
-
emails: ((params: {
|
|
5757
|
-
emailId: string | number;
|
|
5758
|
-
}) => {
|
|
5942
|
+
}) & {
|
|
5759
5943
|
get: ((options?: {
|
|
5760
5944
|
fetch?: RequestInit | undefined;
|
|
5761
5945
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
@@ -5772,15 +5956,95 @@ declare const _createClient: () => {
|
|
|
5772
5956
|
} | {
|
|
5773
5957
|
success: true;
|
|
5774
5958
|
statusCode: number;
|
|
5775
|
-
data:
|
|
5959
|
+
data: {
|
|
5960
|
+
name: string;
|
|
5961
|
+
uuid: string;
|
|
5962
|
+
createdAt: Date;
|
|
5963
|
+
updatedAt: Date;
|
|
5964
|
+
description: string | null;
|
|
5965
|
+
valueType: "PERCENTAGE" | "FIXED";
|
|
5966
|
+
depositValue: number;
|
|
5967
|
+
surchargeValue: number;
|
|
5968
|
+
}[];
|
|
5776
5969
|
message: null;
|
|
5777
5970
|
error: null;
|
|
5778
5971
|
meta: TResponseMeta;
|
|
5779
5972
|
};
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5973
|
+
}>>) & {
|
|
5974
|
+
'~path': string;
|
|
5975
|
+
};
|
|
5976
|
+
post: ((body: {
|
|
5977
|
+
name: string;
|
|
5978
|
+
valueType: "PERCENTAGE" | "FIXED";
|
|
5979
|
+
depositValue: number;
|
|
5980
|
+
surchargeValue: number;
|
|
5981
|
+
description?: string | undefined;
|
|
5982
|
+
}, options?: {
|
|
5983
|
+
fetch?: RequestInit | undefined;
|
|
5984
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
5985
|
+
headers?: {} | undefined;
|
|
5986
|
+
query?: {} | undefined;
|
|
5987
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
5988
|
+
200: {
|
|
5989
|
+
success: false;
|
|
5990
|
+
statusCode: number;
|
|
5991
|
+
data: null;
|
|
5992
|
+
message: string;
|
|
5993
|
+
error: TResponseError;
|
|
5994
|
+
meta: TResponseMeta;
|
|
5995
|
+
} | {
|
|
5996
|
+
success: true;
|
|
5997
|
+
statusCode: number;
|
|
5998
|
+
data: {
|
|
5999
|
+
uuid: string;
|
|
6000
|
+
};
|
|
6001
|
+
message: null;
|
|
6002
|
+
error: null;
|
|
6003
|
+
meta: TResponseMeta;
|
|
6004
|
+
};
|
|
6005
|
+
422: {
|
|
6006
|
+
type: "validation";
|
|
6007
|
+
on: string;
|
|
6008
|
+
summary?: string;
|
|
6009
|
+
message?: string;
|
|
6010
|
+
found?: unknown;
|
|
6011
|
+
property?: string;
|
|
6012
|
+
expected?: string;
|
|
6013
|
+
};
|
|
6014
|
+
}>>) & {
|
|
6015
|
+
'~path': string;
|
|
6016
|
+
};
|
|
6017
|
+
} & {
|
|
6018
|
+
'~path': string;
|
|
6019
|
+
};
|
|
6020
|
+
emails: ((params: {
|
|
6021
|
+
emailId: string | number;
|
|
6022
|
+
}) => {
|
|
6023
|
+
get: ((options?: {
|
|
6024
|
+
fetch?: RequestInit | undefined;
|
|
6025
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6026
|
+
headers?: {} | undefined;
|
|
6027
|
+
query?: {} | undefined;
|
|
6028
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6029
|
+
200: {
|
|
6030
|
+
success: false;
|
|
6031
|
+
statusCode: number;
|
|
6032
|
+
data: null;
|
|
6033
|
+
message: string;
|
|
6034
|
+
error: TResponseError;
|
|
6035
|
+
meta: TResponseMeta;
|
|
6036
|
+
} | {
|
|
6037
|
+
success: true;
|
|
6038
|
+
statusCode: number;
|
|
6039
|
+
data: TEmailObject;
|
|
6040
|
+
message: null;
|
|
6041
|
+
error: null;
|
|
6042
|
+
meta: TResponseMeta;
|
|
6043
|
+
};
|
|
6044
|
+
422: {
|
|
6045
|
+
type: "validation";
|
|
6046
|
+
on: string;
|
|
6047
|
+
summary?: string;
|
|
5784
6048
|
message?: string;
|
|
5785
6049
|
found?: unknown;
|
|
5786
6050
|
property?: string;
|
|
@@ -6480,12 +6744,929 @@ declare const _createClient: () => {
|
|
|
6480
6744
|
}>>) & {
|
|
6481
6745
|
'~path': string;
|
|
6482
6746
|
};
|
|
6483
|
-
} & {
|
|
6484
|
-
'~path': string;
|
|
6747
|
+
} & {
|
|
6748
|
+
'~path': string;
|
|
6749
|
+
};
|
|
6750
|
+
'~path': string;
|
|
6751
|
+
} & {
|
|
6752
|
+
get: ((options?: {
|
|
6753
|
+
fetch?: RequestInit | undefined;
|
|
6754
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6755
|
+
headers?: {} | undefined;
|
|
6756
|
+
query?: {} | undefined;
|
|
6757
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6758
|
+
200: {
|
|
6759
|
+
success: false;
|
|
6760
|
+
statusCode: number;
|
|
6761
|
+
data: null;
|
|
6762
|
+
message: string;
|
|
6763
|
+
error: TResponseError;
|
|
6764
|
+
meta: TResponseMeta;
|
|
6765
|
+
} | {
|
|
6766
|
+
success: true;
|
|
6767
|
+
statusCode: number;
|
|
6768
|
+
data: TReceivedEmailObject;
|
|
6769
|
+
message: null;
|
|
6770
|
+
error: null;
|
|
6771
|
+
meta: TResponseMeta;
|
|
6772
|
+
};
|
|
6773
|
+
422: {
|
|
6774
|
+
type: "validation";
|
|
6775
|
+
on: string;
|
|
6776
|
+
summary?: string;
|
|
6777
|
+
message?: string;
|
|
6778
|
+
found?: unknown;
|
|
6779
|
+
property?: string;
|
|
6780
|
+
expected?: string;
|
|
6781
|
+
};
|
|
6782
|
+
}>>) & {
|
|
6783
|
+
'~path': string;
|
|
6784
|
+
};
|
|
6785
|
+
attachments: ((params: {
|
|
6786
|
+
attachmentId: string | number;
|
|
6787
|
+
}) => {
|
|
6788
|
+
get: ((options?: {
|
|
6789
|
+
fetch?: RequestInit | undefined;
|
|
6790
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6791
|
+
headers?: {} | undefined;
|
|
6792
|
+
query?: {} | undefined;
|
|
6793
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6794
|
+
200: {
|
|
6795
|
+
success: false;
|
|
6796
|
+
statusCode: number;
|
|
6797
|
+
data: null;
|
|
6798
|
+
message: string;
|
|
6799
|
+
error: TResponseError;
|
|
6800
|
+
meta: TResponseMeta;
|
|
6801
|
+
} | {
|
|
6802
|
+
success: true;
|
|
6803
|
+
statusCode: number;
|
|
6804
|
+
data: TAttachmentObject;
|
|
6805
|
+
message: null;
|
|
6806
|
+
error: null;
|
|
6807
|
+
meta: TResponseMeta;
|
|
6808
|
+
};
|
|
6809
|
+
422: {
|
|
6810
|
+
type: "validation";
|
|
6811
|
+
on: string;
|
|
6812
|
+
summary?: string;
|
|
6813
|
+
message?: string;
|
|
6814
|
+
found?: unknown;
|
|
6815
|
+
property?: string;
|
|
6816
|
+
expected?: string;
|
|
6817
|
+
};
|
|
6818
|
+
}>>) & {
|
|
6819
|
+
'~path': string;
|
|
6820
|
+
};
|
|
6821
|
+
'~path': string;
|
|
6822
|
+
} & {
|
|
6823
|
+
get: ((options?: {
|
|
6824
|
+
fetch?: RequestInit | undefined;
|
|
6825
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6826
|
+
headers?: {} | undefined;
|
|
6827
|
+
query?: {} | undefined;
|
|
6828
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6829
|
+
200: {
|
|
6830
|
+
success: false;
|
|
6831
|
+
statusCode: number;
|
|
6832
|
+
data: null;
|
|
6833
|
+
message: string;
|
|
6834
|
+
error: TResponseError;
|
|
6835
|
+
meta: TResponseMeta;
|
|
6836
|
+
} | {
|
|
6837
|
+
success: true;
|
|
6838
|
+
statusCode: number;
|
|
6839
|
+
data: TAttachmentObject;
|
|
6840
|
+
message: null;
|
|
6841
|
+
error: null;
|
|
6842
|
+
meta: TResponseMeta;
|
|
6843
|
+
};
|
|
6844
|
+
422: {
|
|
6845
|
+
type: "validation";
|
|
6846
|
+
on: string;
|
|
6847
|
+
summary?: string;
|
|
6848
|
+
message?: string;
|
|
6849
|
+
found?: unknown;
|
|
6850
|
+
property?: string;
|
|
6851
|
+
expected?: string;
|
|
6852
|
+
};
|
|
6853
|
+
}>>) & {
|
|
6854
|
+
'~path': string;
|
|
6855
|
+
};
|
|
6856
|
+
}) & {
|
|
6857
|
+
get: ((options?: {
|
|
6858
|
+
fetch?: RequestInit | undefined;
|
|
6859
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6860
|
+
headers?: {} | undefined;
|
|
6861
|
+
query?: {
|
|
6862
|
+
limit?: number | undefined;
|
|
6863
|
+
after?: string | undefined;
|
|
6864
|
+
before?: string | undefined;
|
|
6865
|
+
} | undefined;
|
|
6866
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6867
|
+
200: {
|
|
6868
|
+
success: false;
|
|
6869
|
+
statusCode: number;
|
|
6870
|
+
data: null;
|
|
6871
|
+
message: string;
|
|
6872
|
+
error: TResponseError;
|
|
6873
|
+
meta: TResponseMeta;
|
|
6874
|
+
} | {
|
|
6875
|
+
success: true;
|
|
6876
|
+
statusCode: number;
|
|
6877
|
+
data: TAttachmentListResult;
|
|
6878
|
+
message: null;
|
|
6879
|
+
error: null;
|
|
6880
|
+
meta: TResponseMeta;
|
|
6881
|
+
};
|
|
6882
|
+
422: {
|
|
6883
|
+
type: "validation";
|
|
6884
|
+
on: string;
|
|
6885
|
+
summary?: string;
|
|
6886
|
+
message?: string;
|
|
6887
|
+
found?: unknown;
|
|
6888
|
+
property?: string;
|
|
6889
|
+
expected?: string;
|
|
6890
|
+
};
|
|
6891
|
+
}>>) & {
|
|
6892
|
+
'~path': string;
|
|
6893
|
+
};
|
|
6894
|
+
} & {
|
|
6895
|
+
'~path': string;
|
|
6896
|
+
};
|
|
6897
|
+
}) & {
|
|
6898
|
+
get: ((options?: {
|
|
6899
|
+
fetch?: RequestInit | undefined;
|
|
6900
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6901
|
+
headers?: {} | undefined;
|
|
6902
|
+
query?: {
|
|
6903
|
+
limit?: number | undefined;
|
|
6904
|
+
after?: string | undefined;
|
|
6905
|
+
before?: string | undefined;
|
|
6906
|
+
} | undefined;
|
|
6907
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6908
|
+
200: {
|
|
6909
|
+
success: false;
|
|
6910
|
+
statusCode: number;
|
|
6911
|
+
data: null;
|
|
6912
|
+
message: string;
|
|
6913
|
+
error: TResponseError;
|
|
6914
|
+
meta: TResponseMeta;
|
|
6915
|
+
} | {
|
|
6916
|
+
success: true;
|
|
6917
|
+
statusCode: number;
|
|
6918
|
+
data: TReceivedEmailListResult;
|
|
6919
|
+
message: null;
|
|
6920
|
+
error: null;
|
|
6921
|
+
meta: TResponseMeta;
|
|
6922
|
+
};
|
|
6923
|
+
422: {
|
|
6924
|
+
type: "validation";
|
|
6925
|
+
on: string;
|
|
6926
|
+
summary?: string;
|
|
6927
|
+
message?: string;
|
|
6928
|
+
found?: unknown;
|
|
6929
|
+
property?: string;
|
|
6930
|
+
expected?: string;
|
|
6931
|
+
};
|
|
6932
|
+
}>>) & {
|
|
6933
|
+
'~path': string;
|
|
6934
|
+
};
|
|
6935
|
+
} & {
|
|
6936
|
+
'~path': string;
|
|
6937
|
+
};
|
|
6938
|
+
} & {
|
|
6939
|
+
'~path': string;
|
|
6940
|
+
};
|
|
6941
|
+
expenses: ((params: {
|
|
6942
|
+
expenseUuid: string | number;
|
|
6943
|
+
}) => {
|
|
6944
|
+
get: ((options?: {
|
|
6945
|
+
fetch?: RequestInit | undefined;
|
|
6946
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6947
|
+
headers?: {} | undefined;
|
|
6948
|
+
query?: {} | undefined;
|
|
6949
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6950
|
+
200: {
|
|
6951
|
+
success: false;
|
|
6952
|
+
statusCode: number;
|
|
6953
|
+
data: null;
|
|
6954
|
+
message: string;
|
|
6955
|
+
error: TResponseError;
|
|
6956
|
+
meta: TResponseMeta;
|
|
6957
|
+
} | {
|
|
6958
|
+
success: true;
|
|
6959
|
+
statusCode: number;
|
|
6960
|
+
data: {
|
|
6961
|
+
name: string;
|
|
6962
|
+
uuid: string;
|
|
6963
|
+
createdAt: Date;
|
|
6964
|
+
updatedAt: Date;
|
|
6965
|
+
description: string | null;
|
|
6966
|
+
startDate: Date;
|
|
6967
|
+
createdBy: string | null;
|
|
6968
|
+
updatedBy: string | null;
|
|
6969
|
+
category: string;
|
|
6970
|
+
expenseType: string;
|
|
6971
|
+
accrualMethod: string;
|
|
6972
|
+
amount: number;
|
|
6973
|
+
repeatCount: number;
|
|
6974
|
+
manMonths: number | null;
|
|
6975
|
+
periodMonths: number | null;
|
|
6976
|
+
remarks: string | null;
|
|
6977
|
+
occurrences: {
|
|
6978
|
+
uuid: string;
|
|
6979
|
+
createdAt: Date;
|
|
6980
|
+
updatedAt: Date;
|
|
6981
|
+
amount: number;
|
|
6982
|
+
expenseUuid: string;
|
|
6983
|
+
sequenceNo: number;
|
|
6984
|
+
bookingDate: Date;
|
|
6985
|
+
}[];
|
|
6986
|
+
};
|
|
6987
|
+
message: null;
|
|
6988
|
+
error: null;
|
|
6989
|
+
meta: TResponseMeta;
|
|
6990
|
+
};
|
|
6991
|
+
422: {
|
|
6992
|
+
type: "validation";
|
|
6993
|
+
on: string;
|
|
6994
|
+
summary?: string;
|
|
6995
|
+
message?: string;
|
|
6996
|
+
found?: unknown;
|
|
6997
|
+
property?: string;
|
|
6998
|
+
expected?: string;
|
|
6999
|
+
};
|
|
7000
|
+
}>>) & {
|
|
7001
|
+
'~path': string;
|
|
7002
|
+
};
|
|
7003
|
+
patch: ((body?: {
|
|
7004
|
+
name?: string | undefined;
|
|
7005
|
+
description?: string | null | undefined;
|
|
7006
|
+
category?: string | undefined;
|
|
7007
|
+
expenseType?: string | undefined;
|
|
7008
|
+
accrualMethod?: string | undefined;
|
|
7009
|
+
amount?: number | undefined;
|
|
7010
|
+
repeatCount?: number | undefined;
|
|
7011
|
+
manMonths?: number | null | undefined;
|
|
7012
|
+
periodMonths?: number | null | undefined;
|
|
7013
|
+
remarks?: string | null | undefined;
|
|
7014
|
+
startDate?: string | undefined;
|
|
7015
|
+
} | undefined, options?: {
|
|
7016
|
+
fetch?: RequestInit | undefined;
|
|
7017
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7018
|
+
headers?: {} | undefined;
|
|
7019
|
+
query?: {} | undefined;
|
|
7020
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7021
|
+
200: {
|
|
7022
|
+
success: true;
|
|
7023
|
+
statusCode: number;
|
|
7024
|
+
data: null;
|
|
7025
|
+
message: string;
|
|
7026
|
+
error: null;
|
|
7027
|
+
meta: TResponseMeta;
|
|
7028
|
+
} | {
|
|
7029
|
+
success: false;
|
|
7030
|
+
statusCode: number;
|
|
7031
|
+
data: null;
|
|
7032
|
+
message: string;
|
|
7033
|
+
error: TResponseError;
|
|
7034
|
+
meta: TResponseMeta;
|
|
7035
|
+
};
|
|
7036
|
+
422: {
|
|
7037
|
+
type: "validation";
|
|
7038
|
+
on: string;
|
|
7039
|
+
summary?: string;
|
|
7040
|
+
message?: string;
|
|
7041
|
+
found?: unknown;
|
|
7042
|
+
property?: string;
|
|
7043
|
+
expected?: string;
|
|
7044
|
+
};
|
|
7045
|
+
}>>) & {
|
|
7046
|
+
'~path': string;
|
|
7047
|
+
};
|
|
7048
|
+
delete: ((body?: {} | undefined, options?: {
|
|
7049
|
+
fetch?: RequestInit | undefined;
|
|
7050
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7051
|
+
headers?: {} | undefined;
|
|
7052
|
+
query?: {} | undefined;
|
|
7053
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7054
|
+
200: {
|
|
7055
|
+
success: true;
|
|
7056
|
+
statusCode: number;
|
|
7057
|
+
data: null;
|
|
7058
|
+
message: string;
|
|
7059
|
+
error: null;
|
|
7060
|
+
meta: TResponseMeta;
|
|
7061
|
+
} | {
|
|
7062
|
+
success: false;
|
|
7063
|
+
statusCode: number;
|
|
7064
|
+
data: null;
|
|
7065
|
+
message: string;
|
|
7066
|
+
error: TResponseError;
|
|
7067
|
+
meta: TResponseMeta;
|
|
7068
|
+
};
|
|
7069
|
+
422: {
|
|
7070
|
+
type: "validation";
|
|
7071
|
+
on: string;
|
|
7072
|
+
summary?: string;
|
|
7073
|
+
message?: string;
|
|
7074
|
+
found?: unknown;
|
|
7075
|
+
property?: string;
|
|
7076
|
+
expected?: string;
|
|
7077
|
+
};
|
|
7078
|
+
}>>) & {
|
|
7079
|
+
'~path': string;
|
|
7080
|
+
};
|
|
7081
|
+
occurrences: ((params: {
|
|
7082
|
+
occurrenceUuid: string | number;
|
|
7083
|
+
}) => {
|
|
7084
|
+
patch: ((body?: {
|
|
7085
|
+
amount?: number | undefined;
|
|
7086
|
+
bookingDate?: string | undefined;
|
|
7087
|
+
} | undefined, options?: {
|
|
7088
|
+
fetch?: RequestInit | undefined;
|
|
7089
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7090
|
+
headers?: {} | undefined;
|
|
7091
|
+
query?: {} | undefined;
|
|
7092
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7093
|
+
200: {
|
|
7094
|
+
success: true;
|
|
7095
|
+
statusCode: number;
|
|
7096
|
+
data: null;
|
|
7097
|
+
message: string;
|
|
7098
|
+
error: null;
|
|
7099
|
+
meta: TResponseMeta;
|
|
7100
|
+
} | {
|
|
7101
|
+
success: false;
|
|
7102
|
+
statusCode: number;
|
|
7103
|
+
data: null;
|
|
7104
|
+
message: string;
|
|
7105
|
+
error: TResponseError;
|
|
7106
|
+
meta: TResponseMeta;
|
|
7107
|
+
};
|
|
7108
|
+
422: {
|
|
7109
|
+
type: "validation";
|
|
7110
|
+
on: string;
|
|
7111
|
+
summary?: string;
|
|
7112
|
+
message?: string;
|
|
7113
|
+
found?: unknown;
|
|
7114
|
+
property?: string;
|
|
7115
|
+
expected?: string;
|
|
7116
|
+
};
|
|
7117
|
+
}>>) & {
|
|
7118
|
+
'~path': string;
|
|
7119
|
+
};
|
|
7120
|
+
delete: ((body?: {} | undefined, options?: {
|
|
7121
|
+
fetch?: RequestInit | undefined;
|
|
7122
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7123
|
+
headers?: {} | undefined;
|
|
7124
|
+
query?: {} | undefined;
|
|
7125
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7126
|
+
200: {
|
|
7127
|
+
success: true;
|
|
7128
|
+
statusCode: number;
|
|
7129
|
+
data: null;
|
|
7130
|
+
message: string;
|
|
7131
|
+
error: null;
|
|
7132
|
+
meta: TResponseMeta;
|
|
7133
|
+
} | {
|
|
7134
|
+
success: false;
|
|
7135
|
+
statusCode: number;
|
|
7136
|
+
data: null;
|
|
7137
|
+
message: string;
|
|
7138
|
+
error: TResponseError;
|
|
7139
|
+
meta: TResponseMeta;
|
|
7140
|
+
};
|
|
7141
|
+
422: {
|
|
7142
|
+
type: "validation";
|
|
7143
|
+
on: string;
|
|
7144
|
+
summary?: string;
|
|
7145
|
+
message?: string;
|
|
7146
|
+
found?: unknown;
|
|
7147
|
+
property?: string;
|
|
7148
|
+
expected?: string;
|
|
7149
|
+
};
|
|
7150
|
+
}>>) & {
|
|
7151
|
+
'~path': string;
|
|
7152
|
+
};
|
|
7153
|
+
'~path': string;
|
|
7154
|
+
} & {
|
|
7155
|
+
patch: ((body?: {
|
|
7156
|
+
amount?: number | undefined;
|
|
7157
|
+
bookingDate?: string | undefined;
|
|
7158
|
+
} | undefined, options?: {
|
|
7159
|
+
fetch?: RequestInit | undefined;
|
|
7160
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7161
|
+
headers?: {} | undefined;
|
|
7162
|
+
query?: {} | undefined;
|
|
7163
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7164
|
+
200: {
|
|
7165
|
+
success: true;
|
|
7166
|
+
statusCode: number;
|
|
7167
|
+
data: null;
|
|
7168
|
+
message: string;
|
|
7169
|
+
error: null;
|
|
7170
|
+
meta: TResponseMeta;
|
|
7171
|
+
} | {
|
|
7172
|
+
success: false;
|
|
7173
|
+
statusCode: number;
|
|
7174
|
+
data: null;
|
|
7175
|
+
message: string;
|
|
7176
|
+
error: TResponseError;
|
|
7177
|
+
meta: TResponseMeta;
|
|
7178
|
+
};
|
|
7179
|
+
422: {
|
|
7180
|
+
type: "validation";
|
|
7181
|
+
on: string;
|
|
7182
|
+
summary?: string;
|
|
7183
|
+
message?: string;
|
|
7184
|
+
found?: unknown;
|
|
7185
|
+
property?: string;
|
|
7186
|
+
expected?: string;
|
|
7187
|
+
};
|
|
7188
|
+
}>>) & {
|
|
7189
|
+
'~path': string;
|
|
7190
|
+
};
|
|
7191
|
+
delete: ((body?: {} | undefined, options?: {
|
|
7192
|
+
fetch?: RequestInit | undefined;
|
|
7193
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7194
|
+
headers?: {} | undefined;
|
|
7195
|
+
query?: {} | undefined;
|
|
7196
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7197
|
+
200: {
|
|
7198
|
+
success: true;
|
|
7199
|
+
statusCode: number;
|
|
7200
|
+
data: null;
|
|
7201
|
+
message: string;
|
|
7202
|
+
error: null;
|
|
7203
|
+
meta: TResponseMeta;
|
|
7204
|
+
} | {
|
|
7205
|
+
success: false;
|
|
7206
|
+
statusCode: number;
|
|
7207
|
+
data: null;
|
|
7208
|
+
message: string;
|
|
7209
|
+
error: TResponseError;
|
|
7210
|
+
meta: TResponseMeta;
|
|
7211
|
+
};
|
|
7212
|
+
422: {
|
|
7213
|
+
type: "validation";
|
|
7214
|
+
on: string;
|
|
7215
|
+
summary?: string;
|
|
7216
|
+
message?: string;
|
|
7217
|
+
found?: unknown;
|
|
7218
|
+
property?: string;
|
|
7219
|
+
expected?: string;
|
|
7220
|
+
};
|
|
7221
|
+
}>>) & {
|
|
7222
|
+
'~path': string;
|
|
7223
|
+
};
|
|
7224
|
+
}) & {} & {
|
|
7225
|
+
'~path': string;
|
|
7226
|
+
};
|
|
7227
|
+
'~path': string;
|
|
7228
|
+
} & {
|
|
7229
|
+
get: ((options?: {
|
|
7230
|
+
fetch?: RequestInit | undefined;
|
|
7231
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7232
|
+
headers?: {} | undefined;
|
|
7233
|
+
query?: {} | undefined;
|
|
7234
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7235
|
+
200: {
|
|
7236
|
+
success: false;
|
|
7237
|
+
statusCode: number;
|
|
7238
|
+
data: null;
|
|
7239
|
+
message: string;
|
|
7240
|
+
error: TResponseError;
|
|
7241
|
+
meta: TResponseMeta;
|
|
7242
|
+
} | {
|
|
7243
|
+
success: true;
|
|
7244
|
+
statusCode: number;
|
|
7245
|
+
data: {
|
|
7246
|
+
name: string;
|
|
7247
|
+
uuid: string;
|
|
7248
|
+
createdAt: Date;
|
|
7249
|
+
updatedAt: Date;
|
|
7250
|
+
description: string | null;
|
|
7251
|
+
startDate: Date;
|
|
7252
|
+
createdBy: string | null;
|
|
7253
|
+
updatedBy: string | null;
|
|
7254
|
+
category: string;
|
|
7255
|
+
expenseType: string;
|
|
7256
|
+
accrualMethod: string;
|
|
7257
|
+
amount: number;
|
|
7258
|
+
repeatCount: number;
|
|
7259
|
+
manMonths: number | null;
|
|
7260
|
+
periodMonths: number | null;
|
|
7261
|
+
remarks: string | null;
|
|
7262
|
+
occurrences: {
|
|
7263
|
+
uuid: string;
|
|
7264
|
+
createdAt: Date;
|
|
7265
|
+
updatedAt: Date;
|
|
7266
|
+
amount: number;
|
|
7267
|
+
expenseUuid: string;
|
|
7268
|
+
sequenceNo: number;
|
|
7269
|
+
bookingDate: Date;
|
|
7270
|
+
}[];
|
|
7271
|
+
};
|
|
7272
|
+
message: null;
|
|
7273
|
+
error: null;
|
|
7274
|
+
meta: TResponseMeta;
|
|
7275
|
+
};
|
|
7276
|
+
422: {
|
|
7277
|
+
type: "validation";
|
|
7278
|
+
on: string;
|
|
7279
|
+
summary?: string;
|
|
7280
|
+
message?: string;
|
|
7281
|
+
found?: unknown;
|
|
7282
|
+
property?: string;
|
|
7283
|
+
expected?: string;
|
|
7284
|
+
};
|
|
7285
|
+
}>>) & {
|
|
7286
|
+
'~path': string;
|
|
7287
|
+
};
|
|
7288
|
+
patch: ((body?: {
|
|
7289
|
+
name?: string | undefined;
|
|
7290
|
+
description?: string | null | undefined;
|
|
7291
|
+
category?: string | undefined;
|
|
7292
|
+
expenseType?: string | undefined;
|
|
7293
|
+
accrualMethod?: string | undefined;
|
|
7294
|
+
amount?: number | undefined;
|
|
7295
|
+
repeatCount?: number | undefined;
|
|
7296
|
+
manMonths?: number | null | undefined;
|
|
7297
|
+
periodMonths?: number | null | undefined;
|
|
7298
|
+
remarks?: string | null | undefined;
|
|
7299
|
+
startDate?: string | undefined;
|
|
7300
|
+
} | undefined, options?: {
|
|
7301
|
+
fetch?: RequestInit | undefined;
|
|
7302
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7303
|
+
headers?: {} | undefined;
|
|
7304
|
+
query?: {} | undefined;
|
|
7305
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7306
|
+
200: {
|
|
7307
|
+
success: true;
|
|
7308
|
+
statusCode: number;
|
|
7309
|
+
data: null;
|
|
7310
|
+
message: string;
|
|
7311
|
+
error: null;
|
|
7312
|
+
meta: TResponseMeta;
|
|
7313
|
+
} | {
|
|
7314
|
+
success: false;
|
|
7315
|
+
statusCode: number;
|
|
7316
|
+
data: null;
|
|
7317
|
+
message: string;
|
|
7318
|
+
error: TResponseError;
|
|
7319
|
+
meta: TResponseMeta;
|
|
7320
|
+
};
|
|
7321
|
+
422: {
|
|
7322
|
+
type: "validation";
|
|
7323
|
+
on: string;
|
|
7324
|
+
summary?: string;
|
|
7325
|
+
message?: string;
|
|
7326
|
+
found?: unknown;
|
|
7327
|
+
property?: string;
|
|
7328
|
+
expected?: string;
|
|
7329
|
+
};
|
|
7330
|
+
}>>) & {
|
|
7331
|
+
'~path': string;
|
|
7332
|
+
};
|
|
7333
|
+
delete: ((body?: {} | undefined, options?: {
|
|
7334
|
+
fetch?: RequestInit | undefined;
|
|
7335
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7336
|
+
headers?: {} | undefined;
|
|
7337
|
+
query?: {} | undefined;
|
|
7338
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7339
|
+
200: {
|
|
7340
|
+
success: true;
|
|
7341
|
+
statusCode: number;
|
|
7342
|
+
data: null;
|
|
7343
|
+
message: string;
|
|
7344
|
+
error: null;
|
|
7345
|
+
meta: TResponseMeta;
|
|
7346
|
+
} | {
|
|
7347
|
+
success: false;
|
|
7348
|
+
statusCode: number;
|
|
7349
|
+
data: null;
|
|
7350
|
+
message: string;
|
|
7351
|
+
error: TResponseError;
|
|
7352
|
+
meta: TResponseMeta;
|
|
7353
|
+
};
|
|
7354
|
+
422: {
|
|
7355
|
+
type: "validation";
|
|
7356
|
+
on: string;
|
|
7357
|
+
summary?: string;
|
|
7358
|
+
message?: string;
|
|
7359
|
+
found?: unknown;
|
|
7360
|
+
property?: string;
|
|
7361
|
+
expected?: string;
|
|
7362
|
+
};
|
|
7363
|
+
}>>) & {
|
|
7364
|
+
'~path': string;
|
|
7365
|
+
};
|
|
7366
|
+
occurrences: ((params: {
|
|
7367
|
+
occurrenceUuid: string | number;
|
|
7368
|
+
}) => {
|
|
7369
|
+
patch: ((body?: {
|
|
7370
|
+
amount?: number | undefined;
|
|
7371
|
+
bookingDate?: string | undefined;
|
|
7372
|
+
} | undefined, options?: {
|
|
7373
|
+
fetch?: RequestInit | undefined;
|
|
7374
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7375
|
+
headers?: {} | undefined;
|
|
7376
|
+
query?: {} | undefined;
|
|
7377
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7378
|
+
200: {
|
|
7379
|
+
success: true;
|
|
7380
|
+
statusCode: number;
|
|
7381
|
+
data: null;
|
|
7382
|
+
message: string;
|
|
7383
|
+
error: null;
|
|
7384
|
+
meta: TResponseMeta;
|
|
7385
|
+
} | {
|
|
7386
|
+
success: false;
|
|
7387
|
+
statusCode: number;
|
|
7388
|
+
data: null;
|
|
7389
|
+
message: string;
|
|
7390
|
+
error: TResponseError;
|
|
7391
|
+
meta: TResponseMeta;
|
|
7392
|
+
};
|
|
7393
|
+
422: {
|
|
7394
|
+
type: "validation";
|
|
7395
|
+
on: string;
|
|
7396
|
+
summary?: string;
|
|
7397
|
+
message?: string;
|
|
7398
|
+
found?: unknown;
|
|
7399
|
+
property?: string;
|
|
7400
|
+
expected?: string;
|
|
7401
|
+
};
|
|
7402
|
+
}>>) & {
|
|
7403
|
+
'~path': string;
|
|
7404
|
+
};
|
|
7405
|
+
delete: ((body?: {} | undefined, options?: {
|
|
7406
|
+
fetch?: RequestInit | undefined;
|
|
7407
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7408
|
+
headers?: {} | undefined;
|
|
7409
|
+
query?: {} | undefined;
|
|
7410
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7411
|
+
200: {
|
|
7412
|
+
success: true;
|
|
7413
|
+
statusCode: number;
|
|
7414
|
+
data: null;
|
|
7415
|
+
message: string;
|
|
7416
|
+
error: null;
|
|
7417
|
+
meta: TResponseMeta;
|
|
7418
|
+
} | {
|
|
7419
|
+
success: false;
|
|
7420
|
+
statusCode: number;
|
|
7421
|
+
data: null;
|
|
7422
|
+
message: string;
|
|
7423
|
+
error: TResponseError;
|
|
7424
|
+
meta: TResponseMeta;
|
|
7425
|
+
};
|
|
7426
|
+
422: {
|
|
7427
|
+
type: "validation";
|
|
7428
|
+
on: string;
|
|
7429
|
+
summary?: string;
|
|
7430
|
+
message?: string;
|
|
7431
|
+
found?: unknown;
|
|
7432
|
+
property?: string;
|
|
7433
|
+
expected?: string;
|
|
7434
|
+
};
|
|
7435
|
+
}>>) & {
|
|
7436
|
+
'~path': string;
|
|
7437
|
+
};
|
|
7438
|
+
'~path': string;
|
|
7439
|
+
} & {
|
|
7440
|
+
patch: ((body?: {
|
|
7441
|
+
amount?: number | undefined;
|
|
7442
|
+
bookingDate?: string | undefined;
|
|
7443
|
+
} | undefined, options?: {
|
|
7444
|
+
fetch?: RequestInit | undefined;
|
|
7445
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7446
|
+
headers?: {} | undefined;
|
|
7447
|
+
query?: {} | undefined;
|
|
7448
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7449
|
+
200: {
|
|
7450
|
+
success: true;
|
|
7451
|
+
statusCode: number;
|
|
7452
|
+
data: null;
|
|
7453
|
+
message: string;
|
|
7454
|
+
error: null;
|
|
7455
|
+
meta: TResponseMeta;
|
|
7456
|
+
} | {
|
|
7457
|
+
success: false;
|
|
7458
|
+
statusCode: number;
|
|
7459
|
+
data: null;
|
|
7460
|
+
message: string;
|
|
7461
|
+
error: TResponseError;
|
|
7462
|
+
meta: TResponseMeta;
|
|
7463
|
+
};
|
|
7464
|
+
422: {
|
|
7465
|
+
type: "validation";
|
|
7466
|
+
on: string;
|
|
7467
|
+
summary?: string;
|
|
7468
|
+
message?: string;
|
|
7469
|
+
found?: unknown;
|
|
7470
|
+
property?: string;
|
|
7471
|
+
expected?: string;
|
|
7472
|
+
};
|
|
7473
|
+
}>>) & {
|
|
7474
|
+
'~path': string;
|
|
7475
|
+
};
|
|
7476
|
+
delete: ((body?: {} | undefined, options?: {
|
|
7477
|
+
fetch?: RequestInit | undefined;
|
|
7478
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7479
|
+
headers?: {} | undefined;
|
|
7480
|
+
query?: {} | undefined;
|
|
7481
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7482
|
+
200: {
|
|
7483
|
+
success: true;
|
|
7484
|
+
statusCode: number;
|
|
7485
|
+
data: null;
|
|
7486
|
+
message: string;
|
|
7487
|
+
error: null;
|
|
7488
|
+
meta: TResponseMeta;
|
|
7489
|
+
} | {
|
|
7490
|
+
success: false;
|
|
7491
|
+
statusCode: number;
|
|
7492
|
+
data: null;
|
|
7493
|
+
message: string;
|
|
7494
|
+
error: TResponseError;
|
|
7495
|
+
meta: TResponseMeta;
|
|
7496
|
+
};
|
|
7497
|
+
422: {
|
|
7498
|
+
type: "validation";
|
|
7499
|
+
on: string;
|
|
7500
|
+
summary?: string;
|
|
7501
|
+
message?: string;
|
|
7502
|
+
found?: unknown;
|
|
7503
|
+
property?: string;
|
|
7504
|
+
expected?: string;
|
|
7505
|
+
};
|
|
7506
|
+
}>>) & {
|
|
7507
|
+
'~path': string;
|
|
7508
|
+
};
|
|
7509
|
+
}) & {} & {
|
|
7510
|
+
'~path': string;
|
|
7511
|
+
};
|
|
7512
|
+
}) & {
|
|
7513
|
+
get: ((options?: {
|
|
7514
|
+
fetch?: RequestInit | undefined;
|
|
7515
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7516
|
+
headers?: {} | undefined;
|
|
7517
|
+
query?: {
|
|
7518
|
+
page?: number | undefined;
|
|
7519
|
+
limit?: number | undefined;
|
|
7520
|
+
search?: string | undefined;
|
|
7521
|
+
category?: string | undefined;
|
|
7522
|
+
expenseType?: string | undefined;
|
|
7523
|
+
dateFrom?: string | undefined;
|
|
7524
|
+
dateTo?: string | undefined;
|
|
7525
|
+
} | undefined;
|
|
7526
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7527
|
+
200: {
|
|
7528
|
+
success: false;
|
|
7529
|
+
statusCode: number;
|
|
7530
|
+
data: null;
|
|
7531
|
+
message: string;
|
|
7532
|
+
error: TResponseError;
|
|
7533
|
+
meta: TResponseMeta;
|
|
7534
|
+
} | {
|
|
7535
|
+
success: true;
|
|
7536
|
+
statusCode: number;
|
|
7537
|
+
data: {
|
|
7538
|
+
data: {
|
|
7539
|
+
totalAmount: number;
|
|
7540
|
+
occurrenceCount: number;
|
|
7541
|
+
name: string;
|
|
7542
|
+
uuid: string;
|
|
7543
|
+
createdAt: Date;
|
|
7544
|
+
updatedAt: Date;
|
|
7545
|
+
description: string | null;
|
|
7546
|
+
startDate: Date;
|
|
7547
|
+
createdBy: string | null;
|
|
7548
|
+
updatedBy: string | null;
|
|
7549
|
+
category: string;
|
|
7550
|
+
expenseType: string;
|
|
7551
|
+
accrualMethod: string;
|
|
7552
|
+
amount: number;
|
|
7553
|
+
repeatCount: number;
|
|
7554
|
+
manMonths: number | null;
|
|
7555
|
+
periodMonths: number | null;
|
|
7556
|
+
remarks: string | null;
|
|
7557
|
+
}[];
|
|
7558
|
+
pagination: {
|
|
7559
|
+
page: number;
|
|
7560
|
+
limit: number;
|
|
7561
|
+
total: number;
|
|
7562
|
+
totalPages: number;
|
|
7563
|
+
hasNextPage: boolean;
|
|
7564
|
+
hasPreviousPage: boolean;
|
|
7565
|
+
};
|
|
7566
|
+
};
|
|
7567
|
+
message: null;
|
|
7568
|
+
error: null;
|
|
7569
|
+
meta: TResponseMeta;
|
|
7570
|
+
};
|
|
7571
|
+
422: {
|
|
7572
|
+
type: "validation";
|
|
7573
|
+
on: string;
|
|
7574
|
+
summary?: string;
|
|
7575
|
+
message?: string;
|
|
7576
|
+
found?: unknown;
|
|
7577
|
+
property?: string;
|
|
7578
|
+
expected?: string;
|
|
7579
|
+
};
|
|
7580
|
+
}>>) & {
|
|
7581
|
+
'~path': string;
|
|
7582
|
+
};
|
|
7583
|
+
post: ((body: {
|
|
7584
|
+
name: string;
|
|
7585
|
+
category: string;
|
|
7586
|
+
expenseType: string;
|
|
7587
|
+
accrualMethod: string;
|
|
7588
|
+
amount: number;
|
|
7589
|
+
repeatCount: number;
|
|
7590
|
+
startDate: string;
|
|
7591
|
+
description?: string | undefined;
|
|
7592
|
+
manMonths?: number | undefined;
|
|
7593
|
+
periodMonths?: number | undefined;
|
|
7594
|
+
remarks?: string | undefined;
|
|
7595
|
+
}, options?: {
|
|
7596
|
+
fetch?: RequestInit | undefined;
|
|
7597
|
+
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
7598
|
+
headers?: {} | undefined;
|
|
7599
|
+
query?: {} | undefined;
|
|
7600
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7601
|
+
200: {
|
|
7602
|
+
success: false;
|
|
7603
|
+
statusCode: number;
|
|
7604
|
+
data: null;
|
|
7605
|
+
message: string;
|
|
7606
|
+
error: TResponseError;
|
|
7607
|
+
meta: TResponseMeta;
|
|
7608
|
+
} | {
|
|
7609
|
+
success: true;
|
|
7610
|
+
statusCode: number;
|
|
7611
|
+
data: {
|
|
7612
|
+
occurrences: {
|
|
7613
|
+
uuid: string;
|
|
7614
|
+
createdAt: Date;
|
|
7615
|
+
updatedAt: Date;
|
|
7616
|
+
amount: number;
|
|
7617
|
+
expenseUuid: string;
|
|
7618
|
+
sequenceNo: number;
|
|
7619
|
+
bookingDate: Date;
|
|
7620
|
+
}[];
|
|
7621
|
+
name: string;
|
|
7622
|
+
uuid: string;
|
|
7623
|
+
createdAt: Date;
|
|
7624
|
+
updatedAt: Date;
|
|
7625
|
+
description: string | null;
|
|
7626
|
+
startDate: Date;
|
|
7627
|
+
createdBy: string | null;
|
|
7628
|
+
updatedBy: string | null;
|
|
7629
|
+
category: string;
|
|
7630
|
+
expenseType: string;
|
|
7631
|
+
accrualMethod: string;
|
|
7632
|
+
amount: number;
|
|
7633
|
+
repeatCount: number;
|
|
7634
|
+
manMonths: number | null;
|
|
7635
|
+
periodMonths: number | null;
|
|
7636
|
+
remarks: string | null;
|
|
7637
|
+
};
|
|
7638
|
+
message: null;
|
|
7639
|
+
error: null;
|
|
7640
|
+
meta: TResponseMeta;
|
|
7641
|
+
};
|
|
7642
|
+
422: {
|
|
7643
|
+
type: "validation";
|
|
7644
|
+
on: string;
|
|
7645
|
+
summary?: string;
|
|
7646
|
+
message?: string;
|
|
7647
|
+
found?: unknown;
|
|
7648
|
+
property?: string;
|
|
7649
|
+
expected?: string;
|
|
6485
7650
|
};
|
|
7651
|
+
}>>) & {
|
|
6486
7652
|
'~path': string;
|
|
6487
|
-
}
|
|
6488
|
-
|
|
7653
|
+
};
|
|
7654
|
+
bulk: {
|
|
7655
|
+
post: ((body: {
|
|
7656
|
+
expenses: {
|
|
7657
|
+
name: string;
|
|
7658
|
+
category: string;
|
|
7659
|
+
expenseType: string;
|
|
7660
|
+
accrualMethod: string;
|
|
7661
|
+
amount: number;
|
|
7662
|
+
repeatCount: number;
|
|
7663
|
+
startDate: string;
|
|
7664
|
+
description?: string | undefined;
|
|
7665
|
+
manMonths?: number | undefined;
|
|
7666
|
+
periodMonths?: number | undefined;
|
|
7667
|
+
remarks?: string | undefined;
|
|
7668
|
+
}[];
|
|
7669
|
+
}, options?: {
|
|
6489
7670
|
fetch?: RequestInit | undefined;
|
|
6490
7671
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6491
7672
|
headers?: {} | undefined;
|
|
@@ -6501,7 +7682,35 @@ declare const _createClient: () => {
|
|
|
6501
7682
|
} | {
|
|
6502
7683
|
success: true;
|
|
6503
7684
|
statusCode: number;
|
|
6504
|
-
data:
|
|
7685
|
+
data: {
|
|
7686
|
+
expenses: {
|
|
7687
|
+
occurrences: {
|
|
7688
|
+
uuid: string;
|
|
7689
|
+
createdAt: Date;
|
|
7690
|
+
updatedAt: Date;
|
|
7691
|
+
amount: number;
|
|
7692
|
+
expenseUuid: string;
|
|
7693
|
+
sequenceNo: number;
|
|
7694
|
+
bookingDate: Date;
|
|
7695
|
+
}[];
|
|
7696
|
+
name: string;
|
|
7697
|
+
uuid: string;
|
|
7698
|
+
createdAt: Date;
|
|
7699
|
+
updatedAt: Date;
|
|
7700
|
+
description: string | null;
|
|
7701
|
+
startDate: Date;
|
|
7702
|
+
createdBy: string | null;
|
|
7703
|
+
updatedBy: string | null;
|
|
7704
|
+
category: string;
|
|
7705
|
+
expenseType: string;
|
|
7706
|
+
accrualMethod: string;
|
|
7707
|
+
amount: number;
|
|
7708
|
+
repeatCount: number;
|
|
7709
|
+
manMonths: number | null;
|
|
7710
|
+
periodMonths: number | null;
|
|
7711
|
+
remarks: string | null;
|
|
7712
|
+
}[];
|
|
7713
|
+
};
|
|
6505
7714
|
message: null;
|
|
6506
7715
|
error: null;
|
|
6507
7716
|
meta: TResponseMeta;
|
|
@@ -6518,142 +7727,27 @@ declare const _createClient: () => {
|
|
|
6518
7727
|
}>>) & {
|
|
6519
7728
|
'~path': string;
|
|
6520
7729
|
};
|
|
6521
|
-
|
|
6522
|
-
attachmentId: string | number;
|
|
6523
|
-
}) => {
|
|
6524
|
-
get: ((options?: {
|
|
6525
|
-
fetch?: RequestInit | undefined;
|
|
6526
|
-
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6527
|
-
headers?: {} | undefined;
|
|
6528
|
-
query?: {} | undefined;
|
|
6529
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6530
|
-
200: {
|
|
6531
|
-
success: false;
|
|
6532
|
-
statusCode: number;
|
|
6533
|
-
data: null;
|
|
6534
|
-
message: string;
|
|
6535
|
-
error: TResponseError;
|
|
6536
|
-
meta: TResponseMeta;
|
|
6537
|
-
} | {
|
|
6538
|
-
success: true;
|
|
6539
|
-
statusCode: number;
|
|
6540
|
-
data: TAttachmentObject;
|
|
6541
|
-
message: null;
|
|
6542
|
-
error: null;
|
|
6543
|
-
meta: TResponseMeta;
|
|
6544
|
-
};
|
|
6545
|
-
422: {
|
|
6546
|
-
type: "validation";
|
|
6547
|
-
on: string;
|
|
6548
|
-
summary?: string;
|
|
6549
|
-
message?: string;
|
|
6550
|
-
found?: unknown;
|
|
6551
|
-
property?: string;
|
|
6552
|
-
expected?: string;
|
|
6553
|
-
};
|
|
6554
|
-
}>>) & {
|
|
6555
|
-
'~path': string;
|
|
6556
|
-
};
|
|
6557
|
-
'~path': string;
|
|
6558
|
-
} & {
|
|
6559
|
-
get: ((options?: {
|
|
6560
|
-
fetch?: RequestInit | undefined;
|
|
6561
|
-
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6562
|
-
headers?: {} | undefined;
|
|
6563
|
-
query?: {} | undefined;
|
|
6564
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6565
|
-
200: {
|
|
6566
|
-
success: false;
|
|
6567
|
-
statusCode: number;
|
|
6568
|
-
data: null;
|
|
6569
|
-
message: string;
|
|
6570
|
-
error: TResponseError;
|
|
6571
|
-
meta: TResponseMeta;
|
|
6572
|
-
} | {
|
|
6573
|
-
success: true;
|
|
6574
|
-
statusCode: number;
|
|
6575
|
-
data: TAttachmentObject;
|
|
6576
|
-
message: null;
|
|
6577
|
-
error: null;
|
|
6578
|
-
meta: TResponseMeta;
|
|
6579
|
-
};
|
|
6580
|
-
422: {
|
|
6581
|
-
type: "validation";
|
|
6582
|
-
on: string;
|
|
6583
|
-
summary?: string;
|
|
6584
|
-
message?: string;
|
|
6585
|
-
found?: unknown;
|
|
6586
|
-
property?: string;
|
|
6587
|
-
expected?: string;
|
|
6588
|
-
};
|
|
6589
|
-
}>>) & {
|
|
6590
|
-
'~path': string;
|
|
6591
|
-
};
|
|
6592
|
-
}) & {
|
|
6593
|
-
get: ((options?: {
|
|
6594
|
-
fetch?: RequestInit | undefined;
|
|
6595
|
-
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6596
|
-
headers?: {} | undefined;
|
|
6597
|
-
query?: {
|
|
6598
|
-
limit?: number | undefined;
|
|
6599
|
-
after?: string | undefined;
|
|
6600
|
-
before?: string | undefined;
|
|
6601
|
-
} | undefined;
|
|
6602
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
6603
|
-
200: {
|
|
6604
|
-
success: false;
|
|
6605
|
-
statusCode: number;
|
|
6606
|
-
data: null;
|
|
6607
|
-
message: string;
|
|
6608
|
-
error: TResponseError;
|
|
6609
|
-
meta: TResponseMeta;
|
|
6610
|
-
} | {
|
|
6611
|
-
success: true;
|
|
6612
|
-
statusCode: number;
|
|
6613
|
-
data: TAttachmentListResult;
|
|
6614
|
-
message: null;
|
|
6615
|
-
error: null;
|
|
6616
|
-
meta: TResponseMeta;
|
|
6617
|
-
};
|
|
6618
|
-
422: {
|
|
6619
|
-
type: "validation";
|
|
6620
|
-
on: string;
|
|
6621
|
-
summary?: string;
|
|
6622
|
-
message?: string;
|
|
6623
|
-
found?: unknown;
|
|
6624
|
-
property?: string;
|
|
6625
|
-
expected?: string;
|
|
6626
|
-
};
|
|
6627
|
-
}>>) & {
|
|
6628
|
-
'~path': string;
|
|
6629
|
-
};
|
|
6630
|
-
} & {
|
|
6631
|
-
'~path': string;
|
|
6632
|
-
};
|
|
6633
|
-
}) & {
|
|
6634
|
-
get: ((options?: {
|
|
7730
|
+
delete: ((body: {}, options: {
|
|
6635
7731
|
fetch?: RequestInit | undefined;
|
|
6636
7732
|
throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
|
|
6637
7733
|
headers?: {} | undefined;
|
|
6638
|
-
query
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
} | undefined;
|
|
6643
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
7734
|
+
query: {
|
|
7735
|
+
expenseUuids: string[];
|
|
7736
|
+
};
|
|
7737
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
6644
7738
|
200: {
|
|
6645
|
-
success:
|
|
7739
|
+
success: true;
|
|
6646
7740
|
statusCode: number;
|
|
6647
7741
|
data: null;
|
|
6648
7742
|
message: string;
|
|
6649
|
-
error:
|
|
7743
|
+
error: null;
|
|
6650
7744
|
meta: TResponseMeta;
|
|
6651
7745
|
} | {
|
|
6652
|
-
success:
|
|
7746
|
+
success: false;
|
|
6653
7747
|
statusCode: number;
|
|
6654
|
-
data:
|
|
6655
|
-
message:
|
|
6656
|
-
error:
|
|
7748
|
+
data: null;
|
|
7749
|
+
message: string;
|
|
7750
|
+
error: TResponseError;
|
|
6657
7751
|
meta: TResponseMeta;
|
|
6658
7752
|
};
|
|
6659
7753
|
422: {
|
|
@@ -8791,10 +9885,10 @@ declare const _createClient: () => {
|
|
|
8791
9885
|
actorUuid: string | null;
|
|
8792
9886
|
title: string;
|
|
8793
9887
|
content: string | null;
|
|
9888
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
8794
9889
|
manifestUuid: string | null;
|
|
8795
9890
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
8796
9891
|
startedAt: Date;
|
|
8797
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
8798
9892
|
isPublic: boolean;
|
|
8799
9893
|
metadata: unknown;
|
|
8800
9894
|
}[];
|
|
@@ -8805,8 +9899,8 @@ declare const _createClient: () => {
|
|
|
8805
9899
|
createdAt: Date;
|
|
8806
9900
|
updatedAt: Date;
|
|
8807
9901
|
description: string | null;
|
|
8808
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
8809
9902
|
amount: number;
|
|
9903
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
8810
9904
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
8811
9905
|
paymentUuid: string | null;
|
|
8812
9906
|
}[];
|
|
@@ -9373,8 +10467,8 @@ declare const _createClient: () => {
|
|
|
9373
10467
|
post: ((body: {
|
|
9374
10468
|
description?: string | undefined;
|
|
9375
10469
|
name: string;
|
|
9376
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9377
10470
|
amount: number;
|
|
10471
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9378
10472
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
9379
10473
|
}, options?: {
|
|
9380
10474
|
fetch?: RequestInit | undefined;
|
|
@@ -9415,8 +10509,8 @@ declare const _createClient: () => {
|
|
|
9415
10509
|
post: ((body: {
|
|
9416
10510
|
description?: string | undefined;
|
|
9417
10511
|
name: string;
|
|
9418
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9419
10512
|
amount: number;
|
|
10513
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9420
10514
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
9421
10515
|
}[], options?: {
|
|
9422
10516
|
fetch?: RequestInit | undefined;
|
|
@@ -9479,8 +10573,8 @@ declare const _createClient: () => {
|
|
|
9479
10573
|
createdAt: Date;
|
|
9480
10574
|
updatedAt: Date;
|
|
9481
10575
|
description: string | null;
|
|
9482
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9483
10576
|
amount: number;
|
|
10577
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9484
10578
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
9485
10579
|
paymentUuid: string | null;
|
|
9486
10580
|
}[];
|
|
@@ -9603,10 +10697,10 @@ declare const _createClient: () => {
|
|
|
9603
10697
|
actorUuid: string | null;
|
|
9604
10698
|
title: string;
|
|
9605
10699
|
content: string | null;
|
|
10700
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
9606
10701
|
manifestUuid: string | null;
|
|
9607
10702
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
9608
10703
|
startedAt: Date;
|
|
9609
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
9610
10704
|
isPublic: boolean;
|
|
9611
10705
|
}[];
|
|
9612
10706
|
message: null;
|
|
@@ -9931,10 +11025,10 @@ declare const _createClient: () => {
|
|
|
9931
11025
|
actorUuid: string | null;
|
|
9932
11026
|
title: string;
|
|
9933
11027
|
content: string | null;
|
|
11028
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
9934
11029
|
manifestUuid: string | null;
|
|
9935
11030
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
9936
11031
|
startedAt: Date;
|
|
9937
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
9938
11032
|
isPublic: boolean;
|
|
9939
11033
|
metadata: unknown;
|
|
9940
11034
|
}[];
|
|
@@ -9945,8 +11039,8 @@ declare const _createClient: () => {
|
|
|
9945
11039
|
createdAt: Date;
|
|
9946
11040
|
updatedAt: Date;
|
|
9947
11041
|
description: string | null;
|
|
9948
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9949
11042
|
amount: number;
|
|
11043
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
9950
11044
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
9951
11045
|
paymentUuid: string | null;
|
|
9952
11046
|
}[];
|
|
@@ -10513,8 +11607,8 @@ declare const _createClient: () => {
|
|
|
10513
11607
|
post: ((body: {
|
|
10514
11608
|
description?: string | undefined;
|
|
10515
11609
|
name: string;
|
|
10516
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
10517
11610
|
amount: number;
|
|
11611
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
10518
11612
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
10519
11613
|
}, options?: {
|
|
10520
11614
|
fetch?: RequestInit | undefined;
|
|
@@ -10555,8 +11649,8 @@ declare const _createClient: () => {
|
|
|
10555
11649
|
post: ((body: {
|
|
10556
11650
|
description?: string | undefined;
|
|
10557
11651
|
name: string;
|
|
10558
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
10559
11652
|
amount: number;
|
|
11653
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
10560
11654
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
10561
11655
|
}[], options?: {
|
|
10562
11656
|
fetch?: RequestInit | undefined;
|
|
@@ -10619,8 +11713,8 @@ declare const _createClient: () => {
|
|
|
10619
11713
|
createdAt: Date;
|
|
10620
11714
|
updatedAt: Date;
|
|
10621
11715
|
description: string | null;
|
|
10622
|
-
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
10623
11716
|
amount: number;
|
|
11717
|
+
surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
|
|
10624
11718
|
applyTo: "BEFORE_TAX" | "AFTER_TAX";
|
|
10625
11719
|
paymentUuid: string | null;
|
|
10626
11720
|
}[];
|
|
@@ -10743,10 +11837,10 @@ declare const _createClient: () => {
|
|
|
10743
11837
|
actorUuid: string | null;
|
|
10744
11838
|
title: string;
|
|
10745
11839
|
content: string | null;
|
|
11840
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
10746
11841
|
manifestUuid: string | null;
|
|
10747
11842
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
10748
11843
|
startedAt: Date;
|
|
10749
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
10750
11844
|
isPublic: boolean;
|
|
10751
11845
|
}[];
|
|
10752
11846
|
message: null;
|
|
@@ -11876,8 +12970,8 @@ declare const _createClient: () => {
|
|
|
11876
12970
|
} | null;
|
|
11877
12971
|
currency: {
|
|
11878
12972
|
name: string;
|
|
11879
|
-
id: number;
|
|
11880
12973
|
code: string;
|
|
12974
|
+
id: number;
|
|
11881
12975
|
exchangeRate: number;
|
|
11882
12976
|
} | null;
|
|
11883
12977
|
supplier: {
|
|
@@ -12080,8 +13174,8 @@ declare const _createClient: () => {
|
|
|
12080
13174
|
name: string;
|
|
12081
13175
|
createdAt: Date | null;
|
|
12082
13176
|
updatedAt: Date | null;
|
|
12083
|
-
id: number;
|
|
12084
13177
|
code: string;
|
|
13178
|
+
id: number;
|
|
12085
13179
|
exchangeRate: number;
|
|
12086
13180
|
} | null;
|
|
12087
13181
|
};
|
|
@@ -12597,8 +13691,8 @@ declare const _createClient: () => {
|
|
|
12597
13691
|
} | null;
|
|
12598
13692
|
currency: {
|
|
12599
13693
|
name: string;
|
|
12600
|
-
id: number;
|
|
12601
13694
|
code: string;
|
|
13695
|
+
id: number;
|
|
12602
13696
|
exchangeRate: number;
|
|
12603
13697
|
} | null;
|
|
12604
13698
|
supplier: {
|
|
@@ -12801,8 +13895,8 @@ declare const _createClient: () => {
|
|
|
12801
13895
|
name: string;
|
|
12802
13896
|
createdAt: Date | null;
|
|
12803
13897
|
updatedAt: Date | null;
|
|
12804
|
-
id: number;
|
|
12805
13898
|
code: string;
|
|
13899
|
+
id: number;
|
|
12806
13900
|
exchangeRate: number;
|
|
12807
13901
|
} | null;
|
|
12808
13902
|
};
|
|
@@ -13260,8 +14354,8 @@ declare const _createClient: () => {
|
|
|
13260
14354
|
} | null;
|
|
13261
14355
|
currency: {
|
|
13262
14356
|
name: string;
|
|
13263
|
-
id: number;
|
|
13264
14357
|
code: string;
|
|
14358
|
+
id: number;
|
|
13265
14359
|
exchangeRate: number;
|
|
13266
14360
|
} | null;
|
|
13267
14361
|
supplier: {
|
|
@@ -15635,8 +16729,8 @@ declare const _createClient: () => {
|
|
|
15635
16729
|
createdAt: Date | null;
|
|
15636
16730
|
updatedAt: Date | null;
|
|
15637
16731
|
userAgent: string;
|
|
15638
|
-
id: number;
|
|
15639
16732
|
expiresAt: Date;
|
|
16733
|
+
id: number;
|
|
15640
16734
|
ipAddress: string;
|
|
15641
16735
|
user: {
|
|
15642
16736
|
uuid: string;
|
|
@@ -17482,10 +18576,10 @@ declare const _createClient: () => {
|
|
|
17482
18576
|
completedAt: Date | null;
|
|
17483
18577
|
title: string;
|
|
17484
18578
|
content: string | null;
|
|
18579
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
17485
18580
|
manifestUuid: string | null;
|
|
17486
18581
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
17487
18582
|
startedAt: Date;
|
|
17488
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
17489
18583
|
metadata: unknown;
|
|
17490
18584
|
}[];
|
|
17491
18585
|
orderCoupons: {
|
|
@@ -17778,10 +18872,10 @@ declare const _createClient: () => {
|
|
|
17778
18872
|
completedAt: Date | null;
|
|
17779
18873
|
title: string;
|
|
17780
18874
|
content: string | null;
|
|
18875
|
+
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
17781
18876
|
manifestUuid: string | null;
|
|
17782
18877
|
milestoneCode: "PURCHASED" | "ARRIVED_VN" | "DELIVERED" | "ORDER_CREATED" | "QUOTATION_SENT" | "DEPOSIT_PAID" | "ORDER_CONFIRMED" | "PAYMENT_COMPLETED" | "PAYMENT_RECEIVED" | "PAYMENT_VOIDED" | "ORDER_CANCELLED" | "PURCHASING" | "IN_WAREHOUSE_ABROAD" | "INTERNATIONAL_SHIPPING" | "ITEM_CANCELLED" | "PACKED" | "HANDED_OVER" | "DELIVERING";
|
|
17783
18878
|
startedAt: Date;
|
|
17784
|
-
category: "ORDER" | "PAYMENT" | "LOGISTICS";
|
|
17785
18879
|
metadata: unknown;
|
|
17786
18880
|
}[];
|
|
17787
18881
|
orderCoupons: {
|
|
@@ -18072,8 +19166,6 @@ declare const _createClient: () => {
|
|
|
18072
19166
|
order_invoice_number: string;
|
|
18073
19167
|
custom_data: any[];
|
|
18074
19168
|
};
|
|
18075
|
-
timestamp: number;
|
|
18076
|
-
notification_type: "ORDER_PAID" | "TRANSACTION_VOID";
|
|
18077
19169
|
transaction: {
|
|
18078
19170
|
id: string;
|
|
18079
19171
|
payment_method: string;
|
|
@@ -18084,6 +19176,8 @@ declare const _createClient: () => {
|
|
|
18084
19176
|
transaction_amount: string;
|
|
18085
19177
|
transaction_currency: string;
|
|
18086
19178
|
};
|
|
19179
|
+
timestamp: number;
|
|
19180
|
+
notification_type: "ORDER_PAID" | "TRANSACTION_VOID";
|
|
18087
19181
|
agreement: any;
|
|
18088
19182
|
customer: {
|
|
18089
19183
|
id: string;
|