@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
44 lines • 1.31 kB
JavaScript
// import { CurrentOrigin, CurrentTenant } from "../../../logic/Strings/getSiteCollectionUrlFromLink";
import { makeid } from "../../../logic/Strings/guids";
import { CurrentOrigin, CurrentTenant } from "../source-props/WindowLocationConstants";
export const EmptyStateSource = {
items: [],
itemsA: [],
items1: [],
items2: [],
itemsY: [],
meta1: [],
meta2: [],
index: [],
loaded: false,
refreshId: makeid(5),
status: 'Unknown',
e: null,
// 2024-09-15: Added per updated IFpsErrorObject but set null as any to pass linting
ok: null,
misc1: [],
fpsContentType: [],
fetchAPI: '',
batchAPIs: [],
filter: '',
method: '',
unifiedPerformanceOps: { fetch: {} },
minSourceFetchProps: {
fpsSpService: null,
// Host does NOT have protocal, Origin has protocal and tenant
refreshId: makeid(5),
tenant: CurrentTenant,
absoluteWebUrl: `${CurrentOrigin}`,
webUrl: '',
listTitle: '',
fetchCount: -1,
}
};
export function createEmptyStateSource() {
const NewEmptyStateSource = {
...EmptyStateSource,
refreshId: makeid(5),
};
return NewEmptyStateSource;
}
//# sourceMappingURL=IStateSource.js.map