connected-spaces-platform.web 4.30.0 → 4.31.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/README.md +2 -2
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +23 -15
- package/connectedspacesplatform.js +158 -43
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +238 -62
- package/package.json +1 -1
|
Binary file
|
|
@@ -1048,7 +1048,8 @@ export declare namespace Systems {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
export declare namespace Systems {
|
|
1050
1050
|
enum EPointOfInterestType {
|
|
1051
|
-
DEFAULT = 0
|
|
1051
|
+
DEFAULT = 0,
|
|
1052
|
+
SPACE = 1
|
|
1052
1053
|
}
|
|
1053
1054
|
}
|
|
1054
1055
|
export declare namespace Systems {
|
|
@@ -5733,6 +5734,8 @@ export declare namespace Systems {
|
|
|
5733
5734
|
set location(value: Systems.GeoLocation);
|
|
5734
5735
|
get assetCollectionId(): string;
|
|
5735
5736
|
set assetCollectionId(value: string);
|
|
5737
|
+
get spaceId(): string;
|
|
5738
|
+
set spaceId(value: string);
|
|
5736
5739
|
}
|
|
5737
5740
|
}
|
|
5738
5741
|
export declare namespace Systems {
|
|
@@ -9762,15 +9765,15 @@ export declare namespace Systems {
|
|
|
9762
9765
|
constructor(pointer: NativePointer);
|
|
9763
9766
|
static fromSystemBase(baseInstance: Systems.SystemBase): Systems.SequenceSystem;
|
|
9764
9767
|
/**
|
|
9765
|
-
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one.
|
|
9766
|
-
* isn't a creator of the space.
|
|
9768
|
+
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one.
|
|
9769
|
+
* This call will fail if the user isn't a creator of the space.
|
|
9767
9770
|
* @param sequenceKey - The unique grouping name. The suggested convention is: Type:[Id]
|
|
9768
9771
|
* @param referenceType - The type of reference (GroupId, SpaceId etc.)
|
|
9769
9772
|
* @param referenceId - The id of the reference
|
|
9770
9773
|
* @param items - An ordered array of members
|
|
9771
9774
|
* @param callback - Callback to call when a response is received
|
|
9772
9775
|
*/
|
|
9773
|
-
createSequence(sequenceKey: string, referenceType: string, referenceId: string, items: Common.Array<string
|
|
9776
|
+
createSequence(sequenceKey: string, referenceType: string, referenceId: string, items: Common.Array<string>): Promise<Systems.SequenceResult>;
|
|
9774
9777
|
/**
|
|
9775
9778
|
* @description Updates an existing sequence. This call will fail if the user isn't a creator of the space.
|
|
9776
9779
|
* @param sequenceKey - The unique grouping name. The suggested convention is: Type:[Id]
|
|
@@ -9779,14 +9782,14 @@ export declare namespace Systems {
|
|
|
9779
9782
|
* @param items - An ordered array of members
|
|
9780
9783
|
* @param callback - Callback to call when a response is received
|
|
9781
9784
|
*/
|
|
9782
|
-
updateSequence(sequenceKey: string, referenceType: string, referenceId: string, items: Common.Array<string
|
|
9785
|
+
updateSequence(sequenceKey: string, referenceType: string, referenceId: string, items: Common.Array<string>): Promise<Systems.SequenceResult>;
|
|
9783
9786
|
/**
|
|
9784
9787
|
* @description Renames a given sequence. This call will fail if the user isn't a creator of the space.
|
|
9785
9788
|
* @param oldSequenceKey - The current sequence key name
|
|
9786
9789
|
* @param newSequenceKey - The new sequence key name
|
|
9787
9790
|
* @param callback - Callback to call when a response is received
|
|
9788
9791
|
*/
|
|
9789
|
-
renameSequence(oldSequenceKey: string, newSequenceKey: string
|
|
9792
|
+
renameSequence(oldSequenceKey: string, newSequenceKey: string): Promise<Systems.SequenceResult>;
|
|
9790
9793
|
/**
|
|
9791
9794
|
* @description Finds sequences based on the given criteria
|
|
9792
9795
|
* @param sequenceKeys - An array of sequence keys to search for
|
|
@@ -9795,19 +9798,19 @@ export declare namespace Systems {
|
|
|
9795
9798
|
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
9796
9799
|
* @param callback - Callback to call when a response is received
|
|
9797
9800
|
*/
|
|
9798
|
-
getSequencesByCriteria(sequenceKeys: Common.Array<string>, keyRegex: string, referenceType: string, referenceIds: Common.Array<string
|
|
9801
|
+
getSequencesByCriteria(sequenceKeys: Common.Array<string>, keyRegex: string | null, referenceType: string | null, referenceIds: Common.Array<string>): Promise<Systems.SequencesResult>;
|
|
9799
9802
|
/**
|
|
9800
9803
|
* @description Gets a sequence by it's key
|
|
9801
9804
|
* @param sequenceKey - The unique grouping name
|
|
9802
9805
|
* @param callback - Callback to call when a response is received
|
|
9803
9806
|
*/
|
|
9804
|
-
getSequence(sequenceKey: string
|
|
9807
|
+
getSequence(sequenceKey: string): Promise<Systems.SequenceResult>;
|
|
9805
9808
|
/**
|
|
9806
9809
|
* @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
|
|
9807
9810
|
* @param sequenceKeys - An array of sequence keys to delete
|
|
9808
9811
|
* @param callback - Callback to call when a response is received
|
|
9809
9812
|
*/
|
|
9810
|
-
deleteSequences(sequenceKeys: Common.Array<string
|
|
9813
|
+
deleteSequences(sequenceKeys: Common.Array<string>): Promise<Systems.NullResult>;
|
|
9811
9814
|
}
|
|
9812
9815
|
}
|
|
9813
9816
|
export declare namespace Systems {
|
|
@@ -10639,12 +10642,13 @@ export declare namespace Systems {
|
|
|
10639
10642
|
*/
|
|
10640
10643
|
deletePOI(pOI: Systems.PointOfInterest): Promise<Systems.NullResult>;
|
|
10641
10644
|
/**
|
|
10642
|
-
* @description Retrieves an array with all the Points of Interest that are located inside the circular area defined by the parameters
|
|
10643
|
-
* @param originLocation -
|
|
10644
|
-
* @param areaRadius - Radius of the circular area origin
|
|
10645
|
-
* @param
|
|
10645
|
+
* @description Retrieves an array with all the Points of Interest that are located inside the circular area defined by the parameters..
|
|
10646
|
+
* @param originLocation - The latitude and longitude coordinates of origin of the search location.
|
|
10647
|
+
* @param areaRadius - The Radius of the circular area to search around the provided origin.
|
|
10648
|
+
* @param type - The type of POI to search for. If none is specified, all types will be included in the returned set.
|
|
10649
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
10646
10650
|
*/
|
|
10647
|
-
getPOIsInArea(originLocation: Systems.GeoLocation, areaRadius: number): Promise<Systems.POICollectionResult>;
|
|
10651
|
+
getPOIsInArea(originLocation: Systems.GeoLocation, areaRadius: number, type: Systems.EPointOfInterestType | null): Promise<Systems.POICollectionResult>;
|
|
10648
10652
|
}
|
|
10649
10653
|
}
|
|
10650
10654
|
export declare namespace Systems {
|
|
@@ -10881,12 +10885,16 @@ export declare namespace Systems {
|
|
|
10881
10885
|
* @param callback - Callback to call when a response is received
|
|
10882
10886
|
*/
|
|
10883
10887
|
getProfileByUserId(userId: string): Promise<Systems.ProfileResult>;
|
|
10888
|
+
/** @deprecated
|
|
10889
|
+
Deprecated in favour of GetBasicProfilesByUserId
|
|
10890
|
+
*/
|
|
10891
|
+
getProfilesByUserId(userIds: Common.Array<string>): Promise<Systems.BasicProfilesResult>;
|
|
10884
10892
|
/**
|
|
10885
10893
|
* @description Get a list of minimal profiles (avatarId, personalityType, userName, and platform) by user IDs.
|
|
10886
10894
|
* @param inUserIds - An array of user ids to search for users by
|
|
10887
10895
|
* @param callback - Callback to call when a response is received
|
|
10888
10896
|
*/
|
|
10889
|
-
|
|
10897
|
+
getBasicProfilesByUserId(userIds: Common.Array<string>): Promise<Systems.BasicProfilesResult>;
|
|
10890
10898
|
/**
|
|
10891
10899
|
* @description Ping Magnopus Connected Services
|
|
10892
10900
|
* @param callback - Callback to call when a response is received
|
|
@@ -2766,6 +2766,7 @@ export var Multiplayer;
|
|
|
2766
2766
|
let EPointOfInterestType;
|
|
2767
2767
|
(function (EPointOfInterestType) {
|
|
2768
2768
|
EPointOfInterestType[EPointOfInterestType["DEFAULT"] = 0] = "DEFAULT";
|
|
2769
|
+
EPointOfInterestType[EPointOfInterestType["SPACE"] = 1] = "SPACE";
|
|
2769
2770
|
})(EPointOfInterestType = Systems.EPointOfInterestType || (Systems.EPointOfInterestType = {}));
|
|
2770
2771
|
})(Systems || (Systems = {}));
|
|
2771
2772
|
(function (Systems) {
|
|
@@ -14218,6 +14219,13 @@ export class CSPFoundation {
|
|
|
14218
14219
|
set assetCollectionId(value) {
|
|
14219
14220
|
Module.ccall("csp_systems_PointOfInterest__Set_AssetCollectionId", "void", ["number", "string"], [this.pointer, value]);
|
|
14220
14221
|
}
|
|
14222
|
+
get spaceId() {
|
|
14223
|
+
let _result = Module.ccall("csp_systems_PointOfInterest__Get_SpaceId", "string", ["number"], [this.pointer]);
|
|
14224
|
+
return _result;
|
|
14225
|
+
}
|
|
14226
|
+
set spaceId(value) {
|
|
14227
|
+
Module.ccall("csp_systems_PointOfInterest__Set_SpaceId", "void", ["number", "string"], [this.pointer, value]);
|
|
14228
|
+
}
|
|
14221
14229
|
}
|
|
14222
14230
|
Systems.PointOfInterest = PointOfInterest;
|
|
14223
14231
|
})(Systems || (Systems = {}));
|
|
@@ -22701,28 +22709,40 @@ export class CSPFoundation {
|
|
|
22701
22709
|
return new Systems.SequenceSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22702
22710
|
}
|
|
22703
22711
|
/**
|
|
22704
|
-
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one.
|
|
22705
|
-
* isn't a creator of the space.
|
|
22712
|
+
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one.
|
|
22713
|
+
* This call will fail if the user isn't a creator of the space.
|
|
22706
22714
|
* @param sequenceKey - The unique grouping name. The suggested convention is: Type:[Id]
|
|
22707
22715
|
* @param referenceType - The type of reference (GroupId, SpaceId etc.)
|
|
22708
22716
|
* @param referenceId - The id of the reference
|
|
22709
22717
|
* @param items - An ordered array of members
|
|
22710
22718
|
* @param callback - Callback to call when a response is received
|
|
22711
22719
|
*/
|
|
22712
|
-
createSequence(sequenceKey, referenceType, referenceId, items
|
|
22720
|
+
async createSequence(sequenceKey, referenceType, referenceId, items) {
|
|
22721
|
+
var _resolve;
|
|
22722
|
+
var _promise = new Promise((_r) => {
|
|
22723
|
+
_resolve = _r;
|
|
22724
|
+
});
|
|
22725
|
+
var _callbackPtr;
|
|
22713
22726
|
var _callback = (_stateObject__, result) => {
|
|
22714
|
-
var
|
|
22715
|
-
|
|
22727
|
+
var _resultPtr = getNativePointer(result);
|
|
22728
|
+
var _resultInstance = new Systems.SequenceResult(_resultPtr);
|
|
22729
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
22730
|
+
return;
|
|
22731
|
+
}
|
|
22732
|
+
_resolve(_resultInstance);
|
|
22733
|
+
Module.removeFunction(_callbackPtr);
|
|
22716
22734
|
};
|
|
22717
|
-
|
|
22718
|
-
Module.ccall("csp_systems_SequenceSystem_CreateSequence_void_StringRC_StringRC_StringRC_ArrayRC_SequenceResultCallback", "void", ["number", "string", "string", "string", "number", "number"], [
|
|
22735
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22736
|
+
Module.ccall("csp_systems_SequenceSystem_CreateSequence_void_StringRC_StringRC_StringRC_ArrayRC_SequenceResultCallback", "void", ["number", "string", "string", "string", "number", "number", "number"], [
|
|
22719
22737
|
this.pointer,
|
|
22720
22738
|
sequenceKey,
|
|
22721
22739
|
referenceType,
|
|
22722
22740
|
referenceId,
|
|
22723
22741
|
items.pointer,
|
|
22724
|
-
|
|
22742
|
+
_callbackPtr,
|
|
22743
|
+
0,
|
|
22725
22744
|
]);
|
|
22745
|
+
return _promise;
|
|
22726
22746
|
}
|
|
22727
22747
|
/**
|
|
22728
22748
|
* @description Updates an existing sequence. This call will fail if the user isn't a creator of the space.
|
|
@@ -22732,20 +22752,32 @@ export class CSPFoundation {
|
|
|
22732
22752
|
* @param items - An ordered array of members
|
|
22733
22753
|
* @param callback - Callback to call when a response is received
|
|
22734
22754
|
*/
|
|
22735
|
-
updateSequence(sequenceKey, referenceType, referenceId, items
|
|
22755
|
+
async updateSequence(sequenceKey, referenceType, referenceId, items) {
|
|
22756
|
+
var _resolve;
|
|
22757
|
+
var _promise = new Promise((_r) => {
|
|
22758
|
+
_resolve = _r;
|
|
22759
|
+
});
|
|
22760
|
+
var _callbackPtr;
|
|
22736
22761
|
var _callback = (_stateObject__, result) => {
|
|
22737
|
-
var
|
|
22738
|
-
|
|
22762
|
+
var _resultPtr = getNativePointer(result);
|
|
22763
|
+
var _resultInstance = new Systems.SequenceResult(_resultPtr);
|
|
22764
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
22765
|
+
return;
|
|
22766
|
+
}
|
|
22767
|
+
_resolve(_resultInstance);
|
|
22768
|
+
Module.removeFunction(_callbackPtr);
|
|
22739
22769
|
};
|
|
22740
|
-
|
|
22741
|
-
Module.ccall("csp_systems_SequenceSystem_UpdateSequence_void_StringRC_StringRC_StringRC_ArrayRC_SequenceResultCallback", "void", ["number", "string", "string", "string", "number", "number"], [
|
|
22770
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22771
|
+
Module.ccall("csp_systems_SequenceSystem_UpdateSequence_void_StringRC_StringRC_StringRC_ArrayRC_SequenceResultCallback", "void", ["number", "string", "string", "string", "number", "number", "number"], [
|
|
22742
22772
|
this.pointer,
|
|
22743
22773
|
sequenceKey,
|
|
22744
22774
|
referenceType,
|
|
22745
22775
|
referenceId,
|
|
22746
22776
|
items.pointer,
|
|
22747
|
-
|
|
22777
|
+
_callbackPtr,
|
|
22778
|
+
0,
|
|
22748
22779
|
]);
|
|
22780
|
+
return _promise;
|
|
22749
22781
|
}
|
|
22750
22782
|
/**
|
|
22751
22783
|
* @description Renames a given sequence. This call will fail if the user isn't a creator of the space.
|
|
@@ -22753,13 +22785,24 @@ export class CSPFoundation {
|
|
|
22753
22785
|
* @param newSequenceKey - The new sequence key name
|
|
22754
22786
|
* @param callback - Callback to call when a response is received
|
|
22755
22787
|
*/
|
|
22756
|
-
renameSequence(oldSequenceKey, newSequenceKey
|
|
22788
|
+
async renameSequence(oldSequenceKey, newSequenceKey) {
|
|
22789
|
+
var _resolve;
|
|
22790
|
+
var _promise = new Promise((_r) => {
|
|
22791
|
+
_resolve = _r;
|
|
22792
|
+
});
|
|
22793
|
+
var _callbackPtr;
|
|
22757
22794
|
var _callback = (_stateObject__, result) => {
|
|
22758
|
-
var
|
|
22759
|
-
|
|
22795
|
+
var _resultPtr = getNativePointer(result);
|
|
22796
|
+
var _resultInstance = new Systems.SequenceResult(_resultPtr);
|
|
22797
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
22798
|
+
return;
|
|
22799
|
+
}
|
|
22800
|
+
_resolve(_resultInstance);
|
|
22801
|
+
Module.removeFunction(_callbackPtr);
|
|
22760
22802
|
};
|
|
22761
|
-
|
|
22762
|
-
Module.ccall("csp_systems_SequenceSystem_RenameSequence_void_StringRC_StringRC_SequenceResultCallback", "void", ["number", "string", "string", "number"], [this.pointer, oldSequenceKey, newSequenceKey,
|
|
22803
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22804
|
+
Module.ccall("csp_systems_SequenceSystem_RenameSequence_void_StringRC_StringRC_SequenceResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, oldSequenceKey, newSequenceKey, _callbackPtr, 0]);
|
|
22805
|
+
return _promise;
|
|
22763
22806
|
}
|
|
22764
22807
|
/**
|
|
22765
22808
|
* @description Finds sequences based on the given criteria
|
|
@@ -22769,46 +22812,80 @@ export class CSPFoundation {
|
|
|
22769
22812
|
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
22770
22813
|
* @param callback - Callback to call when a response is received
|
|
22771
22814
|
*/
|
|
22772
|
-
getSequencesByCriteria(sequenceKeys, keyRegex, referenceType, referenceIds
|
|
22815
|
+
async getSequencesByCriteria(sequenceKeys, keyRegex, referenceType, referenceIds) {
|
|
22816
|
+
var _resolve;
|
|
22817
|
+
var _promise = new Promise((_r) => {
|
|
22818
|
+
_resolve = _r;
|
|
22819
|
+
});
|
|
22820
|
+
var _callbackPtr;
|
|
22773
22821
|
var _callback = (_stateObject__, result) => {
|
|
22774
|
-
var
|
|
22775
|
-
|
|
22822
|
+
var _resultPtr = getNativePointer(result);
|
|
22823
|
+
var _resultInstance = new Systems.SequencesResult(_resultPtr);
|
|
22824
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
22825
|
+
return;
|
|
22826
|
+
}
|
|
22827
|
+
_resolve(_resultInstance);
|
|
22828
|
+
Module.removeFunction(_callbackPtr);
|
|
22776
22829
|
};
|
|
22777
|
-
|
|
22778
|
-
Module.ccall("csp_systems_SequenceSystem_GetSequencesByCriteria_void_ArrayRC_StringRC_StringRC_ArrayRC_SequencesResultCallback", "void", ["number", "number", "string", "string", "number", "number"], [
|
|
22830
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22831
|
+
Module.ccall("csp_systems_SequenceSystem_GetSequencesByCriteria_void_ArrayRC_StringRC_StringRC_ArrayRC_SequencesResultCallback", "void", ["number", "number", "string", "string", "number", "number", "number"], [
|
|
22779
22832
|
this.pointer,
|
|
22780
22833
|
sequenceKeys.pointer,
|
|
22781
22834
|
keyRegex,
|
|
22782
22835
|
referenceType,
|
|
22783
22836
|
referenceIds.pointer,
|
|
22784
|
-
|
|
22837
|
+
_callbackPtr,
|
|
22838
|
+
0,
|
|
22785
22839
|
]);
|
|
22840
|
+
return _promise;
|
|
22786
22841
|
}
|
|
22787
22842
|
/**
|
|
22788
22843
|
* @description Gets a sequence by it's key
|
|
22789
22844
|
* @param sequenceKey - The unique grouping name
|
|
22790
22845
|
* @param callback - Callback to call when a response is received
|
|
22791
22846
|
*/
|
|
22792
|
-
getSequence(sequenceKey
|
|
22847
|
+
async getSequence(sequenceKey) {
|
|
22848
|
+
var _resolve;
|
|
22849
|
+
var _promise = new Promise((_r) => {
|
|
22850
|
+
_resolve = _r;
|
|
22851
|
+
});
|
|
22852
|
+
var _callbackPtr;
|
|
22793
22853
|
var _callback = (_stateObject__, result) => {
|
|
22794
|
-
var
|
|
22795
|
-
|
|
22854
|
+
var _resultPtr = getNativePointer(result);
|
|
22855
|
+
var _resultInstance = new Systems.SequenceResult(_resultPtr);
|
|
22856
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
22857
|
+
return;
|
|
22858
|
+
}
|
|
22859
|
+
_resolve(_resultInstance);
|
|
22860
|
+
Module.removeFunction(_callbackPtr);
|
|
22796
22861
|
};
|
|
22797
|
-
|
|
22798
|
-
Module.ccall("csp_systems_SequenceSystem_GetSequence_void_StringRC_SequenceResultCallback", "void", ["number", "string", "number"], [this.pointer, sequenceKey,
|
|
22862
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22863
|
+
Module.ccall("csp_systems_SequenceSystem_GetSequence_void_StringRC_SequenceResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, sequenceKey, _callbackPtr, 0]);
|
|
22864
|
+
return _promise;
|
|
22799
22865
|
}
|
|
22800
22866
|
/**
|
|
22801
22867
|
* @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
|
|
22802
22868
|
* @param sequenceKeys - An array of sequence keys to delete
|
|
22803
22869
|
* @param callback - Callback to call when a response is received
|
|
22804
22870
|
*/
|
|
22805
|
-
deleteSequences(sequenceKeys
|
|
22871
|
+
async deleteSequences(sequenceKeys) {
|
|
22872
|
+
var _resolve;
|
|
22873
|
+
var _promise = new Promise((_r) => {
|
|
22874
|
+
_resolve = _r;
|
|
22875
|
+
});
|
|
22876
|
+
var _callbackPtr;
|
|
22806
22877
|
var _callback = (_stateObject__, result) => {
|
|
22807
|
-
var
|
|
22808
|
-
|
|
22878
|
+
var _resultPtr = getNativePointer(result);
|
|
22879
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
22880
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
22881
|
+
return;
|
|
22882
|
+
}
|
|
22883
|
+
_resolve(_resultInstance);
|
|
22884
|
+
Module.removeFunction(_callbackPtr);
|
|
22809
22885
|
};
|
|
22810
|
-
|
|
22811
|
-
Module.ccall("csp_systems_SequenceSystem_DeleteSequences_void_ArrayRC_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, sequenceKeys.pointer,
|
|
22886
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22887
|
+
Module.ccall("csp_systems_SequenceSystem_DeleteSequences_void_ArrayRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, sequenceKeys.pointer, _callbackPtr, 0]);
|
|
22888
|
+
return _promise;
|
|
22812
22889
|
}
|
|
22813
22890
|
}
|
|
22814
22891
|
Systems.SequenceSystem = SequenceSystem;
|
|
@@ -25442,12 +25519,13 @@ export class CSPFoundation {
|
|
|
25442
25519
|
return _promise;
|
|
25443
25520
|
}
|
|
25444
25521
|
/**
|
|
25445
|
-
* @description Retrieves an array with all the Points of Interest that are located inside the circular area defined by the parameters
|
|
25446
|
-
* @param originLocation -
|
|
25447
|
-
* @param areaRadius - Radius of the circular area origin
|
|
25448
|
-
* @param
|
|
25522
|
+
* @description Retrieves an array with all the Points of Interest that are located inside the circular area defined by the parameters..
|
|
25523
|
+
* @param originLocation - The latitude and longitude coordinates of origin of the search location.
|
|
25524
|
+
* @param areaRadius - The Radius of the circular area to search around the provided origin.
|
|
25525
|
+
* @param type - The type of POI to search for. If none is specified, all types will be included in the returned set.
|
|
25526
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
25449
25527
|
*/
|
|
25450
|
-
async getPOIsInArea(originLocation, areaRadius) {
|
|
25528
|
+
async getPOIsInArea(originLocation, areaRadius, type) {
|
|
25451
25529
|
var _resolve;
|
|
25452
25530
|
var _promise = new Promise((_r) => {
|
|
25453
25531
|
_resolve = _r;
|
|
@@ -25463,7 +25541,22 @@ export class CSPFoundation {
|
|
|
25463
25541
|
Module.removeFunction(_callbackPtr);
|
|
25464
25542
|
};
|
|
25465
25543
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25466
|
-
|
|
25544
|
+
var typePointer = 0;
|
|
25545
|
+
if (type != null) {
|
|
25546
|
+
typePointer = Module._malloc(4);
|
|
25547
|
+
Module.setValue(typePointer, type, "i32");
|
|
25548
|
+
}
|
|
25549
|
+
Module.ccall("csp_systems_PointOfInterestSystem_GetPOIsInArea_void_GeoLocationRC_doubleC_EPointOfInterestTypeRC_POICollectionResultCallback", "void", ["number", "number", "number", "number", "number", "number"], [
|
|
25550
|
+
this.pointer,
|
|
25551
|
+
originLocation.pointer,
|
|
25552
|
+
areaRadius,
|
|
25553
|
+
typePointer,
|
|
25554
|
+
_callbackPtr,
|
|
25555
|
+
0,
|
|
25556
|
+
]);
|
|
25557
|
+
if (typePointer) {
|
|
25558
|
+
Module._free(typePointer);
|
|
25559
|
+
}
|
|
25467
25560
|
return _promise;
|
|
25468
25561
|
}
|
|
25469
25562
|
}
|
|
@@ -26203,12 +26296,34 @@ export class CSPFoundation {
|
|
|
26203
26296
|
Module.ccall("csp_systems_UserSystem_GetProfileByUserId_void_StringRC_ProfileResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
|
|
26204
26297
|
return _promise;
|
|
26205
26298
|
}
|
|
26299
|
+
/** @deprecated
|
|
26300
|
+
Deprecated in favour of GetBasicProfilesByUserId
|
|
26301
|
+
*/
|
|
26302
|
+
async getProfilesByUserId(userIds) {
|
|
26303
|
+
var _resolve;
|
|
26304
|
+
var _promise = new Promise((_r) => {
|
|
26305
|
+
_resolve = _r;
|
|
26306
|
+
});
|
|
26307
|
+
var _callbackPtr;
|
|
26308
|
+
var _callback = (_stateObject__, result) => {
|
|
26309
|
+
var _resultPtr = getNativePointer(result);
|
|
26310
|
+
var _resultInstance = new Systems.BasicProfilesResult(_resultPtr);
|
|
26311
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
26312
|
+
return;
|
|
26313
|
+
}
|
|
26314
|
+
_resolve(_resultInstance);
|
|
26315
|
+
Module.removeFunction(_callbackPtr);
|
|
26316
|
+
};
|
|
26317
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
26318
|
+
Module.ccall("csp_systems_UserSystem_GetProfilesByUserId_void_ArrayRC_BasicProfilesResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, userIds.pointer, _callbackPtr, 0]);
|
|
26319
|
+
return _promise;
|
|
26320
|
+
}
|
|
26206
26321
|
/**
|
|
26207
26322
|
* @description Get a list of minimal profiles (avatarId, personalityType, userName, and platform) by user IDs.
|
|
26208
26323
|
* @param inUserIds - An array of user ids to search for users by
|
|
26209
26324
|
* @param callback - Callback to call when a response is received
|
|
26210
26325
|
*/
|
|
26211
|
-
async
|
|
26326
|
+
async getBasicProfilesByUserId(userIds) {
|
|
26212
26327
|
var _resolve;
|
|
26213
26328
|
var _promise = new Promise((_r) => {
|
|
26214
26329
|
_resolve = _r;
|
|
@@ -26224,7 +26339,7 @@ export class CSPFoundation {
|
|
|
26224
26339
|
Module.removeFunction(_callbackPtr);
|
|
26225
26340
|
};
|
|
26226
26341
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
26227
|
-
Module.ccall("
|
|
26342
|
+
Module.ccall("csp_systems_UserSystem_GetBasicProfilesByUserId_void_ArrayRC_BasicProfilesResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, userIds.pointer, _callbackPtr, 0]);
|
|
26228
26343
|
return _promise;
|
|
26229
26344
|
}
|
|
26230
26345
|
/**
|