@customafk/lunas-api-sdk 0.0.86 → 0.0.88

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,39 @@ 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 ViettelPostResolvedAddress = {
292
+ PROVINCE_ID: number;
293
+ DISTRICT_ID: number;
294
+ WARD_ID: number;
295
+ ADDRESS: string;
296
+ };
297
+ type ViettelPostPriceAllNlpExtraService = {
298
+ SERVICE_CODE: string;
299
+ SERVICE_NAME: string;
300
+ DESCRIPTION: string;
301
+ };
302
+ type ViettelPostPriceAllNlpResult = {
303
+ MA_DV_CHINH: string;
304
+ TEN_DICHVU: string;
305
+ GIA_CUOC: number;
306
+ THOI_GIAN: string;
307
+ EXCHANGE_WEIGHT: number;
308
+ EXTRA_SERVICE?: ViettelPostPriceAllNlpExtraService[];
309
+ };
310
+ type ViettelPostPriceAllNlpResponse = {
311
+ SENDER_ADDRESS: ViettelPostResolvedAddress;
312
+ RECEIVER_ADDRESS: ViettelPostResolvedAddress;
313
+ RESULT: ViettelPostPriceAllNlpResult[];
314
+ };
315
+ type ViettelPostRaw = Record<string, unknown>;
316
+ //#endregion
284
317
  //#region src/utils.d.ts
285
318
  declare const _createClient: () => {
286
319
  admin: {
@@ -3588,6 +3621,10 @@ declare const _createClient: () => {
3588
3621
  page?: number | undefined;
3589
3622
  limit?: number | undefined;
3590
3623
  search?: string | undefined;
3624
+ email?: string | undefined;
3625
+ phone?: string | undefined;
3626
+ role?: ERole | undefined;
3627
+ isActive?: boolean | undefined;
3591
3628
  } | undefined;
3592
3629
  } | undefined) => Promise<Treaty.TreatyResponse<{
3593
3630
  200: {
@@ -4573,6 +4610,52 @@ declare const _createClient: () => {
4573
4610
  }>>) & {
4574
4611
  '~path': string;
4575
4612
  };
4613
+ "rate-history": {
4614
+ get: ((options?: {
4615
+ fetch?: RequestInit | undefined;
4616
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
4617
+ headers?: {} | undefined;
4618
+ query?: {} | undefined;
4619
+ } | undefined) => Promise<Treaty.TreatyResponse<{
4620
+ 200: {
4621
+ success: false;
4622
+ statusCode: number;
4623
+ data: null;
4624
+ message: string;
4625
+ error: TResponseError;
4626
+ meta: TResponseMeta;
4627
+ } | {
4628
+ success: true;
4629
+ statusCode: number;
4630
+ data: {
4631
+ uuid: string;
4632
+ createdAt: Date;
4633
+ oldExchangeRate: number;
4634
+ newExchangeRate: number;
4635
+ actor: {
4636
+ uuid: string;
4637
+ username: string;
4638
+ };
4639
+ }[];
4640
+ message: null;
4641
+ error: null;
4642
+ meta: TResponseMeta;
4643
+ };
4644
+ 422: {
4645
+ type: "validation";
4646
+ on: string;
4647
+ summary?: string;
4648
+ message?: string;
4649
+ found?: unknown;
4650
+ property?: string;
4651
+ expected?: string;
4652
+ };
4653
+ }>>) & {
4654
+ '~path': string;
4655
+ };
4656
+ } & {
4657
+ '~path': string;
4658
+ };
4576
4659
  patch: ((body?: {
4577
4660
  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
4661
  name?: string | undefined;
@@ -4685,6 +4768,52 @@ declare const _createClient: () => {
4685
4768
  }>>) & {
4686
4769
  '~path': string;
4687
4770
  };
4771
+ "rate-history": {
4772
+ get: ((options?: {
4773
+ fetch?: RequestInit | undefined;
4774
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
4775
+ headers?: {} | undefined;
4776
+ query?: {} | undefined;
4777
+ } | undefined) => Promise<Treaty.TreatyResponse<{
4778
+ 200: {
4779
+ success: false;
4780
+ statusCode: number;
4781
+ data: null;
4782
+ message: string;
4783
+ error: TResponseError;
4784
+ meta: TResponseMeta;
4785
+ } | {
4786
+ success: true;
4787
+ statusCode: number;
4788
+ data: {
4789
+ uuid: string;
4790
+ createdAt: Date;
4791
+ oldExchangeRate: number;
4792
+ newExchangeRate: number;
4793
+ actor: {
4794
+ uuid: string;
4795
+ username: string;
4796
+ };
4797
+ }[];
4798
+ message: null;
4799
+ error: null;
4800
+ meta: TResponseMeta;
4801
+ };
4802
+ 422: {
4803
+ type: "validation";
4804
+ on: string;
4805
+ summary?: string;
4806
+ message?: string;
4807
+ found?: unknown;
4808
+ property?: string;
4809
+ expected?: string;
4810
+ };
4811
+ }>>) & {
4812
+ '~path': string;
4813
+ };
4814
+ } & {
4815
+ '~path': string;
4816
+ };
4688
4817
  patch: ((body?: {
4689
4818
  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
4819
  name?: string | undefined;
@@ -10232,6 +10361,7 @@ declare const _createClient: () => {
10232
10361
  quantityFulfilled: number;
10233
10362
  totalLineAmount: number;
10234
10363
  weightGram: number;
10364
+ shipmentCode: string | null;
10235
10365
  note: string | null;
10236
10366
  variant: {
10237
10367
  name: string;
@@ -11372,6 +11502,7 @@ declare const _createClient: () => {
11372
11502
  quantityFulfilled: number;
11373
11503
  totalLineAmount: number;
11374
11504
  weightGram: number;
11505
+ shipmentCode: string | null;
11375
11506
  note: string | null;
11376
11507
  variant: {
11377
11508
  name: string;
@@ -12485,6 +12616,7 @@ declare const _createClient: () => {
12485
12616
  productName?: string | undefined;
12486
12617
  originCountry?: string | undefined;
12487
12618
  vendorName?: string | undefined;
12619
+ shipmentCode?: string | undefined;
12488
12620
  orderStatus?: "DRAFT" | "PENDING" | "CONFIRMED" | "PROCESSING" | "COMPLETED" | "CANCELLED" | undefined;
12489
12621
  limit?: number | undefined;
12490
12622
  page?: number | undefined;
@@ -12518,6 +12650,7 @@ declare const _createClient: () => {
12518
12650
  quantityOrdered: number;
12519
12651
  quantityFulfilled: number;
12520
12652
  totalLineAmount: number;
12653
+ shipmentCode: string | null;
12521
12654
  order: {
12522
12655
  name: string | null;
12523
12656
  uuid: string;
@@ -12660,6 +12793,46 @@ declare const _createClient: () => {
12660
12793
  } & {
12661
12794
  '~path': string;
12662
12795
  };
12796
+ "shipment-code": {
12797
+ patch: ((body: {
12798
+ shipmentCode: string;
12799
+ manifestUuids: string[];
12800
+ }, options?: {
12801
+ fetch?: RequestInit | undefined;
12802
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
12803
+ headers?: {} | undefined;
12804
+ query?: {} | undefined;
12805
+ } | undefined) => Promise<Treaty.TreatyResponse<{
12806
+ 200: {
12807
+ success: true;
12808
+ statusCode: number;
12809
+ data: null;
12810
+ message: string;
12811
+ error: null;
12812
+ meta: TResponseMeta;
12813
+ } | {
12814
+ success: false;
12815
+ statusCode: number;
12816
+ data: null;
12817
+ message: string;
12818
+ error: TResponseError;
12819
+ meta: TResponseMeta;
12820
+ };
12821
+ 422: {
12822
+ type: "validation";
12823
+ on: string;
12824
+ summary?: string;
12825
+ message?: string;
12826
+ found?: unknown;
12827
+ property?: string;
12828
+ expected?: string;
12829
+ };
12830
+ }>>) & {
12831
+ '~path': string;
12832
+ };
12833
+ } & {
12834
+ '~path': string;
12835
+ };
12663
12836
  } & {
12664
12837
  '~path': string;
12665
12838
  };
@@ -12907,6 +13080,12 @@ declare const _createClient: () => {
12907
13080
  totalSales: number | null;
12908
13081
  lastOrderedAt: Date | null;
12909
13082
  lastViewedAt: Date | null;
13083
+ currency: {
13084
+ name: string;
13085
+ code: string;
13086
+ id: number;
13087
+ exchangeRate: number;
13088
+ } | null;
12910
13089
  variants: {
12911
13090
  name: string;
12912
13091
  uuid: string;
@@ -12968,12 +13147,6 @@ declare const _createClient: () => {
12968
13147
  uuid: string;
12969
13148
  description: string | null;
12970
13149
  } | null;
12971
- currency: {
12972
- name: string;
12973
- code: string;
12974
- id: number;
12975
- exchangeRate: number;
12976
- } | null;
12977
13150
  supplier: {
12978
13151
  name: string;
12979
13152
  uuid: string;
@@ -13136,6 +13309,7 @@ declare const _createClient: () => {
13136
13309
  deletedAt: Date | null;
13137
13310
  slug: string;
13138
13311
  createdBy: string;
13312
+ currencyId: number | null;
13139
13313
  seriesUuid: string | null;
13140
13314
  standardCost: number | null;
13141
13315
  retailCost: number | null;
@@ -13169,7 +13343,6 @@ declare const _createClient: () => {
13169
13343
  parentCategoryUuid: string | null;
13170
13344
  subCategoryUuid: string | null;
13171
13345
  supplierUuid: string | null;
13172
- currencyId: number | null;
13173
13346
  currency: {
13174
13347
  name: string;
13175
13348
  createdAt: Date | null;
@@ -13628,6 +13801,12 @@ declare const _createClient: () => {
13628
13801
  totalSales: number | null;
13629
13802
  lastOrderedAt: Date | null;
13630
13803
  lastViewedAt: Date | null;
13804
+ currency: {
13805
+ name: string;
13806
+ code: string;
13807
+ id: number;
13808
+ exchangeRate: number;
13809
+ } | null;
13631
13810
  variants: {
13632
13811
  name: string;
13633
13812
  uuid: string;
@@ -13689,12 +13868,6 @@ declare const _createClient: () => {
13689
13868
  uuid: string;
13690
13869
  description: string | null;
13691
13870
  } | null;
13692
- currency: {
13693
- name: string;
13694
- code: string;
13695
- id: number;
13696
- exchangeRate: number;
13697
- } | null;
13698
13871
  supplier: {
13699
13872
  name: string;
13700
13873
  uuid: string;
@@ -13857,6 +14030,7 @@ declare const _createClient: () => {
13857
14030
  deletedAt: Date | null;
13858
14031
  slug: string;
13859
14032
  createdBy: string;
14033
+ currencyId: number | null;
13860
14034
  seriesUuid: string | null;
13861
14035
  standardCost: number | null;
13862
14036
  retailCost: number | null;
@@ -13890,7 +14064,6 @@ declare const _createClient: () => {
13890
14064
  parentCategoryUuid: string | null;
13891
14065
  subCategoryUuid: string | null;
13892
14066
  supplierUuid: string | null;
13893
- currencyId: number | null;
13894
14067
  currency: {
13895
14068
  name: string;
13896
14069
  createdAt: Date | null;
@@ -14343,6 +14516,12 @@ declare const _createClient: () => {
14343
14516
  preOrderStartDate: Date | null;
14344
14517
  preOrderEndDate: Date | null;
14345
14518
  releaseDate: Date | null;
14519
+ currency: {
14520
+ name: string;
14521
+ code: string;
14522
+ id: number;
14523
+ exchangeRate: number;
14524
+ } | null;
14346
14525
  author: {
14347
14526
  uuid: string;
14348
14527
  email: string;
@@ -14352,12 +14531,6 @@ declare const _createClient: () => {
14352
14531
  name: string;
14353
14532
  uuid: string;
14354
14533
  } | null;
14355
- currency: {
14356
- name: string;
14357
- code: string;
14358
- id: number;
14359
- exchangeRate: number;
14360
- } | null;
14361
14534
  supplier: {
14362
14535
  name: string;
14363
14536
  uuid: string;
@@ -17261,6 +17434,820 @@ declare const _createClient: () => {
17261
17434
  } & {
17262
17435
  '~path': string;
17263
17436
  };
17437
+ viettelpost: {
17438
+ provinces: ((params: {
17439
+ provinceId: string | number;
17440
+ }) => {
17441
+ districts: ((params: {
17442
+ districtId: string | number;
17443
+ }) => {
17444
+ wards: {
17445
+ get: ((options?: {
17446
+ fetch?: RequestInit | undefined;
17447
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17448
+ headers?: {} | undefined;
17449
+ query?: {} | undefined;
17450
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17451
+ 200: {
17452
+ success: false;
17453
+ statusCode: number;
17454
+ data: null;
17455
+ message: string;
17456
+ error: TResponseError;
17457
+ meta: TResponseMeta;
17458
+ } | {
17459
+ success: true;
17460
+ statusCode: number;
17461
+ data: {
17462
+ wards: ViettelPostRaw[];
17463
+ };
17464
+ message: null;
17465
+ error: null;
17466
+ meta: TResponseMeta;
17467
+ };
17468
+ 422: {
17469
+ type: "validation";
17470
+ on: string;
17471
+ summary?: string;
17472
+ message?: string;
17473
+ found?: unknown;
17474
+ property?: string;
17475
+ expected?: string;
17476
+ };
17477
+ }>>) & {
17478
+ '~path': string;
17479
+ };
17480
+ } & {
17481
+ '~path': string;
17482
+ };
17483
+ '~path': string;
17484
+ } & {
17485
+ wards: {
17486
+ get: ((options?: {
17487
+ fetch?: RequestInit | undefined;
17488
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17489
+ headers?: {} | undefined;
17490
+ query?: {} | undefined;
17491
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17492
+ 200: {
17493
+ success: false;
17494
+ statusCode: number;
17495
+ data: null;
17496
+ message: string;
17497
+ error: TResponseError;
17498
+ meta: TResponseMeta;
17499
+ } | {
17500
+ success: true;
17501
+ statusCode: number;
17502
+ data: {
17503
+ wards: ViettelPostRaw[];
17504
+ };
17505
+ message: null;
17506
+ error: null;
17507
+ meta: TResponseMeta;
17508
+ };
17509
+ 422: {
17510
+ type: "validation";
17511
+ on: string;
17512
+ summary?: string;
17513
+ message?: string;
17514
+ found?: unknown;
17515
+ property?: string;
17516
+ expected?: string;
17517
+ };
17518
+ }>>) & {
17519
+ '~path': string;
17520
+ };
17521
+ } & {
17522
+ '~path': string;
17523
+ };
17524
+ }) & {
17525
+ get: ((options?: {
17526
+ fetch?: RequestInit | undefined;
17527
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17528
+ headers?: {} | undefined;
17529
+ query?: {} | undefined;
17530
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17531
+ 200: {
17532
+ success: false;
17533
+ statusCode: number;
17534
+ data: null;
17535
+ message: string;
17536
+ error: TResponseError;
17537
+ meta: TResponseMeta;
17538
+ } | {
17539
+ success: true;
17540
+ statusCode: number;
17541
+ data: {
17542
+ districts: ViettelPostRaw[];
17543
+ };
17544
+ message: null;
17545
+ error: null;
17546
+ meta: TResponseMeta;
17547
+ };
17548
+ 422: {
17549
+ type: "validation";
17550
+ on: string;
17551
+ summary?: string;
17552
+ message?: string;
17553
+ found?: unknown;
17554
+ property?: string;
17555
+ expected?: string;
17556
+ };
17557
+ }>>) & {
17558
+ '~path': string;
17559
+ };
17560
+ } & {
17561
+ '~path': string;
17562
+ };
17563
+ '~path': string;
17564
+ } & {
17565
+ districts: ((params: {
17566
+ districtId: string | number;
17567
+ }) => {
17568
+ wards: {
17569
+ get: ((options?: {
17570
+ fetch?: RequestInit | undefined;
17571
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17572
+ headers?: {} | undefined;
17573
+ query?: {} | undefined;
17574
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17575
+ 200: {
17576
+ success: false;
17577
+ statusCode: number;
17578
+ data: null;
17579
+ message: string;
17580
+ error: TResponseError;
17581
+ meta: TResponseMeta;
17582
+ } | {
17583
+ success: true;
17584
+ statusCode: number;
17585
+ data: {
17586
+ wards: ViettelPostRaw[];
17587
+ };
17588
+ message: null;
17589
+ error: null;
17590
+ meta: TResponseMeta;
17591
+ };
17592
+ 422: {
17593
+ type: "validation";
17594
+ on: string;
17595
+ summary?: string;
17596
+ message?: string;
17597
+ found?: unknown;
17598
+ property?: string;
17599
+ expected?: string;
17600
+ };
17601
+ }>>) & {
17602
+ '~path': string;
17603
+ };
17604
+ } & {
17605
+ '~path': string;
17606
+ };
17607
+ '~path': string;
17608
+ } & {
17609
+ wards: {
17610
+ get: ((options?: {
17611
+ fetch?: RequestInit | undefined;
17612
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17613
+ headers?: {} | undefined;
17614
+ query?: {} | undefined;
17615
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17616
+ 200: {
17617
+ success: false;
17618
+ statusCode: number;
17619
+ data: null;
17620
+ message: string;
17621
+ error: TResponseError;
17622
+ meta: TResponseMeta;
17623
+ } | {
17624
+ success: true;
17625
+ statusCode: number;
17626
+ data: {
17627
+ wards: ViettelPostRaw[];
17628
+ };
17629
+ message: null;
17630
+ error: null;
17631
+ meta: TResponseMeta;
17632
+ };
17633
+ 422: {
17634
+ type: "validation";
17635
+ on: string;
17636
+ summary?: string;
17637
+ message?: string;
17638
+ found?: unknown;
17639
+ property?: string;
17640
+ expected?: string;
17641
+ };
17642
+ }>>) & {
17643
+ '~path': string;
17644
+ };
17645
+ } & {
17646
+ '~path': string;
17647
+ };
17648
+ }) & {
17649
+ get: ((options?: {
17650
+ fetch?: RequestInit | undefined;
17651
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17652
+ headers?: {} | undefined;
17653
+ query?: {} | undefined;
17654
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17655
+ 200: {
17656
+ success: false;
17657
+ statusCode: number;
17658
+ data: null;
17659
+ message: string;
17660
+ error: TResponseError;
17661
+ meta: TResponseMeta;
17662
+ } | {
17663
+ success: true;
17664
+ statusCode: number;
17665
+ data: {
17666
+ districts: ViettelPostRaw[];
17667
+ };
17668
+ message: null;
17669
+ error: null;
17670
+ meta: TResponseMeta;
17671
+ };
17672
+ 422: {
17673
+ type: "validation";
17674
+ on: string;
17675
+ summary?: string;
17676
+ message?: string;
17677
+ found?: unknown;
17678
+ property?: string;
17679
+ expected?: string;
17680
+ };
17681
+ }>>) & {
17682
+ '~path': string;
17683
+ };
17684
+ } & {
17685
+ '~path': string;
17686
+ };
17687
+ }) & {
17688
+ get: ((options?: {
17689
+ fetch?: RequestInit | undefined;
17690
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17691
+ headers?: {} | undefined;
17692
+ query?: {} | undefined;
17693
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17694
+ 200: {
17695
+ success: false;
17696
+ statusCode: number;
17697
+ data: null;
17698
+ message: string;
17699
+ error: TResponseError;
17700
+ meta: TResponseMeta;
17701
+ } | {
17702
+ success: true;
17703
+ statusCode: number;
17704
+ data: {
17705
+ provinces: ViettelPostRaw[];
17706
+ };
17707
+ message: null;
17708
+ error: null;
17709
+ meta: TResponseMeta;
17710
+ };
17711
+ }>>) & {
17712
+ '~path': string;
17713
+ };
17714
+ } & {
17715
+ '~path': string;
17716
+ };
17717
+ pricing: {
17718
+ post: ((body: {
17719
+ senderProvinceId: number;
17720
+ senderDistrictId: number;
17721
+ senderWardId: number;
17722
+ receiverProvinceId: number;
17723
+ receiverDistrictId: number;
17724
+ receiverWardId: number;
17725
+ productWeight: number;
17726
+ productPrice: number;
17727
+ productLength?: number | undefined;
17728
+ productWidth?: number | undefined;
17729
+ productHeight?: number | undefined;
17730
+ moneyCollection?: number | undefined;
17731
+ orderService?: string | undefined;
17732
+ }, options?: {
17733
+ fetch?: RequestInit | undefined;
17734
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17735
+ headers?: {} | undefined;
17736
+ query?: {} | undefined;
17737
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17738
+ 200: {
17739
+ success: false;
17740
+ statusCode: number;
17741
+ data: null;
17742
+ message: string;
17743
+ error: TResponseError;
17744
+ meta: TResponseMeta;
17745
+ } | {
17746
+ success: true;
17747
+ statusCode: number;
17748
+ data: {
17749
+ prices: ViettelPostPriceResponse[];
17750
+ };
17751
+ message: null;
17752
+ error: null;
17753
+ meta: TResponseMeta;
17754
+ };
17755
+ 422: {
17756
+ type: "validation";
17757
+ on: string;
17758
+ summary?: string;
17759
+ message?: string;
17760
+ found?: unknown;
17761
+ property?: string;
17762
+ expected?: string;
17763
+ };
17764
+ }>>) & {
17765
+ '~path': string;
17766
+ };
17767
+ single: {
17768
+ post: ((body: {
17769
+ senderProvinceId: number;
17770
+ senderDistrictId: number;
17771
+ senderWardId: number;
17772
+ receiverProvinceId: number;
17773
+ receiverDistrictId: number;
17774
+ receiverWardId: number;
17775
+ productWeight: number;
17776
+ productPrice: number;
17777
+ orderService: string;
17778
+ productLength?: number | undefined;
17779
+ productWidth?: number | undefined;
17780
+ productHeight?: number | undefined;
17781
+ moneyCollection?: number | undefined;
17782
+ }, options?: {
17783
+ fetch?: RequestInit | undefined;
17784
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17785
+ headers?: {} | undefined;
17786
+ query?: {} | undefined;
17787
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17788
+ 200: {
17789
+ success: false;
17790
+ statusCode: number;
17791
+ data: null;
17792
+ message: string;
17793
+ error: TResponseError;
17794
+ meta: TResponseMeta;
17795
+ } | {
17796
+ success: true;
17797
+ statusCode: number;
17798
+ data: {
17799
+ quote: ViettelPostRaw;
17800
+ };
17801
+ message: null;
17802
+ error: null;
17803
+ meta: TResponseMeta;
17804
+ };
17805
+ 422: {
17806
+ type: "validation";
17807
+ on: string;
17808
+ summary?: string;
17809
+ message?: string;
17810
+ found?: unknown;
17811
+ property?: string;
17812
+ expected?: string;
17813
+ };
17814
+ }>>) & {
17815
+ '~path': string;
17816
+ };
17817
+ } & {
17818
+ '~path': string;
17819
+ };
17820
+ nlp: {
17821
+ post: ((body: {
17822
+ senderAddressNlp: string;
17823
+ receiverAddressNlp: string;
17824
+ productWeight: number;
17825
+ productPrice: number;
17826
+ orderService: string;
17827
+ productLength?: number | undefined;
17828
+ productWidth?: number | undefined;
17829
+ productHeight?: number | undefined;
17830
+ moneyCollection?: number | undefined;
17831
+ }, options?: {
17832
+ fetch?: RequestInit | undefined;
17833
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17834
+ headers?: {} | undefined;
17835
+ query?: {} | undefined;
17836
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17837
+ 200: {
17838
+ success: false;
17839
+ statusCode: number;
17840
+ data: null;
17841
+ message: string;
17842
+ error: TResponseError;
17843
+ meta: TResponseMeta;
17844
+ } | {
17845
+ success: true;
17846
+ statusCode: number;
17847
+ data: {
17848
+ quote: ViettelPostRaw;
17849
+ };
17850
+ message: null;
17851
+ error: null;
17852
+ meta: TResponseMeta;
17853
+ };
17854
+ 422: {
17855
+ type: "validation";
17856
+ on: string;
17857
+ summary?: string;
17858
+ message?: string;
17859
+ found?: unknown;
17860
+ property?: string;
17861
+ expected?: string;
17862
+ };
17863
+ }>>) & {
17864
+ '~path': string;
17865
+ };
17866
+ all: {
17867
+ post: ((body: {
17868
+ senderAddress: string;
17869
+ receiverAddress: string;
17870
+ productType: "TH" | "HH";
17871
+ productWeight: number;
17872
+ priceListType: 0 | 1;
17873
+ productPrice?: number | undefined;
17874
+ moneyCollection?: number | undefined;
17875
+ productLength?: number | undefined;
17876
+ productWidth?: number | undefined;
17877
+ productHeight?: number | undefined;
17878
+ }, options?: {
17879
+ fetch?: RequestInit | undefined;
17880
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17881
+ headers?: {} | undefined;
17882
+ query?: {} | undefined;
17883
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17884
+ 200: {
17885
+ success: false;
17886
+ statusCode: number;
17887
+ data: null;
17888
+ message: string;
17889
+ error: TResponseError;
17890
+ meta: TResponseMeta;
17891
+ } | {
17892
+ success: true;
17893
+ statusCode: number;
17894
+ data: {
17895
+ result: ViettelPostPriceAllNlpResponse;
17896
+ };
17897
+ message: null;
17898
+ error: null;
17899
+ meta: TResponseMeta;
17900
+ };
17901
+ 422: {
17902
+ type: "validation";
17903
+ on: string;
17904
+ summary?: string;
17905
+ message?: string;
17906
+ found?: unknown;
17907
+ property?: string;
17908
+ expected?: string;
17909
+ };
17910
+ }>>) & {
17911
+ '~path': string;
17912
+ };
17913
+ } & {
17914
+ '~path': string;
17915
+ };
17916
+ } & {
17917
+ '~path': string;
17918
+ };
17919
+ } & {
17920
+ '~path': string;
17921
+ };
17922
+ orders: ((params: {
17923
+ orderNumber: string | number;
17924
+ }) => {
17925
+ get: ((options?: {
17926
+ fetch?: RequestInit | undefined;
17927
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17928
+ headers?: {} | undefined;
17929
+ query?: {} | undefined;
17930
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17931
+ 200: {
17932
+ success: false;
17933
+ statusCode: number;
17934
+ data: null;
17935
+ message: string;
17936
+ error: TResponseError;
17937
+ meta: TResponseMeta;
17938
+ } | {
17939
+ success: true;
17940
+ statusCode: number;
17941
+ data: {
17942
+ order: ViettelPostRaw;
17943
+ };
17944
+ message: null;
17945
+ error: null;
17946
+ meta: TResponseMeta;
17947
+ };
17948
+ 422: {
17949
+ type: "validation";
17950
+ on: string;
17951
+ summary?: string;
17952
+ message?: string;
17953
+ found?: unknown;
17954
+ property?: string;
17955
+ expected?: string;
17956
+ };
17957
+ }>>) & {
17958
+ '~path': string;
17959
+ };
17960
+ '~path': string;
17961
+ } & {
17962
+ get: ((options?: {
17963
+ fetch?: RequestInit | undefined;
17964
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
17965
+ headers?: {} | undefined;
17966
+ query?: {} | undefined;
17967
+ } | undefined) => Promise<Treaty.TreatyResponse<{
17968
+ 200: {
17969
+ success: false;
17970
+ statusCode: number;
17971
+ data: null;
17972
+ message: string;
17973
+ error: TResponseError;
17974
+ meta: TResponseMeta;
17975
+ } | {
17976
+ success: true;
17977
+ statusCode: number;
17978
+ data: {
17979
+ order: ViettelPostRaw;
17980
+ };
17981
+ message: null;
17982
+ error: null;
17983
+ meta: TResponseMeta;
17984
+ };
17985
+ 422: {
17986
+ type: "validation";
17987
+ on: string;
17988
+ summary?: string;
17989
+ message?: string;
17990
+ found?: unknown;
17991
+ property?: string;
17992
+ expected?: string;
17993
+ };
17994
+ }>>) & {
17995
+ '~path': string;
17996
+ };
17997
+ }) & {
17998
+ post: ((body: {
17999
+ senderFullname: string;
18000
+ senderPhone: string;
18001
+ senderAddress: string;
18002
+ senderProvinceId: number;
18003
+ senderDistrictId: number;
18004
+ senderWardId: number;
18005
+ receiverFullname: string;
18006
+ receiverPhone: string;
18007
+ receiverAddress: string;
18008
+ receiverProvinceId: number;
18009
+ receiverDistrictId: number;
18010
+ receiverWardId: number;
18011
+ productName: string;
18012
+ productQuantity: number;
18013
+ productPrice: number;
18014
+ productWeight: number;
18015
+ productType: "TH" | "HH";
18016
+ moneyTotal: number;
18017
+ orderService: string;
18018
+ orderPayment: 1 | 4 | 2 | 3;
18019
+ orderNumber?: string | undefined;
18020
+ orderReference?: string | undefined;
18021
+ senderEmail?: string | undefined;
18022
+ receiverEmail?: string | undefined;
18023
+ productDescription?: string | undefined;
18024
+ productLength?: number | undefined;
18025
+ productWidth?: number | undefined;
18026
+ productHeight?: number | undefined;
18027
+ listItem?: {
18028
+ productName: string;
18029
+ productQuantity: number;
18030
+ productPrice: number;
18031
+ productWeight: number;
18032
+ productType: "TH" | "HH";
18033
+ orderNumber?: string | undefined;
18034
+ orderNumberItem?: string | undefined;
18035
+ }[] | undefined;
18036
+ moneyCollection?: number | undefined;
18037
+ moneyFee?: number | undefined;
18038
+ moneyFeeCod?: number | undefined;
18039
+ moneyFeeInsurance?: number | undefined;
18040
+ moneyFeeVas?: number | undefined;
18041
+ moneyFeeOther?: number | undefined;
18042
+ moneyTotalFee?: number | undefined;
18043
+ moneyTotalVat?: number | undefined;
18044
+ extraMoney?: number | undefined;
18045
+ orderServiceAdd?: string | undefined;
18046
+ orderType?: number | undefined;
18047
+ pickupDate?: string | undefined;
18048
+ deliveryDate?: string | undefined;
18049
+ pickupCode?: number | undefined;
18050
+ deliveryCode?: 1 | 5 | 4 | 2 | 6 | 3 | -1 | undefined;
18051
+ orderNote?: string | undefined;
18052
+ orderVoucher?: string | undefined;
18053
+ checkUnique?: boolean | undefined;
18054
+ }, options?: {
18055
+ fetch?: RequestInit | undefined;
18056
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
18057
+ headers?: {} | undefined;
18058
+ query?: {} | undefined;
18059
+ } | undefined) => Promise<Treaty.TreatyResponse<{
18060
+ 200: {
18061
+ success: false;
18062
+ statusCode: number;
18063
+ data: null;
18064
+ message: string;
18065
+ error: TResponseError;
18066
+ meta: TResponseMeta;
18067
+ } | {
18068
+ success: true;
18069
+ statusCode: number;
18070
+ data: {
18071
+ order: ViettelPostRaw;
18072
+ };
18073
+ message: null;
18074
+ error: null;
18075
+ meta: TResponseMeta;
18076
+ };
18077
+ 422: {
18078
+ type: "validation";
18079
+ on: string;
18080
+ summary?: string;
18081
+ message?: string;
18082
+ found?: unknown;
18083
+ property?: string;
18084
+ expected?: string;
18085
+ };
18086
+ }>>) & {
18087
+ '~path': string;
18088
+ };
18089
+ nlp: {
18090
+ post: ((body: {
18091
+ senderFullname: string;
18092
+ senderPhone: string;
18093
+ senderAddress: string;
18094
+ receiverFullname: string;
18095
+ receiverPhone: string;
18096
+ receiverAddress: string;
18097
+ orderService: string;
18098
+ orderPayment: 1 | 4 | 2 | 3;
18099
+ orderNumber?: string | undefined;
18100
+ pickupDate?: string | undefined;
18101
+ pickupCode?: 0 | 1 | 2 | 3 | undefined;
18102
+ deliveryCode?: 1 | 5 | 4 | 2 | 6 | 3 | -1 | undefined;
18103
+ productName?: string | undefined;
18104
+ productQuantity?: number | undefined;
18105
+ productPrice?: number | undefined;
18106
+ productWeight?: number | undefined;
18107
+ productLength?: number | undefined;
18108
+ productWidth?: number | undefined;
18109
+ productHeight?: number | undefined;
18110
+ productType?: "TH" | "HH" | undefined;
18111
+ productDetail?: {
18112
+ productName?: string | undefined;
18113
+ productQuantity?: number | undefined;
18114
+ productPrice?: number | undefined;
18115
+ productWeight?: number | undefined;
18116
+ }[] | undefined;
18117
+ orderServiceAdd?: string | undefined;
18118
+ orderNote?: string | undefined;
18119
+ moneyCollection?: number | undefined;
18120
+ extraMoney?: number | undefined;
18121
+ checkUnique?: boolean | undefined;
18122
+ }, options?: {
18123
+ fetch?: RequestInit | undefined;
18124
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
18125
+ headers?: {} | undefined;
18126
+ query?: {} | undefined;
18127
+ } | undefined) => Promise<Treaty.TreatyResponse<{
18128
+ 200: {
18129
+ success: false;
18130
+ statusCode: number;
18131
+ data: null;
18132
+ message: string;
18133
+ error: TResponseError;
18134
+ meta: TResponseMeta;
18135
+ } | {
18136
+ success: true;
18137
+ statusCode: number;
18138
+ data: {
18139
+ order: ViettelPostRaw;
18140
+ };
18141
+ message: null;
18142
+ error: null;
18143
+ meta: TResponseMeta;
18144
+ };
18145
+ 422: {
18146
+ type: "validation";
18147
+ on: string;
18148
+ summary?: string;
18149
+ message?: string;
18150
+ found?: unknown;
18151
+ property?: string;
18152
+ expected?: string;
18153
+ };
18154
+ }>>) & {
18155
+ '~path': string;
18156
+ };
18157
+ } & {
18158
+ '~path': string;
18159
+ };
18160
+ get: ((options: {
18161
+ fetch?: RequestInit | undefined;
18162
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
18163
+ headers?: {} | undefined;
18164
+ query: {
18165
+ page: number;
18166
+ search?: string | undefined;
18167
+ fromDate?: string | undefined;
18168
+ toDate?: string | undefined;
18169
+ statusCodes?: string | undefined;
18170
+ };
18171
+ }) => Promise<Treaty.TreatyResponse<{
18172
+ 200: {
18173
+ success: false;
18174
+ statusCode: number;
18175
+ data: null;
18176
+ message: string;
18177
+ error: TResponseError;
18178
+ meta: TResponseMeta;
18179
+ } | {
18180
+ success: true;
18181
+ statusCode: number;
18182
+ data: {
18183
+ orders: ViettelPostRaw[];
18184
+ };
18185
+ message: null;
18186
+ error: null;
18187
+ meta: TResponseMeta;
18188
+ };
18189
+ 422: {
18190
+ type: "validation";
18191
+ on: string;
18192
+ summary?: string;
18193
+ message?: string;
18194
+ found?: unknown;
18195
+ property?: string;
18196
+ expected?: string;
18197
+ };
18198
+ }>>) & {
18199
+ '~path': string;
18200
+ };
18201
+ } & {
18202
+ '~path': string;
18203
+ };
18204
+ token: {
18205
+ post: ((body?: {
18206
+ username?: string | undefined;
18207
+ password?: string | undefined;
18208
+ partnerCode?: string | undefined;
18209
+ } | undefined, options?: {
18210
+ fetch?: RequestInit | undefined;
18211
+ throwHttpError?: _elysiajs_eden_dist_types_0YqzVuGd0.b | undefined;
18212
+ headers?: {} | undefined;
18213
+ query?: {} | undefined;
18214
+ } | undefined) => Promise<Treaty.TreatyResponse<{
18215
+ 200: {
18216
+ success: false;
18217
+ statusCode: number;
18218
+ data: null;
18219
+ message: string;
18220
+ error: TResponseError;
18221
+ meta: TResponseMeta;
18222
+ } | {
18223
+ success: true;
18224
+ statusCode: number;
18225
+ data: {
18226
+ token: string;
18227
+ expiredAt: string;
18228
+ };
18229
+ message: null;
18230
+ error: null;
18231
+ meta: TResponseMeta;
18232
+ };
18233
+ 422: {
18234
+ type: "validation";
18235
+ on: string;
18236
+ summary?: string;
18237
+ message?: string;
18238
+ found?: unknown;
18239
+ property?: string;
18240
+ expected?: string;
18241
+ };
18242
+ }>>) & {
18243
+ '~path': string;
18244
+ };
18245
+ } & {
18246
+ '~path': string;
18247
+ };
18248
+ } & {
18249
+ '~path': string;
18250
+ };
17264
18251
  } & {
17265
18252
  '~path': string;
17266
18253
  };