UNPKG

purespectrum-lib

Version:

shared code between front and backend projects

774 lines 22.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.blendsListResponseMock = exports.blendMock = exports.suppliersWithQuantityMock = exports.suppliersMock = void 0; exports.suppliersMock = [ { id: 1, quantity: 0, percentage: 0 }, { id: 2, quantity: 0, percentage: 0 }, { id: 3, quantity: 0, percentage: 0 }, { id: 4, quantity: 0, percentage: 0 }, ]; exports.suppliersWithQuantityMock = [ { id: 1, quantity: 5, percentage: 0 }, { id: 2, quantity: 3, percentage: 0 }, { id: 3, quantity: 2, percentage: 0 }, { id: 4, quantity: 1, percentage: 0 }, ]; exports.blendMock = { suppliers: [ { group_name: 'Group Test', id: '', supplier_id: [ { id: 1, allocation: 100, }, { id: 2, allocation: 100, }, ], allocation_percentage: '50', is_custom_allocation: false, }, { group_name: '', id: '3', supplier_id: [ { id: 3, allocation: 100, }, ], allocation_percentage: '25', is_custom_allocation: false, }, { group_name: '', id: '4', supplier_id: [ { id: 4, allocation: 100, }, ], allocation_percentage: '25', is_custom_allocation: false, }, ], config_name: 'Supblend1', id: 'sb0c55d5bdc9', is_default: false, blend_flexibility: 100, }; exports.blendsListResponseMock = [ { suppliers: [ { group_name: '', id: '217', supplier_id: [ { id: 217, allocation: 100, }, ], allocation_percentage: '20', flexibility_percentage: '100%', is_custom_allocation: false, }, { group_name: '', id: '26', supplier_id: [ { id: 26, allocation: 100, }, ], allocation_percentage: '20', flexibility_percentage: '100%', is_custom_allocation: false, }, { group_name: '', id: '36', supplier_id: [ { id: 36, allocation: 100, }, ], allocation_percentage: '60', flexibility_percentage: '100%', is_custom_allocation: false, }, { group_name: '', id: '3996', supplier_id: [ { id: 3996, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '3998', supplier_id: [ { id: 3998, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '3999', supplier_id: [ { id: 3999, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4000', supplier_id: [ { id: 4000, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4003', supplier_id: [ { id: 4003, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4005', supplier_id: [ { id: 4005, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4007', supplier_id: [ { id: 4007, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4013', supplier_id: [ { id: 4013, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4020', supplier_id: [ { id: 4020, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4021', supplier_id: [ { id: 4021, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4036', supplier_id: [ { id: 4036, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4037', supplier_id: [ { id: 4037, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4038', supplier_id: [ { id: 4038, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4039', supplier_id: [ { id: 4039, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4047', supplier_id: [ { id: 4047, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4048', supplier_id: [ { id: 4048, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, ], is_default: false, is_active: true, is_locked: true, config_name: 'reddy', buyer_id: 25, id: 'sb5ac91a8bbc', blend_flexibility: 100, flexibilitySelectedType: { key: 1, value: 'Selective', }, locale: 'en_IN', }, { suppliers: [ { group_name: 'Test group 1', id: '', supplier_id: [ { id: 10, allocation: 120, }, { id: 13, allocation: 100, }, { id: 17, allocation: 150, }, ], allocation_percentage: '130', is_custom_allocation: true, }, { group_name: '', id: '4020', supplier_id: [ { id: 4020, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4021', supplier_id: [ { id: 4021, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4036', supplier_id: [ { id: 4036, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4037', supplier_id: [ { id: 4037, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4038', supplier_id: [ { id: 4038, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4039', supplier_id: [ { id: 4039, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4047', supplier_id: [ { id: 4047, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4048', supplier_id: [ { id: 4048, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, ], is_default: false, is_active: true, is_locked: false, config_name: 'Test 1', buyer_id: 25, id: 'sbe314439a2f', blend_flexibility: 100, flexibilitySelectedType: { key: 0, value: 'Global', }, locale: '', }, { suppliers: [ { group_name: 'Ciacom Group 1', id: '', supplier_id: [ { id: 10, allocation: 100, }, { id: 17, allocation: 100, }, ], allocation_percentage: '75', flexibility_percentage: '70', is_custom_allocation: false, }, { group_name: '', id: '36', supplier_id: [ { id: 36, allocation: 100, }, ], allocation_percentage: '75', flexibility_percentage: '70', is_custom_allocation: true, }, { group_name: '', id: '4020', supplier_id: [ { id: 4020, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4021', supplier_id: [ { id: 4021, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4036', supplier_id: [ { id: 4036, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4037', supplier_id: [ { id: 4037, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4038', supplier_id: [ { id: 4038, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4039', supplier_id: [ { id: 4039, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4047', supplier_id: [ { id: 4047, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4048', supplier_id: [ { id: 4048, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, ], is_default: false, is_active: true, is_locked: false, config_name: 'Ciacom Blend Global', buyer_id: 25, id: 'sbe417f3df98', blend_flexibility: 70, flexibilitySelectedType: { key: 0, value: 'Global', }, locale: '', }, { suppliers: [ { group_name: '', id: '36', supplier_id: [ { id: 36, allocation: 100, }, ], allocation_percentage: '60', flexibility_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '40', supplier_id: [ { id: 40, allocation: 100, }, ], allocation_percentage: '30', flexibility_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '3976', supplier_id: [ { id: 3976, allocation: 100, }, ], allocation_percentage: '0', flexibility_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4005', supplier_id: [ { id: 4005, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4007', supplier_id: [ { id: 4007, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4013', supplier_id: [ { id: 4013, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4020', supplier_id: [ { id: 4020, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4021', supplier_id: [ { id: 4021, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4036', supplier_id: [ { id: 4036, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4037', supplier_id: [ { id: 4037, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4038', supplier_id: [ { id: 4038, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4039', supplier_id: [ { id: 4039, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4047', supplier_id: [ { id: 4047, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, { group_name: '', id: '4048', supplier_id: [ { id: 4048, allocation: 100, }, ], allocation_percentage: '0', is_custom_allocation: false, }, ], is_default: false, is_active: true, is_locked: false, config_name: 'Test blend - Lokesh', buyer_id: 25, id: 'sb5ceafff178', blend_flexibility: 0, flexibilitySelectedType: { key: 0, value: 'Global', }, locale: '', }, ]; //# sourceMappingURL=allocationMocks.js.map