Sha256: 713d1351fa9f8382bc64dc984ec189097722fa924b45087fb220480769628e3f
Contents?: true
Size: 1.79 KB
Versions: 19
Compression:
Stored size: 1.79 KB
Contents
import Immutable from 'seamless-immutable'; const groupedSubscriptions = Immutable({ RH00001: { open: false, subscriptions: [ { id: 1, name: 'Alpha', quantity: 10, consumed: 0, product_id: 'RH00001', }, { id: 2, name: 'Alpha', quantity: 15, consumed: 5, product_id: 'RH00001', }, ], }, RH00002: { open: false, subscriptions: [ { id: 3, name: 'Charlie', quantity: 10, consumed: 0, product_id: 'RH00002', }, ], }, RH00003: { open: false, subscriptions: [ { id: 4, name: 'Bravo', quantity: 100, consumed: 0, product_id: 'RH00003', }, ], }, RH00004: { open: false, subscriptions: [ { id: 5, name: 'Delta', quantity: 15, consumed: 5, product_id: 'RH00004', }, ], }, }); export const subOne = Immutable({ consumed: 0, id: 1, maxQuantity: 60, name: 'Alpha', product_id: 'RH00001', quantity: 10, upstreamAvailable: 50, upstreamAvailableLoaded: true, }); export const subTwo = Immutable({ consumed: 0, id: 3, maxQuantity: -1, name: 'Charlie', product_id: 'RH00002', quantity: 10, upstreamAvailable: -1, upstreamAvailableLoaded: true, }); export const subThree = Immutable({ consumed: 0, id: 4, maxQuantity: 200, name: 'Bravo', product_id: 'RH00003', quantity: 100, upstreamAvailable: 100, upstreamAvailableLoaded: true, }); export const subFour = Immutable({ consumed: 5, id: 5, maxQuantity: 65, name: 'Delta', product_id: 'RH00004', quantity: 15, upstreamAvailable: 50, upstreamAvailableLoaded: true, }); export default groupedSubscriptions;
Version data entries
19 entries across 19 versions & 1 rubygems