bimplus-websdk 1.0.30 → 1.0.32
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 +118 -118
- package/clean +3 -3
- package/dist/bimplus-websdk.js +1 -1
- package/eslint.config.mjs +35 -35
- package/install +3 -3
- package/jsinspect +20 -20
- package/package.json +1 -1
- package/reinstall +4 -4
- package/types/bimplus-websdk.d.ts +4 -2
package/eslint.config.mjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import globals from "globals";
|
|
2
|
-
import js from "@eslint/js";
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
js.configs.recommended,
|
|
6
|
-
// File-pattern specific overrides
|
|
7
|
-
{
|
|
8
|
-
files: ["src/**/*", "test/**/*"],
|
|
9
|
-
rules: {
|
|
10
|
-
semi: ["warn", "always"] // check for missing semicolons at line ends
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
languageOptions: {
|
|
15
|
-
ecmaVersion: 2022,
|
|
16
|
-
sourceType: "module",
|
|
17
|
-
globals: {
|
|
18
|
-
...globals.browser,
|
|
19
|
-
$: true,
|
|
20
|
-
QUnit: true,
|
|
21
|
-
// Uint8Array: true,
|
|
22
|
-
// DataView : true,
|
|
23
|
-
// Promise: true,
|
|
24
|
-
// ArrayBuffer: true,
|
|
25
|
-
// needed for webpack files
|
|
26
|
-
define: true,
|
|
27
|
-
require: true,
|
|
28
|
-
module: true,
|
|
29
|
-
__dirname: true,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
plugins: {},
|
|
33
|
-
rules: {},
|
|
34
|
-
},
|
|
35
|
-
];
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import js from "@eslint/js";
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
js.configs.recommended,
|
|
6
|
+
// File-pattern specific overrides
|
|
7
|
+
{
|
|
8
|
+
files: ["src/**/*", "test/**/*"],
|
|
9
|
+
rules: {
|
|
10
|
+
semi: ["warn", "always"] // check for missing semicolons at line ends
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
languageOptions: {
|
|
15
|
+
ecmaVersion: 2022,
|
|
16
|
+
sourceType: "module",
|
|
17
|
+
globals: {
|
|
18
|
+
...globals.browser,
|
|
19
|
+
$: true,
|
|
20
|
+
QUnit: true,
|
|
21
|
+
// Uint8Array: true,
|
|
22
|
+
// DataView : true,
|
|
23
|
+
// Promise: true,
|
|
24
|
+
// ArrayBuffer: true,
|
|
25
|
+
// needed for webpack files
|
|
26
|
+
define: true,
|
|
27
|
+
require: true,
|
|
28
|
+
module: true,
|
|
29
|
+
__dirname: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
plugins: {},
|
|
33
|
+
rules: {},
|
|
34
|
+
},
|
|
35
|
+
];
|
package/install
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
yarn install
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
yarn install
|
package/jsinspect
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#install jsinspect
|
|
4
|
-
npm list -g --quiet jsinspect > "/dev/null" 2>&1
|
|
5
|
-
OUT=$?
|
|
6
|
-
if [ ${OUT} != 0 ]
|
|
7
|
-
then
|
|
8
|
-
npm install -g jsinspect
|
|
9
|
-
RET_VAL=$?
|
|
10
|
-
if [ ${RET_VAL} -ne 0 ]
|
|
11
|
-
then
|
|
12
|
-
echo "Error ---> Unable to install \"jsinspect\""
|
|
13
|
-
exit ${RET_VAL}
|
|
14
|
-
fi
|
|
15
|
-
echo "Info ---> \"jsinspect\" has been installed."
|
|
16
|
-
else
|
|
17
|
-
echo "Info ---> \"jsinspect\" already installed."
|
|
18
|
-
fi
|
|
19
|
-
|
|
20
|
-
jsinspect ./src
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
#install jsinspect
|
|
4
|
+
npm list -g --quiet jsinspect > "/dev/null" 2>&1
|
|
5
|
+
OUT=$?
|
|
6
|
+
if [ ${OUT} != 0 ]
|
|
7
|
+
then
|
|
8
|
+
npm install -g jsinspect
|
|
9
|
+
RET_VAL=$?
|
|
10
|
+
if [ ${RET_VAL} -ne 0 ]
|
|
11
|
+
then
|
|
12
|
+
echo "Error ---> Unable to install \"jsinspect\""
|
|
13
|
+
exit ${RET_VAL}
|
|
14
|
+
fi
|
|
15
|
+
echo "Info ---> \"jsinspect\" has been installed."
|
|
16
|
+
else
|
|
17
|
+
echo "Info ---> \"jsinspect\" already installed."
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
jsinspect ./src
|
package/package.json
CHANGED
package/reinstall
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
./clean
|
|
4
|
-
./install
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
./clean
|
|
4
|
+
./install
|
|
@@ -240,6 +240,8 @@ declare module 'bimplus-websdk' {
|
|
|
240
240
|
createdAt?: string;
|
|
241
241
|
modifiedAt?: string;
|
|
242
242
|
author?: Author;
|
|
243
|
+
hyperlinks?: Hyperlink[];
|
|
244
|
+
attachments?: Attachment[];
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
export interface Author {
|
|
@@ -269,7 +271,7 @@ declare module 'bimplus-websdk' {
|
|
|
269
271
|
deleteAttachmentLink(objectId: string,AttachmentLinkId:string): Promise<void>;
|
|
270
272
|
postComment(objectId: string, data: string): Promise<CommentResponse>;
|
|
271
273
|
getComments(objectId: string): Promise<CommentsResponse>;
|
|
272
|
-
postAttachment(objectId: string, data: FormData, uploadProgress
|
|
274
|
+
postAttachment(objectId: string, data: FormData, uploadProgress?: () => void, documentFolderId?: string): Promise<PostAttachmentResponse>;
|
|
273
275
|
getAttachments(objectId: string): Promise<AttachmentResponse>;
|
|
274
276
|
}
|
|
275
277
|
|
|
@@ -369,7 +371,7 @@ declare module 'bimplus-websdk' {
|
|
|
369
371
|
constructor(api: Api);
|
|
370
372
|
delete(id: string): Promise<void>;
|
|
371
373
|
}
|
|
372
|
-
|
|
374
|
+
|
|
373
375
|
export class AttachmentLink {
|
|
374
376
|
id: string;
|
|
375
377
|
name: string;
|