@smplrspace/smplr-loader 2.28.0 → 2.28.1-beta.1

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.
@@ -278,7 +278,7 @@ export declare interface FurnitureDataLayer<D extends UnknownData = NoData> exte
278
278
  }
279
279
 
280
280
  export declare interface GeojsonSpace {
281
- id: string;
281
+ sid: string;
282
282
  name: string;
283
283
  definition?: object | null;
284
284
  georeference?: object | null;
@@ -683,34 +683,39 @@ export declare class QueryClient {
683
683
  private checkOptions;
684
684
  checkApiConnection(): Promise<string>;
685
685
  getApiVersion(): Promise<string>;
686
- getSpace(id: string, { useCache }?: {
686
+ listSpaces(): Promise<{
687
+ sid: string;
688
+ status: string;
689
+ name: string;
690
+ created_at: string;
691
+ deprecated_id: string;
692
+ }[]>;
693
+ getSpace(spaceId: string, { useCache }?: {
687
694
  useCache?: boolean | undefined;
688
695
  }): Promise<{
696
+ sid: string;
689
697
  status: string;
690
698
  name: string;
691
- id: string;
692
699
  definition?: {} | null | undefined;
693
700
  assetmap?: {} | null | undefined;
694
701
  created_at: string;
695
702
  modified_at: string;
696
703
  embed_image?: string | null | undefined;
697
- short_code?: string | null | undefined;
698
704
  public_link_enabled: boolean;
699
705
  }>;
700
- getSpaceFromCache(id: string): {
706
+ getSpaceFromCache(spaceId: string): {
707
+ sid: string;
701
708
  status: string;
702
709
  name: string;
703
- id: string;
704
710
  definition?: {} | null | undefined;
705
711
  assetmap?: {} | null | undefined;
706
712
  created_at: string;
707
713
  modified_at: string;
708
714
  embed_image?: string | null | undefined;
709
- short_code?: string | null | undefined;
710
715
  public_link_enabled: boolean;
711
716
  };
712
- getAllFurnitureInSpace(id: string): Promise<Furniture[]>;
713
- getAllFurnitureInSpaceFromCache(id: string): Furniture[];
717
+ getAllFurnitureInSpace(spaceId: string): Promise<Furniture[]>;
718
+ getAllFurnitureInSpaceFromCache(spaceId: string): Furniture[];
714
719
  getFurnitureOnLevel({ spaceId, levelIndex }: {
715
720
  spaceId: string;
716
721
  levelIndex: number;
@@ -737,8 +742,8 @@ export declare class QueryClient {
737
742
  furnitureId: string;
738
743
  closed?: boolean;
739
744
  }): SmplrCoord2d[] | null;
740
- getSpaceAssetmap(id: string): Promise<unknown>;
741
- getSpaceAssetmapFromCache(id: string): unknown;
745
+ getSpaceAssetmap(spaceId: string): Promise<unknown>;
746
+ getSpaceAssetmapFromCache(spaceId: string): unknown;
742
747
  getPolylineLength({ line, unit }: {
743
748
  line: SmplrCoord3d[];
744
749
  unit?: 'ft' | 'm' | 'cm' | 'mm';
@@ -821,8 +826,8 @@ export declare class QueryClient {
821
826
  spaceId: string;
822
827
  point: SmplrCoord2d;
823
828
  }): RoomWithHoles | null;
824
- getAllDoorsInSpace(id: string): Promise<Opening[]>;
825
- getAllDoorsInSpaceFromCache(id: string): Opening[];
829
+ getAllDoorsInSpace(spaceId: string): Promise<Opening[]>;
830
+ getAllDoorsInSpaceFromCache(spaceId: string): Opening[];
826
831
  getDoorsOnLevel({ spaceId, levelIndex }: {
827
832
  spaceId: string;
828
833
  levelIndex: number;
@@ -831,8 +836,8 @@ export declare class QueryClient {
831
836
  spaceId: string;
832
837
  levelIndex: number;
833
838
  }): Opening[];
834
- getAllWindowsInSpace(id: string): Promise<Opening[]>;
835
- getAllWindowsInSpaceFromCache(id: string): Opening[];
839
+ getAllWindowsInSpace(spaceId: string): Promise<Opening[]>;
840
+ getAllWindowsInSpaceFromCache(spaceId: string): Opening[];
836
841
  getWindowsOnLevel({ spaceId, levelIndex }: {
837
842
  spaceId: string;
838
843
  levelIndex: number;
@@ -1085,7 +1090,7 @@ declare interface Vector3Coord extends Vector2Coord {
1085
1090
  z: number;
1086
1091
  }
1087
1092
 
1088
- export declare const version = "2.28.0";
1093
+ export declare const version = "2.28.1-beta.1";
1089
1094
 
1090
1095
  declare interface ViewerRendererHandle {
1091
1096
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.28.0",
3
+ "version": "2.28.1-beta.1",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [