You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/stack/contentType/index.js
+47-1Lines changed: 47 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,15 @@ import {
4
4
update,
5
5
deleteEntity,
6
6
fetch,
7
-
query
7
+
query,
8
+
upload,
9
+
parseData
8
10
}from'../../entity'
9
11
import{Entry}from'./entry/index'
12
+
importerrorfrom'../../core/contentstackError'
10
13
14
+
importFormDatafrom'form-data'
15
+
import{createReadStream}from'fs'
11
16
/**
12
17
* Content type defines the structure or schema of a page or a section of your web or mobile property. To create content for your application, you are required to first create a content type, and then create entries using the content type. Read more about <a href='https://www.contentstack.com/docs/guide/content-types'>Content Types</a>.
13
18
* @namespace ContentType
@@ -146,6 +151,40 @@ export function ContentType (http, data = {}) {
0 commit comments