@juhuu/sdk-ts 1.3.63 → 1.3.65
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 +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.js +29 -0
- package/dist/index.mjs +29 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -769,6 +769,7 @@ interface LocationListBlock extends BaseBlock {
|
|
|
769
769
|
in: {
|
|
770
770
|
rentableDeviceGroupLocationId: DataEdgeConnection;
|
|
771
771
|
visible: DataEdgeConnection;
|
|
772
|
+
disabled: DataEdgeConnection;
|
|
772
773
|
deviceIdArray: DataEdgeConnection;
|
|
773
774
|
limit: DataEdgeConnection;
|
|
774
775
|
skip: DataEdgeConnection;
|
|
@@ -781,7 +782,8 @@ interface LocationListBlock extends BaseBlock {
|
|
|
781
782
|
data: {
|
|
782
783
|
rentableDeviceGroupLocationId?: string | null;
|
|
783
784
|
visible?: boolean;
|
|
784
|
-
|
|
785
|
+
disabled?: boolean;
|
|
786
|
+
deviceIdArray?: string[];
|
|
785
787
|
limit?: number;
|
|
786
788
|
skip?: number;
|
|
787
789
|
};
|
|
@@ -789,7 +791,8 @@ interface LocationListBlock extends BaseBlock {
|
|
|
789
791
|
interface LocationListBlockInputs {
|
|
790
792
|
rentableDeviceGroupLocationId?: string | null;
|
|
791
793
|
visible?: boolean;
|
|
792
|
-
|
|
794
|
+
disabled?: boolean;
|
|
795
|
+
deviceIdArray?: string[];
|
|
793
796
|
limit?: number;
|
|
794
797
|
skip?: number;
|
|
795
798
|
}
|
|
@@ -2281,6 +2284,7 @@ declare class SessionService extends Service {
|
|
|
2281
2284
|
create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
|
|
2282
2285
|
export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
|
|
2283
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>>;
|
|
2284
2288
|
list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
|
|
2285
2289
|
search(SessionSearchParams: JUHUU.Session.Search.Params, SessionSearchOptions?: JUHUU.Session.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Search.Response>>;
|
|
2286
2290
|
update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
|
|
@@ -3144,6 +3148,40 @@ declare namespace JUHUU {
|
|
|
3144
3148
|
cursor: string | null;
|
|
3145
3149
|
};
|
|
3146
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
|
+
tariffName: LocaleString;
|
|
3177
|
+
};
|
|
3178
|
+
type Response = {
|
|
3179
|
+
rangeStartAt: string;
|
|
3180
|
+
rangeEndAt: string;
|
|
3181
|
+
locations: Location[];
|
|
3182
|
+
sessions: Session[];
|
|
3183
|
+
};
|
|
3184
|
+
}
|
|
3147
3185
|
export namespace Update {
|
|
3148
3186
|
type Params = {
|
|
3149
3187
|
sessionId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -769,6 +769,7 @@ interface LocationListBlock extends BaseBlock {
|
|
|
769
769
|
in: {
|
|
770
770
|
rentableDeviceGroupLocationId: DataEdgeConnection;
|
|
771
771
|
visible: DataEdgeConnection;
|
|
772
|
+
disabled: DataEdgeConnection;
|
|
772
773
|
deviceIdArray: DataEdgeConnection;
|
|
773
774
|
limit: DataEdgeConnection;
|
|
774
775
|
skip: DataEdgeConnection;
|
|
@@ -781,7 +782,8 @@ interface LocationListBlock extends BaseBlock {
|
|
|
781
782
|
data: {
|
|
782
783
|
rentableDeviceGroupLocationId?: string | null;
|
|
783
784
|
visible?: boolean;
|
|
784
|
-
|
|
785
|
+
disabled?: boolean;
|
|
786
|
+
deviceIdArray?: string[];
|
|
785
787
|
limit?: number;
|
|
786
788
|
skip?: number;
|
|
787
789
|
};
|
|
@@ -789,7 +791,8 @@ interface LocationListBlock extends BaseBlock {
|
|
|
789
791
|
interface LocationListBlockInputs {
|
|
790
792
|
rentableDeviceGroupLocationId?: string | null;
|
|
791
793
|
visible?: boolean;
|
|
792
|
-
|
|
794
|
+
disabled?: boolean;
|
|
795
|
+
deviceIdArray?: string[];
|
|
793
796
|
limit?: number;
|
|
794
797
|
skip?: number;
|
|
795
798
|
}
|
|
@@ -2281,6 +2284,7 @@ declare class SessionService extends Service {
|
|
|
2281
2284
|
create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
|
|
2282
2285
|
export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
|
|
2283
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>>;
|
|
2284
2288
|
list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
|
|
2285
2289
|
search(SessionSearchParams: JUHUU.Session.Search.Params, SessionSearchOptions?: JUHUU.Session.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Search.Response>>;
|
|
2286
2290
|
update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
|
|
@@ -3144,6 +3148,40 @@ declare namespace JUHUU {
|
|
|
3144
3148
|
cursor: string | null;
|
|
3145
3149
|
};
|
|
3146
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
|
+
tariffName: LocaleString;
|
|
3177
|
+
};
|
|
3178
|
+
type Response = {
|
|
3179
|
+
rangeStartAt: string;
|
|
3180
|
+
rangeEndAt: string;
|
|
3181
|
+
locations: Location[];
|
|
3182
|
+
sessions: Session[];
|
|
3183
|
+
};
|
|
3184
|
+
}
|
|
3147
3185
|
export namespace Update {
|
|
3148
3186
|
type Params = {
|
|
3149
3187
|
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) {
|