nextemos 4.10.4 → 4.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,3 +156,32 @@ export interface IMessage {
|
|
|
156
156
|
createdAtUtc: string;
|
|
157
157
|
updatedAtUtc: string;
|
|
158
158
|
}
|
|
159
|
+
export interface INotificationPreference {
|
|
160
|
+
id: number;
|
|
161
|
+
memberId: number;
|
|
162
|
+
userId: number;
|
|
163
|
+
sourceTypeId: number;
|
|
164
|
+
recipient: string;
|
|
165
|
+
integrationCode: string;
|
|
166
|
+
isSync: boolean;
|
|
167
|
+
isApproved: boolean;
|
|
168
|
+
isEmailPermitted: boolean;
|
|
169
|
+
isPhoneCallPermitted: boolean;
|
|
170
|
+
isSmsPermitted: boolean;
|
|
171
|
+
createdAtUtc: string;
|
|
172
|
+
updatedAtUtc: string;
|
|
173
|
+
updatedBy: number;
|
|
174
|
+
createdBy: number;
|
|
175
|
+
}
|
|
176
|
+
export interface INotificationPreferenceResponse extends IResponse {
|
|
177
|
+
data?: INotificationPreference;
|
|
178
|
+
}
|
|
179
|
+
export interface IYSConsentVerificationMessageResponse extends IResponse {
|
|
180
|
+
data: string;
|
|
181
|
+
}
|
|
182
|
+
export interface IUpdatePreferencesResponse extends IResponse {
|
|
183
|
+
data: {
|
|
184
|
+
isVerificationRequired: boolean;
|
|
185
|
+
verificationToken: string;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
@@ -116,4 +116,16 @@ exports.MemberService = {
|
|
|
116
116
|
UpdateAddress: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
117
117
|
return (0, __1.fetchRequest)().put(exports.MemberService.Url(urls_1.default.Member.Address.Addresses, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
118
118
|
}),
|
|
119
|
+
GetNotificationPreferences: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
120
|
+
return (0, __1.fetchRequest)().get(exports.MemberService.Url(urls_1.default.Member.NotificationPreferencesByMemberId, options), Object.assign(Object.assign({}, options), { params: data }));
|
|
121
|
+
}),
|
|
122
|
+
UpdateNotificationPreferences: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
123
|
+
return (0, __1.fetchRequest)().put(exports.MemberService.Url(urls_1.default.Member.NotificationPreferences, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
124
|
+
}),
|
|
125
|
+
IYSConsentVerificationMessage: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
126
|
+
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.IYSConsentVerificationMessage, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
127
|
+
}),
|
|
128
|
+
IYSConsentVerificationCode: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
129
|
+
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.IYSConsentVerificationCode, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
130
|
+
}),
|
|
119
131
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse, IRequestBase, IMessageByMemberIdResponse, IAnswersByMessageIdResponse, IAddAnswerResponse, ILogonAsGuestRequestResponse } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse, IRequestBase, IMessageByMemberIdResponse, IAnswersByMessageIdResponse, IAddAnswerResponse, ILogonAsGuestRequestResponse, INotificationPreferenceResponse, IYSConsentVerificationMessageResponse, IUpdatePreferencesResponse } from "../..";
|
|
2
2
|
export interface IMessageSubjectRequest extends IRequestBase {
|
|
3
3
|
}
|
|
4
4
|
export interface ISendMessageRequest extends IRequestBase {
|
|
@@ -130,6 +130,30 @@ export interface ILogonAsGuestRequest extends IRequestBase {
|
|
|
130
130
|
name: string;
|
|
131
131
|
surname: string;
|
|
132
132
|
}
|
|
133
|
+
export interface IGetNotificationPreferencesRequest extends IRequestBase {
|
|
134
|
+
id?: number;
|
|
135
|
+
}
|
|
136
|
+
export interface IUpdateNotificationPreferencesRequest extends IRequestBase {
|
|
137
|
+
memberId?: number;
|
|
138
|
+
sourceTypeId?: number;
|
|
139
|
+
recipient?: string;
|
|
140
|
+
integrationCode?: string;
|
|
141
|
+
isEmailPermitted?: boolean;
|
|
142
|
+
isPhoneCallPermitted?: boolean;
|
|
143
|
+
isSmsPermitted?: boolean;
|
|
144
|
+
}
|
|
145
|
+
export interface IYSConsentVerificationMessageRequest extends IRequestBase {
|
|
146
|
+
memberId?: number;
|
|
147
|
+
platformId?: number;
|
|
148
|
+
isEmailPermitted?: boolean;
|
|
149
|
+
isPhoneCallPermitted?: boolean;
|
|
150
|
+
isSmsPermitted?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface IYSConsentVerificationCodeRequest extends IRequestBase {
|
|
153
|
+
memberId?: number;
|
|
154
|
+
requestId: string;
|
|
155
|
+
otpCode: string;
|
|
156
|
+
}
|
|
133
157
|
export interface IMemberService extends IService {
|
|
134
158
|
SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
|
|
135
159
|
SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
|
|
@@ -151,4 +175,8 @@ export interface IMemberService extends IService {
|
|
|
151
175
|
MessagesByMemberId: (data?: IMessageByMemberIdRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageByMemberIdResponse>>;
|
|
152
176
|
AnswersByMessageId: (data?: IAnswersByMessageIdRequest, options?: IRequestInit) => Promise<IApiResponse<IAnswersByMessageIdResponse>>;
|
|
153
177
|
AddAnswer: (data?: IAddAnswerRequest, options?: IRequestInit) => Promise<IApiResponse<IAddAnswerResponse>>;
|
|
178
|
+
GetNotificationPreferences: (data?: IGetNotificationPreferencesRequest, options?: IRequestInit) => Promise<IApiResponse<INotificationPreferenceResponse>>;
|
|
179
|
+
UpdateNotificationPreferences: (data?: IUpdateNotificationPreferencesRequest, options?: IRequestInit) => Promise<IApiResponse<IUpdatePreferencesResponse>>;
|
|
180
|
+
IYSConsentVerificationMessage: (data?: IYSConsentVerificationMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IYSConsentVerificationMessageResponse>>;
|
|
181
|
+
IYSConsentVerificationCode: (data?: IYSConsentVerificationCodeRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
154
182
|
}
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -48,6 +48,10 @@ declare const _default: {
|
|
|
48
48
|
Warehouse: string;
|
|
49
49
|
};
|
|
50
50
|
Member: {
|
|
51
|
+
NotificationPreferences: string;
|
|
52
|
+
NotificationPreferencesByMemberId: string;
|
|
53
|
+
IYSConsentVerificationMessage: string;
|
|
54
|
+
IYSConsentVerificationCode: string;
|
|
51
55
|
Members: {
|
|
52
56
|
Members: string;
|
|
53
57
|
LoginRequest: string;
|
package/dist/services/urls.js
CHANGED
|
@@ -54,6 +54,10 @@ exports.default = {
|
|
|
54
54
|
Warehouse: '/{language}/Warehouses/v1/GetById',
|
|
55
55
|
},
|
|
56
56
|
Member: {
|
|
57
|
+
NotificationPreferences: '/{language}/Members/v1/NotificationPreferences',
|
|
58
|
+
NotificationPreferencesByMemberId: '/{language}/Members/v1/NotificationPreferencesByMemberId',
|
|
59
|
+
IYSConsentVerificationMessage: '/{language}/Members/v1/IYSConsentVerificationMessage',
|
|
60
|
+
IYSConsentVerificationCode: '/{language}/Members/v1/IYSConsentVerificationCode',
|
|
57
61
|
Members: {
|
|
58
62
|
Members: "/{language}/Members/v1",
|
|
59
63
|
LoginRequest: "/{language}/Members/v1/LoginRequest",
|