File tree Expand file tree Collapse file tree
packages/contentstack-asset-management/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export const BATCH_SIZE = 50 ;
2+ export const CHUNK_FILE_SIZE_MB = 1 ;
3+
14/**
25 * Main process name for Asset Management 2.0 export (single progress bar).
36 * Use this when adding/starting the process and for all ticks.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { AssetManagementAPIConfig } from '../types/asset-management-api';
66import type { ExportContext } from '../types/export-types' ;
77import { AssetManagementAdapter } from '../utils/asset-management-api-adapter' ;
88import { AM_MAIN_PROCESS_NAME } from '../constants/index' ;
9- import { BATCH_SIZE , CHUNK_FILE_SIZE_MB } from '../utils/export-helpers ' ;
9+ import { BATCH_SIZE , CHUNK_FILE_SIZE_MB } from '../constants/index ' ;
1010
1111export type { ExportContext } ;
1212
Original file line number Diff line number Diff line change 11import { createWriteStream } from 'node:fs' ;
22
3- export const BATCH_SIZE = 50 ;
4- export const CHUNK_FILE_SIZE_MB = 1 ;
5-
63export function getArrayFromResponse ( data : unknown , arrayKey : string ) : unknown [ ] {
74 if ( Array . isArray ( data ) ) return data ;
85 if ( data != null && typeof data === 'object' && arrayKey in data ) {
Original file line number Diff line number Diff line change 11export { AssetManagementAdapter } from './asset-management-api-adapter' ;
2+ export { BATCH_SIZE , CHUNK_FILE_SIZE_MB } from '../constants' ;
23export {
3- BATCH_SIZE ,
4- CHUNK_FILE_SIZE_MB ,
54 getArrayFromResponse ,
65 getAssetItems ,
76 getReadableStreamFromDownloadResponse ,
You can’t perform that action at this time.
0 commit comments