feat: update @comapeo/schema to 1.2.0, adding alerts and server #2302
Annotations
6 errors and 1 warning
Run npm test:
test-e2e/project-crud.js#L158
Argument of type '{ schemaName: "observation"; lat: number; lon: number; tags: {}; attachments: never[]; metadata: { manualLocation: false; alert_type?: undefined; }; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "preset"; name: string; tags: {}; iconRef: { docId: string; versionId: string; }; geometry: "point"[]; addTags: {}; removeTags: {}; fieldRefs: never[]; terms: never[]; color: string; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "field"; type: "text"; tagKey: string; label: string; universal: false; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "track"; observationRefs: never[]; tags: {}; locations: { timestamp: string; mocked: boolean; coords: { latitude: number; longitude: number; altitude: number; accuracy: number; heading: number; speed: number; }; }[]; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "remoteDetectionAlert"; detectionDateStart: string; detectionDateEnd: string; sourceId: string; metadata: { alert_type: string; manualLocation?: undefined; }; geometry: { type: "Point"; coordinates: [number, number]; }; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; name?: undefined; iconRef?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; }' is not assignable to parameter of type 'MapeoValue'.
|
Run npm test:
test-e2e/project-crud.js#L240
Argument of type '{ schemaName: "observation"; lat: number; lon: number; tags: {}; attachments: never[]; metadata: { manualLocation: false; alert_type?: undefined; }; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "preset"; name: string; tags: {}; iconRef: { docId: string; versionId: string; }; geometry: "point"[]; addTags: {}; removeTags: {}; fieldRefs: never[]; terms: never[]; color: string; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "field"; type: "text"; tagKey: string; label: string; universal: false; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "track"; observationRefs: never[]; tags: {}; locations: { timestamp: string; mocked: boolean; coords: { latitude: number; longitude: number; altitude: number; accuracy: number; heading: number; speed: number; }; }[]; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "remoteDetectionAlert"; detectionDateStart: string; detectionDateEnd: string; sourceId: string; metadata: { alert_type: string; manualLocation?: undefined; }; geometry: { type: "Point"; coordinates: [number, number]; }; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; name?: undefined; iconRef?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; }' is not assignable to parameter of type 'MapeoValue'.
|
Run npm test:
test-e2e/project-crud.js#L251
Argument of type '{ schemaName: "observation"; lat: number; lon: number; tags: {}; attachments: never[]; metadata: { manualLocation: false; alert_type?: undefined; }; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "preset"; name: string; tags: {}; iconRef: { docId: string; versionId: string; }; geometry: "point"[]; addTags: {}; removeTags: {}; fieldRefs: never[]; terms: never[]; color: string; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "field"; type: "text"; tagKey: string; label: string; universal: false; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "track"; observationRefs: never[]; tags: {}; locations: { timestamp: string; mocked: boolean; coords: { latitude: number; longitude: number; altitude: number; accuracy: number; heading: number; speed: number; }; }[]; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "remoteDetectionAlert"; detectionDateStart: string; detectionDateEnd: string; sourceId: string; metadata: { alert_type: string; manualLocation?: undefined; }; geometry: { type: "Point"; coordinates: [number, number]; }; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; name?: undefined; iconRef?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; }' is not assignable to parameter of type 'MapeoValue'.
|
Run npm test:
test-e2e/project-crud.js#L274
Argument of type '{ schemaName: "observation"; lat: number; lon: number; tags: {}; attachments: never[]; metadata: { manualLocation: false; alert_type?: undefined; }; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "preset"; name: string; tags: {}; iconRef: { docId: string; versionId: string; }; geometry: "point"[]; addTags: {}; removeTags: {}; fieldRefs: never[]; terms: never[]; color: string; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "field"; type: "text"; tagKey: string; label: string; universal: false; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "track"; observationRefs: never[]; tags: {}; locations: { timestamp: string; mocked: boolean; coords: { latitude: number; longitude: number; altitude: number; accuracy: number; heading: number; speed: number; }; }[]; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "remoteDetectionAlert"; detectionDateStart: string; detectionDateEnd: string; sourceId: string; metadata: { alert_type: string; manualLocation?: undefined; }; geometry: { type: "Point"; coordinates: [number, number]; }; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; name?: undefined; iconRef?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; }' is not assignable to parameter of type 'MapeoValue'.
|
Run npm test:
test-e2e/project-crud.js#L341
Argument of type '{ schemaName: "observation"; lat: number; lon: number; tags: {}; attachments: never[]; metadata: { manualLocation: false; alert_type?: undefined; }; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "preset"; name: string; tags: {}; iconRef: { docId: string; versionId: string; }; geometry: "point"[]; addTags: {}; removeTags: {}; fieldRefs: never[]; terms: never[]; color: string; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "field"; type: "text"; tagKey: string; label: string; universal: false; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; observationRefs?: undefined; locations?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "track"; observationRefs: never[]; tags: {}; locations: { timestamp: string; mocked: boolean; coords: { latitude: number; longitude: number; altitude: number; accuracy: number; heading: number; speed: number; }; }[]; lat?: undefined; lon?: undefined; attachments?: undefined; metadata?: undefined; name?: undefined; iconRef?: undefined; geometry?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; detectionDateStart?: undefined; detectionDateEnd?: undefined; sourceId?: undefined; } | { schemaName: "remoteDetectionAlert"; detectionDateStart: string; detectionDateEnd: string; sourceId: string; metadata: { alert_type: string; manualLocation?: undefined; }; geometry: { type: "Point"; coordinates: [number, number]; }; lat?: undefined; lon?: undefined; tags?: undefined; attachments?: undefined; name?: undefined; iconRef?: undefined; addTags?: undefined; removeTags?: undefined; fieldRefs?: undefined; terms?: undefined; color?: undefined; type?: undefined; tagKey?: undefined; label?: undefined; universal?: undefined; observationRefs?: undefined; locations?: undefined; }' is not assignable to parameter of type 'MapeoValue'.
|
Run npm test
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading