Skip to content

Commit 96470bd

Browse files
committed
chore: build
1 parent 8b1b874 commit 96470bd

File tree

8 files changed

+15
-10
lines changed

8 files changed

+15
-10
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/metadata.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare class Metadata {
2424
constructor(_connection: any);
2525
createMetaData(metadataConfig: IMetadataCreateDto): any;
2626
retrieveMetaData(metadataConfig: IMetadataRetrieveDto): any;
27-
retrieveAllMetaData(metadataConfig: AnyObject): any;
27+
retrieveAllMetaData(params?: AnyObject): any;
2828
updateMetaData(metadataConfig: IMetadataUpdateDto): any;
2929
deleteMetaData(metadataConfig: IMetadataDeleteDto): any;
3030
}

dist/src/metadata.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/stack/index.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BranchDetail, StackAdditionalData, StackDetail, StackSearchQuery } from '../types/stack.types';
1+
import { BranchDetail, GetAllStacksOptions, StackAdditionalData, StackDetail, StackSearchQuery } from '../types/stack.types';
22
/**
33
* Class representing the current stack in Contentstack UI.
44
*/
@@ -14,21 +14,22 @@ declare class Stack {
1414
constructor(data: StackDetail | undefined, connection: any, additionalData: StackAdditionalData);
1515
/**
1616
* This method returns the data of the current stack.
17-
* @return {Object} Returns stack data.
17+
* @return Returns stack data.
1818
*/
1919
getData(): StackDetail;
2020
/**
2121
* This method returns all the stacks in the current organization.
22+
* @param query asks for organization UID and query params to get all stacks
2223
* @returns Stacks within current organization
2324
*/
24-
getAllStacks(): Promise<StackDetail[]>;
25+
getAllStacks({ orgUid, params }?: GetAllStacksOptions): Promise<StackDetail[]>;
2526
/**
2627
* Gets the results of the search based on user query
2728
* @param queries Array of key value pair of query parameters
2829
* @param apiKey API key of the stack
2930
* @returns Result of the query
3031
*/
31-
searchStack(queries: StackSearchQuery, apiKey?: string): any;
32+
search(queries: StackSearchQuery, apiKey?: string | null): any;
3233
/**
3334
* This API allows you to retrieve data of a content type of a stack using the {@link https://www.contentstack.com/docs/apis/content-management-api/#get-a-single-content-type| Content Type API} requests. This method returns a Promise object.
3435
* @param {string} uid Uid of the desired content type

dist/src/stack/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/types/stack.types.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,8 @@ export declare interface StackSearchQuery {
9999
save_recent_search?: boolean;
100100
desc?: string;
101101
}
102+
export declare interface GetAllStacksOptions {
103+
orgUid?: string;
104+
params?: AnyObject;
105+
}
102106
//# sourceMappingURL=stack.types.d.ts.map

dist/src/types/stack.types.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)