Skip to content

Commit 1f61ea5

Browse files
authored
Merge pull request #60 from contentstack/next
Feat: NRP support, Audit logs, Type correction for User and CScollection added
2 parents 747bfc7 + e6bd53a commit 1f61ea5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+9631
-11229
lines changed

.jsdoc.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"lib/stack/asset/index.js",
1818
"lib/stack/asset/folders/index.js",
1919
"lib/stack/branch/index.js",
20+
"lib/stack/branch/compare.js",
21+
"lib/stack/branch/mergeQueue.js",
2022
"lib/stack/branchAlias/index.js",
2123
"lib/stack/bulkOperation/index.js",
2224
"lib/stack/extension/index.js",
@@ -27,15 +29,23 @@
2729
"lib/stack/environment/index.js",
2830
"lib/stack/deliveryToken/index.js",
2931
"lib/stack/roles/index.js",
30-
"lib/stack/webhook/index.js",
3132
"lib/stack/workflow/index.js",
32-
"lib/stack/workflow/publishRules/index.js"
33+
"lib/stack/workflow/publishRules/index.js",
34+
"lib/marketplace/app/oauth/index.js",
35+
"lib/marketplace/app/index.js",
36+
"lib/marketplace/app/hosting/deployment.js",
37+
"lib/marketplace/app/hosting/index.js",
38+
"lib/marketplace/index.js",
39+
"lib/marketplace/installation/index.js",
40+
"lib/marketplace/installation/webhooks/index.js",
41+
"lib/marketplace/apprequest/index.js",
42+
"lib/marketplace/authorization/index.js"
3343

3444
],
3545
"excludePattern": "(node_modules/|jsdocs)"
3646
},
3747
"opts": {
38-
"template": "docdash-template",
48+
"template": "./node_modules/docdash",
3949
"destination": "./jsdocs/",
4050
"encoding": "utf8",
4151
"private": true,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ contentstackClient.stack({ api_key: 'API_KEY' }).asset().create({ asset })
104104
- [Content Management API Docs](https://www.contentstack.com/docs/developers/apis/content-management-api)
105105

106106
### The MIT License (MIT)
107-
Copyright © 2012-2022 [Contentstack](https://www.contentstack.com/). All Rights Reserved
107+
Copyright © 2012-2023 [Contentstack](https://www.contentstack.com/). All Rights Reserved
108108

109109
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
110110

lib/app/installation/index.js

Lines changed: 0 additions & 253 deletions
This file was deleted.

lib/entity.js

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -93,29 +93,6 @@ export const create = ({ http, params }) => {
9393
}
9494
}
9595

96-
export const exportObject = ({ http }) => {
97-
return async function (param) {
98-
const headers = {
99-
params: {
100-
...cloneDeep(param)
101-
},
102-
headers: {
103-
...cloneDeep(this.stackHeaders)
104-
}
105-
} || {}
106-
try {
107-
const response = await http.get(this.urlPath, headers)
108-
if (response.data) {
109-
return new this.constructor(http, parseData(response, this.stackHeaders, this.content_type_uid))
110-
} else {
111-
throw error(response)
112-
}
113-
} catch (err) {
114-
throw error(err)
115-
}
116-
}
117-
}
118-
11996
export const query = ({ http, wrapperCollection }) => {
12097
return function (params = {}) {
12198
const headers = {
@@ -181,9 +158,7 @@ export const deleteEntity = (http, force = false, params = {}) => {
181158
try {
182159
const headers = {
183160
headers: { ...cloneDeep(this.stackHeaders), ...cloneDeep(params) },
184-
params: {
185-
...cloneDeep(param)
186-
}
161+
params: { ...cloneDeep(param) }
187162
} || {}
188163
if (force === true) {
189164
headers.params.force = true
@@ -288,4 +263,4 @@ export async function get (http, url, params, data) {
288263
} catch (err) {
289264
throw error(err)
290265
}
291-
}
266+
}

lib/app/hosting/deployment.js renamed to lib/marketplace/app/hosting/deployment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import cloneDeep from 'lodash/cloneDeep'
2-
import ContentstackCollection from '../../contentstackCollection'
3-
import error from '../../core/contentstackError'
2+
import ContentstackCollection from '../../../contentstackCollection'
3+
import error from '../../../core/contentstackError'
44

55
export function Deployment (http, data, params) {
66
http.defaults.versioningStrategy = undefined

lib/app/hosting/index.js renamed to lib/marketplace/app/hosting/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import cloneDeep from 'lodash/cloneDeep'
2-
import error from '../../core/contentstackError'
2+
import error from '../../../core/contentstackError'
33
import { Deployment } from './deployment'
44

55
export function Hosting (http, data, params) {

0 commit comments

Comments
 (0)