Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wix/data-backend-public-sdk-poc

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/data-backend-public-sdk-poc - npm Package Compare versions

Comparing version 1.0.67 to 1.0.68

6

package.json
{
"name": "@wix/data-backend-public-sdk-poc",
"version": "1.0.67",
"version": "1.0.68",
"publishConfig": {

@@ -21,3 +21,3 @@ "registry": "https://registry.npmjs.org/",

"dependencies": {
"@wix/data-backend-public-sdk-poc_data": "1.0.20"
"@wix/data-backend-public-sdk-poc_data": "1.0.21"
},

@@ -46,3 +46,3 @@ "devDependencies": {

},
"falconPackageHash": "7164c4dd5f45dac2349a6a9fe550903ea3742369bfb36577b3420cf0"
"falconPackageHash": "7c16b937eef027a41180828bef884e27f9f06cc75df01c15cdfd4700"
}

@@ -1,123 +0,6 @@

interface Sorting {
/** Name of the field to sort by. */
fieldName?: string;
/** Sort order. */
order?: SortOrder;
}
declare enum SortOrder {
ASC = "ASC",
DESC = "DESC"
}
interface Paging {
/** Number of items to load. */
limit?: number | null;
/** Number of items to skip in the current sort order. */
offset?: number | null;
}
interface QueryV2 extends QueryV2PagingMethodOneOf {
/** Paging options to limit and skip the number of items. */
paging?: Paging;
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
cursorPaging?: CursorPaging;
/**
* Filter object in the following format:
* `"filter" : {
* "fieldName1": "value1",
* "fieldName2":{"$operator":"value2"}
* }`
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
*/
filter?: Record<string, any> | null;
/**
* Sort object in the following format:
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
*/
sort?: Sorting[];
/** Array of projected fields. A list of specific field names to return. */
fields?: string[];
}
/** @oneof */
interface QueryV2PagingMethodOneOf {
/** Paging options to limit and skip the number of items. */
paging?: Paging;
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
cursorPaging?: CursorPaging;
}
interface CursorPaging {
/** Number of items to load. */
limit?: number | null;
/**
* Pointer to the next or previous page in the list of results.
*
* You can get the relevant cursor token
* from the `pagingMetadata` object in the previous call's response.
* Not relevant for the first request.
*/
cursor?: string | null;
}
interface QueryResponse {
/** Retrieved items. */
items?: Record<string, any>[] | null;
/**
* *Deprecated.** Refer to 'pagingMetadata' instead. Total number of items satisfying the query.
* @deprecated
*/
totalCount?: number;
/**
* *Deprecated.** Refer to 'pagingMetadata' instead. Total number of items satisfying the query.
* @deprecated
*/
totalResults?: number;
/** Whether referenced items are trimmed from the results. This occurs when there are more than 50 referenced items. */
partialIncludes?: boolean;
/** Paging information. */
pagingMetadata?: PagingMetadataV2;
}
interface PagingMetadataV2 {
/** Number of items returned in the response. */
count?: number | null;
/** Offset that was requested. */
offset?: number | null;
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
total?: number | null;
/** Flag that indicates the server failed to calculate the `total` field. */
tooManyToCount?: boolean | null;
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
cursors?: Cursors;
}
interface Cursors {
/** Cursor pointing to next page in the list of results. */
next?: string | null;
/** Cursor pointing to previous page in the list of results. */
prev?: string | null;
}
interface QueryResponseNonNullableFields {
totalCount: number;
totalResults: number;
partialIncludes: boolean;
}
interface QueryOptions {
/** Query preferences. For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */
dataQuery?: QueryV2;
/**
* Whether to omit the total count in the response.
* When `true`, the `pagingMetadata` object in the response doesn't contain a `total` field.
*
* Default: `false`
*/
omitTotalCount?: boolean;
/**
* Properties for which to include referenced items in the query's results.
* Up to 50 referenced items can be included for each item that matches the query.
* If more than 50 items are referenced, `partialIncludes` in the response is `true`.
*/
includeReferencedItems?: string[];
/** ID of the collection to query. */
dataCollectionId?: string;
}
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
interface HttpClient {
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
fetchWithAuth: typeof fetch;
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
}

@@ -152,5 +35,5 @@ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;

declare function query$1(httpClient: HttpClient): (options?: QueryOptions) => Promise<QueryResponse & QueryResponseNonNullableFields>;
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
declare const query: BuildRESTFunction<typeof query$1>;
declare const query: ReturnType<typeof createRESTModule<typeof publicQuery>>;

@@ -157,0 +40,0 @@ declare const context_query: typeof query;

@@ -587,3 +587,4 @@ interface Item {

request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
fetchWithAuth: typeof fetch;
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
}

@@ -590,0 +591,0 @@ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc