@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/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;;;;;;;GAOG;;;AAiBH,+CAAuE;AAEvE,MAAa,KAAK;IAGhB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CA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