@tammsyr/admin-api-client 1.0.0 → 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/README.md +5 -5
- 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/dist/Auth.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
import { ContentType } from "./http-client";
|
|
13
|
+
export class Auth {
|
|
14
|
+
constructor(http) {
|
|
15
|
+
/**
|
|
16
|
+
* @description Authenticate admin with email and password
|
|
17
|
+
*
|
|
18
|
+
* @tags Admin Auth
|
|
19
|
+
* @name Login
|
|
20
|
+
* @summary Admin login
|
|
21
|
+
* @request POST:/auth/login
|
|
22
|
+
*/
|
|
23
|
+
this.login = (data, params = {}) => this.http.request({
|
|
24
|
+
path: `/auth/login`,
|
|
25
|
+
method: "POST",
|
|
26
|
+
body: data,
|
|
27
|
+
type: ContentType.Json,
|
|
28
|
+
format: "json",
|
|
29
|
+
...params,
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* @description Refresh access token using refresh token
|
|
33
|
+
*
|
|
34
|
+
* @tags Admin Auth
|
|
35
|
+
* @name Refresh
|
|
36
|
+
* @summary Refresh tokens
|
|
37
|
+
* @request POST:/auth/refresh
|
|
38
|
+
*/
|
|
39
|
+
this.refresh = (data, params = {}) => this.http.request({
|
|
40
|
+
path: `/auth/refresh`,
|
|
41
|
+
method: "POST",
|
|
42
|
+
body: data,
|
|
43
|
+
type: ContentType.Json,
|
|
44
|
+
format: "json",
|
|
45
|
+
...params,
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* @description Logout current session
|
|
49
|
+
*
|
|
50
|
+
* @tags Admin Auth
|
|
51
|
+
* @name Logout
|
|
52
|
+
* @summary Logout
|
|
53
|
+
* @request POST:/auth/logout
|
|
54
|
+
*/
|
|
55
|
+
this.logout = (data, params = {}) => this.http.request({
|
|
56
|
+
path: `/auth/logout`,
|
|
57
|
+
method: "POST",
|
|
58
|
+
body: data,
|
|
59
|
+
type: ContentType.Json,
|
|
60
|
+
format: "json",
|
|
61
|
+
...params,
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* No description
|
|
65
|
+
*
|
|
66
|
+
* @tags Admin Auth
|
|
67
|
+
* @name Seed
|
|
68
|
+
* @request POST:/auth/seed
|
|
69
|
+
*/
|
|
70
|
+
this.seed = (data, params = {}) => this.http.request({
|
|
71
|
+
path: `/auth/seed`,
|
|
72
|
+
method: "POST",
|
|
73
|
+
body: data,
|
|
74
|
+
type: ContentType.Json,
|
|
75
|
+
...params,
|
|
76
|
+
});
|
|
77
|
+
this.http = http;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=Auth.js.map
|
package/dist/Auth.js.map
ADDED
|
@@ -0,0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I,EAAE,YAAY;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,GAAG,MAAM;SACV,CAAC,CAAC;QApEH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAoEF"}
|
package/dist/Kyc.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { FindAllParams10, FindByIdParams6, UpdateKycStatusDto, UpdateStatusParams2 } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class Kyc<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description Get counts of KYC requests by status (total, pending, under review, approved, rejected)
|
|
8
|
+
*
|
|
9
|
+
* @tags KYC
|
|
10
|
+
* @name GetStatistics
|
|
11
|
+
* @summary Get KYC statistics
|
|
12
|
+
* @request GET:/kyc/statistics
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
getStatistics: (params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").KycStatisticsResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Get paginated KYC list with optional search and filter by status
|
|
18
|
+
*
|
|
19
|
+
* @tags KYC
|
|
20
|
+
* @name FindAll
|
|
21
|
+
* @summary List all KYC submissions
|
|
22
|
+
* @request GET:/kyc
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
findAll: (query: FindAllParams10, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").KycListResponseDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Get KYC submission details by request ID
|
|
28
|
+
*
|
|
29
|
+
* @tags KYC
|
|
30
|
+
* @name FindById
|
|
31
|
+
* @summary Get single KYC by ID
|
|
32
|
+
* @request GET:/kyc/{id}
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
findById: ({ id, ...query }: FindByIdParams6, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").KycRequestResponseDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Set status to under_review (start review), rejected or verified (approve).
|
|
38
|
+
*
|
|
39
|
+
* @tags KYC
|
|
40
|
+
* @name UpdateStatus
|
|
41
|
+
* @summary Update KYC status
|
|
42
|
+
* @request POST:/kyc/{id}/status
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
updateStatus: ({ id, ...query }: UpdateStatusParams2, data: UpdateKycStatusDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").KycRequestResponseDto, any, {}>>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=Kyc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kyc.d.ts","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,eAAe,EAGf,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
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
import { ContentType } from "./http-client";
|
|
13
|
+
export class Kyc {
|
|
14
|
+
constructor(http) {
|
|
15
|
+
/**
|
|
16
|
+
* @description Get counts of KYC requests by status (total, pending, under review, approved, rejected)
|
|
17
|
+
*
|
|
18
|
+
* @tags KYC
|
|
19
|
+
* @name GetStatistics
|
|
20
|
+
* @summary Get KYC statistics
|
|
21
|
+
* @request GET:/kyc/statistics
|
|
22
|
+
* @secure
|
|
23
|
+
*/
|
|
24
|
+
this.getStatistics = (params = {}) => this.http.request({
|
|
25
|
+
path: `/kyc/statistics`,
|
|
26
|
+
method: "GET",
|
|
27
|
+
secure: true,
|
|
28
|
+
format: "json",
|
|
29
|
+
...params,
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* @description Get paginated KYC list with optional search and filter by status
|
|
33
|
+
*
|
|
34
|
+
* @tags KYC
|
|
35
|
+
* @name FindAll
|
|
36
|
+
* @summary List all KYC submissions
|
|
37
|
+
* @request GET:/kyc
|
|
38
|
+
* @secure
|
|
39
|
+
*/
|
|
40
|
+
this.findAll = (query, params = {}) => this.http.request({
|
|
41
|
+
path: `/kyc`,
|
|
42
|
+
method: "GET",
|
|
43
|
+
query: query,
|
|
44
|
+
secure: true,
|
|
45
|
+
format: "json",
|
|
46
|
+
...params,
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* @description Get KYC submission details by request ID
|
|
50
|
+
*
|
|
51
|
+
* @tags KYC
|
|
52
|
+
* @name FindById
|
|
53
|
+
* @summary Get single KYC by ID
|
|
54
|
+
* @request GET:/kyc/{id}
|
|
55
|
+
* @secure
|
|
56
|
+
*/
|
|
57
|
+
this.findById = ({ id, ...query }, params = {}) => this.http.request({
|
|
58
|
+
path: `/kyc/${id}`,
|
|
59
|
+
method: "GET",
|
|
60
|
+
secure: true,
|
|
61
|
+
format: "json",
|
|
62
|
+
...params,
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* @description Set status to under_review (start review), rejected or verified (approve).
|
|
66
|
+
*
|
|
67
|
+
* @tags KYC
|
|
68
|
+
* @name UpdateStatus
|
|
69
|
+
* @summary Update KYC status
|
|
70
|
+
* @request POST:/kyc/{id}/status
|
|
71
|
+
* @secure
|
|
72
|
+
*/
|
|
73
|
+
this.updateStatus = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
74
|
+
path: `/kyc/${id}/status`,
|
|
75
|
+
method: "POST",
|
|
76
|
+
body: data,
|
|
77
|
+
secure: true,
|
|
78
|
+
type: ContentType.Json,
|
|
79
|
+
format: "json",
|
|
80
|
+
...params,
|
|
81
|
+
});
|
|
82
|
+
this.http = http;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=Kyc.js.map
|
package/dist/Kyc.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kyc.js","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;AAYH,OAAO,EAAE,WAAW,EAA6B,MAAM,eAAe,CAAC;AAEvE,MAAM,OAAO,GAAG;IAGd,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,CAAC,IAAI,CAAC,OA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2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class Notifications<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description Get a paginated list of admin notifications
|
|
8
|
+
*
|
|
9
|
+
* @tags Admin Notifications
|
|
10
|
+
* @name FindAll
|
|
11
|
+
* @summary List notifications
|
|
12
|
+
* @request GET:/notifications
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
findAll: (query: FindAllParams8, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AdminNotificationListResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Get the count of unread notifications
|
|
18
|
+
*
|
|
19
|
+
* @tags Admin Notifications
|
|
20
|
+
* @name GetUnreadCount
|
|
21
|
+
* @summary Get unread notification count
|
|
22
|
+
* @request GET:/notifications/unread-count
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
getUnreadCount: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Mark a specific notification as read
|
|
28
|
+
*
|
|
29
|
+
* @tags Admin Notifications
|
|
30
|
+
* @name MarkAsRead
|
|
31
|
+
* @summary Mark notification as read
|
|
32
|
+
* @request PATCH:/notifications/{id}/read
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
markAsRead: ({ id, ...query }: MarkAsReadParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AdminNotificationResponseDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Mark all notifications as read
|
|
38
|
+
*
|
|
39
|
+
* @tags Admin Notifications
|
|
40
|
+
* @name MarkAllAsRead
|
|
41
|
+
* @summary Mark all notifications as read
|
|
42
|
+
* @request PATCH:/notifications/read-all
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
markAllAsRead: (params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").MessageResponseDto, any, {}>>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=Notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,cAAc,EAId,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"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
export class Notifications {
|
|
13
|
+
constructor(http) {
|
|
14
|
+
/**
|
|
15
|
+
* @description Get a paginated list of admin notifications
|
|
16
|
+
*
|
|
17
|
+
* @tags Admin Notifications
|
|
18
|
+
* @name FindAll
|
|
19
|
+
* @summary List notifications
|
|
20
|
+
* @request GET:/notifications
|
|
21
|
+
* @secure
|
|
22
|
+
*/
|
|
23
|
+
this.findAll = (query, params = {}) => this.http.request({
|
|
24
|
+
path: `/notifications`,
|
|
25
|
+
method: "GET",
|
|
26
|
+
query: query,
|
|
27
|
+
secure: true,
|
|
28
|
+
format: "json",
|
|
29
|
+
...params,
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* @description Get the count of unread notifications
|
|
33
|
+
*
|
|
34
|
+
* @tags Admin Notifications
|
|
35
|
+
* @name GetUnreadCount
|
|
36
|
+
* @summary Get unread notification count
|
|
37
|
+
* @request GET:/notifications/unread-count
|
|
38
|
+
* @secure
|
|
39
|
+
*/
|
|
40
|
+
this.getUnreadCount = (params = {}) => this.http.request({
|
|
41
|
+
path: `/notifications/unread-count`,
|
|
42
|
+
method: "GET",
|
|
43
|
+
secure: true,
|
|
44
|
+
...params,
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* @description Mark a specific notification as read
|
|
48
|
+
*
|
|
49
|
+
* @tags Admin Notifications
|
|
50
|
+
* @name MarkAsRead
|
|
51
|
+
* @summary Mark notification as read
|
|
52
|
+
* @request PATCH:/notifications/{id}/read
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
this.markAsRead = ({ id, ...query }, params = {}) => this.http.request({
|
|
56
|
+
path: `/notifications/${id}/read`,
|
|
57
|
+
method: "PATCH",
|
|
58
|
+
secure: true,
|
|
59
|
+
format: "json",
|
|
60
|
+
...params,
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* @description Mark all notifications as read
|
|
64
|
+
*
|
|
65
|
+
* @tags Admin Notifications
|
|
66
|
+
* @name MarkAllAsRead
|
|
67
|
+
* @summary Mark all notifications as read
|
|
68
|
+
* @request PATCH:/notifications/read-all
|
|
69
|
+
* @secure
|
|
70
|
+
*/
|
|
71
|
+
this.markAllAsRead = (params = {}) => this.http.request({
|
|
72
|
+
path: `/notifications/read-all`,
|
|
73
|
+
method: "PATCH",
|
|
74
|
+
secure: true,
|
|
75
|
+
format: "json",
|
|
76
|
+
...params,
|
|
77
|
+
});
|
|
78
|
+
this.http = http;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=Notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;AAYH,MAAM,OAAO,aAAa;IAGxB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAqB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoB;YACnC,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"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CreatePermissionDto, DeleteParams, FindAllParams, FindByIdParams, UpdateParams, UpdatePermissionDto } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class Permissions<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description Get a paginated list of all available permissions
|
|
8
|
+
*
|
|
9
|
+
* @tags Admin Permissions
|
|
10
|
+
* @name FindAll
|
|
11
|
+
* @summary List all permissions
|
|
12
|
+
* @request GET:/permissions
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
findAll: (query: FindAllParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").PermissionListResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Create a new permission
|
|
18
|
+
*
|
|
19
|
+
* @tags Admin Permissions
|
|
20
|
+
* @name Create
|
|
21
|
+
* @summary Create permission
|
|
22
|
+
* @request POST:/permissions
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
create: (data: CreatePermissionDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").PermissionResponseDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Get a specific permission by its ID
|
|
28
|
+
*
|
|
29
|
+
* @tags Admin Permissions
|
|
30
|
+
* @name FindById
|
|
31
|
+
* @summary Get permission by ID
|
|
32
|
+
* @request GET:/permissions/{id}
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
findById: ({ id, ...query }: FindByIdParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").PermissionResponseDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Update an existing permission
|
|
38
|
+
*
|
|
39
|
+
* @tags Admin Permissions
|
|
40
|
+
* @name Update
|
|
41
|
+
* @summary Update permission
|
|
42
|
+
* @request PATCH:/permissions/{id}
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
update: ({ id, ...query }: UpdateParams, data: UpdatePermissionDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").PermissionResponseDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Delete a permission (must not be assigned to any roles or users)
|
|
48
|
+
*
|
|
49
|
+
* @tags Admin Permissions
|
|
50
|
+
* @name Delete
|
|
51
|
+
* @summary Delete permission
|
|
52
|
+
* @request DELETE:/permissions/{id}
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
delete: ({ id, ...query }: DeleteParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").MessageResponseDto, any, {}>>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../Permissions.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,mBAAmB,EAGnB,YAAY,EAEZ,aAAa,EAEb,cAAc,EAEd,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,WAAW,CAAC,gBAAgB,GAAG,OAAO;IACjD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,aAAa,EAAE,SAAQ,aAAkB,2GAQtD;IACL;;;;;;;;OAQG;IACH,MAAM,GAAI,MAAM,mBAAmB,EAAE,SAAQ,aAAkB,uGAS1D;IACL;;;;;;;;OAQG;IACH,QAAQ,GAAI,kBAAkB,cAAc,EAAE,SAAQ,aAAkB,uGAOnE;IACL;;;;;;;;OAQG;IACH,MAAM,GACJ,kBAAkB,YAAY,EAC9B,MAAM,mBAAmB,EACzB,SAAQ,aAAkB,uGAUvB;IACL;;;;;;;;OAQG;IACH,MAAM,GAAI,kBAAkB,YAAY,EAAE,SAAQ,aAAkB,oGAO/D;CACN"}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
import { ContentType } from "./http-client";
|
|
13
|
+
export class Permissions {
|
|
14
|
+
constructor(http) {
|
|
15
|
+
/**
|
|
16
|
+
* @description Get a paginated list of all available permissions
|
|
17
|
+
*
|
|
18
|
+
* @tags Admin Permissions
|
|
19
|
+
* @name FindAll
|
|
20
|
+
* @summary List all permissions
|
|
21
|
+
* @request GET:/permissions
|
|
22
|
+
* @secure
|
|
23
|
+
*/
|
|
24
|
+
this.findAll = (query, params = {}) => this.http.request({
|
|
25
|
+
path: `/permissions`,
|
|
26
|
+
method: "GET",
|
|
27
|
+
query: query,
|
|
28
|
+
secure: true,
|
|
29
|
+
format: "json",
|
|
30
|
+
...params,
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* @description Create a new permission
|
|
34
|
+
*
|
|
35
|
+
* @tags Admin Permissions
|
|
36
|
+
* @name Create
|
|
37
|
+
* @summary Create permission
|
|
38
|
+
* @request POST:/permissions
|
|
39
|
+
* @secure
|
|
40
|
+
*/
|
|
41
|
+
this.create = (data, params = {}) => this.http.request({
|
|
42
|
+
path: `/permissions`,
|
|
43
|
+
method: "POST",
|
|
44
|
+
body: data,
|
|
45
|
+
secure: true,
|
|
46
|
+
type: ContentType.Json,
|
|
47
|
+
format: "json",
|
|
48
|
+
...params,
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* @description Get a specific permission by its ID
|
|
52
|
+
*
|
|
53
|
+
* @tags Admin Permissions
|
|
54
|
+
* @name FindById
|
|
55
|
+
* @summary Get permission by ID
|
|
56
|
+
* @request GET:/permissions/{id}
|
|
57
|
+
* @secure
|
|
58
|
+
*/
|
|
59
|
+
this.findById = ({ id, ...query }, params = {}) => this.http.request({
|
|
60
|
+
path: `/permissions/${id}`,
|
|
61
|
+
method: "GET",
|
|
62
|
+
secure: true,
|
|
63
|
+
format: "json",
|
|
64
|
+
...params,
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* @description Update an existing permission
|
|
68
|
+
*
|
|
69
|
+
* @tags Admin Permissions
|
|
70
|
+
* @name Update
|
|
71
|
+
* @summary Update permission
|
|
72
|
+
* @request PATCH:/permissions/{id}
|
|
73
|
+
* @secure
|
|
74
|
+
*/
|
|
75
|
+
this.update = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
76
|
+
path: `/permissions/${id}`,
|
|
77
|
+
method: "PATCH",
|
|
78
|
+
body: data,
|
|
79
|
+
secure: true,
|
|
80
|
+
type: ContentType.Json,
|
|
81
|
+
format: "json",
|
|
82
|
+
...params,
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* @description Delete a permission (must not be assigned to any roles or users)
|
|
86
|
+
*
|
|
87
|
+
* @tags Admin Permissions
|
|
88
|
+
* @name Delete
|
|
89
|
+
* @summary Delete permission
|
|
90
|
+
* @request DELETE:/permissions/{id}
|
|
91
|
+
* @secure
|
|
92
|
+
*/
|
|
93
|
+
this.delete = ({ id, ...query }, params = {}) => this.http.request({
|
|
94
|
+
path: `/permissions/${id}`,
|
|
95
|
+
method: "DELETE",
|
|
96
|
+
secure: true,
|
|
97
|
+
format: "json",
|
|
98
|
+
...params,
|
|
99
|
+
});
|
|
100
|
+
this.http = http;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=Permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../Permissions.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;AAgBH,OAAO,EAAE,WAAW,EAA6B,MAAM,eAAe,CAAC;AAEvE,MAAM,OAAO,WAAW;IAGtB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAoB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC7D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmB;YAClC,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,WAAM,GAAG,CAAC,IAAyB,EAAE,SAAwB,EAAE,EAAE,EAAE,CACjE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmB;YAClC,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,WAAW,CA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2, LookupParams, SetPermissionsParams, UpdateParams2, UpdateRoleDto } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class Roles<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description Get a paginated list of all roles without permissions - useful for dropdowns and lookups
|
|
8
|
+
*
|
|
9
|
+
* @tags Admin Roles
|
|
10
|
+
* @name Lookup
|
|
11
|
+
* @summary List all roles (lookup)
|
|
12
|
+
* @request GET:/roles/lookup
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
lookup: (query: LookupParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").RoleLookupListResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Get a paginated list of all roles with their permissions
|
|
18
|
+
*
|
|
19
|
+
* @tags Admin Roles
|
|
20
|
+
* @name FindAll
|
|
21
|
+
* @summary List all roles
|
|
22
|
+
* @request GET:/roles
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
findAll: (query: FindAllParams2, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").RoleListResponseDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Create a new role with optional permissions assignment
|
|
28
|
+
*
|
|
29
|
+
* @tags Admin Roles
|
|
30
|
+
* @name Create
|
|
31
|
+
* @summary Create role
|
|
32
|
+
* @request POST:/roles
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
create: (data: CreateRoleDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").RoleWithPermissionsResponseDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Get a specific role with its permissions
|
|
38
|
+
*
|
|
39
|
+
* @tags Admin Roles
|
|
40
|
+
* @name FindById
|
|
41
|
+
* @summary Get role by ID
|
|
42
|
+
* @request GET:/roles/{id}
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
findById: ({ id, ...query }: FindByIdParams2, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").RoleWithPermissionsResponseDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Update an existing role
|
|
48
|
+
*
|
|
49
|
+
* @tags Admin Roles
|
|
50
|
+
* @name Update
|
|
51
|
+
* @summary Update role
|
|
52
|
+
* @request PATCH:/roles/{id}
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
update: ({ id, ...query }: UpdateParams2, data: UpdateRoleDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").RoleWithPermissionsResponseDto, any, {}>>;
|
|
56
|
+
/**
|
|
57
|
+
* @description Delete a role (must not have assigned users)
|
|
58
|
+
*
|
|
59
|
+
* @tags Admin Roles
|
|
60
|
+
* @name Delete
|
|
61
|
+
* @summary Delete role
|
|
62
|
+
* @request DELETE:/roles/{id}
|
|
63
|
+
* @secure
|
|
64
|
+
*/
|
|
65
|
+
delete: ({ id, ...query }: DeleteParams2, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").MessageResponseDto, any, {}>>;
|
|
66
|
+
/**
|
|
67
|
+
* @description Replace all permissions for a role
|
|
68
|
+
*
|
|
69
|
+
* @tags Admin Roles
|
|
70
|
+
* @name SetPermissions
|
|
71
|
+
* @summary Set role permissions
|
|
72
|
+
* @request PUT:/roles/{id}/permissions
|
|
73
|
+
* @secure
|
|
74
|
+
*/
|
|
75
|
+
setPermissions: ({ id, ...query }: SetPermissionsParams, data: AssignPermissionsDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
76
|
+
/**
|
|
77
|
+
* @description Add permissions to a role (additive)
|
|
78
|
+
*
|
|
79
|
+
* @tags Admin Roles
|
|
80
|
+
* @name AddPermissions
|
|
81
|
+
* @summary Add permissions to role
|
|
82
|
+
* @request POST:/roles/{id}/permissions
|
|
83
|
+
* @secure
|
|
84
|
+
*/
|
|
85
|
+
addPermissions: ({ id, ...query }: AddPermissionsParams, data: AssignPermissionsDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=Roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Roles.d.ts","sourceRoot":"","sources":["../Roles.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,oBAAoB,EACpB,oBAAoB,EAEpB,aAAa,EAEb,aAAa,EAEb,cAAc,EAEd,eAAe,EAGf,YAAY,EAEZ,oBAAoB,EACpB,aAAa,EAEb,aAAa,EACd,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,MAAM,GAAI,OAAO,YAAY,EAAE,SAAQ,aAAkB,2GAQpD;IACL;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,cAAc,EAAE,SAAQ,aAAkB,qGAQvD;IACL;;;;;;;;OAQG;IACH,MAAM,GAAI,MAAM,aAAa,EAAE,SAAQ,aAAkB,gHASpD;IACL;;;;;;;;OAQG;IACH,QAAQ,GAAI,kBAAkB,eAAe,EAAE,SAAQ,aAAkB,gHAOpE;IACL;;;;;;;;OAQG;IACH,MAAM,GACJ,kBAAkB,aAAa,EAC/B,MAAM,aAAa,EACnB,SAAQ,aAAkB,gHAUvB;IACL;;;;;;;;OAQG;IACH,MAAM,GAAI,kBAAkB,aAAa,EAAE,SAAQ,aAAkB,oGAOhE;IACL;;;;;;;;OAQG;IACH,cAAc,GACZ,kBAAkB,oBAAoB,EACtC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