@customafk/lunas-api-sdk 0.0.84 → 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.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
- "payment-methods": {
5221
+ "customer-repeat-rate": {
5197
5222
  get: ((options?: {
5198
5223
  fetch?: RequestInit | undefined;
5199
5224
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -5214,9 +5239,61 @@ declare const _createClient: () => {
5214
5239
  success: true;
5215
5240
  statusCode: number;
5216
5241
  data: {
5217
- paymentMethod: string;
5218
- transactionCount: number;
5219
- totalAmount: number;
5242
+ period: {
5243
+ startDate: string;
5244
+ endDate: string;
5245
+ };
5246
+ totalCustomers: number;
5247
+ newCustomers: number;
5248
+ repeatCustomers: number;
5249
+ repeatPurchaseRate: number;
5250
+ };
5251
+ message: null;
5252
+ error: null;
5253
+ meta: TResponseMeta;
5254
+ };
5255
+ 422: {
5256
+ type: "validation";
5257
+ on: string;
5258
+ summary?: string;
5259
+ message?: string;
5260
+ found?: unknown;
5261
+ property?: string;
5262
+ expected?: string;
5263
+ };
5264
+ }>>) & {
5265
+ '~path': string;
5266
+ };
5267
+ } & {
5268
+ '~path': string;
5269
+ };
5270
+ "product-margin-ranking": {
5271
+ get: ((options: {
5272
+ fetch?: RequestInit | undefined;
5273
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5274
+ headers?: {} | undefined;
5275
+ query: {
5276
+ limit: number;
5277
+ startDate?: string | undefined;
5278
+ endDate?: string | undefined;
5279
+ };
5280
+ }) => Promise<Treaty.TreatyResponse<{
5281
+ 200: {
5282
+ success: false;
5283
+ statusCode: number;
5284
+ data: null;
5285
+ message: string;
5286
+ error: TResponseError;
5287
+ meta: TResponseMeta;
5288
+ } | {
5289
+ success: true;
5290
+ statusCode: number;
5291
+ data: {
5292
+ productUuid: string | null;
5293
+ productName: string;
5294
+ unitsSold: number;
5295
+ revenue: number;
5296
+ estimatedMargin: number;
5220
5297
  }[];
5221
5298
  message: null;
5222
5299
  error: null;
@@ -5237,7 +5314,54 @@ declare const _createClient: () => {
5237
5314
  } & {
5238
5315
  '~path': string;
5239
5316
  };
5240
- "revenue-by-payment-type": {
5317
+ "expense-trend": {
5318
+ get: ((options: {
5319
+ fetch?: RequestInit | undefined;
5320
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5321
+ headers?: {} | undefined;
5322
+ query: {
5323
+ interval: "day" | "week" | "month";
5324
+ startDate?: string | undefined;
5325
+ endDate?: string | undefined;
5326
+ };
5327
+ }) => Promise<Treaty.TreatyResponse<{
5328
+ 200: {
5329
+ success: false;
5330
+ statusCode: number;
5331
+ data: null;
5332
+ message: string;
5333
+ error: TResponseError;
5334
+ meta: TResponseMeta;
5335
+ } | {
5336
+ success: true;
5337
+ statusCode: number;
5338
+ data: {
5339
+ interval: "day" | "week" | "month";
5340
+ series: {
5341
+ bucket: string;
5342
+ expenses: number;
5343
+ }[];
5344
+ };
5345
+ message: null;
5346
+ error: null;
5347
+ meta: TResponseMeta;
5348
+ };
5349
+ 422: {
5350
+ type: "validation";
5351
+ on: string;
5352
+ summary?: string;
5353
+ message?: string;
5354
+ found?: unknown;
5355
+ property?: string;
5356
+ expected?: string;
5357
+ };
5358
+ }>>) & {
5359
+ '~path': string;
5360
+ };
5361
+ } & {
5362
+ '~path': string;
5363
+ };
5364
+ "expense-breakdown": {
5241
5365
  get: ((options?: {
5242
5366
  fetch?: RequestInit | undefined;
5243
5367
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -5259,10 +5383,10 @@ declare const _createClient: () => {
5259
5383
  statusCode: number;
5260
5384
  data: {
5261
5385
  total: number;
5262
- byPaymentType: {
5263
- paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
5264
- transactionCount: number;
5265
- totalAmount: number;
5386
+ byCategory: {
5387
+ category: EExpenseCategory;
5388
+ count: number;
5389
+ amount: number;
5266
5390
  }[];
5267
5391
  };
5268
5392
  message: null;
@@ -5284,97 +5408,838 @@ declare const _createClient: () => {
5284
5408
  } & {
5285
5409
  '~path': string;
5286
5410
  };
5287
- } & {
5288
- '~path': string;
5289
- };
5290
- deposits: ((params: {
5291
- depositId: string | number;
5292
- }) => {
5293
- patch: ((body?: {
5294
- name?: string | undefined;
5295
- description?: string | undefined;
5296
- valueType?: "PERCENTAGE" | "FIXED" | undefined;
5297
- depositValue?: number | undefined;
5298
- surchargeValue?: number | undefined;
5299
- } | undefined, options?: {
5300
- fetch?: RequestInit | undefined;
5301
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5302
- headers?: {} | undefined;
5303
- query?: {} | undefined;
5304
- } | undefined) => Promise<Treaty.TreatyResponse<{
5305
- 200: {
5306
- success: false;
5307
- statusCode: number;
5308
- data: null;
5309
- message: string;
5310
- error: TResponseError;
5311
- meta: TResponseMeta;
5312
- } | {
5313
- success: true;
5314
- statusCode: number;
5315
- data: {
5316
- uuid: string;
5411
+ "profit-trend": {
5412
+ get: ((options: {
5413
+ fetch?: RequestInit | undefined;
5414
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5415
+ headers?: {} | undefined;
5416
+ query: {
5417
+ interval: "day" | "week" | "month";
5418
+ startDate?: string | undefined;
5419
+ endDate?: string | undefined;
5317
5420
  };
5318
- message: null;
5319
- error: null;
5320
- meta: TResponseMeta;
5321
- };
5322
- 422: {
5323
- type: "validation";
5324
- on: string;
5325
- summary?: string;
5326
- message?: string;
5327
- found?: unknown;
5328
- property?: string;
5329
- expected?: string;
5421
+ }) => Promise<Treaty.TreatyResponse<{
5422
+ 200: {
5423
+ success: false;
5424
+ statusCode: number;
5425
+ data: null;
5426
+ message: string;
5427
+ error: TResponseError;
5428
+ meta: TResponseMeta;
5429
+ } | {
5430
+ success: true;
5431
+ statusCode: number;
5432
+ data: {
5433
+ interval: "day" | "week" | "month";
5434
+ series: {
5435
+ bucket: string;
5436
+ revenue: number;
5437
+ expenses: number;
5438
+ profit: number;
5439
+ }[];
5440
+ };
5441
+ message: null;
5442
+ error: null;
5443
+ meta: TResponseMeta;
5444
+ };
5445
+ 422: {
5446
+ type: "validation";
5447
+ on: string;
5448
+ summary?: string;
5449
+ message?: string;
5450
+ found?: unknown;
5451
+ property?: string;
5452
+ expected?: string;
5453
+ };
5454
+ }>>) & {
5455
+ '~path': string;
5330
5456
  };
5331
- }>>) & {
5457
+ } & {
5332
5458
  '~path': string;
5333
5459
  };
5334
- delete: ((body?: {} | undefined, options?: {
5335
- fetch?: RequestInit | undefined;
5336
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5337
- headers?: {} | undefined;
5338
- query?: {} | undefined;
5339
- } | undefined) => Promise<Treaty.TreatyResponse<{
5340
- 200: {
5341
- success: false;
5342
- statusCode: number;
5343
- data: null;
5344
- message: string;
5345
- error: TResponseError;
5346
- meta: TResponseMeta;
5347
- } | {
5348
- success: true;
5349
- statusCode: number;
5350
- data: {
5351
- uuid: string;
5352
- };
5353
- message: null;
5354
- error: null;
5355
- meta: TResponseMeta;
5356
- };
5357
- 422: {
5358
- type: "validation";
5359
- on: string;
5460
+ "payment-methods": {
5461
+ get: ((options?: {
5462
+ fetch?: RequestInit | undefined;
5463
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5464
+ headers?: {} | undefined;
5465
+ query?: {
5466
+ startDate?: string | undefined;
5467
+ endDate?: string | undefined;
5468
+ } | undefined;
5469
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5470
+ 200: {
5471
+ success: false;
5472
+ statusCode: number;
5473
+ data: null;
5474
+ message: string;
5475
+ error: TResponseError;
5476
+ meta: TResponseMeta;
5477
+ } | {
5478
+ success: true;
5479
+ statusCode: number;
5480
+ data: {
5481
+ paymentMethod: string;
5482
+ transactionCount: number;
5483
+ totalAmount: number;
5484
+ }[];
5485
+ message: null;
5486
+ error: null;
5487
+ meta: TResponseMeta;
5488
+ };
5489
+ 422: {
5490
+ type: "validation";
5491
+ on: string;
5492
+ summary?: string;
5493
+ message?: string;
5494
+ found?: unknown;
5495
+ property?: string;
5496
+ expected?: string;
5497
+ };
5498
+ }>>) & {
5499
+ '~path': string;
5500
+ };
5501
+ } & {
5502
+ '~path': string;
5503
+ };
5504
+ "revenue-by-payment-type": {
5505
+ get: ((options?: {
5506
+ fetch?: RequestInit | undefined;
5507
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5508
+ headers?: {} | undefined;
5509
+ query?: {
5510
+ startDate?: string | undefined;
5511
+ endDate?: string | undefined;
5512
+ } | undefined;
5513
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5514
+ 200: {
5515
+ success: false;
5516
+ statusCode: number;
5517
+ data: null;
5518
+ message: string;
5519
+ error: TResponseError;
5520
+ meta: TResponseMeta;
5521
+ } | {
5522
+ success: true;
5523
+ statusCode: number;
5524
+ data: {
5525
+ total: number;
5526
+ byPaymentType: {
5527
+ paymentType: "OTHER" | "DEPOSIT" | "FULL_PAYMENT" | "PARTIAL_PAYMENT" | "FEE" | "ADJUSTMENT";
5528
+ transactionCount: number;
5529
+ totalAmount: number;
5530
+ }[];
5531
+ };
5532
+ message: null;
5533
+ error: null;
5534
+ meta: TResponseMeta;
5535
+ };
5536
+ 422: {
5537
+ type: "validation";
5538
+ on: string;
5539
+ summary?: string;
5540
+ message?: string;
5541
+ found?: unknown;
5542
+ property?: string;
5543
+ expected?: string;
5544
+ };
5545
+ }>>) & {
5546
+ '~path': string;
5547
+ };
5548
+ } & {
5549
+ '~path': string;
5550
+ };
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;
5560
+ };
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;
5579
+ };
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;
5591
+ };
5592
+ } & {
5593
+ '~path': string;
5594
+ };
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;
5792
+ depositValue?: number | undefined;
5793
+ surchargeValue?: number | undefined;
5794
+ } | undefined, options?: {
5795
+ fetch?: RequestInit | undefined;
5796
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5797
+ headers?: {} | undefined;
5798
+ query?: {} | undefined;
5799
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5800
+ 200: {
5801
+ success: false;
5802
+ statusCode: number;
5803
+ data: null;
5804
+ message: string;
5805
+ error: TResponseError;
5806
+ meta: TResponseMeta;
5807
+ } | {
5808
+ success: true;
5809
+ statusCode: number;
5810
+ data: {
5811
+ uuid: string;
5812
+ };
5813
+ message: null;
5814
+ error: null;
5815
+ meta: TResponseMeta;
5816
+ };
5817
+ 422: {
5818
+ type: "validation";
5819
+ on: string;
5820
+ summary?: string;
5821
+ message?: string;
5822
+ found?: unknown;
5823
+ property?: string;
5824
+ expected?: string;
5825
+ };
5826
+ }>>) & {
5827
+ '~path': string;
5828
+ };
5829
+ delete: ((body?: {} | undefined, options?: {
5830
+ fetch?: RequestInit | undefined;
5831
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5832
+ headers?: {} | undefined;
5833
+ query?: {} | undefined;
5834
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5835
+ 200: {
5836
+ success: false;
5837
+ statusCode: number;
5838
+ data: null;
5839
+ message: string;
5840
+ error: TResponseError;
5841
+ meta: TResponseMeta;
5842
+ } | {
5843
+ success: true;
5844
+ statusCode: number;
5845
+ data: {
5846
+ uuid: string;
5847
+ };
5848
+ message: null;
5849
+ error: null;
5850
+ meta: TResponseMeta;
5851
+ };
5852
+ 422: {
5853
+ type: "validation";
5854
+ on: string;
5855
+ summary?: string;
5856
+ message?: string;
5857
+ found?: unknown;
5858
+ property?: string;
5859
+ expected?: string;
5860
+ };
5861
+ }>>) & {
5862
+ '~path': string;
5863
+ };
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?: {
5873
+ fetch?: RequestInit | undefined;
5874
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5875
+ headers?: {} | undefined;
5876
+ query?: {} | undefined;
5877
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5878
+ 200: {
5879
+ success: false;
5880
+ statusCode: number;
5881
+ data: null;
5882
+ message: string;
5883
+ error: TResponseError;
5884
+ meta: TResponseMeta;
5885
+ } | {
5886
+ success: true;
5887
+ statusCode: number;
5888
+ data: {
5889
+ uuid: string;
5890
+ };
5891
+ message: null;
5892
+ error: null;
5893
+ meta: TResponseMeta;
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
+ };
5904
+ }>>) & {
5905
+ '~path': string;
5906
+ };
5907
+ delete: ((body?: {} | undefined, options?: {
5908
+ fetch?: RequestInit | undefined;
5909
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5910
+ headers?: {} | undefined;
5911
+ query?: {} | undefined;
5912
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5913
+ 200: {
5914
+ success: false;
5915
+ statusCode: number;
5916
+ data: null;
5917
+ message: string;
5918
+ error: TResponseError;
5919
+ meta: TResponseMeta;
5920
+ } | {
5921
+ success: true;
5922
+ statusCode: number;
5923
+ data: {
5924
+ uuid: string;
5925
+ };
5926
+ message: null;
5927
+ error: null;
5928
+ meta: TResponseMeta;
5929
+ };
5930
+ 422: {
5931
+ type: "validation";
5932
+ on: string;
5933
+ summary?: string;
5934
+ message?: string;
5935
+ found?: unknown;
5936
+ property?: string;
5937
+ expected?: string;
5938
+ };
5939
+ }>>) & {
5940
+ '~path': string;
5941
+ };
5942
+ }) & {
5943
+ get: ((options?: {
5944
+ fetch?: RequestInit | undefined;
5945
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5946
+ headers?: {} | undefined;
5947
+ query?: {} | undefined;
5948
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5949
+ 200: {
5950
+ success: false;
5951
+ statusCode: number;
5952
+ data: null;
5953
+ message: string;
5954
+ error: TResponseError;
5955
+ meta: TResponseMeta;
5956
+ } | {
5957
+ success: true;
5958
+ statusCode: number;
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
+ }[];
5969
+ message: null;
5970
+ error: null;
5971
+ meta: TResponseMeta;
5972
+ };
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;
5360
6008
  summary?: string;
5361
6009
  message?: string;
5362
6010
  found?: unknown;
5363
6011
  property?: string;
5364
6012
  expected?: string;
5365
6013
  };
5366
- }>>) & {
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;
6048
+ message?: string;
6049
+ found?: unknown;
6050
+ property?: string;
6051
+ expected?: string;
6052
+ };
6053
+ }>>) & {
6054
+ '~path': string;
6055
+ };
6056
+ patch: ((body: {
6057
+ scheduledAt: string;
6058
+ }, options?: {
6059
+ fetch?: RequestInit | undefined;
6060
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6061
+ headers?: {} | undefined;
6062
+ query?: {} | undefined;
6063
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6064
+ 200: {
6065
+ success: false;
6066
+ statusCode: number;
6067
+ data: null;
6068
+ message: string;
6069
+ error: TResponseError;
6070
+ meta: TResponseMeta;
6071
+ } | {
6072
+ success: true;
6073
+ statusCode: number;
6074
+ data: TEmailMutationResult;
6075
+ message: null;
6076
+ error: null;
6077
+ meta: TResponseMeta;
6078
+ };
6079
+ 422: {
6080
+ type: "validation";
6081
+ on: string;
6082
+ summary?: string;
6083
+ message?: string;
6084
+ found?: unknown;
6085
+ property?: string;
6086
+ expected?: string;
6087
+ };
6088
+ }>>) & {
6089
+ '~path': string;
6090
+ };
6091
+ cancel: {
6092
+ post: ((body?: {} | undefined, options?: {
6093
+ fetch?: RequestInit | undefined;
6094
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6095
+ headers?: {} | undefined;
6096
+ query?: {} | undefined;
6097
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6098
+ 200: {
6099
+ success: false;
6100
+ statusCode: number;
6101
+ data: null;
6102
+ message: string;
6103
+ error: TResponseError;
6104
+ meta: TResponseMeta;
6105
+ } | {
6106
+ success: true;
6107
+ statusCode: number;
6108
+ data: TEmailMutationResult;
6109
+ message: null;
6110
+ error: null;
6111
+ meta: TResponseMeta;
6112
+ };
6113
+ 422: {
6114
+ type: "validation";
6115
+ on: string;
6116
+ summary?: string;
6117
+ message?: string;
6118
+ found?: unknown;
6119
+ property?: string;
6120
+ expected?: string;
6121
+ };
6122
+ }>>) & {
6123
+ '~path': string;
6124
+ };
6125
+ } & {
6126
+ '~path': string;
6127
+ };
6128
+ attachments: ((params: {
6129
+ attachmentId: string | number;
6130
+ }) => {
6131
+ get: ((options?: {
6132
+ fetch?: RequestInit | undefined;
6133
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6134
+ headers?: {} | undefined;
6135
+ query?: {} | undefined;
6136
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6137
+ 200: {
6138
+ success: false;
6139
+ statusCode: number;
6140
+ data: null;
6141
+ message: string;
6142
+ error: TResponseError;
6143
+ meta: TResponseMeta;
6144
+ } | {
6145
+ success: true;
6146
+ statusCode: number;
6147
+ data: TAttachmentObject;
6148
+ message: null;
6149
+ error: null;
6150
+ meta: TResponseMeta;
6151
+ };
6152
+ 422: {
6153
+ type: "validation";
6154
+ on: string;
6155
+ summary?: string;
6156
+ message?: string;
6157
+ found?: unknown;
6158
+ property?: string;
6159
+ expected?: string;
6160
+ };
6161
+ }>>) & {
6162
+ '~path': string;
6163
+ };
6164
+ '~path': string;
6165
+ } & {
6166
+ get: ((options?: {
6167
+ fetch?: RequestInit | undefined;
6168
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6169
+ headers?: {} | undefined;
6170
+ query?: {} | undefined;
6171
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6172
+ 200: {
6173
+ success: false;
6174
+ statusCode: number;
6175
+ data: null;
6176
+ message: string;
6177
+ error: TResponseError;
6178
+ meta: TResponseMeta;
6179
+ } | {
6180
+ success: true;
6181
+ statusCode: number;
6182
+ data: TAttachmentObject;
6183
+ message: null;
6184
+ error: null;
6185
+ meta: TResponseMeta;
6186
+ };
6187
+ 422: {
6188
+ type: "validation";
6189
+ on: string;
6190
+ summary?: string;
6191
+ message?: string;
6192
+ found?: unknown;
6193
+ property?: string;
6194
+ expected?: string;
6195
+ };
6196
+ }>>) & {
6197
+ '~path': string;
6198
+ };
6199
+ }) & {
6200
+ get: ((options?: {
6201
+ fetch?: RequestInit | undefined;
6202
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6203
+ headers?: {} | undefined;
6204
+ query?: {
6205
+ limit?: number | undefined;
6206
+ after?: string | undefined;
6207
+ before?: string | undefined;
6208
+ } | undefined;
6209
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6210
+ 200: {
6211
+ success: false;
6212
+ statusCode: number;
6213
+ data: null;
6214
+ message: string;
6215
+ error: TResponseError;
6216
+ meta: TResponseMeta;
6217
+ } | {
6218
+ success: true;
6219
+ statusCode: number;
6220
+ data: TAttachmentListResult;
6221
+ message: null;
6222
+ error: null;
6223
+ meta: TResponseMeta;
6224
+ };
6225
+ 422: {
6226
+ type: "validation";
6227
+ on: string;
6228
+ summary?: string;
6229
+ message?: string;
6230
+ found?: unknown;
6231
+ property?: string;
6232
+ expected?: string;
6233
+ };
6234
+ }>>) & {
6235
+ '~path': string;
6236
+ };
6237
+ } & {
5367
6238
  '~path': string;
5368
6239
  };
5369
6240
  '~path': string;
5370
6241
  } & {
5371
- patch: ((body?: {
5372
- name?: string | undefined;
5373
- description?: string | undefined;
5374
- valueType?: "PERCENTAGE" | "FIXED" | undefined;
5375
- depositValue?: number | undefined;
5376
- surchargeValue?: number | undefined;
5377
- } | undefined, options?: {
6242
+ get: ((options?: {
5378
6243
  fetch?: RequestInit | undefined;
5379
6244
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5380
6245
  headers?: {} | undefined;
@@ -5390,9 +6255,7 @@ declare const _createClient: () => {
5390
6255
  } | {
5391
6256
  success: true;
5392
6257
  statusCode: number;
5393
- data: {
5394
- uuid: string;
5395
- };
6258
+ data: TEmailObject;
5396
6259
  message: null;
5397
6260
  error: null;
5398
6261
  meta: TResponseMeta;
@@ -5409,7 +6272,9 @@ declare const _createClient: () => {
5409
6272
  }>>) & {
5410
6273
  '~path': string;
5411
6274
  };
5412
- delete: ((body?: {} | undefined, options?: {
6275
+ patch: ((body: {
6276
+ scheduledAt: string;
6277
+ }, options?: {
5413
6278
  fetch?: RequestInit | undefined;
5414
6279
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5415
6280
  headers?: {} | undefined;
@@ -5425,9 +6290,7 @@ declare const _createClient: () => {
5425
6290
  } | {
5426
6291
  success: true;
5427
6292
  statusCode: number;
5428
- data: {
5429
- uuid: string;
5430
- };
6293
+ data: TEmailMutationResult;
5431
6294
  message: null;
5432
6295
  error: null;
5433
6296
  meta: TResponseMeta;
@@ -5441,49 +6304,179 @@ declare const _createClient: () => {
5441
6304
  property?: string;
5442
6305
  expected?: string;
5443
6306
  };
5444
- }>>) & {
6307
+ }>>) & {
6308
+ '~path': string;
6309
+ };
6310
+ cancel: {
6311
+ post: ((body?: {} | undefined, options?: {
6312
+ fetch?: RequestInit | undefined;
6313
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6314
+ headers?: {} | undefined;
6315
+ query?: {} | undefined;
6316
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6317
+ 200: {
6318
+ success: false;
6319
+ statusCode: number;
6320
+ data: null;
6321
+ message: string;
6322
+ error: TResponseError;
6323
+ meta: TResponseMeta;
6324
+ } | {
6325
+ success: true;
6326
+ statusCode: number;
6327
+ data: TEmailMutationResult;
6328
+ message: null;
6329
+ error: null;
6330
+ meta: TResponseMeta;
6331
+ };
6332
+ 422: {
6333
+ type: "validation";
6334
+ on: string;
6335
+ summary?: string;
6336
+ message?: string;
6337
+ found?: unknown;
6338
+ property?: string;
6339
+ expected?: string;
6340
+ };
6341
+ }>>) & {
6342
+ '~path': string;
6343
+ };
6344
+ } & {
6345
+ '~path': string;
6346
+ };
6347
+ attachments: ((params: {
6348
+ attachmentId: string | number;
6349
+ }) => {
6350
+ get: ((options?: {
6351
+ fetch?: RequestInit | undefined;
6352
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6353
+ headers?: {} | undefined;
6354
+ query?: {} | undefined;
6355
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6356
+ 200: {
6357
+ success: false;
6358
+ statusCode: number;
6359
+ data: null;
6360
+ message: string;
6361
+ error: TResponseError;
6362
+ meta: TResponseMeta;
6363
+ } | {
6364
+ success: true;
6365
+ statusCode: number;
6366
+ data: TAttachmentObject;
6367
+ message: null;
6368
+ error: null;
6369
+ meta: TResponseMeta;
6370
+ };
6371
+ 422: {
6372
+ type: "validation";
6373
+ on: string;
6374
+ summary?: string;
6375
+ message?: string;
6376
+ found?: unknown;
6377
+ property?: string;
6378
+ expected?: string;
6379
+ };
6380
+ }>>) & {
6381
+ '~path': string;
6382
+ };
6383
+ '~path': string;
6384
+ } & {
6385
+ get: ((options?: {
6386
+ fetch?: RequestInit | undefined;
6387
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6388
+ headers?: {} | undefined;
6389
+ query?: {} | undefined;
6390
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6391
+ 200: {
6392
+ success: false;
6393
+ statusCode: number;
6394
+ data: null;
6395
+ message: string;
6396
+ error: TResponseError;
6397
+ meta: TResponseMeta;
6398
+ } | {
6399
+ success: true;
6400
+ statusCode: number;
6401
+ data: TAttachmentObject;
6402
+ message: null;
6403
+ error: null;
6404
+ meta: TResponseMeta;
6405
+ };
6406
+ 422: {
6407
+ type: "validation";
6408
+ on: string;
6409
+ summary?: string;
6410
+ message?: string;
6411
+ found?: unknown;
6412
+ property?: string;
6413
+ expected?: string;
6414
+ };
6415
+ }>>) & {
6416
+ '~path': string;
6417
+ };
6418
+ }) & {
6419
+ get: ((options?: {
6420
+ fetch?: RequestInit | undefined;
6421
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6422
+ headers?: {} | undefined;
6423
+ query?: {
6424
+ limit?: number | undefined;
6425
+ after?: string | undefined;
6426
+ before?: string | undefined;
6427
+ } | undefined;
6428
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6429
+ 200: {
6430
+ success: false;
6431
+ statusCode: number;
6432
+ data: null;
6433
+ message: string;
6434
+ error: TResponseError;
6435
+ meta: TResponseMeta;
6436
+ } | {
6437
+ success: true;
6438
+ statusCode: number;
6439
+ data: TAttachmentListResult;
6440
+ message: null;
6441
+ error: null;
6442
+ meta: TResponseMeta;
6443
+ };
6444
+ 422: {
6445
+ type: "validation";
6446
+ on: string;
6447
+ summary?: string;
6448
+ message?: string;
6449
+ found?: unknown;
6450
+ property?: string;
6451
+ expected?: string;
6452
+ };
6453
+ }>>) & {
6454
+ '~path': string;
6455
+ };
6456
+ } & {
5445
6457
  '~path': string;
5446
6458
  };
5447
6459
  }) & {
5448
- get: ((options?: {
5449
- fetch?: RequestInit | undefined;
5450
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5451
- headers?: {} | undefined;
5452
- query?: {} | undefined;
5453
- } | undefined) => Promise<Treaty.TreatyResponse<{
5454
- 200: {
5455
- success: false;
5456
- statusCode: number;
5457
- data: null;
5458
- message: string;
5459
- error: TResponseError;
5460
- meta: TResponseMeta;
5461
- } | {
5462
- success: true;
5463
- statusCode: number;
5464
- data: {
5465
- name: string;
5466
- uuid: string;
5467
- createdAt: Date;
5468
- updatedAt: Date;
5469
- description: string | null;
5470
- valueType: "PERCENTAGE" | "FIXED";
5471
- depositValue: number;
5472
- surchargeValue: number;
5473
- }[];
5474
- message: null;
5475
- error: null;
5476
- meta: TResponseMeta;
5477
- };
5478
- }>>) & {
5479
- '~path': string;
5480
- };
5481
6460
  post: ((body: {
5482
- name: string;
5483
- valueType: "PERCENTAGE" | "FIXED";
5484
- depositValue: number;
5485
- surchargeValue: number;
5486
- description?: string | undefined;
6461
+ to: string | string[];
6462
+ subject: string;
6463
+ scheduledAt?: string | undefined;
6464
+ attachments?: {
6465
+ filename: string;
6466
+ content?: string | undefined;
6467
+ path?: string | undefined;
6468
+ contentType?: string | undefined;
6469
+ }[] | undefined;
6470
+ from?: string | undefined;
6471
+ html?: string | undefined;
6472
+ text?: string | undefined;
6473
+ cc?: string | string[] | undefined;
6474
+ bcc?: string | string[] | undefined;
6475
+ replyTo?: string | string[] | undefined;
6476
+ tags?: {
6477
+ name: string;
6478
+ value: string;
6479
+ }[] | undefined;
5487
6480
  }, options?: {
5488
6481
  fetch?: RequestInit | undefined;
5489
6482
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -5500,9 +6493,7 @@ declare const _createClient: () => {
5500
6493
  } | {
5501
6494
  success: true;
5502
6495
  statusCode: number;
5503
- data: {
5504
- uuid: string;
5505
- };
6496
+ data: TEmailIdResult;
5506
6497
  message: null;
5507
6498
  error: null;
5508
6499
  meta: TResponseMeta;
@@ -5519,52 +6510,67 @@ declare const _createClient: () => {
5519
6510
  }>>) & {
5520
6511
  '~path': string;
5521
6512
  };
5522
- } & {
5523
- '~path': string;
5524
- };
5525
- emails: ((params: {
5526
- emailId: string | number;
5527
- }) => {
5528
- get: ((options?: {
5529
- fetch?: RequestInit | undefined;
5530
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5531
- headers?: {} | undefined;
5532
- query?: {} | undefined;
5533
- } | undefined) => Promise<Treaty.TreatyResponse<{
5534
- 200: {
5535
- success: false;
5536
- statusCode: number;
5537
- data: null;
5538
- message: string;
5539
- error: TResponseError;
5540
- meta: TResponseMeta;
5541
- } | {
5542
- success: true;
5543
- statusCode: number;
5544
- data: TEmailObject;
5545
- message: null;
5546
- error: null;
5547
- meta: TResponseMeta;
5548
- };
5549
- 422: {
5550
- type: "validation";
5551
- on: string;
5552
- summary?: string;
5553
- message?: string;
5554
- found?: unknown;
5555
- property?: string;
5556
- expected?: string;
6513
+ batch: {
6514
+ post: ((body: {
6515
+ emails: {
6516
+ to: string | string[];
6517
+ subject: string;
6518
+ from?: string | undefined;
6519
+ html?: string | undefined;
6520
+ text?: string | undefined;
6521
+ cc?: string | string[] | undefined;
6522
+ bcc?: string | string[] | undefined;
6523
+ replyTo?: string | string[] | undefined;
6524
+ tags?: {
6525
+ name: string;
6526
+ value: string;
6527
+ }[] | undefined;
6528
+ }[];
6529
+ }, options?: {
6530
+ fetch?: RequestInit | undefined;
6531
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6532
+ headers?: {} | undefined;
6533
+ query?: {} | undefined;
6534
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6535
+ 200: {
6536
+ success: false;
6537
+ statusCode: number;
6538
+ data: null;
6539
+ message: string;
6540
+ error: TResponseError;
6541
+ meta: TResponseMeta;
6542
+ } | {
6543
+ success: true;
6544
+ statusCode: number;
6545
+ data: TEmailBatchResult;
6546
+ message: null;
6547
+ error: null;
6548
+ meta: TResponseMeta;
6549
+ };
6550
+ 422: {
6551
+ type: "validation";
6552
+ on: string;
6553
+ summary?: string;
6554
+ message?: string;
6555
+ found?: unknown;
6556
+ property?: string;
6557
+ expected?: string;
6558
+ };
6559
+ }>>) & {
6560
+ '~path': string;
5557
6561
  };
5558
- }>>) & {
6562
+ } & {
5559
6563
  '~path': string;
5560
6564
  };
5561
- patch: ((body: {
5562
- scheduledAt: string;
5563
- }, options?: {
6565
+ get: ((options?: {
5564
6566
  fetch?: RequestInit | undefined;
5565
6567
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5566
6568
  headers?: {} | undefined;
5567
- query?: {} | undefined;
6569
+ query?: {
6570
+ limit?: number | undefined;
6571
+ after?: string | undefined;
6572
+ before?: string | undefined;
6573
+ } | undefined;
5568
6574
  } | undefined) => Promise<Treaty.TreatyResponse<{
5569
6575
  200: {
5570
6576
  success: false;
@@ -5576,7 +6582,7 @@ declare const _createClient: () => {
5576
6582
  } | {
5577
6583
  success: true;
5578
6584
  statusCode: number;
5579
- data: TEmailMutationResult;
6585
+ data: TEmailListResult;
5580
6586
  message: null;
5581
6587
  error: null;
5582
6588
  meta: TResponseMeta;
@@ -5593,8 +6599,10 @@ declare const _createClient: () => {
5593
6599
  }>>) & {
5594
6600
  '~path': string;
5595
6601
  };
5596
- cancel: {
5597
- post: ((body?: {} | undefined, options?: {
6602
+ received: ((params: {
6603
+ emailId: string | number;
6604
+ }) => {
6605
+ get: ((options?: {
5598
6606
  fetch?: RequestInit | undefined;
5599
6607
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5600
6608
  headers?: {} | undefined;
@@ -5610,29 +6618,137 @@ declare const _createClient: () => {
5610
6618
  } | {
5611
6619
  success: true;
5612
6620
  statusCode: number;
5613
- data: TEmailMutationResult;
6621
+ data: TReceivedEmailObject;
5614
6622
  message: null;
5615
6623
  error: null;
5616
6624
  meta: TResponseMeta;
5617
6625
  };
5618
- 422: {
5619
- type: "validation";
5620
- on: string;
5621
- summary?: string;
5622
- message?: string;
5623
- found?: unknown;
5624
- property?: string;
5625
- expected?: string;
6626
+ 422: {
6627
+ type: "validation";
6628
+ on: string;
6629
+ summary?: string;
6630
+ message?: string;
6631
+ found?: unknown;
6632
+ property?: string;
6633
+ expected?: string;
6634
+ };
6635
+ }>>) & {
6636
+ '~path': string;
6637
+ };
6638
+ attachments: ((params: {
6639
+ attachmentId: string | number;
6640
+ }) => {
6641
+ get: ((options?: {
6642
+ fetch?: RequestInit | undefined;
6643
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6644
+ headers?: {} | undefined;
6645
+ query?: {} | undefined;
6646
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6647
+ 200: {
6648
+ success: false;
6649
+ statusCode: number;
6650
+ data: null;
6651
+ message: string;
6652
+ error: TResponseError;
6653
+ meta: TResponseMeta;
6654
+ } | {
6655
+ success: true;
6656
+ statusCode: number;
6657
+ data: TAttachmentObject;
6658
+ message: null;
6659
+ error: null;
6660
+ meta: TResponseMeta;
6661
+ };
6662
+ 422: {
6663
+ type: "validation";
6664
+ on: string;
6665
+ summary?: string;
6666
+ message?: string;
6667
+ found?: unknown;
6668
+ property?: string;
6669
+ expected?: string;
6670
+ };
6671
+ }>>) & {
6672
+ '~path': string;
6673
+ };
6674
+ '~path': string;
6675
+ } & {
6676
+ get: ((options?: {
6677
+ fetch?: RequestInit | undefined;
6678
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6679
+ headers?: {} | undefined;
6680
+ query?: {} | undefined;
6681
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6682
+ 200: {
6683
+ success: false;
6684
+ statusCode: number;
6685
+ data: null;
6686
+ message: string;
6687
+ error: TResponseError;
6688
+ meta: TResponseMeta;
6689
+ } | {
6690
+ success: true;
6691
+ statusCode: number;
6692
+ data: TAttachmentObject;
6693
+ message: null;
6694
+ error: null;
6695
+ meta: TResponseMeta;
6696
+ };
6697
+ 422: {
6698
+ type: "validation";
6699
+ on: string;
6700
+ summary?: string;
6701
+ message?: string;
6702
+ found?: unknown;
6703
+ property?: string;
6704
+ expected?: string;
6705
+ };
6706
+ }>>) & {
6707
+ '~path': string;
6708
+ };
6709
+ }) & {
6710
+ get: ((options?: {
6711
+ fetch?: RequestInit | undefined;
6712
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6713
+ headers?: {} | undefined;
6714
+ query?: {
6715
+ limit?: number | undefined;
6716
+ after?: string | undefined;
6717
+ before?: string | undefined;
6718
+ } | undefined;
6719
+ } | undefined) => Promise<Treaty.TreatyResponse<{
6720
+ 200: {
6721
+ success: false;
6722
+ statusCode: number;
6723
+ data: null;
6724
+ message: string;
6725
+ error: TResponseError;
6726
+ meta: TResponseMeta;
6727
+ } | {
6728
+ success: true;
6729
+ statusCode: number;
6730
+ data: TAttachmentListResult;
6731
+ message: null;
6732
+ error: null;
6733
+ meta: TResponseMeta;
6734
+ };
6735
+ 422: {
6736
+ type: "validation";
6737
+ on: string;
6738
+ summary?: string;
6739
+ message?: string;
6740
+ found?: unknown;
6741
+ property?: string;
6742
+ expected?: string;
6743
+ };
6744
+ }>>) & {
6745
+ '~path': string;
5626
6746
  };
5627
- }>>) & {
6747
+ } & {
5628
6748
  '~path': string;
5629
6749
  };
5630
- } & {
5631
6750
  '~path': string;
5632
- };
5633
- attachments: ((params: {
5634
- attachmentId: string | number;
5635
- }) => {
6751
+ } & {
5636
6752
  get: ((options?: {
5637
6753
  fetch?: RequestInit | undefined;
5638
6754
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -5649,7 +6765,7 @@ declare const _createClient: () => {
5649
6765
  } | {
5650
6766
  success: true;
5651
6767
  statusCode: number;
5652
- data: TAttachmentObject;
6768
+ data: TReceivedEmailObject;
5653
6769
  message: null;
5654
6770
  error: null;
5655
6771
  meta: TResponseMeta;
@@ -5666,39 +6782,116 @@ declare const _createClient: () => {
5666
6782
  }>>) & {
5667
6783
  '~path': string;
5668
6784
  };
5669
- '~path': string;
5670
- } & {
5671
- get: ((options?: {
5672
- fetch?: RequestInit | undefined;
5673
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5674
- headers?: {} | undefined;
5675
- query?: {} | undefined;
5676
- } | undefined) => Promise<Treaty.TreatyResponse<{
5677
- 200: {
5678
- success: false;
5679
- statusCode: number;
5680
- data: null;
5681
- message: string;
5682
- error: TResponseError;
5683
- meta: TResponseMeta;
5684
- } | {
5685
- success: true;
5686
- statusCode: number;
5687
- data: TAttachmentObject;
5688
- message: null;
5689
- error: null;
5690
- meta: TResponseMeta;
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;
5691
6820
  };
5692
- 422: {
5693
- type: "validation";
5694
- on: string;
5695
- summary?: string;
5696
- message?: string;
5697
- found?: unknown;
5698
- property?: string;
5699
- expected?: string;
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;
5700
6855
  };
5701
- }>>) & {
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
+ } & {
5702
6895
  '~path': string;
5703
6896
  };
5704
6897
  }) & {
@@ -5722,7 +6915,7 @@ declare const _createClient: () => {
5722
6915
  } | {
5723
6916
  success: true;
5724
6917
  statusCode: number;
5725
- data: TAttachmentListResult;
6918
+ data: TReceivedEmailListResult;
5726
6919
  message: null;
5727
6920
  error: null;
5728
6921
  meta: TResponseMeta;
@@ -5742,8 +6935,12 @@ declare const _createClient: () => {
5742
6935
  } & {
5743
6936
  '~path': string;
5744
6937
  };
5745
- '~path': string;
5746
6938
  } & {
6939
+ '~path': string;
6940
+ };
6941
+ expenses: ((params: {
6942
+ expenseUuid: string | number;
6943
+ }) => {
5747
6944
  get: ((options?: {
5748
6945
  fetch?: RequestInit | undefined;
5749
6946
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
@@ -5760,7 +6957,33 @@ declare const _createClient: () => {
5760
6957
  } | {
5761
6958
  success: true;
5762
6959
  statusCode: number;
5763
- data: TEmailObject;
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
+ };
5764
6987
  message: null;
5765
6988
  error: null;
5766
6989
  meta: TResponseMeta;
@@ -5777,27 +7000,70 @@ declare const _createClient: () => {
5777
7000
  }>>) & {
5778
7001
  '~path': string;
5779
7002
  };
5780
- patch: ((body: {
5781
- scheduledAt: string;
5782
- }, options?: {
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?: {
5783
7049
  fetch?: RequestInit | undefined;
5784
7050
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5785
7051
  headers?: {} | undefined;
5786
7052
  query?: {} | undefined;
5787
7053
  } | undefined) => Promise<Treaty.TreatyResponse<{
5788
7054
  200: {
5789
- success: false;
7055
+ success: true;
5790
7056
  statusCode: number;
5791
7057
  data: null;
5792
7058
  message: string;
5793
- error: TResponseError;
7059
+ error: null;
5794
7060
  meta: TResponseMeta;
5795
7061
  } | {
5796
- success: true;
7062
+ success: false;
5797
7063
  statusCode: number;
5798
- data: TEmailMutationResult;
5799
- message: null;
5800
- error: null;
7064
+ data: null;
7065
+ message: string;
7066
+ error: TResponseError;
5801
7067
  meta: TResponseMeta;
5802
7068
  };
5803
7069
  422: {
@@ -5812,26 +7078,31 @@ declare const _createClient: () => {
5812
7078
  }>>) & {
5813
7079
  '~path': string;
5814
7080
  };
5815
- cancel: {
5816
- post: ((body?: {} | undefined, options?: {
7081
+ occurrences: ((params: {
7082
+ occurrenceUuid: string | number;
7083
+ }) => {
7084
+ patch: ((body?: {
7085
+ amount?: number | undefined;
7086
+ bookingDate?: string | undefined;
7087
+ } | undefined, options?: {
5817
7088
  fetch?: RequestInit | undefined;
5818
7089
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5819
7090
  headers?: {} | undefined;
5820
7091
  query?: {} | undefined;
5821
7092
  } | undefined) => Promise<Treaty.TreatyResponse<{
5822
7093
  200: {
5823
- success: false;
7094
+ success: true;
5824
7095
  statusCode: number;
5825
7096
  data: null;
5826
7097
  message: string;
5827
- error: TResponseError;
7098
+ error: null;
5828
7099
  meta: TResponseMeta;
5829
7100
  } | {
5830
- success: true;
7101
+ success: false;
5831
7102
  statusCode: number;
5832
- data: TEmailMutationResult;
5833
- message: null;
5834
- error: null;
7103
+ data: null;
7104
+ message: string;
7105
+ error: TResponseError;
5835
7106
  meta: TResponseMeta;
5836
7107
  };
5837
7108
  422: {
@@ -5846,31 +7117,25 @@ declare const _createClient: () => {
5846
7117
  }>>) & {
5847
7118
  '~path': string;
5848
7119
  };
5849
- } & {
5850
- '~path': string;
5851
- };
5852
- attachments: ((params: {
5853
- attachmentId: string | number;
5854
- }) => {
5855
- get: ((options?: {
7120
+ delete: ((body?: {} | undefined, options?: {
5856
7121
  fetch?: RequestInit | undefined;
5857
7122
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5858
7123
  headers?: {} | undefined;
5859
7124
  query?: {} | undefined;
5860
7125
  } | undefined) => Promise<Treaty.TreatyResponse<{
5861
7126
  200: {
5862
- success: false;
7127
+ success: true;
5863
7128
  statusCode: number;
5864
7129
  data: null;
5865
7130
  message: string;
5866
- error: TResponseError;
7131
+ error: null;
5867
7132
  meta: TResponseMeta;
5868
7133
  } | {
5869
- success: true;
7134
+ success: false;
5870
7135
  statusCode: number;
5871
- data: TAttachmentObject;
5872
- message: null;
5873
- error: null;
7136
+ data: null;
7137
+ message: string;
7138
+ error: TResponseError;
5874
7139
  meta: TResponseMeta;
5875
7140
  };
5876
7141
  422: {
@@ -5887,25 +7152,28 @@ declare const _createClient: () => {
5887
7152
  };
5888
7153
  '~path': string;
5889
7154
  } & {
5890
- get: ((options?: {
7155
+ patch: ((body?: {
7156
+ amount?: number | undefined;
7157
+ bookingDate?: string | undefined;
7158
+ } | undefined, options?: {
5891
7159
  fetch?: RequestInit | undefined;
5892
7160
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5893
7161
  headers?: {} | undefined;
5894
7162
  query?: {} | undefined;
5895
7163
  } | undefined) => Promise<Treaty.TreatyResponse<{
5896
7164
  200: {
5897
- success: false;
7165
+ success: true;
5898
7166
  statusCode: number;
5899
7167
  data: null;
5900
7168
  message: string;
5901
- error: TResponseError;
7169
+ error: null;
5902
7170
  meta: TResponseMeta;
5903
7171
  } | {
5904
- success: true;
7172
+ success: false;
5905
7173
  statusCode: number;
5906
- data: TAttachmentObject;
5907
- message: null;
5908
- error: null;
7174
+ data: null;
7175
+ message: string;
7176
+ error: TResponseError;
5909
7177
  meta: TResponseMeta;
5910
7178
  };
5911
7179
  422: {
@@ -5920,30 +7188,25 @@ declare const _createClient: () => {
5920
7188
  }>>) & {
5921
7189
  '~path': string;
5922
7190
  };
5923
- }) & {
5924
- get: ((options?: {
7191
+ delete: ((body?: {} | undefined, options?: {
5925
7192
  fetch?: RequestInit | undefined;
5926
7193
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5927
7194
  headers?: {} | undefined;
5928
- query?: {
5929
- limit?: number | undefined;
5930
- after?: string | undefined;
5931
- before?: string | undefined;
5932
- } | undefined;
7195
+ query?: {} | undefined;
5933
7196
  } | undefined) => Promise<Treaty.TreatyResponse<{
5934
7197
  200: {
5935
- success: false;
7198
+ success: true;
5936
7199
  statusCode: number;
5937
7200
  data: null;
5938
7201
  message: string;
5939
- error: TResponseError;
7202
+ error: null;
5940
7203
  meta: TResponseMeta;
5941
7204
  } | {
5942
- success: true;
7205
+ success: false;
5943
7206
  statusCode: number;
5944
- data: TAttachmentListResult;
5945
- message: null;
5946
- error: null;
7207
+ data: null;
7208
+ message: string;
7209
+ error: TResponseError;
5947
7210
  meta: TResponseMeta;
5948
7211
  };
5949
7212
  422: {
@@ -5958,31 +7221,12 @@ declare const _createClient: () => {
5958
7221
  }>>) & {
5959
7222
  '~path': string;
5960
7223
  };
5961
- } & {
7224
+ }) & {} & {
5962
7225
  '~path': string;
5963
7226
  };
5964
- }) & {
5965
- post: ((body: {
5966
- to: string | string[];
5967
- subject: string;
5968
- scheduledAt?: string | undefined;
5969
- attachments?: {
5970
- filename: string;
5971
- content?: string | undefined;
5972
- path?: string | undefined;
5973
- contentType?: string | undefined;
5974
- }[] | undefined;
5975
- from?: string | undefined;
5976
- html?: string | undefined;
5977
- text?: string | undefined;
5978
- cc?: string | string[] | undefined;
5979
- bcc?: string | string[] | undefined;
5980
- replyTo?: string | string[] | undefined;
5981
- tags?: {
5982
- name: string;
5983
- value: string;
5984
- }[] | undefined;
5985
- }, options?: {
7227
+ '~path': string;
7228
+ } & {
7229
+ get: ((options?: {
5986
7230
  fetch?: RequestInit | undefined;
5987
7231
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
5988
7232
  headers?: {} | undefined;
@@ -5998,7 +7242,33 @@ declare const _createClient: () => {
5998
7242
  } | {
5999
7243
  success: true;
6000
7244
  statusCode: number;
6001
- data: TEmailIdResult;
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
+ };
6002
7272
  message: null;
6003
7273
  error: null;
6004
7274
  meta: TResponseMeta;
@@ -6012,45 +7282,217 @@ declare const _createClient: () => {
6012
7282
  property?: string;
6013
7283
  expected?: string;
6014
7284
  };
6015
- }>>) & {
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
+ };
6016
7438
  '~path': string;
6017
- };
6018
- batch: {
6019
- post: ((body: {
6020
- emails: {
6021
- to: string | string[];
6022
- subject: string;
6023
- from?: string | undefined;
6024
- html?: string | undefined;
6025
- text?: string | undefined;
6026
- cc?: string | string[] | undefined;
6027
- bcc?: string | string[] | undefined;
6028
- replyTo?: string | string[] | undefined;
6029
- tags?: {
6030
- name: string;
6031
- value: string;
6032
- }[] | undefined;
6033
- }[];
6034
- }, options?: {
7439
+ } & {
7440
+ patch: ((body?: {
7441
+ amount?: number | undefined;
7442
+ bookingDate?: string | undefined;
7443
+ } | undefined, options?: {
6035
7444
  fetch?: RequestInit | undefined;
6036
7445
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6037
7446
  headers?: {} | undefined;
6038
7447
  query?: {} | undefined;
6039
7448
  } | undefined) => Promise<Treaty.TreatyResponse<{
6040
7449
  200: {
7450
+ success: true;
7451
+ statusCode: number;
7452
+ data: null;
7453
+ message: string;
7454
+ error: null;
7455
+ meta: TResponseMeta;
7456
+ } | {
6041
7457
  success: false;
6042
7458
  statusCode: number;
6043
7459
  data: null;
6044
7460
  message: string;
6045
7461
  error: TResponseError;
6046
7462
  meta: TResponseMeta;
6047
- } | {
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: {
6048
7483
  success: true;
6049
7484
  statusCode: number;
6050
- data: TEmailBatchResult;
6051
- message: null;
7485
+ data: null;
7486
+ message: string;
6052
7487
  error: null;
6053
7488
  meta: TResponseMeta;
7489
+ } | {
7490
+ success: false;
7491
+ statusCode: number;
7492
+ data: null;
7493
+ message: string;
7494
+ error: TResponseError;
7495
+ meta: TResponseMeta;
6054
7496
  };
6055
7497
  422: {
6056
7498
  type: "validation";
@@ -6064,17 +7506,22 @@ declare const _createClient: () => {
6064
7506
  }>>) & {
6065
7507
  '~path': string;
6066
7508
  };
6067
- } & {
7509
+ }) & {} & {
6068
7510
  '~path': string;
6069
7511
  };
7512
+ }) & {
6070
7513
  get: ((options?: {
6071
7514
  fetch?: RequestInit | undefined;
6072
7515
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6073
7516
  headers?: {} | undefined;
6074
7517
  query?: {
7518
+ page?: number | undefined;
6075
7519
  limit?: number | undefined;
6076
- after?: string | undefined;
6077
- before?: string | undefined;
7520
+ search?: string | undefined;
7521
+ category?: string | undefined;
7522
+ expenseType?: string | undefined;
7523
+ dateFrom?: string | undefined;
7524
+ dateTo?: string | undefined;
6078
7525
  } | undefined;
6079
7526
  } | undefined) => Promise<Treaty.TreatyResponse<{
6080
7527
  200: {
@@ -6087,7 +7534,36 @@ declare const _createClient: () => {
6087
7534
  } | {
6088
7535
  success: true;
6089
7536
  statusCode: number;
6090
- data: TEmailListResult;
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
+ };
6091
7567
  message: null;
6092
7568
  error: null;
6093
7569
  meta: TResponseMeta;
@@ -6101,160 +7577,96 @@ declare const _createClient: () => {
6101
7577
  property?: string;
6102
7578
  expected?: string;
6103
7579
  };
6104
- }>>) & {
6105
- '~path': string;
6106
- };
6107
- received: ((params: {
6108
- emailId: string | number;
6109
- }) => {
6110
- get: ((options?: {
6111
- fetch?: RequestInit | undefined;
6112
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6113
- headers?: {} | undefined;
6114
- query?: {} | undefined;
6115
- } | undefined) => Promise<Treaty.TreatyResponse<{
6116
- 200: {
6117
- success: false;
6118
- statusCode: number;
6119
- data: null;
6120
- message: string;
6121
- error: TResponseError;
6122
- meta: TResponseMeta;
6123
- } | {
6124
- success: true;
6125
- statusCode: number;
6126
- data: TReceivedEmailObject;
6127
- message: null;
6128
- error: null;
6129
- meta: TResponseMeta;
6130
- };
6131
- 422: {
6132
- type: "validation";
6133
- on: string;
6134
- summary?: string;
6135
- message?: string;
6136
- found?: unknown;
6137
- property?: string;
6138
- expected?: string;
6139
- };
6140
- }>>) & {
6141
- '~path': string;
6142
- };
6143
- attachments: ((params: {
6144
- attachmentId: string | number;
6145
- }) => {
6146
- get: ((options?: {
6147
- fetch?: RequestInit | undefined;
6148
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6149
- headers?: {} | undefined;
6150
- query?: {} | undefined;
6151
- } | undefined) => Promise<Treaty.TreatyResponse<{
6152
- 200: {
6153
- success: false;
6154
- statusCode: number;
6155
- data: null;
6156
- message: string;
6157
- error: TResponseError;
6158
- meta: TResponseMeta;
6159
- } | {
6160
- success: true;
6161
- statusCode: number;
6162
- data: TAttachmentObject;
6163
- message: null;
6164
- error: null;
6165
- meta: TResponseMeta;
6166
- };
6167
- 422: {
6168
- type: "validation";
6169
- on: string;
6170
- summary?: string;
6171
- message?: string;
6172
- found?: unknown;
6173
- property?: string;
6174
- expected?: string;
6175
- };
6176
- }>>) & {
6177
- '~path': string;
6178
- };
6179
- '~path': string;
6180
- } & {
6181
- get: ((options?: {
6182
- fetch?: RequestInit | undefined;
6183
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6184
- headers?: {} | undefined;
6185
- query?: {} | undefined;
6186
- } | undefined) => Promise<Treaty.TreatyResponse<{
6187
- 200: {
6188
- success: false;
6189
- statusCode: number;
6190
- data: null;
6191
- message: string;
6192
- error: TResponseError;
6193
- meta: TResponseMeta;
6194
- } | {
6195
- success: true;
6196
- statusCode: number;
6197
- data: TAttachmentObject;
6198
- message: null;
6199
- error: null;
6200
- meta: TResponseMeta;
6201
- };
6202
- 422: {
6203
- type: "validation";
6204
- on: string;
6205
- summary?: string;
6206
- message?: string;
6207
- found?: unknown;
6208
- property?: string;
6209
- expected?: string;
6210
- };
6211
- }>>) & {
6212
- '~path': string;
6213
- };
6214
- }) & {
6215
- get: ((options?: {
6216
- fetch?: RequestInit | undefined;
6217
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6218
- headers?: {} | undefined;
6219
- query?: {
6220
- limit?: number | undefined;
6221
- after?: string | undefined;
6222
- before?: string | undefined;
6223
- } | undefined;
6224
- } | undefined) => Promise<Treaty.TreatyResponse<{
6225
- 200: {
6226
- success: false;
6227
- statusCode: number;
6228
- data: null;
6229
- message: string;
6230
- error: TResponseError;
6231
- meta: TResponseMeta;
6232
- } | {
6233
- success: true;
6234
- statusCode: number;
6235
- data: TAttachmentListResult;
6236
- message: null;
6237
- error: null;
6238
- meta: TResponseMeta;
6239
- };
6240
- 422: {
6241
- type: "validation";
6242
- on: string;
6243
- summary?: string;
6244
- message?: string;
6245
- found?: unknown;
6246
- property?: string;
6247
- expected?: string;
6248
- };
6249
- }>>) & {
6250
- '~path': string;
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;
6251
7637
  };
6252
- } & {
6253
- '~path': string;
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;
6254
7650
  };
7651
+ }>>) & {
6255
7652
  '~path': string;
6256
- } & {
6257
- get: ((options?: {
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?: {
6258
7670
  fetch?: RequestInit | undefined;
6259
7671
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6260
7672
  headers?: {} | undefined;
@@ -6270,7 +7682,35 @@ declare const _createClient: () => {
6270
7682
  } | {
6271
7683
  success: true;
6272
7684
  statusCode: number;
6273
- data: TReceivedEmailObject;
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
+ };
6274
7714
  message: null;
6275
7715
  error: null;
6276
7716
  meta: TResponseMeta;
@@ -6287,142 +7727,27 @@ declare const _createClient: () => {
6287
7727
  }>>) & {
6288
7728
  '~path': string;
6289
7729
  };
6290
- attachments: ((params: {
6291
- attachmentId: string | number;
6292
- }) => {
6293
- get: ((options?: {
6294
- fetch?: RequestInit | undefined;
6295
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6296
- headers?: {} | undefined;
6297
- query?: {} | undefined;
6298
- } | undefined) => Promise<Treaty.TreatyResponse<{
6299
- 200: {
6300
- success: false;
6301
- statusCode: number;
6302
- data: null;
6303
- message: string;
6304
- error: TResponseError;
6305
- meta: TResponseMeta;
6306
- } | {
6307
- success: true;
6308
- statusCode: number;
6309
- data: TAttachmentObject;
6310
- message: null;
6311
- error: null;
6312
- meta: TResponseMeta;
6313
- };
6314
- 422: {
6315
- type: "validation";
6316
- on: string;
6317
- summary?: string;
6318
- message?: string;
6319
- found?: unknown;
6320
- property?: string;
6321
- expected?: string;
6322
- };
6323
- }>>) & {
6324
- '~path': string;
6325
- };
6326
- '~path': string;
6327
- } & {
6328
- get: ((options?: {
6329
- fetch?: RequestInit | undefined;
6330
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6331
- headers?: {} | undefined;
6332
- query?: {} | undefined;
6333
- } | undefined) => Promise<Treaty.TreatyResponse<{
6334
- 200: {
6335
- success: false;
6336
- statusCode: number;
6337
- data: null;
6338
- message: string;
6339
- error: TResponseError;
6340
- meta: TResponseMeta;
6341
- } | {
6342
- success: true;
6343
- statusCode: number;
6344
- data: TAttachmentObject;
6345
- message: null;
6346
- error: null;
6347
- meta: TResponseMeta;
6348
- };
6349
- 422: {
6350
- type: "validation";
6351
- on: string;
6352
- summary?: string;
6353
- message?: string;
6354
- found?: unknown;
6355
- property?: string;
6356
- expected?: string;
6357
- };
6358
- }>>) & {
6359
- '~path': string;
6360
- };
6361
- }) & {
6362
- get: ((options?: {
6363
- fetch?: RequestInit | undefined;
6364
- throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6365
- headers?: {} | undefined;
6366
- query?: {
6367
- limit?: number | undefined;
6368
- after?: string | undefined;
6369
- before?: string | undefined;
6370
- } | undefined;
6371
- } | undefined) => Promise<Treaty.TreatyResponse<{
6372
- 200: {
6373
- success: false;
6374
- statusCode: number;
6375
- data: null;
6376
- message: string;
6377
- error: TResponseError;
6378
- meta: TResponseMeta;
6379
- } | {
6380
- success: true;
6381
- statusCode: number;
6382
- data: TAttachmentListResult;
6383
- message: null;
6384
- error: null;
6385
- meta: TResponseMeta;
6386
- };
6387
- 422: {
6388
- type: "validation";
6389
- on: string;
6390
- summary?: string;
6391
- message?: string;
6392
- found?: unknown;
6393
- property?: string;
6394
- expected?: string;
6395
- };
6396
- }>>) & {
6397
- '~path': string;
6398
- };
6399
- } & {
6400
- '~path': string;
6401
- };
6402
- }) & {
6403
- get: ((options?: {
7730
+ delete: ((body: {}, options: {
6404
7731
  fetch?: RequestInit | undefined;
6405
7732
  throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
6406
7733
  headers?: {} | undefined;
6407
- query?: {
6408
- limit?: number | undefined;
6409
- after?: string | undefined;
6410
- before?: string | undefined;
6411
- } | undefined;
6412
- } | undefined) => Promise<Treaty.TreatyResponse<{
7734
+ query: {
7735
+ expenseUuids: string[];
7736
+ };
7737
+ }) => Promise<Treaty.TreatyResponse<{
6413
7738
  200: {
6414
- success: false;
7739
+ success: true;
6415
7740
  statusCode: number;
6416
7741
  data: null;
6417
7742
  message: string;
6418
- error: TResponseError;
7743
+ error: null;
6419
7744
  meta: TResponseMeta;
6420
7745
  } | {
6421
- success: true;
7746
+ success: false;
6422
7747
  statusCode: number;
6423
- data: TReceivedEmailListResult;
6424
- message: null;
6425
- error: null;
7748
+ data: null;
7749
+ message: string;
7750
+ error: TResponseError;
6426
7751
  meta: TResponseMeta;
6427
7752
  };
6428
7753
  422: {
@@ -8560,10 +9885,10 @@ declare const _createClient: () => {
8560
9885
  actorUuid: string | null;
8561
9886
  title: string;
8562
9887
  content: string | null;
9888
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
8563
9889
  manifestUuid: string | null;
8564
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";
8565
9891
  startedAt: Date;
8566
- category: "ORDER" | "PAYMENT" | "LOGISTICS";
8567
9892
  isPublic: boolean;
8568
9893
  metadata: unknown;
8569
9894
  }[];
@@ -8574,8 +9899,8 @@ declare const _createClient: () => {
8574
9899
  createdAt: Date;
8575
9900
  updatedAt: Date;
8576
9901
  description: string | null;
8577
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
8578
9902
  amount: number;
9903
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
8579
9904
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
8580
9905
  paymentUuid: string | null;
8581
9906
  }[];
@@ -9142,8 +10467,8 @@ declare const _createClient: () => {
9142
10467
  post: ((body: {
9143
10468
  description?: string | undefined;
9144
10469
  name: string;
9145
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9146
10470
  amount: number;
10471
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9147
10472
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
9148
10473
  }, options?: {
9149
10474
  fetch?: RequestInit | undefined;
@@ -9184,8 +10509,8 @@ declare const _createClient: () => {
9184
10509
  post: ((body: {
9185
10510
  description?: string | undefined;
9186
10511
  name: string;
9187
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9188
10512
  amount: number;
10513
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9189
10514
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
9190
10515
  }[], options?: {
9191
10516
  fetch?: RequestInit | undefined;
@@ -9248,8 +10573,8 @@ declare const _createClient: () => {
9248
10573
  createdAt: Date;
9249
10574
  updatedAt: Date;
9250
10575
  description: string | null;
9251
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9252
10576
  amount: number;
10577
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9253
10578
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
9254
10579
  paymentUuid: string | null;
9255
10580
  }[];
@@ -9372,10 +10697,10 @@ declare const _createClient: () => {
9372
10697
  actorUuid: string | null;
9373
10698
  title: string;
9374
10699
  content: string | null;
10700
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
9375
10701
  manifestUuid: string | null;
9376
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";
9377
10703
  startedAt: Date;
9378
- category: "ORDER" | "PAYMENT" | "LOGISTICS";
9379
10704
  isPublic: boolean;
9380
10705
  }[];
9381
10706
  message: null;
@@ -9700,10 +11025,10 @@ declare const _createClient: () => {
9700
11025
  actorUuid: string | null;
9701
11026
  title: string;
9702
11027
  content: string | null;
11028
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
9703
11029
  manifestUuid: string | null;
9704
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";
9705
11031
  startedAt: Date;
9706
- category: "ORDER" | "PAYMENT" | "LOGISTICS";
9707
11032
  isPublic: boolean;
9708
11033
  metadata: unknown;
9709
11034
  }[];
@@ -9714,8 +11039,8 @@ declare const _createClient: () => {
9714
11039
  createdAt: Date;
9715
11040
  updatedAt: Date;
9716
11041
  description: string | null;
9717
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9718
11042
  amount: number;
11043
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
9719
11044
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
9720
11045
  paymentUuid: string | null;
9721
11046
  }[];
@@ -10282,8 +11607,8 @@ declare const _createClient: () => {
10282
11607
  post: ((body: {
10283
11608
  description?: string | undefined;
10284
11609
  name: string;
10285
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
10286
11610
  amount: number;
11611
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
10287
11612
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
10288
11613
  }, options?: {
10289
11614
  fetch?: RequestInit | undefined;
@@ -10324,8 +11649,8 @@ declare const _createClient: () => {
10324
11649
  post: ((body: {
10325
11650
  description?: string | undefined;
10326
11651
  name: string;
10327
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
10328
11652
  amount: number;
11653
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
10329
11654
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
10330
11655
  }[], options?: {
10331
11656
  fetch?: RequestInit | undefined;
@@ -10388,8 +11713,8 @@ declare const _createClient: () => {
10388
11713
  createdAt: Date;
10389
11714
  updatedAt: Date;
10390
11715
  description: string | null;
10391
- surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
10392
11716
  amount: number;
11717
+ surchargeCode: "SHIPPING_FEE" | "HANDLING_FEE" | "EXPRESS_DELIVERY_FEE" | "INSURANCE_FEE" | "CUSTOMS_DUTY" | "OTHER_FEE";
10393
11718
  applyTo: "BEFORE_TAX" | "AFTER_TAX";
10394
11719
  paymentUuid: string | null;
10395
11720
  }[];
@@ -10512,10 +11837,10 @@ declare const _createClient: () => {
10512
11837
  actorUuid: string | null;
10513
11838
  title: string;
10514
11839
  content: string | null;
11840
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
10515
11841
  manifestUuid: string | null;
10516
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";
10517
11843
  startedAt: Date;
10518
- category: "ORDER" | "PAYMENT" | "LOGISTICS";
10519
11844
  isPublic: boolean;
10520
11845
  }[];
10521
11846
  message: null;
@@ -11645,8 +12970,8 @@ declare const _createClient: () => {
11645
12970
  } | null;
11646
12971
  currency: {
11647
12972
  name: string;
11648
- id: number;
11649
12973
  code: string;
12974
+ id: number;
11650
12975
  exchangeRate: number;
11651
12976
  } | null;
11652
12977
  supplier: {
@@ -11849,8 +13174,8 @@ declare const _createClient: () => {
11849
13174
  name: string;
11850
13175
  createdAt: Date | null;
11851
13176
  updatedAt: Date | null;
11852
- id: number;
11853
13177
  code: string;
13178
+ id: number;
11854
13179
  exchangeRate: number;
11855
13180
  } | null;
11856
13181
  };
@@ -12366,8 +13691,8 @@ declare const _createClient: () => {
12366
13691
  } | null;
12367
13692
  currency: {
12368
13693
  name: string;
12369
- id: number;
12370
13694
  code: string;
13695
+ id: number;
12371
13696
  exchangeRate: number;
12372
13697
  } | null;
12373
13698
  supplier: {
@@ -12570,8 +13895,8 @@ declare const _createClient: () => {
12570
13895
  name: string;
12571
13896
  createdAt: Date | null;
12572
13897
  updatedAt: Date | null;
12573
- id: number;
12574
13898
  code: string;
13899
+ id: number;
12575
13900
  exchangeRate: number;
12576
13901
  } | null;
12577
13902
  };
@@ -13029,8 +14354,8 @@ declare const _createClient: () => {
13029
14354
  } | null;
13030
14355
  currency: {
13031
14356
  name: string;
13032
- id: number;
13033
14357
  code: string;
14358
+ id: number;
13034
14359
  exchangeRate: number;
13035
14360
  } | null;
13036
14361
  supplier: {
@@ -15404,8 +16729,8 @@ declare const _createClient: () => {
15404
16729
  createdAt: Date | null;
15405
16730
  updatedAt: Date | null;
15406
16731
  userAgent: string;
15407
- id: number;
15408
16732
  expiresAt: Date;
16733
+ id: number;
15409
16734
  ipAddress: string;
15410
16735
  user: {
15411
16736
  uuid: string;
@@ -17251,10 +18576,10 @@ declare const _createClient: () => {
17251
18576
  completedAt: Date | null;
17252
18577
  title: string;
17253
18578
  content: string | null;
18579
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
17254
18580
  manifestUuid: string | null;
17255
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";
17256
18582
  startedAt: Date;
17257
- category: "ORDER" | "PAYMENT" | "LOGISTICS";
17258
18583
  metadata: unknown;
17259
18584
  }[];
17260
18585
  orderCoupons: {
@@ -17547,10 +18872,10 @@ declare const _createClient: () => {
17547
18872
  completedAt: Date | null;
17548
18873
  title: string;
17549
18874
  content: string | null;
18875
+ category: "ORDER" | "PAYMENT" | "LOGISTICS";
17550
18876
  manifestUuid: string | null;
17551
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";
17552
18878
  startedAt: Date;
17553
- category: "ORDER" | "PAYMENT" | "LOGISTICS";
17554
18879
  metadata: unknown;
17555
18880
  }[];
17556
18881
  orderCoupons: {
@@ -17841,8 +19166,6 @@ declare const _createClient: () => {
17841
19166
  order_invoice_number: string;
17842
19167
  custom_data: any[];
17843
19168
  };
17844
- timestamp: number;
17845
- notification_type: "ORDER_PAID" | "TRANSACTION_VOID";
17846
19169
  transaction: {
17847
19170
  id: string;
17848
19171
  payment_method: string;
@@ -17853,6 +19176,8 @@ declare const _createClient: () => {
17853
19176
  transaction_amount: string;
17854
19177
  transaction_currency: string;
17855
19178
  };
19179
+ timestamp: number;
19180
+ notification_type: "ORDER_PAID" | "TRANSACTION_VOID";
17856
19181
  agreement: any;
17857
19182
  customer: {
17858
19183
  id: string;