Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.9 kB
1
Indexable
export const fetchUploadFeedStatusSuccessMock = {
    data: {
        status: 'OK',
        error: '',
        header: '',
        payload: [
            {
                aggregateStorefrontUrlImportStatus: {
                    status: 'success',
                    error: '',
                    header: '',
                    payload: {
                        completedCount: 1,
                        erroredCount: 0,
                        inProgressCount: 0,
                        scrapedUrlImportStatuses: [
                            {
                                importStatus: 'success',
                                timestamp: 1692256028,
                                url: 'https://test.com/',
                                whiteGlove: false,
                            }
                        ],
                        totalCount: 1,
                    }
                },
                channelType: 'Test Type',
                feedDate: 1692256028,
                feedId: 'x08098sdw920f',
                feedStatus: 'success',
                feedType: 'Test Type',
                fileName: 'A file name',
                itemDataErrorCount: 0,
                itemSystemErrorCount: 0,
                itemTimeoutErrorCount: 0,
                itemsFailed: 0,
                itemsInDraftState: 0,
                itemsProcessing: 0,
                itemsReceived: 0,
                itemsSetupByMatch: 0,
                itemsSucceeded: 1,
                modifiedDtm: 1692256028,
                orgId: 'x08098sdw920f',
                partnerId: 'x08098sdw920f',
                status: 'success',
            },
        ],
    },
  };
  
  export const fetchUploadFeedStatusErrorMock = {
    data: {
        status: 'ERROR',
        error: 'Something went wrong',
        header: '',
    },
  };