contentful-scheduler-custom 1.6.7.5348 → 1.6.7.5349
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contentful/scheduler/tasks/publish.rb +10 -48
- data/lib/contentful/scheduler/version.rb +1 -1
- metadata +1 -3
- data/12.txt +0 -84
- data/3.json +0 -218
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e264ab39270b3bfc90f15321ca2f56db932288b37134f256d95df034834df7c
|
4
|
+
data.tar.gz: b419ade609ae610d9e952b69e49f7b8de510d6155bb4f6497313110e8bd6dee8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 027c8b82493363b7ec3f65f0ef19c2fc295d922bd6394c4db693ca670fc20999a3ab7d76dbedb292926622ab660de0f903eb1ccffe94f180913faf1736b173b3
|
7
|
+
data.tar.gz: e0310f3e89a78f3347b4f02a99a304852eea0cb697328ae4ebccb90eb844147ed1b3c6be18dcbab8524bd943117bfb35b4f8bbb2d6579d5e7d62d06d90da3e19
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'contentful/management'
|
2
2
|
require 'contentful'
|
3
3
|
require 'logger'
|
4
|
-
require 'json'
|
5
4
|
|
6
5
|
module Contentful
|
7
6
|
module Scheduler
|
@@ -9,73 +8,36 @@ module Contentful
|
|
9
8
|
class Publish
|
10
9
|
@queue = :publish
|
11
10
|
|
11
|
+
include Contentful::Scheduler::Taskshelper
|
12
|
+
|
12
13
|
def self.perform(space_id, entry_id, token)
|
13
14
|
|
14
15
|
logger = Logger.new(STDOUT)
|
15
|
-
|
16
|
+
client = Contentful::Client.new(
|
16
17
|
space: space_id,
|
17
18
|
access_token: 'fdbb94735f4ba12d034ce935855e6f89d27e87bfe51fcdbdbfae2d8745cfba09'
|
18
19
|
)
|
19
20
|
|
20
|
-
|
21
|
+
clientManagement = ::Contentful::Management::Client.new(
|
21
22
|
token,
|
22
23
|
raise_errors: true,
|
23
24
|
application_name: 'contentful.scheduler',
|
24
25
|
application_version: Contentful::Scheduler::VERSION
|
25
26
|
)
|
26
27
|
|
27
|
-
linked_enteries =
|
28
|
+
linked_enteries = client.entries(links_to_entry: entry_id)
|
28
29
|
|
29
30
|
if !linked_enteries.raw["includes"].nil? && !linked_enteries.raw["includes"]["Entry"].nil?
|
30
|
-
|
31
|
-
logger.info("Linked enteries are #{
|
32
|
-
|
31
|
+
linked_enteries_ids = extract_element_ids(linked_enteries.raw["includes"]["Entry"])
|
32
|
+
logger.info("Linked enteries for entry_id ==>> #{entry_id} are ==>> #{linked_enteries_ids}")
|
33
|
+
linked_enteries_ids.each do |id|
|
33
34
|
logger.info"Publishing linked entry with id #{id}"
|
34
|
-
|
35
|
-
client.entries.find(space_id, id).publish
|
35
|
+
clientManagement.entries.find(space_id, id).publish
|
36
36
|
end
|
37
37
|
end
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
private
|
42
|
-
|
43
|
-
def self.extract_element_ids input_array
|
44
|
-
logger = Logger.new(STDOUT)
|
45
|
-
logger.info("Input array is #{input_array}")
|
46
|
-
ids = []
|
47
|
-
input_array.each {|item| (ids << (get_each_field item )).flatten!}
|
48
|
-
return ids.uniq
|
49
|
-
end
|
50
|
-
|
51
|
-
def self.get_each_field item
|
52
|
-
logger = Logger.new(STDOUT)
|
53
|
-
logger.info("get_each_field input is #{item}")
|
54
|
-
ids = []
|
55
|
-
keys = item["fields"].keys
|
56
|
-
keys.each {|key| (ids << (get_each_element key, item["fields"])).flatten!}
|
57
|
-
logger.info "get_each_field ==> #{ids}"
|
58
|
-
return ids
|
38
|
+
clientManagement.entries.find(space_id, entry_id).publish
|
59
39
|
end
|
60
40
|
|
61
|
-
def self.get_each_element key, item
|
62
|
-
logger = Logger.new(STDOUT)
|
63
|
-
logger.info("get_each_element input key is #{key} and item is #{item}")
|
64
|
-
ids = []
|
65
|
-
logger.info("CLASS NAME IS #{item[key].class} AND ITEM IS #{item[key]}")
|
66
|
-
if item[key].is_a?(::Array)
|
67
|
-
logger.info("Inside get_each_element Array #{item[key]}")
|
68
|
-
item[key].each do |i|
|
69
|
-
logger.info("Inside get_each_element for type Array #{i}")
|
70
|
-
(!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil
|
71
|
-
end
|
72
|
-
elsif item[key].is_a?(::Hash)
|
73
|
-
logger.info("Inside get_each_element for type Hash #{item[key]}")
|
74
|
-
(!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
|
75
|
-
end
|
76
|
-
logger.info "get_each_element ids are ==> #{ids}"
|
77
|
-
return ids
|
78
|
-
end
|
79
41
|
end
|
80
42
|
end
|
81
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful-scheduler-custom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.7.
|
4
|
+
version: 1.6.7.5349
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Contentful GmbH (David Litvak Bruno0
|
@@ -202,8 +202,6 @@ files:
|
|
202
202
|
- ".gitignore"
|
203
203
|
- ".rspec"
|
204
204
|
- ".travis.yml"
|
205
|
-
- 12.txt
|
206
|
-
- 3.json
|
207
205
|
- CHANGELOG.md
|
208
206
|
- CODE_OF_CONDUCT.md
|
209
207
|
- Gemfile
|
data/12.txt
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"1Owgw9UmeGVWvrsONWtWal", "type"=>"Entry", "createdAt"=>"2019-03-20T14:02:03.505Z", "updatedAt"=>"2019-03-26T15:26:35.695Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbDescription"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"asdasdasd zxcas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3iUCCaX2GuNHAIkrPAYuik"}}]}}
|
2
|
-
get_each_element input keyis id and item is {"id"=>"asdasdasd zxcas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3iUCCaX2GuNHAIkrPAYuik"}}]}
|
3
|
-
get_each_element ids are []
|
4
|
-
get_each_element input keyis items and item is {"id"=>"asdasdasd zxcas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3iUCCaX2GuNHAIkrPAYuik"}}]}
|
5
|
-
get_each_element ids are ["3iUCCaX2GuNHAIkrPAYuik"]
|
6
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"1YYukTOwMXDu7DHZvZ41TT", "type"=>"Entry", "createdAt"=>"2019-03-20T14:02:02.514Z", "updatedAt"=>"2019-03-26T15:26:32.146Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbArticle"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"zxcxz zxczxsaaszxzx", "articles"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"xGeX8uzpd7TjgBZg9nt1m"}}]}}
|
7
|
-
get_each_element input keyis id and item is {"id"=>"zxcxz zxczxsaaszxzx", "articles"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"xGeX8uzpd7TjgBZg9nt1m"}}]}
|
8
|
-
get_each_element ids are []
|
9
|
-
get_each_element input keyis articles and item is {"id"=>"zxcxz zxczxsaaszxzx", "articles"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"xGeX8uzpd7TjgBZg9nt1m"}}]}
|
10
|
-
get_each_element ids are ["xGeX8uzpd7TjgBZg9nt1m"]
|
11
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"2NNqFOKpYxL2NR2LtKOhg3", "type"=>"Entry", "createdAt"=>"2019-03-20T14:01:59.072Z", "updatedAt"=>"2019-03-26T15:26:24.921Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbCardGrid"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"card grid zxc zxcxzc", "cards"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4fsDssIXf3hKl41zCA3Kqq"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3Mva0XVfL36aIko6XoQmMO"}}]}}
|
12
|
-
get_each_element input keyis id and item is {"id"=>"card grid zxc zxcxzc", "cards"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4fsDssIXf3hKl41zCA3Kqq"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3Mva0XVfL36aIko6XoQmMO"}}]}
|
13
|
-
get_each_element ids are []
|
14
|
-
get_each_element input keyis cards and item is {"id"=>"card grid zxc zxcxzc", "cards"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4fsDssIXf3hKl41zCA3Kqq"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3Mva0XVfL36aIko6XoQmMO"}}]}
|
15
|
-
get_each_element ids are ["4fsDssIXf3hKl41zCA3Kqq", "3Mva0XVfL36aIko6XoQmMO"]
|
16
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"2d5d3ekoU4EqG2YyGWIqgW", "type"=>"Entry", "createdAt"=>"2018-10-11T08:01:05.167Z", "updatedAt"=>"2019-03-26T15:25:50.483Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>26, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbForm"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"Test Form 134 asdasdasdas", "title"=>"Test Form 2", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3RGJc25XBSsSMGkYGuA224"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5LWmHVo5MWUQAyCo0IYAKe"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4ZDGs4Zv7Gyko0om8csUKI"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6DBwwtHQ7EqYnCds7K7Tez"}}]}}
|
17
|
-
get_each_element input keyis id and item is {"id"=>"Test Form 134 asdasdasdas", "title"=>"Test Form 2", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3RGJc25XBSsSMGkYGuA224"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5LWmHVo5MWUQAyCo0IYAKe"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4ZDGs4Zv7Gyko0om8csUKI"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6DBwwtHQ7EqYnCds7K7Tez"}}]}
|
18
|
-
get_each_element ids are []
|
19
|
-
get_each_element input keyis title and item is {"id"=>"Test Form 134 asdasdasdas", "title"=>"Test Form 2", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3RGJc25XBSsSMGkYGuA224"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5LWmHVo5MWUQAyCo0IYAKe"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4ZDGs4Zv7Gyko0om8csUKI"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6DBwwtHQ7EqYnCds7K7Tez"}}]}
|
20
|
-
get_each_element ids are []
|
21
|
-
get_each_element input keyis button and item is {"id"=>"Test Form 134 asdasdasdas", "title"=>"Test Form 2", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3RGJc25XBSsSMGkYGuA224"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5LWmHVo5MWUQAyCo0IYAKe"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4ZDGs4Zv7Gyko0om8csUKI"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6DBwwtHQ7EqYnCds7K7Tez"}}]}
|
22
|
-
get_each_element ids are ["3RGJc25XBSsSMGkYGuA224"]
|
23
|
-
get_each_element input keyis fields and item is {"id"=>"Test Form 134 asdasdasdas", "title"=>"Test Form 2", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3RGJc25XBSsSMGkYGuA224"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5LWmHVo5MWUQAyCo0IYAKe"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"4ZDGs4Zv7Gyko0om8csUKI"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6DBwwtHQ7EqYnCds7K7Tez"}}]}
|
24
|
-
get_each_element ids are ["5LWmHVo5MWUQAyCo0IYAKe", "4ZDGs4Zv7Gyko0om8csUKI", "6DBwwtHQ7EqYnCds7K7Tez"]
|
25
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"3VQI7LKFi0d9vb9TqJAu4K", "type"=>"Entry", "createdAt"=>"2019-03-20T14:01:52.736Z", "updatedAt"=>"2019-03-26T15:26:04.290Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>7, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbVisualMarketingBlock"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"Visual marketing blockasdasasasasas", "title"=>"Title", "inverse"=>true, "square"=>true, "buttons"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}]}}
|
26
|
-
get_each_element input keyis id and item is {"id"=>"Visual marketing blockasdasasasasas", "title"=>"Title", "inverse"=>true, "square"=>true, "buttons"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}]}
|
27
|
-
get_each_element ids are []
|
28
|
-
get_each_element input keyis title and item is {"id"=>"Visual marketing blockasdasasasasas", "title"=>"Title", "inverse"=>true, "square"=>true, "buttons"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}]}
|
29
|
-
get_each_element ids are []
|
30
|
-
get_each_element input keyis inverse and item is {"id"=>"Visual marketing blockasdasasasasas", "title"=>"Title", "inverse"=>true, "square"=>true, "buttons"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}]}
|
31
|
-
get_each_element ids are []
|
32
|
-
get_each_element input keyis square and item is {"id"=>"Visual marketing blockasdasasasasas", "title"=>"Title", "inverse"=>true, "square"=>true, "buttons"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}]}
|
33
|
-
get_each_element ids are []
|
34
|
-
get_each_element input keyis buttons and item is {"id"=>"Visual marketing blockasdasasasasas", "title"=>"Title", "inverse"=>true, "square"=>true, "buttons"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}]}
|
35
|
-
get_each_element ids are ["26sBafCtlG1DwIdGUDgKma"]
|
36
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"3cwgQTOoFARFZyTmjBe2hb", "type"=>"Entry", "createdAt"=>"2019-03-20T14:01:55.147Z", "updatedAt"=>"2019-03-26T15:26:11.348Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbNetworkWizard"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"network editorzxsa"}}
|
37
|
-
get_each_element input keyis id and item is {"id"=>"network editorzxsa"}
|
38
|
-
get_each_element ids are []
|
39
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"4v36SzxkakNhBozRdaH1Bl", "type"=>"Entry", "createdAt"=>"2019-03-20T14:01:58.067Z", "updatedAt"=>"2019-03-26T15:26:21.020Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbNewsGrid"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"News Gridscxzzxas", "insideFluidSnapper"=>true, "background"=>"coal-grey", "newsitems"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6nN9Sw3O2unUTGL4g5aSjI"}}]}}
|
40
|
-
get_each_element input keyis id and item is {"id"=>"News Gridscxzzxas", "insideFluidSnapper"=>true, "background"=>"coal-grey", "newsitems"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6nN9Sw3O2unUTGL4g5aSjI"}}]}
|
41
|
-
get_each_element ids are []
|
42
|
-
get_each_element input keyis insideFluidSnapper and item is {"id"=>"News Gridscxzzxas", "insideFluidSnapper"=>true, "background"=>"coal-grey", "newsitems"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6nN9Sw3O2unUTGL4g5aSjI"}}]}
|
43
|
-
get_each_element ids are []
|
44
|
-
get_each_element input keyis background and item is {"id"=>"News Gridscxzzxas", "insideFluidSnapper"=>true, "background"=>"coal-grey", "newsitems"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6nN9Sw3O2unUTGL4g5aSjI"}}]}
|
45
|
-
get_each_element ids are []
|
46
|
-
get_each_element input keyis newsitems and item is {"id"=>"News Gridscxzzxas", "insideFluidSnapper"=>true, "background"=>"coal-grey", "newsitems"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"6nN9Sw3O2unUTGL4g5aSjI"}}]}
|
47
|
-
get_each_element ids are ["6nN9Sw3O2unUTGL4g5aSjI"]
|
48
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"5Pul1SC8Qw3awarTLUtnRN", "type"=>"Entry", "createdAt"=>"2019-03-07T13:21:05.311Z", "updatedAt"=>"2019-03-26T15:25:56.571Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>24, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbMarketingSquares"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"Marketing Squares Abhilash testasasasdasdasasas", "marketingSquares"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3vGzmRtzx3YLQvTdl1cA2r"}}]}}
|
49
|
-
get_each_element input keyis id and item is {"id"=>"Marketing Squares Abhilash testasasasdasdasasas", "marketingSquares"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3vGzmRtzx3YLQvTdl1cA2r"}}]}
|
50
|
-
get_each_element ids are []
|
51
|
-
get_each_element input keyis marketingSquares and item is {"id"=>"Marketing Squares Abhilash testasasasdasdasasas", "marketingSquares"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"3vGzmRtzx3YLQvTdl1cA2r"}}]}
|
52
|
-
get_each_element ids are ["3vGzmRtzx3YLQvTdl1cA2r"]
|
53
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"5ySzHkTjBcNQLnC1JC0mcv", "type"=>"Entry", "createdAt"=>"2019-03-07T12:31:04.377Z", "updatedAt"=>"2019-03-26T15:25:47.145Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>24, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbAccordion"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"testcvxc678678asdasdasdasda", "title"=>"test", "accordionElements"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"7Jvuq8Wpi92pgEYGAza2U0"}}]}}
|
54
|
-
get_each_element input keyis id and item is {"id"=>"testcvxc678678asdasdasdasda", "title"=>"test", "accordionElements"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"7Jvuq8Wpi92pgEYGAza2U0"}}]}
|
55
|
-
get_each_element ids are []
|
56
|
-
get_each_element input keyis title and item is {"id"=>"testcvxc678678asdasdasdasda", "title"=>"test", "accordionElements"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"7Jvuq8Wpi92pgEYGAza2U0"}}]}
|
57
|
-
get_each_element ids are []
|
58
|
-
get_each_element input keyis accordionElements and item is {"id"=>"testcvxc678678asdasdasdasda", "title"=>"test", "accordionElements"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"7Jvuq8Wpi92pgEYGAza2U0"}}]}
|
59
|
-
get_each_element ids are ["7Jvuq8Wpi92pgEYGAza2U0"]
|
60
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"677nxK1q9TsShcjo59rReW", "type"=>"Entry", "createdAt"=>"2019-03-20T14:01:51.675Z", "updatedAt"=>"2019-03-26T15:26:00.730Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbMarketingSquares"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"Marketing Squareasasdasasas", "marketingSquares"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2LtRtj4VZm1f2Bk2n070t7"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"21HhXerMofDpTOEyQWyeUP"}}]}}
|
61
|
-
get_each_element input keyis id and item is {"id"=>"Marketing Squareasasdasasas", "marketingSquares"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2LtRtj4VZm1f2Bk2n070t7"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"21HhXerMofDpTOEyQWyeUP"}}]}
|
62
|
-
get_each_element ids are []
|
63
|
-
get_each_element input keyis marketingSquares and item is {"id"=>"Marketing Squareasasdasasas", "marketingSquares"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2LtRtj4VZm1f2Bk2n070t7"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"21HhXerMofDpTOEyQWyeUP"}}]}
|
64
|
-
get_each_element ids are ["2LtRtj4VZm1f2Bk2n070t7", "21HhXerMofDpTOEyQWyeUP"]
|
65
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"69ajqfdJkiriihE85uIOV0", "type"=>"Entry", "createdAt"=>"2019-03-20T14:02:01.332Z", "updatedAt"=>"2019-03-26T15:26:28.649Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbFluidGrid"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"fgrid item zxc xzcsaas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5O9P5cJUCDdfmQPRiESi7Y"}}]}}
|
66
|
-
get_each_element input keyis id and item is {"id"=>"fgrid item zxc xzcsaas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5O9P5cJUCDdfmQPRiESi7Y"}}]}
|
67
|
-
get_each_element ids are []
|
68
|
-
get_each_element input keyis items and item is {"id"=>"fgrid item zxc xzcsaas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"5O9P5cJUCDdfmQPRiESi7Y"}}]}
|
69
|
-
get_each_element ids are ["5O9P5cJUCDdfmQPRiESi7Y"]
|
70
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"7iFp6EA4kHN4UP0bVAei4x", "type"=>"Entry", "createdAt"=>"2019-03-26T10:36:06.004Z", "updatedAt"=>"2019-03-26T15:26:46.138Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>7, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbArticle"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"xzcxzzxczxcasd"}}
|
71
|
-
get_each_element input keyis id and item is {"id"=>"xzcxzzxczxcasd"}
|
72
|
-
get_each_element ids are []
|
73
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"9zvOF3z0Os22LoaWRyWD5", "type"=>"Entry", "createdAt"=>"2019-03-20T14:01:56.230Z", "updatedAt"=>"2019-03-26T15:26:42.184Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>16, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbForm"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"zxcForrm2assa", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"Vja3okEgt4rYxA87MsXrN"}}]}}
|
74
|
-
get_each_element input keyis id and item is {"id"=>"zxcForrm2assa", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"Vja3okEgt4rYxA87MsXrN"}}]}
|
75
|
-
get_each_element ids are []
|
76
|
-
get_each_element input keyis button and item is {"id"=>"zxcForrm2assa", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"Vja3okEgt4rYxA87MsXrN"}}]}
|
77
|
-
get_each_element ids are ["26sBafCtlG1DwIdGUDgKma"]
|
78
|
-
get_each_element input keyis fields and item is {"id"=>"zxcForrm2assa", "button"=>{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"26sBafCtlG1DwIdGUDgKma"}}, "fields"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"Vja3okEgt4rYxA87MsXrN"}}]}
|
79
|
-
get_each_element ids are ["Vja3okEgt4rYxA87MsXrN"]
|
80
|
-
get_each_field input is {"sys"=>{"space"=>{"sys"=>{"type"=>"Link", "linkType"=>"Space", "id"=>"qbra4qai2ti2"}}, "id"=>"bNDWbVYcm73OZjvDL1wWO", "type"=>"Entry", "createdAt"=>"2019-03-20T14:01:53.913Z", "updatedAt"=>"2019-03-26T15:26:07.625Z", "environment"=>{"sys"=>{"id"=>"master", "type"=>"Link", "linkType"=>"Environment"}}, "revision"=>8, "contentType"=>{"sys"=>{"type"=>"Link", "linkType"=>"ContentType", "id"=>"cbOfferCards"}}, "locale"=>"fi-FI"}, "fields"=>{"id"=>"Offercardszxczxcasasasas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2UjZOJlR5isMMSDKFbQn5n"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2UjZOJlR5isMMSDKFbQn5n"}}]}}
|
81
|
-
get_each_element input keyis id and item is {"id"=>"Offercardszxczxcasasasas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2UjZOJlR5isMMSDKFbQn5n"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2UjZOJlR5isMMSDKFbQn5n"}}]}
|
82
|
-
get_each_element ids are []
|
83
|
-
get_each_element input keyis items and item is {"id"=>"Offercardszxczxcasasasas", "items"=>[{"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2UjZOJlR5isMMSDKFbQn5n"}}, {"sys"=>{"type"=>"Link", "linkType"=>"Entry", "id"=>"2UjZOJlR5isMMSDKFbQn5n"}}]}
|
84
|
-
get_each_element ids are ["2UjZOJlR5isMMSDKFbQn5n", "2UjZOJlR5isMMSDKFbQn5n"]
|
data/3.json
DELETED
@@ -1,218 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"sys": {
|
3
|
-
"type": "Array"
|
4
|
-
},
|
5
|
-
"total": 1,
|
6
|
-
"skip": 0,
|
7
|
-
"limit": 100,
|
8
|
-
"items": [
|
9
|
-
{
|
10
|
-
"sys": {
|
11
|
-
"space": {
|
12
|
-
"sys": {
|
13
|
-
"type": "Link",
|
14
|
-
"linkType": "Space",
|
15
|
-
"id": "qbra4qai2ti2"
|
16
|
-
}
|
17
|
-
},
|
18
|
-
"id": "6ewCq2GrOEcEeeEqemWGgU",
|
19
|
-
"type": "Entry",
|
20
|
-
"createdAt": "2018-10-11T08:01:05.067Z",
|
21
|
-
"updatedAt": "2019-03-13T16:46:41.984Z",
|
22
|
-
"environment": {
|
23
|
-
"sys": {
|
24
|
-
"id": "master",
|
25
|
-
"type": "Link",
|
26
|
-
"linkType": "Environment"
|
27
|
-
}
|
28
|
-
},
|
29
|
-
"revision": 16,
|
30
|
-
"contentType": {
|
31
|
-
"sys": {
|
32
|
-
"type": "Link",
|
33
|
-
"linkType": "ContentType",
|
34
|
-
"id": "305TcOWowok6cYgoCIm8Ya"
|
35
|
-
}
|
36
|
-
},
|
37
|
-
"locale": "fi-FI"
|
38
|
-
},
|
39
|
-
"fields": {
|
40
|
-
"id": "Scheduling Testing",
|
41
|
-
"title": "Scheduling Testingsd",
|
42
|
-
"publishDate": "2019-03-13T16:38+02:00",
|
43
|
-
"contentBlocks": [
|
44
|
-
{
|
45
|
-
"sys": {
|
46
|
-
"type": "Link",
|
47
|
-
"linkType": "Entry",
|
48
|
-
"id": "5ySzHkTjBcNQLnC1JC0mcv"
|
49
|
-
}
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"sys": {
|
53
|
-
"type": "Link",
|
54
|
-
"linkType": "Entry",
|
55
|
-
"id": "2d5d3ekoU4EqG2YyGWIqgW"
|
56
|
-
}
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"sys": {
|
60
|
-
"type": "Link",
|
61
|
-
"linkType": "Entry",
|
62
|
-
"id": "5Pul1SC8Qw3awarTLUtnRN"
|
63
|
-
}
|
64
|
-
}
|
65
|
-
]
|
66
|
-
}
|
67
|
-
}
|
68
|
-
],
|
69
|
-
"includes": {
|
70
|
-
"Entry": [
|
71
|
-
{
|
72
|
-
"sys": {
|
73
|
-
"space": {
|
74
|
-
"sys": {
|
75
|
-
"type": "Link",
|
76
|
-
"linkType": "Space",
|
77
|
-
"id": "qbra4qai2ti2"
|
78
|
-
}
|
79
|
-
},
|
80
|
-
"id": "2d5d3ekoU4EqG2YyGWIqgW",
|
81
|
-
"type": "Entry",
|
82
|
-
"createdAt": "2018-10-11T08:01:05.167Z",
|
83
|
-
"updatedAt": "2019-03-13T16:34:47.794Z",
|
84
|
-
"environment": {
|
85
|
-
"sys": {
|
86
|
-
"id": "master",
|
87
|
-
"type": "Link",
|
88
|
-
"linkType": "Environment"
|
89
|
-
}
|
90
|
-
},
|
91
|
-
"revision": 6,
|
92
|
-
"contentType": {
|
93
|
-
"sys": {
|
94
|
-
"type": "Link",
|
95
|
-
"linkType": "ContentType",
|
96
|
-
"id": "cbForm"
|
97
|
-
}
|
98
|
-
},
|
99
|
-
"locale": "fi-FI"
|
100
|
-
},
|
101
|
-
"fields": {
|
102
|
-
"id": "Test Form 134 asd",
|
103
|
-
"title": "Test Form 2",
|
104
|
-
"button": {
|
105
|
-
"sys": {
|
106
|
-
"type": "Link",
|
107
|
-
"linkType": "Entry",
|
108
|
-
"id": "3RGJc25XBSsSMGkYGuA224"
|
109
|
-
}
|
110
|
-
},
|
111
|
-
"fields": [
|
112
|
-
{
|
113
|
-
"sys": {
|
114
|
-
"type": "Link",
|
115
|
-
"linkType": "Entry",
|
116
|
-
"id": "5LWmHVo5MWUQAyCo0IYAKe"
|
117
|
-
}
|
118
|
-
},
|
119
|
-
{
|
120
|
-
"sys": {
|
121
|
-
"type": "Link",
|
122
|
-
"linkType": "Entry",
|
123
|
-
"id": "4ZDGs4Zv7Gyko0om8csUKI"
|
124
|
-
}
|
125
|
-
}
|
126
|
-
]
|
127
|
-
}
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"sys": {
|
131
|
-
"space": {
|
132
|
-
"sys": {
|
133
|
-
"type": "Link",
|
134
|
-
"linkType": "Space",
|
135
|
-
"id": "qbra4qai2ti2"
|
136
|
-
}
|
137
|
-
},
|
138
|
-
"id": "5Pul1SC8Qw3awarTLUtnRN",
|
139
|
-
"type": "Entry",
|
140
|
-
"createdAt": "2019-03-07T13:21:05.311Z",
|
141
|
-
"updatedAt": "2019-03-13T16:34:49.609Z",
|
142
|
-
"environment": {
|
143
|
-
"sys": {
|
144
|
-
"id": "master",
|
145
|
-
"type": "Link",
|
146
|
-
"linkType": "Environment"
|
147
|
-
}
|
148
|
-
},
|
149
|
-
"revision": 4,
|
150
|
-
"contentType": {
|
151
|
-
"sys": {
|
152
|
-
"type": "Link",
|
153
|
-
"linkType": "ContentType",
|
154
|
-
"id": "cbMarketingSquares"
|
155
|
-
}
|
156
|
-
},
|
157
|
-
"locale": "fi-FI"
|
158
|
-
},
|
159
|
-
"fields": {
|
160
|
-
"id": "Marketing Squares Abhilash testasasasd",
|
161
|
-
"marketingSquares": [
|
162
|
-
{
|
163
|
-
"sys": {
|
164
|
-
"type": "Link",
|
165
|
-
"linkType": "Entry",
|
166
|
-
"id": "3vGzmRtzx3YLQvTdl1cA2r"
|
167
|
-
}
|
168
|
-
}
|
169
|
-
]
|
170
|
-
}
|
171
|
-
},
|
172
|
-
{
|
173
|
-
"sys": {
|
174
|
-
"space": {
|
175
|
-
"sys": {
|
176
|
-
"type": "Link",
|
177
|
-
"linkType": "Space",
|
178
|
-
"id": "qbra4qai2ti2"
|
179
|
-
}
|
180
|
-
},
|
181
|
-
"id": "5ySzHkTjBcNQLnC1JC0mcv",
|
182
|
-
"type": "Entry",
|
183
|
-
"createdAt": "2019-03-07T12:31:04.377Z",
|
184
|
-
"updatedAt": "2019-03-13T16:34:46.334Z",
|
185
|
-
"environment": {
|
186
|
-
"sys": {
|
187
|
-
"id": "master",
|
188
|
-
"type": "Link",
|
189
|
-
"linkType": "Environment"
|
190
|
-
}
|
191
|
-
},
|
192
|
-
"revision": 4,
|
193
|
-
"contentType": {
|
194
|
-
"sys": {
|
195
|
-
"type": "Link",
|
196
|
-
"linkType": "ContentType",
|
197
|
-
"id": "cbAccordion"
|
198
|
-
}
|
199
|
-
},
|
200
|
-
"locale": "fi-FI"
|
201
|
-
},
|
202
|
-
"fields": {
|
203
|
-
"id": "testcvxc678678asd",
|
204
|
-
"title": "test",
|
205
|
-
"accordionElements": [
|
206
|
-
{
|
207
|
-
"sys": {
|
208
|
-
"type": "Link",
|
209
|
-
"linkType": "Entry",
|
210
|
-
"id": "7Jvuq8Wpi92pgEYGAza2U0"
|
211
|
-
}
|
212
|
-
}
|
213
|
-
]
|
214
|
-
}
|
215
|
-
}
|
216
|
-
]
|
217
|
-
}
|
218
|
-
}
|