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