connected-spaces-platform.web 4.12.1 → 4.14.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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +10 -4
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +12 -2
- package/connectedspacesplatform.js +53 -3
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +99 -3
- package/package.json +1 -1
- package/README.md +0 -48
|
Binary file
|
|
@@ -5270,7 +5270,7 @@ export declare namespace Systems {
|
|
|
5270
5270
|
export declare namespace Systems {
|
|
5271
5271
|
/**
|
|
5272
5272
|
@ingroup Space System
|
|
5273
|
-
* @description Data representation of roles for a group of invited users and the
|
|
5273
|
+
* @description Data representation of roles for a group of invited users, the email link and the destination link to be included in the invite emails
|
|
5274
5274
|
*/
|
|
5275
5275
|
class InviteUserRoleInfoCollection extends NativeClassWrapper implements INativeResource {
|
|
5276
5276
|
/** @internal */
|
|
@@ -5280,6 +5280,8 @@ export declare namespace Systems {
|
|
|
5280
5280
|
delete(): void;
|
|
5281
5281
|
get emailLinkUrl(): string;
|
|
5282
5282
|
set emailLinkUrl(value: string);
|
|
5283
|
+
get signupUrl(): string;
|
|
5284
|
+
set signupUrl(value: string);
|
|
5283
5285
|
get inviteUserRoleInfos(): Common.Array<Systems.InviteUserRoleInfo>;
|
|
5284
5286
|
set inviteUserRoleInfos(value: Common.Array<Systems.InviteUserRoleInfo>);
|
|
5285
5287
|
}
|
|
@@ -9328,9 +9330,10 @@ export declare namespace Systems {
|
|
|
9328
9330
|
* @param isModeratorRole - If present and true sets the user's role in the space to "moderator", pass false or
|
|
9329
9331
|
* nullptr to leave role as default
|
|
9330
9332
|
* @param emailLinkUrl - Link that will be provided in the invite email
|
|
9333
|
+
* @param signupUrl - Destination link that will be provided in the invite email
|
|
9331
9334
|
* @param callback - Callback when asynchronous task finishes
|
|
9332
9335
|
*/
|
|
9333
|
-
inviteToSpace(spaceId: string, email: string, isModeratorRole: boolean | null, emailLinkUrl: string | null): Promise<Systems.NullResult>;
|
|
9336
|
+
inviteToSpace(spaceId: string, email: string, isModeratorRole: boolean | null, emailLinkUrl: string | null, signupUrl: string | null): Promise<Systems.NullResult>;
|
|
9334
9337
|
/**
|
|
9335
9338
|
* @description Invites all the given emails to a specific space.
|
|
9336
9339
|
* @param space - Space to invite to
|
|
@@ -9996,6 +9999,13 @@ export declare namespace Systems {
|
|
|
9996
9999
|
* @param callback - Callback to call when a response is received
|
|
9997
10000
|
*/
|
|
9998
10001
|
getAgoraUserToken(params: Systems.AgoraUserTokenParams): Promise<Systems.AgoraUserTokenResult>;
|
|
10002
|
+
/**
|
|
10003
|
+
* @description Re-send user verification email
|
|
10004
|
+
* @param inEmail - User's email address
|
|
10005
|
+
* @param inRedirectUrl - URL to redirect user to after they have registered
|
|
10006
|
+
* @param callback - Callback to call when response is received
|
|
10007
|
+
*/
|
|
10008
|
+
resendVerificationEmail(email: string, redirectUrl: string | null): Promise<Systems.NullResult>;
|
|
9999
10009
|
}
|
|
10000
10010
|
}
|
|
10001
10011
|
export declare namespace Common {
|
|
@@ -12996,7 +12996,7 @@ export class CSPFoundation {
|
|
|
12996
12996
|
(function (Systems) {
|
|
12997
12997
|
/**
|
|
12998
12998
|
@ingroup Space System
|
|
12999
|
-
* @description Data representation of roles for a group of invited users and the
|
|
12999
|
+
* @description Data representation of roles for a group of invited users, the email link and the destination link to be included in the invite emails
|
|
13000
13000
|
*/
|
|
13001
13001
|
class InviteUserRoleInfoCollection extends NativeClassWrapper {
|
|
13002
13002
|
/** @internal */
|
|
@@ -13028,6 +13028,13 @@ export class CSPFoundation {
|
|
|
13028
13028
|
set emailLinkUrl(value) {
|
|
13029
13029
|
Module.ccall("csp_systems_InviteUserRoleInfoCollection__Set_EmailLinkUrl", "void", ["number", "string"], [this.pointer, value]);
|
|
13030
13030
|
}
|
|
13031
|
+
get signupUrl() {
|
|
13032
|
+
let _result = Module.ccall("csp_systems_InviteUserRoleInfoCollection__Get_SignupUrl", "string", ["number"], [this.pointer]);
|
|
13033
|
+
return _result;
|
|
13034
|
+
}
|
|
13035
|
+
set signupUrl(value) {
|
|
13036
|
+
Module.ccall("csp_systems_InviteUserRoleInfoCollection__Set_SignupUrl", "void", ["number", "string"], [this.pointer, value]);
|
|
13037
|
+
}
|
|
13031
13038
|
get inviteUserRoleInfos() {
|
|
13032
13039
|
const _ptr = Module._malloc(8);
|
|
13033
13040
|
Module.ccall("csp_systems_InviteUserRoleInfoCollection__Get_InviteUserRoleInfos", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
@@ -21571,10 +21578,12 @@ export class CSPFoundation {
|
|
|
21571
21578
|
var isDiscoverablePointer = 0;
|
|
21572
21579
|
if (isDiscoverable != null) {
|
|
21573
21580
|
isDiscoverablePointer = Module._malloc(4);
|
|
21581
|
+
Module.setValue(isDiscoverablePointer, isDiscoverable ? 1 : 0, "i32");
|
|
21574
21582
|
}
|
|
21575
21583
|
var requiresInvitePointer = 0;
|
|
21576
21584
|
if (requiresInvite != null) {
|
|
21577
21585
|
requiresInvitePointer = Module._malloc(4);
|
|
21586
|
+
Module.setValue(requiresInvitePointer, requiresInvite ? 1 : 0, "i32");
|
|
21578
21587
|
}
|
|
21579
21588
|
var resultsSkipPointer = 0;
|
|
21580
21589
|
if (resultsSkip != null) {
|
|
@@ -21696,9 +21705,10 @@ export class CSPFoundation {
|
|
|
21696
21705
|
* @param isModeratorRole - If present and true sets the user's role in the space to "moderator", pass false or
|
|
21697
21706
|
* nullptr to leave role as default
|
|
21698
21707
|
* @param emailLinkUrl - Link that will be provided in the invite email
|
|
21708
|
+
* @param signupUrl - Destination link that will be provided in the invite email
|
|
21699
21709
|
* @param callback - Callback when asynchronous task finishes
|
|
21700
21710
|
*/
|
|
21701
|
-
async inviteToSpace(spaceId, email, isModeratorRole, emailLinkUrl) {
|
|
21711
|
+
async inviteToSpace(spaceId, email, isModeratorRole, emailLinkUrl, signupUrl) {
|
|
21702
21712
|
var _resolve;
|
|
21703
21713
|
var _promise = new Promise((_r) => {
|
|
21704
21714
|
_resolve = _r;
|
|
@@ -21717,13 +21727,24 @@ export class CSPFoundation {
|
|
|
21717
21727
|
var isModeratorRolePointer = 0;
|
|
21718
21728
|
if (isModeratorRole != null) {
|
|
21719
21729
|
isModeratorRolePointer = Module._malloc(4);
|
|
21730
|
+
Module.setValue(isModeratorRolePointer, isModeratorRole ? 1 : 0, "i32");
|
|
21720
21731
|
}
|
|
21721
|
-
Module.ccall("
|
|
21732
|
+
Module.ccall("csp_systems_SpaceSystem_InviteToSpace_void_StringRC_StringRC_boolRC_StringRC_StringRC_NullResultCallback", "void", [
|
|
21733
|
+
"number",
|
|
21734
|
+
"string",
|
|
21735
|
+
"string",
|
|
21736
|
+
"boolean",
|
|
21737
|
+
"string",
|
|
21738
|
+
"string",
|
|
21739
|
+
"number",
|
|
21740
|
+
"number",
|
|
21741
|
+
], [
|
|
21722
21742
|
this.pointer,
|
|
21723
21743
|
spaceId,
|
|
21724
21744
|
email,
|
|
21725
21745
|
isModeratorRolePointer,
|
|
21726
21746
|
emailLinkUrl,
|
|
21747
|
+
signupUrl,
|
|
21727
21748
|
_callbackPtr,
|
|
21728
21749
|
0,
|
|
21729
21750
|
]);
|
|
@@ -22600,6 +22621,7 @@ export class CSPFoundation {
|
|
|
22600
22621
|
var allTagsPointer = 0;
|
|
22601
22622
|
if (allTags != null) {
|
|
22602
22623
|
allTagsPointer = Module._malloc(4);
|
|
22624
|
+
Module.setValue(allTagsPointer, allTags ? 1 : 0, "i32");
|
|
22603
22625
|
}
|
|
22604
22626
|
var skipPointer = 0;
|
|
22605
22627
|
if (skip != null) {
|
|
@@ -23361,6 +23383,7 @@ export class CSPFoundation {
|
|
|
23361
23383
|
var userHasVerifiedAgePointer = 0;
|
|
23362
23384
|
if (userHasVerifiedAge != null) {
|
|
23363
23385
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
23386
|
+
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge ? 1 : 0, "i32");
|
|
23364
23387
|
}
|
|
23365
23388
|
Module.ccall("csp_systems_UserSystem_Login_void_StringRC_StringRC_StringRC_boolRC_LoginStateResultCallback", "void", ["number", "string", "string", "string", "boolean", "number", "number"], [
|
|
23366
23389
|
this.pointer,
|
|
@@ -23427,6 +23450,7 @@ export class CSPFoundation {
|
|
|
23427
23450
|
var userHasVerifiedAgePointer = 0;
|
|
23428
23451
|
if (userHasVerifiedAge != null) {
|
|
23429
23452
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
23453
|
+
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge ? 1 : 0, "i32");
|
|
23430
23454
|
}
|
|
23431
23455
|
Module.ccall("csp_systems_UserSystem_LoginAsGuest_void_boolRC_LoginStateResultCallback", "void", ["number", "boolean", "number", "number"], [this.pointer, userHasVerifiedAgePointer, _callbackPtr, 0]);
|
|
23432
23456
|
if (userHasVerifiedAgePointer) {
|
|
@@ -23504,6 +23528,7 @@ export class CSPFoundation {
|
|
|
23504
23528
|
var userHasVerifiedAgePointer = 0;
|
|
23505
23529
|
if (userHasVerifiedAge != null) {
|
|
23506
23530
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
23531
|
+
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge ? 1 : 0, "i32");
|
|
23507
23532
|
}
|
|
23508
23533
|
Module.ccall("csp_systems_UserSystem_LoginToThirdPartyAuthenticationProvider_void_StringRC_StringRC_boolRC_LoginStateResultCallback", "void", ["number", "string", "string", "boolean", "number", "number"], [
|
|
23509
23534
|
this.pointer,
|
|
@@ -23874,6 +23899,31 @@ export class CSPFoundation {
|
|
|
23874
23899
|
Module.ccall("csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_UserTokenResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
|
|
23875
23900
|
return _promise;
|
|
23876
23901
|
}
|
|
23902
|
+
/**
|
|
23903
|
+
* @description Re-send user verification email
|
|
23904
|
+
* @param inEmail - User's email address
|
|
23905
|
+
* @param inRedirectUrl - URL to redirect user to after they have registered
|
|
23906
|
+
* @param callback - Callback to call when response is received
|
|
23907
|
+
*/
|
|
23908
|
+
async resendVerificationEmail(email, redirectUrl) {
|
|
23909
|
+
var _resolve;
|
|
23910
|
+
var _promise = new Promise((_r) => {
|
|
23911
|
+
_resolve = _r;
|
|
23912
|
+
});
|
|
23913
|
+
var _callbackPtr;
|
|
23914
|
+
var _callback = (_stateObject__, result) => {
|
|
23915
|
+
var _resultPtr = getNativePointer(result);
|
|
23916
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
23917
|
+
if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
|
|
23918
|
+
return;
|
|
23919
|
+
}
|
|
23920
|
+
_resolve(_resultInstance);
|
|
23921
|
+
Module.removeFunction(_callbackPtr);
|
|
23922
|
+
};
|
|
23923
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
23924
|
+
Module.ccall("csp_systems_UserSystem_ResendVerificationEmail_void_StringRC_StringRC_NullResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, email, redirectUrl, _callbackPtr, 0]);
|
|
23925
|
+
return _promise;
|
|
23926
|
+
}
|
|
23877
23927
|
}
|
|
23878
23928
|
Systems.UserSystem = UserSystem;
|
|
23879
23929
|
})(Systems || (Systems = {}));
|