From 5e58e646b119d5d609c9025e19c86ce40320f17e Mon Sep 17 00:00:00 2001 From: RishiChaubey31 Date: Thu, 28 Aug 2025 11:30:05 +0530 Subject: [PATCH 1/5] update/ooo-req-schema --- ooo-request/README.md | 53 ++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/ooo-request/README.md b/ooo-request/README.md index 5f1c133..c839190 100644 --- a/ooo-request/README.md +++ b/ooo-request/README.md @@ -3,15 +3,16 @@ ```json { "id": "String", - "userId": "String", - "state": "", + "status": "", "from": "Timestamp", "until": "Timestamp", - "message": "String", + "comment": "String", "createdAt": "Timestamp", + "requestedBy":"String", "updatedAt": "Timestamp", - "lastUpdatedBy": "String", - "reason": "String" + "lastModifiedBy": "String", + "reason": "String", + "type":"OOO" } ``` @@ -20,15 +21,16 @@ | Field | Type | Description | | ------------- | --------- | ---------------------------------------------------------- | | id | String | Unique identifier for the document. | -| userId | String | The id of the user who created the request. | -| state | String | The state of the request like APPROVED, REJECTED, PENDING. | +| requestedBy | String | The id of the user who created the request. | +| status | String | The state of the request like APPROVED, REJECTED, PENDING. | | from | Timestamp | Unix timestamp for the start date of the OOO request. | | until | Timestamp | Unix timestamp for the end date of the OOO request. | -| message | String | The message for the request. | +| reason | String | The reason for the request. | | createdAt | Timestamp | Unix timestamp for the creation time of the request. | | updatedAt | Timestamp | Unix timestamp for the last update time of the request. | -| lastUpdatedBy | String | The id of the superuser who processed the request | -| reason | String | The reason for the APPROVED or REJECTED. | +| lastModifiedBy| String | The id of the superuser who processed the request | +| comment | String | The reason for the APPROVED or REJECTED. | +| type | String | The type of request being sent like OOO, Onboarding etc | ### Example data @@ -37,13 +39,16 @@ ```json { "id": "OfsT1Tlid4Y6Y0d", - "userId": "dfdsd5T1Tlid4Y6Y0d", - "state": "PENDING", + "requestedBy": "dfdsd5T1Tlid4Y6Y0d", + "status": "PENDING", "from": 1709438800000, "until": 1709870800000, - "message": "Out of office for personal reasons.", + "reason": "Out of office for personal reasons.", "createdAt": 1709438900000, - "updatedAt": 1709438900000 + "updatedAt": 1709438900000, + "comment": "null", + "lastModifiedBy":"null", + "type":"OOO" } ``` @@ -52,15 +57,16 @@ ```json { "id": "MpykhM8sT1Tlid4Y6Y0d", - "userId": "dfdsd5T1Tlid4Y6Y0d", - "state": "APPROVED", + "requestedBy": "dfdsd5T1Tlid4Y6Y0d", + "status": "APPROVED", "from": 1709525300000, "until": 1709870800000, - "message": "Attending a work conference.", + "reason": "Attending a work conference.", "createdAt": 1709525400000, "updatedAt": 1709827800000, - "lastUpdatedBy": "Sedv5T1Tlid4Y6Y0d", - "reason": "Nice to have you back." + "lastModifiedBy": "Sedv5T1Tlid4Y6Y0d", + "comment": "Nice to have you back.", + "type":"OOO" } ``` @@ -70,13 +76,14 @@ { "id": "Me8sT1Tlid4Y6Y0d", "userId": "dfdsd5T1Tlid4Y6Y0d", - "state": "REJECTED", + "status": "REJECTED", "from": 1709603700000, "until": 1709785600000, - "message": "Out of office for personal reasons.", + "reason": "Out of office for personal reasons.", "createdAt": 1708763200000, "updatedAt": 1708841500000, - "lastUpdatedBy": "Sedv5T1Tlid4Y6Y0d", - "reason": "Not enough vacation days." + "lastModifiedBy": "Sedv5T1Tlid4Y6Y0d", + "comment": "Not enough vacation days.", + "type":"OOO" } ``` From 5437b7120ce63d34e787fddab48241ee92eec79b Mon Sep 17 00:00:00 2001 From: RishiChaubey31 Date: Thu, 28 Aug 2025 11:47:01 +0530 Subject: [PATCH 2/5] fix-grammer --- ooo-request/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ooo-request/README.md b/ooo-request/README.md index c839190..fb6f736 100644 --- a/ooo-request/README.md +++ b/ooo-request/README.md @@ -6,11 +6,11 @@ "status": "", "from": "Timestamp", "until": "Timestamp", - "comment": "String", + "comment": "String | null", "createdAt": "Timestamp", "requestedBy":"String", "updatedAt": "Timestamp", - "lastModifiedBy": "String", + "lastModifiedBy": "String | null", "reason": "String", "type":"OOO" } @@ -21,11 +21,11 @@ | Field | Type | Description | | ------------- | --------- | ---------------------------------------------------------- | | id | String | Unique identifier for the document. | -| requestedBy | String | The id of the user who created the request. | -| status | String | The state of the request like APPROVED, REJECTED, PENDING. | +| requestedBy | String | UID of the user who created the request. | +| status | String | One of: PENDING | APPROVED | REJECTED. | | from | Timestamp | Unix timestamp for the start date of the OOO request. | | until | Timestamp | Unix timestamp for the end date of the OOO request. | -| reason | String | The reason for the request. | +| reason | String | Requester-provided reason for the OOO. | | createdAt | Timestamp | Unix timestamp for the creation time of the request. | | updatedAt | Timestamp | Unix timestamp for the last update time of the request. | | lastModifiedBy| String | The id of the superuser who processed the request | @@ -46,8 +46,8 @@ "reason": "Out of office for personal reasons.", "createdAt": 1709438900000, "updatedAt": 1709438900000, - "comment": "null", - "lastModifiedBy":"null", + "comment": null, + "lastModifiedBy":null, "type":"OOO" } ``` @@ -75,7 +75,7 @@ ```json { "id": "Me8sT1Tlid4Y6Y0d", - "userId": "dfdsd5T1Tlid4Y6Y0d", + "requestedBy": "dfdsd5T1Tlid4Y6Y0d", "status": "REJECTED", "from": 1709603700000, "until": 1709785600000, From 52afa95e9fbf18845aa3b7ca5aa7244134f33409 Mon Sep 17 00:00:00 2001 From: Rishi Chaubey <155433512+RishiChaubey31@users.noreply.github.com> Date: Fri, 29 Aug 2025 23:50:38 +0530 Subject: [PATCH 3/5] Update ooo-request/README.md Co-authored-by: Mayank Bansal --- ooo-request/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ooo-request/README.md b/ooo-request/README.md index fb6f736..ace19fd 100644 --- a/ooo-request/README.md +++ b/ooo-request/README.md @@ -25,7 +25,7 @@ | status | String | One of: PENDING | APPROVED | REJECTED. | | from | Timestamp | Unix timestamp for the start date of the OOO request. | | until | Timestamp | Unix timestamp for the end date of the OOO request. | -| reason | String | Requester-provided reason for the OOO. | +| reason | String | Reason for requesting the OOO. | | createdAt | Timestamp | Unix timestamp for the creation time of the request. | | updatedAt | Timestamp | Unix timestamp for the last update time of the request. | | lastModifiedBy| String | The id of the superuser who processed the request | From c85cd409edc5585f43255ff5eec486e14f52d98c Mon Sep 17 00:00:00 2001 From: Rishi Chaubey <155433512+RishiChaubey31@users.noreply.github.com> Date: Fri, 29 Aug 2025 23:50:47 +0530 Subject: [PATCH 4/5] Update ooo-request/README.md Co-authored-by: Mayank Bansal --- ooo-request/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ooo-request/README.md b/ooo-request/README.md index ace19fd..29fe49d 100644 --- a/ooo-request/README.md +++ b/ooo-request/README.md @@ -22,7 +22,7 @@ | ------------- | --------- | ---------------------------------------------------------- | | id | String | Unique identifier for the document. | | requestedBy | String | UID of the user who created the request. | -| status | String | One of: PENDING | APPROVED | REJECTED. | +| status | String | current status for the request: PENDING | APPROVED | REJECTED. | | from | Timestamp | Unix timestamp for the start date of the OOO request. | | until | Timestamp | Unix timestamp for the end date of the OOO request. | | reason | String | Reason for requesting the OOO. | From 220d9a635e207674ccaca0f86538077203cd8390 Mon Sep 17 00:00:00 2001 From: RishiChaubey31 Date: Sat, 30 Aug 2025 00:05:06 +0530 Subject: [PATCH 5/5] refactor-types --- ooo-request/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ooo-request/README.md b/ooo-request/README.md index 29fe49d..c26d195 100644 --- a/ooo-request/README.md +++ b/ooo-request/README.md @@ -22,15 +22,15 @@ | ------------- | --------- | ---------------------------------------------------------- | | id | String | Unique identifier for the document. | | requestedBy | String | UID of the user who created the request. | -| status | String | current status for the request: PENDING | APPROVED | REJECTED. | +| status | String | current status for the request: PENDING|APPROVED|REJECTED. | | from | Timestamp | Unix timestamp for the start date of the OOO request. | | until | Timestamp | Unix timestamp for the end date of the OOO request. | -| reason | String | Reason for requesting the OOO. | +| reason | String | Reason for requesting the OOO. | | createdAt | Timestamp | Unix timestamp for the creation time of the request. | | updatedAt | Timestamp | Unix timestamp for the last update time of the request. | | lastModifiedBy| String | The id of the superuser who processed the request | | comment | String | The reason for the APPROVED or REJECTED. | -| type | String | The type of request being sent like OOO, Onboarding etc | +| type | String | The type of requests being sent OOO, Onboarding, extension | ### Example data