@postpaybr/protos 1.1.2 → 1.1.7
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/typescript/account-entry.d.ts +80 -0
- package/dist/typescript/account-entry.js +28 -0
- package/dist/typescript/address.d.ts +65 -0
- package/dist/typescript/address.js +29 -0
- package/dist/typescript/admin-card-verification.d.ts +86 -0
- package/dist/typescript/admin-card-verification.js +28 -0
- package/dist/typescript/administrator.d.ts +176 -0
- package/dist/typescript/administrator.js +37 -0
- package/dist/typescript/anticipation.d.ts +84 -0
- package/dist/typescript/anticipation.js +30 -0
- package/dist/typescript/asset.d.ts +43 -0
- package/dist/typescript/asset.js +29 -0
- package/dist/typescript/auth.d.ts +28 -0
- package/dist/typescript/auth.js +24 -0
- package/dist/typescript/bank-account.d.ts +63 -0
- package/dist/typescript/bank-account.js +29 -0
- package/dist/typescript/card-vault.d.ts +35 -0
- package/dist/typescript/card-vault.js +24 -0
- package/dist/typescript/card-verification.d.ts +29 -0
- package/dist/typescript/card-verification.js +27 -0
- package/dist/typescript/card.d.ts +147 -0
- package/dist/typescript/card.js +33 -0
- package/dist/typescript/charge-schedule.d.ts +35 -0
- package/dist/typescript/charge-schedule.js +24 -0
- package/dist/typescript/charge.d.ts +538 -0
- package/dist/typescript/charge.js +55 -0
- package/dist/typescript/context.d.ts +154 -0
- package/dist/typescript/context.js +32 -0
- package/dist/typescript/customer.d.ts +213 -0
- package/dist/typescript/customer.js +39 -0
- package/dist/typescript/daily-balance.d.ts +32 -0
- package/dist/typescript/daily-balance.js +24 -0
- package/dist/typescript/document-verification.d.ts +106 -0
- package/dist/typescript/document-verification.js +30 -0
- package/dist/typescript/email.d.ts +71 -0
- package/dist/typescript/email.js +31 -0
- package/dist/typescript/expo-push.d.ts +31 -0
- package/dist/typescript/expo-push.js +24 -0
- package/dist/typescript/fee.d.ts +66 -0
- package/dist/typescript/fee.js +28 -0
- package/dist/typescript/location.d.ts +38 -0
- package/dist/typescript/location.js +24 -0
- package/dist/typescript/notification.d.ts +198 -0
- package/dist/typescript/notification.js +35 -0
- package/dist/typescript/order.d.ts +173 -0
- package/dist/typescript/order.js +34 -0
- package/dist/typescript/payable.d.ts +226 -0
- package/dist/typescript/payable.js +37 -0
- package/dist/typescript/payer.d.ts +23 -0
- package/dist/typescript/payer.js +24 -0
- package/dist/typescript/payment-calculator.d.ts +135 -0
- package/dist/typescript/payment-calculator.js +29 -0
- package/dist/typescript/payment-card.d.ts +189 -0
- package/dist/typescript/payment-card.js +27 -0
- package/dist/typescript/payment-gateway.d.ts +92 -0
- package/dist/typescript/payment-gateway.js +31 -0
- package/dist/typescript/payment-pix.d.ts +101 -0
- package/dist/typescript/payment-pix.js +24 -0
- package/dist/typescript/receipt.d.ts +193 -0
- package/dist/typescript/receipt.js +33 -0
- package/dist/typescript/recipient-payment-gateway.d.ts +95 -0
- package/dist/typescript/recipient-payment-gateway.js +30 -0
- package/dist/typescript/recipient.d.ts +222 -0
- package/dist/typescript/recipient.js +36 -0
- package/dist/typescript/role.d.ts +57 -0
- package/dist/typescript/role.js +30 -0
- package/dist/typescript/sms.d.ts +34 -0
- package/dist/typescript/sms.js +24 -0
- package/dist/typescript/tax.d.ts +293 -0
- package/dist/typescript/tax.js +36 -0
- package/dist/typescript/transfer.d.ts +185 -0
- package/dist/typescript/transfer.js +23 -0
- package/dist/typescript/two-factor.d.ts +66 -0
- package/dist/typescript/two-factor.js +30 -0
- package/dist/typescript/user.d.ts +196 -0
- package/dist/typescript/user.js +41 -0
- package/dist/typescript/wallet.d.ts +18 -0
- package/dist/typescript/wallet.js +24 -0
- package/package.json +11 -9
- package/typescript/account-entry.ts +0 -177
- package/typescript/address.ts +0 -133
- package/typescript/admin-card-verification.ts +0 -181
- package/typescript/administrator.ts +0 -375
- package/typescript/anticipation.ts +0 -187
- package/typescript/asset.ts +0 -123
- package/typescript/auth.ts +0 -84
- package/typescript/bank-account.ts +0 -157
- package/typescript/card-vault.ts +0 -92
- package/typescript/card-verification.ts +0 -93
- package/typescript/card.ts +0 -283
- package/typescript/charge-schedule.ts +0 -86
- package/typescript/charge.ts +0 -930
- package/typescript/context.ts +0 -296
- package/typescript/customer.ts +0 -425
- package/typescript/daily-balance.ts +0 -94
- package/typescript/document-verification.ts +0 -219
- package/typescript/email.ts +0 -183
- package/typescript/expo-push.ts +0 -75
- package/typescript/fee.ts +0 -131
- package/typescript/location.ts +0 -96
- package/typescript/notification.ts +0 -372
- package/typescript/order.ts +0 -311
- package/typescript/payable.ts +0 -414
- package/typescript/payer.ts +0 -68
- package/typescript/payment-calculator.ts +0 -252
- package/typescript/payment-card.ts +0 -289
- package/typescript/payment-gateway.ts +0 -209
- package/typescript/payment-pix.ts +0 -170
- package/typescript/receipt.ts +0 -344
- package/typescript/recipient-payment-gateway.ts +0 -209
- package/typescript/recipient.ts +0 -413
- package/typescript/role.ts +0 -144
- package/typescript/sms.ts +0 -96
- package/typescript/tax.ts +0 -463
- package/typescript/transfer.ts +0 -260
- package/typescript/two-factor.ts +0 -177
- package/typescript/user.ts +0 -413
- package/typescript/wallet.ts +0 -63
- /package/{account-entry.proto → src/protos/account-entry.proto} +0 -0
- /package/{address.proto → src/protos/address.proto} +0 -0
- /package/{admin-card-verification.proto → src/protos/admin-card-verification.proto} +0 -0
- /package/{administrator.proto → src/protos/administrator.proto} +0 -0
- /package/{anticipation.proto → src/protos/anticipation.proto} +0 -0
- /package/{asset.proto → src/protos/asset.proto} +0 -0
- /package/{auth.proto → src/protos/auth.proto} +0 -0
- /package/{bank-account.proto → src/protos/bank-account.proto} +0 -0
- /package/{card-vault.proto → src/protos/card-vault.proto} +0 -0
- /package/{card-verification.proto → src/protos/card-verification.proto} +0 -0
- /package/{card.proto → src/protos/card.proto} +0 -0
- /package/{charge-schedule.proto → src/protos/charge-schedule.proto} +0 -0
- /package/{charge.proto → src/protos/charge.proto} +0 -0
- /package/{context.proto → src/protos/context.proto} +0 -0
- /package/{customer.proto → src/protos/customer.proto} +0 -0
- /package/{daily-balance.proto → src/protos/daily-balance.proto} +0 -0
- /package/{document-verification.proto → src/protos/document-verification.proto} +0 -0
- /package/{email.proto → src/protos/email.proto} +0 -0
- /package/{expo-push.proto → src/protos/expo-push.proto} +0 -0
- /package/{fee.proto → src/protos/fee.proto} +0 -0
- /package/{location.proto → src/protos/location.proto} +0 -0
- /package/{notification.proto → src/protos/notification.proto} +0 -0
- /package/{order.proto → src/protos/order.proto} +0 -0
- /package/{payable.proto → src/protos/payable.proto} +0 -0
- /package/{payer.proto → src/protos/payer.proto} +0 -0
- /package/{payment-calculator.proto → src/protos/payment-calculator.proto} +0 -0
- /package/{payment-card.proto → src/protos/payment-card.proto} +0 -0
- /package/{payment-gateway.proto → src/protos/payment-gateway.proto} +0 -0
- /package/{payment-pix.proto → src/protos/payment-pix.proto} +0 -0
- /package/{receipt.proto → src/protos/receipt.proto} +0 -0
- /package/{recipient-payment-gateway.proto → src/protos/recipient-payment-gateway.proto} +0 -0
- /package/{recipient.proto → src/protos/recipient.proto} +0 -0
- /package/{role.proto → src/protos/role.proto} +0 -0
- /package/{sms.proto → src/protos/sms.proto} +0 -0
- /package/{tax.proto → src/protos/tax.proto} +0 -0
- /package/{transfer.proto → src/protos/transfer.proto} +0 -0
- /package/{two-factor.proto → src/protos/two-factor.proto} +0 -0
- /package/{user.proto → src/protos/user.proto} +0 -0
- /package/{wallet.proto → src/protos/wallet.proto} +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.0
|
|
4
|
-
// protoc v3.20.3
|
|
5
|
-
// source: admin-card-verification.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import {
|
|
9
|
-
CardChallenge,
|
|
10
|
-
CardRejectionReason,
|
|
11
|
-
VerificationStatus,
|
|
12
|
-
} from '@postpaybr/contracts/types';
|
|
13
|
-
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
14
|
-
import { Observable } from 'rxjs';
|
|
15
|
-
|
|
16
|
-
export const protobufPackage = 'adminCardVerification';
|
|
17
|
-
|
|
18
|
-
export interface CreateCardVerificationRequest {
|
|
19
|
-
customerId: string;
|
|
20
|
-
cardId: string;
|
|
21
|
-
selfieWithCardUrl: string;
|
|
22
|
-
challenge: CardChallenge;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface UpdateVerificationStatusRequest {
|
|
26
|
-
id: string;
|
|
27
|
-
status: VerificationStatus;
|
|
28
|
-
rejectionReasons?: CardRejectionReason[];
|
|
29
|
-
customRejectionReason?: string | undefined;
|
|
30
|
-
reviewerId?: string | undefined;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface CardVerificationResponse {
|
|
34
|
-
id: string;
|
|
35
|
-
cardId: string;
|
|
36
|
-
selfieWithCardUrl: string;
|
|
37
|
-
rejectionReasons: CardRejectionReason[];
|
|
38
|
-
customRejectionReason: string;
|
|
39
|
-
histories?: VerificationHistory[];
|
|
40
|
-
challenge: CardChallenge;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface GetVerificationsWithCardDetailsRequest {
|
|
44
|
-
status: VerificationStatus;
|
|
45
|
-
offset?: number | undefined;
|
|
46
|
-
limit?: number | undefined;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface GetAllVerificationsWithDetailsResponse {
|
|
50
|
-
verifications: VerificationWithDetails[];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface VerificationWithDetails {
|
|
54
|
-
id: string;
|
|
55
|
-
customerName: string;
|
|
56
|
-
cardNumber: string;
|
|
57
|
-
createdAt: Date;
|
|
58
|
-
reviewedBy: string;
|
|
59
|
-
status: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface VerificationHistory {
|
|
63
|
-
id: string;
|
|
64
|
-
status: VerificationStatus;
|
|
65
|
-
reviewerId: string;
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface GetVerificationDetailsByIdRequest {
|
|
70
|
-
id: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface VerificationDetailsResponse {
|
|
74
|
-
id: string;
|
|
75
|
-
cardNumber: string;
|
|
76
|
-
cardName: string;
|
|
77
|
-
selfieWithCardUrl: string;
|
|
78
|
-
selfieWithDocumentUrl: string;
|
|
79
|
-
challenge: CardChallenge;
|
|
80
|
-
status: VerificationStatus;
|
|
81
|
-
histories: VerificationHistoryWithAdmin[];
|
|
82
|
-
rejectionReasons: CardRejectionReason[];
|
|
83
|
-
customRejectionReason: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface VerificationHistoryWithAdmin {
|
|
87
|
-
id: string;
|
|
88
|
-
status: VerificationStatus;
|
|
89
|
-
reviewerId: string;
|
|
90
|
-
createdAt: Date;
|
|
91
|
-
reviewedBy: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface Empty {}
|
|
95
|
-
|
|
96
|
-
export const ADMIN_CARD_VERIFICATION_PACKAGE_NAME = 'adminCardVerification';
|
|
97
|
-
|
|
98
|
-
export interface AdminCardVerificationServiceClient {
|
|
99
|
-
initiateCardVerification(
|
|
100
|
-
request: CreateCardVerificationRequest,
|
|
101
|
-
): Observable<CardVerificationResponse>;
|
|
102
|
-
|
|
103
|
-
updateVerificationStatus(
|
|
104
|
-
request: UpdateVerificationStatusRequest,
|
|
105
|
-
): Observable<CardVerificationResponse>;
|
|
106
|
-
|
|
107
|
-
getVerificationsWithCardDetails(
|
|
108
|
-
request: GetVerificationsWithCardDetailsRequest,
|
|
109
|
-
): Observable<GetAllVerificationsWithDetailsResponse>;
|
|
110
|
-
|
|
111
|
-
getVerificationDetailsById(
|
|
112
|
-
request: GetVerificationDetailsByIdRequest,
|
|
113
|
-
): Observable<VerificationDetailsResponse>;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface AdminCardVerificationServiceController {
|
|
117
|
-
initiateCardVerification(
|
|
118
|
-
request: CreateCardVerificationRequest,
|
|
119
|
-
):
|
|
120
|
-
| Promise<CardVerificationResponse>
|
|
121
|
-
| Observable<CardVerificationResponse>
|
|
122
|
-
| CardVerificationResponse;
|
|
123
|
-
|
|
124
|
-
updateVerificationStatus(
|
|
125
|
-
request: UpdateVerificationStatusRequest,
|
|
126
|
-
):
|
|
127
|
-
| Promise<CardVerificationResponse>
|
|
128
|
-
| Observable<CardVerificationResponse>
|
|
129
|
-
| CardVerificationResponse;
|
|
130
|
-
|
|
131
|
-
getVerificationsWithCardDetails(
|
|
132
|
-
request: GetVerificationsWithCardDetailsRequest,
|
|
133
|
-
):
|
|
134
|
-
| Promise<GetAllVerificationsWithDetailsResponse>
|
|
135
|
-
| Observable<GetAllVerificationsWithDetailsResponse>
|
|
136
|
-
| GetAllVerificationsWithDetailsResponse;
|
|
137
|
-
|
|
138
|
-
getVerificationDetailsById(
|
|
139
|
-
request: GetVerificationDetailsByIdRequest,
|
|
140
|
-
):
|
|
141
|
-
| Promise<VerificationDetailsResponse>
|
|
142
|
-
| Observable<VerificationDetailsResponse>
|
|
143
|
-
| VerificationDetailsResponse;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export function AdminCardVerificationServiceControllerMethods() {
|
|
147
|
-
return function (constructor: Function) {
|
|
148
|
-
const grpcMethods: string[] = [
|
|
149
|
-
'initiateCardVerification',
|
|
150
|
-
'updateVerificationStatus',
|
|
151
|
-
'getVerificationsWithCardDetails',
|
|
152
|
-
'getVerificationDetailsById',
|
|
153
|
-
];
|
|
154
|
-
for (const method of grpcMethods) {
|
|
155
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
156
|
-
constructor.prototype,
|
|
157
|
-
method,
|
|
158
|
-
);
|
|
159
|
-
GrpcMethod('AdminCardVerificationService', method)(
|
|
160
|
-
constructor.prototype[method],
|
|
161
|
-
method,
|
|
162
|
-
descriptor,
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
const grpcStreamMethods: string[] = [];
|
|
166
|
-
for (const method of grpcStreamMethods) {
|
|
167
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
168
|
-
constructor.prototype,
|
|
169
|
-
method,
|
|
170
|
-
);
|
|
171
|
-
GrpcStreamMethod('AdminCardVerificationService', method)(
|
|
172
|
-
constructor.prototype[method],
|
|
173
|
-
method,
|
|
174
|
-
descriptor,
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export const ADMIN_CARD_VERIFICATION_SERVICE_NAME =
|
|
181
|
-
'AdminCardVerificationService';
|
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.0
|
|
4
|
-
// protoc v6.32.1
|
|
5
|
-
// source: administrator.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import {
|
|
9
|
-
HolderType,
|
|
10
|
-
RecipientLegalType,
|
|
11
|
-
UserStatus,
|
|
12
|
-
} from '@postpaybr/contracts/enums';
|
|
13
|
-
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
14
|
-
import { Observable } from 'rxjs';
|
|
15
|
-
|
|
16
|
-
export const protobufPackage = 'administrator';
|
|
17
|
-
|
|
18
|
-
export interface CreateAdministratorRequest {
|
|
19
|
-
firstName: string;
|
|
20
|
-
lastName: string;
|
|
21
|
-
email: string;
|
|
22
|
-
roleIds: string[];
|
|
23
|
-
recipientId: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface GetAdministratorByIdRequest {
|
|
27
|
-
id: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface AdministratorResponse {
|
|
31
|
-
id: string;
|
|
32
|
-
firstName: string;
|
|
33
|
-
lastName: string;
|
|
34
|
-
document: string;
|
|
35
|
-
email: string;
|
|
36
|
-
isAccessRestricted: boolean;
|
|
37
|
-
roles?: Role[];
|
|
38
|
-
status?: UserStatus | undefined;
|
|
39
|
-
isSuperAdmin: boolean;
|
|
40
|
-
recipientId: string;
|
|
41
|
-
userId: string;
|
|
42
|
-
twoFactorEnabled?: boolean;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface UpdateAdministratorRequest {
|
|
46
|
-
id: string;
|
|
47
|
-
firstName?: string | undefined;
|
|
48
|
-
lastName?: string | undefined;
|
|
49
|
-
email?: string | undefined;
|
|
50
|
-
roleIds?: string[];
|
|
51
|
-
document?: string | undefined;
|
|
52
|
-
status?: UserStatus | undefined;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface Role {
|
|
56
|
-
id: string;
|
|
57
|
-
code: string;
|
|
58
|
-
description: string;
|
|
59
|
-
permissions: string[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface GetAllAdministratorsRequest {}
|
|
63
|
-
|
|
64
|
-
export interface GetAllAdministratorsResponse {
|
|
65
|
-
administrators: AdministratorResponse[];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface ValidateAndSignInRequest {
|
|
69
|
-
email: string;
|
|
70
|
-
password: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface Tokens {
|
|
74
|
-
accessToken: string;
|
|
75
|
-
refreshToken: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface UserInfo {
|
|
79
|
-
id: string;
|
|
80
|
-
email: string;
|
|
81
|
-
name: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface ValidateAndSignInResponse {
|
|
85
|
-
success?: SuccessResponse | undefined;
|
|
86
|
-
twoFactorRequired?: TwoFactorRequiredResponse | undefined;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface SuccessResponse {
|
|
90
|
-
tokens: Tokens | undefined;
|
|
91
|
-
administrator: AdministratorResponse | undefined;
|
|
92
|
-
recipient: Recipient | undefined;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface TwoFactorRequiredResponse {
|
|
96
|
-
administratorId: string;
|
|
97
|
-
user: UserInfo | undefined;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface VerifyTwoFactorAuthenticationRequest {
|
|
101
|
-
administratorId: string;
|
|
102
|
-
token: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface VerifyTwoFactorAuthenticationResponse {
|
|
106
|
-
tokens: Tokens | undefined;
|
|
107
|
-
administrator: AdministratorResponse | undefined;
|
|
108
|
-
recipient: Recipient | undefined;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface Recipient {
|
|
112
|
-
id: string;
|
|
113
|
-
code: string;
|
|
114
|
-
commercialName: string;
|
|
115
|
-
socialReason: string;
|
|
116
|
-
holderType: HolderType;
|
|
117
|
-
document: string;
|
|
118
|
-
cnaeId: string;
|
|
119
|
-
legalType: RecipientLegalType;
|
|
120
|
-
contactName: string;
|
|
121
|
-
contactEmail: string;
|
|
122
|
-
contactPhone: string;
|
|
123
|
-
foundation: string;
|
|
124
|
-
avatarUrl?: string | undefined;
|
|
125
|
-
isActive: boolean;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface RefreshTokenRequest {
|
|
129
|
-
refreshToken: string;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface RefreshTokenResponse {
|
|
133
|
-
accessToken: string;
|
|
134
|
-
refreshToken: string;
|
|
135
|
-
isAccessRestricted: boolean;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface handleAdministratorChangePasswordRequest {
|
|
139
|
-
administratorId: string;
|
|
140
|
-
newPassword: string;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface handleAdministratorChangePasswordResponse {
|
|
144
|
-
isFirstChangePassword: boolean;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface ResendVerificationEmailRequest {
|
|
148
|
-
administratorId: string;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface Void {}
|
|
152
|
-
|
|
153
|
-
export interface ChangeAdministratorStatusRequest {
|
|
154
|
-
administratorId: string;
|
|
155
|
-
status: string;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface ChangeAdministratorStatusResponse {
|
|
159
|
-
success: boolean;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export interface initiateAdministratorChangePasswordRequest {
|
|
163
|
-
email: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface initiateAdministratorChangePasswordResponse {
|
|
167
|
-
success: boolean;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface GetAdministratorNameRequest {
|
|
171
|
-
id: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface GetAdministratorNameResponse {
|
|
175
|
-
name: string;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export interface GetAdministratorsByRecipientRequest {
|
|
179
|
-
recipientId: string;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface GetAdministratorsByRecipientResponse {
|
|
183
|
-
administrators: AdministratorResponse[];
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export const ADMINISTRATOR_PACKAGE_NAME = 'administrator';
|
|
187
|
-
|
|
188
|
-
export interface AdministratorServiceClient {
|
|
189
|
-
createAdministrator(
|
|
190
|
-
request: CreateAdministratorRequest,
|
|
191
|
-
): Observable<AdministratorResponse>;
|
|
192
|
-
|
|
193
|
-
getAdministratorById(
|
|
194
|
-
request: GetAdministratorByIdRequest,
|
|
195
|
-
): Observable<AdministratorResponse>;
|
|
196
|
-
|
|
197
|
-
updateAdministrator(
|
|
198
|
-
request: UpdateAdministratorRequest,
|
|
199
|
-
): Observable<AdministratorResponse>;
|
|
200
|
-
|
|
201
|
-
getAllAdministrators(
|
|
202
|
-
request: GetAllAdministratorsRequest,
|
|
203
|
-
): Observable<GetAllAdministratorsResponse>;
|
|
204
|
-
|
|
205
|
-
validateAndSignIn(
|
|
206
|
-
request: ValidateAndSignInRequest,
|
|
207
|
-
): Observable<ValidateAndSignInResponse>;
|
|
208
|
-
|
|
209
|
-
verifyTwoFactorAuthentication(
|
|
210
|
-
request: VerifyTwoFactorAuthenticationRequest,
|
|
211
|
-
): Observable<VerifyTwoFactorAuthenticationResponse>;
|
|
212
|
-
|
|
213
|
-
refreshAccessToken(
|
|
214
|
-
request: RefreshTokenRequest,
|
|
215
|
-
): Observable<RefreshTokenResponse>;
|
|
216
|
-
|
|
217
|
-
handleAdministratorChangePassword(
|
|
218
|
-
request: handleAdministratorChangePasswordRequest,
|
|
219
|
-
): Observable<handleAdministratorChangePasswordResponse>;
|
|
220
|
-
|
|
221
|
-
resendVerificationEmail(
|
|
222
|
-
request: ResendVerificationEmailRequest,
|
|
223
|
-
): Observable<Void>;
|
|
224
|
-
|
|
225
|
-
changeAdministratorStatus(
|
|
226
|
-
request: ChangeAdministratorStatusRequest,
|
|
227
|
-
): Observable<ChangeAdministratorStatusResponse>;
|
|
228
|
-
|
|
229
|
-
initiateAdministratorChangePassword(
|
|
230
|
-
request: initiateAdministratorChangePasswordRequest,
|
|
231
|
-
): Observable<initiateAdministratorChangePasswordResponse>;
|
|
232
|
-
|
|
233
|
-
getAdministratorName(
|
|
234
|
-
request: GetAdministratorNameRequest,
|
|
235
|
-
): Observable<GetAdministratorNameResponse>;
|
|
236
|
-
|
|
237
|
-
getAdministratorsByRecipient(
|
|
238
|
-
request: GetAdministratorsByRecipientRequest,
|
|
239
|
-
): Observable<GetAdministratorsByRecipientResponse>;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export interface AdministratorServiceController {
|
|
243
|
-
createAdministrator(
|
|
244
|
-
request: CreateAdministratorRequest,
|
|
245
|
-
):
|
|
246
|
-
| Promise<AdministratorResponse>
|
|
247
|
-
| Observable<AdministratorResponse>
|
|
248
|
-
| AdministratorResponse;
|
|
249
|
-
|
|
250
|
-
getAdministratorById(
|
|
251
|
-
request: GetAdministratorByIdRequest,
|
|
252
|
-
):
|
|
253
|
-
| Promise<AdministratorResponse>
|
|
254
|
-
| Observable<AdministratorResponse>
|
|
255
|
-
| AdministratorResponse;
|
|
256
|
-
|
|
257
|
-
updateAdministrator(
|
|
258
|
-
request: UpdateAdministratorRequest,
|
|
259
|
-
):
|
|
260
|
-
| Promise<AdministratorResponse>
|
|
261
|
-
| Observable<AdministratorResponse>
|
|
262
|
-
| AdministratorResponse;
|
|
263
|
-
|
|
264
|
-
getAllAdministrators(
|
|
265
|
-
request: GetAllAdministratorsRequest,
|
|
266
|
-
):
|
|
267
|
-
| Promise<GetAllAdministratorsResponse>
|
|
268
|
-
| Observable<GetAllAdministratorsResponse>
|
|
269
|
-
| GetAllAdministratorsResponse;
|
|
270
|
-
|
|
271
|
-
validateAndSignIn(
|
|
272
|
-
request: ValidateAndSignInRequest,
|
|
273
|
-
):
|
|
274
|
-
| Promise<ValidateAndSignInResponse>
|
|
275
|
-
| Observable<ValidateAndSignInResponse>
|
|
276
|
-
| ValidateAndSignInResponse;
|
|
277
|
-
|
|
278
|
-
verifyTwoFactorAuthentication(
|
|
279
|
-
request: VerifyTwoFactorAuthenticationRequest,
|
|
280
|
-
):
|
|
281
|
-
| Promise<VerifyTwoFactorAuthenticationResponse>
|
|
282
|
-
| Observable<VerifyTwoFactorAuthenticationResponse>
|
|
283
|
-
| VerifyTwoFactorAuthenticationResponse;
|
|
284
|
-
|
|
285
|
-
refreshAccessToken(
|
|
286
|
-
request: RefreshTokenRequest,
|
|
287
|
-
):
|
|
288
|
-
| Promise<RefreshTokenResponse>
|
|
289
|
-
| Observable<RefreshTokenResponse>
|
|
290
|
-
| RefreshTokenResponse;
|
|
291
|
-
|
|
292
|
-
handleAdministratorChangePassword(
|
|
293
|
-
request: handleAdministratorChangePasswordRequest,
|
|
294
|
-
):
|
|
295
|
-
| Promise<handleAdministratorChangePasswordResponse>
|
|
296
|
-
| Observable<handleAdministratorChangePasswordResponse>
|
|
297
|
-
| handleAdministratorChangePasswordResponse;
|
|
298
|
-
|
|
299
|
-
resendVerificationEmail(
|
|
300
|
-
request: ResendVerificationEmailRequest,
|
|
301
|
-
): Promise<Void> | Observable<Void> | Void;
|
|
302
|
-
|
|
303
|
-
changeAdministratorStatus(
|
|
304
|
-
request: ChangeAdministratorStatusRequest,
|
|
305
|
-
):
|
|
306
|
-
| Promise<ChangeAdministratorStatusResponse>
|
|
307
|
-
| Observable<ChangeAdministratorStatusResponse>
|
|
308
|
-
| ChangeAdministratorStatusResponse;
|
|
309
|
-
|
|
310
|
-
initiateAdministratorChangePassword(
|
|
311
|
-
request: initiateAdministratorChangePasswordRequest,
|
|
312
|
-
):
|
|
313
|
-
| Promise<initiateAdministratorChangePasswordResponse>
|
|
314
|
-
| Observable<initiateAdministratorChangePasswordResponse>
|
|
315
|
-
| initiateAdministratorChangePasswordResponse;
|
|
316
|
-
|
|
317
|
-
getAdministratorName(
|
|
318
|
-
request: GetAdministratorNameRequest,
|
|
319
|
-
):
|
|
320
|
-
| Promise<GetAdministratorNameResponse>
|
|
321
|
-
| Observable<GetAdministratorNameResponse>
|
|
322
|
-
| GetAdministratorNameResponse;
|
|
323
|
-
|
|
324
|
-
getAdministratorsByRecipient(
|
|
325
|
-
request: GetAdministratorsByRecipientRequest,
|
|
326
|
-
):
|
|
327
|
-
| Promise<GetAdministratorsByRecipientResponse>
|
|
328
|
-
| Observable<GetAdministratorsByRecipientResponse>
|
|
329
|
-
| GetAdministratorsByRecipientResponse;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export function AdministratorServiceControllerMethods() {
|
|
333
|
-
return function (constructor: Function) {
|
|
334
|
-
const grpcMethods: string[] = [
|
|
335
|
-
'createAdministrator',
|
|
336
|
-
'getAdministratorById',
|
|
337
|
-
'updateAdministrator',
|
|
338
|
-
'getAllAdministrators',
|
|
339
|
-
'validateAndSignIn',
|
|
340
|
-
'verifyTwoFactorAuthentication',
|
|
341
|
-
'refreshAccessToken',
|
|
342
|
-
'handleAdministratorChangePassword',
|
|
343
|
-
'resendVerificationEmail',
|
|
344
|
-
'changeAdministratorStatus',
|
|
345
|
-
'initiateAdministratorChangePassword',
|
|
346
|
-
'getAdministratorName',
|
|
347
|
-
'getAdministratorsByRecipient',
|
|
348
|
-
];
|
|
349
|
-
for (const method of grpcMethods) {
|
|
350
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
351
|
-
constructor.prototype,
|
|
352
|
-
method,
|
|
353
|
-
);
|
|
354
|
-
GrpcMethod('AdministratorService', method)(
|
|
355
|
-
constructor.prototype[method],
|
|
356
|
-
method,
|
|
357
|
-
descriptor,
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
const grpcStreamMethods: string[] = [];
|
|
361
|
-
for (const method of grpcStreamMethods) {
|
|
362
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
363
|
-
constructor.prototype,
|
|
364
|
-
method,
|
|
365
|
-
);
|
|
366
|
-
GrpcStreamMethod('AdministratorService', method)(
|
|
367
|
-
constructor.prototype[method],
|
|
368
|
-
method,
|
|
369
|
-
descriptor,
|
|
370
|
-
);
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export const ADMINISTRATOR_SERVICE_NAME = 'AdministratorService';
|