mi-auth-client
Version:
Use to MI product authorization and authentication
120 lines (119 loc) • 2.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mockPlatfrom = exports.mockAdvertisers = exports.mockBrands = exports.mockRoles = exports.mockUsers = exports.mockMe = exports.mockJwt = void 0;
exports.mockJwt = "strapi_mock_token";
exports.mockMe = {
"id": 42,
"username": "root",
"email": "root@ghtinc.com",
"role": "root",
"platform": ["DMP", "DSP"],
"brand": [{ "id": 4, "name": "robi" }],
"advertisers": [
{
"id": 7,
"name": "MOS",
"brand": 4,
}
]
};
exports.mockUsers = [
{
"id": 44,
"username": "dspuser",
"email": "dspuser@ghtinc.com",
"role": "user",
"platform": ["DMP", "DSP"],
"brand": [{ "id": 4, "name": "ghtinc" }],
"advertisers": [
{
"id": 7,
"name": "MOS",
"brand": 4,
}
]
},
{
"id": 43,
"username": "root",
"email": "root@ghtinc.com",
"role": "root",
"platform": ["DMP", "DSP"],
"brand": [{ "id": 4, "name": "ghtinc" }],
"advertisers": [
{
"id": 7,
"name": "MOS",
"brand": 4,
}
]
}
];
exports.mockRoles = [
{
"id": 7,
"name": "admin",
"nb_users": 0
},
{
"id": 1,
"name": "root",
"nb_users": 4
},
{
"id": 2,
"name": "super_admin",
"nb_users": 4
},
{
"id": 3,
"name": "user",
"nb_users": 1
}
];
exports.mockBrands = [
{
"id": 4,
"name": "ghtinc",
"advertisers": [
{
"id": 7,
"name": "MOS",
"brand": 4,
}
],
"owners": []
}
];
exports.mockAdvertisers = [
{
"id": 7,
"name": "MOS",
"brand": 4,
"users": [{
"id": 44,
"username": "dspuser",
"email": "dspuser@ghtinc.com",
"role": "user",
"platform": ["DMP", "DSP"],
"brand": [{ "id": 4, "name": "ghtinc" }]
}, {
"id": 43,
"username": "root",
"email": "root@ghtinc.com",
"role": "root",
"platform": ["DMP", "DSP"],
"brand": [{ "id": 4, "name": "ghtinc" }],
}]
}
];
exports.mockPlatfrom = [
{
id: 1,
name: "DMP"
},
{
id: 2,
name: "DSP"
}
];