@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
package/typescript/location.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.6.0
|
|
4
|
-
// protoc v3.20.3
|
|
5
|
-
// source: location.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = 'location';
|
|
12
|
-
|
|
13
|
-
export interface State {
|
|
14
|
-
id: string;
|
|
15
|
-
code: string;
|
|
16
|
-
name: string;
|
|
17
|
-
nationalCode: number;
|
|
18
|
-
cities: City[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface City {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
nationalCode: number;
|
|
25
|
-
active: boolean;
|
|
26
|
-
state: State | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface GetCitiesRequest {
|
|
30
|
-
nationalCode: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface GetCitiesResponse {
|
|
34
|
-
cities: City[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface GetStatesRequest {}
|
|
38
|
-
|
|
39
|
-
export interface GetStatesResponse {
|
|
40
|
-
states: State[];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const LOCATION_PACKAGE_NAME = 'location';
|
|
44
|
-
|
|
45
|
-
export interface LocationServiceClient {
|
|
46
|
-
getCities(request: GetCitiesRequest): Observable<GetCitiesResponse>;
|
|
47
|
-
|
|
48
|
-
getStates(request: GetStatesRequest): Observable<GetStatesResponse>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface LocationServiceController {
|
|
52
|
-
getCities(
|
|
53
|
-
request: GetCitiesRequest,
|
|
54
|
-
):
|
|
55
|
-
| Promise<GetCitiesResponse>
|
|
56
|
-
| Observable<GetCitiesResponse>
|
|
57
|
-
| GetCitiesResponse;
|
|
58
|
-
|
|
59
|
-
getStates(
|
|
60
|
-
request: GetStatesRequest,
|
|
61
|
-
):
|
|
62
|
-
| Promise<GetStatesResponse>
|
|
63
|
-
| Observable<GetStatesResponse>
|
|
64
|
-
| GetStatesResponse;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function LocationServiceControllerMethods() {
|
|
68
|
-
return function (constructor: Function) {
|
|
69
|
-
const grpcMethods: string[] = ['getCities', 'getStates'];
|
|
70
|
-
for (const method of grpcMethods) {
|
|
71
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
72
|
-
constructor.prototype,
|
|
73
|
-
method,
|
|
74
|
-
);
|
|
75
|
-
GrpcMethod('LocationService', method)(
|
|
76
|
-
constructor.prototype[method],
|
|
77
|
-
method,
|
|
78
|
-
descriptor,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
const grpcStreamMethods: string[] = [];
|
|
82
|
-
for (const method of grpcStreamMethods) {
|
|
83
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
84
|
-
constructor.prototype,
|
|
85
|
-
method,
|
|
86
|
-
);
|
|
87
|
-
GrpcStreamMethod('LocationService', method)(
|
|
88
|
-
constructor.prototype[method],
|
|
89
|
-
method,
|
|
90
|
-
descriptor,
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export const LOCATION_SERVICE_NAME = 'LocationService';
|
|
@@ -1,372 +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: notification.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { RecipientType } from '@postpaybr/contracts/enums';
|
|
9
|
-
import {
|
|
10
|
-
ChangesFieldType,
|
|
11
|
-
NotificationCategory,
|
|
12
|
-
NotificationImageType,
|
|
13
|
-
} from '@postpaybr/contracts/types';
|
|
14
|
-
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
15
|
-
import { Observable } from 'rxjs';
|
|
16
|
-
|
|
17
|
-
export const protobufPackage = 'notification';
|
|
18
|
-
|
|
19
|
-
export interface GetAllNotificationsDto {
|
|
20
|
-
recipientId: string;
|
|
21
|
-
recipientType: RecipientType;
|
|
22
|
-
severities?: number[];
|
|
23
|
-
isRead?: boolean | undefined;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface DateFilter {
|
|
27
|
-
startDate?: Date | undefined;
|
|
28
|
-
endDate?: Date | undefined;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface PaginationFilter {
|
|
32
|
-
limit?: number | undefined;
|
|
33
|
-
offset?: number | undefined;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface NotificationChange {
|
|
37
|
-
field: ChangesFieldType;
|
|
38
|
-
oldValue: string;
|
|
39
|
-
newValue: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface ChangePoint {
|
|
43
|
-
title: string;
|
|
44
|
-
description: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface NotificationMetadata {
|
|
48
|
-
actionLabel?: string | undefined;
|
|
49
|
-
url?: string | undefined;
|
|
50
|
-
deviceInfo?: string | undefined;
|
|
51
|
-
location?: string | undefined;
|
|
52
|
-
eventDate?: Date | undefined;
|
|
53
|
-
securityAction?: string | undefined;
|
|
54
|
-
changes?: NotificationChange[];
|
|
55
|
-
startDate?: Date | undefined;
|
|
56
|
-
endDate?: Date | undefined;
|
|
57
|
-
impactDescription?: string | undefined;
|
|
58
|
-
updateReason?: string | undefined;
|
|
59
|
-
changePoints?: ChangePoint[];
|
|
60
|
-
userId?: string | undefined;
|
|
61
|
-
scheduledPaymentDate?: Date | undefined;
|
|
62
|
-
paymentAmount?: number | undefined;
|
|
63
|
-
paymentStatus?: string | undefined;
|
|
64
|
-
paymentMethod?: string | undefined;
|
|
65
|
-
chargeId?: string | undefined;
|
|
66
|
-
receiptId?: string | undefined;
|
|
67
|
-
taxId?: string | undefined;
|
|
68
|
-
params?: { [key: string]: string };
|
|
69
|
-
actionButtonVariant?: 'default' | 'ghost' | undefined;
|
|
70
|
-
callToAction?: string | undefined;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface NotificationMetadata_ParamsEntry {
|
|
74
|
-
key: string;
|
|
75
|
-
value: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface Notification {
|
|
79
|
-
id: string;
|
|
80
|
-
title: string;
|
|
81
|
-
description: string;
|
|
82
|
-
isRead: boolean;
|
|
83
|
-
severity: number;
|
|
84
|
-
createdAt: Date;
|
|
85
|
-
updatedAt: Date;
|
|
86
|
-
category: NotificationCategory;
|
|
87
|
-
recipientType: RecipientType;
|
|
88
|
-
recipientId: string;
|
|
89
|
-
imageUrl?: string | undefined;
|
|
90
|
-
imageType?: NotificationImageType | undefined;
|
|
91
|
-
meta?: NotificationMetadata | undefined;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface CreateNotificationRequest {
|
|
95
|
-
recipientId: string;
|
|
96
|
-
recipientType: RecipientType;
|
|
97
|
-
title: string;
|
|
98
|
-
description: string;
|
|
99
|
-
severity?: number | undefined;
|
|
100
|
-
category?: NotificationCategory | undefined;
|
|
101
|
-
meta?: NotificationMetadata | undefined;
|
|
102
|
-
isRead?: boolean | undefined;
|
|
103
|
-
imageUrl?: string | undefined;
|
|
104
|
-
imageType?: NotificationImageType | undefined;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface NotificationResponse {
|
|
108
|
-
notification: Notification | undefined;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface GetNotificationByIdRequest {
|
|
112
|
-
recipientId: string;
|
|
113
|
-
recipientType: RecipientType;
|
|
114
|
-
id: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface GetAllNotificationsRequest {
|
|
118
|
-
data: GetAllNotificationsDto | undefined;
|
|
119
|
-
dateFilter: DateFilter | undefined;
|
|
120
|
-
pagination: PaginationFilter | undefined;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export interface NotificationsResponse {
|
|
124
|
-
notifications: Notification[];
|
|
125
|
-
count: number;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface CountUnreadNotificationsRequest {
|
|
129
|
-
recipientId: string;
|
|
130
|
-
recipientType: RecipientType;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface CountUnreadNotificationsResponse {
|
|
134
|
-
countNotRead: number;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface MarkAsReadRequest {
|
|
138
|
-
recipientId: string;
|
|
139
|
-
recipientType: RecipientType;
|
|
140
|
-
notificationId: string;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface MarkAsReadResponse {
|
|
144
|
-
success: boolean;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface CreateSecurityNotificationRequest {
|
|
148
|
-
recipientId: string;
|
|
149
|
-
recipientType: RecipientType;
|
|
150
|
-
deviceInfo?: string | undefined;
|
|
151
|
-
location?: string | undefined;
|
|
152
|
-
eventDate: Date;
|
|
153
|
-
imageUrl?: string | undefined;
|
|
154
|
-
imageType?: NotificationImageType | undefined;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface CreatePasswordChangedNotificationRequest {
|
|
158
|
-
recipientId: string;
|
|
159
|
-
recipientType: RecipientType;
|
|
160
|
-
deviceInfo?: string | undefined;
|
|
161
|
-
location?: string | undefined;
|
|
162
|
-
eventDate: Date;
|
|
163
|
-
imageUrl?: string | undefined;
|
|
164
|
-
imageType?: NotificationImageType | undefined;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface CreateMaintenanceNotificationRequest {
|
|
168
|
-
recipientId: string;
|
|
169
|
-
recipientType: RecipientType;
|
|
170
|
-
startDate: Date;
|
|
171
|
-
endDate: Date;
|
|
172
|
-
impactDescription: string;
|
|
173
|
-
imageUrl?: string | undefined;
|
|
174
|
-
imageType?: NotificationImageType | undefined;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface CreateTermsUpdatedNotificationRequest {
|
|
178
|
-
recipientId: string;
|
|
179
|
-
recipientType: RecipientType;
|
|
180
|
-
updateReason: string;
|
|
181
|
-
changePoints: ChangePoint[];
|
|
182
|
-
imageUrl?: string | undefined;
|
|
183
|
-
imageType?: NotificationImageType | undefined;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface CreateProfileUpdatedNotificationRequest {
|
|
187
|
-
recipientId: string;
|
|
188
|
-
recipientType: RecipientType;
|
|
189
|
-
changes: NotificationChange[];
|
|
190
|
-
imageUrl?: string | undefined;
|
|
191
|
-
imageType?: NotificationImageType | undefined;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export interface GetNotificationStatusRequest {
|
|
195
|
-
recipientId: string;
|
|
196
|
-
recipientType: RecipientType;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export interface GetNotificationStatusResponse {
|
|
200
|
-
hasCritical: boolean;
|
|
201
|
-
hasUpdates: boolean;
|
|
202
|
-
allCriticalRead: boolean;
|
|
203
|
-
allUpdatesRead: boolean;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export const NOTIFICATION_PACKAGE_NAME = 'notification';
|
|
207
|
-
|
|
208
|
-
export interface NotificationServiceClient {
|
|
209
|
-
createNotification(
|
|
210
|
-
request: CreateNotificationRequest,
|
|
211
|
-
): Observable<NotificationResponse>;
|
|
212
|
-
|
|
213
|
-
getNotificationById(
|
|
214
|
-
request: GetNotificationByIdRequest,
|
|
215
|
-
): Observable<NotificationResponse>;
|
|
216
|
-
|
|
217
|
-
getAllNotifications(
|
|
218
|
-
request: GetAllNotificationsRequest,
|
|
219
|
-
): Observable<NotificationsResponse>;
|
|
220
|
-
|
|
221
|
-
countUnreadNotifications(
|
|
222
|
-
request: CountUnreadNotificationsRequest,
|
|
223
|
-
): Observable<CountUnreadNotificationsResponse>;
|
|
224
|
-
|
|
225
|
-
markAsRead(request: MarkAsReadRequest): Observable<MarkAsReadResponse>;
|
|
226
|
-
|
|
227
|
-
createSecurityNotification(
|
|
228
|
-
request: CreateSecurityNotificationRequest,
|
|
229
|
-
): Observable<NotificationResponse>;
|
|
230
|
-
|
|
231
|
-
createPasswordChangedNotification(
|
|
232
|
-
request: CreatePasswordChangedNotificationRequest,
|
|
233
|
-
): Observable<NotificationResponse>;
|
|
234
|
-
|
|
235
|
-
createMaintenanceNotification(
|
|
236
|
-
request: CreateMaintenanceNotificationRequest,
|
|
237
|
-
): Observable<NotificationResponse>;
|
|
238
|
-
|
|
239
|
-
createTermsUpdatedNotification(
|
|
240
|
-
request: CreateTermsUpdatedNotificationRequest,
|
|
241
|
-
): Observable<NotificationResponse>;
|
|
242
|
-
|
|
243
|
-
createProfileUpdatedNotification(
|
|
244
|
-
request: CreateProfileUpdatedNotificationRequest,
|
|
245
|
-
): Observable<NotificationResponse>;
|
|
246
|
-
|
|
247
|
-
getNotificationStatus(
|
|
248
|
-
request: GetNotificationStatusRequest,
|
|
249
|
-
): Observable<GetNotificationStatusResponse>;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export interface NotificationServiceController {
|
|
253
|
-
createNotification(
|
|
254
|
-
request: CreateNotificationRequest,
|
|
255
|
-
):
|
|
256
|
-
| Promise<NotificationResponse>
|
|
257
|
-
| Observable<NotificationResponse>
|
|
258
|
-
| NotificationResponse;
|
|
259
|
-
|
|
260
|
-
getNotificationById(
|
|
261
|
-
request: GetNotificationByIdRequest,
|
|
262
|
-
):
|
|
263
|
-
| Promise<NotificationResponse>
|
|
264
|
-
| Observable<NotificationResponse>
|
|
265
|
-
| NotificationResponse;
|
|
266
|
-
|
|
267
|
-
getAllNotifications(
|
|
268
|
-
request: GetAllNotificationsRequest,
|
|
269
|
-
):
|
|
270
|
-
| Promise<NotificationsResponse>
|
|
271
|
-
| Observable<NotificationsResponse>
|
|
272
|
-
| NotificationsResponse;
|
|
273
|
-
|
|
274
|
-
countUnreadNotifications(
|
|
275
|
-
request: CountUnreadNotificationsRequest,
|
|
276
|
-
):
|
|
277
|
-
| Promise<CountUnreadNotificationsResponse>
|
|
278
|
-
| Observable<CountUnreadNotificationsResponse>
|
|
279
|
-
| CountUnreadNotificationsResponse;
|
|
280
|
-
|
|
281
|
-
markAsRead(
|
|
282
|
-
request: MarkAsReadRequest,
|
|
283
|
-
):
|
|
284
|
-
| Promise<MarkAsReadResponse>
|
|
285
|
-
| Observable<MarkAsReadResponse>
|
|
286
|
-
| MarkAsReadResponse;
|
|
287
|
-
|
|
288
|
-
createSecurityNotification(
|
|
289
|
-
request: CreateSecurityNotificationRequest,
|
|
290
|
-
):
|
|
291
|
-
| Promise<NotificationResponse>
|
|
292
|
-
| Observable<NotificationResponse>
|
|
293
|
-
| NotificationResponse;
|
|
294
|
-
|
|
295
|
-
createPasswordChangedNotification(
|
|
296
|
-
request: CreatePasswordChangedNotificationRequest,
|
|
297
|
-
):
|
|
298
|
-
| Promise<NotificationResponse>
|
|
299
|
-
| Observable<NotificationResponse>
|
|
300
|
-
| NotificationResponse;
|
|
301
|
-
|
|
302
|
-
createMaintenanceNotification(
|
|
303
|
-
request: CreateMaintenanceNotificationRequest,
|
|
304
|
-
):
|
|
305
|
-
| Promise<NotificationResponse>
|
|
306
|
-
| Observable<NotificationResponse>
|
|
307
|
-
| NotificationResponse;
|
|
308
|
-
|
|
309
|
-
createTermsUpdatedNotification(
|
|
310
|
-
request: CreateTermsUpdatedNotificationRequest,
|
|
311
|
-
):
|
|
312
|
-
| Promise<NotificationResponse>
|
|
313
|
-
| Observable<NotificationResponse>
|
|
314
|
-
| NotificationResponse;
|
|
315
|
-
|
|
316
|
-
createProfileUpdatedNotification(
|
|
317
|
-
request: CreateProfileUpdatedNotificationRequest,
|
|
318
|
-
):
|
|
319
|
-
| Promise<NotificationResponse>
|
|
320
|
-
| Observable<NotificationResponse>
|
|
321
|
-
| NotificationResponse;
|
|
322
|
-
|
|
323
|
-
getNotificationStatus(
|
|
324
|
-
request: GetNotificationStatusRequest,
|
|
325
|
-
):
|
|
326
|
-
| Promise<GetNotificationStatusResponse>
|
|
327
|
-
| Observable<GetNotificationStatusResponse>
|
|
328
|
-
| GetNotificationStatusResponse;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export function NotificationServiceControllerMethods() {
|
|
332
|
-
return function (constructor: Function) {
|
|
333
|
-
const grpcMethods: string[] = [
|
|
334
|
-
'createNotification',
|
|
335
|
-
'getNotificationById',
|
|
336
|
-
'getAllNotifications',
|
|
337
|
-
'countUnreadNotifications',
|
|
338
|
-
'markAsRead',
|
|
339
|
-
'createSecurityNotification',
|
|
340
|
-
'createPasswordChangedNotification',
|
|
341
|
-
'createMaintenanceNotification',
|
|
342
|
-
'createTermsUpdatedNotification',
|
|
343
|
-
'createProfileUpdatedNotification',
|
|
344
|
-
'getNotificationStatus',
|
|
345
|
-
];
|
|
346
|
-
for (const method of grpcMethods) {
|
|
347
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
348
|
-
constructor.prototype,
|
|
349
|
-
method,
|
|
350
|
-
);
|
|
351
|
-
GrpcMethod('NotificationService', method)(
|
|
352
|
-
constructor.prototype[method],
|
|
353
|
-
method,
|
|
354
|
-
descriptor,
|
|
355
|
-
);
|
|
356
|
-
}
|
|
357
|
-
const grpcStreamMethods: string[] = [];
|
|
358
|
-
for (const method of grpcStreamMethods) {
|
|
359
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
360
|
-
constructor.prototype,
|
|
361
|
-
method,
|
|
362
|
-
);
|
|
363
|
-
GrpcStreamMethod('NotificationService', method)(
|
|
364
|
-
constructor.prototype[method],
|
|
365
|
-
method,
|
|
366
|
-
descriptor,
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export const NOTIFICATION_SERVICE_NAME = 'NotificationService';
|