@rtsdk/topia 0.1.0 → 0.2.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.
Files changed (101) hide show
  1. package/dist/index.cjs +168 -25
  2. package/dist/index.js +169 -26
  3. package/dist/types/example.d.ts +6 -0
  4. package/dist/types/src/__mocks__/assets.d.ts +99 -0
  5. package/dist/{src/__mocks__/index.js → types/src/__mocks__/index.d.ts} +4 -4
  6. package/dist/types/src/__mocks__/scenes.d.ts +79 -0
  7. package/dist/types/src/__mocks__/visitors.d.ts +83 -0
  8. package/dist/types/src/__mocks__/worlds.d.ts +73 -0
  9. package/dist/types/src/controllers/Asset.d.ts +20 -0
  10. package/dist/types/src/controllers/DroppedAsset.d.ts +285 -0
  11. package/dist/types/src/controllers/SDKController.d.ts +48 -0
  12. package/dist/types/src/controllers/Scene.d.ts +19 -0
  13. package/dist/types/src/controllers/Topia.d.ts +33 -0
  14. package/dist/types/src/controllers/User.d.ts +112 -0
  15. package/dist/types/src/controllers/Visitor.d.ts +101 -0
  16. package/dist/types/src/controllers/World.d.ts +143 -0
  17. package/dist/types/src/controllers/WorldActivity.d.ts +83 -0
  18. package/dist/{src/interfaces/AssetInterfaces.js → types/src/controllers/__tests__/asset.test.d.ts} +1 -1
  19. package/dist/{src/interfaces/DroppedAssetInterfaces.js → types/src/controllers/__tests__/droppedAsset.test.d.ts} +1 -1
  20. package/dist/{src/interfaces/SDKInterfaces.js → types/src/controllers/__tests__/scene.test.d.ts} +1 -1
  21. package/dist/{src/interfaces/SceneInterfaces.js → types/src/controllers/__tests__/user.test.d.ts} +1 -1
  22. package/dist/types/src/controllers/__tests__/visitor.test.d.ts +1 -0
  23. package/dist/types/src/controllers/__tests__/world.test.d.ts +1 -0
  24. package/dist/types/src/controllers/__tests__/worldActivity.test.d.ts +1 -0
  25. package/dist/{src/controllers/index.js → types/src/controllers/index.d.ts} +9 -9
  26. package/dist/types/src/factories/AssetFactory.d.ts +8 -0
  27. package/dist/types/src/factories/DroppedAssetFactory.d.ts +16 -0
  28. package/dist/types/src/factories/SceneFactory.d.ts +9 -0
  29. package/dist/types/src/factories/UserFactory.d.ts +8 -0
  30. package/dist/types/src/factories/VisitorFactory.d.ts +9 -0
  31. package/dist/types/src/factories/WorldActivityFactory.d.ts +8 -0
  32. package/dist/types/src/factories/WorldFactory.d.ts +8 -0
  33. package/dist/{src/factories/index.js → types/src/factories/index.d.ts} +7 -7
  34. package/dist/types/src/index.d.ts +4 -0
  35. package/dist/types/src/interfaces/AssetInterfaces.d.ts +26 -0
  36. package/dist/types/src/interfaces/DroppedAssetInterfaces.d.ts +104 -0
  37. package/dist/types/src/interfaces/SDKInterfaces.d.ts +8 -0
  38. package/dist/types/src/interfaces/SceneInterfaces.d.ts +27 -0
  39. package/dist/types/src/interfaces/TopiaInterfaces.d.ts +10 -0
  40. package/dist/types/src/interfaces/UserInterfaces.d.ts +7 -0
  41. package/dist/types/src/interfaces/VisitorInterfaces.d.ts +37 -0
  42. package/dist/types/src/interfaces/WorldActivityInterfaces.d.ts +11 -0
  43. package/dist/types/src/interfaces/WorldInterfaces.d.ts +32 -0
  44. package/dist/{src/interfaces/index.js → types/src/interfaces/index.d.ts} +9 -9
  45. package/dist/types/src/types/DroppedAssetTypes.d.ts +10 -0
  46. package/dist/types/src/types/InteractiveCredentialsTypes.d.ts +8 -0
  47. package/dist/types/src/types/OptionsTypes.d.ts +21 -0
  48. package/dist/types/src/types/ResponseTypes.d.ts +4 -0
  49. package/dist/types/src/types/VisitorTypes.d.ts +33 -0
  50. package/dist/{src/types/index.js → types/src/types/index.d.ts} +5 -4
  51. package/dist/types/src/utils/__tests__/removeUndefined.test.d.ts +1 -0
  52. package/dist/types/src/utils/__tests__/scatterVisitors.test.d.ts +1 -0
  53. package/dist/types/src/utils/getBrowserWarning.d.ts +1 -0
  54. package/dist/{src/utils/index.js → types/src/utils/index.d.ts} +3 -3
  55. package/dist/types/src/utils/removeUndefined.d.ts +8 -0
  56. package/dist/types/src/utils/scatterVisitors.d.ts +4 -0
  57. package/package.json +2 -2
  58. package/dist/example.js +0 -32
  59. package/dist/src/__mocks__/assets.js +0 -249
  60. package/dist/src/__mocks__/scenes.js +0 -104
  61. package/dist/src/__mocks__/visitors.js +0 -83
  62. package/dist/src/__mocks__/worlds.js +0 -52
  63. package/dist/src/controllers/Asset.js +0 -39
  64. package/dist/src/controllers/DroppedAsset.js +0 -461
  65. package/dist/src/controllers/SDKController.js +0 -85
  66. package/dist/src/controllers/Scene.js +0 -39
  67. package/dist/src/controllers/Topia.js +0 -39
  68. package/dist/src/controllers/User.js +0 -139
  69. package/dist/src/controllers/Visitor.js +0 -92
  70. package/dist/src/controllers/World.js +0 -256
  71. package/dist/src/controllers/WorldActivity.js +0 -162
  72. package/dist/src/controllers/__tests__/asset.test.js +0 -37
  73. package/dist/src/controllers/__tests__/droppedAsset.test.js +0 -98
  74. package/dist/src/controllers/__tests__/scene.test.js +0 -38
  75. package/dist/src/controllers/__tests__/user.test.js +0 -49
  76. package/dist/src/controllers/__tests__/visitor.test.js +0 -47
  77. package/dist/src/controllers/__tests__/world.test.js +0 -51
  78. package/dist/src/controllers/__tests__/worldActivity.test.js +0 -63
  79. package/dist/src/factories/AssetFactory.js +0 -11
  80. package/dist/src/factories/DroppedAssetFactory.js +0 -42
  81. package/dist/src/factories/SceneFactory.js +0 -27
  82. package/dist/src/factories/UserFactory.js +0 -10
  83. package/dist/src/factories/VisitorFactory.js +0 -26
  84. package/dist/src/factories/WorldActivityFactory.js +0 -10
  85. package/dist/src/factories/WorldFactory.js +0 -10
  86. package/dist/src/index.js +0 -28
  87. package/dist/src/interfaces/TopiaInterfaces.js +0 -1
  88. package/dist/src/interfaces/UserInterfaces.js +0 -1
  89. package/dist/src/interfaces/VisitorInterfaces.js +0 -1
  90. package/dist/src/interfaces/WorldActivityInterfaces.js +0 -1
  91. package/dist/src/interfaces/WorldInterfaces.js +0 -1
  92. package/dist/src/types/DroppedAssetTypes.js +0 -12
  93. package/dist/src/types/InteractiveCredentialsTypes.js +0 -1
  94. package/dist/src/types/OptionsTypes.js +0 -1
  95. package/dist/src/types/ResponseTypes.js +0 -1
  96. package/dist/src/types/VisitorTypes.js +0 -1
  97. package/dist/src/utils/__tests__/removeUndefined.test.js +0 -10
  98. package/dist/src/utils/__tests__/scatterVisitors.test.js +0 -11
  99. package/dist/src/utils/getBrowserWarning.js +0 -5
  100. package/dist/src/utils/removeUndefined.js +0 -11
  101. package/dist/src/utils/scatterVisitors.js +0 -8
