@things-factory/product-base 6.2.133 → 6.2.138

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-base",
3
- "version": "6.2.133",
3
+ "version": "6.2.138",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,9 +24,9 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/biz-base": "^6.2.133",
27
+ "@things-factory/biz-base": "^6.2.138",
28
28
  "@things-factory/env": "^6.2.122",
29
- "@things-factory/routing-base": "^6.2.133"
29
+ "@things-factory/routing-base": "^6.2.138"
30
30
  },
31
- "gitHead": "3a8ec24c20c710cb36bdac0e34394f08d5169f92"
31
+ "gitHead": "b3a06b97cb5c24cc44ea35f0dd3dde4971fa1a5a"
32
32
  }
@@ -1,15 +1,5 @@
1
1
  import { Field, Float, ID, ObjectType } from 'type-graphql'
2
- import {
3
- Column,
4
- CreateDateColumn,
5
- Entity,
6
- Index,
7
- ManyToOne,
8
- OneToMany,
9
- PrimaryGeneratedColumn,
10
- RelationId,
11
- UpdateDateColumn
12
- } from 'typeorm'
2
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'
13
3
 
14
4
  import { User } from '@things-factory/auth-base'
15
5
  import { Bizplace } from '@things-factory/biz-base'
@@ -335,7 +325,7 @@ export class Product {
335
325
  bufferQty: number
336
326
 
337
327
  //// To be removed ////
338
- @Column({ nullable: true })
328
+ @Column('float', { nullable: true })
339
329
  @Field({ nullable: true })
340
330
  minQty: number
341
331
 
@@ -68,7 +68,7 @@ export class NewProductDetail {
68
68
  @Field(type => Int, { nullable: true })
69
69
  bufferQty?: number
70
70
 
71
- @Field(type => Int, { nullable: true })
71
+ @Field(type => Float, { nullable: true })
72
72
  minQty?: number
73
73
 
74
74
  @Field(type => Int, { nullable: true })
@@ -212,7 +212,7 @@ export class ProductDetailPatch {
212
212
  @Field(type => Int, { nullable: true })
213
213
  bufferQty?: number
214
214
 
215
- @Field(type => Int, { nullable: true })
215
+ @Field(type => Float, { nullable: true })
216
216
  minQty?: number
217
217
 
218
218
  @Field(type => Int, { nullable: true })
@@ -1,17 +1,9 @@
1
+ import { Field, Float, ID, ObjectType } from 'type-graphql'
2
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'
3
+
1
4
  import { User } from '@things-factory/auth-base'
2
5
  import { Domain } from '@things-factory/shell'
3
- import { Field, Float, ID, ObjectType } from 'type-graphql'
4
- import {
5
- Column,
6
- CreateDateColumn,
7
- Entity,
8
- Index,
9
- ManyToOne,
10
- OneToMany,
11
- PrimaryGeneratedColumn,
12
- RelationId,
13
- UpdateDateColumn
14
- } from 'typeorm'
6
+
15
7
  import { ProductDetailBizplaceSetting } from '../product-detail-bizplace-setting/product-detail-bizplace-setting'
16
8
  import { Product } from '../product/product'
17
9
 
@@ -239,7 +231,7 @@ export class ProductDetail {
239
231
  @Field()
240
232
  bufferQty: number
241
233
 
242
- @Column({ default: 0 })
234
+ @Column('float', { default: 0 })
243
235
  @Field()
244
236
  minQty: number
245
237
 
@@ -1,4 +1,4 @@
1
- import { Field, InputType, Int, ObjectType } from 'type-graphql'
1
+ import { Field, Float, InputType, Int, ObjectType } from 'type-graphql'
2
2
 
3
3
  import { ObjectRef } from '@things-factory/shell'
4
4
 
@@ -18,7 +18,7 @@ export class NewProductDetailBizplaceSetting {
18
18
  @Field(type => Int, { nullable: true })
19
19
  bufferQty?: number
20
20
 
21
- @Field(type => Int, { nullable: true })
21
+ @Field(type => Float, { nullable: true })
22
22
  minQty?: number
23
23
 
24
24
  @Field(type => Int, { nullable: true })
@@ -51,7 +51,7 @@ export class ProductDetailBizplaceSettingPatch {
51
51
  @Field(type => Int, { nullable: true })
52
52
  bufferQty?: number
53
53
 
54
- @Field(type => Int, { nullable: true })
54
+ @Field(type => Float, { nullable: true })
55
55
  minQty?: number
56
56
 
57
57
  @Field(type => Int, { nullable: true })
@@ -1,16 +1,9 @@
1
+ import { Field, ID, ObjectType } from 'type-graphql'
2
+ import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'
3
+
1
4
  import { User } from '@things-factory/auth-base'
2
5
  import { Domain } from '@things-factory/shell'
3
- import { Field, ID, ObjectType } from 'type-graphql'
4
- import {
5
- Column,
6
- CreateDateColumn,
7
- Entity,
8
- Index,
9
- ManyToOne,
10
- PrimaryGeneratedColumn,
11
- RelationId,
12
- UpdateDateColumn
13
- } from 'typeorm'
6
+
14
7
  import { ProductDetail } from '../product-detail/product-detail'
15
8
 
16
9
  /**
@@ -66,7 +59,7 @@ export class ProductDetailBizplaceSetting {
66
59
  @Field()
67
60
  bufferQty: number
68
61
 
69
- @Column({ default: 0 })
62
+ @Column('float', { default: 0 })
70
63
  @Field()
71
64
  minQty: number
72
65