@juhuu/sdk-ts 1.2.58 → 1.2.60

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
@@ -557,9 +557,10 @@ declare class SessionService extends Service {
557
557
  export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
558
558
  retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
559
559
  list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
560
+ search(SessionSearchParams: JUHUU.Session.Search.Params, SessionSearchOptions?: JUHUU.Session.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Search.Response>>;
560
561
  update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
561
562
  terminate(SessionTerminateParams: JUHUU.Session.Terminate.Params, SessionTerminateOptions?: JUHUU.Session.Terminate.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Terminate.Response>>;
562
- attachLocation(SessionTerminateParams: JUHUU.Session.AttachLocation.Params, SessionTerminateOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
563
+ attachLocation(SessionAttachLocationParams: JUHUU.Session.AttachLocation.Params, SessionLocationOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
563
564
  attachUser(SessionAttachUserParams: JUHUU.Session.AttachUser.Params, SessionAttachUserOptions?: JUHUU.Session.AttachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachUser.Response>>;
564
565
  detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
565
566
  }
@@ -591,6 +592,7 @@ declare class PaymentsService extends Service {
591
592
  constructor(config: JUHUU.SetupConfig);
592
593
  list(PaymentListParams: JUHUU.Payment.List.Params, PaymentListOptions?: JUHUU.Payment.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.List.Response>>;
593
594
  retrieve(PaymentRetrieveParams: JUHUU.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU.Payment.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Retrieve.Response>>;
595
+ search(PaymentSearchParams: JUHUU.Payment.Search.Params, PaymentSearchOptions?: JUHUU.Payment.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Search.Response>>;
594
596
  tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
595
597
  retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
596
598
  }
@@ -950,6 +952,15 @@ declare namespace JUHUU {
950
952
  property?: JUHUU.Property.Object;
951
953
  };
952
954
  }
955
+ export namespace Search {
956
+ type Params = {
957
+ paymentId?: string;
958
+ };
959
+ type Options = JUHUU.RequestOptions;
960
+ type Response = {
961
+ session: JUHUU.Session.Object;
962
+ };
963
+ }
953
964
  export namespace List {
954
965
  type Params = {
955
966
  propertyId?: string;
@@ -1731,8 +1742,6 @@ declare namespace JUHUU {
1731
1742
  iconLight: string | null;
1732
1743
  iconDark: string | null;
1733
1744
  version: number;
1734
- deviceIconLight: string | null;
1735
- deviceIconDark: string | null;
1736
1745
  colorScheme: ColorScheme;
1737
1746
  contactUrl: string | null;
1738
1747
  };
@@ -1958,6 +1967,15 @@ declare namespace JUHUU {
1958
1967
  property?: JUHUU.Property.Object;
1959
1968
  };
1960
1969
  }
1970
+ namespace Search {
1971
+ type Params = {
1972
+ providerPaymentId?: string;
1973
+ };
1974
+ type Options = JUHUU.RequestOptions;
1975
+ type Response = {
1976
+ payment: JUHUU.Payment.Object;
1977
+ };
1978
+ }
1961
1979
  namespace List {
1962
1980
  type Params = {
1963
1981
  propertyId?: string;
@@ -2004,10 +2022,8 @@ declare namespace JUHUU {
2004
2022
  readonly object: "location";
2005
2023
  logoLight: string | null;
2006
2024
  logoDark: string | null;
2007
- location: GeoPoint;
2008
- altitudeRange: [number, number];
2009
- invalidAt: Date;
2010
- utilization: Utilization | null;
2025
+ location: GeoPoint | null;
2026
+ invalidAt: Date | null;
2011
2027
  purposeArray: Purpose[];
2012
2028
  circumstanceArray: Circumstance[];
2013
2029
  propertyId: string;
@@ -2017,9 +2033,10 @@ declare namespace JUHUU {
2017
2033
  reservationOfferArray: Offer[];
2018
2034
  iconLight: string | null;
2019
2035
  iconDark: string | null;
2020
- address: Address;
2021
- termId: string;
2022
- timeZone: TimeZone;
2036
+ address: Address | null;
2037
+ termId: string | null;
2038
+ timeZone: TimeZone | null;
2039
+ version: number;
2023
2040
  };
2024
2041
  export interface RentableDeviceGroup extends Base {
2025
2042
  type: "rentableDeviceGroup";
@@ -2259,7 +2276,7 @@ declare namespace JUHUU {
2259
2276
  version: number;
2260
2277
  deviceTemplateId: string;
2261
2278
  source: "fluctuo" | null;
2262
- location: GeoPoint;
2279
+ location: GeoPoint | null;
2263
2280
  fuel: {
2264
2281
  type: FuelType;
2265
2282
  level: number;
@@ -2441,7 +2458,7 @@ declare namespace JUHUU {
2441
2458
  type Object = {
2442
2459
  id: string;
2443
2460
  readonly object: "deviceTemplate";
2444
- productId: string;
2461
+ productId: string | null;
2445
2462
  name: string;
2446
2463
  propertyId: string;
2447
2464
  parameterArray: Parameter[];
package/dist/index.d.ts CHANGED
@@ -557,9 +557,10 @@ declare class SessionService extends Service {
557
557
  export(SessionExportParams: JUHUU.Session.Export.Params, SessionExportOptions?: JUHUU.Session.Export.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Export.Response>>;
558
558
  retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
559
559
  list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
560
+ search(SessionSearchParams: JUHUU.Session.Search.Params, SessionSearchOptions?: JUHUU.Session.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Search.Response>>;
560
561
  update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
561
562
  terminate(SessionTerminateParams: JUHUU.Session.Terminate.Params, SessionTerminateOptions?: JUHUU.Session.Terminate.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Terminate.Response>>;
562
- attachLocation(SessionTerminateParams: JUHUU.Session.AttachLocation.Params, SessionTerminateOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
563
+ attachLocation(SessionAttachLocationParams: JUHUU.Session.AttachLocation.Params, SessionLocationOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
563
564
  attachUser(SessionAttachUserParams: JUHUU.Session.AttachUser.Params, SessionAttachUserOptions?: JUHUU.Session.AttachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachUser.Response>>;
564
565
  detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
565
566
  }
@@ -591,6 +592,7 @@ declare class PaymentsService extends Service {
591
592
  constructor(config: JUHUU.SetupConfig);
592
593
  list(PaymentListParams: JUHUU.Payment.List.Params, PaymentListOptions?: JUHUU.Payment.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.List.Response>>;
593
594
  retrieve(PaymentRetrieveParams: JUHUU.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU.Payment.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Retrieve.Response>>;
595
+ search(PaymentSearchParams: JUHUU.Payment.Search.Params, PaymentSearchOptions?: JUHUU.Payment.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Search.Response>>;
594
596
  tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
595
597
  retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
596
598
  }
@@ -950,6 +952,15 @@ declare namespace JUHUU {
950
952
  property?: JUHUU.Property.Object;
951
953
  };
952
954
  }
955
+ export namespace Search {
956
+ type Params = {
957
+ paymentId?: string;
958
+ };
959
+ type Options = JUHUU.RequestOptions;
960
+ type Response = {
961
+ session: JUHUU.Session.Object;
962
+ };
963
+ }
953
964
  export namespace List {
954
965
  type Params = {
955
966
  propertyId?: string;
@@ -1731,8 +1742,6 @@ declare namespace JUHUU {
1731
1742
  iconLight: string | null;
1732
1743
  iconDark: string | null;
1733
1744
  version: number;
1734
- deviceIconLight: string | null;
1735
- deviceIconDark: string | null;
1736
1745
  colorScheme: ColorScheme;
1737
1746
  contactUrl: string | null;
1738
1747
  };
@@ -1958,6 +1967,15 @@ declare namespace JUHUU {
1958
1967
  property?: JUHUU.Property.Object;
1959
1968
  };
1960
1969
  }
1970
+ namespace Search {
1971
+ type Params = {
1972
+ providerPaymentId?: string;
1973
+ };
1974
+ type Options = JUHUU.RequestOptions;
1975
+ type Response = {
1976
+ payment: JUHUU.Payment.Object;
1977
+ };
1978
+ }
1961
1979
  namespace List {
1962
1980
  type Params = {
1963
1981
  propertyId?: string;
@@ -2004,10 +2022,8 @@ declare namespace JUHUU {
2004
2022
  readonly object: "location";
2005
2023
  logoLight: string | null;
2006
2024
  logoDark: string | null;
2007
- location: GeoPoint;
2008
- altitudeRange: [number, number];
2009
- invalidAt: Date;
2010
- utilization: Utilization | null;
2025
+ location: GeoPoint | null;
2026
+ invalidAt: Date | null;
2011
2027
  purposeArray: Purpose[];
2012
2028
  circumstanceArray: Circumstance[];
2013
2029
  propertyId: string;
@@ -2017,9 +2033,10 @@ declare namespace JUHUU {
2017
2033
  reservationOfferArray: Offer[];
2018
2034
  iconLight: string | null;
2019
2035
  iconDark: string | null;
2020
- address: Address;
2021
- termId: string;
2022
- timeZone: TimeZone;
2036
+ address: Address | null;
2037
+ termId: string | null;
2038
+ timeZone: TimeZone | null;
2039
+ version: number;
2023
2040
  };
2024
2041
  export interface RentableDeviceGroup extends Base {
2025
2042
  type: "rentableDeviceGroup";
@@ -2259,7 +2276,7 @@ declare namespace JUHUU {
2259
2276
  version: number;
2260
2277
  deviceTemplateId: string;
2261
2278
  source: "fluctuo" | null;
2262
- location: GeoPoint;
2279
+ location: GeoPoint | null;
2263
2280
  fuel: {
2264
2281
  type: FuelType;
2265
2282
  level: number;
@@ -2441,7 +2458,7 @@ declare namespace JUHUU {
2441
2458
  type Object = {
2442
2459
  id: string;
2443
2460
  readonly object: "deviceTemplate";
2444
- productId: string;
2461
+ productId: string | null;
2445
2462
  name: string;
2446
2463
  propertyId: string;
2447
2464
  parameterArray: Parameter[];
package/dist/index.js CHANGED
@@ -362,6 +362,21 @@ var SessionService = class extends Service {
362
362
  SessionListOptions
363
363
  );
364
364
  }
365
+ async search(SessionSearchParams, SessionSearchOptions) {
366
+ const queryArray = [];
367
+ if (SessionSearchParams.paymentId !== void 0) {
368
+ queryArray.push("paymentId=" + SessionSearchParams.paymentId);
369
+ }
370
+ return await super.sendRequest(
371
+ {
372
+ method: "GET",
373
+ url: "sessions/search?" + queryArray.join("&"),
374
+ body: void 0,
375
+ authenticationNotOptional: true
376
+ },
377
+ SessionSearchOptions
378
+ );
379
+ }
365
380
  async update(SessionUpdateParams, SessionUpdateOptions) {
366
381
  return await super.sendRequest(
367
382
  {
@@ -388,17 +403,17 @@ var SessionService = class extends Service {
388
403
  SessionTerminateOptions
389
404
  );
390
405
  }
391
- async attachLocation(SessionTerminateParams, SessionTerminateOptions) {
406
+ async attachLocation(SessionAttachLocationParams, SessionLocationOptions) {
392
407
  return await super.sendRequest(
393
408
  {
394
- method: "PATCH",
395
- url: "sessions/" + SessionTerminateParams.sessionId + "/attachLocation",
409
+ method: "POST",
410
+ url: "sessions/" + SessionAttachLocationParams.sessionId + "/location",
396
411
  body: {
397
- locationId: SessionTerminateParams.locationId
412
+ locationId: SessionAttachLocationParams.locationId
398
413
  },
399
414
  authenticationNotOptional: true
400
415
  },
401
- SessionTerminateOptions
416
+ SessionLocationOptions
402
417
  );
403
418
  }
404
419
  async attachUser(SessionAttachUserParams, SessionAttachUserOptions) {
@@ -697,6 +712,23 @@ var PaymentsService = class extends Service {
697
712
  authenticationNotOptional: true
698
713
  });
699
714
  }
715
+ async search(PaymentSearchParams, PaymentSearchOptions) {
716
+ const queryArray = [];
717
+ if (PaymentSearchParams.providerPaymentId !== void 0) {
718
+ queryArray.push(
719
+ "providerPaymentId=" + PaymentSearchParams.providerPaymentId
720
+ );
721
+ }
722
+ return await super.sendRequest(
723
+ {
724
+ method: "GET",
725
+ url: "payments/search?" + queryArray.join("&"),
726
+ body: void 0,
727
+ authenticationNotOptional: true
728
+ },
729
+ PaymentSearchOptions
730
+ );
731
+ }
700
732
  async tokens(PaymentTokensParams, PaymentTokensOptions) {
701
733
  return await super.sendRequest(
702
734
  {
package/dist/index.mjs CHANGED
@@ -318,6 +318,21 @@ var SessionService = class extends Service {
318
318
  SessionListOptions
319
319
  );
320
320
  }
321
+ async search(SessionSearchParams, SessionSearchOptions) {
322
+ const queryArray = [];
323
+ if (SessionSearchParams.paymentId !== void 0) {
324
+ queryArray.push("paymentId=" + SessionSearchParams.paymentId);
325
+ }
326
+ return await super.sendRequest(
327
+ {
328
+ method: "GET",
329
+ url: "sessions/search?" + queryArray.join("&"),
330
+ body: void 0,
331
+ authenticationNotOptional: true
332
+ },
333
+ SessionSearchOptions
334
+ );
335
+ }
321
336
  async update(SessionUpdateParams, SessionUpdateOptions) {
322
337
  return await super.sendRequest(
323
338
  {
@@ -344,17 +359,17 @@ var SessionService = class extends Service {
344
359
  SessionTerminateOptions
345
360
  );
346
361
  }
347
- async attachLocation(SessionTerminateParams, SessionTerminateOptions) {
362
+ async attachLocation(SessionAttachLocationParams, SessionLocationOptions) {
348
363
  return await super.sendRequest(
349
364
  {
350
- method: "PATCH",
351
- url: "sessions/" + SessionTerminateParams.sessionId + "/attachLocation",
365
+ method: "POST",
366
+ url: "sessions/" + SessionAttachLocationParams.sessionId + "/location",
352
367
  body: {
353
- locationId: SessionTerminateParams.locationId
368
+ locationId: SessionAttachLocationParams.locationId
354
369
  },
355
370
  authenticationNotOptional: true
356
371
  },
357
- SessionTerminateOptions
372
+ SessionLocationOptions
358
373
  );
359
374
  }
360
375
  async attachUser(SessionAttachUserParams, SessionAttachUserOptions) {
@@ -653,6 +668,23 @@ var PaymentsService = class extends Service {
653
668
  authenticationNotOptional: true
654
669
  });
655
670
  }
671
+ async search(PaymentSearchParams, PaymentSearchOptions) {
672
+ const queryArray = [];
673
+ if (PaymentSearchParams.providerPaymentId !== void 0) {
674
+ queryArray.push(
675
+ "providerPaymentId=" + PaymentSearchParams.providerPaymentId
676
+ );
677
+ }
678
+ return await super.sendRequest(
679
+ {
680
+ method: "GET",
681
+ url: "payments/search?" + queryArray.join("&"),
682
+ body: void 0,
683
+ authenticationNotOptional: true
684
+ },
685
+ PaymentSearchOptions
686
+ );
687
+ }
656
688
  async tokens(PaymentTokensParams, PaymentTokensOptions) {
657
689
  return await super.sendRequest(
658
690
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.58",
3
+ "version": "1.2.60",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",