Skip to content

Commit

Permalink
remove old schemas; #803
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Jan 2, 2023
1 parent d76f60a commit 47445ab
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 385 deletions.
14 changes: 1 addition & 13 deletions client/src/plugins/dataTypes/Alphanumeric/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'numeric',
fieldGroupOrder: 10,
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
placeholder: {
type: 'string'
}
},
required: [
'placeholder'
]
}
fieldGroupOrder: 10
};

export default definition;
21 changes: 1 addition & 20 deletions client/src/plugins/dataTypes/AutoIncrement/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'numeric',
fieldGroupOrder: 20,
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
incrementStart: {
type: 'number'
},
incrementValue: {
type: 'number'
},
incrementPlaceholder: {
type: 'string'
}
},
required: [
'incrementStart',
'incrementValue'
]
}
fieldGroupOrder: 20
};

export default definition;
4 changes: 1 addition & 3 deletions client/src/plugins/dataTypes/BitcoinAddress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'financial',
fieldGroupOrder: 5,
schema: {
}
fieldGroupOrder: 5
};

export default definition;
14 changes: 1 addition & 13 deletions client/src/plugins/dataTypes/Boolean/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'numeric',
fieldGroupOrder: 11,
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
placeholder: {
type: 'string'
}
},
required: [
'placeholder'
]
}
fieldGroupOrder: 11
};

export default definition;
14 changes: 1 addition & 13 deletions client/src/plugins/dataTypes/City/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@ import { DTDefinition } from '~types/dataTypes';
const definition: DTDefinition = {
fieldGroup: 'geo',
fieldGroupOrder: 20,
dependencies: ['Country', 'Region'],
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
placeholder: {
type: 'string'
}
},
required: [
'placeholder'
]
}
dependencies: ['Country', 'Region']
};

export default definition;
4 changes: 1 addition & 3 deletions client/src/plugins/dataTypes/Colour/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'other',
fieldGroupOrder: 50,
schema: {
}
fieldGroupOrder: 50
};

export default definition;
16 changes: 2 additions & 14 deletions client/src/plugins/dataTypes/Computed/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,8 @@ const definition: DTDefinition = {
'Alphanumeric', 'AutoIncrement', 'Boolean', 'City', 'Company', 'Constant', 'Country', 'Currency',
'CVV', 'Date', 'Email', 'GUID', 'IBAN', 'LatLng', 'List', 'Names', 'NormalDistribution', 'NumberRange',
'OrganizationNumber', 'PAN', 'PersonalNumber', 'Phone', 'PIN', 'PostalZip', 'Region', 'Rut', 'SIRET',
'StreetAddress', 'TextFixed', 'TextRandom', 'Track1', 'Track2'
],
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
placeholder: {
type: 'string'
}
},
required: [
'placeholder'
]
}
'StreetAddress', 'TextFixed', 'TextRandom', 'Track1', 'Track2', 'WeightedList'
]
};

export default definition;
18 changes: 1 addition & 17 deletions client/src/plugins/dataTypes/Constant/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,7 @@ import { DTDefinition } from '~types/dataTypes';
const definition: DTDefinition = {
fieldGroup: 'other',
fieldGroupOrder: 10,
dependencies: [],
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
loopCount: {
type: 'number'
},
values: {
type: 'string'
}
},
required: [
'loopCount',
'values'
]
}
dependencies: []
};

export default definition;
14 changes: 1 addition & 13 deletions client/src/plugins/dataTypes/Country/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'geo',
fieldGroupOrder: 50,
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
limitCountriesToSelectedPlugins: {
type: 'boolean'
}
},
required: [
'limitCountriesToSelectedPlugins'
]
}
fieldGroupOrder: 50
};

export default definition;
31 changes: 1 addition & 30 deletions client/src/plugins/dataTypes/Currency/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'financial',
fieldGroupOrder: 10,
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
format: {
type: 'string'
},
rangeFrom: {
type: 'string'
},
rangeTo: {
type: 'string'
},
symbol: {
type: 'string'
},
symbolLocation: {
enum: [
'prefix',
'suffix'
]
}
},
required: [
'format',
'rangeFrom',
'rangeTo'
]
}
fieldGroupOrder: 10
};

export default definition;
22 changes: 1 addition & 21 deletions client/src/plugins/dataTypes/Date/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'humanData',
fieldGroupOrder: 40,
schema: {
$schema: 'http://json-schema.org/draft-04/schema#',
type: 'object',
properties: {
fromDate: {
type: 'string'
},
toDate: {
type: 'string'
},
placeholder: {
type: 'string'
}
},
required: [
'fromDate',
'toDate',
'placeholder'
]
}
fieldGroupOrder: 40
};

export default definition;
17 changes: 1 addition & 16 deletions client/src/plugins/dataTypes/LatLng/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'geo',
fieldGroupOrder: 100,
schema: {
type: 'object',
properties: {
lat: {
type: 'boolean'
},
lng: {
type: 'boolean'
}
},
required: [
'lat',
'lng'
]
}
fieldGroupOrder: 100
};

export default definition;
26 changes: 1 addition & 25 deletions client/src/plugins/dataTypes/List/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'other',
fieldGroupOrder: 40,
schema: {
type: 'object',
properties: {
listType: {
enum: [
'exactly',
'atMost'
]
},
exactly: {
type: 'number'
},
atMost: {
type: 'number'
},
list: {
type: 'string'
}
},
required: [
'listType',
'list'
]
}
fieldGroupOrder: 40
};

export default definition;
13 changes: 1 addition & 12 deletions client/src/plugins/dataTypes/Names/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'humanData',
fieldGroupOrder: 10,
schema: {
type: 'object',
properties: {
placeholder: {
type: 'string'
}
},
required: [
'placeholder'
]
}
fieldGroupOrder: 10
};

export default definition;
21 changes: 1 addition & 20 deletions client/src/plugins/dataTypes/NormalDistribution/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'numeric',
fieldGroupOrder: 35,
schema: {
type: 'object',
properties: {
mean: {
type: 'string'
},
sigma: {
type: 'string'
},
precision: {
type: 'string'
}
},
required: [
'mean',
'sigma',
'precision'
]
}
fieldGroupOrder: 35
};

export default definition;
17 changes: 1 addition & 16 deletions client/src/plugins/dataTypes/NumberRange/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,7 @@ import { DTDefinition } from '~types/dataTypes';

const definition: DTDefinition = {
fieldGroup: 'numeric',
fieldGroupOrder: 30,
schema: {
type: 'object',
properties: {
rangeMin: {
type: 'number'
},
rangeMax: {
type: 'number'
}
},
required: [
'rangeMin',
'rangeMax'
]
}
fieldGroupOrder: 30
};

export default definition;
Loading

0 comments on commit 47445ab

Please sign in to comment.