Skip to content

Commit

Permalink
Merge pull request #10 from RupalSingla/IGM
Browse files Browse the repository at this point in the history
name and enum change
  • Loading branch information
RupalSingla authored Apr 3, 2024
2 parents 8e56a45 + 5940d7f commit 29b3a1e
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 78 deletions.
Binary file added Attributesheet_FIS.xlsx
Binary file not shown.
51 changes: 42 additions & 9 deletions api/build/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1078,9 +1078,6 @@ x-enum:
- code: ORD04
description: Errors in loan agreements or contracts
reference: <PR/Issue/Discussion Links md format text
- code: FLM201
description: Issuance - Policy Issuance Status policy document not received
reference: <PR/Issue/Discussion Links md format text
- code: PMT202
description: Issuance - Incorrect premium Amount
reference: <PR/Issue/Discussion Links md format text
Expand Down Expand Up @@ -1162,6 +1159,42 @@ x-enum:
- code: ORD226
description: Issuance - Nominee Updation
reference: <PR/Issue/Discussion Links md format text
- code: FLM201
description: Issuance - Policy Issuance Status policy document not received
reference: <PR/Issue/Discussion Links md format text
- code: FLM202
description: Not able to complete the KYC
reference: <PR/Issue/Discussion Links md format text
- code: FLM203
description: Not able to set up E-mandate
reference: <PR/Issue/Discussion Links md format text
- code: FLM204
description: OTP not received during the e-sign of agreement
reference: <PR/Issue/Discussion Links md format text
- code: FLM205
description: Not able to view the agreement
reference: <PR/Issue/Discussion Links md format text
- code: FLM206
description: Need to update the e-mandate details
reference: <PR/Issue/Discussion Links md format text
- code: FLM207
description: Feedback on collection call
reference: <PR/Issue/Discussion Links md format text
- code: FLM208
description: Stop Marketing Communications
reference: <PR/Issue/Discussion Links md format text
- code: FLM209
description: Request for documents
reference: <PR/Issue/Discussion Links md format text
- code: FLM210
description: Need to update personal details
reference: <PR/Issue/Discussion Links md format text\
- code: FLM211
description: revoke consent already granted to collect personal data
reference: <PR/Issue/Discussion Links md format text
- code: FLM212
description: delete/forget existing data against my profile
reference: <PR/Issue/Discussion Links md format text
order_details:
state:
- code: GRANTED
Expand Down Expand Up @@ -1276,7 +1309,7 @@ x-tags:
description: Maximum amount for the loan which a borrower can take
reference: <PR/Issue/Discussion Links md format text>
x-flows:
- summary: Retail IGM Flow
- summary: RETAIL
details:
- description: detailed flow
mermaid: |-
Expand Down Expand Up @@ -1585,7 +1618,7 @@ x-flows:
short_desc: No action is required
long_desc: No action is required for this complaint
action_triggered: NO-ACTION
- summary: FIS IGM Flow
- summary: CREDIT
details:
- description: detailed flow
mermaid: |-
Expand Down Expand Up @@ -1874,7 +1907,7 @@ x-flows:
long_desc: For this complaint, loan is now disbursed
action_triggered: CANCEL
refund_amount: '100'
- summary: MOTOR IGM Flow
- summary: INSURANCE
details:
- description: detailed flow
mermaid: |-
Expand Down Expand Up @@ -2452,7 +2485,7 @@ x-examples:
description: TBD
value: *ref_8
x-attributes:
IGM:
RETAIL:
attribute_set:
issue:
message:
Expand Down Expand Up @@ -3206,7 +3239,7 @@ x-attributes:
description: >-
Amount refunded as part of the resolution process, if
applicable.
FIS_IGM:
CREDIT:
attribute_set:
issue:
message:
Expand Down Expand Up @@ -3960,7 +3993,7 @@ x-attributes:
description: >-
Amount refunded as part of the resolution process, if
applicable.
MOTOR_IGM:
INSURANCE:
attribute_set:
issue:
message:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions api/components/attributes/index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
IGM:
RETAIL:
attribute_set:
$ref: "./IGM/index.yaml"
FIS_IGM:
$ref: "./RETAIL/index.yaml"
CREDIT:
attribute_set:
$ref: "./FIS_IGM/index.yaml"
MOTOR_IGM:
$ref: "./CREDIT/index.yaml"
INSURANCE:
attribute_set:
$ref: "./MOTOR_IGM/index.yaml"
$ref: "./INSURANCE/index.yaml"
7 changes: 4 additions & 3 deletions api/components/build-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const fs = require("fs");
async function buildAttribiutes() {
let attributes = {};
const workSheetsFromBuffer = xlsx.parse(`../../Attributesheet_IGM.xlsx`);
// const workSheetsFromBuffer = xlsx.parse(`../../Attributesheet_FIS.xlsx`);
for (let i = 0; i < workSheetsFromBuffer.length; i++) {
const array = workSheetsFromBuffer[i];
const filterArray = array.data.filter((subArr) => subArr.length > 0);
Expand All @@ -16,9 +17,9 @@ async function buildAttribiutes() {
}
if (Object.keys(attributes)?.length) {
const attributesYaml = yaml.dump(attributes);
fs.writeFileSync(`./attributes/IGM/index.yaml`, attributesYaml);
fs.writeFileSync(`./attributes/FIS_IGM/index.yaml`, attributesYaml);
fs.writeFileSync(`./attributes/MOTOR_IGM/index.yaml`, attributesYaml);
// fs.writeFileSync(`./attributes/RETAIL/index.yaml`, attributesYaml);
// fs.writeFileSync(`./attributes/CREDIT/index.yaml`, attributesYaml);
fs.writeFileSync(`./attributes/INSURANCE/index.yaml`, attributesYaml);

}
}
Expand Down
49 changes: 46 additions & 3 deletions api/components/enums/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ issue:
description: Errors in loan agreements or contracts
reference: <PR/Issue/Discussion Links md format text

- code: FLM201
description: Issuance - Policy Issuance Status policy document not received
reference: <PR/Issue/Discussion Links md format text

- code: PMT202
description: Issuance - Incorrect premium Amount
reference: <PR/Issue/Discussion Links md format text
Expand Down Expand Up @@ -144,6 +142,51 @@ issue:
- code: ORD226
description: Issuance - Nominee Updation
reference: <PR/Issue/Discussion Links md format text


- code: FLM201
description: Issuance - Policy Issuance Status policy document not received
reference: <PR/Issue/Discussion Links md format text
- code: FLM202
description: Not able to complete the KYC
reference: <PR/Issue/Discussion Links md format text
- code: FLM203
description: Not able to set up E-mandate
reference: <PR/Issue/Discussion Links md format text
- code: FLM204
description: OTP not received during the e-sign of agreement
reference: <PR/Issue/Discussion Links md format text
- code: FLM205
description: Not able to view the agreement
reference: <PR/Issue/Discussion Links md format text
- code: FLM206
description: Need to update the e-mandate details
reference: <PR/Issue/Discussion Links md format text
- code: FLM207
description: Feedback on collection call
reference: <PR/Issue/Discussion Links md format text
- code: FLM208
description: Stop Marketing Communications
reference: <PR/Issue/Discussion Links md format text
- code: FLM209
description: Request for documents
reference: <PR/Issue/Discussion Links md format text
- code: FLM210
description: Need to update personal details
reference: <PR/Issue/Discussion Links md format text\
- code: FLM211
description: revoke consent already granted to collect personal data
reference: <PR/Issue/Discussion Links md format text
- code: FLM212
description: delete/forget existing data against my profile
reference: <PR/Issue/Discussion Links md format text







order_details:
state:
- code: GRANTED
Expand Down
Empty file added api/components/enums/issue.yaml
Empty file.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
summary: FIS IGM Flow
summary: CREDIT
details:
- description: detailed flow
mermaid: >-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
summary: MOTOR IGM Flow
summary: INSURANCE
details:
- description: detailed flow
mermaid: >-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
summary: Retail IGM Flow
summary: RETAIL
details:
- description: detailed flow
mermaid: >-
Expand Down
6 changes: 3 additions & 3 deletions api/components/flows/index.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- $ref: "./igm-flow/index.yaml"
- $ref: "./fis-igm-flow/index.yaml"
- $ref: "./motor-insurance/index.yaml"
- $ref: "./Retail/index.yaml"
- $ref: "./Credit/index.yaml"
- $ref: "./Insurance/index.yaml"
49 changes: 0 additions & 49 deletions api/components/ref.js

This file was deleted.

8 changes: 7 additions & 1 deletion ui/attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,22 @@ function flattenObject(obj, prefix = "", result = {},requiredAttr) {
const cell2 = document.createElement("td");
const cell3 = document.createElement("td");
const cell4 = document.createElement("td");
const cell5 = document.createElement("td");
const cell6 = document.createElement("td");

cell1.textContent = prefix;
cell2.textContent = obj["required"];
cell3.textContent = obj["usage"];
cell4.textContent = obj["description"];
cell4.textContent = obj["owner"]
cell5.textContent = obj["type"];
cell6.textContent = obj["description"]

newRow.appendChild(cell1);
newRow.appendChild(cell2);
newRow.appendChild(cell3);
newRow.appendChild(cell4);
newRow.appendChild(cell5);
newRow.appendChild(cell6);

table.appendChild(newRow);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/build.js

Large diffs are not rendered by default.

0 comments on commit 29b3a1e

Please sign in to comment.