Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cds-au/testdata",
"version": "1.6.2",
"version": "1.7.0",
"description": "Tools for the creation of manufactured test data for the Australian Consumer Data Right regime",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const argv = yargs
f: 'factory',
fs: 'factories',
g: 'generate',
s: 'schema',
vd: 'validate'
s: 'schema'
// vd: 'validate', TODO: This needs to be implemented
})
.argv;
12 changes: 6 additions & 6 deletions src/logic/schema/cdr-test-data-schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BankingAccountV2, BankingBalance, BankingDirectDebit, BankingPayeeDetailV2, BankingProductV4, BankingScheduledPayment, BankingTransaction } from "consumer-data-standards/banking";
import { BankingAccountV2, BankingBalance, BankingDirectDebit, BankingPayeeDetailV2, BankingProductV4, BankingScheduledPaymentV2, BankingTransaction } from "consumer-data-standards/banking";
import { CommonOrganisationDetailV2, CommonPersonDetailV2 } from "consumer-data-standards/common";
import { EnergyAccountV2, EnergyAccountDetailV2, EnergyAccountDetailV3, EnergyBillingTransaction, EnergyConcession, EnergyDerRecord, EnergyInvoice, EnergyPaymentSchedule, EnergyPlan, EnergyPlanDetail, EnergyServicePoint, EnergyServicePointDetail, EnergyUsageRead } from "consumer-data-standards/energy";
import { EnergyAccountDetailV4, EnergyBillingTransactionV3, EnergyConcession, EnergyDerRecord, EnergyInvoice, EnergyPaymentSchedule, EnergyPlanDetailV3, EnergyUsageRead, EnergyServicePointDetail } from "consumer-data-standards/energy";
import { RegisterDataRecipient } from "consumer-data-standards/register";

/* A JSON schema for defining test data files that can be used to seed a mock, or test, implementation of a Data Holder for the Consumer Data Right
Expand Down Expand Up @@ -52,7 +52,7 @@ export interface EnergyServicePointWrapper {
* A wrapper for a single eenrgy account to contain all of the data related to the account
*/
export interface EnergyAccountWrapper {
account: EnergyAccountDetailV3;
account: EnergyAccountDetailV4;
balance: string;
/**
* An array of agreed payment schedules
Expand All @@ -65,7 +65,7 @@ export interface EnergyAccountWrapper {
/**
* An array of transactions for the account
*/
transactions?: EnergyBillingTransaction[];
transactions?: EnergyBillingTransactionV3[];
/**
* An array of concessions for the account
*/
Expand Down Expand Up @@ -120,7 +120,7 @@ export interface CustomerWrapper {
/**
* An array of payment schedules
*/
payments?: BankingScheduledPayment[];
payments?: BankingScheduledPaymentV2[];
[k: string]: unknown;
};
/**
Expand Down Expand Up @@ -174,7 +174,7 @@ export interface Unauthenticated {
/**
* An array of energy plans
*/
plans?: EnergyPlanDetail[];
plans?: EnergyPlanDetailV3[];
};
/**
* Current system status
Expand Down
38 changes: 19 additions & 19 deletions src/schema/cdr-test-data-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@
"description": "A previously registered client aligned to the current version of the data standards"
},
"recipient": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/register/RegisterDataRecipient.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/register/RegisterDataRecipient.json"
},
"bankProduct": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/banking/BankingProductDetailV4"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/banking/BankingProductDetailV4.json"
},
"energyPlan": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyPlanDetail.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyPlanDetailV3.json"
},
"adminStatus": {
"type": "object",
Expand Down Expand Up @@ -254,18 +254,18 @@
"description": "A customer object aligned to the current version of the data standards",
"properties": {
"customerUType": "string",
"person": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/common/CommonPersonDetailV2.json",
"organisation": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/common/CommonOrganisationDetailV2.json"
"person": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/common/CommonPersonDetailV2.json",
"organisation": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/common/CommonOrganisationDetailV2.json"
}
},
"bankDirectDebit": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/banking/BankingDirectDebit.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/banking/BankingDirectDebit.json"
},
"bankPayee": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/banking/BankingPayeeDetailV2.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/banking/BankingPayeeDetailV2.json"
},
"bankPaymentSchedule": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/banking/BankingScheduledPayment.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/banking/BankingScheduledPaymentV2.json"
},
"bankAccountWrapper": {
"type": "object",
Expand All @@ -291,13 +291,13 @@
}
},
"bankAccount": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/banking/BankingAccountDetailV3.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/banking/BankingAccountDetailV4.json"
},
"bankAccountBalance": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/banking/BankingBalance.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/banking/BankingBalance.json"
},
"bankTransaction": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/banking/BankingTransactionDetail.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/banking/BankingTransactionDetailV2.json"
},
"energyAccountWrapper": {
"type": "object",
Expand Down Expand Up @@ -344,23 +344,23 @@
}
},
"energyAccount": {
"%ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyAccountDetailV2.json"
"%ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyAccountDetailV4.json"
},
"energyAccountBalance": {
"type": "object",
"description": "Distributed energy resources for an energy account aligned to the current version of the data standards"
},
"energyPaymentSchedule": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyPaymentSchedule.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyPaymentSchedule.json"
},
"energyInvoice": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyInvoice.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyInvoice.json"
},
"energyTransaction": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyBillingTransaction.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyBillingTransactionV3.json"
},
"energyConcession": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyConcession.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyConcession.json"
},
"energyServicePointWrapper": {
"type": "object",
Expand All @@ -387,13 +387,13 @@
}
},
"energyServicePoint": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyServicePointDetail.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyServicePointDetail.json"
},
"energyDerData": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyDerRecord.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyDerRecord.json"
},
"energyUsageRead": {
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.20.0/schemas/energy/EnergyUsageRead.json"
"$ref": "https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/dsb-schema-tools/main/1.33.0/schemas/energy/EnergyUsageRead.json"
}
}
}