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

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,30 +683,35 @@ 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
717
  getAllFurnitureInSpace(id: string): Promise<Furniture[]>;
@@ -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.0";
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.0",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [