@thelllabs/winehaus-sdk 0.0.30 → 0.0.31

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.
@@ -693,6 +693,21 @@ var Api = /** @class */ (function (_super) {
693
693
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
694
694
  },
695
695
  };
696
+ _this.app = {
697
+ /**
698
+ * No description
699
+ *
700
+ * @tags App Loader
701
+ * @name GetAppLoadInfo
702
+ * @request GET:/app
703
+ * @secure
704
+ * @response `200` `AppLoadResponseDto`
705
+ */
706
+ getAppLoadInfo: function (query, params) {
707
+ if (params === void 0) { params = {}; }
708
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, secure: true, format: "json" }, params));
709
+ },
710
+ };
696
711
  _this.admin = {
697
712
  /**
698
713
  * No description
@@ -687,6 +687,21 @@ var Api = /** @class */ (function (_super) {
687
687
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
688
688
  },
689
689
  };
690
+ _this.app = {
691
+ /**
692
+ * No description
693
+ *
694
+ * @tags App Loader
695
+ * @name GetAppLoadInfo
696
+ * @request GET:/app
697
+ * @secure
698
+ * @response `200` `AppLoadResponseDto`
699
+ */
700
+ getAppLoadInfo: function (query, params) {
701
+ if (params === void 0) { params = {}; }
702
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, secure: true, format: "json" }, params));
703
+ },
704
+ };
690
705
  _this.admin = {
691
706
  /**
692
707
  * No description
@@ -27,6 +27,13 @@ export interface AddressEntityPaginatedDto {
27
27
  links?: PaginationLinksDto;
28
28
  meta: PaginationMetaDto;
29
29
  }
30
+ export interface AppLoadResponseDto {
31
+ host: string;
32
+ /** @format uuid */
33
+ tenantId: string;
34
+ /** @example {"logoUrl":"https://winestorage.com/images/logo.png","primaryColor":"#FFFFFF","secondaryColor":"#FFFFFF"} */
35
+ theme: HostThemeDto;
36
+ }
30
37
  export interface CaseEntityDto {
31
38
  /** @format date-time */
32
39
  billingEndDate?: string | null;
@@ -451,6 +458,11 @@ export interface GroupedWineInventoryItemEntityPaginatedDto {
451
458
  links?: PaginationLinksDto;
452
459
  meta: PaginationMetaDto;
453
460
  }
461
+ export interface HostThemeDto {
462
+ logoUrl?: string;
463
+ primaryColor?: string;
464
+ secondaryColor?: string;
465
+ }
454
466
  export interface HttpExceptionDto {
455
467
  /** @example null */
456
468
  data?: object;
@@ -1979,6 +1991,26 @@ export declare namespace Tenants {
1979
1991
  type ResponseBody = AddressEntityDto;
1980
1992
  }
1981
1993
  }
1994
+ export declare namespace App {
1995
+ /**
1996
+ * No description
1997
+ * @tags App Loader
1998
+ * @name GetAppLoadInfo
1999
+ * @request GET:/app
2000
+ * @secure
2001
+ * @response `200` `AppLoadResponseDto`
2002
+ */
2003
+ namespace GetAppLoadInfo {
2004
+ type RequestParams = {};
2005
+ type RequestQuery = {
2006
+ /** @example "subdomain.domain.io" */
2007
+ host?: string;
2008
+ };
2009
+ type RequestBody = never;
2010
+ type RequestHeaders = {};
2011
+ type ResponseBody = AppLoadResponseDto;
2012
+ }
2013
+ }
1982
2014
  export declare namespace Admin {
1983
2015
  /**
1984
2016
  * No description
@@ -4486,6 +4518,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4486
4518
  */
4487
4519
  updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
4488
4520
  };
4521
+ app: {
4522
+ /**
4523
+ * No description
4524
+ *
4525
+ * @tags App Loader
4526
+ * @name GetAppLoadInfo
4527
+ * @request GET:/app
4528
+ * @secure
4529
+ * @response `200` `AppLoadResponseDto`
4530
+ */
4531
+ getAppLoadInfo: (query?: {
4532
+ /** @example "subdomain.domain.io" */
4533
+ host?: string;
4534
+ }, params?: RequestParams) => Promise<AppLoadResponseDto>;
4535
+ };
4489
4536
  admin: {
4490
4537
  /**
4491
4538
  * No description
package/dist/umd/index.ts CHANGED
@@ -19018,6 +19018,21 @@ var Api = /** @class */ (function (_super) {
19018
19018
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
19019
19019
  },
19020
19020
  };
19021
+ _this.app = {
19022
+ /**
19023
+ * No description
19024
+ *
19025
+ * @tags App Loader
19026
+ * @name GetAppLoadInfo
19027
+ * @request GET:/app
19028
+ * @secure
19029
+ * @response `200` `AppLoadResponseDto`
19030
+ */
19031
+ getAppLoadInfo: function (query, params) {
19032
+ if (params === void 0) { params = {}; }
19033
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, secure: true, format: "json" }, params));
19034
+ },
19035
+ };
19021
19036
  _this.admin = {
19022
19037
  /**
19023
19038
  * No description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",