@juhuu/sdk-ts 1.2.43 → 1.2.44

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.
package/dist/index.d.mts CHANGED
@@ -563,6 +563,8 @@ declare class SessionService extends Service {
563
563
  update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
564
564
  terminate(SessionTerminateParams: JUHUU.Session.Terminate.Params, SessionTerminateOptions?: JUHUU.Session.Terminate.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Terminate.Response>>;
565
565
  attachLocation(SessionTerminateParams: JUHUU.Session.AttachLocation.Params, SessionTerminateOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
566
+ attachUser(SessionAttachUserParams: JUHUU.Session.AttachUser.Params, SessionAttachUserOptions?: JUHUU.Session.AttachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachUser.Response>>;
567
+ detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
566
568
  }
567
569
 
568
570
  declare class LinkService extends Service {
@@ -966,6 +968,25 @@ declare namespace JUHUU {
966
968
  session: JUHUU.Session.Object;
967
969
  };
968
970
  }
971
+ export namespace AttachUser {
972
+ type Params = {
973
+ sessionId: string;
974
+ userId: string;
975
+ };
976
+ type Options = JUHUU.RequestOptions;
977
+ type Response = {
978
+ session: JUHUU.Session.Object;
979
+ };
980
+ }
981
+ export namespace DetachUser {
982
+ type Params = {
983
+ sessionId: string;
984
+ };
985
+ type Options = JUHUU.RequestOptions;
986
+ type Response = {
987
+ session: JUHUU.Session.Object;
988
+ };
989
+ }
969
990
  export { };
970
991
  }
971
992
  namespace User {
package/dist/index.d.ts CHANGED
@@ -563,6 +563,8 @@ declare class SessionService extends Service {
563
563
  update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
564
564
  terminate(SessionTerminateParams: JUHUU.Session.Terminate.Params, SessionTerminateOptions?: JUHUU.Session.Terminate.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Terminate.Response>>;
565
565
  attachLocation(SessionTerminateParams: JUHUU.Session.AttachLocation.Params, SessionTerminateOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
566
+ attachUser(SessionAttachUserParams: JUHUU.Session.AttachUser.Params, SessionAttachUserOptions?: JUHUU.Session.AttachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachUser.Response>>;
567
+ detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
566
568
  }
567
569
 
568
570
  declare class LinkService extends Service {
@@ -966,6 +968,25 @@ declare namespace JUHUU {
966
968
  session: JUHUU.Session.Object;
967
969
  };
968
970
  }
971
+ export namespace AttachUser {
972
+ type Params = {
973
+ sessionId: string;
974
+ userId: string;
975
+ };
976
+ type Options = JUHUU.RequestOptions;
977
+ type Response = {
978
+ session: JUHUU.Session.Object;
979
+ };
980
+ }
981
+ export namespace DetachUser {
982
+ type Params = {
983
+ sessionId: string;
984
+ };
985
+ type Options = JUHUU.RequestOptions;
986
+ type Response = {
987
+ session: JUHUU.Session.Object;
988
+ };
989
+ }
969
990
  export { };
970
991
  }
971
992
  namespace User {
package/dist/index.js CHANGED
@@ -402,6 +402,30 @@ var SessionService = class extends Service {
402
402
  SessionTerminateOptions
403
403
  );
404
404
  }
405
+ async attachUser(SessionAttachUserParams, SessionAttachUserOptions) {
406
+ return await super.sendRequest(
407
+ {
408
+ method: "POST",
409
+ url: "sessions/" + SessionAttachUserParams.sessionId + "/user",
410
+ body: {
411
+ userId: SessionAttachUserParams.userId
412
+ },
413
+ useAuthentication: true
414
+ },
415
+ SessionAttachUserOptions
416
+ );
417
+ }
418
+ async detachUser(SessionDetachUserParams, SessionDetachUserOptions) {
419
+ return await super.sendRequest(
420
+ {
421
+ method: "DELETE",
422
+ url: "sessions/" + SessionDetachUserParams.sessionId + "/user",
423
+ body: void 0,
424
+ useAuthentication: true
425
+ },
426
+ SessionDetachUserOptions
427
+ );
428
+ }
405
429
  };
406
430
 
407
431
  // src/links/links.service.ts
package/dist/index.mjs CHANGED
@@ -357,6 +357,30 @@ var SessionService = class extends Service {
357
357
  SessionTerminateOptions
358
358
  );
359
359
  }
360
+ async attachUser(SessionAttachUserParams, SessionAttachUserOptions) {
361
+ return await super.sendRequest(
362
+ {
363
+ method: "POST",
364
+ url: "sessions/" + SessionAttachUserParams.sessionId + "/user",
365
+ body: {
366
+ userId: SessionAttachUserParams.userId
367
+ },
368
+ useAuthentication: true
369
+ },
370
+ SessionAttachUserOptions
371
+ );
372
+ }
373
+ async detachUser(SessionDetachUserParams, SessionDetachUserOptions) {
374
+ return await super.sendRequest(
375
+ {
376
+ method: "DELETE",
377
+ url: "sessions/" + SessionDetachUserParams.sessionId + "/user",
378
+ body: void 0,
379
+ useAuthentication: true
380
+ },
381
+ SessionDetachUserOptions
382
+ );
383
+ }
360
384
  };
361
385
 
362
386
  // src/links/links.service.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.43",
3
+ "version": "1.2.44",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",