feat(backend): implement v2 domain slice and live smoke
This commit is contained in:
162
backend/command-api/scripts/v2-demo-fixture.mjs
Normal file
162
backend/command-api/scripts/v2-demo-fixture.mjs
Normal file
@@ -0,0 +1,162 @@
|
||||
export const V2DemoFixture = {
|
||||
tenant: {
|
||||
id: '6d5fa42c-1f38-49be-8895-8aeb0e731001',
|
||||
slug: 'legendary-event-staffing',
|
||||
name: 'Legendary Event Staffing and Entertainment',
|
||||
},
|
||||
users: {
|
||||
businessOwner: {
|
||||
id: process.env.V2_DEMO_OWNER_UID || 'dvpWnaBjT6UksS5lo04hfMTyq1q1',
|
||||
email: process.env.V2_DEMO_OWNER_EMAIL || 'legendary@krowd.com',
|
||||
displayName: 'Legendary Demo Owner',
|
||||
},
|
||||
operationsManager: {
|
||||
id: 'demo-ops-manager',
|
||||
email: 'ops+v2@krowd.com',
|
||||
displayName: 'Wil Ops Lead',
|
||||
},
|
||||
vendorManager: {
|
||||
id: 'demo-vendor-manager',
|
||||
email: 'vendor+v2@krowd.com',
|
||||
displayName: 'Vendor Manager',
|
||||
},
|
||||
},
|
||||
business: {
|
||||
id: '14f4fcfb-f21f-4ba9-9328-90f794a56001',
|
||||
slug: 'google-mv-cafes',
|
||||
name: 'Google Mountain View Cafes',
|
||||
},
|
||||
vendor: {
|
||||
id: '80f8c8d3-9da8-4892-908f-4d4982af7001',
|
||||
slug: 'legendary-pool-a',
|
||||
name: 'Legendary Staffing Pool A',
|
||||
},
|
||||
roles: {
|
||||
barista: {
|
||||
id: '67c5010e-85f0-4f6b-99b7-167c9afdf001',
|
||||
code: 'BARISTA',
|
||||
name: 'Barista',
|
||||
},
|
||||
captain: {
|
||||
id: '67c5010e-85f0-4f6b-99b7-167c9afdf002',
|
||||
code: 'CAPTAIN',
|
||||
name: 'Captain',
|
||||
},
|
||||
},
|
||||
staff: {
|
||||
ana: {
|
||||
id: '4b7dff1a-1856-4d59-b450-5a6736461001',
|
||||
fullName: 'Ana Barista',
|
||||
email: 'ana.barista+v2@krowd.com',
|
||||
phone: '+15557654321',
|
||||
primaryRole: 'BARISTA',
|
||||
},
|
||||
},
|
||||
workforce: {
|
||||
ana: {
|
||||
id: '4cc1d34a-87c3-4426-8ee0-a24c8bcfa001',
|
||||
workforceNumber: 'WF-V2-ANA-001',
|
||||
},
|
||||
},
|
||||
clockPoint: {
|
||||
id: 'efb80ccf-3361-49c8-bc74-ff8cd4d2e001',
|
||||
label: 'Google MV Cafe Clock Point',
|
||||
address: '1600 Amphitheatre Pkwy, Mountain View, CA',
|
||||
latitude: 37.4221,
|
||||
longitude: -122.0841,
|
||||
geofenceRadiusMeters: 120,
|
||||
nfcTagUid: 'NFC-DEMO-ANA-001',
|
||||
},
|
||||
orders: {
|
||||
open: {
|
||||
id: 'b6132d7a-45c3-4879-b349-46b2fd518001',
|
||||
number: 'ORD-V2-OPEN-1001',
|
||||
title: 'Morning cafe staffing',
|
||||
},
|
||||
completed: {
|
||||
id: 'b6132d7a-45c3-4879-b349-46b2fd518002',
|
||||
number: 'ORD-V2-COMP-1002',
|
||||
title: 'Completed catering shift',
|
||||
},
|
||||
},
|
||||
shifts: {
|
||||
open: {
|
||||
id: '6e7dadad-99e4-45bb-b0da-7bb617954001',
|
||||
code: 'SHIFT-V2-OPEN-1',
|
||||
title: 'Open breakfast shift',
|
||||
},
|
||||
completed: {
|
||||
id: '6e7dadad-99e4-45bb-b0da-7bb617954002',
|
||||
code: 'SHIFT-V2-COMP-1',
|
||||
title: 'Completed catering shift',
|
||||
},
|
||||
},
|
||||
shiftRoles: {
|
||||
openBarista: {
|
||||
id: '4dd35b2b-4aaf-4c28-a91f-7bda05e2b001',
|
||||
},
|
||||
completedBarista: {
|
||||
id: '4dd35b2b-4aaf-4c28-a91f-7bda05e2b002',
|
||||
},
|
||||
},
|
||||
applications: {
|
||||
openAna: {
|
||||
id: 'd70d6441-6d0c-4fdb-9a29-c9d9e0c34001',
|
||||
},
|
||||
},
|
||||
assignments: {
|
||||
completedAna: {
|
||||
id: 'f1d3f738-a132-4863-b222-4f9cb25aa001',
|
||||
},
|
||||
},
|
||||
timesheets: {
|
||||
completedAna: {
|
||||
id: '41ea4057-0c55-4907-b525-07315b2b6001',
|
||||
},
|
||||
},
|
||||
invoices: {
|
||||
completed: {
|
||||
id: '1455e15b-77f9-4c66-b2a8-dce35f7ac001',
|
||||
number: 'INV-V2-2001',
|
||||
},
|
||||
},
|
||||
recentPayments: {
|
||||
completed: {
|
||||
id: 'be6f736b-e945-4676-a73d-2912c7575001',
|
||||
},
|
||||
},
|
||||
favorites: {
|
||||
ana: {
|
||||
id: 'ba5cb8fa-0be9-4ef4-a9fb-e60a8a48e001',
|
||||
},
|
||||
},
|
||||
reviews: {
|
||||
anaCompleted: {
|
||||
id: '9b6bc737-fd69-4855-b425-6f0c2c4fd001',
|
||||
},
|
||||
},
|
||||
documents: {
|
||||
foodSafety: {
|
||||
id: 'e6fd0183-34d9-4c23-9a9a-bf98da995001',
|
||||
name: 'Food Handler Card',
|
||||
},
|
||||
},
|
||||
staffDocuments: {
|
||||
foodSafety: {
|
||||
id: '4b157236-a4b0-4c44-b199-7d4ea1f95001',
|
||||
},
|
||||
},
|
||||
certificates: {
|
||||
foodSafety: {
|
||||
id: 'df6452dc-4ec7-4d54-876d-26bf8ce5b001',
|
||||
},
|
||||
},
|
||||
accounts: {
|
||||
businessPrimary: {
|
||||
id: '5d98e0ba-8e89-4ffb-aafd-df6bbe2fe001',
|
||||
},
|
||||
staffPrimary: {
|
||||
id: '5d98e0ba-8e89-4ffb-aafd-df6bbe2fe002',
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user