legispro-cli 1.0.7 → 1.0.8

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.
Files changed (78) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +45 -17
  3. package/bin/dev.cmd +3 -3
  4. package/bin/dev.js +5 -0
  5. package/bin/run.cmd +3 -3
  6. package/bin/run.js +5 -0
  7. package/dist/commands/backup/create.js +13 -16
  8. package/dist/commands/backup/list.js +15 -18
  9. package/dist/commands/collection/add.d.ts +3 -3
  10. package/dist/commands/collection/add.js +31 -34
  11. package/dist/commands/collection/create.d.ts +5 -5
  12. package/dist/commands/collection/create.js +46 -49
  13. package/dist/commands/collection/delete.d.ts +1 -1
  14. package/dist/commands/collection/delete.js +20 -23
  15. package/dist/commands/collection/download.d.ts +2 -2
  16. package/dist/commands/collection/download.js +28 -31
  17. package/dist/commands/collection/get.d.ts +1 -1
  18. package/dist/commands/collection/get.js +21 -24
  19. package/dist/commands/collection/list.js +13 -16
  20. package/dist/commands/collection/perms.d.ts +3 -3
  21. package/dist/commands/collection/perms.js +29 -32
  22. package/dist/commands/collection/update.d.ts +7 -7
  23. package/dist/commands/collection/update.js +50 -54
  24. package/dist/commands/collection/upload.d.ts +3 -3
  25. package/dist/commands/collection/upload.js +39 -42
  26. package/dist/commands/config/get.d.ts +5 -1
  27. package/dist/commands/config/get.js +7 -10
  28. package/dist/commands/config/set.d.ts +5 -1
  29. package/dist/commands/config/set.js +41 -24
  30. package/dist/commands/db/init.js +18 -21
  31. package/dist/commands/db/memory.js +10 -12
  32. package/dist/commands/db/uptime.js +8 -10
  33. package/dist/commands/db/version.js +8 -10
  34. package/dist/commands/deploy/index.d.ts +10 -0
  35. package/dist/commands/deploy/index.js +126 -0
  36. package/dist/commands/document/copy.js +15 -18
  37. package/dist/commands/document/list.js +15 -18
  38. package/dist/commands/group/create.d.ts +5 -5
  39. package/dist/commands/group/create.js +36 -39
  40. package/dist/commands/group/delete.d.ts +1 -1
  41. package/dist/commands/group/delete.js +19 -22
  42. package/dist/commands/group/get.d.ts +1 -1
  43. package/dist/commands/group/get.js +20 -23
  44. package/dist/commands/group/list.js +8 -10
  45. package/dist/commands/group/update.d.ts +5 -5
  46. package/dist/commands/group/update.js +36 -39
  47. package/dist/commands/locks/add.js +16 -18
  48. package/dist/commands/locks/clear.js +11 -13
  49. package/dist/commands/services/health.js +11 -14
  50. package/dist/commands/user/create.d.ts +17 -17
  51. package/dist/commands/user/create.js +104 -107
  52. package/dist/commands/user/delete.d.ts +1 -1
  53. package/dist/commands/user/delete.js +24 -27
  54. package/dist/commands/user/get.d.ts +1 -1
  55. package/dist/commands/user/get.js +20 -23
  56. package/dist/commands/user/list.js +10 -13
  57. package/dist/commands/user/login.d.ts +2 -2
  58. package/dist/commands/user/login.js +30 -33
  59. package/dist/commands/user/update.d.ts +16 -16
  60. package/dist/commands/user/update.js +108 -111
  61. package/dist/index.js +1 -5
  62. package/dist/lib/fusiondb-client.d.ts +2 -1
  63. package/dist/lib/fusiondb-client.js +19 -18
  64. package/dist/lib/gh.d.ts +26 -0
  65. package/dist/lib/gh.js +37 -0
  66. package/dist/lib/rclone-client.js +12 -15
  67. package/dist/lib/shell.d.ts +24 -0
  68. package/dist/lib/shell.js +68 -0
  69. package/dist/lib/types.js +1 -2
  70. package/dist/lib/utils.d.ts +2 -2
  71. package/dist/lib/utils.js +4 -7
  72. package/dist/lib/xml-templates.js +61 -65
  73. package/oclif.manifest.json +958 -520
  74. package/package.json +102 -98
  75. package/bin/dev +0 -17
  76. package/bin/run +0 -5
  77. package/dist/commands/locks/list.d.ts +0 -7
  78. package/dist/commands/locks/list.js +0 -86
