@ayasofyazilim/saas 0.0.14 → 0.0.16

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.
@@ -202,9 +202,6 @@ export type Volo_Abp_Application_Dtos_PagedResultDto_14 = {
202
202
  creatorId?: string | null;
203
203
  lastModificationTime?: string | null;
204
204
  lastModifierId?: string | null;
205
- isDeleted?: boolean;
206
- deleterId?: string | null;
207
- deletionTime?: string | null;
208
205
  tenantId?: string | null;
209
206
  userName?: string | null;
210
207
  email?: string | null;
@@ -224,7 +221,6 @@ export type Volo_Abp_Application_Dtos_PagedResultDto_14 = {
224
221
  roleNames?: Array<(string)> | null;
225
222
  accessFailedCount?: number;
226
223
  lastPasswordChangeTime?: string | null;
227
- isExternal?: boolean;
228
224
  }> | null;
229
225
  totalCount?: number;
230
226
  };
@@ -1595,8 +1591,6 @@ export type Volo_Abp_Identity_IdentityUserCreateDto = {
1595
1591
  organizationUnitIds?: Array<(string)> | null;
1596
1592
  password: string;
1597
1593
  sendConfirmationEmail?: boolean;
1598
- emailConfirmed?: boolean;
1599
- phoneNumberConfirmed?: boolean;
1600
1594
  };
1601
1595
 
