nextemos 4.5.9 → 4.5.11
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.
|
@@ -52,6 +52,16 @@ exports.MemberService = {
|
|
|
52
52
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
53
53
|
});
|
|
54
54
|
},
|
|
55
|
+
UpdateMember: function (data, options) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
return yield (0, __1.fetchRequest)().put((0, urls_1.getUrl)({
|
|
58
|
+
serviceUrl: this.ServiceUrl(),
|
|
59
|
+
prefix: this.Prefix,
|
|
60
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
61
|
+
methodName: urls_1.default.Member.Members.Members,
|
|
62
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
63
|
+
});
|
|
64
|
+
},
|
|
55
65
|
Login: function (data, options) {
|
|
56
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
67
|
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
@@ -131,8 +141,8 @@ exports.MemberService = {
|
|
|
131
141
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
132
142
|
});
|
|
133
143
|
},
|
|
134
|
-
NewAddress: function () {
|
|
135
|
-
return __awaiter(this,
|
|
144
|
+
NewAddress: function (data, options) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
146
|
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
137
147
|
serviceUrl: this.ServiceUrl(),
|
|
138
148
|
prefix: this.Prefix,
|
|
@@ -141,4 +151,14 @@ exports.MemberService = {
|
|
|
141
151
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
142
152
|
});
|
|
143
153
|
},
|
|
154
|
+
RemoveAddress: function (data, options) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
return yield (0, __1.fetchRequest)().delete((0, urls_1.getUrl)({
|
|
157
|
+
serviceUrl: this.ServiceUrl(),
|
|
158
|
+
prefix: this.Prefix,
|
|
159
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
160
|
+
methodName: urls_1.default.Member.Address.Addresses,
|
|
161
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
162
|
+
});
|
|
163
|
+
},
|
|
144
164
|
};
|
|
@@ -101,14 +101,23 @@ export interface IMemberAddressRequest {
|
|
|
101
101
|
language?: string;
|
|
102
102
|
tags?: string[];
|
|
103
103
|
}
|
|
104
|
+
export interface IRemoveAddressRequest {
|
|
105
|
+
id?: number;
|
|
106
|
+
language?: string;
|
|
107
|
+
tags?: string[];
|
|
108
|
+
}
|
|
109
|
+
export interface IUpdateMemberRequest extends Omit<ICreateMemberRequest, 'password'> {
|
|
110
|
+
}
|
|
104
111
|
export interface IMemberService extends IService {
|
|
105
112
|
SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
|
|
106
113
|
SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
|
|
107
114
|
CreateMember: (data: ICreateMemberRequest, options?: IRequestInit) => Promise<IApiResponse<ICreateMemberResponse>>;
|
|
115
|
+
UpdateMember: (data: IUpdateMemberRequest, options?: IRequestInit) => Promise<IApiResponse<ICreateMemberResponse>>;
|
|
108
116
|
Login: (data: ILoginRequest, options?: IRequestInit) => Promise<IApiResponse<ILoginRequestResponse>>;
|
|
109
117
|
ActiveMember: (options?: IRequestInit) => Promise<IApiResponse<IActiveMemberResponse>>;
|
|
110
118
|
ContactApprovalMessage: (data: IContactApprovalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
111
119
|
ApproveValidationTokenRequest: (data: IApproveValidationTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
112
120
|
Addresses: (data?: IMemberAddressesRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressesResponse>>;
|
|
113
121
|
NewAddress: (data?: IMemberAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressResponse>>;
|
|
122
|
+
RemoveAddress: (data?: IRemoveAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
114
123
|
}
|