Repository navigation
Expand file tree
/
Copy pathoptions.ts
More file actions
115 lines (102 loc) · 3.12 KB
/
Copy pathoptions.ts
File metadata and controls
115 lines (102 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
export interface OptionsSingleFactory {
id: string,
options: {
[k: string]: unknown;
}
}
// This option will create a single factory, the likehood of which will depend on the value
// for weighting, compared to the weighting values for other array elements
export interface OptionsWeighted {
count?: number,
weighted: [
{
weighting: number,
factory: OptionsSingleFactory
}
]
}
// This option will create all the factories in the sequence array
export interface OptionsSequence {
sequence: OptionsSingleFactory[]
}
export type OptionsFactory = OptionsSingleFactory | OptionsWeighted | OptionsSequence;
export interface OptionsRandomItemCount {
min?: number,
max?: number
}
export type OptionsItemCount = number | OptionsRandomItemCount;
export interface OptionsGeneral {
fileVersion?: string,
standardsVersion?: string,
title?: string,
description?: string,
writeIndividual?: boolean,
individualFileOutDir?: string
}
export interface Options {
general?: OptionsGeneral,
factories?: {
allDataFactory?: OptionsFactory,
holdersFactory?: OptionsFactory,
holders?: [
{
count?: OptionsItemCount,
holderFactory?: OptionsFactory,
unauthenticated?: {
banking?: {
productsFactory?: OptionsFactory
},
energy?: {
plansFactory?: OptionsFactory
},
admin?: {
statusFactory?: OptionsFactory,
outagesFactory?: OptionsFactory
}
},
authenticated?: {
customersFactory?: OptionsFactory,
customers?: [
{
count?: OptionsItemCount;
customerFactory?: OptionsFactory,
banking?: {
accountsFactory?: OptionsFactory,
accounts?: [{
count?: OptionsItemCount;
accountFactory?: OptionsFactory,
balanceFactory?: OptionsFactory,
transactionsFactory?: OptionsFactory,
}],
directDebitsFactory?: OptionsFactory,
payeesFactory?: OptionsFactory,
scheduledPaymentsFactory?: OptionsFactory
},
energy?: {
accountsFactory?: OptionsFactory,
accounts?: [{
count?: OptionsItemCount;
accountFactory?: OptionsFactory,
balanceFactory?: OptionsFactory,
invoicesFactory?: OptionsFactory,
transactionsFactory?: OptionsFactory,
concessionsFactory?: OptionsFactory,
paymentScheduleFactory?: OptionsFactory
}],
servicePointsFactory?: OptionsFactory,
servicePoints?: [{
count?: OptionsItemCount;
servicePointFactory?: OptionsFactory,
derFactory?: OptionsFactory,
usageFactory?: OptionsFactory,
}]
}
}
]
}
}
],
clientCacheFactory?: OptionsFactory,
registerCacheFactory?: OptionsFactory
}
}