@customafk/lunas-api-sdk 0.0.86 → 0.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Treaty } from "@elysiajs/eden";
2
2
  import * as _elysiajs_eden_dist_types_0YqzVuGd0 from "@elysiajs/eden/dist/types-0YqzVuGd";
3
+ import "elysia";
3
4
 
4
5
  //#region ../app/src/types.d.ts
5
6
  declare enum EMediaEntityType {
@@ -281,6 +282,15 @@ type TReceivedEmailListResult = {
281
282
  hasMore: boolean;
282
283
  };
283
284
  //#endregion
285
+ //#region ../app/src/shared/plugins/viettelpost.d.ts
286
+ type ViettelPostPriceResponse = {
287
+ SERVICE_CODE: string;
288
+ SERVICE_NAME: string;
289
+ PRICE: string;
290
+ KPI: string;
291
+ };
292
+ type ViettelPostRaw = Record<string, unknown>;
293
+ //#endregion
284
294
  //#region src/utils.d.ts
285
295
  declare const _createClient: () => {
286
296
  admin: {
@@ -3588,6 +3598,10 @@ declare const _createClient: () => {
3588
3598
  page?: number | undefined;
3589
3599
  limit?: number | undefined;
3590
3600
  search?: string | undefined;
3601
+ email?: string | undefined;
3602
+ phone?: string | undefined;
3603
+ role?: ERole | undefined;
3604
+ isActive?: boolean | undefined;
3591
3605
  } | undefined;
3592
3606
  } | undefined) => Promise<Treaty.TreatyResponse<{
3593
3607
  200: {
@@ -4573,6 +4587,52 @@ declare const _createClient: () => {
4573
4587
  }>>) & {
4574
4588
  '~path': string;
4575
4589
  };
4590
+ "rate-history": {
4591
+ get: ((options?: {
4592
+ fetch?: RequestInit | undefined;
4593
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
4594
+ headers?: {} | undefined;
4595
+ query?: {} | undefined;
4596
+ } | undefined) => Promise<Treaty.TreatyResponse<{
4597
+ 200: {
4598
+ success: false;
4599
+ statusCode: number;
4600
+ data: null;
4601
+ message: string;
4602
+ error: TResponseError;
4603
+ meta: TResponseMeta;
4604
+ } | {
4605
+ success: true;
4606
+ statusCode: number;
4607
+ data: {
4608
+ uuid: string;
4609
+ createdAt: Date;
4610
+ oldExchangeRate: number;
4611
+ newExchangeRate: number;
4612
+ actor: {
4613
+ uuid: string;
4614
+ username: string;
4615
+ };
4616
+ }[];
4617
+ message: null;
4618
+ error: null;
4619
+ meta: TResponseMeta;
4620
+ };
4621
+ 422: {
4622
+ type: "validation";
4623
+ on: string;
4624
+ summary?: string;
4625
+ message?: string;
4626
+ found?: unknown;
4627
+ property?: string;
4628
+ expected?: string;
4629
+ };
4630
+ }>>) & {
4631
+ '~path': string;
4632
+ };
4633
+ } & {
4634
+ '~path': string;
4635
+ };
4576
4636
  patch: ((body?: {
4577
4637
  code?: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL" | undefined;
4578
4638
  name?: string | undefined;
@@ -4685,6 +4745,52 @@ declare const _createClient: () => {
4685
4745
  }>>) & {
4686
4746
  '~path': string;
4687
4747
  };
4748
+ "rate-history": {
4749
+ get: ((options?: {
4750
+ fetch?: RequestInit | undefined;
4751
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
4752
+ headers?: {} | undefined;
4753
+ query?: {} | undefined;
4754
+ } | undefined) => Promise<Treaty.TreatyResponse<{
4755
+ 200: {
4756
+ success: false;
4757
+ statusCode: number;
4758
+ data: null;
4759
+ message: string;
4760
+ error: TResponseError;
4761
+ meta: TResponseMeta;
4762
+ } | {
4763
+ success: true;
4764
+ statusCode: number;
4765
+ data: {
4766
+ uuid: string;
4767
+ createdAt: Date;
4768
+ oldExchangeRate: number;
4769
+ newExchangeRate: number;
4770
+ actor: {
4771
+ uuid: string;
4772
+ username: string;
4773
+ };
4774
+ }[];
4775
+ message: null;
4776
+ error: null;
4777
+ meta: TResponseMeta;
4778
+ };
4779
+ 422: {
4780
+ type: "validation";
4781
+ on: string;
4782
+ summary?: string;
4783
+ message?: string;
4784
+ found?: unknown;
4785
+ property?: string;
4786
+ expected?: string;
4787
+ };
4788
+ }>>) & {
4789
+ '~path': string;
4790
+ };
4791
+ } & {
4792
+ '~path': string;
4793
+ };
4688
4794
  patch: ((body?: {
4689
4795
  code?: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL" | undefined;
4690
4796
  name?: string | undefined;
@@ -10232,6 +10338,7 @@ declare const _createClient: () => {
10232
10338
  quantityFulfilled: number;
10233
10339
  totalLineAmount: number;
10234
10340
  weightGram: number;
10341
+ shipmentCode: string | null;
10235
10342
  note: string | null;
10236
10343
  variant: {
10237
10344
  name: string;
@@ -11372,6 +11479,7 @@ declare const _createClient: () => {
11372
11479
  quantityFulfilled: number;
11373
11480
  totalLineAmount: number;
11374
11481
  weightGram: number;
11482
+ shipmentCode: string | null;
11375
11483
  note: string | null;
11376
11484
  variant: {
11377
11485
  name: string;
@@ -12485,6 +12593,7 @@ declare const _createClient: () => {
12485
12593
  productName?: string | undefined;
12486
12594
  originCountry?: string | undefined;
12487
12595
  vendorName?: string | undefined;
12596
+ shipmentCode?: string | undefined;
12488
12597
  orderStatus?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
12489
12598
  limit?: number | undefined;
12490
12599
  page?: number | undefined;
@@ -12518,6 +12627,7 @@ declare const _createClient: () => {
12518
12627
  quantityOrdered: number;
12519
12628
  quantityFulfilled: number;
12520
12629
  totalLineAmount: number;
12630
+ shipmentCode: string | null;
12521
12631
  order: {
12522
12632
  name: string | null;
12523
12633
  uuid: string;
@@ -12660,6 +12770,46 @@ declare const _createClient: () => {
12660
12770
  } & {
12661
12771
  '~path': string;
12662
12772
  };
12773
+ "shipment-code": {
12774
+ patch: ((body: {
12775
+ shipmentCode: string;
12776
+ manifestUuids: string[];
12777
+ }, options?: {
12778
+ fetch?: RequestInit | undefined;
12779
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
12780
+ headers?: {} | undefined;
12781
+ query?: {} | undefined;
12782
+ } | undefined) => Promise<Treaty.TreatyResponse<{
12783
+ 200: {
12784
+ success: true;
12785
+ statusCode: number;
12786
+ data: null;
12787
+ message: string;
12788
+ error: null;
12789
+ meta: TResponseMeta;
12790
+ } | {
12791
+ success: false;
12792
+ statusCode: number;
12793
+ data: null;
12794
+ message: string;
12795
+ error: TResponseError;
12796
+ meta: TResponseMeta;
12797
+ };
12798
+ 422: {
12799
+ type: "validation";
12800
+ on: string;
12801
+ summary?: string;
12802
+ message?: string;
12803
+ found?: unknown;
12804
+ property?: string;
12805
+ expected?: string;
12806
+ };
12807
+ }>>) & {
12808
+ '~path': string;
12809
+ };
12810
+ } & {
12811
+ '~path': string;
12812
+ };
12663
12813
  } & {
12664
12814
  '~path': string;
12665
12815
  };
@@ -12907,6 +13057,12 @@ declare const _createClient: () => {
12907
13057
  totalSales: number | null;
12908
13058
  lastOrderedAt: Date | null;
12909
13059
  lastViewedAt: Date | null;
13060
+ currency: {
13061
+ name: string;
13062
+ code: string;
13063
+ id: number;
13064
+ exchangeRate: number;
13065
+ } | null;
12910
13066
  variants: {
12911
13067
  name: string;
12912
13068
  uuid: string;
@@ -12968,12 +13124,6 @@ declare const _createClient: () => {
12968
13124
  uuid: string;
12969
13125
  description: string | null;
12970
13126
  } | null;
12971
- currency: {
12972
- name: string;
12973
- code: string;
12974
- id: number;
12975
- exchangeRate: number;
12976
- } | null;
12977
13127
  supplier: {
12978
13128
  name: string;
12979
13129
  uuid: string;
@@ -13136,6 +13286,7 @@ declare const _createClient: () => {
13136
13286
  deletedAt: Date | null;
13137
13287
  slug: string;
13138
13288
  createdBy: string;
13289
+ currencyId: number | null;
13139
13290
  seriesUuid: string | null;
13140
13291
  standardCost: number | null;
13141
13292
  retailCost: number | null;
@@ -13169,7 +13320,6 @@ declare const _createClient: () => {
13169
13320
  parentCategoryUuid: string | null;
13170
13321
  subCategoryUuid: string | null;
13171
13322
  supplierUuid: string | null;
13172
- currencyId: number | null;
13173
13323
  currency: {
13174
13324
  name: string;
13175
13325
  createdAt: Date | null;
@@ -13628,6 +13778,12 @@ declare const _createClient: () => {
13628
13778
  totalSales: number | null;
13629
13779
  lastOrderedAt: Date | null;
13630
13780
  lastViewedAt: Date | null;
13781
+ currency: {
13782
+ name: string;
13783
+ code: string;
13784
+ id: number;
13785
+ exchangeRate: number;
13786
+ } | null;
13631
13787
  variants: {
13632
13788
  name: string;
13633
13789
  uuid: string;
@@ -13689,12 +13845,6 @@ declare const _createClient: () => {
13689
13845
  uuid: string;
13690
13846
  description: string | null;
13691
13847
  } | null;
13692
- currency: {
13693
- name: string;
13694
- code: string;
13695
- id: number;
13696
- exchangeRate: number;
13697
- } | null;
13698
13848
  supplier: {
13699
13849
  name: string;
13700
13850
  uuid: string;
@@ -13857,6 +14007,7 @@ declare const _createClient: () => {
13857
14007
  deletedAt: Date | null;
13858
14008
  slug: string;
13859
14009
  createdBy: string;
14010
+ currencyId: number | null;
13860
14011
  seriesUuid: string | null;
13861
14012
  standardCost: number | null;
13862
14013
  retailCost: number | null;
@@ -13890,7 +14041,6 @@ declare const _createClient: () => {
13890
14041
  parentCategoryUuid: string | null;
13891
14042
  subCategoryUuid: string | null;
13892
14043
  supplierUuid: string | null;
13893
- currencyId: number | null;
13894
14044
  currency: {
13895
14045
  name: string;
13896
14046
  createdAt: Date | null;
@@ -14343,6 +14493,12 @@ declare const _createClient: () => {
14343
14493
  preOrderStartDate: Date | null;
14344
14494
  preOrderEndDate: Date | null;
14345
14495
  releaseDate: Date | null;
14496
+ currency: {
14497
+ name: string;
14498
+ code: string;
14499
+ id: number;
14500
+ exchangeRate: number;
14501
+ } | null;
14346
14502
  author: {
14347
14503
  uuid: string;
14348
14504
  email: string;
@@ -14352,12 +14508,6 @@ declare const _createClient: () => {
14352
14508
  name: string;
14353
14509
  uuid: string;
14354
14510
  } | null;
14355
- currency: {
14356
- name: string;
14357
- code: string;
14358
- id: number;
14359
- exchangeRate: number;
14360
- } | null;
14361
14511
  supplier: {
14362
14512
  name: string;
14363
14513
  uuid: string;
@@ -17261,6 +17411,699 @@ declare const _createClient: () => {
17261
17411
  } & {
17262
17412
  '~path': string;
17263
17413
  };
17414
+ viettelpost: {
17415
+ provinces: ((params: {
17416
+ provinceId: string | number;
17417
+ }) => {
17418
+ districts: ((params: {
17419
+ districtId: string | number;
17420
+ }) => {
17421
+ wards: {
17422
+ get: ((options?: {
17423
+ fetch?: RequestInit | undefined;
17424
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17425
+ headers?: {} | undefined;
17426
+ query?: {} | undefined;
17427
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17428
+ 200: {
17429
+ success: false;
17430
+ statusCode: number;
17431
+ data: null;
17432
+ message: string;
17433
+ error: TResponseError;
17434
+ meta: TResponseMeta;
17435
+ } | {
17436
+ success: true;
17437
+ statusCode: number;
17438
+ data: {
17439
+ wards: ViettelPostRaw[];
17440
+ };
17441
+ message: null;
17442
+ error: null;
17443
+ meta: TResponseMeta;
17444
+ };
17445
+ 422: {
17446
+ type: "validation";
17447
+ on: string;
17448
+ summary?: string;
17449
+ message?: string;
17450
+ found?: unknown;
17451
+ property?: string;
17452
+ expected?: string;
17453
+ };
17454
+ }>>) & {
17455
+ '~path': string;
17456
+ };
17457
+ } & {
17458
+ '~path': string;
17459
+ };
17460
+ '~path': string;
17461
+ } & {
17462
+ wards: {
17463
+ get: ((options?: {
17464
+ fetch?: RequestInit | undefined;
17465
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17466
+ headers?: {} | undefined;
17467
+ query?: {} | undefined;
17468
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17469
+ 200: {
17470
+ success: false;
17471
+ statusCode: number;
17472
+ data: null;
17473
+ message: string;
17474
+ error: TResponseError;
17475
+ meta: TResponseMeta;
17476
+ } | {
17477
+ success: true;
17478
+ statusCode: number;
17479
+ data: {
17480
+ wards: ViettelPostRaw[];
17481
+ };
17482
+ message: null;
17483
+ error: null;
17484
+ meta: TResponseMeta;
17485
+ };
17486
+ 422: {
17487
+ type: "validation";
17488
+ on: string;
17489
+ summary?: string;
17490
+ message?: string;
17491
+ found?: unknown;
17492
+ property?: string;
17493
+ expected?: string;
17494
+ };
17495
+ }>>) & {
17496
+ '~path': string;
17497
+ };
17498
+ } & {
17499
+ '~path': string;
17500
+ };
17501
+ }) & {
17502
+ get: ((options?: {
17503
+ fetch?: RequestInit | undefined;
17504
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17505
+ headers?: {} | undefined;
17506
+ query?: {} | undefined;
17507
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17508
+ 200: {
17509
+ success: false;
17510
+ statusCode: number;
17511
+ data: null;
17512
+ message: string;
17513
+ error: TResponseError;
17514
+ meta: TResponseMeta;
17515
+ } | {
17516
+ success: true;
17517
+ statusCode: number;
17518
+ data: {
17519
+ districts: ViettelPostRaw[];
17520
+ };
17521
+ message: null;
17522
+ error: null;
17523
+ meta: TResponseMeta;
17524
+ };
17525
+ 422: {
17526
+ type: "validation";
17527
+ on: string;
17528
+ summary?: string;
17529
+ message?: string;
17530
+ found?: unknown;
17531
+ property?: string;
17532
+ expected?: string;
17533
+ };
17534
+ }>>) & {
17535
+ '~path': string;
17536
+ };
17537
+ } & {
17538
+ '~path': string;
17539
+ };
17540
+ '~path': string;
17541
+ } & {
17542
+ districts: ((params: {
17543
+ districtId: string | number;
17544
+ }) => {
17545
+ wards: {
17546
+ get: ((options?: {
17547
+ fetch?: RequestInit | undefined;
17548
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17549
+ headers?: {} | undefined;
17550
+ query?: {} | undefined;
17551
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17552
+ 200: {
17553
+ success: false;
17554
+ statusCode: number;
17555
+ data: null;
17556
+ message: string;
17557
+ error: TResponseError;
17558
+ meta: TResponseMeta;
17559
+ } | {
17560
+ success: true;
17561
+ statusCode: number;
17562
+ data: {
17563
+ wards: ViettelPostRaw[];
17564
+ };
17565
+ message: null;
17566
+ error: null;
17567
+ meta: TResponseMeta;
17568
+ };
17569
+ 422: {
17570
+ type: "validation";
17571
+ on: string;
17572
+ summary?: string;
17573
+ message?: string;
17574
+ found?: unknown;
17575
+ property?: string;
17576
+ expected?: string;
17577
+ };
17578
+ }>>) & {
17579
+ '~path': string;
17580
+ };
17581
+ } & {
17582
+ '~path': string;
17583
+ };
17584
+ '~path': string;
17585
+ } & {
17586
+ wards: {
17587
+ get: ((options?: {
17588
+ fetch?: RequestInit | undefined;
17589
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17590
+ headers?: {} | undefined;
17591
+ query?: {} | undefined;
17592
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17593
+ 200: {
17594
+ success: false;
17595
+ statusCode: number;
17596
+ data: null;
17597
+ message: string;
17598
+ error: TResponseError;
17599
+ meta: TResponseMeta;
17600
+ } | {
17601
+ success: true;
17602
+ statusCode: number;
17603
+ data: {
17604
+ wards: ViettelPostRaw[];
17605
+ };
17606
+ message: null;
17607
+ error: null;
17608
+ meta: TResponseMeta;
17609
+ };
17610
+ 422: {
17611
+ type: "validation";
17612
+ on: string;
17613
+ summary?: string;
17614
+ message?: string;
17615
+ found?: unknown;
17616
+ property?: string;
17617
+ expected?: string;
17618
+ };
17619
+ }>>) & {
17620
+ '~path': string;
17621
+ };
17622
+ } & {
17623
+ '~path': string;
17624
+ };
17625
+ }) & {
17626
+ get: ((options?: {
17627
+ fetch?: RequestInit | undefined;
17628
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17629
+ headers?: {} | undefined;
17630
+ query?: {} | undefined;
17631
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17632
+ 200: {
17633
+ success: false;
17634
+ statusCode: number;
17635
+ data: null;
17636
+ message: string;
17637
+ error: TResponseError;
17638
+ meta: TResponseMeta;
17639
+ } | {
17640
+ success: true;
17641
+ statusCode: number;
17642
+ data: {
17643
+ districts: ViettelPostRaw[];
17644
+ };
17645
+ message: null;
17646
+ error: null;
17647
+ meta: TResponseMeta;
17648
+ };
17649
+ 422: {
17650
+ type: "validation";
17651
+ on: string;
17652
+ summary?: string;
17653
+ message?: string;
17654
+ found?: unknown;
17655
+ property?: string;
17656
+ expected?: string;
17657
+ };
17658
+ }>>) & {
17659
+ '~path': string;
17660
+ };
17661
+ } & {
17662
+ '~path': string;
17663
+ };
17664
+ }) & {
17665
+ get: ((options?: {
17666
+ fetch?: RequestInit | undefined;
17667
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17668
+ headers?: {} | undefined;
17669
+ query?: {} | undefined;
17670
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17671
+ 200: {
17672
+ success: false;
17673
+ statusCode: number;
17674
+ data: null;
17675
+ message: string;
17676
+ error: TResponseError;
17677
+ meta: TResponseMeta;
17678
+ } | {
17679
+ success: true;
17680
+ statusCode: number;
17681
+ data: {
17682
+ provinces: ViettelPostRaw[];
17683
+ };
17684
+ message: null;
17685
+ error: null;
17686
+ meta: TResponseMeta;
17687
+ };
17688
+ }>>) & {
17689
+ '~path': string;
17690
+ };
17691
+ } & {
17692
+ '~path': string;
17693
+ };
17694
+ pricing: {
17695
+ post: ((body: {
17696
+ senderProvinceId: number;
17697
+ senderDistrictId: number;
17698
+ senderWardId: number;
17699
+ receiverProvinceId: number;
17700
+ receiverDistrictId: number;
17701
+ receiverWardId: number;
17702
+ productWeight: number;
17703
+ productPrice: number;
17704
+ productLength?: number | undefined;
17705
+ productWidth?: number | undefined;
17706
+ productHeight?: number | undefined;
17707
+ moneyCollection?: number | undefined;
17708
+ orderService?: string | undefined;
17709
+ }, options?: {
17710
+ fetch?: RequestInit | undefined;
17711
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17712
+ headers?: {} | undefined;
17713
+ query?: {} | undefined;
17714
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17715
+ 200: {
17716
+ success: false;
17717
+ statusCode: number;
17718
+ data: null;
17719
+ message: string;
17720
+ error: TResponseError;
17721
+ meta: TResponseMeta;
17722
+ } | {
17723
+ success: true;
17724
+ statusCode: number;
17725
+ data: {
17726
+ prices: ViettelPostPriceResponse[];
17727
+ };
17728
+ message: null;
17729
+ error: null;
17730
+ meta: TResponseMeta;
17731
+ };
17732
+ 422: {
17733
+ type: "validation";
17734
+ on: string;
17735
+ summary?: string;
17736
+ message?: string;
17737
+ found?: unknown;
17738
+ property?: string;
17739
+ expected?: string;
17740
+ };
17741
+ }>>) & {
17742
+ '~path': string;
17743
+ };
17744
+ single: {
17745
+ post: ((body: {
17746
+ senderProvinceId: number;
17747
+ senderDistrictId: number;
17748
+ senderWardId: number;
17749
+ receiverProvinceId: number;
17750
+ receiverDistrictId: number;
17751
+ receiverWardId: number;
17752
+ productWeight: number;
17753
+ productPrice: number;
17754
+ orderService: string;
17755
+ productLength?: number | undefined;
17756
+ productWidth?: number | undefined;
17757
+ productHeight?: number | undefined;
17758
+ moneyCollection?: number | undefined;
17759
+ }, options?: {
17760
+ fetch?: RequestInit | undefined;
17761
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17762
+ headers?: {} | undefined;
17763
+ query?: {} | undefined;
17764
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17765
+ 200: {
17766
+ success: false;
17767
+ statusCode: number;
17768
+ data: null;
17769
+ message: string;
17770
+ error: TResponseError;
17771
+ meta: TResponseMeta;
17772
+ } | {
17773
+ success: true;
17774
+ statusCode: number;
17775
+ data: {
17776
+ quote: ViettelPostRaw;
17777
+ };
17778
+ message: null;
17779
+ error: null;
17780
+ meta: TResponseMeta;
17781
+ };
17782
+ 422: {
17783
+ type: "validation";
17784
+ on: string;
17785
+ summary?: string;
17786
+ message?: string;
17787
+ found?: unknown;
17788
+ property?: string;
17789
+ expected?: string;
17790
+ };
17791
+ }>>) & {
17792
+ '~path': string;
17793
+ };
17794
+ } & {
17795
+ '~path': string;
17796
+ };
17797
+ nlp: {
17798
+ post: ((body: {
17799
+ senderAddressNlp: string;
17800
+ receiverAddressNlp: string;
17801
+ productWeight: number;
17802
+ productPrice: number;
17803
+ orderService: string;
17804
+ productLength?: number | undefined;
17805
+ productWidth?: number | undefined;
17806
+ productHeight?: number | undefined;
17807
+ moneyCollection?: number | undefined;
17808
+ }, options?: {
17809
+ fetch?: RequestInit | undefined;
17810
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17811
+ headers?: {} | undefined;
17812
+ query?: {} | undefined;
17813
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17814
+ 200: {
17815
+ success: false;
17816
+ statusCode: number;
17817
+ data: null;
17818
+ message: string;
17819
+ error: TResponseError;
17820
+ meta: TResponseMeta;
17821
+ } | {
17822
+ success: true;
17823
+ statusCode: number;
17824
+ data: {
17825
+ quote: ViettelPostRaw;
17826
+ };
17827
+ message: null;
17828
+ error: null;
17829
+ meta: TResponseMeta;
17830
+ };
17831
+ 422: {
17832
+ type: "validation";
17833
+ on: string;
17834
+ summary?: string;
17835
+ message?: string;
17836
+ found?: unknown;
17837
+ property?: string;
17838
+ expected?: string;
17839
+ };
17840
+ }>>) & {
17841
+ '~path': string;
17842
+ };
17843
+ } & {
17844
+ '~path': string;
17845
+ };
17846
+ } & {
17847
+ '~path': string;
17848
+ };
17849
+ orders: ((params: {
17850
+ orderNumber: string | number;
17851
+ }) => {
17852
+ get: ((options?: {
17853
+ fetch?: RequestInit | undefined;
17854
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17855
+ headers?: {} | undefined;
17856
+ query?: {} | undefined;
17857
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17858
+ 200: {
17859
+ success: false;
17860
+ statusCode: number;
17861
+ data: null;
17862
+ message: string;
17863
+ error: TResponseError;
17864
+ meta: TResponseMeta;
17865
+ } | {
17866
+ success: true;
17867
+ statusCode: number;
17868
+ data: {
17869
+ order: ViettelPostRaw;
17870
+ };
17871
+ message: null;
17872
+ error: null;
17873
+ meta: TResponseMeta;
17874
+ };
17875
+ 422: {
17876
+ type: "validation";
17877
+ on: string;
17878
+ summary?: string;
17879
+ message?: string;
17880
+ found?: unknown;
17881
+ property?: string;
17882
+ expected?: string;
17883
+ };
17884
+ }>>) & {
17885
+ '~path': string;
17886
+ };
17887
+ '~path': string;
17888
+ } & {
17889
+ get: ((options?: {
17890
+ fetch?: RequestInit | undefined;
17891
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17892
+ headers?: {} | undefined;
17893
+ query?: {} | undefined;
17894
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17895
+ 200: {
17896
+ success: false;
17897
+ statusCode: number;
17898
+ data: null;
17899
+ message: string;
17900
+ error: TResponseError;
17901
+ meta: TResponseMeta;
17902
+ } | {
17903
+ success: true;
17904
+ statusCode: number;
17905
+ data: {
17906
+ order: ViettelPostRaw;
17907
+ };
17908
+ message: null;
17909
+ error: null;
17910
+ meta: TResponseMeta;
17911
+ };
17912
+ 422: {
17913
+ type: "validation";
17914
+ on: string;
17915
+ summary?: string;
17916
+ message?: string;
17917
+ found?: unknown;
17918
+ property?: string;
17919
+ expected?: string;
17920
+ };
17921
+ }>>) & {
17922
+ '~path': string;
17923
+ };
17924
+ }) & {
17925
+ post: ((body: {
17926
+ senderFullname: string;
17927
+ senderPhone: string;
17928
+ senderAddress: string;
17929
+ senderProvinceId: number;
17930
+ senderDistrictId: number;
17931
+ senderWardId: number;
17932
+ receiverFullname: string;
17933
+ receiverPhone: string;
17934
+ receiverAddress: string;
17935
+ receiverProvinceId: number;
17936
+ receiverDistrictId: number;
17937
+ receiverWardId: number;
17938
+ productName: string;
17939
+ productQuantity: number;
17940
+ productPrice: number;
17941
+ productWeight: number;
17942
+ productType: "TH" | "HH";
17943
+ moneyTotal: number;
17944
+ orderService: string;
17945
+ orderPayment: 1 | 4 | 2 | 3;
17946
+ orderNumber?: string | undefined;
17947
+ orderReference?: string | undefined;
17948
+ senderEmail?: string | undefined;
17949
+ receiverEmail?: string | undefined;
17950
+ productDescription?: string | undefined;
17951
+ productLength?: number | undefined;
17952
+ productWidth?: number | undefined;
17953
+ productHeight?: number | undefined;
17954
+ listItem?: {
17955
+ productName: string;
17956
+ productQuantity: number;
17957
+ productPrice: number;
17958
+ productWeight: number;
17959
+ productType: "TH" | "HH";
17960
+ orderNumber?: string | undefined;
17961
+ orderNumberItem?: string | undefined;
17962
+ }[] | undefined;
17963
+ moneyCollection?: number | undefined;
17964
+ moneyFee?: number | undefined;
17965
+ moneyFeeCod?: number | undefined;
17966
+ moneyFeeInsurance?: number | undefined;
17967
+ moneyFeeVas?: number | undefined;
17968
+ moneyFeeOther?: number | undefined;
17969
+ moneyTotalFee?: number | undefined;
17970
+ moneyTotalVat?: number | undefined;
17971
+ extraMoney?: number | undefined;
17972
+ orderServiceAdd?: string | undefined;
17973
+ orderType?: number | undefined;
17974
+ pickupDate?: string | undefined;
17975
+ deliveryDate?: string | undefined;
17976
+ pickupCode?: number | undefined;
17977
+ deliveryCode?: 1 | 5 | 4 | 2 | 6 | 3 | -1 | undefined;
17978
+ orderNote?: string | undefined;
17979
+ orderVoucher?: string | undefined;
17980
+ checkUnique?: boolean | undefined;
17981
+ }, options?: {
17982
+ fetch?: RequestInit | undefined;
17983
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17984
+ headers?: {} | undefined;
17985
+ query?: {} | undefined;
17986
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17987
+ 200: {
17988
+ success: false;
17989
+ statusCode: number;
17990
+ data: null;
17991
+ message: string;
17992
+ error: TResponseError;
17993
+ meta: TResponseMeta;
17994
+ } | {
17995
+ success: true;
17996
+ statusCode: number;
17997
+ data: {
17998
+ order: ViettelPostRaw;
17999
+ };
18000
+ message: null;
18001
+ error: null;
18002
+ meta: TResponseMeta;
18003
+ };
18004
+ 422: {
18005
+ type: "validation";
18006
+ on: string;
18007
+ summary?: string;
18008
+ message?: string;
18009
+ found?: unknown;
18010
+ property?: string;
18011
+ expected?: string;
18012
+ };
18013
+ }>>) & {
18014
+ '~path': string;
18015
+ };
18016
+ get: ((options: {
18017
+ fetch?: RequestInit | undefined;
18018
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
18019
+ headers?: {} | undefined;
18020
+ query: {
18021
+ page: number;
18022
+ search?: string | undefined;
18023
+ fromDate?: string | undefined;
18024
+ toDate?: string | undefined;
18025
+ statusCodes?: string | undefined;
18026
+ };
18027
+ }) => Promise<Treaty.TreatyResponse<{
18028
+ 200: {
18029
+ success: false;
18030
+ statusCode: number;
18031
+ data: null;
18032
+ message: string;
18033
+ error: TResponseError;
18034
+ meta: TResponseMeta;
18035
+ } | {
18036
+ success: true;
18037
+ statusCode: number;
18038
+ data: {
18039
+ orders: ViettelPostRaw[];
18040
+ };
18041
+ message: null;
18042
+ error: null;
18043
+ meta: TResponseMeta;
18044
+ };
18045
+ 422: {
18046
+ type: "validation";
18047
+ on: string;
18048
+ summary?: string;
18049
+ message?: string;
18050
+ found?: unknown;
18051
+ property?: string;
18052
+ expected?: string;
18053
+ };
18054
+ }>>) & {
18055
+ '~path': string;
18056
+ };
18057
+ } & {
18058
+ '~path': string;
18059
+ };
18060
+ token: {
18061
+ post: ((body?: {
18062
+ username?: string | undefined;
18063
+ password?: string | undefined;
18064
+ partnerCode?: string | undefined;
18065
+ } | undefined, options?: {
18066
+ fetch?: RequestInit | undefined;
18067
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
18068
+ headers?: {} | undefined;
18069
+ query?: {} | undefined;
18070
+ } | undefined) => Promise<Treaty.TreatyResponse<{
18071
+ 200: {
18072
+ success: false;
18073
+ statusCode: number;
18074
+ data: null;
18075
+ message: string;
18076
+ error: TResponseError;
18077
+ meta: TResponseMeta;
18078
+ } | {
18079
+ success: true;
18080
+ statusCode: number;
18081
+ data: {
18082
+ token: string;
18083
+ expiredAt: string;
18084
+ };
18085
+ message: null;
18086
+ error: null;
18087
+ meta: TResponseMeta;
18088
+ };
18089
+ 422: {
18090
+ type: "validation";
18091
+ on: string;
18092
+ summary?: string;
18093
+ message?: string;
18094
+ found?: unknown;
18095
+ property?: string;
18096
+ expected?: string;
18097
+ };
18098
+ }>>) & {
18099
+ '~path': string;
18100
+ };
18101
+ } & {
18102
+ '~path': string;
18103
+ };
18104
+ } & {
18105
+ '~path': string;
18106
+ };
17264
18107
  } & {
17265
18108
  '~path': string;
17266
18109
  };