@tammsyr/admin-api-client 1.0.1 → 1.0.2
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/dist/ActivityLogs.d.ts +17 -0
- package/dist/ActivityLogs.d.ts.map +1 -0
- package/dist/ActivityLogs.js +34 -0
- package/dist/ActivityLogs.js.map +1 -0
- package/dist/Admins.d.ts +67 -0
- package/dist/Admins.d.ts.map +1 -0
- package/dist/Admins.js +120 -0
- package/dist/Admins.js.map +1 -0
- package/dist/AgentBranches.d.ts +67 -0
- package/dist/AgentBranches.d.ts.map +1 -0
- package/dist/AgentBranches.js +115 -0
- package/dist/AgentBranches.js.map +1 -0
- package/dist/AgentSettlements.d.ts +87 -0
- package/dist/AgentSettlements.d.ts.map +1 -0
- package/dist/AgentSettlements.js +147 -0
- package/dist/AgentSettlements.js.map +1 -0
- package/dist/Agents.d.ts +157 -0
- package/dist/Agents.d.ts.map +1 -0
- package/dist/Agents.js +260 -0
- package/dist/Agents.js.map +1 -0
- package/dist/Auth.d.ts +42 -0
- package/dist/Auth.d.ts.map +1 -0
- package/dist/Auth.js +80 -0
- package/dist/Auth.js.map +1 -0
- package/dist/Kyc.d.ts +47 -0
- package/dist/Kyc.d.ts.map +1 -0
- package/dist/Kyc.js +85 -0
- package/dist/Kyc.js.map +1 -0
- package/dist/Notifications.d.ts +47 -0
- package/dist/Notifications.d.ts.map +1 -0
- package/dist/Notifications.js +81 -0
- package/dist/Notifications.js.map +1 -0
- package/dist/Permissions.d.ts +57 -0
- package/dist/Permissions.d.ts.map +1 -0
- package/dist/Permissions.js +103 -0
- package/dist/Permissions.js.map +1 -0
- package/dist/Roles.d.ts +87 -0
- package/dist/Roles.d.ts.map +1 -0
- package/dist/Roles.js +154 -0
- package/dist/Roles.js.map +1 -0
- package/dist/Seed.d.ts +17 -0
- package/dist/Seed.d.ts.map +1 -0
- package/dist/Seed.js +36 -0
- package/dist/Seed.js.map +1 -0
- package/dist/data-contracts.d.ts +1105 -0
- package/dist/data-contracts.d.ts.map +1 -0
- package/dist/data-contracts.js +13 -0
- package/dist/data-contracts.js.map +1 -0
- package/dist/http-client.d.ts +43 -0
- package/dist/http-client.d.ts.map +1 -0
- package/dist/http-client.js +104 -0
- package/dist/http-client.js.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/package.json +9 -11
- package/ActivityLogs.ts +0 -41
- package/Admins.ts +0 -154
- package/AgentBranches.ts +0 -152
- package/AgentSettlements.ts +0 -204
- package/Agents.ts +0 -359
- package/Auth.ts +0 -100
- package/Kyc.ts +0 -107
- package/Notifications.ts +0 -101
- package/Permissions.ts +0 -130
- package/Roles.ts +0 -199
- package/Seed.ts +0 -48
- package/data-contracts.ts +0 -1283
- package/http-client.ts +0 -186
- package/index.ts +0 -157
package/AgentBranches.ts
DELETED
|
@@ -1,152 +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
|
-
CreateBranchData,
|
|
15
|
-
CreateBranchDto,
|
|
16
|
-
DeleteBranchData,
|
|
17
|
-
DeleteBranchParams,
|
|
18
|
-
GetBranchData,
|
|
19
|
-
GetBranchParams,
|
|
20
|
-
ListBranchesData,
|
|
21
|
-
ListBranchesParams,
|
|
22
|
-
UpdateBranchData,
|
|
23
|
-
UpdateBranchDto,
|
|
24
|
-
UpdateBranchParams,
|
|
25
|
-
UpdateBranchStatusData,
|
|
26
|
-
UpdateBranchStatusDto,
|
|
27
|
-
UpdateBranchStatusParams,
|
|
28
|
-
} from "./data-contracts";
|
|
29
|
-
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
30
|
-
|
|
31
|
-
export class AgentBranches<SecurityDataType = unknown> {
|
|
32
|
-
http: HttpClient<SecurityDataType>;
|
|
33
|
-
|
|
34
|
-
constructor(http: HttpClient<SecurityDataType>) {
|
|
35
|
-
this.http = http;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* No description
|
|
40
|
-
*
|
|
41
|
-
* @tags Admin Agent Branches
|
|
42
|
-
* @name ListBranches
|
|
43
|
-
* @summary List all branches
|
|
44
|
-
* @request GET:/agent-branches
|
|
45
|
-
* @secure
|
|
46
|
-
*/
|
|
47
|
-
listBranches = (query: ListBranchesParams, params: RequestParams = {}) =>
|
|
48
|
-
this.http.request<ListBranchesData, any>({
|
|
49
|
-
path: `/agent-branches`,
|
|
50
|
-
method: "GET",
|
|
51
|
-
query: query,
|
|
52
|
-
secure: true,
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* No description
|
|
57
|
-
*
|
|
58
|
-
* @tags Admin Agent Branches
|
|
59
|
-
* @name CreateBranch
|
|
60
|
-
* @summary Create a new branch
|
|
61
|
-
* @request POST:/agent-branches
|
|
62
|
-
* @secure
|
|
63
|
-
*/
|
|
64
|
-
createBranch = (data: CreateBranchDto, params: RequestParams = {}) =>
|
|
65
|
-
this.http.request<CreateBranchData, any>({
|
|
66
|
-
path: `/agent-branches`,
|
|
67
|
-
method: "POST",
|
|
68
|
-
body: data,
|
|
69
|
-
secure: true,
|
|
70
|
-
type: ContentType.Json,
|
|
71
|
-
...params,
|
|
72
|
-
});
|
|
73
|
-
/**
|
|
74
|
-
* No description
|
|
75
|
-
*
|
|
76
|
-
* @tags Admin Agent Branches
|
|
77
|
-
* @name GetBranch
|
|
78
|
-
* @summary Get branch by ID
|
|
79
|
-
* @request GET:/agent-branches/{id}
|
|
80
|
-
* @secure
|
|
81
|
-
*/
|
|
82
|
-
getBranch = ({ id, ...query }: GetBranchParams, params: RequestParams = {}) =>
|
|
83
|
-
this.http.request<GetBranchData, any>({
|
|
84
|
-
path: `/agent-branches/${id}`,
|
|
85
|
-
method: "GET",
|
|
86
|
-
secure: true,
|
|
87
|
-
...params,
|
|
88
|
-
});
|
|
89
|
-
/**
|
|
90
|
-
* No description
|
|
91
|
-
*
|
|
92
|
-
* @tags Admin Agent Branches
|
|
93
|
-
* @name UpdateBranch
|
|
94
|
-
* @summary Update a branch
|
|
95
|
-
* @request PATCH:/agent-branches/{id}
|
|
96
|
-
* @secure
|
|
97
|
-
*/
|
|
98
|
-
updateBranch = (
|
|
99
|
-
{ id, ...query }: UpdateBranchParams,
|
|
100
|
-
data: UpdateBranchDto,
|
|
101
|
-
params: RequestParams = {},
|
|
102
|
-
) =>
|
|
103
|
-
this.http.request<UpdateBranchData, any>({
|
|
104
|
-
path: `/agent-branches/${id}`,
|
|
105
|
-
method: "PATCH",
|
|
106
|
-
body: data,
|
|
107
|
-
secure: true,
|
|
108
|
-
type: ContentType.Json,
|
|
109
|
-
...params,
|
|
110
|
-
});
|
|
111
|
-
/**
|
|
112
|
-
* No description
|
|
113
|
-
*
|
|
114
|
-
* @tags Admin Agent Branches
|
|
115
|
-
* @name DeleteBranch
|
|
116
|
-
* @summary Delete a branch
|
|
117
|
-
* @request DELETE:/agent-branches/{id}
|
|
118
|
-
* @secure
|
|
119
|
-
*/
|
|
120
|
-
deleteBranch = (
|
|
121
|
-
{ id, ...query }: DeleteBranchParams,
|
|
122
|
-
params: RequestParams = {},
|
|
123
|
-
) =>
|
|
124
|
-
this.http.request<DeleteBranchData, any>({
|
|
125
|
-
path: `/agent-branches/${id}`,
|
|
126
|
-
method: "DELETE",
|
|
127
|
-
secure: true,
|
|
128
|
-
...params,
|
|
129
|
-
});
|
|
130
|
-
/**
|
|
131
|
-
* No description
|
|
132
|
-
*
|
|
133
|
-
* @tags Admin Agent Branches
|
|
134
|
-
* @name UpdateBranchStatus
|
|
135
|
-
* @summary Update branch status
|
|
136
|
-
* @request PATCH:/agent-branches/{id}/status
|
|
137
|
-
* @secure
|
|
138
|
-
*/
|
|
139
|
-
updateBranchStatus = (
|
|
140
|
-
{ id, ...query }: UpdateBranchStatusParams,
|
|
141
|
-
data: UpdateBranchStatusDto,
|
|
142
|
-
params: RequestParams = {},
|
|
143
|
-
) =>
|
|
144
|
-
this.http.request<UpdateBranchStatusData, any>({
|
|
145
|
-
path: `/agent-branches/${id}/status`,
|
|
146
|
-
method: "PATCH",
|
|
147
|
-
body: data,
|
|
148
|
-
secure: true,
|
|
149
|
-
type: ContentType.Json,
|
|
150
|
-
...params,
|
|
151
|
-
});
|
|
152
|
-
}
|
package/AgentSettlements.ts
DELETED
|
@@ -1,204 +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
|
-
AddAdjustmentDto,
|
|
15
|
-
AddSettlementAdjustmentData,
|
|
16
|
-
AddSettlementAdjustmentParams,
|
|
17
|
-
ApproveAdjustmentData,
|
|
18
|
-
ApproveAdjustmentParams,
|
|
19
|
-
CreateSettlementData,
|
|
20
|
-
CreateSettlementDto,
|
|
21
|
-
GetSettlementAdjustmentsData,
|
|
22
|
-
GetSettlementAdjustmentsParams,
|
|
23
|
-
GetSettlementData,
|
|
24
|
-
GetSettlementParams,
|
|
25
|
-
ListSettlementsData,
|
|
26
|
-
ListSettlementsParams,
|
|
27
|
-
UpdateSettlementAmountsData,
|
|
28
|
-
UpdateSettlementAmountsDto,
|
|
29
|
-
UpdateSettlementAmountsParams,
|
|
30
|
-
UpdateSettlementStatusData,
|
|
31
|
-
UpdateSettlementStatusDto,
|
|
32
|
-
UpdateSettlementStatusParams,
|
|
33
|
-
} from "./data-contracts";
|
|
34
|
-
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
35
|
-
|
|
36
|
-
export class AgentSettlements<SecurityDataType = unknown> {
|
|
37
|
-
http: HttpClient<SecurityDataType>;
|
|
38
|
-
|
|
39
|
-
constructor(http: HttpClient<SecurityDataType>) {
|
|
40
|
-
this.http = http;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* No description
|
|
45
|
-
*
|
|
46
|
-
* @tags Admin Agent Settlements
|
|
47
|
-
* @name ListSettlements
|
|
48
|
-
* @summary List all settlements
|
|
49
|
-
* @request GET:/agent-settlements
|
|
50
|
-
* @secure
|
|
51
|
-
*/
|
|
52
|
-
listSettlements = (
|
|
53
|
-
query: ListSettlementsParams,
|
|
54
|
-
params: RequestParams = {},
|
|
55
|
-
) =>
|
|
56
|
-
this.http.request<ListSettlementsData, any>({
|
|
57
|
-
path: `/agent-settlements`,
|
|
58
|
-
method: "GET",
|
|
59
|
-
query: query,
|
|
60
|
-
secure: true,
|
|
61
|
-
...params,
|
|
62
|
-
});
|
|
63
|
-
/**
|
|
64
|
-
* No description
|
|
65
|
-
*
|
|
66
|
-
* @tags Admin Agent Settlements
|
|
67
|
-
* @name CreateSettlement
|
|
68
|
-
* @summary Create a new settlement
|
|
69
|
-
* @request POST:/agent-settlements
|
|
70
|
-
* @secure
|
|
71
|
-
*/
|
|
72
|
-
createSettlement = (data: CreateSettlementDto, params: RequestParams = {}) =>
|
|
73
|
-
this.http.request<CreateSettlementData, any>({
|
|
74
|
-
path: `/agent-settlements`,
|
|
75
|
-
method: "POST",
|
|
76
|
-
body: data,
|
|
77
|
-
secure: true,
|
|
78
|
-
type: ContentType.Json,
|
|
79
|
-
...params,
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* No description
|
|
83
|
-
*
|
|
84
|
-
* @tags Admin Agent Settlements
|
|
85
|
-
* @name GetSettlement
|
|
86
|
-
* @summary Get settlement by ID
|
|
87
|
-
* @request GET:/agent-settlements/{id}
|
|
88
|
-
* @secure
|
|
89
|
-
*/
|
|
90
|
-
getSettlement = (
|
|
91
|
-
{ id, ...query }: GetSettlementParams,
|
|
92
|
-
params: RequestParams = {},
|
|
93
|
-
) =>
|
|
94
|
-
this.http.request<GetSettlementData, any>({
|
|
95
|
-
path: `/agent-settlements/${id}`,
|
|
96
|
-
method: "GET",
|
|
97
|
-
secure: true,
|
|
98
|
-
...params,
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* No description
|
|
102
|
-
*
|
|
103
|
-
* @tags Admin Agent Settlements
|
|
104
|
-
* @name UpdateSettlementStatus
|
|
105
|
-
* @summary Update settlement status
|
|
106
|
-
* @request PATCH:/agent-settlements/{id}/status
|
|
107
|
-
* @secure
|
|
108
|
-
*/
|
|
109
|
-
updateSettlementStatus = (
|
|
110
|
-
{ id, ...query }: UpdateSettlementStatusParams,
|
|
111
|
-
data: UpdateSettlementStatusDto,
|
|
112
|
-
params: RequestParams = {},
|
|
113
|
-
) =>
|
|
114
|
-
this.http.request<UpdateSettlementStatusData, any>({
|
|
115
|
-
path: `/agent-settlements/${id}/status`,
|
|
116
|
-
method: "PATCH",
|
|
117
|
-
body: data,
|
|
118
|
-
secure: true,
|
|
119
|
-
type: ContentType.Json,
|
|
120
|
-
...params,
|
|
121
|
-
});
|
|
122
|
-
/**
|
|
123
|
-
* No description
|
|
124
|
-
*
|
|
125
|
-
* @tags Admin Agent Settlements
|
|
126
|
-
* @name UpdateSettlementAmounts
|
|
127
|
-
* @summary Update settlement amounts
|
|
128
|
-
* @request PATCH:/agent-settlements/{id}/amounts
|
|
129
|
-
* @secure
|
|
130
|
-
*/
|
|
131
|
-
updateSettlementAmounts = (
|
|
132
|
-
{ id, ...query }: UpdateSettlementAmountsParams,
|
|
133
|
-
data: UpdateSettlementAmountsDto,
|
|
134
|
-
params: RequestParams = {},
|
|
135
|
-
) =>
|
|
136
|
-
this.http.request<UpdateSettlementAmountsData, any>({
|
|
137
|
-
path: `/agent-settlements/${id}/amounts`,
|
|
138
|
-
method: "PATCH",
|
|
139
|
-
body: data,
|
|
140
|
-
secure: true,
|
|
141
|
-
type: ContentType.Json,
|
|
142
|
-
...params,
|
|
143
|
-
});
|
|
144
|
-
/**
|
|
145
|
-
* No description
|
|
146
|
-
*
|
|
147
|
-
* @tags Admin Agent Settlements
|
|
148
|
-
* @name GetSettlementAdjustments
|
|
149
|
-
* @summary Get settlement adjustments
|
|
150
|
-
* @request GET:/agent-settlements/{id}/adjustments
|
|
151
|
-
* @secure
|
|
152
|
-
*/
|
|
153
|
-
getSettlementAdjustments = (
|
|
154
|
-
{ id, ...query }: GetSettlementAdjustmentsParams,
|
|
155
|
-
params: RequestParams = {},
|
|
156
|
-
) =>
|
|
157
|
-
this.http.request<GetSettlementAdjustmentsData, any>({
|
|
158
|
-
path: `/agent-settlements/${id}/adjustments`,
|
|
159
|
-
method: "GET",
|
|
160
|
-
secure: true,
|
|
161
|
-
...params,
|
|
162
|
-
});
|
|
163
|
-
/**
|
|
164
|
-
* No description
|
|
165
|
-
*
|
|
166
|
-
* @tags Admin Agent Settlements
|
|
167
|
-
* @name AddSettlementAdjustment
|
|
168
|
-
* @summary Add adjustment to settlement
|
|
169
|
-
* @request POST:/agent-settlements/{id}/adjustments
|
|
170
|
-
* @secure
|
|
171
|
-
*/
|
|
172
|
-
addSettlementAdjustment = (
|
|
173
|
-
{ id, ...query }: AddSettlementAdjustmentParams,
|
|
174
|
-
data: AddAdjustmentDto,
|
|
175
|
-
params: RequestParams = {},
|
|
176
|
-
) =>
|
|
177
|
-
this.http.request<AddSettlementAdjustmentData, any>({
|
|
178
|
-
path: `/agent-settlements/${id}/adjustments`,
|
|
179
|
-
method: "POST",
|
|
180
|
-
body: data,
|
|
181
|
-
secure: true,
|
|
182
|
-
type: ContentType.Json,
|
|
183
|
-
...params,
|
|
184
|
-
});
|
|
185
|
-
/**
|
|
186
|
-
* No description
|
|
187
|
-
*
|
|
188
|
-
* @tags Admin Agent Settlements
|
|
189
|
-
* @name ApproveAdjustment
|
|
190
|
-
* @summary Approve settlement adjustment
|
|
191
|
-
* @request POST:/agent-settlements/adjustments/{adjustmentId}/approve
|
|
192
|
-
* @secure
|
|
193
|
-
*/
|
|
194
|
-
approveAdjustment = (
|
|
195
|
-
{ adjustmentId, ...query }: ApproveAdjustmentParams,
|
|
196
|
-
params: RequestParams = {},
|
|
197
|
-
) =>
|
|
198
|
-
this.http.request<ApproveAdjustmentData, any>({
|
|
199
|
-
path: `/agent-settlements/adjustments/${adjustmentId}/approve`,
|
|
200
|
-
method: "POST",
|
|
201
|
-
secure: true,
|
|
202
|
-
...params,
|
|
203
|
-
});
|
|
204
|
-
}
|
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
|
-
}
|