@etsoo/smarterp-core 1.1.63 → 1.1.64

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.
@@ -127,10 +127,11 @@ export declare class PublicApi extends BaseApi {
127
127
  /**
128
128
  * Read member invitation
129
129
  * @param id Id
130
+ * @param code Hashed code
130
131
  * @param payload Payload
131
132
  * @returns Result
132
133
  */
133
- readInvitation(id: string, payload?: IApiPayload<MemberInvitationDto>): Promise<MemberInvitationDto | undefined>;
134
+ readInvitation(id: string, code: string, payload?: IApiPayload<MemberInvitationDto>): Promise<MemberInvitationDto | undefined>;
134
135
  /**
135
136
  *
136
137
  * Get all repeat options
@@ -196,11 +196,12 @@ class PublicApi extends appscript_1.BaseApi {
196
196
  /**
197
197
  * Read member invitation
198
198
  * @param id Id
199
+ * @param code Hashed code
199
200
  * @param payload Payload
200
201
  * @returns Result
201
202
  */
202
- readInvitation(id, payload) {
203
- return this.api.get(`Public/ReadInvitation/${id}`, undefined, payload);
203
+ readInvitation(id, code, payload) {
204
+ return this.api.get(`Public/ReadInvitation/${id}?code=${code}`, undefined, payload);
204
205
  }
205
206
  /**
206
207
  *
@@ -127,10 +127,11 @@ export declare class PublicApi extends BaseApi {
127
127
  /**
128
128
  * Read member invitation
129
129
  * @param id Id
130
+ * @param code Hashed code
130
131
  * @param payload Payload
131
132
  * @returns Result
132
133
  */
133
- readInvitation(id: string, payload?: IApiPayload<MemberInvitationDto>): Promise<MemberInvitationDto | undefined>;
134
+ readInvitation(id: string, code: string, payload?: IApiPayload<MemberInvitationDto>): Promise<MemberInvitationDto | undefined>;
134
135
  /**
135
136
  *
136
137
  * Get all repeat options
@@ -193,11 +193,12 @@ export class PublicApi extends BaseApi {
193
193
  /**
194
194
  * Read member invitation
195
195
  * @param id Id
196
+ * @param code Hashed code
196
197
  * @param payload Payload
197
198
  * @returns Result
198
199
  */
199
- readInvitation(id, payload) {
200
- return this.api.get(`Public/ReadInvitation/${id}`, undefined, payload);
200
+ readInvitation(id, code, payload) {
201
+ return this.api.get(`Public/ReadInvitation/${id}?code=${code}`, undefined, payload);
201
202
  }
202
203
  /**
203
204
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.63",
3
+ "version": "1.1.64",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
package/src/PublicApi.ts CHANGED
@@ -258,11 +258,20 @@ export class PublicApi extends BaseApi {
258
258
  /**
259
259
  * Read member invitation
260
260
  * @param id Id
261
+ * @param code Hashed code
261
262
  * @param payload Payload
262
263
  * @returns Result
263
264
  */
264
- readInvitation(id: string, payload?: IApiPayload<MemberInvitationDto>) {
265
- return this.api.get(`Public/ReadInvitation/${id}`, undefined, payload);
265
+ readInvitation(
266
+ id: string,
267
+ code: string,
268
+ payload?: IApiPayload<MemberInvitationDto>
269
+ ) {
270
+ return this.api.get(
271
+ `Public/ReadInvitation/${id}?code=${code}`,
272
+ undefined,
273
+ payload
274
+ );
266
275
  }
267
276
 
268
277
  /**