Make designer optional in mutation (#30)
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
|||||||
Orientation,
|
Orientation,
|
||||||
ProductsFilterInput,
|
ProductsFilterInput,
|
||||||
ProductInfoInput,
|
ProductInfoInput,
|
||||||
ProductBlacklistInput,
|
|
||||||
ProductBlacklistMarketInput,
|
ProductBlacklistMarketInput,
|
||||||
ProductMaterials,
|
ProductMaterials,
|
||||||
ProductSizeTypes,
|
ProductSizeTypes,
|
||||||
@@ -191,7 +190,7 @@ export class ProductAPI extends BaseSQLDataSource {
|
|||||||
path: info.path,
|
path: info.path,
|
||||||
browsable: info.browsable ? 1 : 0,
|
browsable: info.browsable ? 1 : 0,
|
||||||
visible: info.visible ? 1 : 0,
|
visible: info.visible ? 1 : 0,
|
||||||
designerid: info.designerId,
|
designerid: info.designerId ?? null,
|
||||||
ref1: info.ref1,
|
ref1: info.ref1,
|
||||||
ref2: info.ref2,
|
ref2: info.ref2,
|
||||||
ref3: info.ref3,
|
ref3: info.ref3,
|
||||||
|
|||||||
+1
-1
@@ -383,7 +383,7 @@ input ProductInfoInput {
|
|||||||
ref1: String!
|
ref1: String!
|
||||||
ref2: String!
|
ref2: String!
|
||||||
ref3: String!
|
ref3: String!
|
||||||
designerId: Int!
|
designerId: Int
|
||||||
browsable: Boolean!
|
browsable: Boolean!
|
||||||
visible: Boolean!
|
visible: Boolean!
|
||||||
printFileWidth: Int!
|
printFileWidth: Int!
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { PaginationInput, PaginationResult } from './types';
|
import { Maybe, PaginationInput, PaginationResult } from './types';
|
||||||
|
|
||||||
// Mutation inputs
|
// Mutation inputs
|
||||||
export interface ProductInfoInput {
|
export interface ProductInfoInput {
|
||||||
@@ -10,7 +10,7 @@ export interface ProductInfoInput {
|
|||||||
ref1: string;
|
ref1: string;
|
||||||
ref2: string;
|
ref2: string;
|
||||||
ref3: string;
|
ref3: string;
|
||||||
designerId: number;
|
designerId: Maybe<number>;
|
||||||
browsable: boolean;
|
browsable: boolean;
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
printFileWidth: number;
|
printFileWidth: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user