datatruck 0.1.0 → 0.3.1
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/CHANGELOG.md +21 -0
- package/config.schema.json +154 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# datatruck
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`c3bb4c6`](https://github.com/swordev/datatruck/commit/c3bb4c609887c5525cf35487ea237750addb6e75)]:
|
|
8
|
+
- @datatruck/cli@0.3.1
|
|
9
|
+
|
|
10
|
+
## 0.3.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`d63fd25`](https://github.com/swordev/datatruck/commit/d63fd25ffa8d2e539d2125dfd6a3f55020086804), [`486ef4a`](https://github.com/swordev/datatruck/commit/486ef4add27ae1dbfd166b16c257522f43537ecd), [`d1b3ea9`](https://github.com/swordev/datatruck/commit/d1b3ea9c9540d30898c00490963523a4fbc68193), [`617dae2`](https://github.com/swordev/datatruck/commit/617dae2c8ed90e6e65e8109f03cfad0e64bd7c02)]:
|
|
15
|
+
- @datatruck/cli@0.3.0
|
|
16
|
+
|
|
17
|
+
## 0.2.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`e30ede3`](https://github.com/swordev/datatruck/commit/e30ede371bc7ab3fc1cd47758fdac7a28e8e2705), [`8539d28`](https://github.com/swordev/datatruck/commit/8539d285b2c51d700aa811cd772d573fa0d613eb), [`120460c`](https://github.com/swordev/datatruck/commit/120460c8824cef4184e43f571a4cc0798b899b66)]:
|
|
22
|
+
- @datatruck/cli@0.2.0
|
|
23
|
+
|
|
3
24
|
## 0.1.0
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/config.schema.json
CHANGED
|
@@ -261,7 +261,8 @@
|
|
|
261
261
|
"mariadb",
|
|
262
262
|
"mssql",
|
|
263
263
|
"mysql-dump",
|
|
264
|
-
"postgresql-dump"
|
|
264
|
+
"postgresql-dump",
|
|
265
|
+
"script"
|
|
265
266
|
]
|
|
266
267
|
},
|
|
267
268
|
"config": {}
|
|
@@ -361,6 +362,25 @@
|
|
|
361
362
|
}
|
|
362
363
|
},
|
|
363
364
|
"else": false
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"if": {
|
|
368
|
+
"type": "object",
|
|
369
|
+
"properties": {
|
|
370
|
+
"name": {
|
|
371
|
+
"const": "script"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"then": {
|
|
376
|
+
"type": "object",
|
|
377
|
+
"properties": {
|
|
378
|
+
"config": {
|
|
379
|
+
"$ref": "#/definitions/script-task"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"else": false
|
|
364
384
|
}
|
|
365
385
|
]
|
|
366
386
|
},
|
|
@@ -551,6 +571,36 @@
|
|
|
551
571
|
}
|
|
552
572
|
}
|
|
553
573
|
},
|
|
574
|
+
"script-task": {
|
|
575
|
+
"type": "object",
|
|
576
|
+
"additionalProperties": false,
|
|
577
|
+
"required": [
|
|
578
|
+
"backupSteps",
|
|
579
|
+
"restoreSteps"
|
|
580
|
+
],
|
|
581
|
+
"properties": {
|
|
582
|
+
"env": {
|
|
583
|
+
"type": "object",
|
|
584
|
+
"patternProperties": {
|
|
585
|
+
".+": {
|
|
586
|
+
"type": "string"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"backupSteps": {
|
|
591
|
+
"type": "array",
|
|
592
|
+
"items": {
|
|
593
|
+
"$ref": "#/definitions/script-task_step"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"restoreSteps": {
|
|
597
|
+
"type": "array",
|
|
598
|
+
"items": {
|
|
599
|
+
"$ref": "#/definitions/script-task_step"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
},
|
|
554
604
|
"sqldump-task": {
|
|
555
605
|
"type": "object",
|
|
556
606
|
"required": [
|
|
@@ -810,6 +860,109 @@
|
|
|
810
860
|
"else": false
|
|
811
861
|
}
|
|
812
862
|
]
|
|
863
|
+
},
|
|
864
|
+
"script-task_step": {
|
|
865
|
+
"type": "object",
|
|
866
|
+
"required": [
|
|
867
|
+
"type"
|
|
868
|
+
],
|
|
869
|
+
"properties": {
|
|
870
|
+
"type": {
|
|
871
|
+
"enum": [
|
|
872
|
+
"process",
|
|
873
|
+
"node"
|
|
874
|
+
]
|
|
875
|
+
},
|
|
876
|
+
"config": {}
|
|
877
|
+
},
|
|
878
|
+
"anyOf": [
|
|
879
|
+
{
|
|
880
|
+
"if": {
|
|
881
|
+
"type": "object",
|
|
882
|
+
"properties": {
|
|
883
|
+
"type": {
|
|
884
|
+
"const": "process"
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
"then": {
|
|
889
|
+
"type": "object",
|
|
890
|
+
"properties": {
|
|
891
|
+
"config": {
|
|
892
|
+
"$ref": "#/definitions/script-task_processStepConfig"
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"else": false
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"if": {
|
|
900
|
+
"type": "object",
|
|
901
|
+
"properties": {
|
|
902
|
+
"type": {
|
|
903
|
+
"const": "node"
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"then": {
|
|
908
|
+
"type": "object",
|
|
909
|
+
"properties": {
|
|
910
|
+
"config": {
|
|
911
|
+
"$ref": "#/definitions/script-task_nodeStepConfig"
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"else": false
|
|
916
|
+
}
|
|
917
|
+
]
|
|
918
|
+
},
|
|
919
|
+
"script-task_processStepConfig": {
|
|
920
|
+
"type": "object",
|
|
921
|
+
"required": [
|
|
922
|
+
"command"
|
|
923
|
+
],
|
|
924
|
+
"properties": {
|
|
925
|
+
"command": {
|
|
926
|
+
"type": "string"
|
|
927
|
+
},
|
|
928
|
+
"env": {
|
|
929
|
+
"type": "object",
|
|
930
|
+
"patternProperties": {
|
|
931
|
+
".+": {
|
|
932
|
+
"type": "string"
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"args": {
|
|
937
|
+
"$ref": "#/definitions/stringlist-util"
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"script-task_nodeStepConfig": {
|
|
942
|
+
"type": "object",
|
|
943
|
+
"required": [
|
|
944
|
+
"code"
|
|
945
|
+
],
|
|
946
|
+
"properties": {
|
|
947
|
+
"code": {
|
|
948
|
+
"anyOf": [
|
|
949
|
+
{
|
|
950
|
+
"type": "string"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"$ref": "#/definitions/stringlist-util"
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
"env": {
|
|
958
|
+
"type": "object",
|
|
959
|
+
"patternProperties": {
|
|
960
|
+
".+": {
|
|
961
|
+
"type": "string"
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
813
966
|
}
|
|
814
967
|
},
|
|
815
968
|
"$ref": "#/definitions/config"
|