@juhuu/sdk-ts 1.0.7 → 1.0.8
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 +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +29 -12
- package/dist/index.mjs +29 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -534,6 +534,7 @@ declare class Service {
|
|
534
534
|
declare class SessionService extends Service {
|
535
535
|
constructor(config: JUHUU.SetupConfig);
|
536
536
|
create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
|
537
|
+
export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
|
537
538
|
retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
|
538
539
|
list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
|
539
540
|
update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
|
@@ -780,6 +781,16 @@ declare namespace JUHUU {
|
|
780
781
|
session: JUHUU.Session.Object;
|
781
782
|
};
|
782
783
|
}
|
784
|
+
export namespace Export {
|
785
|
+
type Params = {
|
786
|
+
propertyId: string;
|
787
|
+
outputType: "csv";
|
788
|
+
};
|
789
|
+
type Options = JUHUU.RequestOptions;
|
790
|
+
type Response = {
|
791
|
+
outputUrl: string;
|
792
|
+
};
|
793
|
+
}
|
783
794
|
export namespace Retrieve {
|
784
795
|
type Params = {
|
785
796
|
sessionId: string;
|
package/dist/index.d.ts
CHANGED
@@ -534,6 +534,7 @@ declare class Service {
|
|
534
534
|
declare class SessionService extends Service {
|
535
535
|
constructor(config: JUHUU.SetupConfig);
|
536
536
|
create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
|
537
|
+
export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
|
537
538
|
retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
|
538
539
|
list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
|
539
540
|
update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
|
@@ -780,6 +781,16 @@ declare namespace JUHUU {
|
|
780
781
|
session: JUHUU.Session.Object;
|
781
782
|
};
|
782
783
|
}
|
784
|
+
export namespace Export {
|
785
|
+
type Params = {
|
786
|
+
propertyId: string;
|
787
|
+
outputType: "csv";
|
788
|
+
};
|
789
|
+
type Options = JUHUU.RequestOptions;
|
790
|
+
type Response = {
|
791
|
+
outputUrl: string;
|
792
|
+
};
|
793
|
+
}
|
783
794
|
export namespace Retrieve {
|
784
795
|
type Params = {
|
785
796
|
sessionId: string;
|
package/dist/index.js
CHANGED
@@ -267,19 +267,36 @@ var SessionService = class extends Service {
|
|
267
267
|
super(config);
|
268
268
|
}
|
269
269
|
async create(SessionCreateParams, SessionCreateOptions) {
|
270
|
-
return await super.sendRequest(
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
270
|
+
return await super.sendRequest(
|
271
|
+
{
|
272
|
+
method: "POST",
|
273
|
+
url: "sessions",
|
274
|
+
body: {
|
275
|
+
locationId: SessionCreateParams.locationId,
|
276
|
+
tariffId: SessionCreateParams.tariffId,
|
277
|
+
autoRenew: SessionCreateParams.autoRenew,
|
278
|
+
type: SessionCreateParams.sessionType,
|
279
|
+
isOffSession: SessionCreateParams.isOffSession,
|
280
|
+
userId: SessionCreateParams.userId
|
281
|
+
},
|
282
|
+
useAuthentication: true
|
280
283
|
},
|
281
|
-
|
282
|
-
|
284
|
+
SessionCreateOptions
|
285
|
+
);
|
286
|
+
}
|
287
|
+
async export(SessionExportParams, SessionExportOptions) {
|
288
|
+
return await super.sendRequest(
|
289
|
+
{
|
290
|
+
method: "POST",
|
291
|
+
url: "sessions",
|
292
|
+
body: {
|
293
|
+
propertyId: SessionExportParams.propertyId,
|
294
|
+
outputType: SessionExportParams.outputType
|
295
|
+
},
|
296
|
+
useAuthentication: true
|
297
|
+
},
|
298
|
+
SessionExportOptions
|
299
|
+
);
|
283
300
|
}
|
284
301
|
async retrieve(SessionRetrieveParams, SessionRetrieveOptions) {
|
285
302
|
const queryArray = [];
|
package/dist/index.mjs
CHANGED
@@ -222,19 +222,36 @@ var SessionService = class extends Service {
|
|
222
222
|
super(config);
|
223
223
|
}
|
224
224
|
async create(SessionCreateParams, SessionCreateOptions) {
|
225
|
-
return await super.sendRequest(
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
225
|
+
return await super.sendRequest(
|
226
|
+
{
|
227
|
+
method: "POST",
|
228
|
+
url: "sessions",
|
229
|
+
body: {
|
230
|
+
locationId: SessionCreateParams.locationId,
|
231
|
+
tariffId: SessionCreateParams.tariffId,
|
232
|
+
autoRenew: SessionCreateParams.autoRenew,
|
233
|
+
type: SessionCreateParams.sessionType,
|
234
|
+
isOffSession: SessionCreateParams.isOffSession,
|
235
|
+
userId: SessionCreateParams.userId
|
236
|
+
},
|
237
|
+
useAuthentication: true
|
235
238
|
},
|
236
|
-
|
237
|
-
|
239
|
+
SessionCreateOptions
|
240
|
+
);
|
241
|
+
}
|
242
|
+
async export(SessionExportParams, SessionExportOptions) {
|
243
|
+
return await super.sendRequest(
|
244
|
+
{
|
245
|
+
method: "POST",
|
246
|
+
url: "sessions",
|
247
|
+
body: {
|
248
|
+
propertyId: SessionExportParams.propertyId,
|
249
|
+
outputType: SessionExportParams.outputType
|
250
|
+
},
|
251
|
+
useAuthentication: true
|
252
|
+
},
|
253
|
+
SessionExportOptions
|
254
|
+
);
|
238
255
|
}
|
239
256
|
async retrieve(SessionRetrieveParams, SessionRetrieveOptions) {
|
240
257
|
const queryArray = [];
|