@juhuu/sdk-ts 1.0.7 → 1.0.9

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
@@ -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
- method: "POST",
272
- url: "sessions",
273
- body: {
274
- locationId: SessionCreateParams.locationId,
275
- tariffId: SessionCreateParams.tariffId,
276
- autoRenew: SessionCreateParams.autoRenew,
277
- type: SessionCreateParams.sessionType,
278
- isOffSession: SessionCreateParams.isOffSession,
279
- userId: SessionCreateParams.userId
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
- useAuthentication: true
282
- });
284
+ SessionCreateOptions
285
+ );
286
+ }
287
+ async export(SessionExportParams, SessionExportOptions) {
288
+ return await super.sendRequest(
289
+ {
290
+ method: "POST",
291
+ url: "sessions/export",
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
- method: "POST",
227
- url: "sessions",
228
- body: {
229
- locationId: SessionCreateParams.locationId,
230
- tariffId: SessionCreateParams.tariffId,
231
- autoRenew: SessionCreateParams.autoRenew,
232
- type: SessionCreateParams.sessionType,
233
- isOffSession: SessionCreateParams.isOffSession,
234
- userId: SessionCreateParams.userId
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
- useAuthentication: true
237
- });
239
+ SessionCreateOptions
240
+ );
241
+ }
242
+ async export(SessionExportParams, SessionExportOptions) {
243
+ return await super.sendRequest(
244
+ {
245
+ method: "POST",
246
+ url: "sessions/export",
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 = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Typescript wrapper for juhuu services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",