taggor 0.6.0 → 0.8.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.
@@ -186,43 +186,301 @@
186
186
  "additionalProperties": false
187
187
  }
188
188
  },
189
- "sites": {
189
+ "pinned_sites": {
190
190
  "type": "array",
191
191
  "items": {
192
192
  "type": "object",
193
193
  "properties": {
194
- "id": {
194
+ "site_id": {
195
195
  "type": "string"
196
196
  },
197
- "site_key": {
197
+ "site_name": {
198
198
  "type": "string"
199
199
  },
200
- "name": {
200
+ "environment": {
201
+ "type": "string",
202
+ "enum": ["production", "staging"]
203
+ },
204
+ "pinned_version_id": {
201
205
  "type": "string"
202
206
  },
203
- "snippet": {
207
+ "pinned_semver": {
208
+ "type": ["string", "null"]
209
+ }
210
+ },
211
+ "required": [
212
+ "site_id",
213
+ "site_name",
214
+ "environment",
215
+ "pinned_version_id",
216
+ "pinned_semver"
217
+ ],
218
+ "additionalProperties": false
219
+ }
220
+ },
221
+ "suspended_site_props": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "object",
225
+ "properties": {
226
+ "site_id": {
227
+ "type": "string"
228
+ },
229
+ "site_name": {
230
+ "type": "string"
231
+ },
232
+ "environment": {
233
+ "type": "string",
234
+ "enum": ["production", "staging"]
235
+ },
236
+ "props": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "string"
240
+ }
241
+ }
242
+ },
243
+ "required": ["site_id", "site_name", "environment", "props"],
244
+ "additionalProperties": false
245
+ }
246
+ },
247
+ "attached_sites": {
248
+ "anyOf": [
249
+ {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "object",
253
+ "properties": {
254
+ "site_id": {
255
+ "type": "string"
256
+ },
257
+ "site_name": {
258
+ "type": "string"
259
+ },
260
+ "production": {
261
+ "type": "object",
262
+ "properties": {
263
+ "served_version_id": {
264
+ "type": ["string", "null"]
265
+ },
266
+ "served_semver": {
267
+ "type": ["string", "null"]
268
+ },
269
+ "source": {
270
+ "type": "string",
271
+ "enum": [
272
+ "pinned_version",
273
+ "production_channel",
274
+ "staging_channel",
275
+ "fallback_to_production_channel",
276
+ "none"
277
+ ]
278
+ },
279
+ "pinned_version_id": {
280
+ "type": ["string", "null"]
281
+ },
282
+ "suspended_props": {
283
+ "type": "array",
284
+ "items": {
285
+ "type": "string"
286
+ }
287
+ }
288
+ },
289
+ "required": [
290
+ "served_version_id",
291
+ "served_semver",
292
+ "source",
293
+ "pinned_version_id",
294
+ "suspended_props"
295
+ ],
296
+ "additionalProperties": false
297
+ },
298
+ "staging": {
299
+ "type": "object",
300
+ "properties": {
301
+ "served_version_id": {
302
+ "type": ["string", "null"]
303
+ },
304
+ "served_semver": {
305
+ "type": ["string", "null"]
306
+ },
307
+ "source": {
308
+ "type": "string",
309
+ "enum": [
310
+ "pinned_version",
311
+ "production_channel",
312
+ "staging_channel",
313
+ "fallback_to_production_channel",
314
+ "none"
315
+ ]
316
+ },
317
+ "pinned_version_id": {
318
+ "type": ["string", "null"]
319
+ },
320
+ "suspended_props": {
321
+ "type": "array",
322
+ "items": {
323
+ "type": "string"
324
+ }
325
+ }
326
+ },
327
+ "required": [
328
+ "served_version_id",
329
+ "served_semver",
330
+ "source",
331
+ "pinned_version_id",
332
+ "suspended_props"
333
+ ],
334
+ "additionalProperties": false
335
+ }
336
+ },
337
+ "required": ["site_id", "site_name", "production", "staging"],
338
+ "additionalProperties": false
339
+ }
340
+ },
341
+ {
342
+ "type": "null"
343
+ }
344
+ ]
345
+ },
346
+ "sites": {
347
+ "type": "array",
348
+ "items": {
349
+ "type": "object",
350
+ "properties": {
351
+ "id": {
204
352
  "type": "string"
205
353
  },
206
- "loader_url": {
354
+ "name": {
207
355
  "type": "string"
208
356
  },
209
357
  "attachment": {
210
358
  "type": "string",
211
359
  "enum": ["created", "unchanged"]
212
360
  },
213
- "attached_channel": {
214
- "type": "string",
215
- "enum": ["staging", "production"]
361
+ "snippet": {
362
+ "type": "object",
363
+ "properties": {
364
+ "production": {
365
+ "type": "object",
366
+ "properties": {
367
+ "site_key": {
368
+ "type": "string"
369
+ },
370
+ "html": {
371
+ "type": "string"
372
+ },
373
+ "src": {
374
+ "type": "string"
375
+ }
376
+ },
377
+ "required": ["site_key", "html", "src"],
378
+ "additionalProperties": false
379
+ },
380
+ "staging": {
381
+ "type": "object",
382
+ "properties": {
383
+ "site_key": {
384
+ "type": "string"
385
+ },
386
+ "html": {
387
+ "type": "string"
388
+ },
389
+ "src": {
390
+ "type": "string"
391
+ }
392
+ },
393
+ "required": ["site_key", "html", "src"],
394
+ "additionalProperties": false
395
+ }
396
+ },
397
+ "required": ["production", "staging"],
398
+ "additionalProperties": false
399
+ },
400
+ "production": {
401
+ "type": "object",
402
+ "properties": {
403
+ "served_version_id": {
404
+ "type": ["string", "null"]
405
+ },
406
+ "served_semver": {
407
+ "type": ["string", "null"]
408
+ },
409
+ "source": {
410
+ "type": "string",
411
+ "enum": [
412
+ "pinned_version",
413
+ "production_channel",
414
+ "staging_channel",
415
+ "fallback_to_production_channel",
416
+ "none"
417
+ ]
418
+ },
419
+ "pinned_version_id": {
420
+ "type": ["string", "null"]
421
+ },
422
+ "suspended_props": {
423
+ "type": "array",
424
+ "items": {
425
+ "type": "string"
426
+ }
427
+ }
428
+ },
429
+ "required": [
430
+ "served_version_id",
431
+ "served_semver",
432
+ "source",
433
+ "pinned_version_id",
434
+ "suspended_props"
435
+ ],
436
+ "additionalProperties": false
437
+ },
438
+ "staging": {
439
+ "type": "object",
440
+ "properties": {
441
+ "served_version_id": {
442
+ "type": ["string", "null"]
443
+ },
444
+ "served_semver": {
445
+ "type": ["string", "null"]
446
+ },
447
+ "source": {
448
+ "type": "string",
449
+ "enum": [
450
+ "pinned_version",
451
+ "production_channel",
452
+ "staging_channel",
453
+ "fallback_to_production_channel",
454
+ "none"
455
+ ]
456
+ },
457
+ "pinned_version_id": {
458
+ "type": ["string", "null"]
459
+ },
460
+ "suspended_props": {
461
+ "type": "array",
462
+ "items": {
463
+ "type": "string"
464
+ }
465
+ }
466
+ },
467
+ "required": [
468
+ "served_version_id",
469
+ "served_semver",
470
+ "source",
471
+ "pinned_version_id",
472
+ "suspended_props"
473
+ ],
474
+ "additionalProperties": false
216
475
  }
217
476
  },
218
477
  "required": [
219
478
  "id",
220
- "site_key",
221
479
  "name",
222
- "snippet",
223
- "loader_url",
224
480
  "attachment",
225
- "attached_channel"
481
+ "snippet",
482
+ "production",
483
+ "staging"
226
484
  ],
227
485
  "additionalProperties": false
228
486
  }
@@ -283,6 +541,9 @@
283
541
  "channel_changed",
284
542
  "package",
285
543
  "skipped",
544
+ "pinned_sites",
545
+ "suspended_site_props",
546
+ "attached_sites",
286
547
  "sites",
287
548
  "preview_url",
288
549
  "warnings"
@@ -68,7 +68,7 @@
68
68
  "required": ["version_id", "semver"],
69
69
  "additionalProperties": false
70
70
  },
71
- "site_props": {
71
+ "pinned_sites": {
72
72
  "type": "array",
73
73
  "items": {
74
74
  "type": "object",
@@ -76,37 +76,31 @@
76
76
  "site_id": {
77
77
  "type": "string"
78
78
  },
79
- "site_key": {
79
+ "site_name": {
80
80
  "type": "string"
81
81
  },
82
- "outcome": {
82
+ "environment": {
83
83
  "type": "string",
84
- "enum": ["held_back", "suspended"]
84
+ "enum": ["production", "staging"]
85
85
  },
86
- "paths": {
87
- "type": "array",
88
- "items": {
89
- "type": "string"
90
- }
91
- },
92
- "suspended": {
93
- "type": "array",
94
- "items": {
95
- "type": "string"
96
- }
86
+ "pinned_version_id": {
87
+ "type": "string"
97
88
  },
98
- "restored": {
99
- "type": "array",
100
- "items": {
101
- "type": "string"
102
- }
89
+ "pinned_semver": {
90
+ "type": ["string", "null"]
103
91
  }
104
92
  },
105
- "required": ["site_id", "site_key", "outcome", "paths", "suspended", "restored"],
93
+ "required": [
94
+ "site_id",
95
+ "site_name",
96
+ "environment",
97
+ "pinned_version_id",
98
+ "pinned_semver"
99
+ ],
106
100
  "additionalProperties": false
107
101
  }
108
102
  },
109
- "site_props_unsettled": {
103
+ "suspended_site_props": {
110
104
  "type": "array",
111
105
  "items": {
112
106
  "type": "object",
@@ -114,13 +108,122 @@
114
108
  "site_id": {
115
109
  "type": "string"
116
110
  },
117
- "site_key": {
111
+ "site_name": {
118
112
  "type": "string"
113
+ },
114
+ "environment": {
115
+ "type": "string",
116
+ "enum": ["production", "staging"]
117
+ },
118
+ "props": {
119
+ "type": "array",
120
+ "items": {
121
+ "type": "string"
122
+ }
119
123
  }
120
124
  },
121
- "required": ["site_id", "site_key"],
125
+ "required": ["site_id", "site_name", "environment", "props"],
122
126
  "additionalProperties": false
123
127
  }
128
+ },
129
+ "attached_sites": {
130
+ "anyOf": [
131
+ {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "object",
135
+ "properties": {
136
+ "site_id": {
137
+ "type": "string"
138
+ },
139
+ "site_name": {
140
+ "type": "string"
141
+ },
142
+ "production": {
143
+ "type": "object",
144
+ "properties": {
145
+ "served_version_id": {
146
+ "type": ["string", "null"]
147
+ },
148
+ "served_semver": {
149
+ "type": ["string", "null"]
150
+ },
151
+ "source": {
152
+ "type": "string",
153
+ "enum": [
154
+ "pinned_version",
155
+ "production_channel",
156
+ "staging_channel",
157
+ "fallback_to_production_channel",
158
+ "none"
159
+ ]
160
+ },
161
+ "pinned_version_id": {
162
+ "type": ["string", "null"]
163
+ },
164
+ "suspended_props": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string"
168
+ }
169
+ }
170
+ },
171
+ "required": [
172
+ "served_version_id",
173
+ "served_semver",
174
+ "source",
175
+ "pinned_version_id",
176
+ "suspended_props"
177
+ ],
178
+ "additionalProperties": false
179
+ },
180
+ "staging": {
181
+ "type": "object",
182
+ "properties": {
183
+ "served_version_id": {
184
+ "type": ["string", "null"]
185
+ },
186
+ "served_semver": {
187
+ "type": ["string", "null"]
188
+ },
189
+ "source": {
190
+ "type": "string",
191
+ "enum": [
192
+ "pinned_version",
193
+ "production_channel",
194
+ "staging_channel",
195
+ "fallback_to_production_channel",
196
+ "none"
197
+ ]
198
+ },
199
+ "pinned_version_id": {
200
+ "type": ["string", "null"]
201
+ },
202
+ "suspended_props": {
203
+ "type": "array",
204
+ "items": {
205
+ "type": "string"
206
+ }
207
+ }
208
+ },
209
+ "required": [
210
+ "served_version_id",
211
+ "served_semver",
212
+ "source",
213
+ "pinned_version_id",
214
+ "suspended_props"
215
+ ],
216
+ "additionalProperties": false
217
+ }
218
+ },
219
+ "required": ["site_id", "site_name", "production", "staging"],
220
+ "additionalProperties": false
221
+ }
222
+ },
223
+ {
224
+ "type": "null"
225
+ }
226
+ ]
124
227
  }
125
228
  },
126
229
  "required": [
@@ -132,8 +235,9 @@
132
235
  "changed",
133
236
  "from",
134
237
  "to",
135
- "site_props",
136
- "site_props_unsettled"
238
+ "pinned_sites",
239
+ "suspended_site_props",
240
+ "attached_sites"
137
241
  ],
138
242
  "additionalProperties": false
139
243
  }
@@ -21,17 +21,28 @@
21
21
  "name": {
22
22
  "type": "string"
23
23
  },
24
- "site_key": {
24
+ "status": {
25
25
  "type": "string"
26
26
  },
27
- "environment": {
28
- "type": "string",
29
- "enum": ["production", "staging"]
27
+ "production_site_key": {
28
+ "type": "string"
30
29
  },
31
- "status": {
30
+ "production_allowed_domains": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "staging_site_key": {
32
37
  "type": "string"
33
38
  },
34
- "allowed_domains": {
39
+ "staging_allowed_domains": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "staging_fixed_domains": {
35
46
  "type": "array",
36
47
  "items": {
37
48
  "type": "string"
@@ -40,24 +51,52 @@
40
51
  "snippet": {
41
52
  "type": "object",
42
53
  "properties": {
43
- "html": {
44
- "type": "string"
54
+ "production": {
55
+ "type": "object",
56
+ "properties": {
57
+ "site_key": {
58
+ "type": "string"
59
+ },
60
+ "html": {
61
+ "type": "string"
62
+ },
63
+ "src": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "required": ["site_key", "html", "src"],
68
+ "additionalProperties": false
45
69
  },
46
- "src": {
47
- "type": "string"
70
+ "staging": {
71
+ "type": "object",
72
+ "properties": {
73
+ "site_key": {
74
+ "type": "string"
75
+ },
76
+ "html": {
77
+ "type": "string"
78
+ },
79
+ "src": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ "required": ["site_key", "html", "src"],
84
+ "additionalProperties": false
48
85
  }
49
86
  },
50
- "required": ["html", "src"],
87
+ "required": ["production", "staging"],
51
88
  "additionalProperties": false
52
89
  }
53
90
  },
54
91
  "required": [
55
92
  "id",
56
93
  "name",
57
- "site_key",
58
- "environment",
59
94
  "status",
60
- "allowed_domains",
95
+ "production_site_key",
96
+ "production_allowed_domains",
97
+ "staging_site_key",
98
+ "staging_allowed_domains",
99
+ "staging_fixed_domains",
61
100
  "snippet"
62
101
  ],
63
102
  "additionalProperties": false