nextemos 4.4.9 → 4.4.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.
@@ -90,3 +90,6 @@ export interface IActiveMemberResponse extends IResponse {
90
90
  }
91
91
  export interface ILoginRequestResponse extends IResponse {
92
92
  }
93
+ export interface IMemberAddressesResponse extends IResponse {
94
+ data?: IAddress[];
95
+ }
@@ -120,4 +120,15 @@ exports.MemberService = {
120
120
  }), Object.assign({ body: formData }, options));
121
121
  });
122
122
  },
123
+ // address
124
+ Addresses: function () {
125
+ return __awaiter(this, arguments, void 0, function* (data = {}, options) {
126
+ return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
127
+ serviceUrl: this.ServiceUrl(),
128
+ prefix: this.Prefix,
129
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
130
+ methodName: urls_1.default.Member.Address.Addresses,
131
+ }), Object.assign(Object.assign({}, options), { params: data }));
132
+ });
133
+ },
123
134
  };
@@ -1,4 +1,4 @@
1
- import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse } from '../..';
1
+ import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse } from '../..';
2
2
  export interface IMessageSubjectRequest {
3
3
  tags?: string[];
4
4
  }
@@ -70,6 +70,12 @@ export interface IApproveValidationTokenRequest {
70
70
  token: string;
71
71
  tags?: string[];
72
72
  }
73
+ export interface IMemberAddressesRequest {
74
+ memberId?: number;
75
+ addressType?: 'Individual' | 'Corporate';
76
+ includeParts?: boolean;
77
+ tags?: string[];
78
+ }
73
79
  export interface IMemberService extends IService {
74
80
  SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
75
81
  SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
@@ -78,4 +84,5 @@ export interface IMemberService extends IService {
78
84
  ActiveMember: (options?: IRequestInit) => Promise<IApiResponse<IActiveMemberResponse>>;
79
85
  ContactApprovalMessage: (data: IContactApprovalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
80
86
  ApproveValidationTokenRequest: (data: IApproveValidationTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
87
+ Addresses: (data?: IMemberAddressesRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressesResponse>>;
81
88
  }
@@ -56,6 +56,9 @@ declare const _default: {
56
56
  SubjectsAll: string;
57
57
  Messages: string;
58
58
  };
59
+ Address: {
60
+ Addresses: string;
61
+ };
59
62
  };
60
63
  Address: {
61
64
  AddressSourceData: {
@@ -27,8 +27,8 @@ exports.default = {
27
27
  GetCommonPages: '/{language}/Route/v1/GetCommonPages',
28
28
  },
29
29
  Prediction: {
30
- Autocomplete: '/live/{language}/Predictions/v1/autocomplete',
31
- Didyoumean: '/live/{language}/Predictions/v1/didyoumean',
30
+ Autocomplete: '/{language}/Predictions/v1/autocomplete',
31
+ Didyoumean: '/{language}/Predictions/v1/didyoumean',
32
32
  },
33
33
  Product: {
34
34
  Product: '/live/{language}/Product/v1/{id}',
@@ -61,6 +61,9 @@ exports.default = {
61
61
  MemberMessages: {
62
62
  SubjectsAll: '/{language}/MemberMessages/v1/Subjects/All',
63
63
  Messages: '/{language}/MemberMessages/v1/Messages'
64
+ },
65
+ Address: {
66
+ Addresses: '/{language}/Members/v1/AddressesByMemberId',
64
67
  }
65
68
  },
66
69
  Address: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.4.9",
3
+ "version": "4.4.11",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",