UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

29 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.unmarshallDeviceSettings = exports.marshallDeviceSettings = void 0; const dynamodb_data_marshaller_1 = require("@aws/dynamodb-data-marshaller"); const deviceSettingsTableSchema = { id: { type: 'String' }, name: { type: 'String' }, site: { type: 'Document', members: { siteUuid: { type: 'String' }, name: { type: 'String' }, pin: { type: 'String' }, }, }, receipt: { type: 'Document', members: { enabled: { type: 'Boolean' }, businessName: { type: 'String' }, businessAddress: { type: 'String' }, footer: { type: 'String' }, logo: { type: 'String' }, }, }, }; exports.marshallDeviceSettings = (data) => dynamodb_data_marshaller_1.marshallItem(deviceSettingsTableSchema, data); exports.unmarshallDeviceSettings = (data) => dynamodb_data_marshaller_1.unmarshallItem(deviceSettingsTableSchema, data); //# sourceMappingURL=tableSchema.js.map