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