@smart100/spu-web-plugin 0.0.5 → 0.0.7

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/README.md CHANGED
@@ -1 +1,3 @@
1
1
  # @smart100/spu-web-plugin
2
+
3
+ + node >= 18.15.0
package/dist/index.d.ts CHANGED
@@ -17,6 +17,7 @@ interface IAMapLoader {
17
17
  }) => Promise<any>
18
18
  }
19
19
 
20
+ type StorageType = 'storage' | 'storage-1d' | 'storage-3m' | 'storage-1y'
20
21
 
21
22
  type Cope = { width?: number, height?: number } | string | boolean
22
23
 
@@ -45,7 +46,7 @@ interface IUpload {
45
46
  source?: string,
46
47
  datetime?: string | number,
47
48
  storagetype?: StorageType,
48
- onprogress?: (p: number, _checkpoint?: IAny) => void
49
+ onprogress?: (p: number, _checkpoint?: any) => void
49
50
  }
50
51
 
51
52
  interface IUploadService {
@@ -75,10 +76,11 @@ export const getDistance: (p1: [number, number], p2: [number, number]) => Promis
75
76
  export const spuAxios: any
76
77
  // export const spuAxios: AxiosInstance
77
78
  export const apaasAxios: any
79
+ export const spuConfig: any
78
80
  export const downloadService: IDownloadService
79
81
  export const uploadService: IUploadService
80
82
  export const getUniqueid: () => string
81
- export const uuid: () => string
83
+ export const getUuid: () => string
82
84
  export const AMapLoader: IAMapLoader
83
85
  export const getToken: () => string
84
86
  export const getTokenExpires: () => string