From a81c8718c4795c5ef43d6ff977f98494f7473901 Mon Sep 17 00:00:00 2001 From: Sam Noel Date: Thu, 10 Oct 2024 13:35:45 -0400 Subject: [PATCH] fix: tree updates for new failure-typed index --- package.json | 2 +- src/tree.ts | 12 +++++++----- yarn.lock | 9 +++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index bc35013..1d64256 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oada/jobs", - "version": "4.7.0", + "version": "4.7.1", "description": "A library for oada job based microservices", "source": "src/index.ts", "main": "dist/index.js", diff --git a/src/tree.ts b/src/tree.ts index ee8b0f0..530f0b1 100644 --- a/src/tree.ts +++ b/src/tree.ts @@ -35,14 +35,14 @@ export const tree = { }, }, jobs: { - _type: 'application/vnd.oada.service.jobs.1+json', - pending: { + '_type': 'application/vnd.oada.service.jobs.1+json', + 'pending': { '_type': 'application/vnd.oada.service.jobs.1+json', '*': { _type: 'application/vnd.oada.service.job.1+json', }, }, - success: { + 'success': { '_type': 'application/vnd.oada.service.jobs.1+json', '_rev': 0, 'day-index': { @@ -56,7 +56,7 @@ export const tree = { }, }, }, - failure: { + 'failure': { '_type': 'application/vnd.oada.service.jobs.1+json', '_rev': 0, 'day-index': { @@ -69,6 +69,8 @@ export const tree = { }, }, }, + }, + 'typed-failure': { '*': { '_type': 'application/vnd.oada.service.jobs.1+json', '_rev': 0, @@ -84,7 +86,7 @@ export const tree = { }, }, }, - reports: { + 'reports': { '_type': 'application/vnd.oada.service.reports.1+json', '*': { '_type': 'application/vnd.oada.service.report.1+json', diff --git a/yarn.lock b/yarn.lock index 5d8027d..7d7166d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -639,9 +639,9 @@ __metadata: languageName: node linkType: hard -"@oada/pino-debug@portal:/home/sanoel/server/oada/libs/pino-debug::locator=%40oada%2Fjobs%40workspace%3A.": - version: 0.0.0-use.local - resolution: "@oada/pino-debug@portal:/home/sanoel/server/oada/libs/pino-debug::locator=%40oada%2Fjobs%40workspace%3A." +"@oada/pino-debug@npm:^4.0.1": + version: 4.0.1 + resolution: "@oada/pino-debug@npm:4.0.1" dependencies: cls-rtracer: "npm:^2.6.3" is-interactive: "npm:^2.0.0" @@ -653,8 +653,9 @@ __metadata: tslib: "npm:2.7.0" peerDependencies: debug: "*" + checksum: 10/ddcc90c5f3568d03c6e6dcc4407f1a64556e7a7e1f89046793117d4a26f15ec500bb0f29d2422f0aaa3a6bcb373d2c64f6ec97d2e37ae916f39a06accc7c542a languageName: node - linkType: soft + linkType: hard "@oada/types@npm:^3.5.3": version: 3.5.3