@tammsyr/admin-api-client 1.0.4 → 1.0.5
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/README.md +105 -68
- package/dist/ActivityLogs.d.ts.map +1 -1
- package/dist/AgentBranches.d.ts +6 -6
- package/dist/AgentBranches.d.ts.map +1 -1
- package/dist/AgentSettlements.d.ts +8 -8
- package/dist/AgentSettlements.d.ts.map +1 -1
- package/dist/Agents.d.ts +26 -96
- package/dist/Agents.d.ts.map +1 -1
- package/dist/Agents.js +36 -139
- package/dist/Agents.js.map +1 -1
- package/dist/Kyc.d.ts.map +1 -1
- package/dist/Kyc.js.map +1 -1
- package/dist/Notifications.d.ts.map +1 -1
- package/dist/Notifications.js.map +1 -1
- package/dist/Users.d.ts +67 -0
- package/dist/Users.d.ts.map +1 -0
- package/dist/Users.js +122 -0
- package/dist/Users.js.map +1 -0
- package/dist/data-contracts.d.ts +706 -145
- package/dist/data-contracts.d.ts.map +1 -1
- package/package.json +49 -54
package/dist/Agents.js
CHANGED
|
@@ -15,6 +15,22 @@ exports.Agents = void 0;
|
|
|
15
15
|
const http_client_1 = require("./http-client");
|
|
16
16
|
class Agents {
|
|
17
17
|
constructor(http) {
|
|
18
|
+
/**
|
|
19
|
+
* No description
|
|
20
|
+
*
|
|
21
|
+
* @tags Admin Agents
|
|
22
|
+
* @name GetStatistics
|
|
23
|
+
* @summary Get agent analytics widgets
|
|
24
|
+
* @request GET:/agents/statistics
|
|
25
|
+
* @secure
|
|
26
|
+
*/
|
|
27
|
+
this.getStatistics = (params = {}) => this.http.request({
|
|
28
|
+
path: `/agents/statistics`,
|
|
29
|
+
method: "GET",
|
|
30
|
+
secure: true,
|
|
31
|
+
format: "json",
|
|
32
|
+
...params,
|
|
33
|
+
});
|
|
18
34
|
/**
|
|
19
35
|
* No description
|
|
20
36
|
*
|
|
@@ -29,6 +45,7 @@ class Agents {
|
|
|
29
45
|
method: "GET",
|
|
30
46
|
query: query,
|
|
31
47
|
secure: true,
|
|
48
|
+
format: "json",
|
|
32
49
|
...params,
|
|
33
50
|
});
|
|
34
51
|
/**
|
|
@@ -46,6 +63,7 @@ class Agents {
|
|
|
46
63
|
body: data,
|
|
47
64
|
secure: true,
|
|
48
65
|
type: http_client_1.ContentType.Json,
|
|
66
|
+
format: "json",
|
|
49
67
|
...params,
|
|
50
68
|
});
|
|
51
69
|
/**
|
|
@@ -53,7 +71,7 @@ class Agents {
|
|
|
53
71
|
*
|
|
54
72
|
* @tags Admin Agents
|
|
55
73
|
* @name GetAgent
|
|
56
|
-
* @summary Get agent by ID
|
|
74
|
+
* @summary Get agent by ID with branches, commissions and limits
|
|
57
75
|
* @request GET:/agents/{id}
|
|
58
76
|
* @secure
|
|
59
77
|
*/
|
|
@@ -61,6 +79,7 @@ class Agents {
|
|
|
61
79
|
path: `/agents/${id}`,
|
|
62
80
|
method: "GET",
|
|
63
81
|
secure: true,
|
|
82
|
+
format: "json",
|
|
64
83
|
...params,
|
|
65
84
|
});
|
|
66
85
|
/**
|
|
@@ -78,183 +97,61 @@ class Agents {
|
|
|
78
97
|
body: data,
|
|
79
98
|
secure: true,
|
|
80
99
|
type: http_client_1.ContentType.Json,
|
|
100
|
+
format: "json",
|
|
81
101
|
...params,
|
|
82
102
|
});
|
|
83
103
|
/**
|
|
84
104
|
* No description
|
|
85
105
|
*
|
|
86
106
|
* @tags Admin Agents
|
|
87
|
-
* @name
|
|
88
|
-
* @summary
|
|
89
|
-
* @request
|
|
107
|
+
* @name UpsertAgentBranches
|
|
108
|
+
* @summary Upsert agent branches (create new / update existing)
|
|
109
|
+
* @request POST:/agents/{id}/branches
|
|
90
110
|
* @secure
|
|
91
111
|
*/
|
|
92
|
-
this.
|
|
93
|
-
path: `/agents/${id}`,
|
|
94
|
-
method: "
|
|
95
|
-
secure: true,
|
|
96
|
-
...params,
|
|
97
|
-
});
|
|
98
|
-
/**
|
|
99
|
-
* No description
|
|
100
|
-
*
|
|
101
|
-
* @tags Admin Agents
|
|
102
|
-
* @name UpdateAgentStatus
|
|
103
|
-
* @summary Update agent status
|
|
104
|
-
* @request PATCH:/agents/{id}/status
|
|
105
|
-
* @secure
|
|
106
|
-
*/
|
|
107
|
-
this.updateAgentStatus = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
108
|
-
path: `/agents/${id}/status`,
|
|
109
|
-
method: "PATCH",
|
|
112
|
+
this.upsertAgentBranches = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
113
|
+
path: `/agents/${id}/branches`,
|
|
114
|
+
method: "POST",
|
|
110
115
|
body: data,
|
|
111
116
|
secure: true,
|
|
112
117
|
type: http_client_1.ContentType.Json,
|
|
118
|
+
format: "json",
|
|
113
119
|
...params,
|
|
114
120
|
});
|
|
115
121
|
/**
|
|
116
122
|
* No description
|
|
117
123
|
*
|
|
118
124
|
* @tags Admin Agents
|
|
119
|
-
* @name
|
|
120
|
-
* @summary
|
|
121
|
-
* @request GET:/agents/{id}/limits
|
|
122
|
-
* @secure
|
|
123
|
-
*/
|
|
124
|
-
this.getAgentLimits = ({ id, ...query }, params = {}) => this.http.request({
|
|
125
|
-
path: `/agents/${id}/limits`,
|
|
126
|
-
method: "GET",
|
|
127
|
-
query: query,
|
|
128
|
-
secure: true,
|
|
129
|
-
...params,
|
|
130
|
-
});
|
|
131
|
-
/**
|
|
132
|
-
* No description
|
|
133
|
-
*
|
|
134
|
-
* @tags Admin Agents
|
|
135
|
-
* @name SetAgentLimit
|
|
136
|
-
* @summary Set agent limit
|
|
125
|
+
* @name UpsertAgentLimits
|
|
126
|
+
* @summary Upsert agent limits — matched by (limitType, currency)
|
|
137
127
|
* @request POST:/agents/{id}/limits
|
|
138
128
|
* @secure
|
|
139
129
|
*/
|
|
140
|
-
this.
|
|
130
|
+
this.upsertAgentLimits = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
141
131
|
path: `/agents/${id}/limits`,
|
|
142
132
|
method: "POST",
|
|
143
133
|
body: data,
|
|
144
134
|
secure: true,
|
|
145
135
|
type: http_client_1.ContentType.Json,
|
|
136
|
+
format: "json",
|
|
146
137
|
...params,
|
|
147
138
|
});
|
|
148
139
|
/**
|
|
149
140
|
* No description
|
|
150
141
|
*
|
|
151
142
|
* @tags Admin Agents
|
|
152
|
-
* @name
|
|
153
|
-
* @summary
|
|
154
|
-
* @request PUT:/agents/{id}/limits
|
|
155
|
-
* @secure
|
|
156
|
-
*/
|
|
157
|
-
this.setAgentLimits = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
158
|
-
path: `/agents/${id}/limits`,
|
|
159
|
-
method: "PUT",
|
|
160
|
-
body: data,
|
|
161
|
-
secure: true,
|
|
162
|
-
type: http_client_1.ContentType.Json,
|
|
163
|
-
...params,
|
|
164
|
-
});
|
|
165
|
-
/**
|
|
166
|
-
* No description
|
|
167
|
-
*
|
|
168
|
-
* @tags Admin Agents
|
|
169
|
-
* @name DeleteAgentLimit
|
|
170
|
-
* @summary Delete an agent limit
|
|
171
|
-
* @request DELETE:/agents/limits/{limitId}
|
|
172
|
-
* @secure
|
|
173
|
-
*/
|
|
174
|
-
this.deleteAgentLimit = ({ limitId, ...query }, params = {}) => this.http.request({
|
|
175
|
-
path: `/agents/limits/${limitId}`,
|
|
176
|
-
method: "DELETE",
|
|
177
|
-
secure: true,
|
|
178
|
-
...params,
|
|
179
|
-
});
|
|
180
|
-
/**
|
|
181
|
-
* No description
|
|
182
|
-
*
|
|
183
|
-
* @tags Admin Agents
|
|
184
|
-
* @name GetAgentCommissions
|
|
185
|
-
* @summary Get agent commissions
|
|
186
|
-
* @request GET:/agents/{id}/commissions
|
|
187
|
-
* @secure
|
|
188
|
-
*/
|
|
189
|
-
this.getAgentCommissions = ({ id, ...query }, params = {}) => this.http.request({
|
|
190
|
-
path: `/agents/${id}/commissions`,
|
|
191
|
-
method: "GET",
|
|
192
|
-
query: query,
|
|
193
|
-
secure: true,
|
|
194
|
-
...params,
|
|
195
|
-
});
|
|
196
|
-
/**
|
|
197
|
-
* No description
|
|
198
|
-
*
|
|
199
|
-
* @tags Admin Agents
|
|
200
|
-
* @name CreateAgentCommission
|
|
201
|
-
* @summary Create agent commission
|
|
143
|
+
* @name UpsertAgentCommissions
|
|
144
|
+
* @summary Upsert agent commissions (create new / update existing)
|
|
202
145
|
* @request POST:/agents/{id}/commissions
|
|
203
146
|
* @secure
|
|
204
147
|
*/
|
|
205
|
-
this.
|
|
148
|
+
this.upsertAgentCommissions = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
206
149
|
path: `/agents/${id}/commissions`,
|
|
207
150
|
method: "POST",
|
|
208
151
|
body: data,
|
|
209
152
|
secure: true,
|
|
210
153
|
type: http_client_1.ContentType.Json,
|
|
211
|
-
|
|
212
|
-
});
|
|
213
|
-
/**
|
|
214
|
-
* No description
|
|
215
|
-
*
|
|
216
|
-
* @tags Admin Agents
|
|
217
|
-
* @name UpdateAgentCommission
|
|
218
|
-
* @summary Update agent commission
|
|
219
|
-
* @request PATCH:/agents/commissions/{commissionId}
|
|
220
|
-
* @secure
|
|
221
|
-
*/
|
|
222
|
-
this.updateAgentCommission = ({ commissionId, ...query }, data, params = {}) => this.http.request({
|
|
223
|
-
path: `/agents/commissions/${commissionId}`,
|
|
224
|
-
method: "PATCH",
|
|
225
|
-
body: data,
|
|
226
|
-
secure: true,
|
|
227
|
-
type: http_client_1.ContentType.Json,
|
|
228
|
-
...params,
|
|
229
|
-
});
|
|
230
|
-
/**
|
|
231
|
-
* No description
|
|
232
|
-
*
|
|
233
|
-
* @tags Admin Agents
|
|
234
|
-
* @name DeleteAgentCommission
|
|
235
|
-
* @summary Delete agent commission
|
|
236
|
-
* @request DELETE:/agents/commissions/{commissionId}
|
|
237
|
-
* @secure
|
|
238
|
-
*/
|
|
239
|
-
this.deleteAgentCommission = ({ commissionId, ...query }, params = {}) => this.http.request({
|
|
240
|
-
path: `/agents/commissions/${commissionId}`,
|
|
241
|
-
method: "DELETE",
|
|
242
|
-
secure: true,
|
|
243
|
-
...params,
|
|
244
|
-
});
|
|
245
|
-
/**
|
|
246
|
-
* No description
|
|
247
|
-
*
|
|
248
|
-
* @tags Admin Agents
|
|
249
|
-
* @name CalculateCommission
|
|
250
|
-
* @summary Calculate commission for a transaction amount
|
|
251
|
-
* @request POST:/agents/{id}/calculate-commission
|
|
252
|
-
* @secure
|
|
253
|
-
*/
|
|
254
|
-
this.calculateCommission = ({ id, ...query }, params = {}) => this.http.request({
|
|
255
|
-
path: `/agents/${id}/calculate-commission`,
|
|
256
|
-
method: "POST",
|
|
257
|
-
secure: true,
|
|
154
|
+
format: "json",
|
|
258
155
|
...params,
|
|
259
156
|
});
|
|
260
157
|
this.http = http;
|
package/dist/Agents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agents.js","sourceRoot":"","sources":["../Agents.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;
|
|
1
|
+
{"version":3,"file":"Agents.js","sourceRoot":"","sources":["../Agents.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAuBH,+CAAuE;AAEvE,MAAa,MAAM;IAGjB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,CAAC,IAAI,CAAC,OAAO,CAAyB;YACxC,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,eAAU,GAAG,CAAC,KAAuB,EAAE,SAAwB,EAAE,EAAE,EAAE,CACnE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAsB;YACrC,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAA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AW,EAAE,WAAW;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,sBAAiB,GAAG,CAClB,EAAE,EAAE,EAAE,GAAG,KAAK,EAA2B,EACzC,IAAqB,EACrB,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAA8B;YAC7C,IAAI,EAAE,WAAW,EAAE,SAAS;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,2BAAsB,GAAG,CACvB,EAAE,EAAE,EAAE,GAAG,KAAK,EAAgC,EAC9C,IAA0B,EAC1B,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmC;YAClD,IAAI,EAAE,WAAW,EAAE,cAAc;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QArKH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAqKF;AA1KD,wBA0KC"}
|
package/dist/Kyc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kyc.d.ts","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":"AAYA,OAAO,
|
|
1
|
+
{"version":3,"file":"Kyc.d.ts","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,eAAe,EAEf,eAAe,EAEf,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,GAAG,CAAC,gBAAgB,GAAG,OAAO;IACzC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,aAAa,GAAI,SAAQ,aAAkB,0GAOtC;IACL;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,eAAe,EAAE,SAAQ,aAAkB,oGAQxD;IACL;;;;;;;;OAQG;IACH,QAAQ,GAAI,kBAAkB,eAAe,EAAE,SAAQ,aAAkB,uGAOpE;IACL;;;;;;;;OAQG;IACH,YAAY,GACV,kBAAkB,mBAAmB,EACrC,MAAM,kBAAkB,EACxB,SAAQ,aAAkB,uGAUvB;CACN"}
|
package/dist/Kyc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kyc.js","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAYH,+CAAuE;AAEvE,MAAa,GAAG;IAGd,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Kyc.js","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAYH,+CAAuE;AAEvE,MAAa,GAAG;IAGd,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,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"file":"Notifications.d.ts","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":"AAYA,OAAO,
|
|
1
|
+
{"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,cAAc,EAKd,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE1D,qBAAa,aAAa,CAAC,gBAAgB,GAAG,OAAO;IACnD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,cAAc,EAAE,SAAQ,aAAkB,kHAQvD;IACL;;;;;;;;OAQG;IACH,cAAc,GAAI,SAAQ,aAAkB,0DAMvC;IACL;;;;;;;;OAQG;IACH,UAAU,GACR,kBAAkB,gBAAgB,EAClC,SAAQ,aAAkB,8GAQvB;IACL;;;;;;;;OAQG;IACH,aAAa,GAAI,SAAQ,aAAkB,oGAOtC;CACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAYH,MAAa,aAAa;IAGxB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAqB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAYH,MAAa,aAAa;IAGxB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAqB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAsB;YACrC,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,mBAAc,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC9C,IAAI,CAAC,IAAI,CAAC,OAAO,CAA0B;YACzC,IAAI,EAAE,6BAA6B;YACnC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,eAAU,GAAG,CACX,EAAE,EAAE,EAAE,GAAG,KAAK,EAAoB,EAClC,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuB;YACtC,IAAI,EAAE,kBAAkB,EAAE,OAAO;YACjC,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,CAAC,IAAI,CAAC,OAAO,CAAyB;YACxC,IAAI,EAAE,yBAAyB;YAC/B,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QAzEH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAyEF;AA9ED,sCA8EC"}
|
package/dist/Users.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ExportUsersParams, FindAllParams12, FindByIdParams8, UpdatePersonStatusDto, UpdatePersonStatusParams, UpdateUserStatusDto, UpdateUserStatusParams } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class Users<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description Get counts of users by status (total, active, kyc verified, suspended, pending KYC)
|
|
8
|
+
*
|
|
9
|
+
* @tags User Management
|
|
10
|
+
* @name GetStatistics
|
|
11
|
+
* @summary Get user statistics
|
|
12
|
+
* @request GET:/users/statistics
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
getStatistics: (params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").UserStatisticsResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Get paginated list of persons. Supports filtering by status and search by name.
|
|
18
|
+
*
|
|
19
|
+
* @tags User Management
|
|
20
|
+
* @name FindAll
|
|
21
|
+
* @summary List all persons
|
|
22
|
+
* @request GET:/users
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
findAll: (query: FindAllParams12, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").PersonListResponseDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Export users (same filters as list, no pagination) as CSV, Excel, PDF, or JSON for print.
|
|
28
|
+
*
|
|
29
|
+
* @tags User Management
|
|
30
|
+
* @name ExportUsers
|
|
31
|
+
* @summary Export users list
|
|
32
|
+
* @request GET:/users/export
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
exportUsers: (query: ExportUsersParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Get person details with address, and connected user accounts with phone numbers
|
|
38
|
+
*
|
|
39
|
+
* @tags User Management
|
|
40
|
+
* @name FindById
|
|
41
|
+
* @summary Get person detail
|
|
42
|
+
* @request GET:/users/{id}
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
findById: ({ id, ...query }: FindByIdParams8, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").PersonDetailDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Update person KYC / identity status (verified, suspended, rejected, etc.)
|
|
48
|
+
*
|
|
49
|
+
* @tags User Management
|
|
50
|
+
* @name UpdatePersonStatus
|
|
51
|
+
* @summary Update person status
|
|
52
|
+
* @request PATCH:/users/{id}/status
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
updatePersonStatus: ({ id, ...query }: UpdatePersonStatusParams, data: UpdatePersonStatusDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").PersonDetailDto, any, {}>>;
|
|
56
|
+
/**
|
|
57
|
+
* @description Update the account status of a specific user (active, suspended, blocked, closed)
|
|
58
|
+
*
|
|
59
|
+
* @tags User Management
|
|
60
|
+
* @name UpdateUserStatus
|
|
61
|
+
* @summary Update user account status
|
|
62
|
+
* @request PATCH:/users/{id}/user-status
|
|
63
|
+
* @secure
|
|
64
|
+
*/
|
|
65
|
+
updateUserStatus: ({ id, ...query }: UpdateUserStatusParams, data: UpdateUserStatusDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=Users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Users.d.ts","sourceRoot":"","sources":["../Users.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,iBAAiB,EACjB,eAAe,EAEf,eAAe,EAIf,qBAAqB,EACrB,wBAAwB,EAExB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,KAAK,CAAC,gBAAgB,GAAG,OAAO;IAC3C,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,aAAa,GAAI,SAAQ,aAAkB,2GAOtC;IACL;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,eAAe,EAAE,SAAQ,aAAkB,uGAQxD;IACL;;;;;;;;OAQG;IACH,WAAW,GAAI,OAAO,iBAAiB,EAAE,SAAQ,aAAkB,0DAO9D;IACL;;;;;;;;OAQG;IACH,QAAQ,GAAI,kBAAkB,eAAe,EAAE,SAAQ,aAAkB,iGAOpE;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,kBAAkB,wBAAwB,EAC1C,MAAM,qBAAqB,EAC3B,SAAQ,aAAkB,iGAUvB;IACL;;;;;;;;OAQG;IACH,gBAAgB,GACd,kBAAkB,sBAAsB,EACxC,MAAM,mBAAmB,EACzB,SAAQ,aAAkB,0DASvB;CACN"}
|
package/dist/Users.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* ---------------------------------------------------------------
|
|
7
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
8
|
+
* ## ##
|
|
9
|
+
* ## AUTHOR: acacode ##
|
|
10
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
11
|
+
* ---------------------------------------------------------------
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Users = void 0;
|
|
15
|
+
const http_client_1 = require("./http-client");
|
|
16
|
+
class Users {
|
|
17
|
+
constructor(http) {
|
|
18
|
+
/**
|
|
19
|
+
* @description Get counts of users by status (total, active, kyc verified, suspended, pending KYC)
|
|
20
|
+
*
|
|
21
|
+
* @tags User Management
|
|
22
|
+
* @name GetStatistics
|
|
23
|
+
* @summary Get user statistics
|
|
24
|
+
* @request GET:/users/statistics
|
|
25
|
+
* @secure
|
|
26
|
+
*/
|
|
27
|
+
this.getStatistics = (params = {}) => this.http.request({
|
|
28
|
+
path: `/users/statistics`,
|
|
29
|
+
method: "GET",
|
|
30
|
+
secure: true,
|
|
31
|
+
format: "json",
|
|
32
|
+
...params,
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @description Get paginated list of persons. Supports filtering by status and search by name.
|
|
36
|
+
*
|
|
37
|
+
* @tags User Management
|
|
38
|
+
* @name FindAll
|
|
39
|
+
* @summary List all persons
|
|
40
|
+
* @request GET:/users
|
|
41
|
+
* @secure
|
|
42
|
+
*/
|
|
43
|
+
this.findAll = (query, params = {}) => this.http.request({
|
|
44
|
+
path: `/users`,
|
|
45
|
+
method: "GET",
|
|
46
|
+
query: query,
|
|
47
|
+
secure: true,
|
|
48
|
+
format: "json",
|
|
49
|
+
...params,
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @description Export users (same filters as list, no pagination) as CSV, Excel, PDF, or JSON for print.
|
|
53
|
+
*
|
|
54
|
+
* @tags User Management
|
|
55
|
+
* @name ExportUsers
|
|
56
|
+
* @summary Export users list
|
|
57
|
+
* @request GET:/users/export
|
|
58
|
+
* @secure
|
|
59
|
+
*/
|
|
60
|
+
this.exportUsers = (query, params = {}) => this.http.request({
|
|
61
|
+
path: `/users/export`,
|
|
62
|
+
method: "GET",
|
|
63
|
+
query: query,
|
|
64
|
+
secure: true,
|
|
65
|
+
...params,
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* @description Get person details with address, and connected user accounts with phone numbers
|
|
69
|
+
*
|
|
70
|
+
* @tags User Management
|
|
71
|
+
* @name FindById
|
|
72
|
+
* @summary Get person detail
|
|
73
|
+
* @request GET:/users/{id}
|
|
74
|
+
* @secure
|
|
75
|
+
*/
|
|
76
|
+
this.findById = ({ id, ...query }, params = {}) => this.http.request({
|
|
77
|
+
path: `/users/${id}`,
|
|
78
|
+
method: "GET",
|
|
79
|
+
secure: true,
|
|
80
|
+
format: "json",
|
|
81
|
+
...params,
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* @description Update person KYC / identity status (verified, suspended, rejected, etc.)
|
|
85
|
+
*
|
|
86
|
+
* @tags User Management
|
|
87
|
+
* @name UpdatePersonStatus
|
|
88
|
+
* @summary Update person status
|
|
89
|
+
* @request PATCH:/users/{id}/status
|
|
90
|
+
* @secure
|
|
91
|
+
*/
|
|
92
|
+
this.updatePersonStatus = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
93
|
+
path: `/users/${id}/status`,
|
|
94
|
+
method: "PATCH",
|
|
95
|
+
body: data,
|
|
96
|
+
secure: true,
|
|
97
|
+
type: http_client_1.ContentType.Json,
|
|
98
|
+
format: "json",
|
|
99
|
+
...params,
|
|
100
|
+
});
|
|
101
|
+
/**
|
|
102
|
+
* @description Update the account status of a specific user (active, suspended, blocked, closed)
|
|
103
|
+
*
|
|
104
|
+
* @tags User Management
|
|
105
|
+
* @name UpdateUserStatus
|
|
106
|
+
* @summary Update user account status
|
|
107
|
+
* @request PATCH:/users/{id}/user-status
|
|
108
|
+
* @secure
|
|
109
|
+
*/
|
|
110
|
+
this.updateUserStatus = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
111
|
+
path: `/users/${id}/user-status`,
|
|
112
|
+
method: "PATCH",
|
|
113
|
+
body: data,
|
|
114
|
+
secure: true,
|
|
115
|
+
type: http_client_1.ContentType.Json,
|
|
116
|
+
...params,
|
|
117
|
+
});
|
|
118
|
+
this.http = http;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.Users = Users;
|
|
122
|
+
//# sourceMappingURL=Users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Users.js","sourceRoot":"","sources":["../Users.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAO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