@vansite/ts-sharetribe-flex-sdk 3.0.4 → 3.0.6
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.
- package/dist/endpoints/integrationApi/Listings.d.ts +3 -1
- package/dist/endpoints/integrationApi/StockReservations.d.ts +3 -1
- package/dist/endpoints/integrationApi/Transactions.d.ts +3 -1
- package/dist/endpoints/integrationApi/Users.d.ts +3 -1
- package/dist/endpoints/marketplace/CurrentUser.d.ts +3 -1
- package/dist/endpoints/marketplace/Listings.d.ts +3 -1
- package/dist/endpoints/marketplace/OwnListings.d.ts +3 -1
- package/dist/endpoints/marketplace/Reviews.d.ts +3 -1
- package/dist/endpoints/marketplace/Transactions.d.ts +3 -1
- package/dist/endpoints/marketplace/Users.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/endpoints/integrationApi/Listings.d.ts +3 -1
- package/dist/types/endpoints/integrationApi/Listings.d.ts.map +1 -1
- package/dist/types/endpoints/integrationApi/StockReservations.d.ts +3 -1
- package/dist/types/endpoints/integrationApi/StockReservations.d.ts.map +1 -1
- package/dist/types/endpoints/integrationApi/Transactions.d.ts +3 -1
- package/dist/types/endpoints/integrationApi/Transactions.d.ts.map +1 -1
- package/dist/types/endpoints/integrationApi/Users.d.ts +3 -1
- package/dist/types/endpoints/integrationApi/Users.d.ts.map +1 -1
- package/dist/types/endpoints/marketplace/CurrentUser.d.ts +3 -1
- package/dist/types/endpoints/marketplace/CurrentUser.d.ts.map +1 -1
- package/dist/types/endpoints/marketplace/Listings.d.ts +3 -1
- package/dist/types/endpoints/marketplace/Listings.d.ts.map +1 -1
- package/dist/types/endpoints/marketplace/OwnListings.d.ts +3 -1
- package/dist/types/endpoints/marketplace/OwnListings.d.ts.map +1 -1
- package/dist/types/endpoints/marketplace/Reviews.d.ts +3 -1
- package/dist/types/endpoints/marketplace/Reviews.d.ts.map +1 -1
- package/dist/types/endpoints/marketplace/Transactions.d.ts +3 -1
- package/dist/types/endpoints/marketplace/Transactions.d.ts.map +1 -1
- package/dist/types/endpoints/marketplace/Users.d.ts +3 -1
- package/dist/types/endpoints/marketplace/Users.d.ts.map +1 -1
- package/dist/types/sharetribe.d.ts +2 -2
- package/dist/types/types/sharetribe.d.ts +2 -2
- package/dist/types/types/sharetribe.d.ts.map +1 -1
- package/dist/types/utils/prepare-axios-instance.d.ts.map +1 -1
- package/dist/types/utils/stores/BrowserStore.d.ts +12 -4
- package/dist/types/utils/stores/BrowserStore.d.ts.map +1 -1
- package/dist/types/utils/stores/ExpressStore.d.ts +2 -4
- package/dist/types/utils/stores/ExpressStore.d.ts.map +1 -1
- package/dist/utils/stores/BrowserStore.d.ts +12 -4
- package/dist/utils/stores/ExpressStore.d.ts +2 -4
- package/package.json +1 -1
|
@@ -24,7 +24,9 @@ declare class Listings {
|
|
|
24
24
|
* @param {P & ListingsShowParameter} params
|
|
25
25
|
* @returns {Promise<AxiosResponse<ListingsResponse<"show", P>>>}
|
|
26
26
|
*/
|
|
27
|
-
show<P extends ListingsShowParameter>(params: P): Promise<AxiosResponse<ListingsResponse<"show", P
|
|
27
|
+
show<P extends ListingsShowParameter>(params: P): Promise<AxiosResponse<ListingsResponse<"show", P, {
|
|
28
|
+
expand: true;
|
|
29
|
+
}>>>;
|
|
28
30
|
/**
|
|
29
31
|
* Query listings with filters
|
|
30
32
|
*
|
|
@@ -37,6 +37,8 @@ declare class StockReservations {
|
|
|
37
37
|
*
|
|
38
38
|
* const reservationDetails = response.data;
|
|
39
39
|
*/
|
|
40
|
-
show<P extends StockReservationShowParameter>(params: P): Promise<AxiosResponse<StockReservationsResponse<"show", P
|
|
40
|
+
show<P extends StockReservationShowParameter>(params: P): Promise<AxiosResponse<StockReservationsResponse<"show", P, {
|
|
41
|
+
expand: true;
|
|
42
|
+
}>>>;
|
|
41
43
|
}
|
|
42
44
|
export default StockReservations;
|
|
@@ -25,7 +25,9 @@ declare class Transactions {
|
|
|
25
25
|
* @param {P & TransactionsShowParameter} params
|
|
26
26
|
* @returns {Promise<AxiosResponse<TransactionsResponse<"show", P>>>}
|
|
27
27
|
*/
|
|
28
|
-
show<P extends TransactionsShowParameter>(params: P): Promise<AxiosResponse<TransactionsResponse<"show", P
|
|
28
|
+
show<P extends TransactionsShowParameter>(params: P): Promise<AxiosResponse<TransactionsResponse<"show", P, {
|
|
29
|
+
expand: true;
|
|
30
|
+
}>>>;
|
|
29
31
|
/**
|
|
30
32
|
* Query transactions with privileged filters
|
|
31
33
|
*
|
|
@@ -29,7 +29,9 @@ declare class Users {
|
|
|
29
29
|
* const { data } = await sdk.users.show({ id: "user-abc123" });
|
|
30
30
|
* const { data: userByEmail } = await sdk.users.show({ email: "john@example.com" });
|
|
31
31
|
*/
|
|
32
|
-
show<P extends UsersShowParameter<true>>(params: P): Promise<AxiosResponse<UsersResponse<"show", P
|
|
32
|
+
show<P extends UsersShowParameter<true>>(params: P): Promise<AxiosResponse<UsersResponse<"show", P, {
|
|
33
|
+
expand: true;
|
|
34
|
+
}>>>;
|
|
33
35
|
/**
|
|
34
36
|
* Query users with privileged filters
|
|
35
37
|
*
|
|
@@ -25,7 +25,9 @@ declare class CurrentUser {
|
|
|
25
25
|
* @param {P & CurrentUserShowParameter} params
|
|
26
26
|
* @returns {Promise<AxiosResponse<CurrentUserResponse<"show", P>>>}
|
|
27
27
|
*/
|
|
28
|
-
show<P extends CurrentUserShowParameter>(params?: P): Promise<AxiosResponse<CurrentUserResponse<"show", P
|
|
28
|
+
show<P extends CurrentUserShowParameter>(params?: P): Promise<AxiosResponse<CurrentUserResponse<"show", P, {
|
|
29
|
+
expand: true;
|
|
30
|
+
}>>>;
|
|
29
31
|
/**
|
|
30
32
|
* Create a new user account (signup)
|
|
31
33
|
*
|
|
@@ -27,7 +27,9 @@ declare class Listings {
|
|
|
27
27
|
* @example
|
|
28
28
|
* const { data } = await sdk.listings.show({ id: "listing-abc123" });
|
|
29
29
|
*/
|
|
30
|
-
show<P extends ListingsShowParameter>(params: P): Promise<AxiosResponse<ListingsResponse<"show", P
|
|
30
|
+
show<P extends ListingsShowParameter>(params: P): Promise<AxiosResponse<ListingsResponse<"show", P, {
|
|
31
|
+
expand: true;
|
|
32
|
+
}>>>;
|
|
31
33
|
/**
|
|
32
34
|
* Search and filter public listings
|
|
33
35
|
*
|
|
@@ -25,7 +25,9 @@ declare class OwnListings {
|
|
|
25
25
|
* @param {P & OwnListingsShowParameter} params
|
|
26
26
|
* @returns {Promise<AxiosResponse<OwnListingsResponse<"show", P>>>}
|
|
27
27
|
*/
|
|
28
|
-
show<P extends OwnListingsShowParameter>(params: P): Promise<AxiosResponse<OwnListingsResponse<"show", P
|
|
28
|
+
show<P extends OwnListingsShowParameter>(params: P): Promise<AxiosResponse<OwnListingsResponse<"show", P, {
|
|
29
|
+
expand: true;
|
|
30
|
+
}>>>;
|
|
29
31
|
/**
|
|
30
32
|
* List all your listings (drafts, published, closed)
|
|
31
33
|
*
|
|
@@ -28,7 +28,9 @@ declare class Reviews {
|
|
|
28
28
|
* @example
|
|
29
29
|
* const { data } = await sdk.reviews.show({ id: "rev-abc123" });
|
|
30
30
|
*/
|
|
31
|
-
show<P extends ReviewsShowParameter>(params: P): Promise<AxiosResponse<ReviewsResponse<"show", P
|
|
31
|
+
show<P extends ReviewsShowParameter>(params: P): Promise<AxiosResponse<ReviewsResponse<"show", P, {
|
|
32
|
+
expand: true;
|
|
33
|
+
}>>>;
|
|
32
34
|
/**
|
|
33
35
|
* Query your own reviews or reviews for your listings
|
|
34
36
|
*
|
|
@@ -30,7 +30,9 @@ declare class Transactions {
|
|
|
30
30
|
* @param {P & TransactionsShowParameter} params
|
|
31
31
|
* @returns {Promise<AxiosResponse<TransactionsResponse<"show", P>>>}
|
|
32
32
|
*/
|
|
33
|
-
show<P extends TransactionsShowParameter>(params: P): Promise<AxiosResponse<TransactionsResponse<"show", P
|
|
33
|
+
show<P extends TransactionsShowParameter>(params: P): Promise<AxiosResponse<TransactionsResponse<"show", P, {
|
|
34
|
+
expand: true;
|
|
35
|
+
}>>>;
|
|
34
36
|
/**
|
|
35
37
|
* Query your own transactions
|
|
36
38
|
*
|
|
@@ -29,6 +29,8 @@ declare class Users {
|
|
|
29
29
|
* console.log(data.attributes.profile.displayName);
|
|
30
30
|
* console.log(data.attributes.profile.bio);
|
|
31
31
|
*/
|
|
32
|
-
show<P extends UsersShowParameter>(params: P): Promise<AxiosResponse<UsersResponse<"show", P
|
|
32
|
+
show<P extends UsersShowParameter>(params: P): Promise<AxiosResponse<UsersResponse<"show", P, {
|
|
33
|
+
expand: true;
|
|
34
|
+
}>>>;
|
|
33
35
|
}
|
|
34
36
|
export default Users;
|