connected-spaces-platform.web 4.10.1 → 4.10.5
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/Debug/ConnectedSpacesPlatform_WASM.js +21 -7
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +9 -37
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +16 -4
- package/connectedspacesplatform.js +60 -5
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +125 -9
- package/package.json +1 -1
|
Binary file
|
|
@@ -3324,6 +3324,18 @@ export declare namespace Systems {
|
|
|
3324
3324
|
set userRole(value: Systems.SpaceUserRole);
|
|
3325
3325
|
}
|
|
3326
3326
|
}
|
|
3327
|
+
export declare namespace Systems {
|
|
3328
|
+
class InviteUserRoleInfoCollection extends NativeClassWrapper implements INativeResource {
|
|
3329
|
+
constructor(pointer: NativePointer);
|
|
3330
|
+
static create(): InviteUserRoleInfoCollection;
|
|
3331
|
+
static create_other(other: Systems.InviteUserRoleInfoCollection): InviteUserRoleInfoCollection;
|
|
3332
|
+
delete(): void;
|
|
3333
|
+
get emailLinkUrl(): string;
|
|
3334
|
+
set emailLinkUrl(value: string);
|
|
3335
|
+
get inviteUserRoleInfos(): Common.Array<Systems.InviteUserRoleInfo>;
|
|
3336
|
+
set inviteUserRoleInfos(value: Common.Array<Systems.InviteUserRoleInfo>);
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3327
3339
|
export declare namespace Systems {
|
|
3328
3340
|
class OlyAnchorPosition extends NativeClassWrapper implements INativeResource {
|
|
3329
3341
|
constructor(pointer: NativePointer);
|
|
@@ -4529,8 +4541,8 @@ export declare namespace Systems {
|
|
|
4529
4541
|
exitSpace(): void;
|
|
4530
4542
|
isInSpace(): boolean;
|
|
4531
4543
|
getCurrentSpace(): Systems.Space;
|
|
4532
|
-
createSpace(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers:
|
|
4533
|
-
createSpaceWithBuffer(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers:
|
|
4544
|
+
createSpace(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers: Systems.InviteUserRoleInfoCollection | null, metadata: Common.Map<string, string>, fileThumbnail: Systems.FileAssetDataSource | null): Promise<Systems.SpaceResult>;
|
|
4545
|
+
createSpaceWithBuffer(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers: Systems.InviteUserRoleInfoCollection | null, metadata: Common.Map<string, string>, thumbnail: Systems.BufferAssetDataSource): Promise<Systems.SpaceResult>;
|
|
4534
4546
|
updateSpace(spaceId: string, name: string | null, description: string | null, type: Systems.SpaceAttributes | null): Promise<Systems.BasicSpaceResult>;
|
|
4535
4547
|
deleteSpace(spaceId: string): Promise<Systems.NullResult>;
|
|
4536
4548
|
getSpaces(): Promise<Systems.SpacesResult>;
|
|
@@ -4538,8 +4550,8 @@ export declare namespace Systems {
|
|
|
4538
4550
|
getSpacesByIds(requestedSpaceIDs: Common.Array<string>): Promise<Systems.SpacesResult>;
|
|
4539
4551
|
getSpacesForUserId(userId: string): Promise<Systems.SpacesResult>;
|
|
4540
4552
|
getSpace(spaceId: string): Promise<Systems.SpaceResult>;
|
|
4541
|
-
inviteToSpace(spaceId: string, email: string, isModeratorRole: boolean | null): Promise<Systems.NullResult>;
|
|
4542
|
-
bulkInviteToSpace(spaceId: string, inviteUsers:
|
|
4553
|
+
inviteToSpace(spaceId: string, email: string, isModeratorRole: boolean | null, emailLinkUrl: string | null): Promise<Systems.NullResult>;
|
|
4554
|
+
bulkInviteToSpace(spaceId: string, inviteUsers: Systems.InviteUserRoleInfoCollection): Promise<Systems.NullResult>;
|
|
4543
4555
|
getPendingUserInvites(spaceId: string): Promise<Systems.PendingInvitesResult>;
|
|
4544
4556
|
removeUserFromSpace(spaceId: string, userId: string): Promise<Systems.NullResult>;
|
|
4545
4557
|
addUserToSpace(spaceId: string, userId: string): Promise<Systems.SpaceResult>;
|
|
@@ -823,6 +823,11 @@ function csp_systems_InviteUserRoleInfoFactory(nativePointer) {
|
|
|
823
823
|
}
|
|
824
824
|
ProxyClassFactories["csp_systems_InviteUserRoleInfo"] =
|
|
825
825
|
csp_systems_InviteUserRoleInfoFactory;
|
|
826
|
+
function csp_systems_InviteUserRoleInfoCollectionFactory(nativePointer) {
|
|
827
|
+
return new Systems.InviteUserRoleInfoCollection(nativePointer);
|
|
828
|
+
}
|
|
829
|
+
ProxyClassFactories["csp_systems_InviteUserRoleInfoCollection"] =
|
|
830
|
+
csp_systems_InviteUserRoleInfoCollectionFactory;
|
|
826
831
|
function csp_systems_OlyAnchorPositionFactory(nativePointer) {
|
|
827
832
|
return new Systems.OlyAnchorPosition(nativePointer);
|
|
828
833
|
}
|
|
@@ -11307,6 +11312,48 @@ export class CSPFoundation {
|
|
|
11307
11312
|
}
|
|
11308
11313
|
Systems.InviteUserRoleInfo = InviteUserRoleInfo;
|
|
11309
11314
|
})(Systems || (Systems = {}));
|
|
11315
|
+
(function (Systems) {
|
|
11316
|
+
class InviteUserRoleInfoCollection extends NativeClassWrapper {
|
|
11317
|
+
constructor(pointer) {
|
|
11318
|
+
super(pointer);
|
|
11319
|
+
}
|
|
11320
|
+
static create() {
|
|
11321
|
+
var _ptr = Module._malloc(8);
|
|
11322
|
+
Module.ccall("csp_systems_InviteUserRoleInfoCollection_Ctor", "void", ["number"], [_ptr]);
|
|
11323
|
+
var _nPtr = getNativePointer(_ptr);
|
|
11324
|
+
return new InviteUserRoleInfoCollection(_nPtr);
|
|
11325
|
+
}
|
|
11326
|
+
static create_other(other) {
|
|
11327
|
+
var _ptr = Module._malloc(8);
|
|
11328
|
+
Module.ccall("csp_systems_InviteUserRoleInfoCollection_Ctor_InviteUserRoleInfoCollectionRC", "void", ["number", "number"], [_ptr, other.pointer]);
|
|
11329
|
+
var _nPtr = getNativePointer(_ptr);
|
|
11330
|
+
return new InviteUserRoleInfoCollection(_nPtr);
|
|
11331
|
+
}
|
|
11332
|
+
delete() {
|
|
11333
|
+
if (this.ownsPointer && !this.disposed) {
|
|
11334
|
+
Module.ccall("csp_systems_InviteUserRoleInfoCollection_Dtor", "void", ["number"], [this.pointer]);
|
|
11335
|
+
this.disposed = true;
|
|
11336
|
+
}
|
|
11337
|
+
}
|
|
11338
|
+
get emailLinkUrl() {
|
|
11339
|
+
let _result = Module.ccall("csp_systems_InviteUserRoleInfoCollection__Get_EmailLinkUrl", "string", ["number"], [this.pointer]);
|
|
11340
|
+
return _result;
|
|
11341
|
+
}
|
|
11342
|
+
set emailLinkUrl(value) {
|
|
11343
|
+
Module.ccall("csp_systems_InviteUserRoleInfoCollection__Set_EmailLinkUrl", "void", ["number", "string"], [this.pointer, value]);
|
|
11344
|
+
}
|
|
11345
|
+
get inviteUserRoleInfos() {
|
|
11346
|
+
const _ptr = Module._malloc(8);
|
|
11347
|
+
Module.ccall("csp_systems_InviteUserRoleInfoCollection__Get_InviteUserRoleInfos", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
11348
|
+
const _nPtr = getNativePointer(_ptr);
|
|
11349
|
+
return new Common.Array(_nPtr, csp_systems_InviteUserRoleInfoFactory, "csp_systems_InviteUserRoleInfo");
|
|
11350
|
+
}
|
|
11351
|
+
set inviteUserRoleInfos(value) {
|
|
11352
|
+
Module.ccall("csp_systems_InviteUserRoleInfoCollection__Set_InviteUserRoleInfos", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
11353
|
+
}
|
|
11354
|
+
}
|
|
11355
|
+
Systems.InviteUserRoleInfoCollection = InviteUserRoleInfoCollection;
|
|
11356
|
+
})(Systems || (Systems = {}));
|
|
11310
11357
|
(function (Systems) {
|
|
11311
11358
|
class OlyAnchorPosition extends NativeClassWrapper {
|
|
11312
11359
|
constructor(pointer) {
|
|
@@ -16876,7 +16923,7 @@ export class CSPFoundation {
|
|
|
16876
16923
|
Module.removeFunction(_callbackPtr);
|
|
16877
16924
|
};
|
|
16878
16925
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
16879
|
-
Module.ccall("
|
|
16926
|
+
Module.ccall("csp_systems_SpaceSystem_CreateSpace_void_StringRC_StringRC_SpaceAttributes_InviteUserRoleInfoCollectionRC_MapRC_FileAssetDataSourceRC_SpaceResultCallback", "void", [
|
|
16880
16927
|
"number",
|
|
16881
16928
|
"string",
|
|
16882
16929
|
"string",
|
|
@@ -16915,7 +16962,7 @@ export class CSPFoundation {
|
|
|
16915
16962
|
Module.removeFunction(_callbackPtr);
|
|
16916
16963
|
};
|
|
16917
16964
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
16918
|
-
Module.ccall("
|
|
16965
|
+
Module.ccall("csp_systems_SpaceSystem_CreateSpaceWithBuffer_void_StringRC_StringRC_SpaceAttributes_InviteUserRoleInfoCollectionRC_MapRC_BufferAssetDataSourceRC_SpaceResultCallback", "void", [
|
|
16919
16966
|
"number",
|
|
16920
16967
|
"string",
|
|
16921
16968
|
"string",
|
|
@@ -17135,7 +17182,7 @@ export class CSPFoundation {
|
|
|
17135
17182
|
Module.ccall("csp_systems_SpaceSystem_GetSpace_void_StringRC_SpaceResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
|
|
17136
17183
|
return _promise;
|
|
17137
17184
|
}
|
|
17138
|
-
async inviteToSpace(spaceId, email, isModeratorRole) {
|
|
17185
|
+
async inviteToSpace(spaceId, email, isModeratorRole, emailLinkUrl) {
|
|
17139
17186
|
var _resolve;
|
|
17140
17187
|
var _promise = new Promise((_r) => {
|
|
17141
17188
|
_resolve = _r;
|
|
@@ -17156,7 +17203,15 @@ export class CSPFoundation {
|
|
|
17156
17203
|
isModeratorRolePointer = Module._malloc(4);
|
|
17157
17204
|
Module.setValue(isModeratorRolePointer, isModeratorRole, "i32");
|
|
17158
17205
|
}
|
|
17159
|
-
Module.ccall("
|
|
17206
|
+
Module.ccall("csp_systems_SpaceSystem_InviteToSpace_void_StringRC_StringRC_boolRC_StringRC_NullResultCallback", "void", ["number", "string", "string", "boolean", "string", "number", "number"], [
|
|
17207
|
+
this.pointer,
|
|
17208
|
+
spaceId,
|
|
17209
|
+
email,
|
|
17210
|
+
isModeratorRolePointer,
|
|
17211
|
+
emailLinkUrl,
|
|
17212
|
+
_callbackPtr,
|
|
17213
|
+
0,
|
|
17214
|
+
]);
|
|
17160
17215
|
if (isModeratorRolePointer) {
|
|
17161
17216
|
Module._free(isModeratorRolePointer);
|
|
17162
17217
|
}
|
|
@@ -17178,7 +17233,7 @@ export class CSPFoundation {
|
|
|
17178
17233
|
Module.removeFunction(_callbackPtr);
|
|
17179
17234
|
};
|
|
17180
17235
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
17181
|
-
Module.ccall("
|
|
17236
|
+
Module.ccall("csp_systems_SpaceSystem_BulkInviteToSpace_void_StringRC_InviteUserRoleInfoCollectionRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, spaceId, inviteUsers.pointer, _callbackPtr, 0]);
|
|
17182
17237
|
return _promise;
|
|
17183
17238
|
}
|
|
17184
17239
|
async getPendingUserInvites(spaceId) {
|