@customafk/lunas-api-sdk 0.0.70 → 0.0.72

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
@@ -145,8 +145,8 @@ declare const _func: () => {
145
145
  v1: {
146
146
  auth: {
147
147
  get: (options?: {
148
- headers?: Record<string, unknown> | undefined;
149
- query?: Record<string, unknown> | undefined;
148
+ headers?: {} | undefined;
149
+ query?: {} | undefined;
150
150
  fetch?: RequestInit | undefined;
151
151
  } | undefined) => Promise<Treaty.TreatyResponse<{
152
152
  200: string;
@@ -294,37 +294,7 @@ declare const _func: () => {
294
294
  headers?: {} | undefined;
295
295
  query?: {} | undefined;
296
296
  fetch?: RequestInit | undefined;
297
- } | undefined) => Promise<Treaty.TreatyResponse<{
298
- 200: {
299
- success: true;
300
- statusCode: number;
301
- data: null;
302
- message: string;
303
- error: null;
304
- meta: TResponseMeta;
305
- } | {
306
- success: false;
307
- statusCode: number;
308
- data: null;
309
- message: string;
310
- error: TResponseError;
311
- meta: TResponseMeta;
312
- } | {
313
- success: false;
314
- statusCode: number;
315
- data: null;
316
- message: string;
317
- error: TResponseError;
318
- meta: TResponseMeta;
319
- } | {
320
- success: true;
321
- statusCode: number;
322
- data: undefined;
323
- message: null;
324
- error: null;
325
- meta: TResponseMeta;
326
- };
327
- }>>;
297
+ } | undefined) => Promise<Treaty.TreatyResponse<{}>>;
328
298
  };
329
299
  };
