@dapex-tech/elite-online-services 0.0.8 → 0.0.11

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.
Files changed (97) hide show
  1. package/createClient.d.ts +19 -0
  2. package/createClient.js +1 -2
  3. package/models/AdminDto.d.ts +18 -6
  4. package/models/{LoginDto.d.ts → AdminLoginDto.d.ts} +1 -1
  5. package/models/AdminUpdateDto.d.ts +0 -4
  6. package/models/CustomerDto.d.ts +66 -0
  7. package/models/{CreateUserLocationDto.d.ts → CustomerLocationCreateDto.d.ts} +2 -2
  8. package/models/CustomerLocationDto.d.ts +34 -0
  9. package/models/{UpdateUserLocationDto.d.ts → CustomerLocationUpdateDto.d.ts} +2 -2
  10. package/models/CustomerLoginDto.d.ts +18 -0
  11. package/models/{UserDto.d.ts → CustomerUpdatedDto.d.ts} +5 -5
  12. package/models/{VerifyUserAccountDto.d.ts → CustomerVerifyAccountDto.d.ts} +5 -1
  13. package/models/DriverDto.d.ts +16 -4
  14. package/models/{EmailPhoneLoginDto.d.ts → DriverLoginDto.d.ts} +2 -6
  15. package/models/DriverTripActions.d.ts +10 -0
  16. package/models/DriverTripActions.js +18 -0
  17. package/models/DriverUpdateDto.d.ts +6 -6
  18. package/models/GenerateResetCodeDto.d.ts +6 -2
  19. package/models/GenerateVerificationCodeDto.d.ts +10 -0
  20. package/models/PaymentDto.d.ts +18 -0
  21. package/models/ResetPasswordDto.d.ts +14 -0
  22. package/models/TripAssignDriverDto.d.ts +6 -0
  23. package/models/TripDto.d.ts +108 -0
  24. package/models/TripLocationPointDto.d.ts +26 -0
  25. package/models/TripUpdateDriverAssignmentModeDto.d.ts +6 -0
  26. package/models/TripUpdateDto.d.ts +38 -0
  27. package/models/TripUpdateTripsStatusDto.d.ts +6 -0
  28. package/models/ValidateResetCodeDto.d.ts +14 -0
  29. package/models/ValidateResetCodeDto.js +2 -0
  30. package/models/index.d.ts +20 -18
  31. package/models/index.js +20 -18
  32. package/package.json +2 -2
  33. package/services/AdminAuthService.d.ts +28 -3
  34. package/services/AdminAuthService.js +57 -1
  35. package/services/AdminCustomerService.d.ts +50 -0
  36. package/services/AdminCustomerService.js +119 -0
  37. package/services/AdminDriversService.d.ts +51 -0
  38. package/services/AdminDriversService.js +122 -0
  39. package/services/AdminService.d.ts +0 -44
  40. package/services/AdminService.js +0 -100
  41. package/services/AdminTripsService.d.ts +59 -0
  42. package/services/AdminTripsService.js +150 -0
  43. package/services/CustomerLocationsService.d.ts +41 -0
  44. package/services/CustomerLocationsService.js +93 -0
  45. package/services/CustomerTripsService.d.ts +63 -0
  46. package/services/CustomerTripsService.js +162 -0
  47. package/services/CustomersAuthService.d.ts +88 -0
  48. package/services/{UserAuthService.js → CustomersAuthService.js} +24 -21
  49. package/services/CustomersService.d.ts +17 -0
  50. package/services/CustomersService.js +41 -0
  51. package/services/DriverAuthService.d.ts +6 -6
  52. package/services/DriverAuthService.js +1 -1
  53. package/services/DriverTripsService.d.ts +49 -0
  54. package/services/DriverTripsService.js +121 -0
  55. package/services/DriversService.d.ts +9 -53
  56. package/services/DriversService.js +14 -132
  57. package/services/MainService.d.ts +5 -0
  58. package/services/MainService.js +10 -0
  59. package/services/index.d.ts +8 -3
  60. package/services/index.js +8 -3
  61. package/socketService.d.ts +54 -0
  62. package/socketService.js +91 -96
  63. package/models/CreateServiceOrderDto.d.ts +0 -46
  64. package/models/CreateStreetPickupDto.d.ts +0 -10
  65. package/models/GenerateUserResetCodeDto.d.ts +0 -6
  66. package/models/GenerateUserVerificationCodeDto.d.ts +0 -6
  67. package/models/ResetDriverPasswordDto.d.ts +0 -10
  68. package/models/ResetUserPasswordDto.d.ts +0 -10
  69. package/models/UpdateDriverStatusDto.d.ts +0 -10
  70. package/models/UpdateDriverTripStatusDto.d.ts +0 -14
  71. package/models/UpdateTripStatusDto.d.ts +0 -10
  72. package/models/UserUpdatedDto.d.ts +0 -18
  73. package/models/ValidateDriverResetCodeDto.d.ts +0 -10
  74. package/models/ValidateUserResetCodeDto.d.ts +0 -10
  75. package/services/CatalogsService.d.ts +0 -67
  76. package/services/CatalogsService.js +0 -142
  77. package/services/UserAuthService.d.ts +0 -85
  78. package/services/UsersService.d.ts +0 -81
  79. package/services/UsersService.js +0 -198
  80. /package/models/{CreateServiceOrderDto.js → AdminLoginDto.js} +0 -0
  81. /package/models/{CreateStreetPickupDto.js → CustomerDto.js} +0 -0
  82. /package/models/{CreateUserLocationDto.js → CustomerLocationCreateDto.js} +0 -0
  83. /package/models/{EmailPhoneLoginDto.js → CustomerLocationDto.js} +0 -0
  84. /package/models/{GenerateUserResetCodeDto.js → CustomerLocationUpdateDto.js} +0 -0
  85. /package/models/{GenerateUserVerificationCodeDto.js → CustomerLoginDto.js} +0 -0
  86. /package/models/{LoginDto.js → CustomerUpdatedDto.js} +0 -0
  87. /package/models/{ResetDriverPasswordDto.js → CustomerVerifyAccountDto.js} +0 -0
  88. /package/models/{ResetUserPasswordDto.js → DriverLoginDto.js} +0 -0
  89. /package/models/{UpdateDriverStatusDto.js → GenerateVerificationCodeDto.js} +0 -0
  90. /package/models/{UpdateDriverTripStatusDto.js → PaymentDto.js} +0 -0
  91. /package/models/{UpdateTripStatusDto.js → ResetPasswordDto.js} +0 -0
  92. /package/models/{UpdateUserLocationDto.js → TripAssignDriverDto.js} +0 -0
  93. /package/models/{UserDto.js → TripDto.js} +0 -0
  94. /package/models/{UserUpdatedDto.js → TripLocationPointDto.js} +0 -0
  95. /package/models/{ValidateDriverResetCodeDto.js → TripUpdateDriverAssignmentModeDto.js} +0 -0
  96. /package/models/{ValidateUserResetCodeDto.js → TripUpdateDto.js} +0 -0
  97. /package/models/{VerifyUserAccountDto.js → TripUpdateTripsStatusDto.js} +0 -0
