@tammsyr/admin-api-client 1.0.1 → 1.0.3

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 (71) hide show
  1. package/dist/ActivityLogs.d.ts +17 -0
  2. package/dist/ActivityLogs.d.ts.map +1 -0
  3. package/dist/ActivityLogs.js +38 -0
  4. package/dist/ActivityLogs.js.map +1 -0
  5. package/dist/Admins.d.ts +67 -0
  6. package/dist/Admins.d.ts.map +1 -0
  7. package/dist/Admins.js +124 -0
  8. package/dist/Admins.js.map +1 -0
  9. package/dist/AgentBranches.d.ts +67 -0
  10. package/dist/AgentBranches.d.ts.map +1 -0
  11. package/dist/AgentBranches.js +119 -0
  12. package/dist/AgentBranches.js.map +1 -0
  13. package/dist/AgentSettlements.d.ts +87 -0
  14. package/dist/AgentSettlements.d.ts.map +1 -0
  15. package/dist/AgentSettlements.js +151 -0
  16. package/dist/AgentSettlements.js.map +1 -0
  17. package/dist/Agents.d.ts +157 -0
  18. package/dist/Agents.d.ts.map +1 -0
  19. package/dist/Agents.js +264 -0
  20. package/dist/Agents.js.map +1 -0
  21. package/dist/Auth.d.ts +42 -0
  22. package/dist/Auth.d.ts.map +1 -0
  23. package/dist/Auth.js +84 -0
  24. package/dist/Auth.js.map +1 -0
  25. package/dist/Kyc.d.ts +47 -0
  26. package/dist/Kyc.d.ts.map +1 -0
  27. package/dist/Kyc.js +89 -0
  28. package/dist/Kyc.js.map +1 -0
  29. package/dist/Notifications.d.ts +47 -0
  30. package/dist/Notifications.d.ts.map +1 -0
  31. package/dist/Notifications.js +85 -0
  32. package/dist/Notifications.js.map +1 -0
  33. package/dist/Permissions.d.ts +57 -0
  34. package/dist/Permissions.d.ts.map +1 -0
  35. package/dist/Permissions.js +107 -0
  36. package/dist/Permissions.js.map +1 -0
  37. package/dist/Roles.d.ts +87 -0
  38. package/dist/Roles.d.ts.map +1 -0
  39. package/dist/Roles.js +158 -0
  40. package/dist/Roles.js.map +1 -0
  41. package/dist/Seed.d.ts +17 -0
  42. package/dist/Seed.d.ts.map +1 -0
  43. package/dist/Seed.js +40 -0
  44. package/dist/Seed.js.map +1 -0
  45. package/dist/data-contracts.d.ts +1105 -0
  46. package/dist/data-contracts.d.ts.map +1 -0
  47. package/dist/data-contracts.js +14 -0
  48. package/dist/data-contracts.js.map +1 -0
  49. package/dist/http-client.d.ts +43 -0
  50. package/dist/http-client.d.ts.map +1 -0
  51. package/dist/http-client.js +111 -0
  52. package/dist/http-client.js.map +1 -0
  53. package/dist/index.d.ts +80 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.js +144 -0
  56. package/dist/index.js.map +1 -0
  57. package/package.json +9 -11
  58. package/ActivityLogs.ts +0 -41
  59. package/Admins.ts +0 -154
  60. package/AgentBranches.ts +0 -152
  61. package/AgentSettlements.ts +0 -204
  62. package/Agents.ts +0 -359
  63. package/Auth.ts +0 -100
  64. package/Kyc.ts +0 -107
  65. package/Notifications.ts +0 -101
  66. package/Permissions.ts +0 -130
  67. package/Roles.ts +0 -199
  68. package/Seed.ts +0 -48
  69. package/data-contracts.ts +0 -1283
  70. package/http-client.ts +0 -186
  71. package/index.ts +0 -157
