@zapier/zapier-sdk-cli 0.60.0 → 0.61.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/CHANGELOG.md +16 -0
- package/README.md +2 -1
- package/dist/cli.cjs +514 -201
- package/dist/cli.mjs +515 -202
- package/dist/experimental.cjs +329 -195
- package/dist/experimental.d.mts +3 -3
- package/dist/experimental.d.ts +3 -3
- package/dist/experimental.mjs +329 -195
- package/dist/{sdk-SOLizjno.d.mts → extensions-DXyB9Vsr.d.mts} +11 -2
- package/dist/{sdk-SOLizjno.d.ts → extensions-DXyB9Vsr.d.ts} +11 -2
- package/dist/index.cjs +330 -196
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +330 -196
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zapier_zapier_sdk from '@zapier/zapier-sdk';
|
|
2
|
-
import { AppItem, Manifest, ResolvedCredentials, ApiClient, ZapierSdk } from '@zapier/zapier-sdk';
|
|
2
|
+
import { AppItem, Manifest, ResolvedCredentials, ApiClient, ZapierSdk, Plugin, PluginProvides } from '@zapier/zapier-sdk';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const BuildManifestSchema: z.ZodObject<{
|
|
@@ -551,4 +551,13 @@ type SignupPluginProvides = ReturnType<typeof signupPlugin>;
|
|
|
551
551
|
|
|
552
552
|
type ZapierSdkCli = ZapierSdk & BuildManifestPluginProvides & FeedbackPluginProvides & GenerateAppTypesPluginProvides & SignupPluginProvides;
|
|
553
553
|
|
|
554
|
-
|
|
554
|
+
/** A new-model plugin descriptor (from `defineMethod` / `definePlugin` /
|
|
555
|
+
* `defineResolver` etc.), identified by its `pluginType` discriminant. */
|
|
556
|
+
interface ModelPlugin {
|
|
557
|
+
readonly pluginType: string;
|
|
558
|
+
}
|
|
559
|
+
/** An extension is either a legacy function plugin or a new-model plugin
|
|
560
|
+
* descriptor; `addPlugin` accepts both. */
|
|
561
|
+
type Extension = Plugin<unknown, PluginProvides> | ModelPlugin;
|
|
562
|
+
|
|
563
|
+
export type { Extension as E, ZapierSdkCli as Z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zapier_zapier_sdk from '@zapier/zapier-sdk';
|
|
2
|
-
import { AppItem, Manifest, ResolvedCredentials, ApiClient, ZapierSdk } from '@zapier/zapier-sdk';
|
|
2
|
+
import { AppItem, Manifest, ResolvedCredentials, ApiClient, ZapierSdk, Plugin, PluginProvides } from '@zapier/zapier-sdk';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const BuildManifestSchema: z.ZodObject<{
|
|
@@ -551,4 +551,13 @@ type SignupPluginProvides = ReturnType<typeof signupPlugin>;
|
|
|
551
551
|
|
|
552
552
|
type ZapierSdkCli = ZapierSdk & BuildManifestPluginProvides & FeedbackPluginProvides & GenerateAppTypesPluginProvides & SignupPluginProvides;
|
|
553
553
|
|
|
554
|
-
|
|
554
|
+
/** A new-model plugin descriptor (from `defineMethod` / `definePlugin` /
|
|
555
|
+
* `defineResolver` etc.), identified by its `pluginType` discriminant. */
|
|
556
|
+
interface ModelPlugin {
|
|
557
|
+
readonly pluginType: string;
|
|
558
|
+
}
|
|
559
|
+
/** An extension is either a legacy function plugin or a new-model plugin
|
|
560
|
+
* descriptor; `addPlugin` accepts both. */
|
|
561
|
+
type Extension = Plugin<unknown, PluginProvides> | ModelPlugin;
|
|
562
|
+
|
|
563
|
+
export type { Extension as E, ZapierSdkCli as Z };
|