@dynamatix/gb-schemas 2.0.63 → 2.0.64

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.
@@ -5,13 +5,13 @@ export declare class ProductCatalogueEntity {
5
5
  productCatalogueId: string;
6
6
  name: string;
7
7
  description?: string;
8
- applyFrom: string;
9
- applyUntil: string;
10
- submitUntil: string;
11
- status: string;
12
- lockedForEdit: string;
8
+ applyFrom: Date;
9
+ applyUntil: Date;
10
+ submitUntil: Date;
11
+ status: number;
12
+ lockedForEdit: boolean;
13
13
  baseRateName?: string;
14
- baseRate?: string;
14
+ baseRate?: number;
15
15
  mapperName?: string;
16
16
  createdAt: Date;
17
17
  updatedAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"product-catalogue.entity.d.ts","sourceRoot":"","sources":["../../../entities/product-catalogues/product-catalogue.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBAAa,sBAAsB;IAC/B,EAAE,EAAG,MAAM,CAAC;IACZ,kBAAkB,EAAG,MAAM,CAAC;IAC5B,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAG,MAAM,CAAC;IACnB,UAAU,EAAG,MAAM,CAAC;IACpB,WAAW,EAAG,MAAM,CAAC;IACrB,MAAM,EAAG,MAAM,CAAC;IAChB,aAAa,EAAG,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,kBAAkB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC/C,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAC;gBAE7B,OAAO,EAAE,OAAO,CAAC,sBAAsB,CAAC;CAGvD"}
1
+ {"version":3,"file":"product-catalogue.entity.d.ts","sourceRoot":"","sources":["../../../entities/product-catalogues/product-catalogue.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBAAa,sBAAsB;IAC/B,EAAE,EAAG,MAAM,CAAC;IACZ,kBAAkB,EAAG,MAAM,CAAC;IAC5B,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAG,IAAI,CAAC;IACjB,UAAU,EAAG,IAAI,CAAC;IAClB,WAAW,EAAG,IAAI,CAAC;IACnB,MAAM,EAAG,MAAM,CAAC;IAChB,aAAa,EAAG,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,kBAAkB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC/C,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAC;gBAE7B,OAAO,EAAE,OAAO,CAAC,sBAAsB,CAAC;CAGvD"}
@@ -6,13 +6,13 @@ export class ProductCatalogueEntity {
6
6
  productCatalogueId!: string;
7
7
  name!: string;
8
8
  description?: string;
9
- applyFrom!: string;
10
- applyUntil!: string;
11
- submitUntil!: string;
12
- status!: string;
13
- lockedForEdit!: string;
9
+ applyFrom!: Date;
10
+ applyUntil!: Date;
11
+ submitUntil!: Date;
12
+ status!: number;
13
+ lockedForEdit!: boolean;
14
14
  baseRateName?: string;
15
- baseRate?: string;
15
+ baseRate?: number;
16
16
  mapperName?: string;
17
17
  createdAt!: Date;
18
18
  updatedAt!: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.0.63",
3
+ "version": "2.0.64",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,28 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - The `base_rate` column on the `product_catalogues` table would be dropped and recreated. This will lead to data loss if there is data in the column.
5
+ - A unique constraint covering the columns `[product_catalogue_id]` on the table `product_catalogues` will be added. If there are existing duplicate values, this will fail.
6
+ - Changed the type of `apply_from` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
7
+ - Changed the type of `apply_until` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
8
+ - Changed the type of `submit_until` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
9
+ - Changed the type of `status` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
10
+ - Changed the type of `locked_for_edit` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
11
+
12
+ */
13
+ -- AlterTable
14
+ ALTER TABLE "product_catalogues" DROP COLUMN "apply_from",
15
+ ADD COLUMN "apply_from" TIMESTAMP(3) NOT NULL,
16
+ DROP COLUMN "apply_until",
17
+ ADD COLUMN "apply_until" TIMESTAMP(3) NOT NULL,
18
+ DROP COLUMN "submit_until",
19
+ ADD COLUMN "submit_until" TIMESTAMP(3) NOT NULL,
20
+ DROP COLUMN "status",
21
+ ADD COLUMN "status" INTEGER NOT NULL,
22
+ DROP COLUMN "locked_for_edit",
23
+ ADD COLUMN "locked_for_edit" BOOLEAN NOT NULL,
24
+ DROP COLUMN "base_rate",
25
+ ADD COLUMN "base_rate" DOUBLE PRECISION;
26
+
27
+ -- CreateIndex
28
+ CREATE UNIQUE INDEX "product_catalogues_product_catalogue_id_key" ON "product_catalogues"("product_catalogue_id");
@@ -1,22 +1,22 @@
1
1
  model ProductCatalogue {
2
- id String @id @default(uuid())
3
- productCatalogueId String @map("product_catalogue_id")
4
- name String @map("name")
5
- description String? @map("description")
6
- applyFrom String @map("apply_from")
7
- applyUntil String @map("apply_until")
8
- submitUntil String @map("submit_until")
9
- status String @map("status")
10
- lockedForEdit String @map("locked_for_edit")
11
- baseRateName String? @map("base_rate_name")
12
- baseRate String? @map("base_rate")
13
- mapperName String? @map("mapper_name")
14
- createdAt DateTime @default(now()) @map("created_at")
15
- updatedAt DateTime @updatedAt @map("updated_at")
2
+ id String @id @default(uuid())
3
+ productCatalogueId String @unique @map("product_catalogue_id")
4
+ name String @map("name")
5
+ description String? @map("description")
6
+ applyFrom DateTime @map("apply_from")
7
+ applyUntil DateTime @map("apply_until")
8
+ submitUntil DateTime @map("submit_until")
9
+ status Int @map("status")
10
+ lockedForEdit Boolean @map("locked_for_edit")
11
+ baseRateName String? @map("base_rate_name")
12
+ baseRate Float? @map("base_rate")
13
+ mapperName String? @map("mapper_name")
14
+ createdAt DateTime @default(now()) @map("created_at")
15
+ updatedAt DateTime @updatedAt @map("updated_at")
16
16
 
17
17
  // Relations
18
18
  productDefinitions ProductDefinition[]
19
19
  productVariants ProductVariant[]
20
20
 
21
21
  @@map("product_catalogues")
22
- }
22
+ }
@@ -388,20 +388,20 @@ model User {
388
388
 
389
389
  // From prisma/product-catalogues/product-catalogue.prisma
390
390
  model ProductCatalogue {
391
- id String @id @default(uuid())
392
- productCatalogueId String @map("product_catalogue_id")
393
- name String @map("name")
394
- description String? @map("description")
395
- applyFrom String @map("apply_from")
396
- applyUntil String @map("apply_until")
397
- submitUntil String @map("submit_until")
398
- status String @map("status")
399
- lockedForEdit String @map("locked_for_edit")
400
- baseRateName String? @map("base_rate_name")
401
- baseRate String? @map("base_rate")
402
- mapperName String? @map("mapper_name")
403
- createdAt DateTime @default(now()) @map("created_at")
404
- updatedAt DateTime @updatedAt @map("updated_at")
391
+ id String @id @default(uuid())
392
+ productCatalogueId String @unique @map("product_catalogue_id")
393
+ name String @map("name")
394
+ description String? @map("description")
395
+ applyFrom DateTime @map("apply_from")
396
+ applyUntil DateTime @map("apply_until")
397
+ submitUntil DateTime @map("submit_until")
398
+ status Int @map("status")
399
+ lockedForEdit Boolean @map("locked_for_edit")
400
+ baseRateName String? @map("base_rate_name")
401
+ baseRate Float? @map("base_rate")
402
+ mapperName String? @map("mapper_name")
403
+ createdAt DateTime @default(now()) @map("created_at")
404
+ updatedAt DateTime @updatedAt @map("updated_at")
405
405
 
406
406
  // Relations
407
407
  productDefinitions ProductDefinition[]