ofsc-utility 1.0.29 → 1.0.30
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.
|
@@ -27,11 +27,16 @@ async function getPropertiesDropDownMetaData(clientId, clientSecret, instanceUrl
|
|
|
27
27
|
const res = await (0, utilities_1.fetchWithRetry)(url, clientId, clientSecret, instanceUrl, token);
|
|
28
28
|
// Keep the latest token for subsequent requests.
|
|
29
29
|
token = res.token;
|
|
30
|
-
|
|
30
|
+
if (res.data.items) {
|
|
31
|
+
responsedata = [...responsedata, ...res.data.items];
|
|
32
|
+
}
|
|
33
|
+
// If the API indicates there are no more items, exit the loop.
|
|
31
34
|
if (!res.data.hasMore)
|
|
32
35
|
break;
|
|
36
|
+
// Update the offset for the next page of results.
|
|
33
37
|
offset = res.data.offset + limit;
|
|
34
38
|
}
|
|
39
|
+
// Transform the raw enumeration data into the final sheet format.
|
|
35
40
|
return transformData(responsedata, allUsedPropes, label);
|
|
36
41
|
}
|
|
37
42
|
/**
|