1602
1596
  export type Volo_Abp_Identity_IdentityUserDto = {
@@ -1608,9 +1602,6 @@ export type Volo_Abp_Identity_IdentityUserDto = {
1608
1602
  creatorId?: string | null;
1609
1603
  lastModificationTime?: string | null;
1610
1604
  lastModifierId?: string | null;
1611
- isDeleted?: boolean;
1612
- deleterId?: string | null;
1613
- deletionTime?: string | null;
1614
1605
  tenantId?: string | null;
1615
1606
  userName?: string | null;
1616
1607
  email?: string | null;
@@ -1630,7 +1621,6 @@ export type Volo_Abp_Identity_IdentityUserDto = {
1630
1621
  roleNames?: Array<(string)> | null;
1631
1622
  accessFailedCount?: number;
1632
1623
  lastPasswordChangeTime?: string | null;
1633
- isExternal?: boolean;
1634
1624
  };
1635
1625
 
1636
1626
  export type Volo_Abp_Identity_IdentityUserSettingsDto = {
@@ -1652,8 +1642,6 @@ export type Volo_Abp_Identity_IdentityUserUpdateDto = {
1652
1642
  lockoutEnabled?: boolean;
1653
1643
  roleNames?: Array<(string)> | null;
1654
1644
  organizationUnitIds?: Array<(string)> | null;
1655
- emailConfirmed?: boolean;
1656
- phoneNumberConfirmed?: boolean;
1657
1645
  concurrencyStamp?: string | null;
1658
1646
  };
1659
1647
 
@@ -2739,9 +2727,6 @@ export type GetApiIdentityOrganizationUnitsByIdMembersResponse = {
2739
2727
  creatorId?: string | null;
2740
2728
  lastModificationTime?: string | null;
2741
2729
  lastModifierId?: string | null;
2742
- isDeleted?: boolean;
2743
- deleterId?: string | null;
2744
- deletionTime?: string | null;
2745
2730
  tenantId?: string | null;
2746
2731
  userName?: string | null;
2747
2732
  email?: string | null;
@@ -2761,7 +2746,6 @@ export type GetApiIdentityOrganizationUnitsByIdMembersResponse = {
2761
2746
  roleNames?: Array<(string)> | null;
2762
2747
  accessFailedCount?: number;
2763
2748
  lastPasswordChangeTime?: string | null;
2764
- isExternal?: boolean;
2765
2749
  }> | null;
2766
2750
  totalCount?: number;
2767
2751
  };
@@ -2997,9 +2981,6 @@ export type GetApiIdentityOrganizationUnitsAvailableUsersResponse = {
2997
2981
  creatorId?: string | null;
2998
2982
  lastModificationTime?: string | null;
2999
2983
  lastModifierId?: string | null;
3000
- isDeleted?: boolean;
3001
- deleterId?: string | null;
3002
- deletionTime?: string | null;
3003
2984
  tenantId?: string | null;
3004
2985
  userName?: string | null;
3005
2986
  email?: string | null;
@@ -3019,7 +3000,6 @@ export type GetApiIdentityOrganizationUnitsAvailableUsersResponse = {
3019
3000
  roleNames?: Array<(string)> | null;
3020
3001
  accessFailedCount?: number;
3021
3002
  lastPasswordChangeTime?: string | null;
3022
- isExternal?: boolean;
3023
3003
  }> | null;
3024
3004
  totalCount?: number;
3025
3005
  };
@@ -3582,9 +3562,6 @@ export type GetApiIdentityUsersByIdResponse = {
3582
3562
  creatorId?: string | null;
3583
3563
  lastModificationTime?: string | null;
3584
3564
  lastModifierId?: string | null;
3585
- isDeleted?: boolean;
3586
- deleterId?: string | null;
3587
- deletionTime?: string | null;
3588
3565
  tenantId?: string | null;
3589
3566
  userName?: string | null;
3590
3567
  email?: string | null;
@@ -3604,7 +3581,6 @@ export type GetApiIdentityUsersByIdResponse = {
3604
3581
  roleNames?: Array<(string)> | null;
3605
3582
  accessFailedCount?: number;
3606
3583
  lastPasswordChangeTime?: string | null;
3607
- isExternal?: boolean;
3608
3584
  };
3609
3585
 
3610
3586
  export type PutApiIdentityUsersByIdData = {
@@ -3623,8 +3599,6 @@ export type PutApiIdentityUsersByIdData = {
3623
3599
  lockoutEnabled?: boolean;
3624
3600
  roleNames?: Array<(string)> | null;
3625
3601
  organizationUnitIds?: Array<(string)> | null;
3626
- emailConfirmed?: boolean;
3627
- phoneNumberConfirmed?: boolean;
3628
3602
  concurrencyStamp?: string | null;
3629
3603
  };
3630
3604
  };
@@ -3638,9 +3612,6 @@ export type PutApiIdentityUsersByIdResponse = {
3638
3612
  creatorId?: string | null;
3639
3613
  lastModificationTime?: string | null;
3640
3614
  lastModifierId?: string | null;
3641
- isDeleted?: boolean;
3642
- deleterId?: string | null;
3643
- deletionTime?: string | null;
3644
3615
  tenantId?: string | null;
3645
3616
  userName?: string | null;
3646
3617
  email?: string | null;
@@ -3660,7 +3631,6 @@ export type PutApiIdentityUsersByIdResponse = {
3660
3631
  roleNames?: Array<(string)> | null;
3661
3632
  accessFailedCount?: number;
3662
3633
  lastPasswordChangeTime?: string | null;
3663
- isExternal?: boolean;
3664
3634
  };
3665
3635
 
3666
3636
  export type DeleteApiIdentityUsersByIdData = {
@@ -3704,9 +3674,6 @@ export type GetApiIdentityUsersResponse = {
3704
3674
  creatorId?: string | null;
3705
3675
  lastModificationTime?: string | null;
3706
3676
  lastModifierId?: string | null;
3707
- isDeleted?: boolean;
3708
- deleterId?: string | null;
3709
- deletionTime?: string | null;
3710
3677
  tenantId?: string | null;
3711
3678
  userName?: string | null;
3712
3679
  email?: string | null;
@@ -3726,7 +3693,6 @@ export type GetApiIdentityUsersResponse = {
3726
3693
  roleNames?: Array<(string)> | null;
3727
3694
  accessFailedCount?: number;
3728
3695
  lastPasswordChangeTime?: string | null;
3729
- isExternal?: boolean;
3730
3696
  }> | null;
3731
3697
  totalCount?: number;
3732
3698
  };
@@ -3748,8 +3714,6 @@ export type PostApiIdentityUsersData = {
3748
3714
  organizationUnitIds?: Array<(string)> | null;
3749
3715
  password: string;
3750
3716
  sendConfirmationEmail?: boolean;
3751
- emailConfirmed?: boolean;
3752
- phoneNumberConfirmed?: boolean;
3753
3717
  };
3754
3718
  };
3755
3719
 
@@ -3762,9 +3726,6 @@ export type PostApiIdentityUsersResponse = {
3762
3726
  creatorId?: string | null;
3763
3727
  lastModificationTime?: string | null;
3764
3728
  lastModifierId?: string | null;
3765
- isDeleted?: boolean;
3766
- deleterId?: string | null;
3767
- deletionTime?: string | null;
3768
3729
  tenantId?: string | null;
3769
3730
  userName?: string | null;
3770
3731
  email?: string | null;
@@ -3784,45 +3745,6 @@ export type PostApiIdentityUsersResponse = {
3784
3745
  roleNames?: Array<(string)> | null;
3785
3746
  accessFailedCount?: number;
3786
3747
  lastPasswordChangeTime?: string | null;
3787
- isExternal?: boolean;
3788
- };
3789
-
3790
- export type GetApiIdentityUsersByIdByIdData = {
3791
- id: string;
3792
- };
3793
-
3794
- export type GetApiIdentityUsersByIdByIdResponse = {
3795
- readonly extraProperties?: {
3796
- [key: string]: unknown;
3797
- } | null;
3798
- id?: string;
3799
- creationTime?: string;
3800
- creatorId?: string | null;
3801
- lastModificationTime?: string | null;
3802
- lastModifierId?: string | null;
3803
- isDeleted?: boolean;
3804
- deleterId?: string | null;
3805
- deletionTime?: string | null;
3806
- tenantId?: string | null;
3807
- userName?: string | null;
3808
- email?: string | null;
3809
- name?: string | null;
3810
- surname?: string | null;
3811
- emailConfirmed?: boolean;
3812
- phoneNumber?: string | null;
3813
- phoneNumberConfirmed?: boolean;
3814
- supportTwoFactor?: boolean;
3815
- twoFactorEnabled?: boolean;
3816
- isActive?: boolean;
3817
- lockoutEnabled?: boolean;
3818
- isLockedOut?: boolean;
3819
- lockoutEnd?: string | null;
3820
- shouldChangePasswordOnNextLogin?: boolean;
3821
- concurrencyStamp?: string | null;
3822
- roleNames?: Array<(string)> | null;
3823
- accessFailedCount?: number;
3824
- lastPasswordChangeTime?: string | null;
3825
- isExternal?: boolean;
3826
3748
  };
3827
3749
 
3828
3750
  export type GetApiIdentityUsersByIdRolesData = {
@@ -3991,9 +3913,6 @@ export type GetApiIdentityUsersByUsernameByUsernameResponse = {
3991
3913
  creatorId?: string | null;
3992
3914
  lastModificationTime?: string | null;
3993
3915
  lastModifierId?: string | null;
3994
- isDeleted?: boolean;
3995
- deleterId?: string | null;
3996
- deletionTime?: string | null;
3997
3916
  tenantId?: string | null;
3998
3917
  userName?: string | null;
3999
3918
  email?: string | null;
@@ -4013,7 +3932,6 @@ export type GetApiIdentityUsersByUsernameByUsernameResponse = {
4013
3932
  roleNames?: Array<(string)> | null;
4014
3933
  accessFailedCount?: number;
4015
3934
  lastPasswordChangeTime?: string | null;
4016
- isExternal?: boolean;
4017
3935
  };
4018
3936
 
4019
3937
  export type GetApiIdentityUsersByEmailByEmailData = {
@@ -4029,9 +3947,6 @@ export type GetApiIdentityUsersByEmailByEmailResponse = {
4029
3947
  creatorId?: string | null;
4030
3948
  lastModificationTime?: string | null;
4031
3949
  lastModifierId?: string | null;
4032
- isDeleted?: boolean;
4033
- deleterId?: string | null;
4034
- deletionTime?: string | null;
4035
3950
  tenantId?: string | null;
4036
3951
  userName?: string | null;
4037
3952
  email?: string | null;
@@ -4051,7 +3966,6 @@ export type GetApiIdentityUsersByEmailByEmailResponse = {
4051
3966
  roleNames?: Array<(string)> | null;
4052
3967
  accessFailedCount?: number;
4053
3968
  lastPasswordChangeTime?: string | null;
4054
- isExternal?: boolean;
4055
3969
  };
4056
3970
 
4057
3971
  export type GetApiIdentityUsersByIdTwoFactorEnabledData = {
@@ -4108,9 +4022,6 @@ export type PostApiIdentityUsersImportExternalUserResponse = {
4108
4022
  creatorId?: string | null;
4109
4023
  lastModificationTime?: string | null;
4110
4024
  lastModifierId?: string | null;
4111
- isDeleted?: boolean;
4112
- deleterId?: string | null;
4113
- deletionTime?: string | null;
4114
4025
  tenantId?: string | null;
4115
4026
  userName?: string | null;
4116
4027
  email?: string | null;
@@ -4130,7 +4041,6 @@ export type PostApiIdentityUsersImportExternalUserResponse = {
4130
4041
  roleNames?: Array<(string)> | null;
4131
4042
  accessFailedCount?: number;
4132
4043
  lastPasswordChangeTime?: string | null;
4133
- isExternal?: boolean;
4134
4044
  };
4135
4045
 
4136
4046
  export type GetApiIdentityUsersExportAsExcelData = {
@@ -7913,9 +7823,6 @@ export type $OpenApiTs = {
7913
7823
  creatorId?: string | null;
7914
7824
  lastModificationTime?: string | null;
7915
7825
  lastModifierId?: string | null;
7916
- isDeleted?: boolean;
7917
- deleterId?: string | null;
7918
- deletionTime?: string | null;
7919
7826
  tenantId?: string | null;
7920
7827
  userName?: string | null;
7921
7828
  email?: string | null;
@@ -7935,7 +7842,6 @@ export type $OpenApiTs = {
7935
7842
  roleNames?: Array<(string)> | null;
7936
7843
  accessFailedCount?: number;
7937
7844
  lastPasswordChangeTime?: string | null;
7938
- isExternal?: boolean;
7939
7845
  }> | null;
7940
7846
  totalCount?: number;
7941
7847
  };
@@ -8995,9 +8901,6 @@ export type $OpenApiTs = {
8995
8901
  creatorId?: string | null;
8996
8902
  lastModificationTime?: string | null;
8997
8903
  lastModifierId?: string | null;
8998
- isDeleted?: boolean;
8999
- deleterId?: string | null;
9000
- deletionTime?: string | null;
9001
8904
  tenantId?: string | null;
9002
8905
  userName?: string | null;
9003
8906
  email?: string | null;
@@ -9017,7 +8920,6 @@ export type $OpenApiTs = {
9017
8920
  roleNames?: Array<(string)> | null;
9018
8921
  accessFailedCount?: number;
9019
8922
  lastPasswordChangeTime?: string | null;
9020
- isExternal?: boolean;
9021
8923
  }> | null;
9022
8924
  totalCount?: number;
9023
8925
  };
@@ -12768,9 +12670,6 @@ export type $OpenApiTs = {
12768
12670
  creatorId?: string | null;
12769
12671
  lastModificationTime?: string | null;
12770
12672
  lastModifierId?: string | null;
12771
- isDeleted?: boolean;
12772
- deleterId?: string | null;
12773
- deletionTime?: string | null;
12774
12673
  tenantId?: string | null;
12775
12674
  userName?: string | null;
12776
12675
  email?: string | null;
@@ -12790,7 +12689,6 @@ export type $OpenApiTs = {
12790
12689
  roleNames?: Array<(string)> | null;
12791
12690
  accessFailedCount?: number;
12792
12691
  lastPasswordChangeTime?: string | null;
12793
- isExternal?: boolean;
12794
12692
  };
12795
12693
  /**
12796
12694
  * Bad Request
@@ -12911,9 +12809,6 @@ export type $OpenApiTs = {
12911
12809
  creatorId?: string | null;
12912
12810
  lastModificationTime?: string | null;
12913
12811
  lastModifierId?: string | null;
12914
- isDeleted?: boolean;
12915
- deleterId?: string | null;
12916
- deletionTime?: string | null;
12917
12812
  tenantId?: string | null;
12918
12813
  userName?: string | null;
12919
12814
  email?: string | null;
@@ -12933,7 +12828,6 @@ export type $OpenApiTs = {
12933
12828
  roleNames?: Array<(string)> | null;
12934
12829
  accessFailedCount?: number;
12935
12830
  lastPasswordChangeTime?: string | null;
12936
- isExternal?: boolean;
12937
12831
  };
12938
12832
  /**
12939
12833
  * Bad Request
@@ -13168,9 +13062,6 @@ export type $OpenApiTs = {
13168
13062
  creatorId?: string | null;
13169
13063
  lastModificationTime?: string | null;
13170
13064
  lastModifierId?: string | null;
13171
- isDeleted?: boolean;
13172
- deleterId?: string | null;
13173
- deletionTime?: string | null;
13174
13065
  tenantId?: string | null;
13175
13066
  userName?: string | null;
13176
13067
  email?: string | null;
@@ -13190,7 +13081,6 @@ export type $OpenApiTs = {
13190
13081
  roleNames?: Array<(string)> | null;
13191
13082
  accessFailedCount?: number;
13192
13083
  lastPasswordChangeTime?: string | null;
13193
- isExternal?: boolean;
13194
13084
  }> | null;
13195
13085
  totalCount?: number;
13196
13086
  };
@@ -13313,9 +13203,6 @@ export type $OpenApiTs = {
13313
13203
  creatorId?: string | null;
13314
13204
  lastModificationTime?: string | null;
13315
13205
  lastModifierId?: string | null;
13316
- isDeleted?: boolean;
13317
- deleterId?: string | null;
13318
- deletionTime?: string | null;
13319
13206
  tenantId?: string | null;
13320
13207
  userName?: string | null;
13321
13208
  email?: string | null;
@@ -13335,152 +13222,6 @@ export type $OpenApiTs = {
13335
13222
  roleNames?: Array<(string)> | null;
13336
13223
  accessFailedCount?: number;
13337
13224
  lastPasswordChangeTime?: string | null;
13338
- isExternal?: boolean;
13339
- };
13340
- /**
13341
- * Bad Request
13342
- */
13343
- 400: {
13344
- error?: {
13345
- code?: string | null;
13346
- message?: string | null;
13347
- details?: string | null;
13348
- data?: {
13349
- [key: string]: unknown;
13350
- } | null;
13351
- validationErrors?: Array<{
13352
- message?: string | null;
13353
- members?: Array<(string)> | null;
13354
- }> | null;
13355
- };
13356
- };
13357
- /**
13358
- * Unauthorized
13359
- */
13360
- 401: {
13361
- error?: {
13362
- code?: string | null;
13363
- message?: string | null;
13364
- details?: string | null;
13365
- data?: {
13366
- [key: string]: unknown;
13367
- } | null;
13368
- validationErrors?: Array<{
13369
- message?: string | null;
13370
- members?: Array<(string)> | null;
13371
- }> | null;
13372
- };
13373
- };
13374
- /**
13375
- * Forbidden
13376
- */
13377
- 403: {
13378
- error?: {
13379
- code?: string | null;
13380
- message?: string | null;
13381
- details?: string | null;
13382
- data?: {
13383
- [key: string]: unknown;
13384
- } | null;
13385
- validationErrors?: Array<{
13386
- message?: string | null;
13387
- members?: Array<(string)> | null;
13388
- }> | null;
13389
- };
13390
- };
13391
- /**
13392
- * Not Found
13393
- */
13394
- 404: {
13395
- error?: {
13396
- code?: string | null;
13397
- message?: string | null;
13398
- details?: string | null;
13399
- data?: {
13400
- [key: string]: unknown;
13401
- } | null;
13402
- validationErrors?: Array<{
13403
- message?: string | null;
13404
- members?: Array<(string)> | null;
13405
- }> | null;
13406
- };
13407
- };
13408
- /**
13409
- * Server Error
13410
- */
13411
- 500: {
13412
- error?: {
13413
- code?: string | null;
13414
- message?: string | null;
13415
- details?: string | null;
13416
- data?: {
13417
- [key: string]: unknown;
13418
- } | null;
13419
- validationErrors?: Array<{
13420
- message?: string | null;
13421
- members?: Array<(string)> | null;
13422
- }> | null;
13423
- };
13424
- };
13425
- /**
13426
- * Server Error
13427
- */
13428
- 501: {
13429
- error?: {
13430
- code?: string | null;
13431
- message?: string | null;
13432
- details?: string | null;
13433
- data?: {
13434
- [key: string]: unknown;
13435
- } | null;
13436
- validationErrors?: Array<{
13437
- message?: string | null;
13438
- members?: Array<(string)> | null;
13439
- }> | null;
13440
- };
13441
- };
13442
- };
13443
- };
13444
- };
13445
- '/api/identity/users/by-id/{id}': {
13446
- get: {
13447
- req: GetApiIdentityUsersByIdByIdData;
13448
- res: {
13449
- /**
13450
- * Success
13451
- */
13452
- 200: {
13453
- readonly extraProperties?: {
13454
- [key: string]: unknown;
13455
- } | null;
13456
- id?: string;
13457
- creationTime?: string;
13458
- creatorId?: string | null;
13459
- lastModificationTime?: string | null;
13460
- lastModifierId?: string | null;
13461
- isDeleted?: boolean;
13462
- deleterId?: string | null;
13463
- deletionTime?: string | null;
13464
- tenantId?: string | null;
13465
- userName?: string | null;
13466
- email?: string | null;
13467
- name?: string | null;
13468
- surname?: string | null;
13469
- emailConfirmed?: boolean;
13470
- phoneNumber?: string | null;
13471
- phoneNumberConfirmed?: boolean;
13472
- supportTwoFactor?: boolean;
13473
- twoFactorEnabled?: boolean;
13474
- isActive?: boolean;
13475
- lockoutEnabled?: boolean;
13476
- isLockedOut?: boolean;
13477
- lockoutEnd?: string | null;
13478
- shouldChangePasswordOnNextLogin?: boolean;
13479
- concurrencyStamp?: string | null;
13480
- roleNames?: Array<(string)> | null;
13481
- accessFailedCount?: number;
13482
- lastPasswordChangeTime?: string | null;
13483
- isExternal?: boolean;
13484
13225
  };
13485
13226
  /**
13486
13227
  * Bad Request
@@ -14822,9 +14563,6 @@ export type $OpenApiTs = {
14822
14563
  creatorId?: string | null;
14823
14564
  lastModificationTime?: string | null;
14824
14565
  lastModifierId?: string | null;
14825
- isDeleted?: boolean;
14826
- deleterId?: string | null;
14827
- deletionTime?: string | null;
14828
14566
  tenantId?: string | null;
14829
14567
  userName?: string | null;
14830
14568
  email?: string | null;
@@ -14844,7 +14582,6 @@ export type $OpenApiTs = {
14844
14582
  roleNames?: Array<(string)> | null;
14845
14583
  accessFailedCount?: number;
14846
14584
  lastPasswordChangeTime?: string | null;
14847
- isExternal?: boolean;
14848
14585
  };
14849
14586
  /**
14850
14587
  * Bad Request
@@ -14967,9 +14704,6 @@ export type $OpenApiTs = {
14967
14704
  creatorId?: string | null;
14968
14705
  lastModificationTime?: string | null;
14969
14706
  lastModifierId?: string | null;
14970
- isDeleted?: boolean;
14971
- deleterId?: string | null;
14972
- deletionTime?: string | null;
14973
14707
  tenantId?: string | null;
14974
14708
  userName?: string | null;
14975
14709
  email?: string | null;
@@ -14989,7 +14723,6 @@ export type $OpenApiTs = {
14989
14723
  roleNames?: Array<(string)> | null;
14990
14724
  accessFailedCount?: number;
14991
14725
  lastPasswordChangeTime?: string | null;
14992
- isExternal?: boolean;
14993
14726
  };
14994
14727
  /**
14995
14728
  * Bad Request
@@ -15796,9 +15529,6 @@ export type $OpenApiTs = {
15796
15529
  creatorId?: string | null;
15797
15530
  lastModificationTime?: string | null;
15798
15531
  lastModifierId?: string | null;
15799
- isDeleted?: boolean;
15800
- deleterId?: string | null;
15801
- deletionTime?: string | null;
15802
15532
  tenantId?: string | null;
15803
15533
  userName?: string | null;
15804
15534
  email?: string | null;
@@ -15818,7 +15548,6 @@ export type $OpenApiTs = {
15818
15548
  roleNames?: Array<(string)> | null;
15819
15549
  accessFailedCount?: number;
15820
15550
  lastPasswordChangeTime?: string | null;
15821
- isExternal?: boolean;
15822
15551
  };
15823
15552
  /**
15824
15553
  * Bad Request
@@ -0,0 +1,44 @@
1
+ import type { BaseHttpRequest } from './core/BaseHttpRequest';
2
+ import type { OpenAPIConfig } from './core/OpenAPI';
3
+ import { Interceptors } from './core/OpenAPI';
4
+ import { FetchHttpRequest } from './core/FetchHttpRequest';
5
+
6
+ import { AbpApiDefinitionService } from './services.gen';
7
+ import { AbpApplicationConfigurationService } from './services.gen';
8
+ import { AbpApplicationLocalizationService } from './services.gen';
9
+ import { MerchantService } from './services.gen';
10
+
11
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
12
+
13
+ export class MerchantServiceClient {
14
+
15
+ public readonly abpApiDefinition: AbpApiDefinitionService;
16
+ public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
17
+ public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
18
+ public readonly merchant: MerchantService;
19
+
20
+ public readonly request: BaseHttpRequest;
21
+
22
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
23
+ this.request = new HttpRequest({
24
+ BASE: config?.BASE ?? '',
25
+ VERSION: config?.VERSION ?? '1',
26
+ WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
27
+ CREDENTIALS: config?.CREDENTIALS ?? 'include',
28
+ TOKEN: config?.TOKEN,
29
+ USERNAME: config?.USERNAME,
30
+ PASSWORD: config?.PASSWORD,
31
+ HEADERS: config?.HEADERS,
32
+ ENCODE_PATH: config?.ENCODE_PATH,
33
+ interceptors: {
34
+ request: config?.interceptors?.request ?? new Interceptors(),
35
+ response: config?.interceptors?.response ?? new Interceptors(),
36
+ },
37
+ });
38
+
39
+ this.abpApiDefinition = new AbpApiDefinitionService(this.request);
40
+ this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
41
+ this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
42
+ this.merchant = new MerchantService(this.request);
43
+ }
44
+ }
@@ -0,0 +1,21 @@
1
+ import type { ApiRequestOptions } from './ApiRequestOptions';
2
+ import type { ApiResult } from './ApiResult';
3
+
4
+ export class ApiError extends Error {
5
+ public readonly url: string;
6
+ public readonly status: number;
7
+ public readonly statusText: string;
8
+ public readonly body: unknown;
9
+ public readonly request: ApiRequestOptions;
10
+
11
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
12
+ super(message);
13
+
14
+ this.name = 'ApiError';
15
+ this.url = response.url;
16
+ this.status = response.status;
17
+ this.statusText = response.statusText;
18
+ this.body = response.body;
19
+ this.request = request;
20
+ }
21
+ }
@@ -0,0 +1,13 @@
1
+ export type ApiRequestOptions = {
2
+ readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
+ readonly url: string;
4
+ readonly path?: Record<string, unknown>;
5
+ readonly cookies?: Record<string, unknown>;
6
+ readonly headers?: Record<string, unknown>;
7
+ readonly query?: Record<string, unknown>;
8
+ readonly formData?: Record<string, unknown>;
9
+ readonly body?: any;
10
+ readonly mediaType?: string;
11
+ readonly responseHeader?: string;
12
+ readonly errors?: Record<number, string>;
13
+ };
@@ -0,0 +1,7 @@
1
+ export type ApiResult<TData = any> = {
2
+ readonly body: TData;
3
+ readonly ok: boolean;
4
+ readonly status: number;
5
+ readonly statusText: string;
6
+ readonly url: string;
7
+ };
@@ -0,0 +1,10 @@
1
+ import type { ApiRequestOptions } from './ApiRequestOptions';
2
+ import type { CancelablePromise } from './CancelablePromise';
3
+ import type { OpenAPIConfig } from './OpenAPI';
4
+
5
+ export abstract class BaseHttpRequest {
6
+
7
+ constructor(public readonly config: OpenAPIConfig) {}
8
+
9
+ public abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
10
+ }