package/Agents.ts DELETED
@@ -1,359 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import {
14
- CalculateCommissionData,
15
- CalculateCommissionParams,
16
- CreateAgentCommissionData,
17
- CreateAgentCommissionParams,
18
- CreateAgentData,
19
- CreateAgentDto,
20
- CreateCommissionDto,
21
- DeleteAgentCommissionData,
22
- DeleteAgentCommissionParams,
23
- DeleteAgentData,
24
- DeleteAgentLimitData,
25
- DeleteAgentLimitParams,
26
- DeleteAgentParams,
27
- GetAgentCommissionsData,
28
- GetAgentCommissionsParams,
29
- GetAgentData,
30
- GetAgentLimitsData,
31
- GetAgentLimitsParams,
32
- GetAgentParams,
33
- ListAgentsData,
34
- ListAgentsParams,
35
- SetAgentLimitData,
36
- SetAgentLimitParams,
37
- SetAgentLimitsData,
38
- SetAgentLimitsParams,
39
- SetLimitDto,
40
- SetLimitsDto,
41
- UpdateAgentCommissionData,
42
- UpdateAgentCommissionParams,
43
- UpdateAgentData,
44
- UpdateAgentDto,
45
- UpdateAgentParams,
46
- UpdateAgentStatusData,
47
- UpdateAgentStatusDto,
48
- UpdateAgentStatusParams,
49
- UpdateCommissionDto,
50
- } from "./data-contracts";
51
- import { ContentType, HttpClient, RequestParams } from "./http-client";
52
-
53
- export class Agents<SecurityDataType = unknown> {
54
- http: HttpClient<SecurityDataType>;
55
-
56
- constructor(http: HttpClient<SecurityDataType>) {
57
- this.http = http;
58
- }
59
-
60
- /**
61
- * No description
62
- *
63
- * @tags Admin Agents
64
- * @name ListAgents
65
- * @summary List all agents
66
- * @request GET:/agents
67
- * @secure
68
- */
69
- listAgents = (query: ListAgentsParams, params: RequestParams = {}) =>
70
- this.http.request<ListAgentsData, any>({
71
- path: `/agents`,
72
- method: "GET",
73
- query: query,
74
- secure: true,
75
- ...params,
76
- });
77
- /**
78
- * No description
79
- *
80
- * @tags Admin Agents
81
- * @name CreateAgent
82
- * @summary Create a new agent
83
- * @request POST:/agents
84
- * @secure
85
- */
86
- createAgent = (data: CreateAgentDto, params: RequestParams = {}) =>
87
- this.http.request<CreateAgentData, any>({
88
- path: `/agents`,
89
- method: "POST",
90
- body: data,
91
- secure: true,
92
- type: ContentType.Json,
93
- ...params,
94
- });
95
- /**
96
- * No description
97
- *
98
- * @tags Admin Agents
99
- * @name GetAgent
100
- * @summary Get agent by ID
101
- * @request GET:/agents/{id}
102
- * @secure
103
- */
104
- getAgent = ({ id, ...query }: GetAgentParams, params: RequestParams = {}) =>
105
- this.http.request<GetAgentData, any>({
106
- path: `/agents/${id}`,
107
- method: "GET",
108
- secure: true,
109
- ...params,
110
- });
111
- /**
112
- * No description
113
- *
114
- * @tags Admin Agents
115
- * @name UpdateAgent
116
- * @summary Update an agent
117
- * @request PATCH:/agents/{id}
118
- * @secure
119
- */
120
- updateAgent = (
121
- { id, ...query }: UpdateAgentParams,
122
- data: UpdateAgentDto,
123
- params: RequestParams = {},
124
- ) =>
125
- this.http.request<UpdateAgentData, any>({
126
- path: `/agents/${id}`,
127
- method: "PATCH",
128
- body: data,
129
- secure: true,
130
- type: ContentType.Json,
131
- ...params,
132
- });
133
- /**
134
- * No description
135
- *
136
- * @tags Admin Agents
137
- * @name DeleteAgent
138
- * @summary Delete an agent
139
- * @request DELETE:/agents/{id}
140
- * @secure
141
- */
142
- deleteAgent = (
143
- { id, ...query }: DeleteAgentParams,
144
- params: RequestParams = {},
145
- ) =>
146
- this.http.request<DeleteAgentData, any>({
147
- path: `/agents/${id}`,
148
- method: "DELETE",
149
- secure: true,
150
- ...params,
151
- });
152
- /**
153
- * No description
154
- *
155
- * @tags Admin Agents
156
- * @name UpdateAgentStatus
157
- * @summary Update agent status
158
- * @request PATCH:/agents/{id}/status
159
- * @secure
160
- */
161
- updateAgentStatus = (
162
- { id, ...query }: UpdateAgentStatusParams,
163
- data: UpdateAgentStatusDto,
164
- params: RequestParams = {},
165
- ) =>
166
- this.http.request<UpdateAgentStatusData, any>({
167
- path: `/agents/${id}/status`,
168
- method: "PATCH",
169
- body: data,
170
- secure: true,
171
- type: ContentType.Json,
172
- ...params,
173
- });
174
- /**
175
- * No description
176
- *
177
- * @tags Admin Agents
178
- * @name GetAgentLimits
179
- * @summary Get agent limits
180
- * @request GET:/agents/{id}/limits
181
- * @secure
182
- */
183
- getAgentLimits = (
184
- { id, ...query }: GetAgentLimitsParams,
185
- params: RequestParams = {},
186
- ) =>
187
- this.http.request<GetAgentLimitsData, any>({
188
- path: `/agents/${id}/limits`,
189
- method: "GET",
190
- query: query,
191
- secure: true,
192
- ...params,
193
- });
194
- /**
195
- * No description
196
- *
197
- * @tags Admin Agents
198
- * @name SetAgentLimit
199
- * @summary Set agent limit
200
- * @request POST:/agents/{id}/limits
201
- * @secure
202
- */
203
- setAgentLimit = (
204
- { id, ...query }: SetAgentLimitParams,
205
- data: SetLimitDto,
206
- params: RequestParams = {},
207
- ) =>
208
- this.http.request<SetAgentLimitData, any>({
209
- path: `/agents/${id}/limits`,
210
- method: "POST",
211
- body: data,
212
- secure: true,
213
- type: ContentType.Json,
214
- ...params,
215
- });
216
- /**
217
- * No description
218
- *
219
- * @tags Admin Agents
220
- * @name SetAgentLimits
221
- * @summary Set multiple agent limits
222
- * @request PUT:/agents/{id}/limits
223
- * @secure
224
- */
225
- setAgentLimits = (
226
- { id, ...query }: SetAgentLimitsParams,
227
- data: SetLimitsDto,
228
- params: RequestParams = {},
229
- ) =>
230
- this.http.request<SetAgentLimitsData, any>({
231
- path: `/agents/${id}/limits`,
232
- method: "PUT",
233
- body: data,
234
- secure: true,
235
- type: ContentType.Json,
236
- ...params,
237
- });
238
- /**
239
- * No description
240
- *
241
- * @tags Admin Agents
242
- * @name DeleteAgentLimit
243
- * @summary Delete an agent limit
244
- * @request DELETE:/agents/limits/{limitId}
245
- * @secure
246
- */
247
- deleteAgentLimit = (
248
- { limitId, ...query }: DeleteAgentLimitParams,
249
- params: RequestParams = {},
250
- ) =>
251
- this.http.request<DeleteAgentLimitData, any>({
252
- path: `/agents/limits/${limitId}`,
253
- method: "DELETE",
254
- secure: true,
255
- ...params,
256
- });
257
- /**
258
- * No description
259
- *
260
- * @tags Admin Agents
261
- * @name GetAgentCommissions
262
- * @summary Get agent commissions
263
- * @request GET:/agents/{id}/commissions
264
- * @secure
265
- */
266
- getAgentCommissions = (
267
- { id, ...query }: GetAgentCommissionsParams,
268
- params: RequestParams = {},
269
- ) =>
270
- this.http.request<GetAgentCommissionsData, any>({
271
- path: `/agents/${id}/commissions`,
272
- method: "GET",
273
- query: query,
274
- secure: true,
275
- ...params,
276
- });
277
- /**
278
- * No description
279
- *
280
- * @tags Admin Agents
281
- * @name CreateAgentCommission
282
- * @summary Create agent commission
283
- * @request POST:/agents/{id}/commissions
284
- * @secure
285
- */
286
- createAgentCommission = (
287
- { id, ...query }: CreateAgentCommissionParams,
288
- data: CreateCommissionDto,
289
- params: RequestParams = {},
290
- ) =>
291
- this.http.request<CreateAgentCommissionData, any>({
292
- path: `/agents/${id}/commissions`,
293
- method: "POST",
294
- body: data,
295
- secure: true,
296
- type: ContentType.Json,
297
- ...params,
298
- });
299
- /**
300
- * No description
301
- *
302
- * @tags Admin Agents
303
- * @name UpdateAgentCommission
304
- * @summary Update agent commission
305
- * @request PATCH:/agents/commissions/{commissionId}
306
- * @secure
307
- */
308
- updateAgentCommission = (
309
- { commissionId, ...query }: UpdateAgentCommissionParams,
310
- data: UpdateCommissionDto,
311
- params: RequestParams = {},
312
- ) =>
313
- this.http.request<UpdateAgentCommissionData, any>({
314
- path: `/agents/commissions/${commissionId}`,
315
- method: "PATCH",
316
- body: data,
317
- secure: true,
318
- type: ContentType.Json,
319
- ...params,
320
- });
321
- /**
322
- * No description
323
- *
324
- * @tags Admin Agents
325
- * @name DeleteAgentCommission
326
- * @summary Delete agent commission
327
- * @request DELETE:/agents/commissions/{commissionId}
328
- * @secure
329
- */
330
- deleteAgentCommission = (
331
- { commissionId, ...query }: DeleteAgentCommissionParams,
332
- params: RequestParams = {},
333
- ) =>
334
- this.http.request<DeleteAgentCommissionData, any>({
335
- path: `/agents/commissions/${commissionId}`,
336
- method: "DELETE",
337
- secure: true,
338
- ...params,
339
- });
340
- /**
341
- * No description
342
- *
343
- * @tags Admin Agents
344
- * @name CalculateCommission
345
- * @summary Calculate commission for a transaction amount
346
- * @request POST:/agents/{id}/calculate-commission
347
- * @secure
348
- */
349
- calculateCommission = (
350
- { id, ...query }: CalculateCommissionParams,
351
- params: RequestParams = {},
352
- ) =>
353
- this.http.request<CalculateCommissionData, any>({
354
- path: `/agents/${id}/calculate-commission`,
355
- method: "POST",
356
- secure: true,
357
- ...params,
358
- });
359
- }
package/Auth.ts DELETED
@@ -1,100 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import {
14
- AdminLoginRequestDto,
15
- AdminLogoutRequestDto,
16
- AdminRefreshTokenRequestDto,
17
- AdminSeedRequestDto,
18
- LoginData,
19
- LoginError,
20
- LogoutData,
21
- RefreshData,
22
- RefreshError,
23
- SeedData,
24
- } from "./data-contracts";
25
- import { ContentType, HttpClient, RequestParams } from "./http-client";
26
-
27
- export class Auth<SecurityDataType = unknown> {
28
- http: HttpClient<SecurityDataType>;
29
-
30
- constructor(http: HttpClient<SecurityDataType>) {
31
- this.http = http;
32
- }
33
-
34
- /**
35
- * @description Authenticate admin with email and password
36
- *
37
- * @tags Admin Auth
38
- * @name Login
39
- * @summary Admin login
40
- * @request POST:/auth/login
41
- */
42
- login = (data: AdminLoginRequestDto, params: RequestParams = {}) =>
43
- this.http.request<LoginData, LoginError>({
44
- path: `/auth/login`,
45
- method: "POST",
46
- body: data,
47
- type: ContentType.Json,
48
- format: "json",
49
- ...params,
50
- });
51
- /**
52
- * @description Refresh access token using refresh token
53
- *
54
- * @tags Admin Auth
55
- * @name Refresh
56
- * @summary Refresh tokens
57
- * @request POST:/auth/refresh
58
- */
59
- refresh = (data: AdminRefreshTokenRequestDto, params: RequestParams = {}) =>
60
- this.http.request<RefreshData, RefreshError>({
61
- path: `/auth/refresh`,
62
- method: "POST",
63
- body: data,
64
- type: ContentType.Json,
65
- format: "json",
66
- ...params,
67
- });
68
- /**
69
- * @description Logout current session
70
- *
71
- * @tags Admin Auth
72
- * @name Logout
73
- * @summary Logout
74
- * @request POST:/auth/logout
75
- */
76
- logout = (data: AdminLogoutRequestDto, params: RequestParams = {}) =>
77
- this.http.request<LogoutData, any>({
78
- path: `/auth/logout`,
79
- method: "POST",
80
- body: data,
81
- type: ContentType.Json,
82
- format: "json",
83
- ...params,
84
- });
85
- /**
86
- * No description
87
- *
88
- * @tags Admin Auth
89
- * @name Seed
90
- * @request POST:/auth/seed
91
- */
92
- seed = (data: AdminSeedRequestDto, params: RequestParams = {}) =>
93
- this.http.request<SeedData, any>({
94
- path: `/auth/seed`,
95
- method: "POST",
96
- body: data,
97
- type: ContentType.Json,
98
- ...params,
99
- });
100
- }
package/Kyc.ts DELETED
@@ -1,107 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import {
14
- FindAllParams10,
15
- FindAllResult1,
16
- FindByIdOutput1,
17
- FindByIdParams6,
18
- GetStatisticsData,
19
- UpdateKycStatusDto,
20
- UpdateStatusParams2,
21
- UpdateStatusResult,
22
- } from "./data-contracts";
23
- import { ContentType, HttpClient, RequestParams } from "./http-client";
24
-
25
- export class Kyc<SecurityDataType = unknown> {
26
- http: HttpClient<SecurityDataType>;
27
-
28
- constructor(http: HttpClient<SecurityDataType>) {
29
- this.http = http;
30
- }
31
-
32
- /**
33
- * @description Get counts of KYC requests by status (total, pending, under review, approved, rejected)
34
- *
35
- * @tags KYC
36
- * @name GetStatistics
37
- * @summary Get KYC statistics
38
- * @request GET:/kyc/statistics
39
- * @secure
40
- */
41
- getStatistics = (params: RequestParams = {}) =>
42
- this.http.request<GetStatisticsData, any>({
43
- path: `/kyc/statistics`,
44
- method: "GET",
45
- secure: true,
46
- format: "json",
47
- ...params,
48
- });
49
- /**
50
- * @description Get paginated KYC list with optional search and filter by status
51
- *
52
- * @tags KYC
53
- * @name FindAll
54
- * @summary List all KYC submissions
55
- * @request GET:/kyc
56
- * @secure
57
- */
58
- findAll = (query: FindAllParams10, params: RequestParams = {}) =>
59
- this.http.request<FindAllResult1, any>({
60
- path: `/kyc`,
61
- method: "GET",
62
- query: query,
63
- secure: true,
64
- format: "json",
65
- ...params,
66
- });
67
- /**
68
- * @description Get KYC submission details by request ID
69
- *
70
- * @tags KYC
71
- * @name FindById
72
- * @summary Get single KYC by ID
73
- * @request GET:/kyc/{id}
74
- * @secure
75
- */
76
- findById = ({ id, ...query }: FindByIdParams6, params: RequestParams = {}) =>
77
- this.http.request<FindByIdOutput1, void>({
78
- path: `/kyc/${id}`,
79
- method: "GET",
80
- secure: true,
81
- format: "json",
82
- ...params,
83
- });
84
- /**
85
- * @description Set status to under_review (start review), rejected or verified (approve).
86
- *
87
- * @tags KYC
88
- * @name UpdateStatus
89
- * @summary Update KYC status
90
- * @request POST:/kyc/{id}/status
91
- * @secure
92
- */
93
- updateStatus = (
94
- { id, ...query }: UpdateStatusParams2,
95
- data: UpdateKycStatusDto,
96
- params: RequestParams = {},
97
- ) =>
98
- this.http.request<UpdateStatusResult, void>({
99
- path: `/kyc/${id}/status`,
100
- method: "POST",
101
- body: data,
102
- secure: true,
103
- type: ContentType.Json,
104
- format: "json",
105
- ...params,
106
- });
107
- }
package/Notifications.ts DELETED
@@ -1,101 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- import {
14
- FindAllData1,
15
- FindAllParams8,
16
- GetUnreadCountData,
17
- MarkAllAsReadData,
18
- MarkAsReadData,
19
- MarkAsReadParams,
20
- } from "./data-contracts";
21
- import { HttpClient, RequestParams } from "./http-client";
22
-
23
- export class Notifications<SecurityDataType = unknown> {
24
- http: HttpClient<SecurityDataType>;
25
-
26
- constructor(http: HttpClient<SecurityDataType>) {
27
- this.http = http;
28
- }
29
-
30
- /**
31
- * @description Get a paginated list of admin notifications
32
- *
33
- * @tags Admin Notifications
34
- * @name FindAll
35
- * @summary List notifications
36
- * @request GET:/notifications
37
- * @secure
38
- */
39
- findAll = (query: FindAllParams8, params: RequestParams = {}) =>
40
- this.http.request<FindAllData1, any>({
41
- path: `/notifications`,
42
- method: "GET",
43
- query: query,
44
- secure: true,
45
- format: "json",
46
- ...params,
47
- });
48
- /**
49
- * @description Get the count of unread notifications
50
- *
51
- * @tags Admin Notifications
52
- * @name GetUnreadCount
53
- * @summary Get unread notification count
54
- * @request GET:/notifications/unread-count
55
- * @secure
56
- */
57
- getUnreadCount = (params: RequestParams = {}) =>
58
- this.http.request<GetUnreadCountData, any>({
59
- path: `/notifications/unread-count`,
60
- method: "GET",
61
- secure: true,
62
- ...params,
63
- });
64
- /**
65
- * @description Mark a specific notification as read
66
- *
67
- * @tags Admin Notifications
68
- * @name MarkAsRead
69
- * @summary Mark notification as read
70
- * @request PATCH:/notifications/{id}/read
71
- * @secure
72
- */
73
- markAsRead = (
74
- { id, ...query }: MarkAsReadParams,
75
- params: RequestParams = {},
76
- ) =>
77
- this.http.request<MarkAsReadData, void>({
78
- path: `/notifications/${id}/read`,
79
- method: "PATCH",
80
- secure: true,
81
- format: "json",
82
- ...params,
83
- });
84
- /**
85
- * @description Mark all notifications as read
86
- *
87
- * @tags Admin Notifications
88
- * @name MarkAllAsRead
89
- * @summary Mark all notifications as read
90
- * @request PATCH:/notifications/read-all
91
- * @secure
92
- */
93
- markAllAsRead = (params: RequestParams = {}) =>
94
- this.http.request<MarkAllAsReadData, any>({
95
- path: `/notifications/read-all`,
96
- method: "PATCH",
97
- secure: true,
98
- format: "json",
99
- ...params,
100
- });
101
- }