Skip to content

Commit 9fce316

Browse files
Merge pull request #9 from ConsumerDataStandardsAustralia/feature/v1.26.0
Feature/v1.26.0
2 parents 119c52f + b1503ec commit 9fce316

File tree

11 files changed

+649
-31
lines changed

11 files changed

+649
-31
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,33 +261,33 @@ For each of these example naviate to the root of this repository
261261
262262
Generate some energy plan data, which is compliant with the CDR. (unauthenticated data)
263263
264-
`testdata generate ./options/uc1.json ./output/u1-output.json`
264+
`testdata generate ./samples/options/uc1.json ./samples/output/u1-output.json`
265265
266266
## Use Case 2 (UC2)
267267
268268
Generate customers, some of them should residential, some of them business customers.
269269
270-
`testdata generate ./options/uc2.json ./output/u2-output.json`
270+
`testdata generate ./samples/options/uc2.json ./samples/output/u2-output.json`
271271
272272
## Use Case 3 (UC3)
273273
Generate a single residential customer with a single energy account.
274274
275-
`testdata generate ./options/uc3.json ./output/u3-output.json`
275+
`testdata generate ./samples/options/uc3.json ./output/samples/u3-output.json`
276276
277277
## Use Case 4 (UC4)
278278
Augment an existing holder structure and add some customers.
279279
280-
`testdata generate ./options/uc4.json ./output/u4-output.json`
280+
`testdata generate ./samples/options/uc4.json ./samples/output/u4-output.json`
281281
282282
## Use Case 5 (UC5)
283283
Augment an existing data file by adding additional holders. Exsiting data rermains as per input file
284284
285-
`testdata generate ./options/uc5.json ./output/u5-output.json`
285+
`testdata generate ./samples/options/uc5.json ./samples/output/u5-output.json`
286286
287287
## Use Case 6 (UC6)
288288
Create a mix of valid and invalid customer data
289289
290-
`testdata generate ./options/uc6.json ./output/u6-output.json`
290+
`testdata generate ./samples/options/uc6.json ./samples/output/u6-output.json`
291291
292292
293293
# Maintenance

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cds-au/testdata",
3-
"version": "1.2.2",
3+
"version": "1.3.0",
44
"description": "Tools for the creation of manufactured test data for the Australian Consumer Data Right regime",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
2727
"typescript": "^4.5.5"
2828
},
2929
"dependencies": {
30-
"@types/consumer-data-standards": "6.0.0",
30+
"@types/consumer-data-standards": "7.1.0",
3131
"better-ajv-errors": "^1.1.2",
3232
"big-json": "^3.2.0",
3333
"json-schema-to-typescript": "^10.1.5",

samples/options/create-combined-1.26.0.json

Lines changed: 387 additions & 0 deletions
Large diffs are not rendered by default.

samples/options/create-combined.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,35 +135,35 @@
135135
"transactionsFactory": {
136136
"sequence": [
137137
{
138-
"id": "create-energy-transactions",
138+
"id": "create-energy-transactions-v2",
139139
"options": {
140140
"transactionUType": "usage",
141141
"count": 10
142142
}
143143
},
144144
{
145-
"id": "create-energy-transactions",
145+
"id": "create-energy-transactions-v2",
146146
"options": {
147147
"transactionUType": "demand",
148148
"count": 10
149149
}
150150
},
151151
{
152-
"id": "create-energy-transactions",
152+
"id": "create-energy-transactions-v2",
153153
"options": {
154154
"transactionUType": "onceOff",
155155
"count": 10
156156
}
157157
},
158158
{
159-
"id": "create-energy-transactions",
159+
"id": "create-energy-transactions-v2",
160160
"options": {
161161
"transactionUType": "otherCharges",
162162
"count": 3
163163
}
164164
},
165165
{
166-
"id": "create-energy-transactions",
166+
"id": "create-energy-transactions-v2",
167167
"options": {
168168
"transactionUType": "payment",
169169
"count": 10
@@ -211,7 +211,7 @@
211211
]
212212
},
213213
"balanceFactory": {
214-
"id": "create-energy-transactions"
214+
"id": "create-energy-transactions-v2"
215215
}
216216
},
217217
{
@@ -271,7 +271,7 @@
271271
]
272272
},
273273
"balanceFactory": {
274-
"id": "create-energy-transactions"
274+
"id": "create-energy-transactions-v2"
275275
}
276276
},
277277
{
@@ -331,7 +331,7 @@
331331
]
332332
},
333333
"balanceFactory": {
334-
"id": "create-energy-transactions"
334+
"id": "create-energy-transactions-v2"
335335
}
336336
}
337337
],

samples/options/uc1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"general": {
3-
"fileVersion": "1.0.0",
4-
"standardsVersion": "1.20.0",
3+
"fileVersion": "1.1.0",
4+
"standardsVersion": "1.26.0",
55
"title": "Create Energy Plan Data",
66
"description": "Test data generated by the CDR Test Data CLI"
77
},

samples/options/uc4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"allDataFactory": {
55
"id": "general-load-static",
66
"options": {
7-
"source": "../input/uc4-input.json"
7+
"source": "./samples/input/uc4-input.json"
88
}
99
},
1010
"holders": [

samples/options/uc5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"allDataFactory": {
1010
"id": "general-load-static",
1111
"options": {
12-
"source": "./input/uc5-input.json"
12+
"source": "./samples/input/uc5-input.json"
1313
}
1414
},
1515
"holders": [

0 commit comments

Comments
 (0)