Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: contentstack/contentstack-management-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5f6878ca8e50e7a50cbae1ad0b15c84a0a5dc7bc
Choose a base ref
...
head repository: contentstack/contentstack-management-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8fb3ef78bdd85b99743482c26f8fe352759ab8ee
Choose a head ref
Loading
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
threshold: medium
fileignoreconfig:
- filename: package-lock.json
checksum: 9a7bec9513834a0fc7db31b9a312ec35980600415c04f0d404e1370cfce1ef1b
checksum: 2a2327aabd3f6eacf41a8e8bb3dd5afdab892683cfd15aac308f43c14108b824
version: ""
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2012-2023 Contentstack
Copyright (c) 2012-2024 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
2 changes: 1 addition & 1 deletion lib/organization/index.js
Original file line number Diff line number Diff line change
@@ -102,7 +102,7 @@ export function Organization (http, data) {
*/
this.transferOwnership = async (email) => {
try {
const response = await http.post(`${this.urlPath}/transfer_ownership`, { transfer_to: email })
const response = await http.post(`${this.urlPath}/transfer-ownership`, { transfer_to: email })
if (response.data) {
return response.data
} else {
28 changes: 14 additions & 14 deletions lib/stack/asset/index.js
Original file line number Diff line number Diff line change
@@ -206,20 +206,20 @@ export function Asset (http, data = {}) {
}
}
/**
* @description The Query on Asset will allow to fetch details of all or specific Asset.
* @memberof Asset
* @param {Object} params - URI parameters
* @prop {Object} params.query - Queries that you can use to fetch filtered results.
* @func query
* @returns {Array<Asset>} Array of Asset.
*
* @example
* import * as contentstack from '@contentstack/management'
* const client = contentstack.client()
*
* client.stack({ api_key: 'api_key'}).asset().query({ query: { filename: 'Asset Name' } }).find()
* .then((asset) => console.log(asset))
*/
* @description The Query on Asset will allow to fetch details of all or specific Asset.
* @memberof Asset
* @param {Object} params - URI parameters
* @prop {Object} params.query - Queries that you can use to fetch filtered results.
* @func query
* @returns {Array<Asset>} Array of Asset.
*
* @example
* import * as contentstack from '@contentstack/management'
* const client = contentstack.client()
*
* client.stack({ api_key: 'api_key'}).asset().query({ query: { filename: 'Asset Name' } }).find()
* .then((asset) => console.log(asset))
*/
this.query = query({ http: http, wrapperCollection: AssetCollection })
}
/**
Loading