zapier-platform-cli 17.7.1 → 17.7.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.
package/oclif.manifest.json
CHANGED
|
@@ -1907,88 +1907,6 @@
|
|
|
1907
1907
|
"list.js"
|
|
1908
1908
|
]
|
|
1909
1909
|
},
|
|
1910
|
-
"delete:integration": {
|
|
1911
|
-
"aliases": [
|
|
1912
|
-
"delete:app"
|
|
1913
|
-
],
|
|
1914
|
-
"args": {},
|
|
1915
|
-
"description": "Delete your integration (including all versions).\n\nThis only works if there are no active users or Zaps on any version. If you only want to delete certain versions, use the `zapier delete:version` command instead. It's unlikely that you'll be able to run this on an app that you've pushed publicly, since there are usually still users.",
|
|
1916
|
-
"flags": {
|
|
1917
|
-
"debug": {
|
|
1918
|
-
"char": "d",
|
|
1919
|
-
"description": "Show extra debugging output.",
|
|
1920
|
-
"name": "debug",
|
|
1921
|
-
"allowNo": false,
|
|
1922
|
-
"type": "boolean"
|
|
1923
|
-
},
|
|
1924
|
-
"invokedFromAnotherCommand": {
|
|
1925
|
-
"hidden": true,
|
|
1926
|
-
"name": "invokedFromAnotherCommand",
|
|
1927
|
-
"allowNo": false,
|
|
1928
|
-
"type": "boolean"
|
|
1929
|
-
}
|
|
1930
|
-
},
|
|
1931
|
-
"hasDynamicHelp": false,
|
|
1932
|
-
"hiddenAliases": [],
|
|
1933
|
-
"id": "delete:integration",
|
|
1934
|
-
"pluginAlias": "zapier-platform-cli",
|
|
1935
|
-
"pluginName": "zapier-platform-cli",
|
|
1936
|
-
"pluginType": "core",
|
|
1937
|
-
"strict": true,
|
|
1938
|
-
"enableJsonFlag": false,
|
|
1939
|
-
"skipValidInstallCheck": true,
|
|
1940
|
-
"isESM": false,
|
|
1941
|
-
"relativePath": [
|
|
1942
|
-
"src",
|
|
1943
|
-
"oclif",
|
|
1944
|
-
"commands",
|
|
1945
|
-
"delete",
|
|
1946
|
-
"integration.js"
|
|
1947
|
-
]
|
|
1948
|
-
},
|
|
1949
|
-
"delete:version": {
|
|
1950
|
-
"aliases": [],
|
|
1951
|
-
"args": {
|
|
1952
|
-
"version": {
|
|
1953
|
-
"description": "Specify the version to delete. It must have no users or Zaps.",
|
|
1954
|
-
"name": "version",
|
|
1955
|
-
"required": true
|
|
1956
|
-
}
|
|
1957
|
-
},
|
|
1958
|
-
"description": "Delete a specific version of your integration.\n\nThis only works if there are no users or Zaps on that version. You will probably need to have run `zapier migrate` and `zapier deprecate` before this command will work.",
|
|
1959
|
-
"flags": {
|
|
1960
|
-
"debug": {
|
|
1961
|
-
"char": "d",
|
|
1962
|
-
"description": "Show extra debugging output.",
|
|
1963
|
-
"name": "debug",
|
|
1964
|
-
"allowNo": false,
|
|
1965
|
-
"type": "boolean"
|
|
1966
|
-
},
|
|
1967
|
-
"invokedFromAnotherCommand": {
|
|
1968
|
-
"hidden": true,
|
|
1969
|
-
"name": "invokedFromAnotherCommand",
|
|
1970
|
-
"allowNo": false,
|
|
1971
|
-
"type": "boolean"
|
|
1972
|
-
}
|
|
1973
|
-
},
|
|
1974
|
-
"hasDynamicHelp": false,
|
|
1975
|
-
"hiddenAliases": [],
|
|
1976
|
-
"id": "delete:version",
|
|
1977
|
-
"pluginAlias": "zapier-platform-cli",
|
|
1978
|
-
"pluginName": "zapier-platform-cli",
|
|
1979
|
-
"pluginType": "core",
|
|
1980
|
-
"strict": true,
|
|
1981
|
-
"enableJsonFlag": false,
|
|
1982
|
-
"skipValidInstallCheck": true,
|
|
1983
|
-
"isESM": false,
|
|
1984
|
-
"relativePath": [
|
|
1985
|
-
"src",
|
|
1986
|
-
"oclif",
|
|
1987
|
-
"commands",
|
|
1988
|
-
"delete",
|
|
1989
|
-
"version.js"
|
|
1990
|
-
]
|
|
1991
|
-
},
|
|
1992
1910
|
"env:get": {
|
|
1993
1911
|
"aliases": [],
|
|
1994
1912
|
"args": {
|
|
@@ -2165,6 +2083,88 @@
|
|
|
2165
2083
|
"unset.js"
|
|
2166
2084
|
]
|
|
2167
2085
|
},
|
|
2086
|
+
"delete:integration": {
|
|
2087
|
+
"aliases": [
|
|
2088
|
+
"delete:app"
|
|
2089
|
+
],
|
|
2090
|
+
"args": {},
|
|
2091
|
+
"description": "Delete your integration (including all versions).\n\nThis only works if there are no active users or Zaps on any version. If you only want to delete certain versions, use the `zapier delete:version` command instead. It's unlikely that you'll be able to run this on an app that you've pushed publicly, since there are usually still users.",
|
|
2092
|
+
"flags": {
|
|
2093
|
+
"debug": {
|
|
2094
|
+
"char": "d",
|
|
2095
|
+
"description": "Show extra debugging output.",
|
|
2096
|
+
"name": "debug",
|
|
2097
|
+
"allowNo": false,
|
|
2098
|
+
"type": "boolean"
|
|
2099
|
+
},
|
|
2100
|
+
"invokedFromAnotherCommand": {
|
|
2101
|
+
"hidden": true,
|
|
2102
|
+
"name": "invokedFromAnotherCommand",
|
|
2103
|
+
"allowNo": false,
|
|
2104
|
+
"type": "boolean"
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
"hasDynamicHelp": false,
|
|
2108
|
+
"hiddenAliases": [],
|
|
2109
|
+
"id": "delete:integration",
|
|
2110
|
+
"pluginAlias": "zapier-platform-cli",
|
|
2111
|
+
"pluginName": "zapier-platform-cli",
|
|
2112
|
+
"pluginType": "core",
|
|
2113
|
+
"strict": true,
|
|
2114
|
+
"enableJsonFlag": false,
|
|
2115
|
+
"skipValidInstallCheck": true,
|
|
2116
|
+
"isESM": false,
|
|
2117
|
+
"relativePath": [
|
|
2118
|
+
"src",
|
|
2119
|
+
"oclif",
|
|
2120
|
+
"commands",
|
|
2121
|
+
"delete",
|
|
2122
|
+
"integration.js"
|
|
2123
|
+
]
|
|
2124
|
+
},
|
|
2125
|
+
"delete:version": {
|
|
2126
|
+
"aliases": [],
|
|
2127
|
+
"args": {
|
|
2128
|
+
"version": {
|
|
2129
|
+
"description": "Specify the version to delete. It must have no users or Zaps.",
|
|
2130
|
+
"name": "version",
|
|
2131
|
+
"required": true
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
"description": "Delete a specific version of your integration.\n\nThis only works if there are no users or Zaps on that version. You will probably need to have run `zapier migrate` and `zapier deprecate` before this command will work.",
|
|
2135
|
+
"flags": {
|
|
2136
|
+
"debug": {
|
|
2137
|
+
"char": "d",
|
|
2138
|
+
"description": "Show extra debugging output.",
|
|
2139
|
+
"name": "debug",
|
|
2140
|
+
"allowNo": false,
|
|
2141
|
+
"type": "boolean"
|
|
2142
|
+
},
|
|
2143
|
+
"invokedFromAnotherCommand": {
|
|
2144
|
+
"hidden": true,
|
|
2145
|
+
"name": "invokedFromAnotherCommand",
|
|
2146
|
+
"allowNo": false,
|
|
2147
|
+
"type": "boolean"
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
"hasDynamicHelp": false,
|
|
2151
|
+
"hiddenAliases": [],
|
|
2152
|
+
"id": "delete:version",
|
|
2153
|
+
"pluginAlias": "zapier-platform-cli",
|
|
2154
|
+
"pluginName": "zapier-platform-cli",
|
|
2155
|
+
"pluginType": "core",
|
|
2156
|
+
"strict": true,
|
|
2157
|
+
"enableJsonFlag": false,
|
|
2158
|
+
"skipValidInstallCheck": true,
|
|
2159
|
+
"isESM": false,
|
|
2160
|
+
"relativePath": [
|
|
2161
|
+
"src",
|
|
2162
|
+
"oclif",
|
|
2163
|
+
"commands",
|
|
2164
|
+
"delete",
|
|
2165
|
+
"version.js"
|
|
2166
|
+
]
|
|
2167
|
+
},
|
|
2168
2168
|
"team:add": {
|
|
2169
2169
|
"aliases": [
|
|
2170
2170
|
"team:invite"
|
|
@@ -2544,5 +2544,5 @@
|
|
|
2544
2544
|
]
|
|
2545
2545
|
}
|
|
2546
2546
|
},
|
|
2547
|
-
"version": "17.7.
|
|
2547
|
+
"version": "17.7.2"
|
|
2548
2548
|
}
|
package/package.json
CHANGED
|
@@ -6,10 +6,15 @@ const colors = require('colors/safe');
|
|
|
6
6
|
const BuildCommand = require('./build');
|
|
7
7
|
|
|
8
8
|
const { buildAndOrUpload } = require('../../utils/build');
|
|
9
|
+
const { localAppCommand } = require('../../utils/local');
|
|
9
10
|
|
|
10
11
|
class PushCommand extends ZapierBaseCommand {
|
|
11
12
|
async perform() {
|
|
12
13
|
const skipNpmInstall = this.flags['skip-npm-install'];
|
|
14
|
+
const definition = await localAppCommand({ command: 'definition' });
|
|
15
|
+
const version = definition.version;
|
|
16
|
+
this.throwForInvalidVersion(version);
|
|
17
|
+
|
|
13
18
|
await buildAndOrUpload(
|
|
14
19
|
{ build: true, upload: true },
|
|
15
20
|
{
|
|
@@ -62,10 +62,18 @@ class ValidateCommand extends BaseCommand {
|
|
|
62
62
|
checkResult = await validateApp(rawDefinition);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
const success = !checkResult.errors.total_failures;
|
|
66
|
+
const message = 'Integration checks complete';
|
|
67
|
+
this.stopSpinner({ success, message });
|
|
68
|
+
|
|
69
|
+
this.log(` - ${checkResult.passes.length} checks passed`);
|
|
70
|
+
this.log(` - ${checkResult.errors.total_failures} checks failed`);
|
|
71
|
+
this.log(
|
|
72
|
+
` - ${checkResult.warnings.total_failures} checks with publishing warning`,
|
|
73
|
+
);
|
|
74
|
+
this.log(
|
|
75
|
+
` - ${checkResult.suggestions.total_failures} checks with general warning`,
|
|
76
|
+
);
|
|
69
77
|
|
|
70
78
|
const checkIssues = flattenCheckResult(checkResult);
|
|
71
79
|
|