@@ -1,10 +0,0 @@
1
- export type ValidateDriverResetCodeDto = {
2
- /**
3
- * Driver Email
4
- */
5
- email: string;
6
- /**
7
- * Reset Code (4 digits)
8
- */
9
- resetCode: string;
10
- };
@@ -1,10 +0,0 @@
1
- export type ValidateUserResetCodeDto = {
2
- /**
3
- * User Email
4
- */
5
- email: string;
6
- /**
7
- * Reset Code (4 digits)
8
- */
9
- resetCode: string;
10
- };
@@ -1,67 +0,0 @@
1
- import type { OrderDto } from '../models/OrderDto';
2
- import type { CancelablePromise } from '../core/CancelablePromise';
3
- export declare class CatalogsService {
4
- /**
5
- * Get all countries
6
- * @param search Text to search for in country name
7
- * @param order Sorting options
8
- * @returns any List of countries
9
- * @throws ApiError
10
- */
11
- static getCountries(search?: string, order?: OrderDto): CancelablePromise<any>;
12
- /**
13
- * Get country by ID
14
- * @param id
15
- * @returns any Country found
16
- * @throws ApiError
17
- */
18
- static getCountryById(id: number): CancelablePromise<any>;
19
- /**
20
- * Get all states
21
- * @param countryId Filter states by country ID
22
- * @param search Text to search for in state name
23
- * @param order Sorting options
24
- * @returns any List of states
25
- * @throws ApiError
26
- */
27
- static getStates(countryId?: number, search?: string, order?: OrderDto): CancelablePromise<any>;
28
- /**
29
- * Get state by ID
30
- * @param id
31
- * @returns any State found
32
- * @throws ApiError
33
- */
34
- static getStateById(id: number): CancelablePromise<any>;
35
- /**
36
- * Get all counties (optionally filtered by state)
37
- * @param stateId Filter counties by state ID
38
- * @param search Text to search for in county name
39
- * @param order Sorting options
40
- * @returns any List of counties
41
- * @throws ApiError
42
- */
43
- static getCounties(stateId?: number, search?: string, order?: OrderDto): CancelablePromise<any>;
44
- /**
45
- * Get county by ID
46
- * @param id
47
- * @returns any County found
48
- * @throws ApiError
49
- */
50
- static getCountyById(id: number): CancelablePromise<any>;
51
- /**
52
- * Get all cities (optionally filtered by county)
53
- * @param countyId Filter cities by county ID
54
- * @param search Text to search for in city name
55
- * @param order Sorting options
56
- * @returns any List of cities
57
- * @throws ApiError
58
- */
59
- static getCities(countyId?: number, search?: string, order?: OrderDto): CancelablePromise<any>;
60
- /**
61
- * Get city by ID
62
- * @param id
63
- * @returns any City found
64
- * @throws ApiError
65
- */
66
- static getCityById(id: number): CancelablePromise<any>;
67
- }
@@ -1,142 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CatalogsService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class CatalogsService {
7
- /**
8
- * Get all countries
9
- * @param search Text to search for in country name
10
- * @param order Sorting options
11
- * @returns any List of countries
12
- * @throws ApiError
13
- */
14
- static getCountries(search, order) {
15
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
- method: 'GET',
17
- url: '/catalogs/countries',
18
- query: {
19
- 'search': search,
20
- 'order': order,
21
- },
22
- });
23
- }
24
- /**
25
- * Get country by ID
26
- * @param id
27
- * @returns any Country found
28
- * @throws ApiError
29
- */
30
- static getCountryById(id) {
31
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
32
- method: 'GET',
33
- url: '/catalogs/countries/{id}',
34
- path: {
35
- 'id': id,
36
- },
37
- });
38
- }
39
- /**
40
- * Get all states
41
- * @param countryId Filter states by country ID
42
- * @param search Text to search for in state name
43
- * @param order Sorting options
44
- * @returns any List of states
45
- * @throws ApiError
46
- */
47
- static getStates(countryId, search, order) {
48
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
49
- method: 'GET',
50
- url: '/catalogs/states',
51
- query: {
52
- 'country_id': countryId,
53
- 'search': search,
54
- 'order': order,
55
- },
56
- });
57
- }
58
- /**
59
- * Get state by ID
60
- * @param id
61
- * @returns any State found
62
- * @throws ApiError
63
- */
64
- static getStateById(id) {
65
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
66
- method: 'GET',
67
- url: '/catalogs/states/{id}',
68
- path: {
69
- 'id': id,
70
- },
71
- });
72
- }
73
- /**
74
- * Get all counties (optionally filtered by state)
75
- * @param stateId Filter counties by state ID
76
- * @param search Text to search for in county name
77
- * @param order Sorting options
78
- * @returns any List of counties
79
- * @throws ApiError
80
- */
81
- static getCounties(stateId, search, order) {
82
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
83
- method: 'GET',
84
- url: '/catalogs/counties',
85
- query: {
86
- 'state_id': stateId,
87
- 'search': search,
88
- 'order': order,
89
- },
90
- });
91
- }
92
- /**
93
- * Get county by ID
94
- * @param id
95
- * @returns any County found
96
- * @throws ApiError
97
- */
98
- static getCountyById(id) {
99
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
100
- method: 'GET',
101
- url: '/catalogs/counties/{id}',
102
- path: {
103
- 'id': id,
104
- },
105
- });
106
- }
107
- /**
108
- * Get all cities (optionally filtered by county)
109
- * @param countyId Filter cities by county ID
110
- * @param search Text to search for in city name
111
- * @param order Sorting options
112
- * @returns any List of cities
113
- * @throws ApiError
114
- */
115
- static getCities(countyId, search, order) {
116
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
117
- method: 'GET',
118
- url: '/catalogs/cities',
119
- query: {
120
- 'county_id': countyId,
121
- 'search': search,
122
- 'order': order,
123
- },
124
- });
125
- }
126
- /**
127
- * Get city by ID
128
- * @param id
129
- * @returns any City found
130
- * @throws ApiError
131
- */
132
- static getCityById(id) {
133
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
134
- method: 'GET',
135
- url: '/catalogs/cities/{id}',
136
- path: {
137
- 'id': id,
138
- },
139
- });
140
- }
141
- }
142
- exports.CatalogsService = CatalogsService;
@@ -1,85 +0,0 @@
1
- import type { EmailPhoneLoginDto } from '../models/EmailPhoneLoginDto';
2
- import type { GenerateUserResetCodeDto } from '../models/GenerateUserResetCodeDto';
3
- import type { GenerateUserVerificationCodeDto } from '../models/GenerateUserVerificationCodeDto';
4
- import type { ResetUserPasswordDto } from '../models/ResetUserPasswordDto';
5
- import type { UserDto } from '../models/UserDto';
6
- import type { UserUpdatedDto } from '../models/UserUpdatedDto';
7
- import type { ValidateUserResetCodeDto } from '../models/ValidateUserResetCodeDto';
8
- import type { VerifyUserAccountDto } from '../models/VerifyUserAccountDto';
9
- import type { CancelablePromise } from '../core/CancelablePromise';
10
- export declare class UserAuthService {
11
- /**
12
- * User Login
13
- * @param requestBody
14
- * @returns any Login successful
15
- * @throws ApiError
16
- */
17
- static login(requestBody: EmailPhoneLoginDto): CancelablePromise<any>;
18
- /**
19
- * User Register
20
- * @param requestBody
21
- * @returns any Registration successful
22
- * @throws ApiError
23
- */
24
- static register(requestBody: UserDto): CancelablePromise<any>;
25
- /**
26
- * Refresh User Token
27
- * @returns any Token refreshed successfully
28
- * @throws ApiError
29
- */
30
- static refreshToken(): CancelablePromise<any>;
31
- /**
32
- * Get Current User
33
- * @returns any User information retrieved
34
- * @throws ApiError
35
- */
36
- static me(): CancelablePromise<any>;
37
- /**
38
- * Update User Profile
39
- * @param requestBody
40
- * @returns any User profile updated successfully
41
- * @throws ApiError
42
- */
43
- static updateProfile(requestBody: UserUpdatedDto): CancelablePromise<any>;
44
- /**
45
- * User Logout
46
- * @returns any Logout successful
47
- * @throws ApiError
48
- */
49
- static logout(): CancelablePromise<any>;
50
- /**
51
- * Generate Password Reset Code
52
- * @param requestBody
53
- * @returns any Reset code generated and sent successfully
54
- * @throws ApiError
55
- */
56
- static generateResetCode(requestBody: GenerateUserResetCodeDto): CancelablePromise<any>;
57
- /**
58
- * Validate Password Reset Code
59
- * @param requestBody
60
- * @returns any Reset code is valid
61
- * @throws ApiError
62
- */
63
- static validateResetCode(requestBody: ValidateUserResetCodeDto): CancelablePromise<any>;
64
- /**
65
- * Reset User Password
66
- * @param requestBody
67
- * @returns any Password reset successfully
68
- * @throws ApiError
69
- */
70
- static resetPassword(requestBody: ResetUserPasswordDto): CancelablePromise<any>;
71
- /**
72
- * Generate User Verification Code
73
- * @param requestBody
74
- * @returns any Verification code generated and sent successfully
75
- * @throws ApiError
76
- */
77
- static generateVerificationCode(requestBody: GenerateUserVerificationCodeDto): CancelablePromise<any>;
78
- /**
79
- * Verify User Account
80
- * @param requestBody
81
- * @returns any User verified successfully
82
- * @throws ApiError
83
- */
84
- static verifyAccount(requestBody: VerifyUserAccountDto): CancelablePromise<any>;
85
- }
@@ -1,81 +0,0 @@
1
- import type { CreateStreetPickupDto } from '../models/CreateStreetPickupDto';
2
- import type { CreateUserLocationDto } from '../models/CreateUserLocationDto';
3
- import type { OrderDto } from '../models/OrderDto';
4
- import type { UpdateUserLocationDto } from '../models/UpdateUserLocationDto';
5
- import type { UserDto } from '../models/UserDto';
6
- import type { UserUpdatedDto } from '../models/UserUpdatedDto';
7
- import type { CancelablePromise } from '../core/CancelablePromise';
8
- export declare class UsersService {
9
- /**
10
- * Create a new user
11
- * @param requestBody
12
- * @returns any User created successfully.
13
- * @throws ApiError
14
- */
15
- static create(requestBody: UserDto): CancelablePromise<any>;
16
- /**
17
- * Get all users
18
- * @param search Text to search for in name, surname, phone number or email
19
- * @param order Sorting options
20
- * @returns any List of users.
21
- * @throws ApiError
22
- */
23
- static findAll(search?: string, order?: OrderDto): CancelablePromise<any>;
24
- /**
25
- * Create a new street pickup/service order
26
- * @param requestBody
27
- * @returns any Street pickup created successfully.
28
- * @throws ApiError
29
- */
30
- static createStreetPickup(requestBody: CreateStreetPickupDto): CancelablePromise<any>;
31
- /**
32
- * Get all locations for the authenticated user
33
- * @returns any List of user locations.
34
- * @throws ApiError
35
- */
36
- static getUserLocations(): CancelablePromise<any>;
37
- /**
38
- * Create a new location for the authenticated user
39
- * @param requestBody
40
- * @returns any Location created successfully.
41
- * @throws ApiError
42
- */
43
- static createUserLocation(requestBody: CreateUserLocationDto): CancelablePromise<any>;
44
- /**
45
- * Update a user location
46
- * @param locationId
47
- * @param requestBody
48
- * @returns any Location updated successfully.
49
- * @throws ApiError
50
- */
51
- static updateUserLocation(locationId: number, requestBody: UpdateUserLocationDto): CancelablePromise<any>;
52
- /**
53
- * Delete a user location
54
- * @param locationId
55
- * @returns any Location deleted successfully.
56
- * @throws ApiError
57
- */
58
- static deleteUserLocation(locationId: number): CancelablePromise<any>;
59
- /**
60
- * Get a user by ID
61
- * @param id
62
- * @returns any User found.
63
- * @throws ApiError
64
- */
65
- static findOne(id: number): CancelablePromise<any>;
66
- /**
67
- * Update a user by ID
68
- * @param id
69
- * @param requestBody
70
- * @returns any User updated successfully.
71
- * @throws ApiError
72
- */
73
- static update(id: number, requestBody: UserUpdatedDto): CancelablePromise<any>;
74
- /**
75
- * Delete a user by ID
76
- * @param id
77
- * @returns any User deleted successfully.
78
- * @throws ApiError
79
- */
80
- static remove(id: number): CancelablePromise<any>;
81
- }
@@ -1,198 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UsersService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class UsersService {
7
- /**
8
- * Create a new user
9
- * @param requestBody
10
- * @returns any User created successfully.
11
- * @throws ApiError
12
- */
13
- static create(requestBody) {
14
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
15
- method: 'POST',
16
- url: '/users',
17
- body: requestBody,
18
- mediaType: 'application/json',
19
- errors: {
20
- 400: `Invalid data.`,
21
- 401: `Unauthorized`,
22
- },
23
- });
24
- }
25
- /**
26
- * Get all users
27
- * @param search Text to search for in name, surname, phone number or email
28
- * @param order Sorting options
29
- * @returns any List of users.
30
- * @throws ApiError
31
- */
32
- static findAll(search, order) {
33
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
34
- method: 'GET',
35
- url: '/users',
36
- query: {
37
- 'search': search,
38
- 'order': order,
39
- },
40
- errors: {
41
- 401: `Unauthorized`,
42
- },
43
- });
44
- }
45
- /**
46
- * Create a new street pickup/service order
47
- * @param requestBody
48
- * @returns any Street pickup created successfully.
49
- * @throws ApiError
50
- */
51
- static createStreetPickup(requestBody) {
52
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
53
- method: 'POST',
54
- url: '/users/street-pickup',
55
- body: requestBody,
56
- mediaType: 'application/json',
57
- errors: {
58
- 401: `Unauthorized`,
59
- },
60
- });
61
- }
62
- /**
63
- * Get all locations for the authenticated user
64
- * @returns any List of user locations.
65
- * @throws ApiError
66
- */
67
- static getUserLocations() {
68
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
69
- method: 'GET',
70
- url: '/users/locations',
71
- errors: {
72
- 401: `Unauthorized`,
73
- 404: `User not found.`,
74
- },
75
- });
76
- }
77
- /**
78
- * Create a new location for the authenticated user
79
- * @param requestBody
80
- * @returns any Location created successfully.
81
- * @throws ApiError
82
- */
83
- static createUserLocation(requestBody) {
84
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
85
- method: 'POST',
86
- url: '/users/locations',
87
- body: requestBody,
88
- mediaType: 'application/json',
89
- errors: {
90
- 400: `Invalid data.`,
91
- 401: `Unauthorized`,
92
- 404: `User not found.`,
93
- },
94
- });
95
- }
96
- /**
97
- * Update a user location
98
- * @param locationId
99
- * @param requestBody
100
- * @returns any Location updated successfully.
101
- * @throws ApiError
102
- */
103
- static updateUserLocation(locationId, requestBody) {
104
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
105
- method: 'PATCH',
106
- url: '/users/locations/{locationId}',
107
- path: {
108
- 'locationId': locationId,
109
- },
110
- body: requestBody,
111
- mediaType: 'application/json',
112
- errors: {
113
- 401: `Unauthorized`,
114
- 404: `Location not found.`,
115
- },
116
- });
117
- }
118
- /**
119
- * Delete a user location
120
- * @param locationId
121
- * @returns any Location deleted successfully.
122
- * @throws ApiError
123
- */
124
- static deleteUserLocation(locationId) {
125
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
126
- method: 'DELETE',
127
- url: '/users/locations/{locationId}',
128
- path: {
129
- 'locationId': locationId,
130
- },
131
- errors: {
132
- 401: `Unauthorized`,
133
- 404: `Location not found.`,
134
- },
135
- });
136
- }
137
- /**
138
- * Get a user by ID
139
- * @param id
140
- * @returns any User found.
141
- * @throws ApiError
142
- */
143
- static findOne(id) {
144
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
145
- method: 'GET',
146
- url: '/users/{id}',
147
- path: {
148
- 'id': id,
149
- },
150
- errors: {
151
- 401: `Unauthorized`,
152
- 404: `User not found.`,
153
- },
154
- });
155
- }
156
- /**
157
- * Update a user by ID
158
- * @param id
159
- * @param requestBody
160
- * @returns any User updated successfully.
161
- * @throws ApiError
162
- */
163
- static update(id, requestBody) {
164
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
165
- method: 'PATCH',
166
- url: '/users/{id}',
167
- path: {
168
- 'id': id,
169
- },
170
- body: requestBody,
171
- mediaType: 'application/json',
172
- errors: {
173
- 401: `Unauthorized`,
174
- 404: `User not found.`,
175
- },
176
- });
177
- }
178
- /**
179
- * Delete a user by ID
180
- * @param id
181
- * @returns any User deleted successfully.
182
- * @throws ApiError
183
- */
184
- static remove(id) {
185
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
186
- method: 'DELETE',
187
- url: '/users/{id}',
188
- path: {
189
- 'id': id,
190
- },
191
- errors: {
192
- 401: `Unauthorized`,
193
- 404: `User not found.`,
194
- },
195
- });
196
- }
197
- }
198
- exports.UsersService = UsersService;
File without changes
File without changes