@quenty/assetserviceutils 5.19.0 → 5.19.1
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.19.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/assetserviceutils@5.19.0...@quenty/assetserviceutils@5.19.1) (2025-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [5.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/assetserviceutils@5.18.2...@quenty/assetserviceutils@5.19.0) (2025-04-02)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/assetserviceutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/assetserviceutils",
|
|
3
|
-
"version": "5.19.
|
|
3
|
+
"version": "5.19.1",
|
|
4
4
|
"description": "Provides a wrapper for AssetService's async calls",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/instanceutils": "^13.17.
|
|
30
|
-
"@quenty/loader": "^10.8.
|
|
31
|
-
"@quenty/memoize": "^1.6.
|
|
32
|
-
"@quenty/promise": "^10.10.
|
|
29
|
+
"@quenty/instanceutils": "^13.17.1",
|
|
30
|
+
"@quenty/loader": "^10.8.1",
|
|
31
|
+
"@quenty/memoize": "^1.6.1",
|
|
32
|
+
"@quenty/promise": "^10.10.2"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
|
|
38
38
|
}
|
|
@@ -6,18 +6,19 @@ local require = require(script.Parent.loader).load(script)
|
|
|
6
6
|
|
|
7
7
|
local MemorizeUtils = require("MemorizeUtils")
|
|
8
8
|
local AssetServiceUtils = require("AssetServiceUtils")
|
|
9
|
+
local _ServiceBag = require("ServiceBag")
|
|
9
10
|
|
|
10
11
|
local AssetServiceCache = {}
|
|
11
12
|
AssetServiceCache.ServiceName = "AssetServiceCache"
|
|
12
13
|
|
|
13
|
-
function AssetServiceCache:Init(serviceBag)
|
|
14
|
+
function AssetServiceCache:Init(serviceBag: _ServiceBag.ServiceBag)
|
|
14
15
|
assert(not self._serviceBag, "Already initialized")
|
|
15
16
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
16
17
|
|
|
17
18
|
self:_ensureInit()
|
|
18
19
|
end
|
|
19
20
|
|
|
20
|
-
function AssetServiceCache:PromiseBundleDetails(bundleId)
|
|
21
|
+
function AssetServiceCache:PromiseBundleDetails(bundleId: number)
|
|
21
22
|
assert(type(bundleId) == "number", "Bad bundleId")
|
|
22
23
|
|
|
23
24
|
self:_ensureInit()
|
|
@@ -17,7 +17,7 @@ local AssetServiceUtils = {}
|
|
|
17
17
|
@param packageAssetId number
|
|
18
18
|
@return Promise<table>
|
|
19
19
|
]=]
|
|
20
|
-
function AssetServiceUtils.promiseAssetIdsForPackage(packageAssetId)
|
|
20
|
+
function AssetServiceUtils.promiseAssetIdsForPackage(packageAssetId: number)
|
|
21
21
|
assert(type(packageAssetId) == "number", "Bad packageAssetId")
|
|
22
22
|
|
|
23
23
|
return Promise.spawn(function(resolve, reject)
|
|
@@ -34,14 +34,14 @@ function AssetServiceUtils.promiseAssetIdsForPackage(packageAssetId)
|
|
|
34
34
|
return reject("Result was not an table")
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
resolve(result)
|
|
37
|
+
return resolve(result)
|
|
38
38
|
end)
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
--[=[
|
|
42
42
|
Gets the places and their name for the current game.
|
|
43
43
|
|
|
44
|
-
@return Pages
|
|
44
|
+
@return Promise<Pages>
|
|
45
45
|
]=]
|
|
46
46
|
function AssetServiceUtils.promiseGamePlaces()
|
|
47
47
|
return Promise.spawn(function(resolve, reject)
|
|
@@ -58,7 +58,7 @@ function AssetServiceUtils.promiseGamePlaces()
|
|
|
58
58
|
return reject("pages was not an table")
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
resolve(pages)
|
|
61
|
+
return resolve(pages)
|
|
62
62
|
end)
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -71,6 +71,11 @@ end
|
|
|
71
71
|
.Type string -- Item Type eg: "UserOutfit" or "Asset"
|
|
72
72
|
@within AssetServiceUtils
|
|
73
73
|
]=]
|
|
74
|
+
export type BundleDetailsItem = {
|
|
75
|
+
Id: number,
|
|
76
|
+
Name: string,
|
|
77
|
+
Type: string,
|
|
78
|
+
}
|
|
74
79
|
|
|
75
80
|
--[=[
|
|
76
81
|
Details for the bundle
|
|
@@ -83,14 +88,21 @@ end
|
|
|
83
88
|
.Items { BundleDetailsItem } -- An array of ValueTable objects
|
|
84
89
|
@within AssetServiceUtils
|
|
85
90
|
]=]
|
|
91
|
+
export type BundleDetails = {
|
|
92
|
+
Id: number,
|
|
93
|
+
Name: string,
|
|
94
|
+
Description: string,
|
|
95
|
+
BundleType: string,
|
|
96
|
+
Items: { BundleDetailsItem },
|
|
97
|
+
}
|
|
86
98
|
|
|
87
99
|
--[=[
|
|
88
100
|
Gets the bundle details
|
|
89
101
|
|
|
90
102
|
@param bundleId number
|
|
91
|
-
@return BundleDetails
|
|
103
|
+
@return Promise<BundleDetails>
|
|
92
104
|
]=]
|
|
93
|
-
function AssetServiceUtils.promiseBundleDetails(bundleId)
|
|
105
|
+
function AssetServiceUtils.promiseBundleDetails(bundleId: number)
|
|
94
106
|
assert(type(bundleId) == "number", "Bad bundleId")
|
|
95
107
|
|
|
96
108
|
return Promise.spawn(function(resolve, reject)
|
|
@@ -107,7 +119,7 @@ function AssetServiceUtils.promiseBundleDetails(bundleId)
|
|
|
107
119
|
return reject("Result was not an table")
|
|
108
120
|
end
|
|
109
121
|
|
|
110
|
-
resolve(result)
|
|
122
|
+
return resolve(result)
|
|
111
123
|
end)
|
|
112
124
|
end
|
|
113
125
|
|