Skip to content

Commit

Permalink
node scripts/check_published_api_changes.js --accept
Browse files Browse the repository at this point in the history
  • Loading branch information
jportner committed Dec 1, 2020
1 parent d1124f8 commit 07cb882
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Increments all the specified counter fields by one. Creates the document if one
<b>Signature:</b>

```typescript
incrementCounter(type: string, id: string, counterFieldNames: string[], options?: SavedObjectsIncrementCounterOptions): Promise<SavedObject>;
incrementCounter<T = unknown>(type: string, id: string, counterFieldNames: string[], options?: SavedObjectsIncrementCounterOptions): Promise<SavedObject<T>>;
```
## Parameters
Expand All @@ -23,7 +23,7 @@ incrementCounter(type: string, id: string, counterFieldNames: string[], options?
<b>Returns:</b>
`Promise<SavedObject>`
`Promise<SavedObject<T>>`
The saved object after the specified fields were incremented
Expand Down
74 changes: 34 additions & 40 deletions src/core/server/server.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,45 +538,39 @@ export interface CoreUsageDataStart {
// @internal
export interface CoreUsageStats {
// (undocumented)
apiCalls?: {
savedObjectsImport?: {
total: number;
kibanaRequest: {
yes: number;
no: number;
};
createNewCopiesEnabled: {
yes: number;
no: number;
};
overwriteEnabled: {
yes: number;
no: number;
};
};
savedObjectsResolveImportErrors?: {
total: number;
kibanaRequest: {
yes: number;
no: number;
};
createNewCopiesEnabled: {
yes: number;
no: number;
};
};
savedObjectsExport?: {
total: number;
kibanaRequest: {
yes: number;
no: number;
};
allTypesSelected: {
yes: number;
no: number;
};
};
};
['apiCalls.savedObjectsExport.allTypesSelected.no']?: number;
// (undocumented)
['apiCalls.savedObjectsExport.allTypesSelected.yes']?: number;
// (undocumented)
['apiCalls.savedObjectsExport.kibanaRequest.no']?: number;
// (undocumented)
['apiCalls.savedObjectsExport.kibanaRequest.yes']?: number;
// (undocumented)
['apiCalls.savedObjectsExport.total']?: number;
// (undocumented)
['apiCalls.savedObjectsImport.createNewCopiesEnabled.no']?: number;
// (undocumented)
['apiCalls.savedObjectsImport.createNewCopiesEnabled.yes']?: number;
// (undocumented)
['apiCalls.savedObjectsImport.kibanaRequest.no']?: number;
// (undocumented)
['apiCalls.savedObjectsImport.kibanaRequest.yes']?: number;
// (undocumented)
['apiCalls.savedObjectsImport.overwriteEnabled.no']?: number;
// (undocumented)
['apiCalls.savedObjectsImport.overwriteEnabled.yes']?: number;
// (undocumented)
['apiCalls.savedObjectsImport.total']?: number;
// (undocumented)
['apiCalls.savedObjectsResolveImportErrors.createNewCopiesEnabled.no']?: number;
// (undocumented)
['apiCalls.savedObjectsResolveImportErrors.createNewCopiesEnabled.yes']?: number;
// (undocumented)
['apiCalls.savedObjectsResolveImportErrors.kibanaRequest.no']?: number;
// (undocumented)
['apiCalls.savedObjectsResolveImportErrors.kibanaRequest.yes']?: number;
// (undocumented)
['apiCalls.savedObjectsResolveImportErrors.total']?: number;
}

// @public (undocumented)
Expand Down Expand Up @@ -2492,7 +2486,7 @@ export class SavedObjectsRepository {
// (undocumented)
find<T = unknown>(options: SavedObjectsFindOptions): Promise<SavedObjectsFindResponse<T>>;
get<T = unknown>(type: string, id: string, options?: SavedObjectsBaseOptions): Promise<SavedObject<T>>;
incrementCounter(type: string, id: string, counterFieldNames: string[], options?: SavedObjectsIncrementCounterOptions): Promise<SavedObject>;
incrementCounter<T = unknown>(type: string, id: string, counterFieldNames: string[], options?: SavedObjectsIncrementCounterOptions): Promise<SavedObject<T>>;
removeReferencesTo(type: string, id: string, options?: SavedObjectsRemoveReferencesToOptions): Promise<SavedObjectsRemoveReferencesToResponse>;
update<T = unknown>(type: string, id: string, attributes: Partial<T>, options?: SavedObjectsUpdateOptions): Promise<SavedObjectsUpdateResponse<T>>;
}
Expand Down

0 comments on commit 07cb882

Please sign in to comment.