nextemos 4.5.14 → 4.5.16
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.
|
@@ -96,3 +96,8 @@ export interface IMemberAddressesResponse extends IResponse {
|
|
|
96
96
|
export interface IMemberAddressResponse extends IResponse {
|
|
97
97
|
data?: IAddress;
|
|
98
98
|
}
|
|
99
|
+
export interface IPasswordRenewalMessageResponse extends IResponse {
|
|
100
|
+
data?: {
|
|
101
|
+
token: string;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -75,7 +75,8 @@ export interface IProduct {
|
|
|
75
75
|
barcodes?: Barcode[];
|
|
76
76
|
documents?: IDocument[];
|
|
77
77
|
vendors?: Vendor[];
|
|
78
|
-
|
|
78
|
+
attributeGroups?: IAttributeGroup[];
|
|
79
|
+
attributes?: IAttributes[];
|
|
79
80
|
}
|
|
80
81
|
export interface RouteLocalization {
|
|
81
82
|
id: number;
|
|
@@ -216,11 +217,7 @@ export interface Vendor {
|
|
|
216
217
|
purchasePrice: number;
|
|
217
218
|
isFundingCalculation: boolean;
|
|
218
219
|
}
|
|
219
|
-
export interface
|
|
220
|
-
attributeGroup: AttributeGroup;
|
|
221
|
-
attributeValueMappings: AttributeValueMapping[];
|
|
222
|
-
}
|
|
223
|
-
export interface AttributeGroup {
|
|
220
|
+
export interface IAttributeGroup {
|
|
224
221
|
id: number;
|
|
225
222
|
name: string;
|
|
226
223
|
hierarchy: number[];
|
|
@@ -232,12 +229,12 @@ export interface AttributeGroup {
|
|
|
232
229
|
hierarchyIds: number[];
|
|
233
230
|
extensionData: any;
|
|
234
231
|
}
|
|
235
|
-
export interface
|
|
236
|
-
attribute:
|
|
237
|
-
attributeValues:
|
|
232
|
+
export interface IAttributes {
|
|
233
|
+
attribute: IAttribute;
|
|
234
|
+
attributeValues: IAttributeValue[];
|
|
238
235
|
attributeValueTexts: string[];
|
|
239
236
|
}
|
|
240
|
-
export interface
|
|
237
|
+
export interface IAttribute {
|
|
241
238
|
id: number;
|
|
242
239
|
name: string;
|
|
243
240
|
attributeTypeId: number;
|
|
@@ -253,7 +250,7 @@ export interface Attribute {
|
|
|
253
250
|
routeDescription: string;
|
|
254
251
|
extensionData: any;
|
|
255
252
|
}
|
|
256
|
-
export interface
|
|
253
|
+
export interface IAttributeValue {
|
|
257
254
|
id: number;
|
|
258
255
|
value: string;
|
|
259
256
|
attributeId: number;
|
|
@@ -102,6 +102,26 @@ exports.MemberService = {
|
|
|
102
102
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
|
+
PasswordRenewalMessage: function (data, options) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
108
|
+
serviceUrl: this.ServiceUrl(),
|
|
109
|
+
prefix: this.Prefix,
|
|
110
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
111
|
+
methodName: urls_1.default.Member.Members.PasswordRenewalMessage,
|
|
112
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
ChangePasswordRequest: function (data, options) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
118
|
+
serviceUrl: this.ServiceUrl(),
|
|
119
|
+
prefix: this.Prefix,
|
|
120
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
121
|
+
methodName: urls_1.default.Member.Members.ChangePasswordRequest,
|
|
122
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
123
|
+
});
|
|
124
|
+
},
|
|
105
125
|
// MemberMessage
|
|
106
126
|
SubjectsAll: function () {
|
|
107
127
|
return __awaiter(this, arguments, void 0, function* (data = {}, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart } from '../..';
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse } from '../..';
|
|
2
2
|
export interface IMessageSubjectRequest {
|
|
3
3
|
language?: string;
|
|
4
4
|
tags?: string[];
|
|
@@ -108,6 +108,19 @@ export interface IRemoveAddressRequest {
|
|
|
108
108
|
}
|
|
109
109
|
export interface IUpdateMemberRequest extends Omit<ICreateMemberRequest, 'password'> {
|
|
110
110
|
}
|
|
111
|
+
export interface IPasswordRenewalMessageRequest {
|
|
112
|
+
email?: string;
|
|
113
|
+
mobilePhone?: string;
|
|
114
|
+
language?: string;
|
|
115
|
+
tags?: string[];
|
|
116
|
+
}
|
|
117
|
+
export interface IChangePasswordRequest {
|
|
118
|
+
token: string;
|
|
119
|
+
password: string;
|
|
120
|
+
key: string;
|
|
121
|
+
language?: string;
|
|
122
|
+
tags?: string[];
|
|
123
|
+
}
|
|
111
124
|
export interface IMemberService extends IService {
|
|
112
125
|
SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
|
|
113
126
|
SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
|
|
@@ -120,4 +133,6 @@ export interface IMemberService extends IService {
|
|
|
120
133
|
Addresses: (data?: IMemberAddressesRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressesResponse>>;
|
|
121
134
|
NewAddress: (data?: IMemberAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressResponse>>;
|
|
122
135
|
RemoveAddress: (data?: IRemoveAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
136
|
+
PasswordRenewalMessage: (data?: IPasswordRenewalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IPasswordRenewalMessageResponse>>;
|
|
137
|
+
ChangePasswordRequest: (data?: IChangePasswordRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
123
138
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -57,6 +57,8 @@ exports.default = {
|
|
|
57
57
|
ActiveMember: "/{language}/Members/v1/ActiveMember",
|
|
58
58
|
ContactApprovalMessage: "/{language}/Members/v1/ContactApprovalMessage",
|
|
59
59
|
ApproveValidationTokenRequest: "/{language}/Members/v1/ApproveValidationTokenRequest",
|
|
60
|
+
PasswordRenewalMessage: "/{language}/Members/v1/PasswordRenewalMessage",
|
|
61
|
+
ChangePasswordRequest: "/{language}/Members/v1/ChangePasswordRequest",
|
|
60
62
|
},
|
|
61
63
|
MemberMessages: {
|
|
62
64
|
SubjectsAll: '/{language}/MemberMessages/v1/Subjects/All',
|