@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.
Files changed (157) hide show
  1. package/dist/typescript/account-entry.d.ts +80 -0
  2. package/dist/typescript/account-entry.js +28 -0
  3. package/dist/typescript/address.d.ts +65 -0
  4. package/dist/typescript/address.js +29 -0
  5. package/dist/typescript/admin-card-verification.d.ts +86 -0
  6. package/dist/typescript/admin-card-verification.js +28 -0
  7. package/dist/typescript/administrator.d.ts +176 -0
  8. package/dist/typescript/administrator.js +37 -0
  9. package/dist/typescript/anticipation.d.ts +84 -0
  10. package/dist/typescript/anticipation.js +30 -0
  11. package/dist/typescript/asset.d.ts +43 -0
  12. package/dist/typescript/asset.js +29 -0
  13. package/dist/typescript/auth.d.ts +28 -0
  14. package/dist/typescript/auth.js +24 -0
  15. package/dist/typescript/bank-account.d.ts +63 -0
  16. package/dist/typescript/bank-account.js +29 -0
  17. package/dist/typescript/card-vault.d.ts +35 -0
  18. package/dist/typescript/card-vault.js +24 -0
  19. package/dist/typescript/card-verification.d.ts +29 -0
  20. package/dist/typescript/card-verification.js +27 -0
  21. package/dist/typescript/card.d.ts +147 -0
  22. package/dist/typescript/card.js +33 -0
  23. package/dist/typescript/charge-schedule.d.ts +35 -0
  24. package/dist/typescript/charge-schedule.js +24 -0
  25. package/dist/typescript/charge.d.ts +538 -0
  26. package/dist/typescript/charge.js +55 -0
  27. package/dist/typescript/context.d.ts +154 -0
  28. package/dist/typescript/context.js +32 -0
  29. package/dist/typescript/customer.d.ts +213 -0
  30. package/dist/typescript/customer.js +39 -0
  31. package/dist/typescript/daily-balance.d.ts +32 -0
  32. package/dist/typescript/daily-balance.js +24 -0
  33. package/dist/typescript/document-verification.d.ts +106 -0
  34. package/dist/typescript/document-verification.js +30 -0
  35. package/dist/typescript/email.d.ts +71 -0
  36. package/dist/typescript/email.js +31 -0
  37. package/dist/typescript/expo-push.d.ts +31 -0
  38. package/dist/typescript/expo-push.js +24 -0
  39. package/dist/typescript/fee.d.ts +66 -0
  40. package/dist/typescript/fee.js +28 -0
  41. package/dist/typescript/location.d.ts +38 -0
  42. package/dist/typescript/location.js +24 -0
  43. package/dist/typescript/notification.d.ts +198 -0
  44. package/dist/typescript/notification.js +35 -0
  45. package/dist/typescript/order.d.ts +173 -0
  46. package/dist/typescript/order.js +34 -0
  47. package/dist/typescript/payable.d.ts +226 -0
  48. package/dist/typescript/payable.js +37 -0
  49. package/dist/typescript/payer.d.ts +23 -0
  50. package/dist/typescript/payer.js +24 -0
  51. package/dist/typescript/payment-calculator.d.ts +135 -0
  52. package/dist/typescript/payment-calculator.js +29 -0
  53. package/dist/typescript/payment-card.d.ts +189 -0
  54. package/dist/typescript/payment-card.js +27 -0
  55. package/dist/typescript/payment-gateway.d.ts +92 -0
  56. package/dist/typescript/payment-gateway.js +31 -0
  57. package/dist/typescript/payment-pix.d.ts +101 -0
  58. package/dist/typescript/payment-pix.js +24 -0
  59. package/dist/typescript/receipt.d.ts +193 -0
  60. package/dist/typescript/receipt.js +33 -0
  61. package/dist/typescript/recipient-payment-gateway.d.ts +95 -0
  62. package/dist/typescript/recipient-payment-gateway.js +30 -0
  63. package/dist/typescript/recipient.d.ts +222 -0
  64. package/dist/typescript/recipient.js +36 -0
  65. package/dist/typescript/role.d.ts +57 -0
  66. package/dist/typescript/role.js +30 -0
  67. package/dist/typescript/sms.d.ts +34 -0
  68. package/dist/typescript/sms.js +24 -0
  69. package/dist/typescript/tax.d.ts +293 -0
  70. package/dist/typescript/tax.js +36 -0
  71. package/dist/typescript/transfer.d.ts +185 -0
  72. package/dist/typescript/transfer.js +23 -0
  73. package/dist/typescript/two-factor.d.ts +66 -0
  74. package/dist/typescript/two-factor.js +30 -0
  75. package/dist/typescript/user.d.ts +196 -0
  76. package/dist/typescript/user.js +41 -0
  77. package/dist/typescript/wallet.d.ts +18 -0
  78. package/dist/typescript/wallet.js +24 -0
  79. package/package.json +11 -9
  80. package/typescript/account-entry.ts +0 -177
  81. package/typescript/address.ts +0 -133
  82. package/typescript/admin-card-verification.ts +0 -181
  83. package/typescript/administrator.ts +0 -375
  84. package/typescript/anticipation.ts +0 -187
  85. package/typescript/asset.ts +0 -123
  86. package/typescript/auth.ts +0 -84
  87. package/typescript/bank-account.ts +0 -157
  88. package/typescript/card-vault.ts +0 -92
  89. package/typescript/card-verification.ts +0 -93
  90. package/typescript/card.ts +0 -283
  91. package/typescript/charge-schedule.ts +0 -86
  92. package/typescript/charge.ts +0 -930
  93. package/typescript/context.ts +0 -296
  94. package/typescript/customer.ts +0 -425
  95. package/typescript/daily-balance.ts +0 -94
  96. package/typescript/document-verification.ts +0 -219
  97. package/typescript/email.ts +0 -183
  98. package/typescript/expo-push.ts +0 -75
  99. package/typescript/fee.ts +0 -131
  100. package/typescript/location.ts +0 -96
  101. package/typescript/notification.ts +0 -372
  102. package/typescript/order.ts +0 -311
  103. package/typescript/payable.ts +0 -414
  104. package/typescript/payer.ts +0 -68
  105. package/typescript/payment-calculator.ts +0 -252
  106. package/typescript/payment-card.ts +0 -289
  107. package/typescript/payment-gateway.ts +0 -209
  108. package/typescript/payment-pix.ts +0 -170
  109. package/typescript/receipt.ts +0 -344
  110. package/typescript/recipient-payment-gateway.ts +0 -209
  111. package/typescript/recipient.ts +0 -413
  112. package/typescript/role.ts +0 -144
  113. package/typescript/sms.ts +0 -96
  114. package/typescript/tax.ts +0 -463
  115. package/typescript/transfer.ts +0 -260
  116. package/typescript/two-factor.ts +0 -177
  117. package/typescript/user.ts +0 -413
  118. package/typescript/wallet.ts +0 -63
  119. /package/{account-entry.proto → src/protos/account-entry.proto} +0 -0
  120. /package/{address.proto → src/protos/address.proto} +0 -0
  121. /package/{admin-card-verification.proto → src/protos/admin-card-verification.proto} +0 -0
  122. /package/{administrator.proto → src/protos/administrator.proto} +0 -0
  123. /package/{anticipation.proto → src/protos/anticipation.proto} +0 -0
  124. /package/{asset.proto → src/protos/asset.proto} +0 -0
  125. /package/{auth.proto → src/protos/auth.proto} +0 -0
  126. /package/{bank-account.proto → src/protos/bank-account.proto} +0 -0
  127. /package/{card-vault.proto → src/protos/card-vault.proto} +0 -0
  128. /package/{card-verification.proto → src/protos/card-verification.proto} +0 -0
  129. /package/{card.proto → src/protos/card.proto} +0 -0
  130. /package/{charge-schedule.proto → src/protos/charge-schedule.proto} +0 -0
  131. /package/{charge.proto → src/protos/charge.proto} +0 -0
  132. /package/{context.proto → src/protos/context.proto} +0 -0
  133. /package/{customer.proto → src/protos/customer.proto} +0 -0
  134. /package/{daily-balance.proto → src/protos/daily-balance.proto} +0 -0
  135. /package/{document-verification.proto → src/protos/document-verification.proto} +0 -0
  136. /package/{email.proto → src/protos/email.proto} +0 -0
  137. /package/{expo-push.proto → src/protos/expo-push.proto} +0 -0
  138. /package/{fee.proto → src/protos/fee.proto} +0 -0
  139. /package/{location.proto → src/protos/location.proto} +0 -0
  140. /package/{notification.proto → src/protos/notification.proto} +0 -0
  141. /package/{order.proto → src/protos/order.proto} +0 -0
  142. /package/{payable.proto → src/protos/payable.proto} +0 -0
  143. /package/{payer.proto → src/protos/payer.proto} +0 -0
  144. /package/{payment-calculator.proto → src/protos/payment-calculator.proto} +0 -0
  145. /package/{payment-card.proto → src/protos/payment-card.proto} +0 -0
  146. /package/{payment-gateway.proto → src/protos/payment-gateway.proto} +0 -0
  147. /package/{payment-pix.proto → src/protos/payment-pix.proto} +0 -0
  148. /package/{receipt.proto → src/protos/receipt.proto} +0 -0
  149. /package/{recipient-payment-gateway.proto → src/protos/recipient-payment-gateway.proto} +0 -0
  150. /package/{recipient.proto → src/protos/recipient.proto} +0 -0
  151. /package/{role.proto → src/protos/role.proto} +0 -0
  152. /package/{sms.proto → src/protos/sms.proto} +0 -0
  153. /package/{tax.proto → src/protos/tax.proto} +0 -0
  154. /package/{transfer.proto → src/protos/transfer.proto} +0 -0
  155. /package/{two-factor.proto → src/protos/two-factor.proto} +0 -0
  156. /package/{user.proto → src/protos/user.proto} +0 -0
  157. /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';