@knocklabs/cli 1.1.2 → 1.2.2

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 (41) hide show
  1. package/README.md +297 -170
  2. package/dist/commands/audience/new.js +2 -2
  3. package/dist/commands/branch/rebase.js +65 -0
  4. package/dist/commands/commit/index.js +15 -11
  5. package/dist/commands/commit/list.js +2 -8
  6. package/dist/commands/guide/get.js +6 -0
  7. package/dist/commands/guide/list.js +6 -0
  8. package/dist/commands/guide/push.js +1 -0
  9. package/dist/commands/layout/push.js +1 -0
  10. package/dist/commands/message-type/push.js +1 -0
  11. package/dist/commands/partial/push.js +1 -0
  12. package/dist/commands/push.js +4 -0
  13. package/dist/commands/schema/pull.js +197 -0
  14. package/dist/commands/schema/push.js +203 -0
  15. package/dist/commands/source/get.js +180 -0
  16. package/dist/commands/source/list.js +96 -0
  17. package/dist/commands/translation/push.js +1 -0
  18. package/dist/commands/whoami.js +8 -2
  19. package/dist/commands/workflow/get.js +6 -0
  20. package/dist/commands/workflow/list.js +6 -0
  21. package/dist/commands/workflow/push.js +1 -0
  22. package/dist/commands/workflow/run.js +6 -0
  23. package/dist/help.js +74 -0
  24. package/dist/lib/api-v1.js +78 -1
  25. package/dist/lib/auth.js +3 -2
  26. package/dist/lib/helpers/flag.js +15 -0
  27. package/dist/lib/marshal/guide/helpers.js +11 -0
  28. package/dist/lib/marshal/schema/helpers.js +142 -0
  29. package/dist/lib/marshal/schema/index.js +21 -0
  30. package/dist/lib/marshal/schema/reader.js +177 -0
  31. package/dist/lib/marshal/schema/types.js +15 -0
  32. package/dist/lib/marshal/schema/writer.js +154 -0
  33. package/dist/lib/marshal/source/helpers.js +28 -0
  34. package/dist/lib/marshal/source/index.js +19 -0
  35. package/dist/lib/marshal/source/types.js +4 -0
  36. package/dist/lib/marshal/workflow/generator.js +11 -8
  37. package/dist/lib/marshal/workflow/helpers.js +10 -6
  38. package/dist/lib/resources.js +11 -0
  39. package/npm-shrinkwrap.json +10698 -0
  40. package/oclif.manifest.json +448 -11
  41. package/package.json +22 -15
@@ -9,6 +9,9 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
+ get ALLOW_EMPTY_RESOURCE_TYPES () {
13
+ return ALLOW_EMPTY_RESOURCE_TYPES;
14
+ },
12
15
  get ALL_RESOURCE_TYPES () {
13
16
  return ALL_RESOURCE_TYPES;
14
17
  },
@@ -16,6 +19,14 @@ _export(exports, {
16
19
  return RESOURCE_SUBDIRS;
17
20
  }
18
21
  });
22
+ const ALLOW_EMPTY_RESOURCE_TYPES = [
23
+ "partial",
24
+ "email_layout",
25
+ "workflow",
26
+ "message_type",
27
+ "guide",
28
+ "translation"
29
+ ];
19
30
  const ALL_RESOURCE_TYPES = [
20
31
  // Audiences can be referenced by workflows, so push them early
21
32
  "audience",