Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8fb3ef7

Browse files
authoredJan 16, 2024
Merge pull request #110 from contentstack/next
Fixes and Enhancements
2 parents 5f6878c + 5b13208 commit 8fb3ef7

28 files changed

+4041
-401
lines changed
 

‎.talismanrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
threshold: medium
22
fileignoreconfig:
33
- filename: package-lock.json
4-
checksum: 9a7bec9513834a0fc7db31b9a312ec35980600415c04f0d404e1370cfce1ef1b
4+
checksum: 2a2327aabd3f6eacf41a8e8bb3dd5afdab892683cfd15aac308f43c14108b824
55
version: ""

‎LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2023 Contentstack
3+
Copyright (c) 2012-2024 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎lib/organization/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function Organization (http, data) {
102102
*/
103103
this.transferOwnership = async (email) => {
104104
try {
105-
const response = await http.post(`${this.urlPath}/transfer_ownership`, { transfer_to: email })
105+
const response = await http.post(`${this.urlPath}/transfer-ownership`, { transfer_to: email })
106106
if (response.data) {
107107
return response.data
108108
} else {

‎lib/stack/asset/index.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,20 @@ export function Asset (http, data = {}) {
206206
}
207207
}
208208
/**
209-
* @description The Query on Asset will allow to fetch details of all or specific Asset.
210-
* @memberof Asset
211-
* @param {Object} params - URI parameters
212-
* @prop {Object} params.query - Queries that you can use to fetch filtered results.
213-
* @func query
214-
* @returns {Array<Asset>} Array of Asset.
215-
*
216-
* @example
217-
* import * as contentstack from '@contentstack/management'
218-
* const client = contentstack.client()
219-
*
220-
* client.stack({ api_key: 'api_key'}).asset().query({ query: { filename: 'Asset Name' } }).find()
221-
* .then((asset) => console.log(asset))
222-
*/
209+
* @description The Query on Asset will allow to fetch details of all or specific Asset.
210+
* @memberof Asset
211+
* @param {Object} params - URI parameters
212+
* @prop {Object} params.query - Queries that you can use to fetch filtered results.
213+
* @func query
214+
* @returns {Array<Asset>} Array of Asset.
215+
*
216+
* @example
217+
* import * as contentstack from '@contentstack/management'
218+
* const client = contentstack.client()
219+
*
220+
* client.stack({ api_key: 'api_key'}).asset().query({ query: { filename: 'Asset Name' } }).find()
221+
* .then((asset) => console.log(asset))
222+
*/
223223
this.query = query({ http: http, wrapperCollection: AssetCollection })
224224
}
225225
/**

0 commit comments

Comments
 (0)