fix: add csv fields to query
This commit is contained in:
parent
d6166ce752
commit
790cdd8fec
3 changed files with 56 additions and 3 deletions
|
|
@ -87,6 +87,7 @@ function advancedBatch(data) {
|
||||||
'notified',
|
'notified',
|
||||||
'redeem',
|
'redeem',
|
||||||
'phone',
|
'phone',
|
||||||
|
'email',
|
||||||
'error',
|
'error',
|
||||||
'fixedFee',
|
'fixedFee',
|
||||||
'created',
|
'created',
|
||||||
|
|
@ -120,7 +121,6 @@ function advancedBatch(data) {
|
||||||
'txVersion',
|
'txVersion',
|
||||||
'publishedAt',
|
'publishedAt',
|
||||||
'termsAccepted',
|
'termsAccepted',
|
||||||
'layer2Address',
|
|
||||||
'commissionPercentage',
|
'commissionPercentage',
|
||||||
'rawTickerPrice',
|
'rawTickerPrice',
|
||||||
'receivedCryptoAtoms',
|
'receivedCryptoAtoms',
|
||||||
|
|
@ -131,7 +131,6 @@ function advancedBatch(data) {
|
||||||
'customerIdCardDataNumber',
|
'customerIdCardDataNumber',
|
||||||
'customerIdCardDataExpiration',
|
'customerIdCardDataExpiration',
|
||||||
'customerIdCardData',
|
'customerIdCardData',
|
||||||
'customerName',
|
|
||||||
'sendTime',
|
'sendTime',
|
||||||
'customerFrontCameraPath',
|
'customerFrontCameraPath',
|
||||||
'customerIdCardPhotoPath',
|
'customerIdCardPhotoPath',
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,5 @@ const dialect = new PostgresDialect({
|
||||||
|
|
||||||
export default new Kysely<DB>({
|
export default new Kysely<DB>({
|
||||||
dialect,
|
dialect,
|
||||||
plugins: [new CamelCasePlugin()],
|
plugins: [new CamelCasePlugin({ underscoreBeforeDigits: true })],
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,33 @@ function getCashOutTransactionList() {
|
||||||
// cash-out only
|
// cash-out only
|
||||||
'txOut.dispense',
|
'txOut.dispense',
|
||||||
'txOut.swept',
|
'txOut.swept',
|
||||||
|
'txOut.denominationRecycler1',
|
||||||
|
'txOut.denominationRecycler2',
|
||||||
|
'txOut.denominationRecycler3',
|
||||||
|
'txOut.denominationRecycler4',
|
||||||
|
'txOut.denominationRecycler5',
|
||||||
|
'txOut.denominationRecycler6',
|
||||||
|
'txOut.denomination1',
|
||||||
|
'txOut.denomination2',
|
||||||
|
'txOut.denomination3',
|
||||||
|
'txOut.denomination4',
|
||||||
|
'txOut.provisioned1',
|
||||||
|
'txOut.provisioned2',
|
||||||
|
'txOut.provisioned3',
|
||||||
|
'txOut.provisioned4',
|
||||||
|
'txOut.provisionedRecycler1',
|
||||||
|
'txOut.provisionedRecycler2',
|
||||||
|
'txOut.provisionedRecycler3',
|
||||||
|
'txOut.provisionedRecycler4',
|
||||||
|
'txOut.provisionedRecycler5',
|
||||||
|
'txOut.provisionedRecycler6',
|
||||||
|
'txOut.dispenseConfirmed',
|
||||||
|
'txOut.publishedAt',
|
||||||
|
'txOut.hdIndex',
|
||||||
|
'txOut.notified',
|
||||||
|
'txOut.receivedCryptoAtoms',
|
||||||
|
'txOut.redeem',
|
||||||
|
'txOut.confirmedAt',
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -216,6 +243,33 @@ function getCashInTransactionList() {
|
||||||
// cash-out only
|
// cash-out only
|
||||||
val(false).as('dispense'),
|
val(false).as('dispense'),
|
||||||
val(false).as('swept'),
|
val(false).as('swept'),
|
||||||
|
eb.val<number | null>(null).as('denominationRecycler1'),
|
||||||
|
eb.val<number | null>(null).as('denominationRecycler2'),
|
||||||
|
eb.val<number | null>(null).as('denominationRecycler3'),
|
||||||
|
eb.val<number | null>(null).as('denominationRecycler4'),
|
||||||
|
eb.val<number | null>(null).as('denominationRecycler5'),
|
||||||
|
eb.val<number | null>(null).as('denominationRecycler6'),
|
||||||
|
eb.val<number | null>(null).as('denomination1'),
|
||||||
|
eb.val<number | null>(null).as('denomination2'),
|
||||||
|
eb.val<number | null>(null).as('denomination3'),
|
||||||
|
eb.val<number | null>(null).as('denomination4'),
|
||||||
|
eb.val<number | null>(null).as('provisioned1'),
|
||||||
|
eb.val<number | null>(null).as('provisioned2'),
|
||||||
|
eb.val<number | null>(null).as('provisioned3'),
|
||||||
|
eb.val<number | null>(null).as('provisioned4'),
|
||||||
|
eb.val<number | null>(null).as('provisionedRecycler1'),
|
||||||
|
eb.val<number | null>(null).as('provisionedRecycler2'),
|
||||||
|
eb.val<number | null>(null).as('provisionedRecycler3'),
|
||||||
|
eb.val<number | null>(null).as('provisionedRecycler4'),
|
||||||
|
eb.val<number | null>(null).as('provisionedRecycler5'),
|
||||||
|
eb.val<number | null>(null).as('provisionedRecycler6'),
|
||||||
|
eb.val<boolean | null>(null).as('dispenseConfirmed'),
|
||||||
|
eb.val<Date | null>(null).as('publishedAt'),
|
||||||
|
eb.val<number | null>(null).as('hdIndex'),
|
||||||
|
eb.val<boolean>(false).as('notified'),
|
||||||
|
eb.val<string | null>(null).as('receivedCryptoAtoms'),
|
||||||
|
eb.val<boolean>(false).as('redeem'),
|
||||||
|
eb.val<Date | null>(null).as('confirmedAt'),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue