@dynamatix/gb-schemas 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/entities/shared/apprivo-sync-journey.entity.ts +9 -5
- package/entities/shared/apprivo-sync-journey.model.ts +13 -0
- package/entities/shared/job-setting.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +10 -0
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +30 -0
- package/prisma/schema.prisma +1150 -1144
- package/prisma/shared/apprivo-sync-journey.prisma +15 -8
- package/prisma/shared/job-run.prisma +3 -0
- package/prisma/shared/job-setting.prisma +1 -1
- package/prisma/shared/lookup.prisma +1 -0
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { ApprivoSyncJourneyModel } from './apprivo-sync-journey.model';
|
|
1
2
|
import { LookupEntity } from './lookup.entity';
|
|
2
3
|
import { JobRunEntity } from './job-run.entity';
|
|
3
4
|
|
|
4
|
-
export class ApprivoSyncJourneyEntity {
|
|
5
|
+
export class ApprivoSyncJourneyEntity implements ApprivoSyncJourneyModel {
|
|
5
6
|
id!: string;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
applicationId!: string;
|
|
8
|
+
milestoneLid?: string;
|
|
9
|
+
mileStoneStatus!: 'Completed' | 'Errored' | 'Not Applicable';
|
|
8
10
|
error?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
isFirstPull!: string;
|
|
12
|
+
jobRunId?: string;
|
|
13
|
+
startTime?: Date;
|
|
14
|
+
endTime?: Date;
|
|
11
15
|
createdAt!: Date;
|
|
12
16
|
updatedAt!: Date;
|
|
13
17
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ApprivoSyncJourneyModel {
|
|
2
|
+
id: string;
|
|
3
|
+
applicationId: string;
|
|
4
|
+
milestoneLid?: string;
|
|
5
|
+
mileStoneStatus: 'Completed' | 'Errored' | 'Not Applicable';
|
|
6
|
+
error?: string;
|
|
7
|
+
isFirstPull: string;
|
|
8
|
+
jobRunId?: string;
|
|
9
|
+
startTime?: Date;
|
|
10
|
+
endTime?: Date;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `job_name` on the `job_settings` table. All the data in the column will be lost.
|
|
5
|
+
- Added the required column `name` to the `job_settings` table without a default value. This is not possible if the table is not empty.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE "job_settings" DROP COLUMN "job_name",
|
|
10
|
+
ADD COLUMN "name" TEXT NOT NULL;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `completed_at` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to drop the column `journey_id` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
|
|
6
|
+
- You are about to drop the column `started_at` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
|
|
7
|
+
- You are about to drop the column `status` on the `apprivo_sync_journeys` table. All the data in the column will be lost.
|
|
8
|
+
- Added the required column `application_id` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
|
|
9
|
+
- Added the required column `is_first_pull` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
|
|
10
|
+
- Added the required column `milestone_status` to the `apprivo_sync_journeys` table without a default value. This is not possible if the table is not empty.
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
-- AlterTable
|
|
14
|
+
ALTER TABLE "apprivo_sync_journeys" DROP COLUMN "completed_at",
|
|
15
|
+
DROP COLUMN "journey_id",
|
|
16
|
+
DROP COLUMN "started_at",
|
|
17
|
+
DROP COLUMN "status",
|
|
18
|
+
ADD COLUMN "application_id" TEXT NOT NULL,
|
|
19
|
+
ADD COLUMN "end_time" TIMESTAMP(3),
|
|
20
|
+
ADD COLUMN "is_first_pull" TEXT NOT NULL,
|
|
21
|
+
ADD COLUMN "job_run_id" TEXT,
|
|
22
|
+
ADD COLUMN "milestone_lid" TEXT,
|
|
23
|
+
ADD COLUMN "milestone_status" TEXT NOT NULL,
|
|
24
|
+
ADD COLUMN "start_time" TIMESTAMP(3);
|
|
25
|
+
|
|
26
|
+
-- AddForeignKey
|
|
27
|
+
ALTER TABLE "apprivo_sync_journeys" ADD CONSTRAINT "apprivo_sync_journeys_milestone_lid_fkey" FOREIGN KEY ("milestone_lid") REFERENCES "lookups"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
28
|
+
|
|
29
|
+
-- AddForeignKey
|
|
30
|
+
ALTER TABLE "apprivo_sync_journeys" ADD CONSTRAINT "apprivo_sync_journeys_job_run_id_fkey" FOREIGN KEY ("job_run_id") REFERENCES "job_runs"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|