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/create-cda-api.js
+97-51Lines changed: 97 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
/* @flow */
2
-
3
1
/**
4
2
* Contentful CDA API
5
3
* @namespace CDAClient
@@ -9,36 +7,10 @@
9
7
* @namespace Entities
10
8
*/
11
9
12
-
/**
13
-
* Link to another entity. See <a href="https://www.contentful.com/developers/docs/concepts/links/">Links</a> for more details.
14
-
* @memberof Entities
15
-
* @typedef Link
16
-
* @prop {string} type - type of this entity. Always link.
17
-
* @prop {string} id
18
-
* @prop {string} linkType - type of this link. If defined, either Entry or Asset
19
-
*/
20
-
21
-
/**
22
-
* System metadata. See <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/introduction/common-resource-attributes">Common Resource Attributes</a> for more details.
@@ -211,3 +182,78 @@ export default function createCdaApi (http: Object, resolveLinksGlobalSetting: b
211
182
sync: sync
212
183
}
213
184
}
185
+
186
+
/**
187
+
* System metadata. See <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/introduction/common-resource-attributes">Common Resource Attributes</a> for more details.
188
+
* @memberof Entities
189
+
* @typedef Sys
190
+
* @prop {string} type
191
+
* @prop {string} id
192
+
* @prop {Entities.Link} space
193
+
* @prop {string} createdAt
194
+
* @prop {string} updatedAt
195
+
* @prop {number} revision
196
+
*/
197
+
198
+
/**
199
+
* Link to another entity. See <a href="https://www.contentful.com/developers/docs/concepts/links/">Links</a> for more details.
200
+
* @memberof Entities
201
+
* @typedef Link
202
+
* @prop {string} type - type of this entity. Always link.
203
+
* @prop {string} id
204
+
* @prop {string} linkType - type of this link. If defined, either Entry or Asset
205
+
*/
206
+
207
+
/**
208
+
* @namespace EntryFields
209
+
*/
210
+
211
+
/**
212
+
* @memberof EntryFields
213
+
* @typedef Symbol
214
+
* @type string
215
+
*/
216
+
217
+
/**
218
+
* @memberof EntryFields
219
+
* @typedef Text
220
+
* @type string
221
+
*/
222
+
223
+
/**
224
+
* @memberof EntryFields
225
+
* @typedef Integer
226
+
* @type number
227
+
*/
228
+
229
+
/**
230
+
* @memberof EntryFields
231
+
* @typedef Number
232
+
* @type number
233
+
*/
234
+
235
+
/**
236
+
* @memberof EntryFields
237
+
* @typedef Date
238
+
* @type string
239
+
*/
240
+
241
+
/**
242
+
* @memberof EntryFields
243
+
* @typedef Boolean
244
+
* @type boolean
245
+
*/
246
+
247
+
/**
248
+
* @memberof EntryFields
249
+
* @typedef Location
250
+
* @prop {string} lat - latitude
251
+
* @prop {string} lon - longitude
252
+
*/
253
+
254
+
/**
255
+
* A Field in an Entry can have one of the following types that can be defined in Contentful. See <a href="https://www.contentful.com/developers/docs/references/field-type/">Field Types</a> for more details.
0 commit comments