@@ -1,249 +0,0 @@
1
- export const assets = [
2
- {
3
- id: "00BP8X86cl1S0wwIwjNb",
4
- addedOn: "2021-05-25T21:08:13.132Z",
5
- assetName: "My Top Layer Asset",
6
- specialType: null,
7
- topLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/5SEa7AR1MyYV3sX48HQy3xLadyR2-asgard-1621976891729_layer1.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670268565&Signature=s95zVCcw2u5DRpqlrlCfVzuZZp1g4naQj%2B4ZaFW3ISK4Ekty047lJHFcKr1e%2B1ktn1a5%2FAlSa8WaYtnw3O5IcvW360Sgyuum1H5T%2BzZDu992uHiTSOnx9XihofH%2FAu%2BeeO7Rt%2BzNMxWbiyb6Suf8wLfEG0nwrSoEJV7%2BdNqF6E0wMZlhV5tQARl8jxw8%2BaJvOu93leR%2Fu13aftC8ScEXA%2Bqld9mV80sGFQJCcKEnbIa%2B7kOVyxaDfQzHZjbzV5N0KMQ%2FPdHRbGo44EPYjSZCB3LxYa2XT8jXkC6QK7SI2C%2Bo%2BRJ1KGtUhqRFiICpejC5RmTdwAjjchZkltU87iCBvw%3D%3D",
8
- bottomLayerURL: "",
9
- },
10
- {
11
- id: "0gk6RVtQ34U5vQIzxiOT",
12
- addedOn: "2022-03-07T18:28:55.121Z",
13
- assetName: "Tree",
14
- specialType: null,
15
- topLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/5SEa7AR1MyYV3sX48HQy3xLadyR2-ruins-free-04hrzvjsl-1646677734083_layer1.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670268565&Signature=dsQbL7POel7vEds%2BanaxH8%2B1lAf4FdROt3a%2BfIQParunSz6e2zQUNL7adclDa3C5WLkspbeHheav4XqiMmHyxZCg4zF8lawz7LuOA0q3jbzCHQalZzavGT4MWyE%2FXhbl%2BFNz9bmmFXE0MVp6Xo9RNCXYqv6%2Fpo9tf6Q9z1Imwq7H3wSA817eaw5NdkPhEVg9AWQTolJfPBgZohaobqImE%2Bnrk0fTx65gUzuZ2qUGzmWIUJld4We8QLT64ceeeGCfb9OdvjFuT7%2FOR5xsPcNWgXIQ%2BIukP82TlKVH5Tkl8Ct8hAfsJm%2F4KQQ9jgHyPs%2BgVkE4qsTIIgWgy%2BSGbwVBlA%3D%3D",
16
- bottomLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/5SEa7AR1MyYV3sX48HQy3xLadyR2-ruins-free-04hrzvjsl-1646677734083_layer0.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670268565&Signature=KAwixdYB4V0XAa80BfY3IglBhI4rOTWMVYqSVJFBQlkes1J4oFbSTnC5COp7dgjuuMlEuBem68VuXr7vRqODUH%2BneKeOH5fi7tmdrmnjqZqWtJfFNQD4FZs7056op400JnbRWkW03vEzA8qCuEbO3ADV%2BMzDy8%2FtA9xH2%2F72U623gR0f9hdaTJoWJwwRMYlq2t1zc5sZ3dc9WOuTrBwNkzbwaweVBJ%2B5XRYLXBwwRHxm9DnLbZulqEtvp%2FdTp%2Bc9lQm8iTrR%2FhMpiPV2qG6n%2Ffj%2BnYOJhYo4fIKSxiNP8t88LwgTFygIvXcxq1HyNJosfjGv55%2BcTGsghzfSMZJe1Q%3D%3D",
17
- },
18
- {
19
- id: "TUe2wQVWJbGUCtkpqXhk",
20
- addedOn: "2022-02-08T07:11:35.429Z",
21
- assetName: "My Bottom Layer Asset",
22
- specialType: null,
23
- topLayerURL: "",
24
- bottomLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/2OB4pQL4b6ReyRfh6TOVJlx8vDz2-exampleWorld-1644304293033_layer0.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670268565&Signature=yNh3QQpTwL6X%2BYUY6wijtDHy7QOGgkOu4hyQK8WMx1wwQQJ0zHDXOwPvRUBMT9skAjTejInsQOoBrDQSc7oxBoEKjk3Gklcf1MQN15zHEpdHHFZczX534LRxvt2ObxGFJkmSBFdH2sP0h22QjwWl2ERmzRfRYicBJcZZfBUxqlDz62IsBwhUgIfIRjtX6U8XWHQ%2BD3PgOJHQZlt%2BYhGKIPzSi5B289YHDN6xAgtQLGzSfps3f%2F4hl9fAhN0QPi%2BFSaNk0dko08hYCWqQAk75xurj0X6VPFAPb1FVggzTG0bzmQw%2Bm2%2BPbThH70Zqgw0VWSiBta9ojATAAuvnHJU0Jg%3D%3D",
25
- },
26
- {
27
- addedOn: "May 25, 2021 at 2:21:16 PM UTC-7",
28
- assetName: "ink rock 1",
29
- creatorTags: {},
30
- isPublic: false,
31
- kitId: "dD8nsGBkEgU59H6sbqbx",
32
- layer0: null,
33
- layer1: "layers/5SEa7AR1MyYV3sX48HQy3xLadyR2-asgard-1621977675112_layer1.png",
34
- library: "topia",
35
- originalAssetId: "00ntfq6Q5zExrmmjzNct",
36
- originalKit: "CzurQZYffz06sreI0Rz9",
37
- ownerId: "xtSos8FlrXTzOHaslsBPYnq7fDy2",
38
- ownerName: "",
39
- purchased: true,
40
- purchasedDate: "May 27, 2021 at 4:10:26 PM UTC-7",
41
- purchasedFrom: "5SEa7AR1MyYV3sX48HQy3xLadyR2",
42
- tagJson: "",
43
- transactionId: "PcVCeSqotMl9lErNQyGB",
44
- type: "layeredTexture",
45
- urlSlug: "asgard",
46
- },
47
- ];
48
- export const droppedAssets = [
49
- {
50
- id: "1Vupeo4ColJ2xfyqu4zY",
51
- assetId: "gCDCl3AfnnkrAzlxwXPA",
52
- assetName: "Bike Path Horizontal",
53
- assetScale: 1,
54
- assetBroadcastAll: false,
55
- assetBroadcast: false,
56
- audioRadius: null,
57
- audioSliderVolume: null,
58
- isPrivateZone: false,
59
- isPrivateZoneChatDisabled: false,
60
- privateZoneUserCap: null,
61
- broadcasterEmail: null,
62
- clickType: null,
63
- clickableLink: null,
64
- clickableLinkTitle: null,
65
- clickablePortal: null,
66
- creationDatetime: 1624557784470,
67
- clickableDisplayTextDescription: null,
68
- clickableDisplayTextHeadline: null,
69
- position: {
70
- x: -247.6349071195266,
71
- y: 1373.5047340020942,
72
- },
73
- portalCoordsX: null,
74
- portalCoordsY: null,
75
- specialType: null,
76
- topLayerURL: "",
77
- bottomLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/ZblDRDweiGVZFbuIaV4bVUBuvrD2-hayden-1598763536352_layer0.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670433535&Signature=Rc6sfxFoIpPDvgOqgP934C9Ijq5yrdf745oqayRKKd3jporB2pAWKmSJyu7PHFJVB7yH6e7tJPVIJjijmbylBfEn6SI0JlpK1Ob2534e7dvZJKCCMt4gLxqahD8RsAfJq2PPDAu08Zr5ZN8hKpQG%2FZEHovOoelRW2LhUrj7ClxDjhYElzEdGTFM%2F7jAN4WIZIlvwC9LhuOqug1%2BfjpYFDO1yXfu6wwACFkfqBhR4n66aWLcHHU5otTmb5Zds%2Fo%2FxCu0osKN%2Fp4INl4ScTku%2BE23e1ow%2B%2Fh%2FZfB%2B8KJ2ksYg%2FV%2ByWm8GQxV4Le5LYt32%2BZU2CscmW%2BgvTgACFJsQuUg%3D%3D",
78
- text: null,
79
- textStyle: {
80
- textColor: "#000000",
81
- textSize: 24,
82
- textWidth: 200,
83
- textWeight: "normal",
84
- textFont: "Arial",
85
- textFontFamily: "Arial",
86
- },
87
- teleportX: null,
88
- teleportY: null,
89
- syncUserMedia: null,
90
- mediaLink: null,
91
- mediaType: null,
92
- mediaUploadedId: null,
93
- mediaName: null,
94
- isMutezone: null,
95
- isVideo: null,
96
- isVideoPlayer: null,
97
- uniqueName: null,
98
- },
99
- {
100
- id: "1aJwEWK9NKnXxluAuxPL",
101
- assetId: "EceNskT4137EOOjmGXJP",
102
- assetName: "String Bulbs",
103
- assetScale: 1,
104
- assetBroadcastAll: false,
105
- assetBroadcast: false,
106
- audioRadius: null,
107
- audioSliderVolume: null,
108
- isPrivateZone: false,
109
- isPrivateZoneChatDisabled: false,
110
- privateZoneUserCap: null,
111
- broadcasterEmail: null,
112
- clickType: null,
113
- clickableLink: null,
114
- clickableLinkTitle: null,
115
- clickablePortal: null,
116
- creationDatetime: 1624476120886,
117
- clickableDisplayTextDescription: null,
118
- clickableDisplayTextHeadline: null,
119
- position: {
120
- x: 1101.8736822470964,
121
- y: -815.1441116727156,
122
- },
123
- portalCoordsX: null,
124
- portalCoordsY: null,
125
- specialType: null,
126
- topLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/ZblDRDweiGVZFbuIaV4bVUBuvrD2-testbed-hayden-free-6b4evwqzq-1596092809043_layer1.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670433535&Signature=JqplISIyTTbfZhKG00ThKxPs3gLLx64zsbSOS9wE4PAlrPptK2%2F%2Bv9y4mGpU%2FHShtoSEsyN9iKl4s7TjZUBPw%2FE4Amtjju%2B8kKBM%2BQdmXeeMDUnofl6rNOTX5UIE1NkODBwGj309Ap88zBu2LHcubcRV1L2uE198PpvmLYL2nFLQG2hEoysi4yTXnNTXodZcp5amkyUYa3IfjiqanrIAs0mRFhza70kp9Xc%2BEpN2HHIi1j1ATNYgb3qTmHjxFip%2BZsV6Hi2Zz8mzo6To2skzQ1S2e3AavleA432yHyn7a6om9SqJYOqGpHTNERN1kD%2BHuHFWQHBSeK1YXb7diA%2BAXg%3D%3D",
127
- bottomLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/ZblDRDweiGVZFbuIaV4bVUBuvrD2-testbed-hayden-free-6b4evwqzq-1596092809043_layer0.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670433535&Signature=rXuaiNl7jghRkO4VeK%2BpDyDu7XQ0O9QYsxa4pRnWScY7byVUHXc1UiQcqwnM%2FTSZoFL%2F8W0GLkphIEC4QyDbQtVOrjiLWKGQxdKdQhfCDt6I0IT3JJgQaSxOPpW5Eykkd0Rnp8R6KXAOkU8NRHp73fjrFWjZiSHIox0l%2Fty0v1zlGOt%2B%2F7cbotAu8fNO5yQtAIDpOt%2BVLqwLOrWj5D3vJtaiXEBCp1iawO1pJKap%2BFk4UF1DJdttEtOX2IYN5SWpAA2VfPJj7IfHQDPRXDKcfQziVSofJV482hN7Gsdm74jDCJ8p%2BAJxo%2Fou8CjTNXVihroJmw7CLccnNmvrzT8Guw%3D%3D",
128
- text: null,
129
- textStyle: {
130
- textColor: "#000000",
131
- textSize: 24,
132
- textWidth: 200,
133
- textWeight: "normal",
134
- textFont: "Arial",
135
- textFontFamily: "Arial",
136
- },
137
- teleportX: null,
138
- teleportY: null,
139
- syncUserMedia: null,
140
- mediaLink: null,
141
- mediaType: null,
142
- mediaUploadedId: null,
143
- mediaName: null,
144
- isMutezone: null,
145
- isVideo: null,
146
- isVideoPlayer: null,
147
- uniqueName: null,
148
- },
149
- {
150
- id: "1aL6y9NIpvg3i0NCYd9P",
151
- assetId: "9eBGB494oS26uQp35O0j",
152
- assetName: "Trash Fence Horizontal",
153
- assetScale: 1,
154
- assetBroadcastAll: false,
155
- assetBroadcast: false,
156
- audioRadius: null,
157
- audioSliderVolume: null,
158
- isPrivateZone: false,
159
- isPrivateZoneChatDisabled: false,
160
- privateZoneUserCap: null,
161
- broadcasterEmail: null,
162
- clickType: null,
163
- clickableLink: null,
164
- clickableLinkTitle: null,
165
- clickablePortal: null,
166
- creationDatetime: 1624559093102,
167
- clickableDisplayTextDescription: null,
168
- clickableDisplayTextHeadline: null,
169
- position: {
170
- x: -1024.6450136852004,
171
- y: 1534.5126935363705,
172
- },
173
- portalCoordsX: null,
174
- portalCoordsY: null,
175
- specialType: null,
176
- topLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/ZblDRDweiGVZFbuIaV4bVUBuvrD2-testbed-build-a-burn-free-fifzu5ms2-1598227342328_layer1.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670433535&Signature=G%2BeRl%2FBXQ7LzC9cwG%2BkoQRmtb8s56rScFvsb1iT7fztMKu%2B3JaB1Nsy0sMcSWd37v5bCAOYIs3rpbITOKI4vkXOhNdGQIOM1hFOyWCwr9N%2B0BBOMN4hZ1G0bJMuofXBXU5%2B%2Fh4OnY5hhY5g0Z9lSNbK2nxJRLQQzIQwlTiQ1e0x9%2B6VWVwQBw3mb0JvOp575AYNPHJ%2B5OmP9uX7W4SzBWPKerZ3OV6U%2FnCFU4u2zCLjyx7lpXqXDPJ5SzxCc97%2FQP186ybiZvw42EgWeAswf6XpNcn%2BqhcEGHY4alOaGBf6Sa8w814SrdjyWYh3yRjreTCDRjWoC%2F8tbeJTRf7t3Sg%3D%3D",
177
- bottomLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/ZblDRDweiGVZFbuIaV4bVUBuvrD2-testbed-build-a-burn-free-fifzu5ms2-1598227342328_layer0.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670433535&Signature=SQeK2Udwpi4Cv3RIVRxe53VkcHlXtvX2YMVMZiWuNAyvnIFcSgoDAuDLjZWuqgfvwnqZ9ii6trqbLB64%2B1H0alWBrBGtq2YIAMP4X50cjO%2BKOlKO6nzYfo61aE8JpCWNk%2FqFx75UH2lRwKybsDjb63dXshyHV3BzewXHAxB1tdEcYxQfSesPUyH0BkuFSuSRYombYJf3%2B7cjcJFps%2BePTST3OJYMVDKphq%2BKL6Z1YN%2FwjWszEDJOzy4PyszklfiO%2Fj6q9VtY9WmwZst0nAILkq9G9eLFRzr%2Fma5ALw%2Bn627Z4%2FKS7dAQynr%2B2y8skprknTia8gE9A3KBz6EWLyV%2BZw%3D%3D",
178
- text: null,
179
- textStyle: {
180
- textColor: "#000000",
181
- textSize: 24,
182
- textWidth: 200,
183
- textWeight: "normal",
184
- textFont: "Arial",
185
- textFontFamily: "Arial",
186
- },
187
- teleportX: null,
188
- teleportY: null,
189
- syncUserMedia: null,
190
- mediaLink: null,
191
- mediaType: null,
192
- mediaUploadedId: null,
193
- mediaName: null,
194
- isMutezone: null,
195
- isVideo: null,
196
- isVideoPlayer: null,
197
- uniqueName: null,
198
- },
199
- {
200
- id: "1giFZb0sQ3X27L7uGyQX",
201
- assetId: "1yGOfvis4CG0r8Vkq46G",
202
- assetName: "Triangle Rug",
203
- assetScale: 1,
204
- assetBroadcastAll: false,
205
- assetBroadcast: false,
206
- audioRadius: null,
207
- audioSliderVolume: null,
208
- isPrivateZone: false,
209
- isPrivateZoneChatDisabled: false,
210
- privateZoneUserCap: null,
211
- broadcasterEmail: null,
212
- clickType: null,
213
- clickableLink: null,
214
- clickableLinkTitle: null,
215
- clickablePortal: null,
216
- creationDatetime: 1624557083983,
217
- clickableDisplayTextDescription: null,
218
- clickableDisplayTextHeadline: null,
219
- position: {
220
- x: 383.4917021726642,
221
- y: 937.6441853712226,
222
- },
223
- portalCoordsX: null,
224
- portalCoordsY: null,
225
- specialType: null,
226
- topLayerURL: "",
227
- bottomLayerURL: "https://storage.googleapis.com/topia-ba1c8.appspot.com/layers/ZblDRDweiGVZFbuIaV4bVUBuvrD2-testbed-hayden-free-6b4evwqzq-1596321298869_layer0.png?GoogleAccessId=firebase-adminsdk-f60ic%40topia-ba1c8.iam.gserviceaccount.com&Expires=1670433535&Signature=wnTww2Pgusnk9%2BwOu6XIlNbYNKF8IJXBFTvw7AumtGVKvCil8hwtDHrsuSuZKuB0adjfeTcb6YwP%2FJxs275KUeu6RZffHKeu8z9mcmpGBrxP2OBJkpBY7OyCra9oT2oEJqPzVIuJDSpIuAVJDVbkFAJln7rqBHHjJbrifSAOVTwaqqRf4ZHZX%2BPyVc%2BxbnogNyAmUk%2F9C%2BjfFzyIs0%2FPbVciEppEjt0q03SaY8JLurhtdl01nxpwGAk%2BtHm5fP9m2N5kswS0a9ItvM%2BlzR4rCYuZkjs0QLS5JH8L3yjMpuQBHYlkiGNmBsx7ur2Ys2ajaVG1h3JD6f4jFxTayercZw%3D%3D",
228
- text: null,
229
- textStyle: {
230
- textColor: "#000000",
231
- textSize: 24,
232
- textWidth: 200,
233
- textWeight: "normal",
234
- textFont: "Arial",
235
- textFontFamily: "Arial",
236
- },
237
- teleportX: null,
238
- teleportY: null,
239
- syncUserMedia: null,
240
- mediaLink: null,
241
- mediaType: null,
242
- mediaUploadedId: null,
243
- mediaName: null,
244
- isMutezone: null,
245
- isVideo: null,
246
- isVideoPlayer: null,
247
- uniqueName: null,
248
- },
249
- ];
@@ -1,104 +0,0 @@
1
- export const scenes = [
2
- {
3
- description: 'For that, "It was a dark and stormy night..."vibe...',
4
- height: 4000,
5
- name: "The Cabin in the Woods",
6
- urlSlug: "inktopia-free-gu0xzmtvn",
7
- purchasedDate: {
8
- _seconds: 1652385963,
9
- _nanoseconds: 367000000,
10
- },
11
- background: "backgrounds/5SEa7AR1MyYV3sX48HQy3xLadyR2-asgard-1618371873999.png",
12
- spawnPosition: {
13
- radius: 400,
14
- y: -1260,
15
- x: 411,
16
- },
17
- worldCenteredAtZero: true,
18
- width: 4000,
19
- price: "0",
20
- originalKit: "HRxS1Z5cr5pOWDIGNky2",
21
- isPublic: false,
22
- created: {
23
- _seconds: 1621996452,
24
- _nanoseconds: 500000000,
25
- },
26
- id: "1vzCdMMXEdm91LN60Rn9",
27
- },
28
- {
29
- background: null,
30
- description: "A calendar of events hosted by the Topia community. This object is great for adding depth and value to your world.",
31
- price: 0,
32
- height: 500,
33
- urlSlug: "canvas-one-free-k95wnsmxc",
34
- originalKit: "ZtQhN1qe5nO3xuKrTMzg",
35
- worldCenteredAtZero: true,
36
- spawnPosition: {
37
- x: 0,
38
- radius: 100,
39
- y: 0,
40
- },
41
- timesGetFree: 309,
42
- isPublic: false,
43
- timesUsed: 139,
44
- created: {
45
- _seconds: 1621036299,
46
- _nanoseconds: 714000000,
47
- },
48
- purchasedDate: {
49
- _seconds: 1628820905,
50
- _nanoseconds: 432000000,
51
- },
52
- name: "Events Calendar",
53
- width: 500,
54
- id: "1KxaFJ7FnqsXayWfNPjm",
55
- },
56
- {
57
- background: "backgrounds/office_background.png",
58
- name: "OfficeParty",
59
- timesUsed: 1,
60
- height: 2000,
61
- spawnPosition: {
62
- x: 1000,
63
- y: 1900,
64
- radius: 100,
65
- },
66
- price: 0,
67
- urlSlug: "sidebench",
68
- created: {
69
- _seconds: 1623872809,
70
- _nanoseconds: 94000000,
71
- },
72
- description: "",
73
- width: 2000,
74
- id: "1OWOvTbABMVmuvMaifZh",
75
- },
76
- {
77
- name: "Private conversation dome",
78
- spawnPosition: {
79
- x: 0,
80
- radius: 100,
81
- y: 0,
82
- },
83
- timesGetFree: 147,
84
- originalKit: "rceXbVz2mJMrc7kuXH9h",
85
- purchasedDate: {
86
- _seconds: 1636393495,
87
- _nanoseconds: 113000000,
88
- },
89
- urlSlug: "bctemp-free-1864nq02g",
90
- isPublic: false,
91
- height: 2000,
92
- worldCenteredAtZero: true,
93
- background: null,
94
- price: 0,
95
- width: 2000,
96
- created: {
97
- _seconds: 1631048612,
98
- _nanoseconds: 923000000,
99
- },
100
- timesUsed: 87,
101
- description: "A transparent, floating geodesic dome, useful as a private conversation space",
102
- id: "7f6tnT0RkUbn2i83rfgA",
103
- },
104
- ];
@@ -1,83 +0,0 @@
1
- export const visitor = {
2
- visitorId: 1,
3
- color: "0x7AD3BA",
4
- moveTo: {
5
- x: -1458,
6
- y: -351,
7
- },
8
- moveFrom: {},
9
- username: "Test",
10
- sitting: false,
11
- gestureType: 0,
12
- performer: false,
13
- performerNear: false,
14
- shareScreen: false,
15
- isBackground: false,
16
- muted: true,
17
- hidden: true,
18
- newId: "",
19
- displayName: "test",
20
- movedOn: 0,
21
- lastUpdate: 1669915215216,
22
- isMobile: false,
23
- token: "a92863e4-c21c-4270-a7ed-cdee2574e3ec",
24
- isAdmin: false,
25
- isRecording: false,
26
- isRecordingBot: false,
27
- };
28
- export const visitors = {
29
- "1": {
30
- visitorId: 1,
31
- color: "0x7AD3BA",
32
- moveTo: {
33
- x: -1458,
34
- y: -351,
35
- },
36
- moveFrom: {},
37
- username: "Lina",
38
- sitting: false,
39
- gestureType: 0,
40
- performer: false,
41
- performerNear: false,
42
- shareScreen: false,
43
- isBackground: false,
44
- muted: true,
45
- hidden: true,
46
- newId: "",
47
- displayName: "",
48
- movedOn: 0,
49
- lastUpdate: 1669915215216,
50
- isMobile: false,
51
- token: "a92863e4-c21c-4270-a7ed-cdee2574e3ec",
52
- isAdmin: false,
53
- isRecording: false,
54
- isRecordingBot: false,
55
- },
56
- "2": {
57
- visitorId: 2,
58
- color: "0xA0D2A7",
59
- moveTo: {
60
- x: -1504,
61
- y: -260,
62
- },
63
- moveFrom: {},
64
- username: "Definitely Not Lina",
65
- sitting: false,
66
- gestureType: 0,
67
- performer: false,
68
- performerNear: false,
69
- shareScreen: false,
70
- isBackground: false,
71
- muted: true,
72
- hidden: true,
73
- newId: "",
74
- displayName: "",
75
- movedOn: 0,
76
- lastUpdate: 1669915214590,
77
- isMobile: false,
78
- token: "23fecaae-6b55-4e98-9e0c-6f869bb19463",
79
- isAdmin: false,
80
- isRecording: false,
81
- isRecordingBot: false,
82
- },
83
- };
@@ -1,52 +0,0 @@
1
- const baseImageURL = "https://firebasestorage.googleapis.com/v0/b/topia-ba1c8.appspot.com/o/heroImages%";
2
- export const worlds = [
3
- {
4
- description: "This is the a welcome lobby that anybody can enter to learn more about Topia.",
5
- name: "Welcome",
6
- heroImage: `${baseImageURL}2Fwelcome_banner.png?alt=media&token=548e1515-205e-4ef0-a0ca-bc4cc39c4f40`,
7
- urlSlug: "welcome",
8
- },
9
- {
10
- background: null,
11
- created: {
12
- _seconds: 1605310924,
13
- _nanoseconds: 165000000,
14
- },
15
- controls: {
16
- isShowingCurrentGuests: true,
17
- hideShareScreen: false,
18
- isZoneConversationHidden: false,
19
- allowUserToTurnOnNotifications: true,
20
- isPeerConversationHidden: false,
21
- disableHideVideo: false,
22
- isWorldConversationHidden: false,
23
- allowUsersToTurnOnNotifications: true,
24
- allowMuteAll: true,
25
- isMobileDisabled: false,
26
- },
27
- description: "A place to play, test, create scenes, and more!",
28
- enforceWhitelistOnLogin: false,
29
- forceAuthOnLogin: true,
30
- height: 3096,
31
- heroImage: "https://firebasestorage.googleapis.com/v0/b/topia-ba1c8.appspot.com/o/heroImages%2F2OB4pQL4b6ReyRfh6TOVJlx8vDz2-lina-1632521548284.png?alt=media&token=b95f15ac-f598-438e-95e8-4c048ec091a7",
32
- mapExists: true,
33
- name: "Lina's World",
34
- redirectTo: null,
35
- spawnPosition: {
36
- radius: 100,
37
- y: -348,
38
- x: -1448,
39
- },
40
- tileBackgroundEverywhere: null,
41
- useTopiaPassword: false,
42
- urlSlug: "exampleWorld",
43
- width: 4096,
44
- },
45
- {
46
- alt: "descriptive text for screen reader",
47
- description: "Donec ullamcorper nulla non metus auctor fringilla. Donec ullamcorper nulla non metus auctor fringilla. Donec ullamcorper nulla non metus auctor fringilla",
48
- name: "World Name that goes on for days",
49
- heroImage: "https://bit.ly/2QdnMge",
50
- urlSlug: "world-name-that-goes-on-forever-because-it-free",
51
- },
52
- ];
@@ -1,39 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- // controllers
11
- import { SDKController } from "controllers/SDKController";
12
- /**
13
- * @summary
14
- * Create an instance of Asset class with a given asset id and optional attributes and session credentials.
15
- *
16
- * @usage
17
- * ```ts
18
- * await new Asset(topia, "assetId", { attributes: { assetName: "My Asset", isPublic: false } });
19
- * ```
20
- */
21
- export class Asset extends SDKController {
22
- constructor(topia, id, options = { attributes: {}, credentials: {} }) {
23
- super(topia, options.credentials);
24
- this.id = id;
25
- Object.assign(this, options.attributes);
26
- }
27
- fetchPlatformAssets() {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- try {
30
- const response = yield this.topiaPublicApi().get("/assets/topia-assets", this.requestOptions);
31
- return response.data;
32
- }
33
- catch (error) {
34
- throw this.errorHandler({ error });
35
- }
36
- });
37
- }
38
- }
39
- export default Asset;