@@ -1,66 +1,62 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.XmlTemplates = void 0;
4
- class XmlTemplates {
5
- }
6
- exports.XmlTemplates = XmlTemplates;
7
- /**
8
- * Scratchpad XML template literal
9
- */
10
- XmlTemplates.scratchpad = `<?xml version="1.0" encoding="UTF-8"?>
11
- <!-- This document is datafile used by LegisPro for the scratchpad feature. It uses the akomaNtoso structure and elements. But, the document it is not meant to be valid against the Akoma Ntoso schema. -->
12
- <akomaNtoso xmlns="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:akn="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:orml="http://schemas.oregon.gov/orml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://docs.oasis-open.org/legaldocml/ns/akn/3.0 akomantoso30.proposed.xsd http://www.w3.org/1999/xhtml akn-table-module.xsd">
13
- <portion includedIn="#legispro">
14
- <meta>
15
- <identification source="#legispro">
16
- <FRBRWork>
17
- <FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
18
- <FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
19
- <FRBRdate name="fileCreated" date="2021-12-07" />
20
- <FRBRauthor href="#legispro" />
21
- <FRBRcountry value="US-OR" />
22
- <FRBRname value="Scratchpad" />
23
- </FRBRWork>
24
- <FRBRExpression>
25
- <FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
26
- <FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
27
- <FRBRdate name="fileCreated" date="2021-12-07" />
28
- <FRBRauthor href="#legispro" />
29
- <FRBRlanguage language="eng" />
30
- </FRBRExpression>
31
- <FRBRManifestation>
32
- <FRBRthis value="/akn/us-or/data/scratchpad/demo/!main.xml" />
33
- <FRBRuri value="/akn/us-or/data/scratchpad/demo/!main.akn" />
34
- <FRBRdate name="fileCreated" date="2021-12-07" />
35
- <FRBRauthor href="#OLA" />
36
- <FRBRformat value="application/akn+xml" />
37
- </FRBRManifestation>
38
- </identification>
39
- <references source="#legispro">
40
- <TLCProcess eId="legispro" href="/akn/xcential/taxonomy/process/legispro" showAs="LegisPro" />
41
- <TLCProcess eId="conversion" href="/akn/xcential/taxonomy/process/conversion" showAs="Conversion" />
42
- <TLCOrganization eId="OLA" href="http://www.oregonlegislature.gov/" showAs="OLA" />
43
- </references>
44
- </meta>
45
- <portionBody>
46
- <orml:scratchpadFragment>
47
- <?placeholder {Paste Content Here}?>
48
- </orml:scratchpadFragment>
49
- <orml:scratchpadFragment>
50
- <?placeholder {Paste Content Here}?>
51
- </orml:scratchpadFragment>
52
- <orml:scratchpadFragment>
53
- <?placeholder {Paste Content Here}?>
54
- </orml:scratchpadFragment>
55
- <orml:scratchpadFragment>
56
- <?placeholder {Paste Content Here}?>
57
- </orml:scratchpadFragment>
58
- <orml:scratchpadFragment>
59
- <?placeholder {Paste Content Here}?>
60
- </orml:scratchpadFragment>
61
- <orml:scratchpadFragment>
62
- <?placeholder {Paste Content Here}?>
63
- </orml:scratchpadFragment>
64
- </portionBody>
65
- </portion>
1
+ export class XmlTemplates {
2
+ /**
3
+ * Scratchpad XML template literal
4
+ */
5
+ static scratchpad = `<?xml version="1.0" encoding="UTF-8"?>
6
+ <!-- This document is datafile used by LegisPro for the scratchpad feature. It uses the akomaNtoso structure and elements. But, the document it is not meant to be valid against the Akoma Ntoso schema. -->
7
+ <akomaNtoso xmlns="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:akn="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:orml="http://schemas.oregon.gov/orml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://docs.oasis-open.org/legaldocml/ns/akn/3.0 akomantoso30.proposed.xsd http://www.w3.org/1999/xhtml akn-table-module.xsd">
8
+ <portion includedIn="#legispro">
9
+ <meta>
10
+ <identification source="#legispro">
11
+ <FRBRWork>
12
+ <FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
13
+ <FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
14
+ <FRBRdate name="fileCreated" date="2021-12-07" />
15
+ <FRBRauthor href="#legispro" />
16
+ <FRBRcountry value="US-OR" />
17
+ <FRBRname value="Scratchpad" />
18
+ </FRBRWork>
19
+ <FRBRExpression>
20
+ <FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
21
+ <FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
22
+ <FRBRdate name="fileCreated" date="2021-12-07" />
23
+ <FRBRauthor href="#legispro" />
24
+ <FRBRlanguage language="eng" />
25
+ </FRBRExpression>
26
+ <FRBRManifestation>
27
+ <FRBRthis value="/akn/us-or/data/scratchpad/demo/!main.xml" />
28
+ <FRBRuri value="/akn/us-or/data/scratchpad/demo/!main.akn" />
29
+ <FRBRdate name="fileCreated" date="2021-12-07" />
30
+ <FRBRauthor href="#OLA" />
31
+ <FRBRformat value="application/akn+xml" />
32
+ </FRBRManifestation>
33
+ </identification>
34
+ <references source="#legispro">
35
+ <TLCProcess eId="legispro" href="/akn/xcential/taxonomy/process/legispro" showAs="LegisPro" />
36
+ <TLCProcess eId="conversion" href="/akn/xcential/taxonomy/process/conversion" showAs="Conversion" />
37
+ <TLCOrganization eId="OLA" href="http://www.oregonlegislature.gov/" showAs="OLA" />
38
+ </references>
39
+ </meta>
40
+ <portionBody>
41
+ <orml:scratchpadFragment>
42
+ <?placeholder {Paste Content Here}?>
43
+ </orml:scratchpadFragment>
44
+ <orml:scratchpadFragment>
45
+ <?placeholder {Paste Content Here}?>
46
+ </orml:scratchpadFragment>
47
+ <orml:scratchpadFragment>
48
+ <?placeholder {Paste Content Here}?>
49
+ </orml:scratchpadFragment>
50
+ <orml:scratchpadFragment>
51
+ <?placeholder {Paste Content Here}?>
52
+ </orml:scratchpadFragment>
53
+ <orml:scratchpadFragment>
54
+ <?placeholder {Paste Content Here}?>
55
+ </orml:scratchpadFragment>
56
+ <orml:scratchpadFragment>
57
+ <?placeholder {Paste Content Here}?>
58
+ </orml:scratchpadFragment>
59
+ </portionBody>
60
+ </portion>
66
61
  </akomaNtoso>`;
62
+ }