File: //proc/self/root/home/arjun/projects/buyercall/buyercall/assets/vue/mock/parnershipTableMockAPIs.js
import { GET, DELETE, POST } from '../constants';
export default [
{
type: POST,
endpoint: '/partnership/add',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership invitation sent successfully!',
data: {},
},
},
{
type: GET,
endpoint: '/partnerships',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership List Fetched Successfully!',
data: [
{
id: 1,
partnershipName: 'Lucinda Stickley',
created_on: '2018/07/29',
updated_on: '2018/07/29',
},
{
id: 2,
partnershipName: 'Henrietta Carsberg',
created_on: '2019/07/13',
updated_on: '2019/07/13',
},
{
id: 3,
partnershipName: 'Phylys David',
created_on: '2019/04/08',
updated_on: '2019/04/08',
},
{
id: 4,
partnershipName: 'Brena Shivell',
created_on: '2018/12/14',
updated_on: '2018/12/14',
},
{
id: 5,
partnershipName: 'Carmon Tuiller',
created_on: '2019/06/19',
updated_on: '2019/06/19',
},
{
id: 6,
partnershipName: 'Tina Strattan',
created_on: '2019/07/08',
updated_on: '2019/07/08',
},
{
id: 7,
partnershipName: 'Jon Tarbox',
created_on: '2019/02/22',
updated_on: '2019/02/22',
},
{
id: 8,
partnershipName: 'Carmine Hollibone',
created_on: '2019/04/23',
updated_on: '2019/04/23',
},
{
id: 9,
partnershipName: 'Cora Germann',
created_on: '2019/03/27',
updated_on: '2019/03/27',
},
],
},
},
{
type: GET,
endpoint: /partnership\/\d$/,
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership Data Fetched Successfully!',
data: {
name: 'Partnership One',
id: 1,
sid: 'Ss5sfdgS-ZhYs454s-5555215ss-retwewt4t',
createdOn: '2021-04-23',
updateOn: '2021-04-23',
billingType: 1,
businessType: 1,
partnerType: 1,
partnerUrl: 'jasonwatmore.com',
email: 'test@test.com',
// partnerImage:
// 'https://cdn.icon-icons.com/icons2/1736/PNG/512/4043260-avatar-male-man-portrait_113269.png',
partnerImage: '',
partnerImageSmall: '',
users: [
{
id: 1,
sid: 'Ss5sfdgS-ZhYs454s-5555215ss-retwewt4t',
firstName: 'Mark',
lastName: 'Otto',
email: 'ott0@test.com',
phoneNumber: '(773) 228-9934',
roleId: 1,
signInCount: 3,
signInDate: '2021-04-23',
signInIp: '127.0.0.4',
created_on: '2019/07/12',
updated_on: '2019/07/13',
},
{
id: 2,
sid: 'Ss5sfdgS-ZhYs454s-5555215ss-retwewt4t',
firstName: 'Sam',
lastName: 'Corso',
email: 'sam@test.com',
phoneNumber: '(773) 228-9934',
roleId: 2,
signInCount: 3,
signInDate: '2021-04-23',
signInIp: '127.0.0.4',
created_on: '2019/07/13',
updated_on: '2019/07/13',
},
],
usage: [
{
label: 'Leeds',
currentMonthTotal: 23,
lastMonthTotal: 12,
total: 34,
},
{
label: 'Accounts',
currentMonthTotal: 23,
lastMonthTotal: 12,
total: 34,
},
{
label: 'Users',
currentMonthTotal: 23,
lastMonthTotal: 12,
total: 34,
},
{
label: 'Campaigns',
currentMonthTotal: 23,
lastMonthTotal: 12,
total: 34,
},
],
restrictLoginAccess: false,
suspendSubscription: true,
},
},
},
{
type: DELETE,
endpoint: /partnership\/user\/deactivate\/\d\d?\/\d\d?$/,
status: 200,
response: {
statusCode: 200,
success: true,
message: 'User deactivated successfully!',
data: {},
},
},
{
type: GET,
endpoint: '/partnership/billingtypes',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership billing types fetched successfully!',
data: [
{
label: 'Billing 1',
value: 1,
},
{
label: 'Billing 2',
value: 2,
},
],
},
},
{
type: GET,
endpoint: '/partnership/businesstypes',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership business types fetched successfully!',
data: [
{
label: 'Business 1',
value: 1,
},
{
label: 'Business 2',
value: 2,
},
],
},
},
{
type: GET,
endpoint: '/partnership/types',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership types fetched successfully!',
data: [
{
label: 'Type 1',
value: 1,
},
{
label: 'Type 2',
value: 2,
},
],
},
},
{
type: GET,
endpoint: /partnership\/user\/remoteaccess\/\d\d?\/\d\d?$/,
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Remote Access successfully established!',
data: {},
},
},
{
type: GET,
endpoint: /partnership\/user\/resendinvite\/\d\d?\/\d\d?$/,
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Invitation send successfully!',
data: {},
},
},
{
type: POST,
endpoint: '/partnership/accountrestrictions',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership account restrictions successfully updated!',
data: {},
},
},
{
type: GET,
endpoint: /partnership\/closeaccount\/\d\d?$/,
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership account closed successfully!',
data: {},
},
},
{
type: POST,
endpoint: /partnership\/settings\/\d\d?$/,
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Partnership settings updated successfully!',
data: {},
},
},
];