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.
- package/package.json +4 -4
- package/src/app-templates.js +1 -0
- package/src/generators/index.js +3 -2
- package/src/generators/templates/README.template.md +9 -9
- package/src/generators/templates/line-items/README.md +16 -0
- package/src/generators/templates/line-items/creates/order.js +67 -0
- package/src/generators/templates/line-items/index.js +12 -0
- package/src/generators/templates/line-items/test/creates.test.js +30 -0
- package/src/oclif/ZapierBaseCommand.js +1 -1
- package/src/oclif/commands/analytics.js +1 -1
- package/src/oclif/commands/build.js +3 -3
- package/src/oclif/commands/cache/clear.js +5 -2
- package/src/oclif/commands/canary/create.js +7 -7
- package/src/oclif/commands/canary/delete.js +1 -1
- package/src/oclif/commands/canary/list.js +1 -1
- package/src/oclif/commands/convert.js +1 -1
- package/src/oclif/commands/delete/integration.js +1 -1
- package/src/oclif/commands/delete/version.js +1 -1
- package/src/oclif/commands/deprecate.js +4 -4
- package/src/oclif/commands/describe.js +3 -3
- package/src/oclif/commands/env/get.js +2 -2
- package/src/oclif/commands/env/set.js +3 -1
- package/src/oclif/commands/env/unset.js +1 -1
- package/src/oclif/commands/init.js +5 -5
- package/src/oclif/commands/integrations.js +2 -1
- package/src/oclif/commands/invoke/action.js +4 -2
- package/src/oclif/commands/invoke/auth/refresh.js +1 -1
- package/src/oclif/commands/invoke/index.js +9 -2
- package/src/oclif/commands/invoke/input-types.js +10 -2
- package/src/oclif/commands/invoke/prompts.js +238 -11
- package/src/oclif/commands/invoke/remote.js +41 -15
- package/src/oclif/commands/jobs.js +2 -2
- package/src/oclif/commands/legacy.js +1 -1
- package/src/oclif/commands/link.js +2 -2
- package/src/oclif/commands/logs.js +3 -3
- package/src/oclif/commands/migrate.js +10 -10
- package/src/oclif/commands/promote.js +5 -5
- package/src/oclif/commands/pull.js +1 -1
- package/src/oclif/commands/push.js +5 -2
- package/src/oclif/commands/register.js +8 -8
- package/src/oclif/commands/scaffold.js +4 -4
- package/src/oclif/commands/team/add.js +3 -3
- package/src/oclif/commands/team/get.js +2 -2
- package/src/oclif/commands/test.js +4 -4
- package/src/oclif/commands/upload.js +1 -1
- package/src/oclif/commands/users/add.js +3 -3
- package/src/oclif/commands/users/get.js +4 -4
- package/src/oclif/commands/users/links.js +1 -1
- package/src/oclif/commands/validate.js +5 -5
- 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;
|
|
@@ -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) {
|