Skip to content

Commit c9526fe

Browse files
committed
do not lint example responses
1 parent 7bf48d6 commit c9526fe

10 files changed

Lines changed: 469 additions & 438 deletions

File tree

.eslintignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
.DS_Store
1+
.DS_Store
22
.idea
33
node_modules/
44
built/
55
package-lock.json
6+
package.json
7+
tests/unit/requests/
8+
tests/unit/responses/
Lines changed: 102 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,114 @@
11
{
2-
"event": "job.finished",
3-
"job": {
4-
"id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
2+
"event": "job.finished",
3+
"job": {
4+
"id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
5+
"status": "finished",
6+
"created_at": "2019-06-01T00:35:33+00:00",
7+
"started_at": "2019-06-01T00:35:33+00:00",
8+
"ended_at": "2019-06-01T00:35:33+00:00",
9+
"tasks": [
10+
{
11+
"id": "22b3d686-126b-4fe2-8238-a9781cd023d9",
12+
"name": "import-it",
13+
"job_id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
514
"status": "finished",
15+
"code": null,
16+
"message": null,
17+
"percent": 100,
18+
"operation": "import\/url",
19+
"payload": {
20+
"operation": "import\/url",
21+
"url": "http:\/\/invalid.url",
22+
"filename": "test.file"
23+
},
24+
"result": null,
625
"created_at": "2019-06-01T00:35:33+00:00",
726
"started_at": "2019-06-01T00:35:33+00:00",
827
"ended_at": "2019-06-01T00:35:33+00:00",
9-
"tasks": [
10-
{
11-
"id": "22b3d686-126b-4fe2-8238-a9781cd023d9",
12-
"name": "import-it",
13-
"job_id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
14-
"status": "finished",
15-
"code": null,
16-
"message": null,
17-
"percent": 100,
18-
"operation": "import/url",
19-
"payload": {
20-
"operation": "import/url",
21-
"url": "http://invalid.url",
22-
"filename": "test.file"
23-
},
24-
"result": null,
25-
"created_at": "2019-06-01T00:35:33+00:00",
26-
"started_at": "2019-06-01T00:35:33+00:00",
27-
"ended_at": "2019-06-01T00:35:33+00:00",
28-
"retry_of_task_id": null,
29-
"copy_of_task_id": null,
30-
"host_name": "jena",
31-
"storage": null,
32-
"depends_on_task_ids": [],
33-
"links": {
34-
"self": "https://api.cloudconvert.com/v2/tasks/22b3d686-126b-4fe2-8238-a9781cd023d9"
35-
}
36-
},
37-
{
38-
"id": "15281118-acc3-441f-970d-39a49457d9e5",
39-
"name": "convert-it",
40-
"job_id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
41-
"status": "finished",
42-
"code": null,
43-
"message": null,
44-
"percent": 100,
45-
"operation": "convert",
46-
"engine": null,
47-
"engine_version": null,
48-
"payload": {
49-
"operation": "convert",
50-
"input": ["import-it"],
51-
"output_format": "pdf"
52-
},
53-
"result": null,
54-
"created_at": "2019-06-01T00:35:33+00:00",
55-
"started_at": "2019-06-01T00:35:33+00:00",
56-
"ended_at": "2019-06-01T00:35:33+00:00",
57-
"retry_of_task_id": null,
58-
"copy_of_task_id": null,
59-
"host_name": null,
60-
"storage": null,
61-
"depends_on_task_ids": ["22b3d686-126b-4fe2-8238-a9781cd023d9"],
62-
"links": {
63-
"self": "https://api.cloudconvert.com/v2/tasks/15281118-acc3-441f-970d-39a49457d9e5"
64-
}
65-
},
28+
"retry_of_task_id": null,
29+
"copy_of_task_id": null,
30+
"host_name": "jena",
31+
"storage": null,
32+
"depends_on_task_ids": [],
33+
"links": {
34+
"self": "https:\/\/api.cloudconvert.com\/v2\/tasks\/22b3d686-126b-4fe2-8238-a9781cd023d9"
35+
}
36+
},
37+
{
38+
"id": "15281118-acc3-441f-970d-39a49457d9e5",
39+
"name": "convert-it",
40+
"job_id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
41+
"status": "finished",
42+
"code": null,
43+
"message": null,
44+
"percent": 100,
45+
"operation": "convert",
46+
"engine": null,
47+
"engine_version": null,
48+
"payload": {
49+
"operation": "convert",
50+
"input": [
51+
"import-it"
52+
],
53+
"output_format": "pdf"
54+
},
55+
"result": null,
56+
"created_at": "2019-06-01T00:35:33+00:00",
57+
"started_at": "2019-06-01T00:35:33+00:00",
58+
"ended_at": "2019-06-01T00:35:33+00:00",
59+
"retry_of_task_id": null,
60+
"copy_of_task_id": null,
61+
"host_name": null,
62+
"storage": null,
63+
"depends_on_task_ids": [
64+
"22b3d686-126b-4fe2-8238-a9781cd023d9"
65+
],
66+
"links": {
67+
"self": "https:\/\/api.cloudconvert.com\/v2\/tasks\/15281118-acc3-441f-970d-39a49457d9e5"
68+
}
69+
},
70+
{
71+
"id": "72dc4f5f-7ef0-4f46-9811-29589a541400",
72+
"name": "export-it",
73+
"job_id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
74+
"status": "finished",
75+
"code": null,
76+
"message": null,
77+
"percent": 100,
78+
"operation": "export/url",
79+
"engine": null,
80+
"engine_version": null,
81+
"payload": {
82+
"operation": "export/url",
83+
"input": [
84+
"convert-it"
85+
]
86+
},
87+
"result": {
88+
"files": [
6689
{
67-
"id": "72dc4f5f-7ef0-4f46-9811-29589a541400",
68-
"name": "export-it",
69-
"job_id": "c677ccf7-8876-4f48-bb96-0ab8e0d88cd7",
70-
"status": "finished",
71-
"code": null,
72-
"message": null,
73-
"percent": 100,
74-
"operation": "export/url",
75-
"engine": null,
76-
"engine_version": null,
77-
"payload": {
78-
"operation": "export/url",
79-
"input": ["convert-it"]
80-
},
81-
"result": {
82-
"files": [
83-
{
84-
"filename": "file.pdf",
85-
"url": "https://storage.cloudconvert.com/eed87242-577e-4e3e-8178-9edbe51975dd/file.pdf?temp_url_sig=79c2db4d884926bbcc5476d01b4922a19137aee9&temp_url_expires=1545962104"
86-
}
87-
]
88-
},
89-
"created_at": "2019-06-01T00:35:33+00:00",
90-
"started_at": "2019-06-01T00:35:33+00:00",
91-
"ended_at": "2019-06-01T00:35:33+00:00",
92-
"retry_of_task_id": null,
93-
"copy_of_task_id": null,
94-
"host_name": null,
95-
"storage": null,
96-
"depends_on_task_ids": ["15281118-acc3-441f-970d-39a49457d9e5"],
97-
"links": {
98-
"self": "https://api.cloudconvert.com/v2/tasks/72dc4f5f-7ef0-4f46-9811-29589a541400"
99-
}
90+
"filename": "file.pdf",
91+
"url": "https://storage.cloudconvert.com/eed87242-577e-4e3e-8178-9edbe51975dd/file.pdf?temp_url_sig=79c2db4d884926bbcc5476d01b4922a19137aee9&temp_url_expires=1545962104"
10092
}
93+
]
94+
},
95+
"created_at": "2019-06-01T00:35:33+00:00",
96+
"started_at": "2019-06-01T00:35:33+00:00",
97+
"ended_at": "2019-06-01T00:35:33+00:00",
98+
"retry_of_task_id": null,
99+
"copy_of_task_id": null,
100+
"host_name": null,
101+
"storage": null,
102+
"depends_on_task_ids": [
103+
"15281118-acc3-441f-970d-39a49457d9e5"
101104
],
102105
"links": {
103-
"self": "https://api.cloudconvert.com/v2/jobs/c677ccf7-8876-4f48-bb96-0ab8e0d88cd7"
106+
"self": "https:\/\/api.cloudconvert.com\/v2\/tasks\/72dc4f5f-7ef0-4f46-9811-29589a541400"
104107
}
108+
}
109+
],
110+
"links": {
111+
"self": "https:\/\/api.cloudconvert.com\/v2\/jobs\/c677ccf7-8876-4f48-bb96-0ab8e0d88cd7"
105112
}
113+
}
106114
}

0 commit comments

Comments
 (0)