diff --git a/Makefile b/Makefile index d19df67e..6cb986c8 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ help: @echo " make test-e2e-client Run Client Maestro E2E only" @echo " make test-e2e-staff Run Staff Maestro E2E only" @echo "" - @echo " 🗄️ DATA CONNECT & BACKEND (backend/dataconnect)" + @echo " 🗄️ DATA CONNECT & LEGACY V1 BACKEND (legacy/dataconnect-v1)" @echo " ────────────────────────────────────────────────────────────────────" @echo " make dataconnect-init Initialize Firebase Data Connect" @echo " make dataconnect-deploy [ENV=dev] Deploy Data Connect schemas (dev/staging)" diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/documents/IMPLEMENTATION_WORKFLOW.md b/apps/mobile/packages/features/staff/profile_sections/compliance/documents/IMPLEMENTATION_WORKFLOW.md index 4e8d6bbe..42240d2c 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/documents/IMPLEMENTATION_WORKFLOW.md +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/documents/IMPLEMENTATION_WORKFLOW.md @@ -96,7 +96,7 @@ To ensure a consistent experience across all compliance uploads (documents, cert #### Data Connect Integration - `StaffConnectorRepository` interface updated with `getStaffDocuments()` and `upsertStaffDocument()`. - - `upsertStaffDocument` mutation in `backend/dataconnect/connector/staffDocument/mutations.gql` updated to accept `verificationId`. + - `upsertStaffDocument` mutation in `legacy/dataconnect-v1/connector/staffDocument/mutations.gql` updated to accept `verificationId`. - `getStaffDocumentByKey` and `listStaffDocumentsByStaffId` queries updated to include `verificationId`. - SDK regenerated: `make dataconnect-generate-sdk ENV=dev`. diff --git a/docs/01-backend-api-specification.md b/docs/01-backend-api-specification.md index 57800e82..f32b698a 100644 --- a/docs/01-backend-api-specification.md +++ b/docs/01-backend-api-specification.md @@ -4,7 +4,8 @@ > **Status: LEGACY / ARCHIVED REFERENCE** > This document is based on a historical export from the Base44 platform. > It is maintained in this repository solely for reference purposes during the rebuild and is **not** to be considered the definitive or active API specification for the production system. -> The actual data schemas and operations are now defined directly within `backend/dataconnect/`. +> The historical V1 Data Connect schemas and operations now live in `legacy/dataconnect-v1/`. +> The active V2 backend source of truth is the unified/backend service stack under `backend/command-api`, `backend/query-api`, `backend/core-api`, and `backend/unified-api`. **Original Version:** 3.0 **Original Date:** 2025-11-20 @@ -1423,4 +1424,4 @@ firebase functions:config:set \ --- -© 2025 KROW Workforce / Oloodi Technologies Inc. All rights reserved. \ No newline at end of file +© 2025 KROW Workforce / Oloodi Technologies Inc. All rights reserved. diff --git a/docs/05-project-onboarding-master.md b/docs/05-project-onboarding-master.md index 791152c9..200db468 100644 --- a/docs/05-project-onboarding-master.md +++ b/docs/05-project-onboarding-master.md @@ -926,7 +926,7 @@ Via modular `profile_sections/` architecture: | Legacy Client Mobile | `_legacy/apps/krow_client_context.md` | Flutter (context doc) | | Legacy Worker (Legacy Staff) Mobile | `_legacy/apps/krow_staff_context.md` | Flutter (context doc) | | Legacy Backend | `_legacy/apps/php_backend_context.md` | PHP/Laravel | -| New Backend | `backend/dataconnect/` | Firebase Data Connect | +| Legacy V1 Data Connect Backend | `legacy/dataconnect-v1/` | Firebase Data Connect | --- @@ -974,7 +974,7 @@ For each feature in Sprint 3: 2. **Write Schema Incrementally** ```gql - # backend/dataconnect/schema/event.gql + # legacy/dataconnect-v1/schema/event.gql type Event @table { id: UUID! @default(expr: "uuidV4()") name: String! @@ -989,7 +989,7 @@ For each feature in Sprint 3: 3. **Define Queries/Mutations** ```gql - # backend/dataconnect/queries/events.gql + # legacy/dataconnect-v1/queries/events.gql query ListEvents($status: EventStatus) @auth(level: USER) { events(where: { status: { eq: $status } }) { id, name, status, date @@ -1308,7 +1308,7 @@ Business (1) ──┬── (1) BusinessSetting | Legacy Client context | `_legacy/apps/krow_client_context.md` | | Legacy Staff context | `_legacy/apps/krow_staff_context.md` | | Architecture diagrams | `internal/launchpad/assets/diagrams/` | -| Data Connect schemas | `backend/dataconnect/` | +| Data Connect schemas | `legacy/dataconnect-v1/` | --- diff --git a/docs/MOBILE/03-data-connect-connectors-pattern.md b/docs/MOBILE/03-data-connect-connectors-pattern.md index 4f5c353a..50a3afd0 100644 --- a/docs/MOBILE/03-data-connect-connectors-pattern.md +++ b/docs/MOBILE/03-data-connect-connectors-pattern.md @@ -1,5 +1,9 @@ # Data Connect Connectors Pattern +> [!WARNING] +> This document describes the legacy V1 Data Connect connector pattern. +> For current backend work, use the V2 unified API docs under `docs/BACKEND/API_GUIDES/V2/`. + ## Overview This document describes the **Data Connect Connectors** pattern implemented in the KROW mobile app. This pattern centralizes all backend query logic by mirroring backend connector structure in the mobile data layer. @@ -45,9 +49,9 @@ apps/mobile/packages/data_connect/lib/src/connectors/ └── ... ``` -**Maps to backend structure:** +**Maps to legacy backend structure:** ``` -backend/dataconnect/connector/ +legacy/dataconnect-v1/connector/ ├── staff/ ├── order/ ├── user/ @@ -260,7 +264,7 @@ When backend adds new connector (e.g., `order`): - `staff_main` - Guards bottom nav items requiring profile completion **Backend Queries Used**: -- `backend/dataconnect/connector/staff/queries/profile_completion.gql` +- `legacy/dataconnect-v1/connector/staff/queries/profile_completion.gql` ### Shifts Connector @@ -271,15 +275,15 @@ When backend adds new connector (e.g., `order`): - `applyForShifts()` - Handles shift application with error tracking **Backend Queries Used**: -- `backend/dataconnect/connector/shifts/queries/list_shift_roles_by_vendor.gql` -- `backend/dataconnect/connector/shifts/mutations/apply_for_shifts.gql` +- `legacy/dataconnect-v1/connector/shifts/queries/list_shift_roles_by_vendor.gql` +- `legacy/dataconnect-v1/connector/shifts/mutations/apply_for_shifts.gql` ## Future Expansion As the app grows, additional connectors will be added: -- `order_connector_repository` (queries from `backend/dataconnect/connector/order/`) -- `user_connector_repository` (queries from `backend/dataconnect/connector/user/`) -- `emergency_contact_connector_repository` (queries from `backend/dataconnect/connector/emergencyContact/`) +- `order_connector_repository` (queries from `legacy/dataconnect-v1/connector/order/`) +- `user_connector_repository` (queries from `legacy/dataconnect-v1/connector/user/`) +- `emergency_contact_connector_repository` (queries from `legacy/dataconnect-v1/connector/emergencyContact/`) - etc. Each following the same Clean Architecture pattern implemented for Staff Connector. diff --git a/firebase.json b/firebase.json index 887856f8..353a2f69 100644 --- a/firebase.json +++ b/firebase.json @@ -79,10 +79,10 @@ ], "emulators": { "dataconnect": { - "dataDir": "backend/dataconnect/.dataconnect/pgliteData" + "dataDir": "legacy/dataconnect-v1/.dataconnect/pgliteData" } }, "dataconnect": { - "source": "backend/dataconnect" + "source": "legacy/dataconnect-v1" } } diff --git a/backend/dataconnect/.keep b/legacy/dataconnect-v1/.keep similarity index 100% rename from backend/dataconnect/.keep rename to legacy/dataconnect-v1/.keep diff --git a/legacy/dataconnect-v1/README.md b/legacy/dataconnect-v1/README.md new file mode 100644 index 00000000..06facf1c --- /dev/null +++ b/legacy/dataconnect-v1/README.md @@ -0,0 +1,23 @@ +# Legacy Data Connect V1 + +This directory contains the archived V1 Firebase Data Connect source: + +- GraphQL schemas +- connector queries and mutations +- seed and clean scripts +- Data Connect service YAML files + +Status: + +- Treat this directory as legacy infrastructure. +- Do not use it as the source of truth for new backend work. +- The active backend architecture is V2 and lives under: + - `backend/command-api` + - `backend/query-api` + - `backend/core-api` + - `backend/unified-api` + +Why this was moved: + +- The old V1 GraphQL source was being picked up by AI tooling and confusing current V2 implementation work. +- Relocating it under `legacy/` keeps the V1 toolchain available without presenting it as the active backend. diff --git a/backend/dataconnect/connector/account/mutations.gql b/legacy/dataconnect-v1/connector/account/mutations.gql similarity index 100% rename from backend/dataconnect/connector/account/mutations.gql rename to legacy/dataconnect-v1/connector/account/mutations.gql diff --git a/backend/dataconnect/connector/account/queries.gql b/legacy/dataconnect-v1/connector/account/queries.gql similarity index 100% rename from backend/dataconnect/connector/account/queries.gql rename to legacy/dataconnect-v1/connector/account/queries.gql diff --git a/backend/dataconnect/connector/activityLog/mutations.gql b/legacy/dataconnect-v1/connector/activityLog/mutations.gql similarity index 100% rename from backend/dataconnect/connector/activityLog/mutations.gql rename to legacy/dataconnect-v1/connector/activityLog/mutations.gql diff --git a/backend/dataconnect/connector/activityLog/queries.gql b/legacy/dataconnect-v1/connector/activityLog/queries.gql similarity index 100% rename from backend/dataconnect/connector/activityLog/queries.gql rename to legacy/dataconnect-v1/connector/activityLog/queries.gql diff --git a/backend/dataconnect/connector/application/mutations.gql b/legacy/dataconnect-v1/connector/application/mutations.gql similarity index 100% rename from backend/dataconnect/connector/application/mutations.gql rename to legacy/dataconnect-v1/connector/application/mutations.gql diff --git a/backend/dataconnect/connector/application/queries.gql b/legacy/dataconnect-v1/connector/application/queries.gql similarity index 100% rename from backend/dataconnect/connector/application/queries.gql rename to legacy/dataconnect-v1/connector/application/queries.gql diff --git a/backend/dataconnect/connector/assignment/mutations.gql b/legacy/dataconnect-v1/connector/assignment/mutations.gql similarity index 100% rename from backend/dataconnect/connector/assignment/mutations.gql rename to legacy/dataconnect-v1/connector/assignment/mutations.gql diff --git a/backend/dataconnect/connector/assignment/queries.gql b/legacy/dataconnect-v1/connector/assignment/queries.gql similarity index 100% rename from backend/dataconnect/connector/assignment/queries.gql rename to legacy/dataconnect-v1/connector/assignment/queries.gql diff --git a/backend/dataconnect/connector/attireOption/mutations.gql b/legacy/dataconnect-v1/connector/attireOption/mutations.gql similarity index 100% rename from backend/dataconnect/connector/attireOption/mutations.gql rename to legacy/dataconnect-v1/connector/attireOption/mutations.gql diff --git a/backend/dataconnect/connector/attireOption/queries.gql b/legacy/dataconnect-v1/connector/attireOption/queries.gql similarity index 100% rename from backend/dataconnect/connector/attireOption/queries.gql rename to legacy/dataconnect-v1/connector/attireOption/queries.gql diff --git a/backend/dataconnect/connector/benefitsData/mutations.gql b/legacy/dataconnect-v1/connector/benefitsData/mutations.gql similarity index 100% rename from backend/dataconnect/connector/benefitsData/mutations.gql rename to legacy/dataconnect-v1/connector/benefitsData/mutations.gql diff --git a/backend/dataconnect/connector/benefitsData/queries.gql b/legacy/dataconnect-v1/connector/benefitsData/queries.gql similarity index 100% rename from backend/dataconnect/connector/benefitsData/queries.gql rename to legacy/dataconnect-v1/connector/benefitsData/queries.gql diff --git a/backend/dataconnect/connector/business/mutations.gql b/legacy/dataconnect-v1/connector/business/mutations.gql similarity index 100% rename from backend/dataconnect/connector/business/mutations.gql rename to legacy/dataconnect-v1/connector/business/mutations.gql diff --git a/backend/dataconnect/connector/business/queries.gql b/legacy/dataconnect-v1/connector/business/queries.gql similarity index 100% rename from backend/dataconnect/connector/business/queries.gql rename to legacy/dataconnect-v1/connector/business/queries.gql diff --git a/backend/dataconnect/connector/category/mutations.gql b/legacy/dataconnect-v1/connector/category/mutations.gql similarity index 100% rename from backend/dataconnect/connector/category/mutations.gql rename to legacy/dataconnect-v1/connector/category/mutations.gql diff --git a/backend/dataconnect/connector/category/queries.gql b/legacy/dataconnect-v1/connector/category/queries.gql similarity index 100% rename from backend/dataconnect/connector/category/queries.gql rename to legacy/dataconnect-v1/connector/category/queries.gql diff --git a/backend/dataconnect/connector/certificate/mutations.gql b/legacy/dataconnect-v1/connector/certificate/mutations.gql similarity index 100% rename from backend/dataconnect/connector/certificate/mutations.gql rename to legacy/dataconnect-v1/connector/certificate/mutations.gql diff --git a/backend/dataconnect/connector/certificate/queries.gql b/legacy/dataconnect-v1/connector/certificate/queries.gql similarity index 100% rename from backend/dataconnect/connector/certificate/queries.gql rename to legacy/dataconnect-v1/connector/certificate/queries.gql diff --git a/backend/dataconnect/connector/clientFeedback/mutations.gql b/legacy/dataconnect-v1/connector/clientFeedback/mutations.gql similarity index 100% rename from backend/dataconnect/connector/clientFeedback/mutations.gql rename to legacy/dataconnect-v1/connector/clientFeedback/mutations.gql diff --git a/backend/dataconnect/connector/clientFeedback/queries.gql b/legacy/dataconnect-v1/connector/clientFeedback/queries.gql similarity index 100% rename from backend/dataconnect/connector/clientFeedback/queries.gql rename to legacy/dataconnect-v1/connector/clientFeedback/queries.gql diff --git a/backend/dataconnect/connector/connector.yaml b/legacy/dataconnect-v1/connector/connector.yaml similarity index 100% rename from backend/dataconnect/connector/connector.yaml rename to legacy/dataconnect-v1/connector/connector.yaml diff --git a/backend/dataconnect/connector/conversation/mutations.gql b/legacy/dataconnect-v1/connector/conversation/mutations.gql similarity index 100% rename from backend/dataconnect/connector/conversation/mutations.gql rename to legacy/dataconnect-v1/connector/conversation/mutations.gql diff --git a/backend/dataconnect/connector/conversation/queries.gql b/legacy/dataconnect-v1/connector/conversation/queries.gql similarity index 100% rename from backend/dataconnect/connector/conversation/queries.gql rename to legacy/dataconnect-v1/connector/conversation/queries.gql diff --git a/backend/dataconnect/connector/costCenter/mutations.gql b/legacy/dataconnect-v1/connector/costCenter/mutations.gql similarity index 100% rename from backend/dataconnect/connector/costCenter/mutations.gql rename to legacy/dataconnect-v1/connector/costCenter/mutations.gql diff --git a/backend/dataconnect/connector/costCenter/queries.gql b/legacy/dataconnect-v1/connector/costCenter/queries.gql similarity index 100% rename from backend/dataconnect/connector/costCenter/queries.gql rename to legacy/dataconnect-v1/connector/costCenter/queries.gql diff --git a/backend/dataconnect/connector/course/mutations.gql b/legacy/dataconnect-v1/connector/course/mutations.gql similarity index 100% rename from backend/dataconnect/connector/course/mutations.gql rename to legacy/dataconnect-v1/connector/course/mutations.gql diff --git a/backend/dataconnect/connector/course/queries.gql b/legacy/dataconnect-v1/connector/course/queries.gql similarity index 100% rename from backend/dataconnect/connector/course/queries.gql rename to legacy/dataconnect-v1/connector/course/queries.gql diff --git a/backend/dataconnect/connector/customRateCard/mutations.gql b/legacy/dataconnect-v1/connector/customRateCard/mutations.gql similarity index 100% rename from backend/dataconnect/connector/customRateCard/mutations.gql rename to legacy/dataconnect-v1/connector/customRateCard/mutations.gql diff --git a/backend/dataconnect/connector/customRateCard/queries.gql b/legacy/dataconnect-v1/connector/customRateCard/queries.gql similarity index 100% rename from backend/dataconnect/connector/customRateCard/queries.gql rename to legacy/dataconnect-v1/connector/customRateCard/queries.gql diff --git a/backend/dataconnect/connector/document/mutations.gql b/legacy/dataconnect-v1/connector/document/mutations.gql similarity index 100% rename from backend/dataconnect/connector/document/mutations.gql rename to legacy/dataconnect-v1/connector/document/mutations.gql diff --git a/backend/dataconnect/connector/document/queries.gql b/legacy/dataconnect-v1/connector/document/queries.gql similarity index 100% rename from backend/dataconnect/connector/document/queries.gql rename to legacy/dataconnect-v1/connector/document/queries.gql diff --git a/backend/dataconnect/connector/emergencyContact/mutations.gql b/legacy/dataconnect-v1/connector/emergencyContact/mutations.gql similarity index 100% rename from backend/dataconnect/connector/emergencyContact/mutations.gql rename to legacy/dataconnect-v1/connector/emergencyContact/mutations.gql diff --git a/backend/dataconnect/connector/emergencyContact/queries.gql b/legacy/dataconnect-v1/connector/emergencyContact/queries.gql similarity index 100% rename from backend/dataconnect/connector/emergencyContact/queries.gql rename to legacy/dataconnect-v1/connector/emergencyContact/queries.gql diff --git a/backend/dataconnect/connector/faqData/mutations.gql b/legacy/dataconnect-v1/connector/faqData/mutations.gql similarity index 100% rename from backend/dataconnect/connector/faqData/mutations.gql rename to legacy/dataconnect-v1/connector/faqData/mutations.gql diff --git a/backend/dataconnect/connector/faqData/queries.gql b/legacy/dataconnect-v1/connector/faqData/queries.gql similarity index 100% rename from backend/dataconnect/connector/faqData/queries.gql rename to legacy/dataconnect-v1/connector/faqData/queries.gql diff --git a/backend/dataconnect/connector/invoice/mutations.gql b/legacy/dataconnect-v1/connector/invoice/mutations.gql similarity index 100% rename from backend/dataconnect/connector/invoice/mutations.gql rename to legacy/dataconnect-v1/connector/invoice/mutations.gql diff --git a/backend/dataconnect/connector/invoice/queries.gql b/legacy/dataconnect-v1/connector/invoice/queries.gql similarity index 100% rename from backend/dataconnect/connector/invoice/queries.gql rename to legacy/dataconnect-v1/connector/invoice/queries.gql diff --git a/backend/dataconnect/connector/invoiceTemplate/mutations.gql b/legacy/dataconnect-v1/connector/invoiceTemplate/mutations.gql similarity index 100% rename from backend/dataconnect/connector/invoiceTemplate/mutations.gql rename to legacy/dataconnect-v1/connector/invoiceTemplate/mutations.gql diff --git a/backend/dataconnect/connector/invoiceTemplate/queries.gql b/legacy/dataconnect-v1/connector/invoiceTemplate/queries.gql similarity index 100% rename from backend/dataconnect/connector/invoiceTemplate/queries.gql rename to legacy/dataconnect-v1/connector/invoiceTemplate/queries.gql diff --git a/backend/dataconnect/connector/level/mutations.gql b/legacy/dataconnect-v1/connector/level/mutations.gql similarity index 100% rename from backend/dataconnect/connector/level/mutations.gql rename to legacy/dataconnect-v1/connector/level/mutations.gql diff --git a/backend/dataconnect/connector/level/queries.gql b/legacy/dataconnect-v1/connector/level/queries.gql similarity index 100% rename from backend/dataconnect/connector/level/queries.gql rename to legacy/dataconnect-v1/connector/level/queries.gql diff --git a/backend/dataconnect/connector/memberTask/mutations.gql b/legacy/dataconnect-v1/connector/memberTask/mutations.gql similarity index 100% rename from backend/dataconnect/connector/memberTask/mutations.gql rename to legacy/dataconnect-v1/connector/memberTask/mutations.gql diff --git a/backend/dataconnect/connector/memberTask/queries.gql b/legacy/dataconnect-v1/connector/memberTask/queries.gql similarity index 100% rename from backend/dataconnect/connector/memberTask/queries.gql rename to legacy/dataconnect-v1/connector/memberTask/queries.gql diff --git a/backend/dataconnect/connector/message/mutations.gql b/legacy/dataconnect-v1/connector/message/mutations.gql similarity index 100% rename from backend/dataconnect/connector/message/mutations.gql rename to legacy/dataconnect-v1/connector/message/mutations.gql diff --git a/backend/dataconnect/connector/message/queries.gql b/legacy/dataconnect-v1/connector/message/queries.gql similarity index 100% rename from backend/dataconnect/connector/message/queries.gql rename to legacy/dataconnect-v1/connector/message/queries.gql diff --git a/backend/dataconnect/connector/order/mutations.gql b/legacy/dataconnect-v1/connector/order/mutations.gql similarity index 100% rename from backend/dataconnect/connector/order/mutations.gql rename to legacy/dataconnect-v1/connector/order/mutations.gql diff --git a/backend/dataconnect/connector/order/queries.gql b/legacy/dataconnect-v1/connector/order/queries.gql similarity index 100% rename from backend/dataconnect/connector/order/queries.gql rename to legacy/dataconnect-v1/connector/order/queries.gql diff --git a/backend/dataconnect/connector/recentPayment/mutations.gql b/legacy/dataconnect-v1/connector/recentPayment/mutations.gql similarity index 100% rename from backend/dataconnect/connector/recentPayment/mutations.gql rename to legacy/dataconnect-v1/connector/recentPayment/mutations.gql diff --git a/backend/dataconnect/connector/recentPayment/queries.gql b/legacy/dataconnect-v1/connector/recentPayment/queries.gql similarity index 100% rename from backend/dataconnect/connector/recentPayment/queries.gql rename to legacy/dataconnect-v1/connector/recentPayment/queries.gql diff --git a/backend/dataconnect/connector/reports/queries.gql b/legacy/dataconnect-v1/connector/reports/queries.gql similarity index 100% rename from backend/dataconnect/connector/reports/queries.gql rename to legacy/dataconnect-v1/connector/reports/queries.gql diff --git a/backend/dataconnect/connector/role/mutations.gql b/legacy/dataconnect-v1/connector/role/mutations.gql similarity index 100% rename from backend/dataconnect/connector/role/mutations.gql rename to legacy/dataconnect-v1/connector/role/mutations.gql diff --git a/backend/dataconnect/connector/role/queries.gql b/legacy/dataconnect-v1/connector/role/queries.gql similarity index 100% rename from backend/dataconnect/connector/role/queries.gql rename to legacy/dataconnect-v1/connector/role/queries.gql diff --git a/backend/dataconnect/connector/roleCategory/mutations.gql b/legacy/dataconnect-v1/connector/roleCategory/mutations.gql similarity index 100% rename from backend/dataconnect/connector/roleCategory/mutations.gql rename to legacy/dataconnect-v1/connector/roleCategory/mutations.gql diff --git a/backend/dataconnect/connector/roleCategory/queries.gql b/legacy/dataconnect-v1/connector/roleCategory/queries.gql similarity index 100% rename from backend/dataconnect/connector/roleCategory/queries.gql rename to legacy/dataconnect-v1/connector/roleCategory/queries.gql diff --git a/backend/dataconnect/connector/shift/mutations.gql b/legacy/dataconnect-v1/connector/shift/mutations.gql similarity index 100% rename from backend/dataconnect/connector/shift/mutations.gql rename to legacy/dataconnect-v1/connector/shift/mutations.gql diff --git a/backend/dataconnect/connector/shift/queries.gql b/legacy/dataconnect-v1/connector/shift/queries.gql similarity index 100% rename from backend/dataconnect/connector/shift/queries.gql rename to legacy/dataconnect-v1/connector/shift/queries.gql diff --git a/backend/dataconnect/connector/shiftRole/mutations.gql b/legacy/dataconnect-v1/connector/shiftRole/mutations.gql similarity index 100% rename from backend/dataconnect/connector/shiftRole/mutations.gql rename to legacy/dataconnect-v1/connector/shiftRole/mutations.gql diff --git a/backend/dataconnect/connector/shiftRole/queries.gql b/legacy/dataconnect-v1/connector/shiftRole/queries.gql similarity index 100% rename from backend/dataconnect/connector/shiftRole/queries.gql rename to legacy/dataconnect-v1/connector/shiftRole/queries.gql diff --git a/backend/dataconnect/connector/staff/mutations.gql b/legacy/dataconnect-v1/connector/staff/mutations.gql similarity index 100% rename from backend/dataconnect/connector/staff/mutations.gql rename to legacy/dataconnect-v1/connector/staff/mutations.gql diff --git a/backend/dataconnect/connector/staff/queries/profile_completion.gql b/legacy/dataconnect-v1/connector/staff/queries/profile_completion.gql similarity index 100% rename from backend/dataconnect/connector/staff/queries/profile_completion.gql rename to legacy/dataconnect-v1/connector/staff/queries/profile_completion.gql diff --git a/backend/dataconnect/connector/staff/queries/queries.gql b/legacy/dataconnect-v1/connector/staff/queries/queries.gql similarity index 100% rename from backend/dataconnect/connector/staff/queries/queries.gql rename to legacy/dataconnect-v1/connector/staff/queries/queries.gql diff --git a/backend/dataconnect/connector/staffAttire/mutations.gql b/legacy/dataconnect-v1/connector/staffAttire/mutations.gql similarity index 100% rename from backend/dataconnect/connector/staffAttire/mutations.gql rename to legacy/dataconnect-v1/connector/staffAttire/mutations.gql diff --git a/backend/dataconnect/connector/staffAttire/queries.gql b/legacy/dataconnect-v1/connector/staffAttire/queries.gql similarity index 100% rename from backend/dataconnect/connector/staffAttire/queries.gql rename to legacy/dataconnect-v1/connector/staffAttire/queries.gql diff --git a/backend/dataconnect/connector/staffAvailability/mutations.gql b/legacy/dataconnect-v1/connector/staffAvailability/mutations.gql similarity index 100% rename from backend/dataconnect/connector/staffAvailability/mutations.gql rename to legacy/dataconnect-v1/connector/staffAvailability/mutations.gql diff --git a/backend/dataconnect/connector/staffAvailability/queries.gql b/legacy/dataconnect-v1/connector/staffAvailability/queries.gql similarity index 100% rename from backend/dataconnect/connector/staffAvailability/queries.gql rename to legacy/dataconnect-v1/connector/staffAvailability/queries.gql diff --git a/backend/dataconnect/connector/staffAvailabilityStats/mutations.gql b/legacy/dataconnect-v1/connector/staffAvailabilityStats/mutations.gql similarity index 100% rename from backend/dataconnect/connector/staffAvailabilityStats/mutations.gql rename to legacy/dataconnect-v1/connector/staffAvailabilityStats/mutations.gql diff --git a/backend/dataconnect/connector/staffAvailabilityStats/queries.gql b/legacy/dataconnect-v1/connector/staffAvailabilityStats/queries.gql similarity index 100% rename from backend/dataconnect/connector/staffAvailabilityStats/queries.gql rename to legacy/dataconnect-v1/connector/staffAvailabilityStats/queries.gql diff --git a/backend/dataconnect/connector/staffCourse/mutations.gql b/legacy/dataconnect-v1/connector/staffCourse/mutations.gql similarity index 100% rename from backend/dataconnect/connector/staffCourse/mutations.gql rename to legacy/dataconnect-v1/connector/staffCourse/mutations.gql diff --git a/backend/dataconnect/connector/staffCourse/queries.gql b/legacy/dataconnect-v1/connector/staffCourse/queries.gql similarity index 100% rename from backend/dataconnect/connector/staffCourse/queries.gql rename to legacy/dataconnect-v1/connector/staffCourse/queries.gql diff --git a/backend/dataconnect/connector/staffDocument/mutations.gql b/legacy/dataconnect-v1/connector/staffDocument/mutations.gql similarity index 100% rename from backend/dataconnect/connector/staffDocument/mutations.gql rename to legacy/dataconnect-v1/connector/staffDocument/mutations.gql diff --git a/backend/dataconnect/connector/staffDocument/queries.gql b/legacy/dataconnect-v1/connector/staffDocument/queries.gql similarity index 100% rename from backend/dataconnect/connector/staffDocument/queries.gql rename to legacy/dataconnect-v1/connector/staffDocument/queries.gql diff --git a/backend/dataconnect/connector/staffRole/mutations.gql b/legacy/dataconnect-v1/connector/staffRole/mutations.gql similarity index 100% rename from backend/dataconnect/connector/staffRole/mutations.gql rename to legacy/dataconnect-v1/connector/staffRole/mutations.gql diff --git a/backend/dataconnect/connector/staffRole/queries.gql b/legacy/dataconnect-v1/connector/staffRole/queries.gql similarity index 100% rename from backend/dataconnect/connector/staffRole/queries.gql rename to legacy/dataconnect-v1/connector/staffRole/queries.gql diff --git a/backend/dataconnect/connector/task/mutations.gql b/legacy/dataconnect-v1/connector/task/mutations.gql similarity index 100% rename from backend/dataconnect/connector/task/mutations.gql rename to legacy/dataconnect-v1/connector/task/mutations.gql diff --git a/backend/dataconnect/connector/task/queries.gql b/legacy/dataconnect-v1/connector/task/queries.gql similarity index 100% rename from backend/dataconnect/connector/task/queries.gql rename to legacy/dataconnect-v1/connector/task/queries.gql diff --git a/backend/dataconnect/connector/task_comment/mutations.gql b/legacy/dataconnect-v1/connector/task_comment/mutations.gql similarity index 100% rename from backend/dataconnect/connector/task_comment/mutations.gql rename to legacy/dataconnect-v1/connector/task_comment/mutations.gql diff --git a/backend/dataconnect/connector/task_comment/queries.gql b/legacy/dataconnect-v1/connector/task_comment/queries.gql similarity index 100% rename from backend/dataconnect/connector/task_comment/queries.gql rename to legacy/dataconnect-v1/connector/task_comment/queries.gql diff --git a/backend/dataconnect/connector/taxForm/mutations.gql b/legacy/dataconnect-v1/connector/taxForm/mutations.gql similarity index 100% rename from backend/dataconnect/connector/taxForm/mutations.gql rename to legacy/dataconnect-v1/connector/taxForm/mutations.gql diff --git a/backend/dataconnect/connector/taxForm/queries.gql b/legacy/dataconnect-v1/connector/taxForm/queries.gql similarity index 100% rename from backend/dataconnect/connector/taxForm/queries.gql rename to legacy/dataconnect-v1/connector/taxForm/queries.gql diff --git a/backend/dataconnect/connector/team/mutations.gql b/legacy/dataconnect-v1/connector/team/mutations.gql similarity index 100% rename from backend/dataconnect/connector/team/mutations.gql rename to legacy/dataconnect-v1/connector/team/mutations.gql diff --git a/backend/dataconnect/connector/team/queries.gql b/legacy/dataconnect-v1/connector/team/queries.gql similarity index 100% rename from backend/dataconnect/connector/team/queries.gql rename to legacy/dataconnect-v1/connector/team/queries.gql diff --git a/backend/dataconnect/connector/teamHub/mutations.gql b/legacy/dataconnect-v1/connector/teamHub/mutations.gql similarity index 100% rename from backend/dataconnect/connector/teamHub/mutations.gql rename to legacy/dataconnect-v1/connector/teamHub/mutations.gql diff --git a/backend/dataconnect/connector/teamHub/queries.gql b/legacy/dataconnect-v1/connector/teamHub/queries.gql similarity index 100% rename from backend/dataconnect/connector/teamHub/queries.gql rename to legacy/dataconnect-v1/connector/teamHub/queries.gql diff --git a/backend/dataconnect/connector/teamHudDeparment/mutations.gql b/legacy/dataconnect-v1/connector/teamHudDeparment/mutations.gql similarity index 100% rename from backend/dataconnect/connector/teamHudDeparment/mutations.gql rename to legacy/dataconnect-v1/connector/teamHudDeparment/mutations.gql diff --git a/backend/dataconnect/connector/teamHudDeparment/queries.gql b/legacy/dataconnect-v1/connector/teamHudDeparment/queries.gql similarity index 100% rename from backend/dataconnect/connector/teamHudDeparment/queries.gql rename to legacy/dataconnect-v1/connector/teamHudDeparment/queries.gql diff --git a/backend/dataconnect/connector/teamMember/mutations.gql b/legacy/dataconnect-v1/connector/teamMember/mutations.gql similarity index 100% rename from backend/dataconnect/connector/teamMember/mutations.gql rename to legacy/dataconnect-v1/connector/teamMember/mutations.gql diff --git a/backend/dataconnect/connector/teamMember/queries.gql b/legacy/dataconnect-v1/connector/teamMember/queries.gql similarity index 100% rename from backend/dataconnect/connector/teamMember/queries.gql rename to legacy/dataconnect-v1/connector/teamMember/queries.gql diff --git a/backend/dataconnect/connector/user/mutations.gql b/legacy/dataconnect-v1/connector/user/mutations.gql similarity index 100% rename from backend/dataconnect/connector/user/mutations.gql rename to legacy/dataconnect-v1/connector/user/mutations.gql diff --git a/backend/dataconnect/connector/user/queries.gql b/legacy/dataconnect-v1/connector/user/queries.gql similarity index 100% rename from backend/dataconnect/connector/user/queries.gql rename to legacy/dataconnect-v1/connector/user/queries.gql diff --git a/backend/dataconnect/connector/userConversation/mutations.gql b/legacy/dataconnect-v1/connector/userConversation/mutations.gql similarity index 100% rename from backend/dataconnect/connector/userConversation/mutations.gql rename to legacy/dataconnect-v1/connector/userConversation/mutations.gql diff --git a/backend/dataconnect/connector/userConversation/queries.gql b/legacy/dataconnect-v1/connector/userConversation/queries.gql similarity index 100% rename from backend/dataconnect/connector/userConversation/queries.gql rename to legacy/dataconnect-v1/connector/userConversation/queries.gql diff --git a/backend/dataconnect/connector/vendor/mutations.gql b/legacy/dataconnect-v1/connector/vendor/mutations.gql similarity index 100% rename from backend/dataconnect/connector/vendor/mutations.gql rename to legacy/dataconnect-v1/connector/vendor/mutations.gql diff --git a/backend/dataconnect/connector/vendor/queries.gql b/legacy/dataconnect-v1/connector/vendor/queries.gql similarity index 100% rename from backend/dataconnect/connector/vendor/queries.gql rename to legacy/dataconnect-v1/connector/vendor/queries.gql diff --git a/backend/dataconnect/connector/vendorBenefitPlan/mutations.gql b/legacy/dataconnect-v1/connector/vendorBenefitPlan/mutations.gql similarity index 100% rename from backend/dataconnect/connector/vendorBenefitPlan/mutations.gql rename to legacy/dataconnect-v1/connector/vendorBenefitPlan/mutations.gql diff --git a/backend/dataconnect/connector/vendorBenefitPlan/queries.gql b/legacy/dataconnect-v1/connector/vendorBenefitPlan/queries.gql similarity index 100% rename from backend/dataconnect/connector/vendorBenefitPlan/queries.gql rename to legacy/dataconnect-v1/connector/vendorBenefitPlan/queries.gql diff --git a/backend/dataconnect/connector/vendorRate/mutations.gql b/legacy/dataconnect-v1/connector/vendorRate/mutations.gql similarity index 100% rename from backend/dataconnect/connector/vendorRate/mutations.gql rename to legacy/dataconnect-v1/connector/vendorRate/mutations.gql diff --git a/backend/dataconnect/connector/vendorRate/queries.gql b/legacy/dataconnect-v1/connector/vendorRate/queries.gql similarity index 100% rename from backend/dataconnect/connector/vendorRate/queries.gql rename to legacy/dataconnect-v1/connector/vendorRate/queries.gql diff --git a/backend/dataconnect/connector/workForce/mutations.gql b/legacy/dataconnect-v1/connector/workForce/mutations.gql similarity index 100% rename from backend/dataconnect/connector/workForce/mutations.gql rename to legacy/dataconnect-v1/connector/workForce/mutations.gql diff --git a/backend/dataconnect/connector/workForce/queries.gql b/legacy/dataconnect-v1/connector/workForce/queries.gql similarity index 100% rename from backend/dataconnect/connector/workForce/queries.gql rename to legacy/dataconnect-v1/connector/workForce/queries.gql diff --git a/backend/dataconnect/dataconnect.dev.yaml b/legacy/dataconnect-v1/dataconnect.dev.yaml similarity index 100% rename from backend/dataconnect/dataconnect.dev.yaml rename to legacy/dataconnect-v1/dataconnect.dev.yaml diff --git a/backend/dataconnect/dataconnect.validation.yaml b/legacy/dataconnect-v1/dataconnect.validation.yaml similarity index 100% rename from backend/dataconnect/dataconnect.validation.yaml rename to legacy/dataconnect-v1/dataconnect.validation.yaml diff --git a/backend/dataconnect/dataconnect.yaml b/legacy/dataconnect-v1/dataconnect.yaml similarity index 100% rename from backend/dataconnect/dataconnect.yaml rename to legacy/dataconnect-v1/dataconnect.yaml diff --git a/backend/dataconnect/functions/clean.gql b/legacy/dataconnect-v1/functions/clean.gql similarity index 100% rename from backend/dataconnect/functions/clean.gql rename to legacy/dataconnect-v1/functions/clean.gql diff --git a/backend/dataconnect/functions/cleanAttire.gql b/legacy/dataconnect-v1/functions/cleanAttire.gql similarity index 100% rename from backend/dataconnect/functions/cleanAttire.gql rename to legacy/dataconnect-v1/functions/cleanAttire.gql diff --git a/backend/dataconnect/functions/seed.gql b/legacy/dataconnect-v1/functions/seed.gql similarity index 100% rename from backend/dataconnect/functions/seed.gql rename to legacy/dataconnect-v1/functions/seed.gql diff --git a/backend/dataconnect/functions/seedAttire.gql b/legacy/dataconnect-v1/functions/seedAttire.gql similarity index 100% rename from backend/dataconnect/functions/seedAttire.gql rename to legacy/dataconnect-v1/functions/seedAttire.gql diff --git a/backend/dataconnect/functions/seed_val.gql b/legacy/dataconnect-v1/functions/seed_val.gql similarity index 100% rename from backend/dataconnect/functions/seed_val.gql rename to legacy/dataconnect-v1/functions/seed_val.gql diff --git a/backend/dataconnect/schema/ShiftRole.gql b/legacy/dataconnect-v1/schema/ShiftRole.gql similarity index 100% rename from backend/dataconnect/schema/ShiftRole.gql rename to legacy/dataconnect-v1/schema/ShiftRole.gql diff --git a/backend/dataconnect/schema/VendorBenefitPlan.gql b/legacy/dataconnect-v1/schema/VendorBenefitPlan.gql similarity index 100% rename from backend/dataconnect/schema/VendorBenefitPlan.gql rename to legacy/dataconnect-v1/schema/VendorBenefitPlan.gql diff --git a/backend/dataconnect/schema/account.gql b/legacy/dataconnect-v1/schema/account.gql similarity index 100% rename from backend/dataconnect/schema/account.gql rename to legacy/dataconnect-v1/schema/account.gql diff --git a/backend/dataconnect/schema/activityLog.gql b/legacy/dataconnect-v1/schema/activityLog.gql similarity index 100% rename from backend/dataconnect/schema/activityLog.gql rename to legacy/dataconnect-v1/schema/activityLog.gql diff --git a/backend/dataconnect/schema/application.gql b/legacy/dataconnect-v1/schema/application.gql similarity index 100% rename from backend/dataconnect/schema/application.gql rename to legacy/dataconnect-v1/schema/application.gql diff --git a/backend/dataconnect/schema/assignment.gql b/legacy/dataconnect-v1/schema/assignment.gql similarity index 100% rename from backend/dataconnect/schema/assignment.gql rename to legacy/dataconnect-v1/schema/assignment.gql diff --git a/backend/dataconnect/schema/attireOption.gql b/legacy/dataconnect-v1/schema/attireOption.gql similarity index 100% rename from backend/dataconnect/schema/attireOption.gql rename to legacy/dataconnect-v1/schema/attireOption.gql diff --git a/backend/dataconnect/schema/benefitsData.gql b/legacy/dataconnect-v1/schema/benefitsData.gql similarity index 100% rename from backend/dataconnect/schema/benefitsData.gql rename to legacy/dataconnect-v1/schema/benefitsData.gql diff --git a/backend/dataconnect/schema/business.gql b/legacy/dataconnect-v1/schema/business.gql similarity index 100% rename from backend/dataconnect/schema/business.gql rename to legacy/dataconnect-v1/schema/business.gql diff --git a/backend/dataconnect/schema/category.gql b/legacy/dataconnect-v1/schema/category.gql similarity index 100% rename from backend/dataconnect/schema/category.gql rename to legacy/dataconnect-v1/schema/category.gql diff --git a/backend/dataconnect/schema/certificate.gql b/legacy/dataconnect-v1/schema/certificate.gql similarity index 100% rename from backend/dataconnect/schema/certificate.gql rename to legacy/dataconnect-v1/schema/certificate.gql diff --git a/backend/dataconnect/schema/clientFeedback.gql b/legacy/dataconnect-v1/schema/clientFeedback.gql similarity index 100% rename from backend/dataconnect/schema/clientFeedback.gql rename to legacy/dataconnect-v1/schema/clientFeedback.gql diff --git a/backend/dataconnect/schema/conversation.gql b/legacy/dataconnect-v1/schema/conversation.gql similarity index 100% rename from backend/dataconnect/schema/conversation.gql rename to legacy/dataconnect-v1/schema/conversation.gql diff --git a/backend/dataconnect/schema/costCenter.gql b/legacy/dataconnect-v1/schema/costCenter.gql similarity index 100% rename from backend/dataconnect/schema/costCenter.gql rename to legacy/dataconnect-v1/schema/costCenter.gql diff --git a/backend/dataconnect/schema/course.gql b/legacy/dataconnect-v1/schema/course.gql similarity index 100% rename from backend/dataconnect/schema/course.gql rename to legacy/dataconnect-v1/schema/course.gql diff --git a/backend/dataconnect/schema/customRateCard.gql b/legacy/dataconnect-v1/schema/customRateCard.gql similarity index 100% rename from backend/dataconnect/schema/customRateCard.gql rename to legacy/dataconnect-v1/schema/customRateCard.gql diff --git a/backend/dataconnect/schema/document.gql b/legacy/dataconnect-v1/schema/document.gql similarity index 100% rename from backend/dataconnect/schema/document.gql rename to legacy/dataconnect-v1/schema/document.gql diff --git a/backend/dataconnect/schema/emergencyContact.gql b/legacy/dataconnect-v1/schema/emergencyContact.gql similarity index 100% rename from backend/dataconnect/schema/emergencyContact.gql rename to legacy/dataconnect-v1/schema/emergencyContact.gql diff --git a/backend/dataconnect/schema/faqData.gql b/legacy/dataconnect-v1/schema/faqData.gql similarity index 100% rename from backend/dataconnect/schema/faqData.gql rename to legacy/dataconnect-v1/schema/faqData.gql diff --git a/backend/dataconnect/schema/invoice.gql b/legacy/dataconnect-v1/schema/invoice.gql similarity index 100% rename from backend/dataconnect/schema/invoice.gql rename to legacy/dataconnect-v1/schema/invoice.gql diff --git a/backend/dataconnect/schema/invoiceTemplate.gql b/legacy/dataconnect-v1/schema/invoiceTemplate.gql similarity index 100% rename from backend/dataconnect/schema/invoiceTemplate.gql rename to legacy/dataconnect-v1/schema/invoiceTemplate.gql diff --git a/backend/dataconnect/schema/level.gql b/legacy/dataconnect-v1/schema/level.gql similarity index 100% rename from backend/dataconnect/schema/level.gql rename to legacy/dataconnect-v1/schema/level.gql diff --git a/backend/dataconnect/schema/memberTask.gql b/legacy/dataconnect-v1/schema/memberTask.gql similarity index 100% rename from backend/dataconnect/schema/memberTask.gql rename to legacy/dataconnect-v1/schema/memberTask.gql diff --git a/backend/dataconnect/schema/message.gql b/legacy/dataconnect-v1/schema/message.gql similarity index 100% rename from backend/dataconnect/schema/message.gql rename to legacy/dataconnect-v1/schema/message.gql diff --git a/backend/dataconnect/schema/order.gql b/legacy/dataconnect-v1/schema/order.gql similarity index 100% rename from backend/dataconnect/schema/order.gql rename to legacy/dataconnect-v1/schema/order.gql diff --git a/backend/dataconnect/schema/recentPayment.gql b/legacy/dataconnect-v1/schema/recentPayment.gql similarity index 100% rename from backend/dataconnect/schema/recentPayment.gql rename to legacy/dataconnect-v1/schema/recentPayment.gql diff --git a/backend/dataconnect/schema/role.gql b/legacy/dataconnect-v1/schema/role.gql similarity index 100% rename from backend/dataconnect/schema/role.gql rename to legacy/dataconnect-v1/schema/role.gql diff --git a/backend/dataconnect/schema/roleCategory.gql b/legacy/dataconnect-v1/schema/roleCategory.gql similarity index 100% rename from backend/dataconnect/schema/roleCategory.gql rename to legacy/dataconnect-v1/schema/roleCategory.gql diff --git a/backend/dataconnect/schema/shift.gql b/legacy/dataconnect-v1/schema/shift.gql similarity index 100% rename from backend/dataconnect/schema/shift.gql rename to legacy/dataconnect-v1/schema/shift.gql diff --git a/backend/dataconnect/schema/staff.gql b/legacy/dataconnect-v1/schema/staff.gql similarity index 100% rename from backend/dataconnect/schema/staff.gql rename to legacy/dataconnect-v1/schema/staff.gql diff --git a/backend/dataconnect/schema/staffAttire.gql b/legacy/dataconnect-v1/schema/staffAttire.gql similarity index 100% rename from backend/dataconnect/schema/staffAttire.gql rename to legacy/dataconnect-v1/schema/staffAttire.gql diff --git a/backend/dataconnect/schema/staffAvailability.gql b/legacy/dataconnect-v1/schema/staffAvailability.gql similarity index 100% rename from backend/dataconnect/schema/staffAvailability.gql rename to legacy/dataconnect-v1/schema/staffAvailability.gql diff --git a/backend/dataconnect/schema/staffAvailabilityStats.gql b/legacy/dataconnect-v1/schema/staffAvailabilityStats.gql similarity index 100% rename from backend/dataconnect/schema/staffAvailabilityStats.gql rename to legacy/dataconnect-v1/schema/staffAvailabilityStats.gql diff --git a/backend/dataconnect/schema/staffCourse.gql b/legacy/dataconnect-v1/schema/staffCourse.gql similarity index 100% rename from backend/dataconnect/schema/staffCourse.gql rename to legacy/dataconnect-v1/schema/staffCourse.gql diff --git a/backend/dataconnect/schema/staffDocument.gql b/legacy/dataconnect-v1/schema/staffDocument.gql similarity index 100% rename from backend/dataconnect/schema/staffDocument.gql rename to legacy/dataconnect-v1/schema/staffDocument.gql diff --git a/backend/dataconnect/schema/staffRole.gql b/legacy/dataconnect-v1/schema/staffRole.gql similarity index 100% rename from backend/dataconnect/schema/staffRole.gql rename to legacy/dataconnect-v1/schema/staffRole.gql diff --git a/backend/dataconnect/schema/task.gql b/legacy/dataconnect-v1/schema/task.gql similarity index 100% rename from backend/dataconnect/schema/task.gql rename to legacy/dataconnect-v1/schema/task.gql diff --git a/backend/dataconnect/schema/task_comment.gql b/legacy/dataconnect-v1/schema/task_comment.gql similarity index 100% rename from backend/dataconnect/schema/task_comment.gql rename to legacy/dataconnect-v1/schema/task_comment.gql diff --git a/backend/dataconnect/schema/taxForm.gql b/legacy/dataconnect-v1/schema/taxForm.gql similarity index 100% rename from backend/dataconnect/schema/taxForm.gql rename to legacy/dataconnect-v1/schema/taxForm.gql diff --git a/backend/dataconnect/schema/team.gql b/legacy/dataconnect-v1/schema/team.gql similarity index 100% rename from backend/dataconnect/schema/team.gql rename to legacy/dataconnect-v1/schema/team.gql diff --git a/backend/dataconnect/schema/teamHub.gql b/legacy/dataconnect-v1/schema/teamHub.gql similarity index 100% rename from backend/dataconnect/schema/teamHub.gql rename to legacy/dataconnect-v1/schema/teamHub.gql diff --git a/backend/dataconnect/schema/teamHudDeparment.gql b/legacy/dataconnect-v1/schema/teamHudDeparment.gql similarity index 100% rename from backend/dataconnect/schema/teamHudDeparment.gql rename to legacy/dataconnect-v1/schema/teamHudDeparment.gql diff --git a/backend/dataconnect/schema/teamMember.gql b/legacy/dataconnect-v1/schema/teamMember.gql similarity index 100% rename from backend/dataconnect/schema/teamMember.gql rename to legacy/dataconnect-v1/schema/teamMember.gql diff --git a/backend/dataconnect/schema/user.gql b/legacy/dataconnect-v1/schema/user.gql similarity index 100% rename from backend/dataconnect/schema/user.gql rename to legacy/dataconnect-v1/schema/user.gql diff --git a/backend/dataconnect/schema/userConversation.gql b/legacy/dataconnect-v1/schema/userConversation.gql similarity index 100% rename from backend/dataconnect/schema/userConversation.gql rename to legacy/dataconnect-v1/schema/userConversation.gql diff --git a/backend/dataconnect/schema/vendor.gql b/legacy/dataconnect-v1/schema/vendor.gql similarity index 100% rename from backend/dataconnect/schema/vendor.gql rename to legacy/dataconnect-v1/schema/vendor.gql diff --git a/backend/dataconnect/schema/vendorRate.gql b/legacy/dataconnect-v1/schema/vendorRate.gql similarity index 100% rename from backend/dataconnect/schema/vendorRate.gql rename to legacy/dataconnect-v1/schema/vendorRate.gql diff --git a/backend/dataconnect/schema/workforce.gql b/legacy/dataconnect-v1/schema/workforce.gql similarity index 100% rename from backend/dataconnect/schema/workforce.gql rename to legacy/dataconnect-v1/schema/workforce.gql diff --git a/makefiles/dataconnect.mk b/makefiles/dataconnect.mk index cd4423ff..3fc7a6f4 100644 --- a/makefiles/dataconnect.mk +++ b/makefiles/dataconnect.mk @@ -10,6 +10,7 @@ DC_ENV ?= dev DC_LOCATION ?= us-central1 DC_CONNECTOR_ID ?= example +DC_ROOT := legacy/dataconnect-v1 DC_SERVICE_DEV := krow-workforce-db DC_SERVICE_VALIDATION := krow-workforce-db-validation @@ -27,23 +28,23 @@ endif #creation dataconnect file dataconnect-file: @echo "--> Starting creation Firebase Data Connect schema file for service [$(DC_SERVICE)]..." - @test -f backend/dataconnect/dataconnect.$(DC_ENV).yaml || (echo "❌ Missing backend/dataconnect/dataconnect.$(DC_ENV).yaml" && exit 1) - @cp backend/dataconnect/dataconnect.$(DC_ENV).yaml backend/dataconnect/dataconnect.yaml + @test -f $(DC_ROOT)/dataconnect.$(DC_ENV).yaml || (echo "❌ Missing $(DC_ROOT)/dataconnect.$(DC_ENV).yaml" && exit 1) + @cp $(DC_ROOT)/dataconnect.$(DC_ENV).yaml $(DC_ROOT)/dataconnect.yaml @echo "✅ Creation Data Connect file completed." #creation dev dataconnect file dataconnect-file-dev: @echo "--> Starting creation Firebase Data Connect schema file for service [$(DC_SERVICE)]..." - @test -f backend/dataconnect/dataconnect.dev.yaml || (echo "❌ Missing backend/dataconnect/dataconnect.dev.yaml" && exit 1) - @cp backend/dataconnect/dataconnect.dev.yaml backend/dataconnect/dataconnect.yaml + @test -f $(DC_ROOT)/dataconnect.dev.yaml || (echo "❌ Missing $(DC_ROOT)/dataconnect.dev.yaml" && exit 1) + @cp $(DC_ROOT)/dataconnect.dev.yaml $(DC_ROOT)/dataconnect.yaml @echo "✅ Creation Data Connect file completed." #creation validation dataconnect file dataconnect-file-validation: @echo "--> Starting creation Firebase Data Connect schema file for service [$(DC_SERVICE)]..." - @test -f backend/dataconnect/dataconnect.validation.yaml || (echo "❌ Missing backend/dataconnect/dataconnect.validation.yaml" && exit 1) - @cp backend/dataconnect/dataconnect.validation.yaml backend/dataconnect/dataconnect.yaml + @test -f $(DC_ROOT)/dataconnect.validation.yaml || (echo "❌ Missing $(DC_ROOT)/dataconnect.validation.yaml" && exit 1) + @cp $(DC_ROOT)/dataconnect.validation.yaml $(DC_ROOT)/dataconnect.yaml @echo "✅ Creation Data Connect file completed." # Enable all required APIs for Firebase Data Connect + Cloud SQL @@ -103,13 +104,13 @@ dataconnect-sync-full: dataconnect-file # Execute seed in Firebase Data Connect dataconnect-seed: dataconnect-file @echo "--> Exec seed in Firebase Data Connect (service: $(DC_SERVICE))..." - @firebase dataconnect:execute backend/dataconnect/functions/seed.gql --project=$(FIREBASE_ALIAS) + @firebase dataconnect:execute $(DC_ROOT)/functions/seed.gql --project=$(FIREBASE_ALIAS) @echo "✅ Seed executed successfully." # Execute clean, to delete all the data in Firebase Data Connect dataconnect-clean: dataconnect-file @echo "--> Exec clean all the data in Firebase Data Connect (service: $(DC_SERVICE))..." - @firebase dataconnect:execute backend/dataconnect/functions/clean.gql --project=$(FIREBASE_ALIAS) + @firebase dataconnect:execute $(DC_ROOT)/functions/clean.gql --project=$(FIREBASE_ALIAS) @echo "✅ Clean information executed successfully." # Run tests for Data Connect deployment and migrations