@juhuu/sdk-ts 1.3.64 → 1.3.66

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
@@ -2284,6 +2284,7 @@ declare class SessionService extends Service {
2284
2284
  create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
2285
2285
  export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
2286
2286
  retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
2287
+ timeline(SessionTimelineParams: JUHUU.Session.Timeline.Params, SessionTimelineOptions?: JUHUU.Session.Timeline.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Timeline.Response>>;
2287
2288
  list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
2288
2289
  search(SessionSearchParams: JUHUU.Session.Search.Params, SessionSearchOptions?: JUHUU.Session.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Search.Response>>;
2289
2290
  update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
@@ -3147,6 +3148,39 @@ declare namespace JUHUU {
3147
3148
  cursor: string | null;
3148
3149
  };
3149
3150
  }
3151
+ export namespace Timeline {
3152
+ type Params = {
3153
+ propertyId: string;
3154
+ rangeStartAt: string;
3155
+ rangeEndAt: string;
3156
+ locationGroupId?: string;
3157
+ includeCompleted?: boolean;
3158
+ };
3159
+ type Options = JUHUU.RequestOptions;
3160
+ type Location = {
3161
+ id: string;
3162
+ name: string;
3163
+ type: "rentableDevice" | "rentableDeviceGroup" | "useableDevice";
3164
+ rentableDeviceGroupLocationId: string | null;
3165
+ };
3166
+ type Session = {
3167
+ id: string;
3168
+ type: "rent" | "reservation";
3169
+ status: SessionStatus;
3170
+ scheduledReadyAt: string;
3171
+ scheduledTerminationAt: string;
3172
+ locationId: string | null;
3173
+ locationGroupId: string | null;
3174
+ locationName: string | null;
3175
+ locationGroupName: string | null;
3176
+ };
3177
+ type Response = {
3178
+ rangeStartAt: string;
3179
+ rangeEndAt: string;
3180
+ locations: Location[];
3181
+ sessions: Session[];
3182
+ };
3183
+ }
3150
3184
  export namespace Update {
3151
3185
  type Params = {
3152
3186
  sessionId: string;
package/dist/index.d.ts CHANGED
@@ -2284,6 +2284,7 @@ declare class SessionService extends Service {
2284
2284
  create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
2285
2285
  export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
2286
2286
  retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
2287
+ timeline(SessionTimelineParams: JUHUU.Session.Timeline.Params, SessionTimelineOptions?: JUHUU.Session.Timeline.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Timeline.Response>>;
2287
2288
  list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
2288
2289
  search(SessionSearchParams: JUHUU.Session.Search.Params, SessionSearchOptions?: JUHUU.Session.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Search.Response>>;
2289
2290
  update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
@@ -3147,6 +3148,39 @@ declare namespace JUHUU {
3147
3148
  cursor: string | null;
3148
3149
  };
3149
3150
  }
3151
+ export namespace Timeline {
3152
+ type Params = {
3153
+ propertyId: string;
3154
+ rangeStartAt: string;
3155
+ rangeEndAt: string;
3156
+ locationGroupId?: string;
3157
+ includeCompleted?: boolean;
3158
+ };
3159
+ type Options = JUHUU.RequestOptions;
3160
+ type Location = {
3161
+ id: string;
3162
+ name: string;
3163
+ type: "rentableDevice" | "rentableDeviceGroup" | "useableDevice";
3164
+ rentableDeviceGroupLocationId: string | null;
3165
+ };
3166
+ type Session = {
3167
+ id: string;
3168
+ type: "rent" | "reservation";
3169
+ status: SessionStatus;
3170
+ scheduledReadyAt: string;
3171
+ scheduledTerminationAt: string;
3172
+ locationId: string | null;
3173
+ locationGroupId: string | null;
3174
+ locationName: string | null;
3175
+ locationGroupName: string | null;
3176
+ };
3177
+ type Response = {
3178
+ rangeStartAt: string;
3179
+ rangeEndAt: string;
3180
+ locations: Location[];
3181
+ sessions: Session[];
3182
+ };
3183
+ }
3150
3184
  export namespace Update {
3151
3185
  type Params = {
3152
3186
  sessionId: string;
package/dist/index.js CHANGED
@@ -1018,6 +1018,35 @@ var SessionService = class extends Service {
1018
1018
  authenticationNotOptional: true
1019
1019
  });
1020
1020
  }
1021
+ async timeline(SessionTimelineParams, SessionTimelineOptions) {
1022
+ const queryArray = [];
1023
+ queryArray.push("propertyId=" + SessionTimelineParams.propertyId);
1024
+ queryArray.push(
1025
+ "rangeStartAt=" + encodeURIComponent(SessionTimelineParams.rangeStartAt)
1026
+ );
1027
+ queryArray.push(
1028
+ "rangeEndAt=" + encodeURIComponent(SessionTimelineParams.rangeEndAt)
1029
+ );
1030
+ if (SessionTimelineParams.locationGroupId !== void 0) {
1031
+ queryArray.push(
1032
+ "locationGroupId=" + SessionTimelineParams.locationGroupId
1033
+ );
1034
+ }
1035
+ if (SessionTimelineParams.includeCompleted !== void 0) {
1036
+ queryArray.push(
1037
+ "includeCompleted=" + String(SessionTimelineParams.includeCompleted)
1038
+ );
1039
+ }
1040
+ return await super.sendRequest(
1041
+ {
1042
+ method: "GET",
1043
+ url: "sessions/timeline?" + queryArray.join("&"),
1044
+ body: void 0,
1045
+ authenticationNotOptional: false
1046
+ },
1047
+ SessionTimelineOptions
1048
+ );
1049
+ }
1021
1050
  async list(SessionListParams, SessionListOptions) {
1022
1051
  const queryArray = [];
1023
1052
  if (SessionListParams.userId !== void 0) {
package/dist/index.mjs CHANGED
@@ -974,6 +974,35 @@ var SessionService = class extends Service {
974
974
  authenticationNotOptional: true
975
975
  });
976
976
  }
977
+ async timeline(SessionTimelineParams, SessionTimelineOptions) {
978
+ const queryArray = [];
979
+ queryArray.push("propertyId=" + SessionTimelineParams.propertyId);
980
+ queryArray.push(
981
+ "rangeStartAt=" + encodeURIComponent(SessionTimelineParams.rangeStartAt)
982
+ );
983
+ queryArray.push(
984
+ "rangeEndAt=" + encodeURIComponent(SessionTimelineParams.rangeEndAt)
985
+ );
986
+ if (SessionTimelineParams.locationGroupId !== void 0) {
987
+ queryArray.push(
988
+ "locationGroupId=" + SessionTimelineParams.locationGroupId
989
+ );
990
+ }
991
+ if (SessionTimelineParams.includeCompleted !== void 0) {
992
+ queryArray.push(
993
+ "includeCompleted=" + String(SessionTimelineParams.includeCompleted)
994
+ );
995
+ }
996
+ return await super.sendRequest(
997
+ {
998
+ method: "GET",
999
+ url: "sessions/timeline?" + queryArray.join("&"),
1000
+ body: void 0,
1001
+ authenticationNotOptional: false
1002
+ },
1003
+ SessionTimelineOptions
1004
+ );
1005
+ }
977
1006
  async list(SessionListParams, SessionListOptions) {
978
1007
  const queryArray = [];
979
1008
  if (SessionListParams.userId !== void 0) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "provenance": true
4
4
  },
5
5
  "name": "@juhuu/sdk-ts",
6
- "version": "1.3.64",
6
+ "version": "1.3.66",
7
7
  "description": "Typescript wrapper for JUHUU services",
8
8
  "main": "./dist/index.js",
9
9
  "module": "./dist/index.mjs",