330
300
  account: ((params: {
@@ -386,6 +356,78 @@ declare const _func: () => {
386
356
  expected?: string;
387
357
  };
388
358
  }>>;
359
+ patch: (body?: {
360
+ role?: ERole | undefined;
361
+ isActive?: boolean | undefined;
362
+ fullname?: string | undefined;
363
+ phoneNumber?: string | undefined;
364
+ bio?: string | undefined;
365
+ gender?: number | undefined;
366
+ dateOfBirth?: string | undefined;
367
+ } | undefined, options?: {
368
+ headers?: {} | undefined;
369
+ query?: {} | undefined;
370
+ fetch?: RequestInit | undefined;
371
+ } | undefined) => Promise<Treaty.TreatyResponse<{
372
+ 200: {
373
+ success: true;
374
+ statusCode: number;
375
+ data: null;
376
+ message: string;
377
+ error: null;
378
+ meta: TResponseMeta;
379
+ } | {
380
+ success: false;
381
+ statusCode: number;
382
+ data: null;
383
+ message: string;
384
+ error: TResponseError;
385
+ meta: TResponseMeta;
386
+ };
387
+ 422: {
388
+ type: "validation";
389
+ on: string;
390
+ summary?: string;
391
+ message?: string;
392
+ found?: unknown;
393
+ property?: string;
394
+ expected?: string;
395
+ };
396
+ }>>;
397
+ password: {
398
+ patch: (body: {
399
+ password: string;
400
+ }, options?: {
401
+ headers?: {} | undefined;
402
+ query?: {} | undefined;
403
+ fetch?: RequestInit | undefined;
404
+ } | undefined) => Promise<Treaty.TreatyResponse<{
405
+ 200: {
406
+ success: true;
407
+ statusCode: number;
408
+ data: null;
409
+ message: string;
410
+ error: null;
411
+ meta: TResponseMeta;
412
+ } | {
413
+ success: false;
414
+ statusCode: number;
415
+ data: null;
416
+ message: string;
417
+ error: TResponseError;
418
+ meta: TResponseMeta;
419
+ };
420
+ 422: {
421
+ type: "validation";
422
+ on: string;
423
+ summary?: string;
424
+ message?: string;
425
+ found?: unknown;
426
+ property?: string;
427
+ expected?: string;
428
+ };
429
+ }>>;
430
+ };
389
431
  delete: (body?: {} | undefined, options?: {
390
432
  headers?: {} | undefined;
391
433
  query?: {} | undefined;
@@ -1546,41 +1588,6 @@ declare const _func: () => {
1546
1588
  } | undefined;
1547
1589
  fetch?: RequestInit | undefined;
1548
1590
  } | undefined) => Promise<Treaty.TreatyResponse<{
1549
- 200: {
1550
- success: false;
1551
- statusCode: number;
1552
- data: null;
1553
- message: string;
1554
- error: TResponseError;
1555
- meta: TResponseMeta;
1556
- } | {
1557
- success: true;
1558
- statusCode: number;
1559
- data: {
1560
- comments: never[];
1561
- paging: null;
1562
- };
1563
- message: null;
1564
- error: null;
1565
- meta: TResponseMeta;
1566
- } | {
1567
- success: true;
1568
- statusCode: number;
1569
- data: {
1570
- comments: unknown[];
1571
- paging: {
1572
- cursors: {
1573
- before: string;
1574
- after: string;
1575
- } | null;
1576
- hasNext: boolean;
1577
- hasPrevious: boolean;
1578
- };
1579
- };
1580
- message: null;
1581
- error: null;
1582
- meta: TResponseMeta;
1583
- };
1584
1591
  422: {
1585
1592
  type: "validation";
1586
1593
  on: string;
@@ -1985,9 +1992,9 @@ declare const _func: () => {
1985
1992
  expected?: string;
1986
1993
  };
1987
1994
  }>>;
1988
- delete: (body?: unknown, options?: {
1989
- headers?: Record<string, unknown> | undefined;
1990
- query?: Record<string, unknown> | undefined;
1995
+ delete: (body?: {} | undefined, options?: {
1996
+ headers?: {} | undefined;
1997
+ query?: {} | undefined;
1991
1998
  fetch?: RequestInit | undefined;
1992
1999
  } | undefined) => Promise<Treaty.TreatyResponse<{}>>;
1993
2000
  };
@@ -2043,36 +2050,6 @@ declare const _func: () => {
2043
2050
  query?: {} | undefined;
2044
2051
  fetch?: RequestInit | undefined;
2045
2052
  } | undefined) => Promise<Treaty.TreatyResponse<{
2046
- 200: {
2047
- success: false;
2048
- statusCode: number;
2049
- data: null;
2050
- message: string;
2051
- error: TResponseError;
2052
- meta: TResponseMeta;
2053
- } | {
2054
- success: true;
2055
- statusCode: number;
2056
- data: {
2057
- mediaUuid: string;
2058
- entityUuid: string;
2059
- entityId: null;
2060
- };
2061
- message: null;
2062
- error: null;
2063
- meta: TResponseMeta;
2064
- } | {
2065
- success: true;
2066
- statusCode: number;
2067
- data: {
2068
- mediaUuid: string;
2069
- entityUuid: null;
2070
- entityId: null;
2071
- };
2072
- message: null;
2073
- error: null;
2074
- meta: TResponseMeta;
2075
- };
2076
2053
  422: {
2077
2054
  type: "validation";
2078
2055
  on: string;
@@ -5203,73 +5180,585 @@ declare const _func: () => {
5203
5180
  };
5204
5181
  client: {
5205
5182
  v1: {
5206
- defs: {
5207
- deposits: {
5208
- get: (options?: {
5209
- headers?: {} | undefined;
5210
- query?: {} | undefined;
5211
- fetch?: RequestInit | undefined;
5212
- } | undefined) => Promise<Treaty.TreatyResponse<{
5213
- 200: {
5214
- success: false;
5215
- statusCode: number;
5216
- data: null;
5217
- message: string;
5218
- error: TResponseError;
5219
- meta: TResponseMeta;
5220
- } | {
5221
- success: true;
5222
- statusCode: number;
5223
- data: {
5224
- deposits: {
5225
- name: string;
5226
- uuid: string;
5227
- description: string | null;
5228
- createdAt: Date;
5229
- updatedAt: Date;
5230
- valueType: "PERCENTAGE" | "FIXED";
5231
- depositValue: number;
5232
- surchargeValue: number;
5233
- }[];
5183
+ addresses: ((params: {
5184
+ id: string | number;
5185
+ }) => {
5186
+ get: (options?: {
5187
+ headers?: {} | undefined;
5188
+ query?: {} | undefined;
5189
+ fetch?: RequestInit | undefined;
5190
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5191
+ 200: {
5192
+ success: false;
5193
+ statusCode: number;
5194
+ data: null;
5195
+ message: string;
5196
+ error: TResponseError;
5197
+ meta: TResponseMeta;
5198
+ } | {
5199
+ success: true;
5200
+ statusCode: number;
5201
+ data: {
5202
+ createdAt: Date | null;
5203
+ updatedAt: Date | null;
5204
+ id: number;
5205
+ userUuid: string;
5206
+ fullname: string;
5207
+ phoneNumber: string;
5208
+ provinceId: string;
5209
+ districtId: string;
5210
+ wardId: string;
5211
+ street: string;
5212
+ isDefault: boolean | null;
5213
+ order: number | null;
5214
+ province: {
5215
+ name: string;
5216
+ type: string;
5217
+ id: string;
5218
+ };
5219
+ ward: {
5220
+ name: string;
5221
+ type: string;
5222
+ id: string;
5223
+ districtId: string | null;
5224
+ };
5225
+ district: {
5226
+ name: string;
5227
+ type: string;
5228
+ id: string;
5229
+ provinceId: string | null;
5234
5230
  };
5235
- message: null;
5236
- error: null;
5237
- meta: TResponseMeta;
5238
5231
  };
5239
- }>>;
5240
- };
5241
- provinces: ((params: {
5242
- provinceId: string | number;
5243
- }) => {
5244
- districts: ((params: {
5245
- districtId: string | number;
5246
- }) => {
5247
- wards: {
5248
- get: (options?: {
5249
- headers?: {} | undefined;
5250
- query?: {} | undefined;
5251
- fetch?: RequestInit | undefined;
5252
- } | undefined) => Promise<Treaty.TreatyResponse<{
5253
- 200: {
5254
- success: false;
5255
- statusCode: number;
5256
- data: null;
5257
- message: string;
5258
- error: TResponseError;
5259
- meta: TResponseMeta;
5260
- } | {
5261
- success: true;
5262
- statusCode: number;
5263
- data: {
5264
- wards: {
5265
- name: string;
5266
- type: string;
5267
- id: string;
5268
- districtId: string | null;
5269
- }[];
5270
- };
5271
- message: null;
5272
- error: null;
5232
+ message: null;
5233
+ error: null;
5234
+ meta: TResponseMeta;
5235
+ };
5236
+ 422: {
5237
+ type: "validation";
5238
+ on: string;
5239
+ summary?: string;
5240
+ message?: string;
5241
+ found?: unknown;
5242
+ property?: string;
5243
+ expected?: string;
5244
+ };
5245
+ }>>;
5246
+ patch: (body?: {
5247
+ fullname?: string | undefined;
5248
+ phoneNumber?: string | undefined;
5249
+ provinceId?: string | undefined;
5250
+ districtId?: string | undefined;
5251
+ wardId?: string | undefined;
5252
+ street?: string | undefined;
5253
+ isDefault?: boolean | undefined;
5254
+ order?: number | undefined;
5255
+ } | undefined, options?: {
5256
+ headers?: {} | undefined;
5257
+ query?: {} | undefined;
5258
+ fetch?: RequestInit | undefined;
5259
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5260
+ 200: {
5261
+ success: true;
5262
+ statusCode: number;
5263
+ data: null;
5264
+ message: string;
5265
+ error: null;
5266
+ meta: TResponseMeta;
5267
+ } | {
5268
+ success: false;
5269
+ statusCode: number;
5270
+ data: null;
5271
+ message: string;
5272
+ error: TResponseError;
5273
+ meta: TResponseMeta;
5274
+ };
5275
+ 422: {
5276
+ type: "validation";
5277
+ on: string;
5278
+ summary?: string;
5279
+ message?: string;
5280
+ found?: unknown;
5281
+ property?: string;
5282
+ expected?: string;
5283
+ };
5284
+ }>>;
5285
+ delete: (body?: {} | undefined, options?: {
5286
+ headers?: {} | undefined;
5287
+ query?: {} | undefined;
5288
+ fetch?: RequestInit | undefined;
5289
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5290
+ 200: {
5291
+ success: true;
5292
+ statusCode: number;
5293
+ data: null;
5294
+ message: string;
5295
+ error: null;
5296
+ meta: TResponseMeta;
5297
+ } | {
5298
+ success: false;
5299
+ statusCode: number;
5300
+ data: null;
5301
+ message: string;
5302
+ error: TResponseError;
5303
+ meta: TResponseMeta;
5304
+ };
5305
+ 422: {
5306
+ type: "validation";
5307
+ on: string;
5308
+ summary?: string;
5309
+ message?: string;
5310
+ found?: unknown;
5311
+ property?: string;
5312
+ expected?: string;
5313
+ };
5314
+ }>>;
5315
+ }) & {
5316
+ get: (options?: {
5317
+ headers?: {} | undefined;
5318
+ query?: {} | undefined;
5319
+ fetch?: RequestInit | undefined;
5320
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5321
+ 200: {
5322
+ success: false;
5323
+ statusCode: number;
5324
+ data: null;
5325
+ message: string;
5326
+ error: TResponseError;
5327
+ meta: TResponseMeta;
5328
+ } | {
5329
+ success: true;
5330
+ statusCode: number;
5331
+ data: {
5332
+ createdAt: Date | null;
5333
+ updatedAt: Date | null;
5334
+ id: number;
5335
+ userUuid: string;
5336
+ fullname: string;
5337
+ phoneNumber: string;
5338
+ provinceId: string;
5339
+ districtId: string;
5340
+ wardId: string;
5341
+ street: string;
5342
+ isDefault: boolean | null;
5343
+ order: number | null;
5344
+ province: {
5345
+ name: string;
5346
+ type: string;
5347
+ id: string;
5348
+ };
5349
+ ward: {
5350
+ name: string;
5351
+ type: string;
5352
+ id: string;
5353
+ districtId: string | null;
5354
+ };
5355
+ district: {
5356
+ name: string;
5357
+ type: string;
5358
+ id: string;
5359
+ provinceId: string | null;
5360
+ };
5361
+ }[];
5362
+ message: null;
5363
+ error: null;
5364
+ meta: TResponseMeta;
5365
+ };
5366
+ }>>;
5367
+ post: (body: {
5368
+ fullname: string;
5369
+ phoneNumber: string;
5370
+ provinceId: string;
5371
+ districtId: string;
5372
+ wardId: string;
5373
+ street: string;
5374
+ isDefault?: boolean | undefined;
5375
+ order?: number | undefined;
5376
+ }, options?: {
5377
+ headers?: {} | undefined;
5378
+ query?: {} | undefined;
5379
+ fetch?: RequestInit | undefined;
5380
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5381
+ 200: {
5382
+ success: false;
5383
+ statusCode: number;
5384
+ data: null;
5385
+ message: string;
5386
+ error: TResponseError;
5387
+ meta: TResponseMeta;
5388
+ } | {
5389
+ success: true;
5390
+ statusCode: number;
5391
+ data: {
5392
+ createdAt: Date | null;
5393
+ updatedAt: Date | null;
5394
+ id: number;
5395
+ userUuid: string;
5396
+ fullname: string;
5397
+ phoneNumber: string;
5398
+ provinceId: string;
5399
+ districtId: string;
5400
+ wardId: string;
5401
+ street: string;
5402
+ isDefault: boolean | null;
5403
+ order: number | null;
5404
+ };
5405
+ message: null;
5406
+ error: null;
5407
+ meta: TResponseMeta;
5408
+ };
5409
+ 422: {
5410
+ type: "validation";
5411
+ on: string;
5412
+ summary?: string;
5413
+ message?: string;
5414
+ found?: unknown;
5415
+ property?: string;
5416
+ expected?: string;
5417
+ };
5418
+ }>>;
5419
+ bulk: {
5420
+ delete: (body: {}, options: {
5421
+ headers?: {} | undefined;
5422
+ query: {
5423
+ ids: number[];
5424
+ };
5425
+ fetch?: RequestInit | undefined;
5426
+ }) => Promise<Treaty.TreatyResponse<{
5427
+ 200: {
5428
+ success: true;
5429
+ statusCode: number;
5430
+ data: null;
5431
+ message: string;
5432
+ error: null;
5433
+ meta: TResponseMeta;
5434
+ } | {
5435
+ success: false;
5436
+ statusCode: number;
5437
+ data: null;
5438
+ message: string;
5439
+ error: TResponseError;
5440
+ meta: TResponseMeta;
5441
+ };
5442
+ 422: {
5443
+ type: "validation";
5444
+ on: string;
5445
+ summary?: string;
5446
+ message?: string;
5447
+ found?: unknown;
5448
+ property?: string;
5449
+ expected?: string;
5450
+ };
5451
+ }>>;
5452
+ };
5453
+ };
5454
+ auth: {
5455
+ register: {
5456
+ post: (body: {
5457
+ email: string;
5458
+ password: string;
5459
+ }, options?: {
5460
+ headers?: {} | undefined;
5461
+ query?: {} | undefined;
5462
+ fetch?: RequestInit | undefined;
5463
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5464
+ 200: {
5465
+ success: true;
5466
+ statusCode: number;
5467
+ data: null;
5468
+ message: string;
5469
+ error: null;
5470
+ meta: TResponseMeta;
5471
+ } | {
5472
+ success: false;
5473
+ statusCode: number;
5474
+ data: null;
5475
+ message: string;
5476
+ error: TResponseError;
5477
+ meta: TResponseMeta;
5478
+ };
5479
+ 422: {
5480
+ type: "validation";
5481
+ on: string;
5482
+ summary?: string;
5483
+ message?: string;
5484
+ found?: unknown;
5485
+ property?: string;
5486
+ expected?: string;
5487
+ };
5488
+ }>>;
5489
+ };
5490
+ login: {
5491
+ post: (body: {
5492
+ email: string;
5493
+ password: string;
5494
+ }, options?: {
5495
+ headers?: {} | undefined;
5496
+ query?: {} | undefined;
5497
+ fetch?: RequestInit | undefined;
5498
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5499
+ 200: {
5500
+ success: true;
5501
+ statusCode: number;
5502
+ data: null;
5503
+ message: string;
5504
+ error: null;
5505
+ meta: TResponseMeta;
5506
+ } | {
5507
+ success: false;
5508
+ statusCode: number;
5509
+ data: null;
5510
+ message: string;
5511
+ error: TResponseError;
5512
+ meta: TResponseMeta;
5513
+ };
5514
+ 422: {
5515
+ type: "validation";
5516
+ on: string;
5517
+ summary?: string;
5518
+ message?: string;
5519
+ found?: unknown;
5520
+ property?: string;
5521
+ expected?: string;
5522
+ };
5523
+ }>>;
5524
+ };
5525
+ me: {
5526
+ get: (options?: {
5527
+ headers?: {} | undefined;
5528
+ query?: {} | undefined;
5529
+ fetch?: RequestInit | undefined;
5530
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5531
+ 200: {
5532
+ success: false;
5533
+ statusCode: number;
5534
+ data: null;
5535
+ message: string;
5536
+ error: TResponseError;
5537
+ meta: TResponseMeta;
5538
+ } | {
5539
+ success: true;
5540
+ statusCode: number;
5541
+ data: undefined;
5542
+ message: null;
5543
+ error: null;
5544
+ meta: TResponseMeta;
5545
+ } | {
5546
+ success: true;
5547
+ statusCode: number;
5548
+ data: {
5549
+ uuid: string;
5550
+ email: string;
5551
+ createdAt: Date | null;
5552
+ updatedAt: Date | null;
5553
+ username: string;
5554
+ role: string;
5555
+ networks: {
5556
+ createdAt: Date | null;
5557
+ updatedAt: Date | null;
5558
+ id: number;
5559
+ provider: string;
5560
+ providerId: string;
5561
+ }[];
5562
+ profile: {
5563
+ createdAt: Date | null;
5564
+ updatedAt: Date | null;
5565
+ id: number;
5566
+ fullname: string;
5567
+ phoneNumber: string | null;
5568
+ bio: string | null;
5569
+ gender: number | null;
5570
+ dateOfBirth: Date | null;
5571
+ };
5572
+ };
5573
+ message: null;
5574
+ error: null;
5575
+ meta: TResponseMeta;
5576
+ };
5577
+ }>>;
5578
+ };
5579
+ "refresh-token": {
5580
+ get: (options?: {
5581
+ headers?: {} | undefined;
5582
+ query?: {} | undefined;
5583
+ fetch?: RequestInit | undefined;
5584
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5585
+ 200: {
5586
+ success: true;
5587
+ statusCode: number;
5588
+ data: null;
5589
+ message: string;
5590
+ error: null;
5591
+ meta: TResponseMeta;
5592
+ } | {
5593
+ success: false;
5594
+ statusCode: number;
5595
+ data: null;
5596
+ message: string;
5597
+ error: TResponseError;
5598
+ meta: TResponseMeta;
5599
+ };
5600
+ }>>;
5601
+ };
5602
+ logout: {
5603
+ delete: (body?: {} | undefined, options?: {
5604
+ headers?: {} | undefined;
5605
+ query?: {} | undefined;
5606
+ fetch?: RequestInit | undefined;
5607
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5608
+ 200: {
5609
+ success: true;
5610
+ statusCode: number;
5611
+ data: null;
5612
+ message: string;
5613
+ error: null;
5614
+ meta: TResponseMeta;
5615
+ } | {
5616
+ success: false;
5617
+ statusCode: number;
5618
+ data: null;
5619
+ message: string;
5620
+ error: TResponseError;
5621
+ meta: TResponseMeta;
5622
+ };
5623
+ }>>;
5624
+ };
5625
+ "verify-email": {
5626
+ post: (body: {
5627
+ email: string;
5628
+ otp: string;
5629
+ }, options?: {
5630
+ headers?: {} | undefined;
5631
+ query?: {} | undefined;
5632
+ fetch?: RequestInit | undefined;
5633
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5634
+ 200: {
5635
+ success: true;
5636
+ statusCode: number;
5637
+ data: null;
5638
+ message: string;
5639
+ error: null;
5640
+ meta: TResponseMeta;
5641
+ } | {
5642
+ success: false;
5643
+ statusCode: number;
5644
+ data: null;
5645
+ message: string;
5646
+ error: TResponseError;
5647
+ meta: TResponseMeta;
5648
+ };
5649
+ 422: {
5650
+ type: "validation";
5651
+ on: string;
5652
+ summary?: string;
5653
+ message?: string;
5654
+ found?: unknown;
5655
+ property?: string;
5656
+ expected?: string;
5657
+ };
5658
+ }>>;
5659
+ };
5660
+ "resend-verification": {
5661
+ post: (body: {
5662
+ email: string;
5663
+ }, options?: {
5664
+ headers?: {} | undefined;
5665
+ query?: {} | undefined;
5666
+ fetch?: RequestInit | undefined;
5667
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5668
+ 200: {
5669
+ success: true;
5670
+ statusCode: number;
5671
+ data: null;
5672
+ message: string;
5673
+ error: null;
5674
+ meta: TResponseMeta;
5675
+ } | {
5676
+ success: false;
5677
+ statusCode: number;
5678
+ data: null;
5679
+ message: string;
5680
+ error: TResponseError;
5681
+ meta: TResponseMeta;
5682
+ };
5683
+ 422: {
5684
+ type: "validation";
5685
+ on: string;
5686
+ summary?: string;
5687
+ message?: string;
5688
+ found?: unknown;
5689
+ property?: string;
5690
+ expected?: string;
5691
+ };
5692
+ }>>;
5693
+ };
5694
+ };
5695
+ defs: {
5696
+ deposits: {
5697
+ get: (options?: {
5698
+ headers?: {} | undefined;
5699
+ query?: {} | undefined;
5700
+ fetch?: RequestInit | undefined;
5701
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5702
+ 200: {
5703
+ success: false;
5704
+ statusCode: number;
5705
+ data: null;
5706
+ message: string;
5707
+ error: TResponseError;
5708
+ meta: TResponseMeta;
5709
+ } | {
5710
+ success: true;
5711
+ statusCode: number;
5712
+ data: {
5713
+ deposits: {
5714
+ name: string;
5715
+ uuid: string;
5716
+ description: string | null;
5717
+ createdAt: Date;
5718
+ updatedAt: Date;
5719
+ valueType: "PERCENTAGE" | "FIXED";
5720
+ depositValue: number;
5721
+ surchargeValue: number;
5722
+ }[];
5723
+ };
5724
+ message: null;
5725
+ error: null;
5726
+ meta: TResponseMeta;
5727
+ };
5728
+ }>>;
5729
+ };
5730
+ provinces: ((params: {
5731
+ provinceId: string | number;
5732
+ }) => {
5733
+ districts: ((params: {
5734
+ districtId: string | number;
5735
+ }) => {
5736
+ wards: {
5737
+ get: (options?: {
5738
+ headers?: {} | undefined;
5739
+ query?: {} | undefined;
5740
+ fetch?: RequestInit | undefined;
5741
+ } | undefined) => Promise<Treaty.TreatyResponse<{
5742
+ 200: {
5743
+ success: false;
5744
+ statusCode: number;
5745
+ data: null;
5746
+ message: string;
5747
+ error: TResponseError;
5748
+ meta: TResponseMeta;
5749
+ } | {
5750
+ success: true;
5751
+ statusCode: number;
5752
+ data: {
5753
+ wards: {
5754
+ name: string;
5755
+ type: string;
5756
+ id: string;
5757
+ districtId: string | null;
5758
+ }[];
5759
+ };
5760
+ message: null;
5761
+ error: null;
5273
5762
  meta: TResponseMeta;
5274
5763
  };
5275
5764
  422: {
@@ -5519,9 +6008,9 @@ declare const _func: () => {
5519
6008
  };
5520
6009
  }>>;
5521
6010
  status: {
5522
- patch: (body?: unknown, options?: {
5523
- headers?: Record<string, unknown> | undefined;
5524
- query?: Record<string, unknown> | undefined;
6011
+ patch: (body?: {} | undefined, options?: {
6012
+ headers?: {} | undefined;
6013
+ query?: {} | undefined;
5525
6014
  fetch?: RequestInit | undefined;
5526
6015
  } | undefined) => Promise<Treaty.TreatyResponse<{
5527
6016
  200: string;
@@ -5540,9 +6029,9 @@ declare const _func: () => {
5540
6029
  manifestId: string | number;
5541
6030
  }) => {
5542
6031
  cancel: {
5543
- patch: (body?: unknown, options?: {
5544
- headers?: Record<string, unknown> | undefined;
5545
- query?: Record<string, unknown> | undefined;
6032
+ patch: (body?: {} | undefined, options?: {
6033
+ headers?: {} | undefined;
6034
+ query?: {} | undefined;
5546
6035
  fetch?: RequestInit | undefined;
5547
6036
  } | undefined) => Promise<Treaty.TreatyResponse<{
5548
6037
  200: string;