kalup 0.3.0 → 0.5.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.
- package/README.md +4 -4
- package/dist/{commands-T4j_GVBD.mjs → commands-D_Q8-jc5.mjs} +7123 -2131
- package/dist/commands.d.mts +1 -1
- package/dist/commands.mjs +1 -1
- package/dist/{context-C1tH5K0x.d.mts → context-0mrva_6H.d.mts} +84 -0
- package/dist/{host-CDDeLV5T.mjs → host-BkBYlh_7.mjs} +1 -1
- package/dist/host.d.mts +1 -1
- package/dist/host.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/schemas/ir-1.schema.json +681 -116
- package/dist/schemas/plan-1.schema.json +18 -0
- package/dist/schemas/state-1.schema.json +80 -18
- package/docs/apply.md +10 -5
- package/docs/config.md +64 -9
- package/docs/dictionary.md +3 -3
- package/docs/errors/E_ASSOCIATION_FIELD.md +21 -0
- package/docs/errors/E_ASSOCIATION_NAME.md +17 -0
- package/docs/errors/E_BLUEPRINT_REQUIRES.md +3 -3
- package/docs/errors/E_DUPLICATE_LABEL.md +24 -0
- package/docs/errors/E_MISSING_EXPORT.md +2 -2
- package/docs/errors/E_PIPELINE_FIELD.md +23 -0
- package/docs/errors/E_PIPELINE_ID.md +17 -0
- package/docs/errors/E_PIPELINE_STAGES.md +17 -0
- package/docs/errors/E_PLAN_DELETE.md +1 -1
- package/docs/errors/E_PLAN_INVALID.md +1 -1
- package/docs/errors/E_PLAN_RISK.md +1 -1
- package/docs/errors/E_PREVENT_DESTROY.md +1 -1
- package/docs/errors/E_TOMBSTONE_ADDRESS.md +3 -3
- package/docs/errors/E_TOMBSTONE_CONFLICT.md +1 -1
- package/docs/errors/E_UNKNOWN_OBJECT.md +1 -1
- package/docs/errors/E_UNSUPPORTED_FILE.md +3 -3
- package/docs/errors/E_WRITE_IN_READ_MODE.md +1 -1
- package/docs/errors/E_WRITE_NOT_ALLOWED.md +1 -1
- package/docs/errors/W_OBJECT_FIELD.md +25 -0
- package/docs/errors/W_OBJECT_PROPERTY.md +17 -0
- package/docs/plan.md +40 -8
- package/docs/pull.md +14 -7
- package/docs/rm.md +8 -5
- package/docs/snapshot.md +3 -3
- package/docs/targets.md +2 -2
- package/package.json +2 -2
|
@@ -6,42 +6,77 @@
|
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["irVersion", "project", "generator", "resources", "targets", "tombstones"],
|
|
8
8
|
"properties": {
|
|
9
|
-
"irVersion": {
|
|
10
|
-
|
|
9
|
+
"irVersion": {
|
|
10
|
+
"const": 1
|
|
11
|
+
},
|
|
12
|
+
"project": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
11
15
|
"generator": {
|
|
12
16
|
"type": "object",
|
|
13
17
|
"required": ["name", "version", "frontend"],
|
|
14
18
|
"properties": {
|
|
15
|
-
"name": {
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"version": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"frontend": {
|
|
26
|
+
"enum": ["ts", "portal"]
|
|
27
|
+
}
|
|
18
28
|
},
|
|
19
29
|
"additionalProperties": false
|
|
20
30
|
},
|
|
21
31
|
"resources": {
|
|
22
32
|
"type": "object",
|
|
23
|
-
"patternProperties": {
|
|
33
|
+
"patternProperties": {
|
|
34
|
+
"^[a-z]+:\\S+$": {
|
|
35
|
+
"$ref": "#/$defs/resource"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
24
38
|
"additionalProperties": false
|
|
25
39
|
},
|
|
26
40
|
"targets": {
|
|
27
41
|
"type": "object",
|
|
28
|
-
"additionalProperties": {
|
|
42
|
+
"additionalProperties": {
|
|
43
|
+
"$ref": "#/$defs/target"
|
|
44
|
+
}
|
|
29
45
|
},
|
|
30
46
|
"tombstones": {
|
|
31
47
|
"type": "object",
|
|
32
|
-
"patternProperties": {
|
|
48
|
+
"patternProperties": {
|
|
49
|
+
"^[a-z]+:\\S+$": {
|
|
50
|
+
"$ref": "#/$defs/tombstone"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
33
53
|
"additionalProperties": false
|
|
34
54
|
},
|
|
35
|
-
"observation": {
|
|
36
|
-
|
|
55
|
+
"observation": {
|
|
56
|
+
"$ref": "#/$defs/observation"
|
|
57
|
+
},
|
|
58
|
+
"x": {
|
|
59
|
+
"type": "object"
|
|
60
|
+
}
|
|
37
61
|
},
|
|
38
62
|
"allOf": [
|
|
39
63
|
{
|
|
40
64
|
"if": {
|
|
41
65
|
"required": ["generator"],
|
|
42
|
-
"properties": {
|
|
66
|
+
"properties": {
|
|
67
|
+
"generator": {
|
|
68
|
+
"required": ["frontend"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"frontend": {
|
|
71
|
+
"const": "portal"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
43
76
|
},
|
|
44
|
-
"then": {
|
|
77
|
+
"then": {
|
|
78
|
+
"required": ["observation"]
|
|
79
|
+
}
|
|
45
80
|
}
|
|
46
81
|
],
|
|
47
82
|
"$defs": {
|
|
@@ -54,45 +89,180 @@
|
|
|
54
89
|
"description": "A logical reference, allowed anywhere inside a definition where HubSpot wants an ID.",
|
|
55
90
|
"type": "object",
|
|
56
91
|
"required": ["$ref"],
|
|
57
|
-
"properties": {
|
|
92
|
+
"properties": {
|
|
93
|
+
"$ref": {
|
|
94
|
+
"$ref": "#/$defs/address"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
58
97
|
"additionalProperties": false
|
|
59
98
|
},
|
|
60
99
|
"resource": {
|
|
61
100
|
"type": "object",
|
|
62
101
|
"required": ["type", "managed"],
|
|
63
102
|
"properties": {
|
|
64
|
-
"type": {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
103
|
+
"type": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"managed": {
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
"definition": {
|
|
110
|
+
"type": "object"
|
|
111
|
+
},
|
|
112
|
+
"lookup": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"binding": {
|
|
119
|
+
"$ref": "#/$defs/binding"
|
|
120
|
+
},
|
|
121
|
+
"lifecycle": {
|
|
122
|
+
"$ref": "#/$defs/lifecycle"
|
|
123
|
+
},
|
|
124
|
+
"provenance": {
|
|
125
|
+
"$ref": "#/$defs/provenance"
|
|
126
|
+
},
|
|
127
|
+
"x": {
|
|
128
|
+
"type": "object"
|
|
129
|
+
}
|
|
72
130
|
},
|
|
73
131
|
"allOf": [
|
|
74
132
|
{
|
|
75
|
-
"if": {
|
|
76
|
-
|
|
133
|
+
"if": {
|
|
134
|
+
"required": ["managed"],
|
|
135
|
+
"properties": {
|
|
136
|
+
"managed": {
|
|
137
|
+
"const": true
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"then": {
|
|
142
|
+
"required": ["definition"]
|
|
143
|
+
}
|
|
77
144
|
},
|
|
78
145
|
{
|
|
79
|
-
"if": {
|
|
80
|
-
|
|
146
|
+
"if": {
|
|
147
|
+
"required": ["type"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"type": {
|
|
150
|
+
"const": "property"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"then": {
|
|
155
|
+
"properties": {
|
|
156
|
+
"definition": {
|
|
157
|
+
"$ref": "#/$defs/propertyFields"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
81
161
|
},
|
|
82
162
|
{
|
|
83
163
|
"if": {
|
|
84
164
|
"required": ["type", "managed"],
|
|
85
|
-
"properties": {
|
|
165
|
+
"properties": {
|
|
166
|
+
"type": {
|
|
167
|
+
"const": "property"
|
|
168
|
+
},
|
|
169
|
+
"managed": {
|
|
170
|
+
"const": true
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"then": {
|
|
175
|
+
"properties": {
|
|
176
|
+
"definition": {
|
|
177
|
+
"required": ["label", "group", "type", "fieldType"]
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"if": {
|
|
184
|
+
"required": ["type"],
|
|
185
|
+
"properties": {
|
|
186
|
+
"type": {
|
|
187
|
+
"const": "group"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
86
190
|
},
|
|
87
|
-
"then": {
|
|
191
|
+
"then": {
|
|
192
|
+
"properties": {
|
|
193
|
+
"definition": {
|
|
194
|
+
"$ref": "#/$defs/groupDefinition"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
88
198
|
},
|
|
89
199
|
{
|
|
90
|
-
"if": {
|
|
91
|
-
|
|
200
|
+
"if": {
|
|
201
|
+
"required": ["type"],
|
|
202
|
+
"properties": {
|
|
203
|
+
"type": {
|
|
204
|
+
"const": "object"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"then": {
|
|
209
|
+
"properties": {
|
|
210
|
+
"definition": {
|
|
211
|
+
"$ref": "#/$defs/objectDefinition"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
92
215
|
},
|
|
93
216
|
{
|
|
94
|
-
"if": {
|
|
95
|
-
|
|
217
|
+
"if": {
|
|
218
|
+
"required": ["type"],
|
|
219
|
+
"properties": {
|
|
220
|
+
"type": {
|
|
221
|
+
"const": "pipeline"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"then": {
|
|
226
|
+
"properties": {
|
|
227
|
+
"definition": {
|
|
228
|
+
"$ref": "#/$defs/pipelineDefinition"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"if": {
|
|
235
|
+
"required": ["type"],
|
|
236
|
+
"properties": {
|
|
237
|
+
"type": {
|
|
238
|
+
"const": "stage"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"then": {
|
|
243
|
+
"properties": {
|
|
244
|
+
"definition": {
|
|
245
|
+
"$ref": "#/$defs/stageDefinition"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"if": {
|
|
252
|
+
"required": ["type"],
|
|
253
|
+
"properties": {
|
|
254
|
+
"type": {
|
|
255
|
+
"const": "association"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"then": {
|
|
260
|
+
"properties": {
|
|
261
|
+
"definition": {
|
|
262
|
+
"$ref": "#/$defs/associationDefinition"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
96
266
|
}
|
|
97
267
|
]
|
|
98
268
|
},
|
|
@@ -100,9 +270,15 @@
|
|
|
100
270
|
"description": "A property definition in HubSpot terms. A managed property needs label, group, type and fieldType; an unmanaged one may carry any subset, such as the options of a HubSpot-defined enumeration.",
|
|
101
271
|
"type": "object",
|
|
102
272
|
"properties": {
|
|
103
|
-
"label": {
|
|
104
|
-
|
|
105
|
-
|
|
273
|
+
"label": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
"group": {
|
|
277
|
+
"$ref": "#/$defs/ref"
|
|
278
|
+
},
|
|
279
|
+
"type": {
|
|
280
|
+
"enum": ["string", "number", "bool", "date", "datetime", "enumeration", "phone_number"]
|
|
281
|
+
},
|
|
106
282
|
"fieldType": {
|
|
107
283
|
"enum": [
|
|
108
284
|
"text",
|
|
@@ -119,17 +295,37 @@
|
|
|
119
295
|
"calculation_equation"
|
|
120
296
|
]
|
|
121
297
|
},
|
|
122
|
-
"description": {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
298
|
+
"description": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
},
|
|
301
|
+
"options": {
|
|
302
|
+
"type": "array",
|
|
303
|
+
"items": {
|
|
304
|
+
"$ref": "#/$defs/option"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"hasUniqueValue": {
|
|
308
|
+
"type": "boolean"
|
|
309
|
+
},
|
|
310
|
+
"formField": {
|
|
311
|
+
"type": "boolean"
|
|
312
|
+
},
|
|
313
|
+
"hidden": {
|
|
314
|
+
"type": "boolean"
|
|
315
|
+
},
|
|
316
|
+
"displayOrder": {
|
|
317
|
+
"type": "integer",
|
|
318
|
+
"minimum": -1
|
|
319
|
+
},
|
|
128
320
|
"numberDisplayHint": {
|
|
129
321
|
"enum": ["currency", "duration", "formatted", "percentage", "probability", "unformatted"]
|
|
130
322
|
},
|
|
131
|
-
"showCurrencySymbol": {
|
|
132
|
-
|
|
323
|
+
"showCurrencySymbol": {
|
|
324
|
+
"type": "boolean"
|
|
325
|
+
},
|
|
326
|
+
"currencyPropertyName": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
133
329
|
"textDisplayHint": {
|
|
134
330
|
"enum": [
|
|
135
331
|
"domain_name",
|
|
@@ -142,10 +338,18 @@
|
|
|
142
338
|
"unformatted_single_line"
|
|
143
339
|
]
|
|
144
340
|
},
|
|
145
|
-
"calculationFormula": {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
341
|
+
"calculationFormula": {
|
|
342
|
+
"type": "string"
|
|
343
|
+
},
|
|
344
|
+
"dataSensitivity": {
|
|
345
|
+
"enum": ["non_sensitive", "sensitive", "highly_sensitive"]
|
|
346
|
+
},
|
|
347
|
+
"externalOptions": {
|
|
348
|
+
"const": true
|
|
349
|
+
},
|
|
350
|
+
"referencedObjectType": {
|
|
351
|
+
"const": "OWNER"
|
|
352
|
+
}
|
|
149
353
|
},
|
|
150
354
|
"additionalProperties": false
|
|
151
355
|
},
|
|
@@ -154,17 +358,29 @@
|
|
|
154
358
|
"type": "object",
|
|
155
359
|
"required": ["value", "label"],
|
|
156
360
|
"properties": {
|
|
157
|
-
"value": {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
361
|
+
"value": {
|
|
362
|
+
"type": "string"
|
|
363
|
+
},
|
|
364
|
+
"label": {
|
|
365
|
+
"type": "string"
|
|
366
|
+
},
|
|
367
|
+
"hidden": {
|
|
368
|
+
"type": "boolean"
|
|
369
|
+
},
|
|
370
|
+
"description": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
}
|
|
161
373
|
},
|
|
162
374
|
"additionalProperties": false
|
|
163
375
|
},
|
|
164
376
|
"groupDefinition": {
|
|
165
377
|
"type": "object",
|
|
166
378
|
"required": ["label"],
|
|
167
|
-
"properties": {
|
|
379
|
+
"properties": {
|
|
380
|
+
"label": {
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
168
384
|
"additionalProperties": false
|
|
169
385
|
},
|
|
170
386
|
"objectDefinition": {
|
|
@@ -175,13 +391,96 @@
|
|
|
175
391
|
"labels": {
|
|
176
392
|
"type": "object",
|
|
177
393
|
"required": ["singular", "plural"],
|
|
178
|
-
"properties": {
|
|
394
|
+
"properties": {
|
|
395
|
+
"singular": {
|
|
396
|
+
"type": "string"
|
|
397
|
+
},
|
|
398
|
+
"plural": {
|
|
399
|
+
"type": "string"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
179
402
|
"additionalProperties": false
|
|
180
403
|
},
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"
|
|
404
|
+
"description": {
|
|
405
|
+
"type": "string"
|
|
406
|
+
},
|
|
407
|
+
"primaryDisplayProperty": {
|
|
408
|
+
"type": "string"
|
|
409
|
+
},
|
|
410
|
+
"requiredProperties": {
|
|
411
|
+
"type": "array",
|
|
412
|
+
"items": {
|
|
413
|
+
"type": "string"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"searchableProperties": {
|
|
417
|
+
"type": "array",
|
|
418
|
+
"items": {
|
|
419
|
+
"type": "string"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"secondaryDisplayProperties": {
|
|
423
|
+
"type": "array",
|
|
424
|
+
"items": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"additionalProperties": false
|
|
430
|
+
},
|
|
431
|
+
"pipelineDefinition": {
|
|
432
|
+
"description": "A pipeline. Its stages are resources of their own; stages lists their IDs in display order.",
|
|
433
|
+
"type": "object",
|
|
434
|
+
"required": ["label", "displayOrder", "stages"],
|
|
435
|
+
"properties": {
|
|
436
|
+
"label": {
|
|
437
|
+
"type": "string"
|
|
438
|
+
},
|
|
439
|
+
"displayOrder": {
|
|
440
|
+
"type": "integer",
|
|
441
|
+
"minimum": 0
|
|
442
|
+
},
|
|
443
|
+
"stages": {
|
|
444
|
+
"type": "array",
|
|
445
|
+
"items": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"additionalProperties": false
|
|
451
|
+
},
|
|
452
|
+
"stageDefinition": {
|
|
453
|
+
"description": "A pipeline stage. Its metadata field depends on the object: probability on deals, ticketState on tickets, state on custom objects.",
|
|
454
|
+
"type": "object",
|
|
455
|
+
"required": ["label"],
|
|
456
|
+
"properties": {
|
|
457
|
+
"label": {
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
"probability": {
|
|
461
|
+
"type": "number",
|
|
462
|
+
"minimum": 0,
|
|
463
|
+
"maximum": 1
|
|
464
|
+
},
|
|
465
|
+
"ticketState": {
|
|
466
|
+
"enum": ["OPEN", "CLOSED"]
|
|
467
|
+
},
|
|
468
|
+
"state": {
|
|
469
|
+
"enum": ["OPEN", "CLOSED"]
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"additionalProperties": false
|
|
473
|
+
},
|
|
474
|
+
"associationDefinition": {
|
|
475
|
+
"description": "An association label between two objects: label as the from object shows it, inverseLabel as the to object does. With neither, the plain association of a pair that has no HubSpot-defined one.",
|
|
476
|
+
"type": "object",
|
|
477
|
+
"properties": {
|
|
478
|
+
"label": {
|
|
479
|
+
"type": "string"
|
|
480
|
+
},
|
|
481
|
+
"inverseLabel": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
}
|
|
185
484
|
},
|
|
186
485
|
"additionalProperties": false
|
|
187
486
|
},
|
|
@@ -189,7 +488,9 @@
|
|
|
189
488
|
"description": "App terms, filled in by the loader. key and codec for properties, export for objects.",
|
|
190
489
|
"type": "object",
|
|
191
490
|
"properties": {
|
|
192
|
-
"key": {
|
|
491
|
+
"key": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
193
494
|
"codec": {
|
|
194
495
|
"enum": [
|
|
195
496
|
"string",
|
|
@@ -205,11 +506,24 @@
|
|
|
205
506
|
"owner"
|
|
206
507
|
]
|
|
207
508
|
},
|
|
208
|
-
"aliases": {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
509
|
+
"aliases": {
|
|
510
|
+
"type": "object",
|
|
511
|
+
"additionalProperties": {
|
|
512
|
+
"type": "string"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": {
|
|
516
|
+
"type": "boolean"
|
|
517
|
+
},
|
|
518
|
+
"readonly": {
|
|
519
|
+
"type": "boolean"
|
|
520
|
+
},
|
|
521
|
+
"strict": {
|
|
522
|
+
"type": "boolean"
|
|
523
|
+
},
|
|
524
|
+
"export": {
|
|
525
|
+
"type": "string"
|
|
526
|
+
}
|
|
213
527
|
},
|
|
214
528
|
"additionalProperties": false
|
|
215
529
|
},
|
|
@@ -217,10 +531,24 @@
|
|
|
217
531
|
"type": "object",
|
|
218
532
|
"required": ["options"],
|
|
219
533
|
"properties": {
|
|
220
|
-
"options": {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
"
|
|
534
|
+
"options": {
|
|
535
|
+
"enum": ["additive", "exact"]
|
|
536
|
+
},
|
|
537
|
+
"removedOptions": {
|
|
538
|
+
"type": "array",
|
|
539
|
+
"items": {
|
|
540
|
+
"type": "string"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"ignoreChanges": {
|
|
544
|
+
"type": "array",
|
|
545
|
+
"items": {
|
|
546
|
+
"type": "string"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"preventDestroy": {
|
|
550
|
+
"type": "boolean"
|
|
551
|
+
}
|
|
224
552
|
},
|
|
225
553
|
"additionalProperties": false
|
|
226
554
|
},
|
|
@@ -229,11 +557,21 @@
|
|
|
229
557
|
"type": "object",
|
|
230
558
|
"required": ["blueprint", "version", "sourceAddress", "prefix", "hash"],
|
|
231
559
|
"properties": {
|
|
232
|
-
"blueprint": {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
"
|
|
236
|
-
|
|
560
|
+
"blueprint": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
563
|
+
"version": {
|
|
564
|
+
"type": "string"
|
|
565
|
+
},
|
|
566
|
+
"sourceAddress": {
|
|
567
|
+
"$ref": "#/$defs/address"
|
|
568
|
+
},
|
|
569
|
+
"prefix": {
|
|
570
|
+
"type": "string"
|
|
571
|
+
},
|
|
572
|
+
"hash": {
|
|
573
|
+
"type": "string"
|
|
574
|
+
}
|
|
237
575
|
},
|
|
238
576
|
"additionalProperties": false
|
|
239
577
|
},
|
|
@@ -242,9 +580,16 @@
|
|
|
242
580
|
"type": "object",
|
|
243
581
|
"required": ["portalId"],
|
|
244
582
|
"properties": {
|
|
245
|
-
"portalId": {
|
|
246
|
-
|
|
247
|
-
|
|
583
|
+
"portalId": {
|
|
584
|
+
"type": "integer",
|
|
585
|
+
"minimum": 1
|
|
586
|
+
},
|
|
587
|
+
"protected": {
|
|
588
|
+
"type": "boolean"
|
|
589
|
+
},
|
|
590
|
+
"drift": {
|
|
591
|
+
"enum": ["hold", "overwrite"]
|
|
592
|
+
},
|
|
248
593
|
"adopt": {
|
|
249
594
|
"description": "What a plan does with a unit that has no base and differs. Default hold.",
|
|
250
595
|
"enum": ["hold", "overwrite"]
|
|
@@ -261,7 +606,11 @@
|
|
|
261
606
|
},
|
|
262
607
|
"overrides": {
|
|
263
608
|
"type": "object",
|
|
264
|
-
"patternProperties": {
|
|
609
|
+
"patternProperties": {
|
|
610
|
+
"^[a-z]+:\\S+$": {
|
|
611
|
+
"$ref": "#/$defs/override"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
265
614
|
"additionalProperties": false
|
|
266
615
|
}
|
|
267
616
|
},
|
|
@@ -270,10 +619,21 @@
|
|
|
270
619
|
"override": {
|
|
271
620
|
"type": "object",
|
|
272
621
|
"properties": {
|
|
273
|
-
"skip": {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
"
|
|
622
|
+
"skip": {
|
|
623
|
+
"const": true
|
|
624
|
+
},
|
|
625
|
+
"name": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"definition": {
|
|
629
|
+
"type": "object"
|
|
630
|
+
},
|
|
631
|
+
"lookup": {
|
|
632
|
+
"type": "object",
|
|
633
|
+
"additionalProperties": {
|
|
634
|
+
"type": "string"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
277
637
|
},
|
|
278
638
|
"additionalProperties": false
|
|
279
639
|
},
|
|
@@ -285,7 +645,15 @@
|
|
|
285
645
|
"target": {
|
|
286
646
|
"type": "object",
|
|
287
647
|
"required": ["name", "portalId"],
|
|
288
|
-
"properties": {
|
|
648
|
+
"properties": {
|
|
649
|
+
"name": {
|
|
650
|
+
"type": "string"
|
|
651
|
+
},
|
|
652
|
+
"portalId": {
|
|
653
|
+
"type": "integer",
|
|
654
|
+
"minimum": 1
|
|
655
|
+
}
|
|
656
|
+
},
|
|
289
657
|
"additionalProperties": false
|
|
290
658
|
},
|
|
291
659
|
"observedAt": {
|
|
@@ -293,7 +661,9 @@
|
|
|
293
661
|
"type": "string",
|
|
294
662
|
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?Z$"
|
|
295
663
|
},
|
|
296
|
-
"coverage": {
|
|
664
|
+
"coverage": {
|
|
665
|
+
"$ref": "#/$defs/coverage"
|
|
666
|
+
}
|
|
297
667
|
},
|
|
298
668
|
"additionalProperties": false
|
|
299
669
|
},
|
|
@@ -302,27 +672,70 @@
|
|
|
302
672
|
"type": "object",
|
|
303
673
|
"required": ["complete", "objects", "otherObjects", "notCaptured"],
|
|
304
674
|
"properties": {
|
|
305
|
-
"complete": {
|
|
675
|
+
"complete": {
|
|
676
|
+
"type": "boolean"
|
|
677
|
+
},
|
|
306
678
|
"objects": {
|
|
307
679
|
"description": "One entry per config object key.",
|
|
308
680
|
"type": "object",
|
|
309
|
-
"additionalProperties": {
|
|
681
|
+
"additionalProperties": {
|
|
682
|
+
"$ref": "#/$defs/objectCoverage"
|
|
683
|
+
}
|
|
310
684
|
},
|
|
311
685
|
"otherObjects": {
|
|
312
686
|
"description": "Custom objects in the portal that config does not name, or unknown when the schemas list was not read.",
|
|
313
687
|
"type": ["array", "string"],
|
|
314
|
-
"items": {
|
|
315
|
-
|
|
316
|
-
|
|
688
|
+
"items": {
|
|
689
|
+
"type": "string"
|
|
690
|
+
},
|
|
691
|
+
"if": {
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
"then": {
|
|
695
|
+
"const": "unknown"
|
|
696
|
+
}
|
|
317
697
|
},
|
|
318
698
|
"notCaptured": {
|
|
319
699
|
"description": "Documented response fields Kalup does not capture, per resource type.",
|
|
320
700
|
"type": "object",
|
|
321
701
|
"required": ["property", "group", "object"],
|
|
322
702
|
"properties": {
|
|
323
|
-
"property": {
|
|
324
|
-
|
|
325
|
-
|
|
703
|
+
"property": {
|
|
704
|
+
"type": "array",
|
|
705
|
+
"items": {
|
|
706
|
+
"type": "string"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"group": {
|
|
710
|
+
"type": "array",
|
|
711
|
+
"items": {
|
|
712
|
+
"type": "string"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"object": {
|
|
716
|
+
"type": "array",
|
|
717
|
+
"items": {
|
|
718
|
+
"type": "string"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"pipeline": {
|
|
722
|
+
"type": "array",
|
|
723
|
+
"items": {
|
|
724
|
+
"type": "string"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"stage": {
|
|
728
|
+
"type": "array",
|
|
729
|
+
"items": {
|
|
730
|
+
"type": "string"
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
"association": {
|
|
734
|
+
"type": "array",
|
|
735
|
+
"items": {
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
}
|
|
326
739
|
},
|
|
327
740
|
"additionalProperties": false
|
|
328
741
|
}
|
|
@@ -333,26 +746,48 @@
|
|
|
333
746
|
"type": "object",
|
|
334
747
|
"required": ["status"],
|
|
335
748
|
"properties": {
|
|
336
|
-
"status": {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
"
|
|
749
|
+
"status": {
|
|
750
|
+
"enum": ["read", "unreadable", "absent", "excluded"]
|
|
751
|
+
},
|
|
752
|
+
"missingScope": {
|
|
753
|
+
"description": "Unreadable only.",
|
|
754
|
+
"type": "string"
|
|
755
|
+
},
|
|
756
|
+
"issue": {
|
|
757
|
+
"description": "Unreadable only.",
|
|
758
|
+
"type": "string"
|
|
759
|
+
},
|
|
760
|
+
"objectTypeId": {
|
|
761
|
+
"description": "A custom object that exists.",
|
|
762
|
+
"type": "string"
|
|
763
|
+
},
|
|
340
764
|
"outOfScope": {
|
|
341
765
|
"description": "Present properties outside the pull scope that config does not name.",
|
|
342
766
|
"type": "array",
|
|
343
|
-
"items": {
|
|
767
|
+
"items": {
|
|
768
|
+
"type": "string"
|
|
769
|
+
}
|
|
344
770
|
},
|
|
345
771
|
"shadowed": {
|
|
346
772
|
"description": "Portal names equal to the local name of a renamed address, so not reported at it.",
|
|
347
773
|
"type": "array",
|
|
348
|
-
"items": {
|
|
774
|
+
"items": {
|
|
775
|
+
"type": "string"
|
|
776
|
+
}
|
|
349
777
|
},
|
|
350
778
|
"unaddressable": {
|
|
351
779
|
"description": "Present properties config names that are in a group whose name no address can hold, so not captured. What they hold is unknown.",
|
|
352
780
|
"type": "array",
|
|
353
|
-
"items": {
|
|
781
|
+
"items": {
|
|
782
|
+
"type": "string"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"unsupported": {
|
|
786
|
+
"type": "array",
|
|
787
|
+
"items": {
|
|
788
|
+
"$ref": "#/$defs/unsupportedProperty"
|
|
789
|
+
}
|
|
354
790
|
},
|
|
355
|
-
"unsupported": { "type": "array", "items": { "$ref": "#/$defs/unsupportedProperty" } },
|
|
356
791
|
"unsupportedSchema": {
|
|
357
792
|
"description": "A custom object HubSpot returned without a singular or plural label, its fields as returned. It is present but not a resource.",
|
|
358
793
|
"type": "object",
|
|
@@ -360,25 +795,95 @@
|
|
|
360
795
|
"properties": {
|
|
361
796
|
"labels": {
|
|
362
797
|
"type": "object",
|
|
363
|
-
"properties": {
|
|
798
|
+
"properties": {
|
|
799
|
+
"singular": {
|
|
800
|
+
"type": "string"
|
|
801
|
+
},
|
|
802
|
+
"plural": {
|
|
803
|
+
"type": "string"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
364
806
|
"additionalProperties": false
|
|
365
807
|
},
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
"
|
|
808
|
+
"description": {
|
|
809
|
+
"type": "string"
|
|
810
|
+
},
|
|
811
|
+
"primaryDisplayProperty": {
|
|
812
|
+
"type": "string"
|
|
813
|
+
},
|
|
814
|
+
"requiredProperties": {
|
|
815
|
+
"type": "array",
|
|
816
|
+
"items": {
|
|
817
|
+
"type": "string"
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
"searchableProperties": {
|
|
821
|
+
"type": "array",
|
|
822
|
+
"items": {
|
|
823
|
+
"type": "string"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"secondaryDisplayProperties": {
|
|
827
|
+
"type": "array",
|
|
828
|
+
"items": {
|
|
829
|
+
"type": "string"
|
|
830
|
+
}
|
|
831
|
+
}
|
|
370
832
|
},
|
|
371
833
|
"additionalProperties": false
|
|
372
834
|
},
|
|
373
835
|
"excluded": {
|
|
374
836
|
"description": "Addresses a skip override leaves out.",
|
|
375
837
|
"type": "array",
|
|
376
|
-
"items": {
|
|
838
|
+
"items": {
|
|
839
|
+
"$ref": "#/$defs/address"
|
|
840
|
+
}
|
|
377
841
|
},
|
|
378
842
|
"renamed": {
|
|
379
843
|
"description": "Addresses a name override points at another portal name.",
|
|
380
844
|
"type": "object",
|
|
381
|
-
"patternProperties": {
|
|
845
|
+
"patternProperties": {
|
|
846
|
+
"^[a-z]+:\\S+$": {
|
|
847
|
+
"type": "string"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
"additionalProperties": false
|
|
851
|
+
},
|
|
852
|
+
"pipelines": {
|
|
853
|
+
"description": "Whether the object's pipelines list was read. Absent when its pipelines are not in scope.",
|
|
854
|
+
"type": "object",
|
|
855
|
+
"required": ["status"],
|
|
856
|
+
"properties": {
|
|
857
|
+
"status": {
|
|
858
|
+
"enum": ["read", "unreadable"]
|
|
859
|
+
},
|
|
860
|
+
"missingScope": {
|
|
861
|
+
"type": "string"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"additionalProperties": false
|
|
865
|
+
},
|
|
866
|
+
"associations": {
|
|
867
|
+
"description": "The associations of the pairs this object is in, pair by pair: per other object, whether the pair was read, and the user-defined types of this direction no name reached; and the HubSpot type IDs of each association addressed from this object. Absent when no pair with this object is in scope.",
|
|
868
|
+
"type": "object",
|
|
869
|
+
"required": ["with"],
|
|
870
|
+
"properties": {
|
|
871
|
+
"with": {
|
|
872
|
+
"type": "object",
|
|
873
|
+
"additionalProperties": {
|
|
874
|
+
"$ref": "#/$defs/pairCoverage"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"typeIds": {
|
|
878
|
+
"type": "object",
|
|
879
|
+
"additionalProperties": {
|
|
880
|
+
"type": "array",
|
|
881
|
+
"items": {
|
|
882
|
+
"type": "integer"
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
382
887
|
"additionalProperties": false
|
|
383
888
|
}
|
|
384
889
|
},
|
|
@@ -389,16 +894,39 @@
|
|
|
389
894
|
"type": "object",
|
|
390
895
|
"required": ["name", "type", "fieldType", "label", "group", "hubspotDefined"],
|
|
391
896
|
"properties": {
|
|
392
|
-
"name": {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
"
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
"
|
|
897
|
+
"name": {
|
|
898
|
+
"type": "string"
|
|
899
|
+
},
|
|
900
|
+
"type": {
|
|
901
|
+
"type": "string"
|
|
902
|
+
},
|
|
903
|
+
"fieldType": {
|
|
904
|
+
"type": "string"
|
|
905
|
+
},
|
|
906
|
+
"label": {
|
|
907
|
+
"type": "string"
|
|
908
|
+
},
|
|
909
|
+
"group": {
|
|
910
|
+
"$ref": "#/$defs/ref"
|
|
911
|
+
},
|
|
912
|
+
"description": {
|
|
913
|
+
"type": "string"
|
|
914
|
+
},
|
|
915
|
+
"options": {
|
|
916
|
+
"type": "array",
|
|
917
|
+
"items": {
|
|
918
|
+
"$ref": "#/$defs/option"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"hubspotDefined": {
|
|
922
|
+
"type": "boolean"
|
|
923
|
+
},
|
|
924
|
+
"externalOptions": {
|
|
925
|
+
"type": "boolean"
|
|
926
|
+
},
|
|
927
|
+
"referencedObjectType": {
|
|
928
|
+
"type": "string"
|
|
929
|
+
}
|
|
402
930
|
},
|
|
403
931
|
"additionalProperties": false
|
|
404
932
|
},
|
|
@@ -407,8 +935,45 @@
|
|
|
407
935
|
"type": "object",
|
|
408
936
|
"required": ["action"],
|
|
409
937
|
"properties": {
|
|
410
|
-
"action": {
|
|
411
|
-
|
|
938
|
+
"action": {
|
|
939
|
+
"enum": ["destroy", "release"]
|
|
940
|
+
},
|
|
941
|
+
"reason": {
|
|
942
|
+
"type": "string"
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
"additionalProperties": false
|
|
946
|
+
},
|
|
947
|
+
"pairCoverage": {
|
|
948
|
+
"description": "One pair read with an object, from that object's side.",
|
|
949
|
+
"type": "object",
|
|
950
|
+
"required": ["status"],
|
|
951
|
+
"properties": {
|
|
952
|
+
"status": {
|
|
953
|
+
"enum": ["read", "unreadable"]
|
|
954
|
+
},
|
|
955
|
+
"missingScope": {
|
|
956
|
+
"type": "string"
|
|
957
|
+
},
|
|
958
|
+
"issue": {
|
|
959
|
+
"type": "string"
|
|
960
|
+
},
|
|
961
|
+
"unnamed": {
|
|
962
|
+
"type": "array",
|
|
963
|
+
"items": {
|
|
964
|
+
"type": "object",
|
|
965
|
+
"required": ["typeId"],
|
|
966
|
+
"properties": {
|
|
967
|
+
"typeId": {
|
|
968
|
+
"type": "integer"
|
|
969
|
+
},
|
|
970
|
+
"label": {
|
|
971
|
+
"type": "string"
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
"additionalProperties": false
|
|
975
|
+
}
|
|
976
|
+
}
|
|
412
977
|
},
|
|
413
978
|
"additionalProperties": false
|
|
414
979
|
}
|