mushroom-cli 1.2.0-alpha.22 → 1.2.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -259,7 +259,7 @@ export function genTypescriptDriverString(aliasProject, source) {
|
|
|
259
259
|
extensionsCodeLines.push('FileExtension.useFile(mushroom);');
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
let code = `import mushroom, { defineAsyncResource, defineAsyncView, fireEvent, createRestfulAsyncFunction, IdType, IMushroom, Mushroom, MushroomRequest, MushroomRequestSetting, MushroomRestfulRequest, MushroomResponse, MushroomResponseDataType, MushroomResourceBase, MushroomListResource, MushroomFindByIdResource, MushroomCreateResource, MushroomBatchCreateResource, MushroomUpdateResource, MushroomBatchUpdateResource, MushroomPartialUpdateResource, MushroomDeleteResource, MushroomBatchDeleteResource, MushroomExtensibleResource, MushroomViewFunction, MushroomError, IMushroomOfflineResponse, MushroomOfflineResponse, MushroomOfflineResponseState } from "mushroomjs";
|
|
262
|
+
let code = `import mushroom, { defineAsyncResource, defineAsyncView, fireEvent, createRestfulAsyncFunction, IdType, IMushroom, Mushroom, MushroomRequest, MushroomRequestSetting, MushroomRestfulRequest, MushroomResponse, MushroomResponseDataType, MushroomResourceBase, MushroomListResource, MushroomCountResource, MushroomFindByIdResource, MushroomCreateResource, MushroomBatchCreateResource, MushroomUpdateResource, MushroomBatchUpdateResource, MushroomPartialUpdateResource, MushroomDeleteResource, MushroomBatchDeleteResource, MushroomExtensibleResource, MushroomViewFunction, MushroomError, IMushroomOfflineResponse, MushroomOfflineResponse, MushroomOfflineResponseState } from "mushroomjs";
|
|
263
263
|
${extensionsImportLines.join('\n')}
|
|
264
264
|
export * from "mushroomjs";
|
|
265
265
|
export const extensions = {
|
|
@@ -316,7 +316,7 @@ export interface CustomMethodBodyRequest<TBody> extends MushroomRequest {
|
|
|
316
316
|
case 'findMany': {
|
|
317
317
|
iApiClassBody += ` & MushroomListResource<${typescriptClassName}>`;
|
|
318
318
|
if (includeTotal)
|
|
319
|
-
iApiClassBody +=
|
|
319
|
+
iApiClassBody += ' & MushroomCountResource';
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
322
|
case 'findById': {
|
|
@@ -439,7 +439,7 @@ export function genDtsString(aliasProject, source) {
|
|
|
439
439
|
extensionsTypes.push('FileExtension.IMushroomFile & ');
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
let code = `import { IdType, IMushroom, Mushroom, MushroomRequest, MushroomRequestSetting, MushroomRestfulRequest, MushroomResponse, MushroomResponseDataType, MushroomResourceBase, MushroomListResource, MushroomFindByIdResource, MushroomCreateResource, MushroomBatchCreateResource, MushroomUpdateResource, MushroomBatchUpdateResource, MushroomPartialUpdateResource, MushroomDeleteResource, MushroomBatchDeleteResource, MushroomExtensibleResource, MushroomViewFunction, MushroomError, IMushroomOfflineResponse, MushroomOfflineResponse, MushroomOfflineResponseState } from "mushroomjs";
|
|
442
|
+
let code = `import { IdType, IMushroom, Mushroom, MushroomRequest, MushroomRequestSetting, MushroomRestfulRequest, MushroomResponse, MushroomResponseDataType, MushroomResourceBase, MushroomListResource, MushroomCountResource, MushroomFindByIdResource, MushroomCreateResource, MushroomBatchCreateResource, MushroomUpdateResource, MushroomBatchUpdateResource, MushroomPartialUpdateResource, MushroomDeleteResource, MushroomBatchDeleteResource, MushroomExtensibleResource, MushroomViewFunction, MushroomError, IMushroomOfflineResponse, MushroomOfflineResponse, MushroomOfflineResponseState } from "mushroomjs";
|
|
443
443
|
${extensionsImportLines.join('\n')}
|
|
444
444
|
export * from "mushroomjs";
|
|
445
445
|
export declare const extensions = {
|
|
@@ -495,7 +495,7 @@ export interface CustomMethodBodyRequest<TBody> extends MushroomRequest {
|
|
|
495
495
|
case 'findMany': {
|
|
496
496
|
iApiClassBody += ` & MushroomListResource<${typescriptClassName}>`;
|
|
497
497
|
if (includeTotal)
|
|
498
|
-
iApiClassBody +=
|
|
498
|
+
iApiClassBody += ' & MushroomCountResource';
|
|
499
499
|
break;
|
|
500
500
|
}
|
|
501
501
|
case 'findById': {
|