zapier-platform-cli 18.4.0 → 18.5.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.
Files changed (50) hide show
  1. package/package.json +4 -4
  2. package/src/app-templates.js +1 -0
  3. package/src/generators/index.js +3 -2
  4. package/src/generators/templates/README.template.md +9 -9
  5. package/src/generators/templates/line-items/README.md +16 -0
  6. package/src/generators/templates/line-items/creates/order.js +67 -0
  7. package/src/generators/templates/line-items/index.js +12 -0
  8. package/src/generators/templates/line-items/test/creates.test.js +30 -0
  9. package/src/oclif/ZapierBaseCommand.js +1 -1
  10. package/src/oclif/commands/analytics.js +1 -1
  11. package/src/oclif/commands/build.js +3 -3
  12. package/src/oclif/commands/cache/clear.js +5 -2
  13. package/src/oclif/commands/canary/create.js +7 -7
  14. package/src/oclif/commands/canary/delete.js +1 -1
  15. package/src/oclif/commands/canary/list.js +1 -1
  16. package/src/oclif/commands/convert.js +1 -1
  17. package/src/oclif/commands/delete/integration.js +1 -1
  18. package/src/oclif/commands/delete/version.js +1 -1
  19. package/src/oclif/commands/deprecate.js +4 -4
  20. package/src/oclif/commands/describe.js +3 -3
  21. package/src/oclif/commands/env/get.js +2 -2
  22. package/src/oclif/commands/env/set.js +3 -1
  23. package/src/oclif/commands/env/unset.js +1 -1
  24. package/src/oclif/commands/init.js +5 -5
  25. package/src/oclif/commands/integrations.js +2 -1
  26. package/src/oclif/commands/invoke/action.js +4 -2
  27. package/src/oclif/commands/invoke/auth/refresh.js +1 -1
  28. package/src/oclif/commands/invoke/index.js +9 -2
  29. package/src/oclif/commands/invoke/input-types.js +10 -2
  30. package/src/oclif/commands/invoke/prompts.js +238 -11
  31. package/src/oclif/commands/invoke/remote.js +41 -15
  32. package/src/oclif/commands/jobs.js +2 -2
  33. package/src/oclif/commands/legacy.js +1 -1
  34. package/src/oclif/commands/link.js +2 -2
  35. package/src/oclif/commands/logs.js +3 -3
  36. package/src/oclif/commands/migrate.js +10 -10
  37. package/src/oclif/commands/promote.js +5 -5
  38. package/src/oclif/commands/pull.js +1 -1
  39. package/src/oclif/commands/push.js +5 -2
  40. package/src/oclif/commands/register.js +8 -8
  41. package/src/oclif/commands/scaffold.js +4 -4
  42. package/src/oclif/commands/team/add.js +3 -3
  43. package/src/oclif/commands/team/get.js +2 -2
  44. package/src/oclif/commands/test.js +4 -4
  45. package/src/oclif/commands/upload.js +1 -1
  46. package/src/oclif/commands/users/add.js +3 -3
  47. package/src/oclif/commands/users/get.js +4 -4
  48. package/src/oclif/commands/users/links.js +1 -1
  49. package/src/oclif/commands/validate.js +5 -5
  50. package/src/oclif/commands/versions.js +1 -1
@@ -49,12 +49,12 @@ UsersAddCommand.flags = buildFlags({
49
49
  },
50
50
  });
51
51
  UsersAddCommand.examples = [
52
- 'zapier users:add bruce@wayne.com',
53
- 'zapier users:add alfred@wayne.com 1.2.3',
52
+ 'zapier-platform users:add bruce@wayne.com',
53
+ 'zapier-platform users:add alfred@wayne.com 1.2.3',
54
54
  ];
55
55
  UsersAddCommand.description = `Add a user to some or all versions of your integration.
56
56
 
57
- When this command is run, we'll send an email to the user inviting them to try your integration. You can track the status of that invite using the \`zapier users:get\` command.
57
+ When this command is run, we'll send an email to the user inviting them to try your integration. You can track the status of that invite using the \`zapier-platform users:get\` command.
58
58
 
59
59
  Invited users will be able to see your integration's name, logo, and description. They'll also be able to create Zaps using any available triggers and actions.`;
60
60
  UsersAddCommand.aliases = ['users:invite'];
@@ -33,9 +33,9 @@ class UsersListCommand extends ZapierBaseCommand {
33
33
 
34
34
  this.log(
35
35
  `\nTo invite users via a link, use the \`${cyan(
36
- 'zapier users:links',
36
+ 'zapier-platform users:links',
37
37
  )}\` command. To invite a specific user by email, use the \`${cyan(
38
- 'zapier users:add',
38
+ 'zapier-platform users:add',
39
39
  )}\` command.`,
40
40
  );
41
41
  }
@@ -45,9 +45,9 @@ UsersListCommand.flags = buildFlags({ opts: { format: true } });
45
45
  UsersListCommand.description = `Get a list of users who have been invited to your integration.
46
46
 
47
47
  Note that this list of users is NOT a comprehensive list of everyone who is using your integration. It only includes users who were invited directly by email (using the \`${cyan(
48
- 'zapier users:add',
48
+ 'zapier-platform users:add',
49
49
  )}\` command or the web UI). Users who joined by clicking links generated using the \`${cyan(
50
- 'zapier user:links',
50
+ 'zapier-platform user:links',
51
51
  )}\` command won't show up here.`;
52
52
  UsersListCommand.aliases = ['users:list'];
53
53
  UsersListCommand.skipValidInstallCheck = true;
@@ -33,7 +33,7 @@ class UsersLinksCommand extends ZapierBaseCommand {
33
33
  });
34
34
 
35
35
  this.log(
36
- '\nTo invite a specific user by email, use the `zapier users:add` command.',
36
+ '\nTo invite a specific user by email, use the `zapier-platform users:add` command.',
37
37
  );
38
38
  }
39
39
  }
@@ -144,13 +144,13 @@ ValidateCommand.flags = buildFlags({
144
144
  });
145
145
 
146
146
  ValidateCommand.examples = [
147
- 'zapier validate',
148
- 'zapier validate --without-style',
149
- 'zapier validate --skip-build',
150
- 'zapier validate --format json',
147
+ 'zapier-platform validate',
148
+ 'zapier-platform validate --without-style',
149
+ 'zapier-platform validate --skip-build',
150
+ 'zapier-platform validate --format json',
151
151
  ];
152
152
  ValidateCommand.description = `Validate your integration.
153
153
 
154
- Run the standard validation routine powered by json-schema that checks your integration for any structural errors. This is the same routine that runs during \`zapier build\`, \`zapier upload\`, \`zapier push\` or even as a test in \`zapier test\`.`;
154
+ Run the standard validation routine powered by json-schema that checks your integration for any structural errors. This is the same routine that runs during \`zapier-platform build\`, \`zapier-platform upload\`, \`zapier-platform push\` or even as a test in \`zapier-platform test\`.`;
155
155
 
156
156
  module.exports = ValidateCommand;
@@ -31,7 +31,7 @@ class VersionsCommand extends BaseCommand {
31
31
  ['Updated at', 'last_changed'],
32
32
  ],
33
33
  emptyMessage:
34
- 'No versions to show. Try adding one with the `zapier push` command',
34
+ 'No versions to show. Try adding one with the `zapier-platform push` command',
35
35
  });
36
36
 
37
37
  if (versions.map((v) => v.user_count).filter((c) => c === null).length) {