diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 563864ec..87a2abaf 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -52,6 +52,7 @@ https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-git ## Added to documentation? +- [ ] πŸ“– [Mock App docs site](https://uncefact.github.io/tests-untp/docs/mock-apps/) - [ ] πŸ“œ README.md - [ ] πŸ“• storybook - [ ] πŸ™… no documentation needed diff --git a/app-config.json b/app-config.json index 43a21289..99c680cd 100644 --- a/app-config.json +++ b/app-config.json @@ -731,6 +731,23 @@ } } ] + }, + { + "name": "mergeToLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps", + "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" + } + ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps" + } + ] } ] }, @@ -1422,6 +1439,23 @@ } } ] + }, + { + "name": "mergeToLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps", + "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" + } + ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps" + } + ] } ] }, @@ -1433,7 +1467,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "orchard_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -1624,7 +1658,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "orchard_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -1636,6 +1670,14 @@ "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_transaction_event" + } + ] } ] }, @@ -4250,7 +4292,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "packhouse_facility_transaction_event", "nestedComponents": [ { "name": "JsonForm", @@ -4892,10 +4934,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "packhouse_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "packhouse_facility_dpps" + } + ] } ] }, @@ -4907,7 +4957,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "packhouse_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -5098,7 +5148,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "packhouse_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -5106,10 +5156,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "packhouse_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "packhouse_facility_transaction_event" + } + ] } ] } @@ -5778,10 +5836,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "fumigation_and_freight_forwarding_facility_dpps" + } + ] } ] }, @@ -5793,7 +5859,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -5984,7 +6050,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -5992,10 +6058,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "fumigation_and_freight_forwarding_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "fumigation_and_freight_forwarding_facility_transaction_event" + } + ] } ] } @@ -6664,10 +6738,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "airport_terminal_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "airport_terminal_facility_dpps" + } + ] } ] }, @@ -6679,7 +6761,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "airport_terminal_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -6870,7 +6952,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "airport_terminal_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -6878,10 +6960,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "airport_terminal_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "airport_terminal_facility_transaction_event" + } + ] } ] } diff --git a/documentation/docs/mock-apps/components/custom-button.md b/documentation/docs/mock-apps/components/custom-button.md index 218fb30d..3dd856a7 100644 --- a/documentation/docs/mock-apps/components/custom-button.md +++ b/documentation/docs/mock-apps/components/custom-button.md @@ -9,7 +9,9 @@ import Disclaimer from '../../_disclaimer.mdx'; ## Description -The CustomButton component renders a button with loading state and optional download functionality. It provides a flexible and reusable button solution for various use cases within the application. +The CustomButton component renders a button with a loading state and optional download functionality, offering a flexible and reusable solution for various use cases within the application. + +This component is used to download data returned by the last service in the services array defined in the application configuration (app-config.json). If the last service does not return any data, the button will not be displayed. For details about the types of services (function types), refer to the `Function Type` section in each service’s documentation. ## Example diff --git a/documentation/docs/mock-apps/configuration/service-config.md b/documentation/docs/mock-apps/configuration/service-config.md index 0490f9e8..babf6c0d 100644 --- a/documentation/docs/mock-apps/configuration/service-config.md +++ b/documentation/docs/mock-apps/configuration/service-config.md @@ -87,6 +87,14 @@ graph TD "objectKeyPath": "/vc/credentialSubject/product/itemIdentifiers/0/identifierValue" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "Steel_Mill_1_dpps" + } + ] } ] } diff --git a/documentation/docs/mock-apps/services/convert-object-to-array-1-item.md b/documentation/docs/mock-apps/services/convert-object-to-array-1-item.md index a3695085..cfa97ecc 100644 --- a/documentation/docs/mock-apps/services/convert-object-to-array-1-item.md +++ b/documentation/docs/mock-apps/services/convert-object-to-array-1-item.md @@ -29,6 +29,12 @@ flowchart TD ## Definitions -| Property | Required | Description | Type | -| ----------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | | -| path | No | The path of the data wants to convert. If the path is undefined, it will convert the whole data. | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | +| Property | Required | Description | Type | +| -------- | -------- | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------- | +| path | No | The path of the data wants to convert. If the path is undefined, it will convert the whole data. | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | diff --git a/documentation/docs/mock-apps/services/get-value-from-local-storage.md b/documentation/docs/mock-apps/services/get-value-from-local-storage.md new file mode 100644 index 00000000..a720476a --- /dev/null +++ b/documentation/docs/mock-apps/services/get-value-from-local-storage.md @@ -0,0 +1,56 @@ +--- +sidebar_position: 28 +title: Get Value From Local Storage +--- + +import Disclaimer from '../../\_disclaimer.mdx'; + + + +## Description + +The `getValueFromLocalStorage` service retrieves data from the browser's local storage. It takes a specific storage key to locate the data and an optional key to extract a particular value from the stored object. If no key is provided, the entire item is returned. Additionally, the function can update a provided state object with the retrieved data if a `stateKey` is specified. + +## Diagram + +```mermaid +sequenceDiagram + participant C as Client + participant G as getValueFromLocalStorage + participant L as LocalStorage + + C->>G: Call getValueFromLocalStorage(data, params) + G->>L: Get data from LocalStorage (storageKey) + L-->>G: Return stored data + G->>G: Parse data and extract key (if specified) + G->>G: Update state object (if stateKey is specified) + G-->>C: Return retrieved data or updated state +``` + +## Example + +```json +{ + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "topLineSteel_dpps", + "key": "/vc" + } + ] +} +``` + +## Definitions + +| Property | Required | Description | Type | +| ---------- | -------- | ------------------------------------------------------------------------------------------------ | ------ | +| storageKey | Yes | The key used to locate the specific data in local storage | String | +| key | No | The key to retrieve a specific value within the stored object. If not provided, returns all data | String | +| stateKey | No | The key used to update the provided state object with the retrieved data | String | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | diff --git a/documentation/docs/mock-apps/services/merge-to-local-storage.md b/documentation/docs/mock-apps/services/merge-to-local-storage.md index ae5f641a..d1651d01 100644 --- a/documentation/docs/mock-apps/services/merge-to-local-storage.md +++ b/documentation/docs/mock-apps/services/merge-to-local-storage.md @@ -3,7 +3,7 @@ sidebar_position: 27 title: Merge To Local Storage --- -import Disclaimer from '../../_disclaimer.mdx'; +import Disclaimer from '../../\_disclaimer.mdx'; @@ -48,4 +48,10 @@ sequenceDiagram | Property | Required | Description | Type | |----------|----------|-------------|------| | storageKey | Yes | The key used to access the specific data in local storage | String | -| objectKeyPath | Yes | JSON path to the unique identifier within the object to be stored | String | \ No newline at end of file +| objectKeyPath | Yes | JSON path to the unique identifier within the object to be stored | String | + +## Function type + +| Type | Description | +| ---- | ----------------------------------------------------------------- | +| Void | Performs an operation without returning any data after execution. | diff --git a/documentation/docs/mock-apps/services/process-aggregation-event.md b/documentation/docs/mock-apps/services/process-aggregation-event.md index 8a11b5b6..0d25a0ff 100644 --- a/documentation/docs/mock-apps/services/process-aggregation-event.md +++ b/documentation/docs/mock-apps/services/process-aggregation-event.md @@ -92,3 +92,9 @@ P-->>C: Return VC and resolver URL | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | diff --git a/documentation/docs/mock-apps/services/process-association-event.md b/documentation/docs/mock-apps/services/process-association-event.md index 64b81438..1f5cc00d 100644 --- a/documentation/docs/mock-apps/services/process-association-event.md +++ b/documentation/docs/mock-apps/services/process-association-event.md @@ -88,3 +88,9 @@ P-->>C: Return association event VC and resolver URL | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the association for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | diff --git a/documentation/docs/mock-apps/services/process-digital-conformity-credential.md b/documentation/docs/mock-apps/services/process-digital-conformity-credential.md index 2918db16..7cd9ee41 100644 --- a/documentation/docs/mock-apps/services/process-digital-conformity-credential.md +++ b/documentation/docs/mock-apps/services/process-digital-conformity-credential.md @@ -88,3 +88,9 @@ P-->>C: Return digital conformity credential VC and resolver URL | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | diff --git a/documentation/docs/mock-apps/services/process-digital-facility-record.md b/documentation/docs/mock-apps/services/process-digital-facility-record.md index 00bda504..2012fe89 100644 --- a/documentation/docs/mock-apps/services/process-digital-facility-record.md +++ b/documentation/docs/mock-apps/services/process-digital-facility-record.md @@ -92,3 +92,10 @@ P-->>C: Return digital facility record VC and resolver URL | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/documentation/docs/mock-apps/services/process-digital-identity-anchor.md b/documentation/docs/mock-apps/services/process-digital-identity-anchor.md index dc2c5e49..803e41c1 100644 --- a/documentation/docs/mock-apps/services/process-digital-identity-anchor.md +++ b/documentation/docs/mock-apps/services/process-digital-identity-anchor.md @@ -92,3 +92,10 @@ P-->>C: Return digital identity anchor VC and resolver URL | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/documentation/docs/mock-apps/services/process-dpp.md b/documentation/docs/mock-apps/services/process-dpp.md index 3d4a2d3e..95f2758b 100644 --- a/documentation/docs/mock-apps/services/process-dpp.md +++ b/documentation/docs/mock-apps/services/process-dpp.md @@ -109,3 +109,10 @@ P-->>C: Return VC and resolver URL | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/documentation/docs/mock-apps/services/process-object-event.md b/documentation/docs/mock-apps/services/process-object-event.md index daacdffb..0a98563d 100644 --- a/documentation/docs/mock-apps/services/process-object-event.md +++ b/documentation/docs/mock-apps/services/process-object-event.md @@ -92,3 +92,10 @@ P-->>C: Return object event VC and resolver URL | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/documentation/docs/mock-apps/services/process-traceability-event.md b/documentation/docs/mock-apps/services/process-traceability-event.md index f19155ee..40d7a8a3 100644 --- a/documentation/docs/mock-apps/services/process-traceability-event.md +++ b/documentation/docs/mock-apps/services/process-traceability-event.md @@ -88,3 +88,10 @@ P-->>C: Return event VC and resolver URL | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | | eventTypePath | Yes | JSON path to the event type in the credential subject | String | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/documentation/docs/mock-apps/services/process-transaction-event.md b/documentation/docs/mock-apps/services/process-transaction-event.md index f80047c6..968d9e4f 100644 --- a/documentation/docs/mock-apps/services/process-transaction-event.md +++ b/documentation/docs/mock-apps/services/process-transaction-event.md @@ -99,3 +99,10 @@ P-->>C: Return VC and resolver URL | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | | localStorageParams | Yes | Configuration for local storage management | [LocalStorage](/docs/mock-apps/common/local-storage) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/documentation/docs/mock-apps/services/process-transformation-event-only.md b/documentation/docs/mock-apps/services/process-transformation-event-only.md index 86d9c9cd..1c06312f 100644 --- a/documentation/docs/mock-apps/services/process-transformation-event-only.md +++ b/documentation/docs/mock-apps/services/process-transformation-event-only.md @@ -88,3 +88,10 @@ P-->>C: Return transformation event VC and resolver URL | storage | Yes | Configuration for storage service | [Storage](/docs/mock-apps/common/storage) | | dlr | Yes | Configuration for the Digital Link Resolver | [IDR](/docs/mock-apps/common/idr) | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the association for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/documentation/docs/mock-apps/services/process-transformation-event.md b/documentation/docs/mock-apps/services/process-transformation-event.md index 98dfa48d..4fc07cbc 100644 --- a/documentation/docs/mock-apps/services/process-transformation-event.md +++ b/documentation/docs/mock-apps/services/process-transformation-event.md @@ -148,3 +148,10 @@ P-->>C: Return EPCIS VC | dppCredentials | Yes | Mapping configuration for DPP credentials | [Construct Data](/docs/mock-apps/common/construct-data)[] | | identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | [IdentifierKeyPath](/docs/mock-apps/common/identifier-key-path) | | transformationEventCredential | Yes | Mapping and generation configuration for the transformation event credential | [Construct Data](/docs/mock-apps/common/construct-data) | + +## Function type + +| Type | Description | +| ---------- | ------------------------------------------------------------------------------------------------------------------------ | +| ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. | + diff --git a/packages/components/src/constants/app-config.json b/packages/components/src/constants/app-config.json index 43a21289..99c680cd 100644 --- a/packages/components/src/constants/app-config.json +++ b/packages/components/src/constants/app-config.json @@ -731,6 +731,23 @@ } } ] + }, + { + "name": "mergeToLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps", + "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" + } + ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps" + } + ] } ] }, @@ -1422,6 +1439,23 @@ } } ] + }, + { + "name": "mergeToLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps", + "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" + } + ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps" + } + ] } ] }, @@ -1433,7 +1467,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "orchard_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -1624,7 +1658,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "orchard_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -1636,6 +1670,14 @@ "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_transaction_event" + } + ] } ] }, @@ -4250,7 +4292,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "packhouse_facility_transaction_event", "nestedComponents": [ { "name": "JsonForm", @@ -4892,10 +4934,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "packhouse_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "packhouse_facility_dpps" + } + ] } ] }, @@ -4907,7 +4957,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "packhouse_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -5098,7 +5148,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "packhouse_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -5106,10 +5156,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "packhouse_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "packhouse_facility_transaction_event" + } + ] } ] } @@ -5778,10 +5836,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "fumigation_and_freight_forwarding_facility_dpps" + } + ] } ] }, @@ -5793,7 +5859,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -5984,7 +6050,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -5992,10 +6058,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "fumigation_and_freight_forwarding_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "fumigation_and_freight_forwarding_facility_transaction_event" + } + ] } ] } @@ -6664,10 +6738,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "airport_terminal_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "airport_terminal_facility_dpps" + } + ] } ] }, @@ -6679,7 +6761,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "airport_terminal_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -6870,7 +6952,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "airport_terminal_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -6878,10 +6960,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "airport_terminal_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "airport_terminal_facility_transaction_event" + } + ] } ] } diff --git a/packages/mock-app/src/constants/app-config.json b/packages/mock-app/src/constants/app-config.json index 43a21289..99c680cd 100644 --- a/packages/mock-app/src/constants/app-config.json +++ b/packages/mock-app/src/constants/app-config.json @@ -731,6 +731,23 @@ } } ] + }, + { + "name": "mergeToLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps", + "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" + } + ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps" + } + ] } ] }, @@ -1422,6 +1439,23 @@ } } ] + }, + { + "name": "mergeToLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps", + "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" + } + ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_dpps" + } + ] } ] }, @@ -1433,7 +1467,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "orchard_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -1624,7 +1658,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "orchard_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -1636,6 +1670,14 @@ "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "orchard_facility_transaction_event" + } + ] } ] }, @@ -4250,7 +4292,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "packhouse_facility_transaction_event", "nestedComponents": [ { "name": "JsonForm", @@ -4892,10 +4934,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "packhouse_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "packhouse_facility_dpps" + } + ] } ] }, @@ -4907,7 +4957,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "packhouse_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -5098,7 +5148,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "packhouse_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -5106,10 +5156,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "packhouse_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "packhouse_facility_transaction_event" + } + ] } ] } @@ -5778,10 +5836,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "fumigation_and_freight_forwarding_facility_dpps" + } + ] } ] }, @@ -5793,7 +5859,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -5984,7 +6050,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "fumigation_and_freight_forwarding_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -5992,10 +6058,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "fumigation_and_freight_forwarding_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "fumigation_and_freight_forwarding_facility_transaction_event" + } + ] } ] } @@ -6664,10 +6738,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "CherriesFarm_dpps", + "storageKey": "airport_terminal_facility_dpps", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "airport_terminal_facility_dpps" + } + ] } ] }, @@ -6679,7 +6761,7 @@ "name": "LocalStorageLoader", "type": "EntryData", "props": { - "storageKey": "CherriesFarm_dpps", + "storageKey": "airport_terminal_facility_dpps", "nestedComponents": [ { "name": "JsonForm", @@ -6870,7 +6952,7 @@ } }, "identifierKeyPath": "/0/id", - "localStorageParams": { "storageKey": "CherriesFarm_dpps", "keyPath": "/0/epcList/index/name" } + "localStorageParams": { "storageKey": "airport_terminal_facility_dpps", "keyPath": "/0/epcList/index/name" } } ] }, @@ -6878,10 +6960,18 @@ "name": "mergeToLocalStorage", "parameters": [ { - "storageKey": "orchard_facility_transaction_event", + "storageKey": "airport_terminal_facility_transaction_event", "objectKeyPath": "/decodedEnvelopedVC/credentialSubject/0/id" } ] + }, + { + "name": "getValueFromLocalStorage", + "parameters": [ + { + "storageKey": "airport_terminal_facility_transaction_event" + } + ] } ] }