n8n-nodes-base 3.0.1 → 3.2.0
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/dist/cjs/build.tsbuildinfo +1 -1
- package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.d.ts +10 -0
- package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.d.ts.map +1 -0
- package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.js +101 -0
- package/dist/credentials/MicrosoftWorkIqOAuth2Api.credentials.js.map +1 -0
- package/dist/credentials/NotionApi.credentials.d.ts.map +1 -1
- package/dist/credentials/NotionApi.credentials.js +3 -4
- package/dist/credentials/NotionApi.credentials.js.map +1 -1
- package/dist/credentials/OpenWeatherMapApi.credentials.d.ts.map +1 -1
- package/dist/credentials/OpenWeatherMapApi.credentials.js +8 -2
- package/dist/credentials/OpenWeatherMapApi.credentials.js.map +1 -1
- package/dist/credentials/PaddleApi.credentials.d.ts.map +1 -1
- package/dist/credentials/PaddleApi.credentials.js +7 -1
- package/dist/credentials/PaddleApi.credentials.js.map +1 -1
- package/dist/credentials/PerplexityApi.credentials.d.ts.map +1 -1
- package/dist/credentials/PerplexityApi.credentials.js +2 -6
- package/dist/credentials/PerplexityApi.credentials.js.map +1 -1
- package/dist/known/credentials.json +7 -0
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/index.schema.js +2 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/index.ts +3 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/operation_get.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_user/operation_get.ts +59 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/openWeatherMap/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/openWeatherMap/v11.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/openWeatherMap/v11.ts +68 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/index.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/index.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/index.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_create.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_create.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_get_all.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_get_all.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_update.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_coupon/operation_update.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/index.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_get_all.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_get_all.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_reschedule.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_payment/operation_reschedule.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/index.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get_all.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_plan/operation_get_all.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/index.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/operation_get_all.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_product/operation_get_all.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/index.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/index.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/operation_get_all.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/paddle/v1/resource_user/operation_get_all.ts +1 -1
- package/dist/nodes/Compression/Compression.node.js +1 -1
- package/dist/nodes/Compression/Compression.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +3 -2
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.js +1 -1
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.js.map +1 -1
- package/dist/nodes/Google/Docs/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Google/Docs/GenericFunctions.js +17 -3
- package/dist/nodes/Google/Docs/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +39 -11
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Gmail/Gmail.node.d.ts.map +1 -1
- package/dist/nodes/Google/Gmail/Gmail.node.js +1 -0
- package/dist/nodes/Google/Gmail/Gmail.node.js.map +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.d.ts +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.d.ts.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js +9 -0
- package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/SpreadSheet.resource.d.ts.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/SpreadSheet.resource.js +2 -0
- package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/SpreadSheet.resource.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/Description.d.ts +1 -1
- package/dist/nodes/HttpRequest/V3/Description.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/V3/Description.js +17 -7
- package/dist/nodes/HttpRequest/V3/Description.js.map +1 -1
- package/dist/nodes/Jenkins/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Jenkins/GenericFunctions.js +99 -9
- package/dist/nodes/Jenkins/GenericFunctions.js.map +1 -1
- package/dist/nodes/Linear/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Linear/GenericFunctions.js +3 -2
- package/dist/nodes/Linear/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Outlook/MicrosoftOutlookTrigger.node.js +3 -3
- package/dist/nodes/Microsoft/Outlook/MicrosoftOutlookTrigger.node.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +106 -112
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.d.ts +74 -6
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +367 -109
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.d.ts +10 -0
- package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.js +24 -4
- package/dist/nodes/Microsoft/Teams/v2/transport/forbiddenHints.js.map +1 -1
- package/dist/nodes/MongoDb/mongodb.svg +3 -1
- package/dist/nodes/N8n/N8n.node.d.ts.map +1 -1
- package/dist/nodes/N8n/N8n.node.js +7 -0
- package/dist/nodes/N8n/N8n.node.js.map +1 -1
- package/dist/nodes/N8n/UserDescription.d.ts +4 -0
- package/dist/nodes/N8n/UserDescription.d.ts.map +1 -0
- package/dist/nodes/N8n/UserDescription.js +86 -0
- package/dist/nodes/N8n/UserDescription.js.map +1 -0
- package/dist/nodes/Notion/shared/GenericFunctions.d.ts +3 -3
- package/dist/nodes/Notion/shared/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/OpenWeatherMap/OpenWeatherMap.node.d.ts.map +1 -1
- package/dist/nodes/OpenWeatherMap/OpenWeatherMap.node.js +12 -9
- package/dist/nodes/OpenWeatherMap/OpenWeatherMap.node.js.map +1 -1
- package/dist/nodes/Paddle/Paddle.node.d.ts.map +1 -1
- package/dist/nodes/Paddle/Paddle.node.js +9 -3
- package/dist/nodes/Paddle/Paddle.node.js.map +1 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.d.ts.map +1 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.js +23 -6
- package/dist/nodes/Postgres/v1/PostgresV1.node.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/Database.resource.d.ts +1 -1
- package/dist/nodes/Postgres/v2/actions/database/Database.resource.d.ts.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/Database.resource.js +6 -0
- package/dist/nodes/Postgres/v2/actions/database/Database.resource.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.d.ts.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js +3 -0
- package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/router.d.ts.map +1 -1
- package/dist/nodes/Postgres/v2/actions/router.js +15 -1
- package/dist/nodes/Postgres/v2/actions/router.js.map +1 -1
- package/dist/nodes/RabbitMQ/GenericFunctions.js +2 -2
- package/dist/nodes/RabbitMQ/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.js +1 -7
- package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/V2/SlackHitlWebhook.js +1 -1
- package/dist/nodes/Slack/V2/SlackHitlWebhook.js.map +1 -1
- package/dist/nodes/Snowflake/GenericFunctions.d.ts +3 -3
- package/dist/nodes/Snowflake/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Snowflake/GenericFunctions.js +12 -6
- package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.d.ts.map +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.js +4 -6
- package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
- package/dist/nodes/Splunk/v1/GenericFunctions.d.ts +2 -2
- package/dist/nodes/Splunk/v1/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Splunk/v1/GenericFunctions.js +10 -3
- package/dist/nodes/Splunk/v1/GenericFunctions.js.map +1 -1
- package/dist/nodes/Splunk/v1/SplunkV1.node.js +4 -4
- package/dist/nodes/Splunk/v1/SplunkV1.node.js.map +1 -1
- package/dist/nodes/Splunk/v2/actions/report/getAll.operation.js +1 -1
- package/dist/nodes/Splunk/v2/actions/report/getAll.operation.js.map +1 -1
- package/dist/nodes/Splunk/v2/actions/search/getAll.operation.js +1 -1
- package/dist/nodes/Splunk/v2/actions/search/getAll.operation.js.map +1 -1
- package/dist/nodes/Splunk/v2/actions/search/getResult.operation.js +1 -1
- package/dist/nodes/Splunk/v2/actions/search/getResult.operation.js.map +1 -1
- package/dist/nodes/Splunk/v2/actions/user/getAll.operation.d.ts +1 -1
- package/dist/nodes/Splunk/v2/actions/user/getAll.operation.d.ts.map +1 -1
- package/dist/nodes/Splunk/v2/actions/user/getAll.operation.js +2 -2
- package/dist/nodes/Splunk/v2/actions/user/getAll.operation.js.map +1 -1
- package/dist/nodes/Splunk/v2/helpers/utils.d.ts +2 -2
- package/dist/nodes/Splunk/v2/helpers/utils.d.ts.map +1 -1
- package/dist/nodes/Splunk/v2/helpers/utils.js +10 -3
- package/dist/nodes/Splunk/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Telegram/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Telegram/GenericFunctions.js +1 -5
- package/dist/nodes/Telegram/GenericFunctions.js.map +1 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js +4 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js.map +1 -1
- package/dist/nodes/Telegram/hitl/setup.d.ts.map +1 -1
- package/dist/nodes/Telegram/hitl/setup.js +7 -9
- package/dist/nodes/Telegram/hitl/setup.js.map +1 -1
- package/dist/nodes/Telegram/hitl/tokens.d.ts +13 -0
- package/dist/nodes/Telegram/hitl/tokens.d.ts.map +1 -1
- package/dist/nodes/Telegram/hitl/tokens.js +25 -2
- package/dist/nodes/Telegram/hitl/tokens.js.map +1 -1
- package/dist/nodes/Telegram/hitl/webhook.d.ts.map +1 -1
- package/dist/nodes/Telegram/hitl/webhook.js +4 -1
- package/dist/nodes/Telegram/hitl/webhook.js.map +1 -1
- package/dist/types/credentials.json +4 -3
- package/dist/types/nodes.json +12 -12
- package/package.json +23 -21
|
@@ -1,22 +1,90 @@
|
|
|
1
1
|
import type { IHookFunctions, IDataObject, IWebhookFunctions } from 'n8n-workflow';
|
|
2
2
|
import type { TeamResponse, ChannelResponse, SubscriptionResponse, LifecycleNotification } from './types';
|
|
3
3
|
export declare function generateClientState(): string;
|
|
4
|
+
/** One shape for every trigger log line: the prefix, the workflow and node, then the fields. */
|
|
5
|
+
export declare function logTrigger(this: IHookFunctions | IWebhookFunctions, level: 'debug' | 'warn', message: string, fields?: Record<string, unknown>): void;
|
|
4
6
|
export declare function isLiveSubscription(subscription: SubscriptionResponse): boolean;
|
|
5
7
|
/** The stored clientState. An empty string counts as none, as in `verifyWebhook`. */
|
|
6
8
|
export declare function getStoredSecret(webhookData: IDataObject): string | undefined;
|
|
7
|
-
/**
|
|
8
|
-
export declare function
|
|
9
|
+
/** The stored subscription ids, strings only. */
|
|
10
|
+
export declare function getStoredIds(webhookData: IDataObject): string[];
|
|
11
|
+
/**
|
|
12
|
+
* Deletes every id once, all in parallel, and returns the ids Graph refused to remove, in input
|
|
13
|
+
* order. Never throws: a 404 counts as done, an id that fails validation is warned only, and every
|
|
14
|
+
* other refusal is warned and returned, so the caller decides what it means.
|
|
15
|
+
*/
|
|
16
|
+
export declare function deleteSubscriptions(this: IHookFunctions | IWebhookFunctions, ids: Iterable<string>): Promise<string[]>;
|
|
9
17
|
export declare function fetchAllTeams(this: IHookFunctions | IWebhookFunctions): Promise<TeamResponse[]>;
|
|
10
18
|
export declare function fetchAllChannels(this: IHookFunctions | IWebhookFunctions, teamId: string): Promise<ChannelResponse[]>;
|
|
11
19
|
export declare function createSubscription(this: IHookFunctions | IWebhookFunctions, webhookUrl: string, resourcePath: string, clientState: string): Promise<SubscriptionResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates one subscription per resource in parallel. Every POST settles first, so the
|
|
22
|
+
* ids that landed are known before the cleanup core runs next. An error is returned as
|
|
23
|
+
* thrown (`ensureError` keeps the object), so a Graph 403 keeps its hint copy.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createSubscriptions(this: IHookFunctions | IWebhookFunctions, webhookUrl: string, resources: string[], clientState: string): Promise<{
|
|
26
|
+
ids: string[];
|
|
27
|
+
errors: Error[];
|
|
28
|
+
}>;
|
|
12
29
|
export declare function listOwnSubscriptions(this: IHookFunctions | IWebhookFunctions, webhookUrl: string | undefined): Promise<SubscriptionResponse[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Marks the workflow so that its next lifecycle batch lists and reconciles instead of only
|
|
32
|
+
* renewing, after a failed create, read or listing. Only a subscription that still delivers
|
|
33
|
+
* sends that batch: when every subscription of the workflow is gone, nothing reads the mark
|
|
34
|
+
* (ENT-537, ENT-545). Writes on change only: the static-data proxy marks every set and delete
|
|
35
|
+
* as a change, and each change is a database write.
|
|
36
|
+
*/
|
|
37
|
+
export declare function markPendingReconcile(webhookData: IDataObject, pending: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Applies the ownership rule to one own listing: one live subscription with the stored secret
|
|
40
|
+
* per required resource stays, the uncovered resources are created with the stored secret, and
|
|
41
|
+
* every other listed own subscription goes, except a stored one beside a keeper, which is
|
|
42
|
+
* forgotten, and everything on a held resource. Reads and writes
|
|
43
|
+
* `subscriptionIds` itself, so the trust decision and the write share one source. Returns the
|
|
44
|
+
* create errors, and whether the next lifecycle batch must reconcile again. Never throws.
|
|
45
|
+
*/
|
|
46
|
+
export declare function reconcileSubscriptions(this: IHookFunctions | IWebhookFunctions, input: {
|
|
47
|
+
webhookUrl: string;
|
|
48
|
+
clientState: string;
|
|
49
|
+
requiredResources: string[];
|
|
50
|
+
/** The own listing. A lifecycle batch merges in the usable PATCH answers of the request. */
|
|
51
|
+
subscriptions: SubscriptionResponse[];
|
|
52
|
+
/** Ids a PATCH in this request succeeded for: live, and preferred as keepers. */
|
|
53
|
+
renewed?: ReadonlySet<string>;
|
|
54
|
+
/** Ids Graph reported removed. */
|
|
55
|
+
gone?: ReadonlySet<string>;
|
|
56
|
+
/**
|
|
57
|
+
* A lifecycle batch leaves a resource with any unproven subscription as it is. Activation
|
|
58
|
+
* does that only for an unproven stored one and replaces an unproven leftover: a failed
|
|
59
|
+
* create there fails the activation, and core retries it.
|
|
60
|
+
*/
|
|
61
|
+
holdUnproven: boolean;
|
|
62
|
+
}): Promise<{
|
|
63
|
+
errors: Error[];
|
|
64
|
+
retry: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the stored ids alone cover every required resource with a live subscription at
|
|
68
|
+
* this URL. Reads each stored id with GET by id, which has its own budget: 2000 requests per
|
|
69
|
+
* 20 s for an app across all tenants, against 40 for the listing. Two stored subscriptions on
|
|
70
|
+
* one resource both count: keeping them is safer than core's cleanup, and the next reconcile
|
|
71
|
+
* proves each secret. An answer with another clientState covers nothing. An answer without
|
|
72
|
+
* one still counts here; the reconcile treats it as unproven. Never throws.
|
|
73
|
+
*/
|
|
74
|
+
export declare function storedSubscriptionsCover(this: IHookFunctions | IWebhookFunctions, webhookUrl: string, clientState: string, event: string): Promise<boolean>;
|
|
13
75
|
export declare function isLifecycleNotification(item: unknown): item is LifecycleNotification;
|
|
76
|
+
/** A PATCH answer that can stand in for a listing entry. */
|
|
77
|
+
export declare function isSubscriptionResponse(value: unknown): value is SubscriptionResponse;
|
|
14
78
|
/**
|
|
15
79
|
* Runs after `webhook()` sent the 202. Never throws: a throw skips the static-data
|
|
16
|
-
* save and core would answer an ended response.
|
|
17
|
-
*
|
|
80
|
+
* save and core would answer an ended response. Renews the stored ids the batch names;
|
|
81
|
+
* a batch with a removal, an unknown id, a failed renewal or a rejected item lists once
|
|
82
|
+
* and reconciles, and so does a trigger that watches one resource but stores more ids, or
|
|
83
|
+
* one that an earlier batch marked because its reconcile did not finish. A batch arrives only
|
|
84
|
+
* while a subscription still delivers.
|
|
18
85
|
*/
|
|
19
|
-
export declare function handleLifecycleNotifications(this: IWebhookFunctions, items: LifecycleNotification[]): Promise<void>;
|
|
20
|
-
|
|
86
|
+
export declare function handleLifecycleNotifications(this: IWebhookFunctions, items: LifecycleNotification[], rejectedCount?: number): Promise<void>;
|
|
87
|
+
/** The accepted items of the request body; `[]` for a missing, empty or non-array body. */
|
|
88
|
+
export declare function verifyWebhook(this: IWebhookFunctions): unknown[];
|
|
21
89
|
export declare function getResourcePath(this: IHookFunctions | IWebhookFunctions, event: string): Promise<string | string[]>;
|
|
22
90
|
//# sourceMappingURL=utils-trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-trigger.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/Teams/v2/helpers/utils-trigger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGnF,OAAO,KAAK,EACX,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAYjB,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAYD,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,oBAAoB,GAAG,OAAO,CAG9E;AAED,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAG5E;AAED,
|
|
1
|
+
{"version":3,"file":"utils-trigger.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Microsoft/Teams/v2/helpers/utils-trigger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGnF,OAAO,KAAK,EACX,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAYjB,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,gGAAgG;AAChG,wBAAgB,UAAU,CACzB,IAAI,EAAE,cAAc,GAAG,iBAAiB,EACxC,KAAK,EAAE,OAAO,GAAG,MAAM,EACvB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAClC,IAAI,CAMN;AAYD,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,oBAAoB,GAAG,OAAO,CAG9E;AAED,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAG5E;AAED,iDAAiD;AACjD,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE,CAI/D;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACxC,IAAI,EAAE,cAAc,GAAG,iBAAiB,EACxC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GACnB,OAAO,CAAC,MAAM,EAAE,CAAC,CA4BnB;AAID,wBAAsB,aAAa,CAClC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GACtC,OAAO,CAAC,YAAY,EAAE,CAAC,CAOzB;AAED,wBAAsB,gBAAgB,CACrC,I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