contentful-management 2.2.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,185 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/extensions
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"extension":{"name":"test extension with parameters","fieldTypes":[{"type":"Symbol"},{"type":"Text"}],"srcdoc":"<!doctype
9
+ html><html lang=''en''><head><meta charset=''UTF-8''/><title>Sample Editor
10
+ Extension</title><link rel=''stylesheet'' href=''https://contentful.github.io/ui-extensions-sdk/cf-extension.css''><script
11
+ src=''https://contentful.github.io/ui-extensions-sdk/cf-extension-api.js''></script></head><body><div
12
+ id=''content''></div><script>window.contentfulExtension.init(function (extension)
13
+ {window.alert(extension);var value = extension.field.getValue();extension.field.setValue(''Hello
14
+ world!'');extension.field.onValueChanged(function(value) {if (value !== currentValue)
15
+ {extension.field.setValue(''Hello world!'');}});});</script></body></html>","sidebar":false,"parameters":{"installation":[{"id":"devMode","type":"Boolean","name":"Run
16
+ in development mode"},{"id":"retries","type":"Number","name":"Number of retries
17
+ for API calls","required":true,"default":3}],"instance":[{"id":"helpText","type":"Symbol","name":"Help
18
+ text","description":"Help text for a user to help them understand the editor"},{"id":"theme","type":"Enum","name":"Theme","options":[{"light":"Solarized
19
+ light"},{"dark":"Solarized dark"}],"default":"light","required":true}]}}}'
20
+ headers:
21
+ X-Contentful-User-Agent:
22
+ - sdk contentful-management.rb/2.2.2; platform ruby/2.5.1; os macOS/16;
23
+ Authorization:
24
+ - Bearer <ACCESS_TOKEN>
25
+ Content-Type:
26
+ - application/vnd.contentful.management.v1+json
27
+ Connection:
28
+ - close
29
+ Host:
30
+ - api.contentful.com
31
+ User-Agent:
32
+ - http.rb/2.2.2
33
+ response:
34
+ status:
35
+ code: 201
36
+ message: Created
37
+ headers:
38
+ Access-Control-Allow-Headers:
39
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
40
+ Access-Control-Allow-Methods:
41
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
42
+ Access-Control-Allow-Origin:
43
+ - "*"
44
+ Access-Control-Expose-Headers:
45
+ - Etag
46
+ Access-Control-Max-Age:
47
+ - '1728000'
48
+ Cf-Space-Id:
49
+ - facgnwwgj5fe
50
+ Content-Type:
51
+ - application/vnd.contentful.management.v1+json
52
+ Contentful-Api:
53
+ - cma
54
+ Date:
55
+ - Fri, 17 Aug 2018 12:22:51 GMT
56
+ Etag:
57
+ - '"50fc26040b8f7898294544bf73a66273"'
58
+ Server:
59
+ - Contentful
60
+ Strict-Transport-Security:
61
+ - max-age=15768000
62
+ X-Content-Type-Options:
63
+ - nosniff
64
+ X-Contentful-Ratelimit-Hour-Limit:
65
+ - '36000'
66
+ X-Contentful-Ratelimit-Hour-Remaining:
67
+ - '35997'
68
+ X-Contentful-Ratelimit-Reset:
69
+ - '0'
70
+ X-Contentful-Ratelimit-Second-Limit:
71
+ - '10'
72
+ X-Contentful-Ratelimit-Second-Remaining:
73
+ - '9'
74
+ X-Contentful-Request-Id:
75
+ - d556a4cb9c9e3537540d7440c11148c0
76
+ Content-Length:
77
+ - '2482'
78
+ Connection:
79
+ - Close
80
+ Set-Cookie:
81
+ - incap_ses_876_673446=O9W+WgFvYENkKyb0zS0oDBq+dlsAAAAAx3yItOtTOUwBn+xruwxnlg==;
82
+ path=/; Domain=.contentful.com
83
+ - nlbi_673446=o94fY6GBF1+qJ2p96lKYhQAAAADz9fL/pOT7XnYahbAdxCVh; path=/; Domain=.contentful.com
84
+ - visid_incap_673446=3QWDvJ5+R2S+/3vyU93bbxq+dlsAAAAAQUIPAAAAAACj8X5F69VWUSVwN4JIunvn;
85
+ expires=Sat, 17 Aug 2019 08:59:51 GMT; path=/; Domain=.contentful.com
86
+ X-Iinfo:
87
+ - 13-91206138-91206170 NNNN CT(92 91 0) RT(1534508569104 58) q(0 0 2 -1) r(11
88
+ 11) U5
89
+ X-Cdn:
90
+ - Incapsula
91
+ body:
92
+ encoding: ASCII-8BIT
93
+ string: |
94
+ {
95
+ "extension": {
96
+ "name": "test extension with parameters",
97
+ "fieldTypes": [
98
+ {
99
+ "type": "Symbol"
100
+ },
101
+ {
102
+ "type": "Text"
103
+ }
104
+ ],
105
+ "srcdoc": "<!doctype html><html lang='en'><head><meta charset='UTF-8'/><title>Sample Editor Extension</title><link rel='stylesheet' href='https://contentful.github.io/ui-extensions-sdk/cf-extension.css'><script src='https://contentful.github.io/ui-extensions-sdk/cf-extension-api.js'></script></head><body><div id='content'></div><script>window.contentfulExtension.init(function (extension) {window.alert(extension);var value = extension.field.getValue();extension.field.setValue('Hello world!');extension.field.onValueChanged(function(value) {if (value !== currentValue) {extension.field.setValue('Hello world!');}});});</script></body></html>",
106
+ "sidebar": false,
107
+ "parameters": {
108
+ "installation": [
109
+ {
110
+ "id": "devMode",
111
+ "type": "Boolean",
112
+ "name": "Run in development mode"
113
+ },
114
+ {
115
+ "id": "retries",
116
+ "type": "Number",
117
+ "name": "Number of retries for API calls",
118
+ "required": true,
119
+ "default": 3
120
+ }
121
+ ],
122
+ "instance": [
123
+ {
124
+ "id": "helpText",
125
+ "type": "Symbol",
126
+ "name": "Help text",
127
+ "description": "Help text for a user to help them understand the editor"
128
+ },
129
+ {
130
+ "id": "theme",
131
+ "type": "Enum",
132
+ "name": "Theme",
133
+ "options": [
134
+ {
135
+ "light": "Solarized light"
136
+ },
137
+ {
138
+ "dark": "Solarized dark"
139
+ }
140
+ ],
141
+ "default": "light",
142
+ "required": true
143
+ }
144
+ ]
145
+ }
146
+ },
147
+ "sys": {
148
+ "id": "5GKztW8CIMKGc2YkI6MeAm",
149
+ "type": "Extension",
150
+ "version": 1,
151
+ "createdAt": "2018-08-17T12:22:51.118Z",
152
+ "createdBy": {
153
+ "sys": {
154
+ "type": "Link",
155
+ "linkType": "User",
156
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
157
+ }
158
+ },
159
+ "updatedAt": "2018-08-17T12:22:51.118Z",
160
+ "updatedBy": {
161
+ "sys": {
162
+ "type": "Link",
163
+ "linkType": "User",
164
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
165
+ }
166
+ },
167
+ "space": {
168
+ "sys": {
169
+ "type": "Link",
170
+ "linkType": "Space",
171
+ "id": "facgnwwgj5fe"
172
+ }
173
+ },
174
+ "environment": {
175
+ "sys": {
176
+ "id": "master",
177
+ "type": "Link",
178
+ "linkType": "Environment"
179
+ }
180
+ }
181
+ }
182
+ }
183
+ http_version:
184
+ recorded_at: Fri, 17 Aug 2018 12:22:48 GMT
185
+ recorded_with: VCR 4.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com//users/me
5
+ uri: https://api.contentful.com/users/me
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/webhook_definitions
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"test_ruby_filters","url":"https://www.example.com","topics":["Entry.*"],"filters":[{"equals":[{"doc":"sys.environment.sys.id"},"some-env-id"]}]}'
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/2.2.2; platform ruby/2.5.1; os macOS/16;
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - api.contentful.com
20
+ User-Agent:
21
+ - http.rb/2.2.2
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Accept-Ranges:
28
+ - bytes
29
+ Access-Control-Allow-Headers:
30
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
31
+ Access-Control-Allow-Methods:
32
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Expose-Headers:
36
+ - Etag
37
+ Access-Control-Max-Age:
38
+ - '1728000'
39
+ Cache-Control:
40
+ - max-age=0
41
+ Cf-Organization-Id:
42
+ - 4SsuxQCaMaemfIms52Jr8s
43
+ Cf-Space-Id:
44
+ - facgnwwgj5fe
45
+ Content-Type:
46
+ - application/vnd.contentful.management.v1+json
47
+ Contentful-Api:
48
+ - cma
49
+ Date:
50
+ - Fri, 17 Aug 2018 12:00:45 GMT
51
+ Etag:
52
+ - W/"d5abafc13f3faf552d5ff8e6fc4204b0"
53
+ Location:
54
+ - https://api.contentful.com/spaces/facgnwwgj5fe/webhook_definitions/0Kgjs0DQizupIbmSHcyaFM
55
+ Referrer-Policy:
56
+ - strict-origin-when-cross-origin
57
+ Server:
58
+ - Contentful
59
+ Strict-Transport-Security:
60
+ - max-age=15768000
61
+ X-Content-Type-Options:
62
+ - nosniff
63
+ X-Contentful-Ratelimit-Hour-Limit:
64
+ - '36000'
65
+ X-Contentful-Ratelimit-Hour-Remaining:
66
+ - '35999'
67
+ X-Contentful-Ratelimit-Reset:
68
+ - '0'
69
+ X-Contentful-Ratelimit-Second-Limit:
70
+ - '10'
71
+ X-Contentful-Ratelimit-Second-Remaining:
72
+ - '9'
73
+ X-Contentful-Request-Id:
74
+ - 63f412f53e4622bfefe3c4005398091d
75
+ X-Download-Options:
76
+ - noopen
77
+ X-Frame-Options:
78
+ - ALLOWALL
79
+ X-Permitted-Cross-Domain-Policies:
80
+ - none
81
+ X-Xss-Protection:
82
+ - 1; mode=block
83
+ Content-Length:
84
+ - '880'
85
+ Connection:
86
+ - Close
87
+ Set-Cookie:
88
+ - incap_ses_876_673446=zFB+deG74SAzER/0zS0oDOy4dlsAAAAAU5YZlvvdgTksfGfVo+dvFQ==;
89
+ path=/; Domain=.contentful.com
90
+ - nlbi_673446=Cy91USoAjCckZHJA6lKYhQAAAACgjqcx4d4G1hNZo6Q/ZGnK; path=/; Domain=.contentful.com
91
+ - visid_incap_673446=1liv5DkFQqeBmREOnGikYuy4dlsAAAAAQUIPAAAAAAD0GrELch92oxb82uvzk12v;
92
+ expires=Sat, 17 Aug 2019 09:00:09 GMT; path=/; Domain=.contentful.com
93
+ X-Iinfo:
94
+ - 12-65979372-65979383 NNNN CT(90 102 0) RT(1534507243773 44) q(0 0 2 -1) r(5
95
+ 5) U5
96
+ X-Cdn:
97
+ - Incapsula
98
+ body:
99
+ encoding: ASCII-8BIT
100
+ string: |+
101
+ {
102
+ "name":"test_ruby_filters",
103
+ "url":"https://www.example.com",
104
+ "httpBasicUsername":null,
105
+ "headers":[],
106
+ "topics":[
107
+ "Entry.*"
108
+ ],
109
+ "filters":[
110
+ {
111
+ "equals":[
112
+ {
113
+ "doc":"sys.environment.sys.id"
114
+ },
115
+ "some-env-id"
116
+ ]
117
+ }
118
+ ],
119
+ "transformation":null,
120
+ "sys":{
121
+ "type":"WebhookDefinition",
122
+ "id":"0Kgjs0DQizupIbmSHcyaFM",
123
+ "version":0,
124
+ "space":{
125
+ "sys":{
126
+ "type":"Link",
127
+ "linkType":"Space",
128
+ "id":"facgnwwgj5fe"
129
+ }
130
+ },
131
+ "createdBy":{
132
+ "sys":{
133
+ "type":"Link",
134
+ "linkType":"User",
135
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
136
+ }
137
+ },
138
+ "createdAt":"2018-08-17T12:00:45Z",
139
+ "updatedBy":{
140
+ "sys":{
141
+ "type":"Link",
142
+ "linkType":"User",
143
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
144
+ }
145
+ },
146
+ "updatedAt":"2018-08-17T12:00:45Z"
147
+ }
148
+ }
149
+
150
+ http_version:
151
+ recorded_at: Fri, 17 Aug 2018 12:00:42 GMT
152
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/webhook_definitions
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"test_ruby_filters","url":"https://www.example.com","topics":["Entry.*"],"transformation":{"method":"POST","contentType":"application/vnd.contentful.management.v1+json;
9
+ charset=utf-8","body":{"entryId":"{ /payload/sys/id }","fields":"{ /payload/fields
10
+ }"}}}'
11
+ headers:
12
+ X-Contentful-User-Agent:
13
+ - sdk contentful-management.rb/2.2.2; platform ruby/2.5.1; os macOS/16;
14
+ Authorization:
15
+ - Bearer <ACCESS_TOKEN>
16
+ Content-Type:
17
+ - application/vnd.contentful.management.v1+json
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - api.contentful.com
22
+ User-Agent:
23
+ - http.rb/2.2.2
24
+ response:
25
+ status:
26
+ code: 201
27
+ message: Created
28
+ headers:
29
+ Accept-Ranges:
30
+ - bytes
31
+ Access-Control-Allow-Headers:
32
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
33
+ Access-Control-Allow-Methods:
34
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
35
+ Access-Control-Allow-Origin:
36
+ - "*"
37
+ Access-Control-Expose-Headers:
38
+ - Etag
39
+ Access-Control-Max-Age:
40
+ - '1728000'
41
+ Cache-Control:
42
+ - max-age=0
43
+ Cf-Organization-Id:
44
+ - 4SsuxQCaMaemfIms52Jr8s
45
+ Cf-Space-Id:
46
+ - facgnwwgj5fe
47
+ Content-Type:
48
+ - application/vnd.contentful.management.v1+json
49
+ Contentful-Api:
50
+ - cma
51
+ Date:
52
+ - Fri, 17 Aug 2018 12:02:52 GMT
53
+ Etag:
54
+ - W/"3819b0b5e3b5cfefc55b5b7fec5a7187"
55
+ Location:
56
+ - https://api.contentful.com/spaces/facgnwwgj5fe/webhook_definitions/33F1N7VxctE4H4h6Up0Wew
57
+ Referrer-Policy:
58
+ - strict-origin-when-cross-origin
59
+ Server:
60
+ - Contentful
61
+ Strict-Transport-Security:
62
+ - max-age=15768000
63
+ X-Content-Type-Options:
64
+ - nosniff
65
+ X-Contentful-Ratelimit-Hour-Limit:
66
+ - '36000'
67
+ X-Contentful-Ratelimit-Hour-Remaining:
68
+ - '35998'
69
+ X-Contentful-Ratelimit-Reset:
70
+ - '0'
71
+ X-Contentful-Ratelimit-Second-Limit:
72
+ - '10'
73
+ X-Contentful-Ratelimit-Second-Remaining:
74
+ - '9'
75
+ X-Contentful-Request-Id:
76
+ - 65a012856e595d7c7a29dcfe5ce5731c
77
+ X-Download-Options:
78
+ - noopen
79
+ X-Frame-Options:
80
+ - ALLOWALL
81
+ X-Permitted-Cross-Domain-Policies:
82
+ - none
83
+ X-Xss-Protection:
84
+ - 1; mode=block
85
+ Content-Length:
86
+ - '957'
87
+ Connection:
88
+ - Close
89
+ Set-Cookie:
90
+ - incap_ses_876_673446=qzEMexENd2paCiD0zS0oDGu5dlsAAAAAHOSO+88uhyOSXU3VHqp5Jg==;
91
+ path=/; Domain=.contentful.com
92
+ - nlbi_673446=FqO6Qo18MS80tfnC6lKYhQAAAAADFG3Ks1cKdaCENdnf/jRd; path=/; Domain=.contentful.com
93
+ - visid_incap_673446=QYsLVoeuQ+q+fpyH/JHBImu5dlsAAAAAQUIPAAAAAACjNIwAxOA0ifYtATmtlI3P;
94
+ expires=Sat, 17 Aug 2019 09:00:05 GMT; path=/; Domain=.contentful.com
95
+ X-Iinfo:
96
+ - 14-114999611-114999621 NNNN CT(90 90 0) RT(1534507371289 41) q(0 0 2 -1) r(4
97
+ 4) U5
98
+ X-Cdn:
99
+ - Incapsula
100
+ body:
101
+ encoding: ASCII-8BIT
102
+ string: |+
103
+ {
104
+ "name":"test_ruby_filters",
105
+ "url":"https://www.example.com",
106
+ "httpBasicUsername":null,
107
+ "headers":[],
108
+ "topics":[
109
+ "Entry.*"
110
+ ],
111
+ "filters":null,
112
+ "transformation":{
113
+ "method":"POST",
114
+ "contentType":"application/vnd.contentful.management.v1+json; charset=utf-8",
115
+ "body":{
116
+ "entryId":"{ /payload/sys/id }",
117
+ "fields":"{ /payload/fields }"
118
+ }
119
+ },
120
+ "sys":{
121
+ "type":"WebhookDefinition",
122
+ "id":"33F1N7VxctE4H4h6Up0Wew",
123
+ "version":0,
124
+ "space":{
125
+ "sys":{
126
+ "type":"Link",
127
+ "linkType":"Space",
128
+ "id":"facgnwwgj5fe"
129
+ }
130
+ },
131
+ "createdBy":{
132
+ "sys":{
133
+ "type":"Link",
134
+ "linkType":"User",
135
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
136
+ }
137
+ },
138
+ "createdAt":"2018-08-17T12:02:52Z",
139
+ "updatedBy":{
140
+ "sys":{
141
+ "type":"Link",
142
+ "linkType":"User",
143
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
144
+ }
145
+ },
146
+ "updatedAt":"2018-08-17T12:02:52Z"
147
+ }
148
+ }
149
+
150
+ http_version:
151
+ recorded_at: Fri, 17 Aug 2018 12:02:49 GMT
152
+ recorded_with: VCR 4.0.0