@@ -55,6 +55,12 @@ single record object.</p>
5555if <code >aliasRecords</code > is falsy). If it' ; s a plain object, it' ; s used directly
5656(or an empty object if <code >aliasRecords</code > is falsy).</p >
5757</dd >
58+ <dt ><a href =" #_addRequestAlias " >_addRequestAlias(aliasName, requestHashKey)</a > ℗</dt >
59+ <dd ><p >Adds a request alias to the request aliases object.</p >
60+ <p >This method maps a specific <code >aliasName</code > to a <code >requestHashKey</code > in the
61+ <code >requestAliases</code > dictionary. This allows the system to reference a
62+ specific request context using a human-readable alias.</p >
63+ </dd >
5864<dt ><a href =" #_generateHashId " >_generateHashId([object])</a > ⇒ <code >string</code > ℗</dt >
5965<dd ><p >Generates a hash ID based on the provided object.</p >
6066<p >This method generates a unique hash ID by stringifying the given
@@ -332,6 +338,12 @@ not exist, it returns the provided <code>fallbackRecords</code> (if any).</p>
332338<p >If <code >fallbackRecords</code > is a plain object, the method injects collection
333339actions into it using <code >_ injectCollectionActions</code > before returning it.</p >
334340</dd >
341+ <dt ><a href =" #getRequestAlias " >getRequestAlias(aliasName)</a > ⇒ <code >Object</code > | <code >null</code ></dt >
342+ <dd ><p >Retrieves the request data by resolving a readable alias to its latest request hash.</p >
343+ <p >The <code >requestAliases</code > property acts as a reference map, linking a human-readable
344+ alias to the hash of the most recent request. This method performs a lookup
345+ on that hash to return the actual request data.</p >
346+ </dd >
335347<dt ><a href =" #createRecord " >createRecord(collectionName, [collectionRecord], [collectionRecordRandomId])</a > ⇒ <code >Object</code ></dt >
336348<dd ><p >Creates a new record in a specified collection.</p >
337349<p >This method creates a new record in the collection with the given
@@ -376,8 +388,13 @@ request caching, and asynchronous loading of related resources.</p>
376388<dt ><a href =" #_processRequestURL " >_processRequestURL(requestOptions, resourceName, resourceId)</a ></dt >
377389<dd ><p >Processes the URL for a request, constructing it from the resource name and ID.</p >
378390</dd >
379- <dt ><a href =" #_processRequestAlias " >_processRequestAlias(resourceConfig, collectionRecords)</a ></dt >
380- <dd ><p >Processes an alias for a request, adding it to the aliases store.</p >
391+ <dt ><a href =" #_processRequestAlias " >_processRequestAlias(requestObject, collectionRecords)</a > ℗</dt >
392+ <dd ><p >Processes an alias for a request, mapping both the records and the request hash.</p >
393+ <p >This method extracts the alias name from the request configuration and:</p >
394+ <ol >
395+ <li >Maps the alias name to the provided collection records in the aliases store.</li >
396+ <li >Maps the alias name to the generated request hash key in the request aliases store.</li >
397+ </ol >
381398</dd >
382399<dt ><a href =" #_processRequestOverride " >_processRequestOverride(resourceConfig, requestOptions)</a ></dt >
383400<dd ><p >Processes request overrides based on the provided configuration.</p >
@@ -646,6 +663,23 @@ if `aliasRecords` is falsy). If it's a plain object, it's used directly
646663| aliasName | <code >string</code > | The name of the alias. |
647664| aliasRecords | <code >Array</code > \| <code >Object</code > | The records to be aliased. |
648665
666+ <a name =" _addRequestAlias " ></a >
667+
668+ ## \_ addRequestAlias(aliasName, requestHashKey) ℗
669+ Adds a request alias to the request aliases object.
670+
671+ This method maps a specific ` aliasName ` to a ` requestHashKey ` in the
672+ ` requestAliases ` dictionary. This allows the system to reference a
673+ specific request context using a human-readable alias.
674+
675+ ** Kind** : global function
676+ ** Access** : private
677+
678+ | Param | Type | Description |
679+ | --- | --- | --- |
680+ | aliasName | <code >string</code > | The name of the alias for the request. |
681+ | requestHashKey | <code >string</code > | The unique hash key identifying the request. |
682+
649683<a name =" _generateHashId " ></a >
650684
651685## \_ generateHashId([ object] ) ⇒ <code >string</code > ℗
@@ -1252,6 +1286,22 @@ actions into it using `_injectCollectionActions` before returning it.
12521286| aliasName | <code >string</code > | The name of the alias to retrieve. |
12531287| [ fallbackRecords] | <code >Array</code > \| <code >Object</code > | Optional fallback records to return if the alias is not found. |
12541288
1289+ <a name =" getRequestAlias " ></a >
1290+
1291+ ## getRequestAlias(aliasName) ⇒ <code >Object</code > \| <code >null</code >
1292+ Retrieves the request data by resolving a readable alias to its latest request hash.
1293+
1294+ The ` requestAliases ` property acts as a reference map, linking a human-readable
1295+ alias to the hash of the most recent request. This method performs a lookup
1296+ on that hash to return the actual request data.
1297+
1298+ ** Kind** : global function
1299+ ** Returns** : <code >Object</code > \| <code >null</code > - The request data object if found; otherwise, null.
1300+
1301+ | Param | Type | Description |
1302+ | --- | --- | --- |
1303+ | aliasName | <code >string</code > | The readable alias name to resolve. |
1304+
12551305<a name =" createRecord " ></a >
12561306
12571307## createRecord(collectionName, [ collectionRecord] , [ collectionRecordRandomId] ) ⇒ <code >Object</code >
@@ -1376,15 +1426,20 @@ Processes the URL for a request, constructing it from the resource name and ID.
13761426
13771427<a name =" _processRequestAlias " ></a >
13781428
1379- ## \_ processRequestAlias(resourceConfig, collectionRecords)
1380- Processes an alias for a request, adding it to the aliases store.
1429+ ## \_ processRequestAlias(requestObject, collectionRecords) ℗
1430+ Processes an alias for a request, mapping both the records and the request hash.
1431+
1432+ This method extracts the alias name from the request configuration and:
1433+ 1 . Maps the alias name to the provided collection records in the aliases store.
1434+ 2 . Maps the alias name to the generated request hash key in the request aliases store.
13811435
13821436** Kind** : global function
1437+ ** Access** : private
13831438
13841439| Param | Type | Description |
13851440| --- | --- | --- |
1386- | resourceConfig | <code >Object</code > | The configuration object for the resource request, containing the alias information . |
1387- | collectionRecords | <code >Array</code > \| <code >Object</code > | The records to be aliased. Can be an array or an object. |
1441+ | requestObject | <code >Object</code > | The full request object used to generate the hash ID and containing the resource configuration . |
1442+ | collectionRecords | <code >Array</code > \| <code >Object</code > | The records to be aliased. Can be an array or a single object. |
13881443
13891444<a name =" _processRequestOverride " ></a >
13901445
0 commit comments