@tammsyr/admin-api-client 1.0.4 → 1.0.6
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 +263 -70
- 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/Auth.d.ts +2 -2
- package/dist/Auth.js +2 -2
- package/dist/Kyc.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 +702 -141
- package/dist/data-contracts.d.ts.map +1 -1
- package/dist/index.d.ts +20 -37
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -51
- package/dist/index.js.map +1 -1
- package/package.json +49 -54
package/dist/Agents.d.ts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateAgentDto, GetAgentParams, ListAgentsParams, UpdateAgentDto, UpdateAgentParams, UpsertAgentBranchesParams, UpsertAgentCommissionsParams, UpsertAgentLimitsParams, UpsertBranchesDto, UpsertCommissionsDto, UpsertLimitsDto } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
export declare class Agents<SecurityDataType = unknown> {
|
|
4
4
|
http: HttpClient<SecurityDataType>;
|
|
5
5
|
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags Admin Agents
|
|
10
|
+
* @name GetStatistics
|
|
11
|
+
* @summary Get agent analytics widgets
|
|
12
|
+
* @request GET:/agents/statistics
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
getStatistics: (params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AgentStatisticsDto, any, {}>>;
|
|
6
16
|
/**
|
|
7
17
|
* No description
|
|
8
18
|
*
|
|
@@ -12,7 +22,7 @@ export declare class Agents<SecurityDataType = unknown> {
|
|
|
12
22
|
* @request GET:/agents
|
|
13
23
|
* @secure
|
|
14
24
|
*/
|
|
15
|
-
listAgents: (query: ListAgentsParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<
|
|
25
|
+
listAgents: (query: ListAgentsParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AgentListResponseDto, any, {}>>;
|
|
16
26
|
/**
|
|
17
27
|
* No description
|
|
18
28
|
*
|
|
@@ -22,17 +32,17 @@ export declare class Agents<SecurityDataType = unknown> {
|
|
|
22
32
|
* @request POST:/agents
|
|
23
33
|
* @secure
|
|
24
34
|
*/
|
|
25
|
-
createAgent: (data: CreateAgentDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<
|
|
35
|
+
createAgent: (data: CreateAgentDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").CreateAgentResponseDto, any, {}>>;
|
|
26
36
|
/**
|
|
27
37
|
* No description
|
|
28
38
|
*
|
|
29
39
|
* @tags Admin Agents
|
|
30
40
|
* @name GetAgent
|
|
31
|
-
* @summary Get agent by ID
|
|
41
|
+
* @summary Get agent by ID with branches, commissions and limits
|
|
32
42
|
* @request GET:/agents/{id}
|
|
33
43
|
* @secure
|
|
34
44
|
*/
|
|
35
|
-
getAgent: ({ id, ...query }: GetAgentParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<
|
|
45
|
+
getAgent: ({ id, ...query }: GetAgentParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AgentResponseDto, any, {}>>;
|
|
36
46
|
/**
|
|
37
47
|
* No description
|
|
38
48
|
*
|
|
@@ -42,116 +52,36 @@ export declare class Agents<SecurityDataType = unknown> {
|
|
|
42
52
|
* @request PATCH:/agents/{id}
|
|
43
53
|
* @secure
|
|
44
54
|
*/
|
|
45
|
-
updateAgent: ({ id, ...query }: UpdateAgentParams, data: UpdateAgentDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<
|
|
46
|
-
/**
|
|
47
|
-
* No description
|
|
48
|
-
*
|
|
49
|
-
* @tags Admin Agents
|
|
50
|
-
* @name DeleteAgent
|
|
51
|
-
* @summary Delete an agent
|
|
52
|
-
* @request DELETE:/agents/{id}
|
|
53
|
-
* @secure
|
|
54
|
-
*/
|
|
55
|
-
deleteAgent: ({ id, ...query }: DeleteAgentParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
55
|
+
updateAgent: ({ id, ...query }: UpdateAgentParams, data: UpdateAgentDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").UpdateAgentResponseDto, any, {}>>;
|
|
56
56
|
/**
|
|
57
57
|
* No description
|
|
58
58
|
*
|
|
59
59
|
* @tags Admin Agents
|
|
60
|
-
* @name
|
|
61
|
-
* @summary
|
|
62
|
-
* @request
|
|
60
|
+
* @name UpsertAgentBranches
|
|
61
|
+
* @summary Upsert agent branches (create new / update existing)
|
|
62
|
+
* @request POST:/agents/{id}/branches
|
|
63
63
|
* @secure
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
upsertAgentBranches: ({ id, ...query }: UpsertAgentBranchesParams, data: UpsertBranchesDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").BranchesUpsertResponseDto, any, {}>>;
|
|
66
66
|
/**
|
|
67
67
|
* No description
|
|
68
68
|
*
|
|
69
69
|
* @tags Admin Agents
|
|
70
|
-
* @name
|
|
71
|
-
* @summary
|
|
72
|
-
* @request GET:/agents/{id}/limits
|
|
73
|
-
* @secure
|
|
74
|
-
*/
|
|
75
|
-
getAgentLimits: ({ id, ...query }: GetAgentLimitsParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
76
|
-
/**
|
|
77
|
-
* No description
|
|
78
|
-
*
|
|
79
|
-
* @tags Admin Agents
|
|
80
|
-
* @name SetAgentLimit
|
|
81
|
-
* @summary Set agent limit
|
|
70
|
+
* @name UpsertAgentLimits
|
|
71
|
+
* @summary Upsert agent limits — matched by (limitType, currency)
|
|
82
72
|
* @request POST:/agents/{id}/limits
|
|
83
73
|
* @secure
|
|
84
74
|
*/
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* No description
|
|
88
|
-
*
|
|
89
|
-
* @tags Admin Agents
|
|
90
|
-
* @name SetAgentLimits
|
|
91
|
-
* @summary Set multiple agent limits
|
|
92
|
-
* @request PUT:/agents/{id}/limits
|
|
93
|
-
* @secure
|
|
94
|
-
*/
|
|
95
|
-
setAgentLimits: ({ id, ...query }: SetAgentLimitsParams, data: SetLimitsDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
96
|
-
/**
|
|
97
|
-
* No description
|
|
98
|
-
*
|
|
99
|
-
* @tags Admin Agents
|
|
100
|
-
* @name DeleteAgentLimit
|
|
101
|
-
* @summary Delete an agent limit
|
|
102
|
-
* @request DELETE:/agents/limits/{limitId}
|
|
103
|
-
* @secure
|
|
104
|
-
*/
|
|
105
|
-
deleteAgentLimit: ({ limitId, ...query }: DeleteAgentLimitParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
106
|
-
/**
|
|
107
|
-
* No description
|
|
108
|
-
*
|
|
109
|
-
* @tags Admin Agents
|
|
110
|
-
* @name GetAgentCommissions
|
|
111
|
-
* @summary Get agent commissions
|
|
112
|
-
* @request GET:/agents/{id}/commissions
|
|
113
|
-
* @secure
|
|
114
|
-
*/
|
|
115
|
-
getAgentCommissions: ({ id, ...query }: GetAgentCommissionsParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
75
|
+
upsertAgentLimits: ({ id, ...query }: UpsertAgentLimitsParams, data: UpsertLimitsDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AgentLimitsResponseDto, any, {}>>;
|
|
116
76
|
/**
|
|
117
77
|
* No description
|
|
118
78
|
*
|
|
119
79
|
* @tags Admin Agents
|
|
120
|
-
* @name
|
|
121
|
-
* @summary
|
|
80
|
+
* @name UpsertAgentCommissions
|
|
81
|
+
* @summary Upsert agent commissions (create new / update existing)
|
|
122
82
|
* @request POST:/agents/{id}/commissions
|
|
123
83
|
* @secure
|
|
124
84
|
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* No description
|
|
128
|
-
*
|
|
129
|
-
* @tags Admin Agents
|
|
130
|
-
* @name UpdateAgentCommission
|
|
131
|
-
* @summary Update agent commission
|
|
132
|
-
* @request PATCH:/agents/commissions/{commissionId}
|
|
133
|
-
* @secure
|
|
134
|
-
*/
|
|
135
|
-
updateAgentCommission: ({ commissionId, ...query }: UpdateAgentCommissionParams, data: UpdateCommissionDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
136
|
-
/**
|
|
137
|
-
* No description
|
|
138
|
-
*
|
|
139
|
-
* @tags Admin Agents
|
|
140
|
-
* @name DeleteAgentCommission
|
|
141
|
-
* @summary Delete agent commission
|
|
142
|
-
* @request DELETE:/agents/commissions/{commissionId}
|
|
143
|
-
* @secure
|
|
144
|
-
*/
|
|
145
|
-
deleteAgentCommission: ({ commissionId, ...query }: DeleteAgentCommissionParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
146
|
-
/**
|
|
147
|
-
* No description
|
|
148
|
-
*
|
|
149
|
-
* @tags Admin Agents
|
|
150
|
-
* @name CalculateCommission
|
|
151
|
-
* @summary Calculate commission for a transaction amount
|
|
152
|
-
* @request POST:/agents/{id}/calculate-commission
|
|
153
|
-
* @secure
|
|
154
|
-
*/
|
|
155
|
-
calculateCommission: ({ id, ...query }: CalculateCommissionParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
85
|
+
upsertAgentCommissions: ({ id, ...query }: UpsertAgentCommissionsParams, data: UpsertCommissionsDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AgentCommissionsResponseDto, any, {}>>;
|
|
156
86
|
}
|
|
157
87
|
//# sourceMappingURL=Agents.d.ts.map
|
package/dist/Agents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agents.d.ts","sourceRoot":"","sources":["../Agents.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"Agents.d.ts","sourceRoot":"","sources":["../Agents.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,cAAc,EAEd,cAAc,EAGd,gBAAgB,EAEhB,cAAc,EACd,iBAAiB,EAEjB,yBAAyB,EAEzB,4BAA4B,EAE5B,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,MAAM,CAAC,gBAAgB,GAAG,OAAO;IAC5C,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,aAAa,GAAI,SAAQ,aAAkB,oGAOtC;IACL;;;;;;;;OAQG;IACH,UAAU,GAAI,OAAO,gBAAgB,EAAE,SAAQ,aAAkB,sGAQ5D;IACL;;;;;;;;OAQG;IACH,WAAW,GAAI,MAAM,cAAc,EAAE,SAAQ,aAAkB,wGAS1D;IACL;;;;;;;;OAQG;IACH,QAAQ,GAAI,kBAAkB,cAAc,EAAE,SAAQ,aAAkB,kGAOnE;IACL;;;;;;;;OAQG;IACH,WAAW,GACT,kBAAkB,iBAAiB,EACnC,MAAM,cAAc,EACpB,SAAQ,aAAkB,wGAUvB;IACL;;;;;;;;OAQG;IACH,mBAAmB,GACjB,kBAAkB,yBAAyB,EAC3C,MAAM,iBAAiB,EACvB,SAAQ,aAAkB,2GAUvB;IACL;;;;;;;;OAQG;IACH,iBAAiB,GACf,kBAAkB,uBAAuB,EACzC,MAAM,eAAe,EACrB,SAAQ,aAAkB,wGAUvB;IACL;;;;;;;;OAQG;IACH,sBAAsB,GACpB,kBAAkB,4BAA4B,EAC9C,MAAM,oBAAoB,EAC1B,SAAQ,aAAkB,6GAUvB;CACN"}
|
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,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,gBAAW,GAAG,CAAC,IAAoB,EAAE,SAAwB,EAAE,EAAE,EAAE,CACjE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAwB;YACvC,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;Y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AO,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/Auth.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class Auth<SecurityDataType = unknown> {
|
|
|
13
13
|
*/
|
|
14
14
|
login: (data: AdminLoginRequestDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AdminLoginResponseDto, any, {}>>;
|
|
15
15
|
/**
|
|
16
|
-
* @description Refresh access token using refresh token
|
|
16
|
+
* @description Refresh access token using refresh token. The refresh token can be sent in the request body or read automatically from the refresh_token cookie.
|
|
17
17
|
*
|
|
18
18
|
* @tags Admin Auth
|
|
19
19
|
* @name Refresh
|
|
@@ -22,7 +22,7 @@ export declare class Auth<SecurityDataType = unknown> {
|
|
|
22
22
|
*/
|
|
23
23
|
refresh: (data: AdminRefreshTokenRequestDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AdminLoginResponseDto, any, {}>>;
|
|
24
24
|
/**
|
|
25
|
-
* @description Logout current session
|
|
25
|
+
* @description Logout current session and clear auth cookies
|
|
26
26
|
*
|
|
27
27
|
* @tags Admin Auth
|
|
28
28
|
* @name Logout
|
package/dist/Auth.js
CHANGED
|
@@ -32,7 +32,7 @@ class Auth {
|
|
|
32
32
|
...params,
|
|
33
33
|
});
|
|
34
34
|
/**
|
|
35
|
-
* @description Refresh access token using refresh token
|
|
35
|
+
* @description Refresh access token using refresh token. The refresh token can be sent in the request body or read automatically from the refresh_token cookie.
|
|
36
36
|
*
|
|
37
37
|
* @tags Admin Auth
|
|
38
38
|
* @name Refresh
|
|
@@ -48,7 +48,7 @@ class Auth {
|
|
|
48
48
|
...params,
|
|
49
49
|
});
|
|
50
50
|
/**
|
|
51
|
-
* @description Logout current session
|
|
51
|
+
* @description Logout current session and clear auth cookies
|
|
52
52
|
*
|
|
53
53
|
* @tags Admin Auth
|
|
54
54
|
* @name Logout
|
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,CAAC,IAAI,CAAC,OAAO,CAA2B;YAC1C,IAAI,EAAE,iBAA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datePersonStatusDto, 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,EAEjB,eAAe,EAEf,eAAe,EAGf,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"}
|