@superdurable/connector-adobe-marketo 0.1.0 → 0.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/README.md +6 -1
- package/dex-connector.json +818 -2
- package/dist/chunk-AYOHNIYZ.js +803 -0
- package/dist/connection-CS06EvUW.d.ts +518 -0
- package/dist/index.d.ts +886 -6
- package/dist/index.js +1238 -20
- package/dist/mock.d.ts +301 -3
- package/dist/mock.js +737 -5
- package/package.json +3 -3
- package/dist/chunk-N4RSR7PL.js +0 -134
- package/dist/connection-lQR7OxHI.d.ts +0 -81
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { G as GetLeadInput,
|
|
2
|
-
export {
|
|
3
|
-
import { QueryDefinition, QueryStepConfig, Query, QueryResult, QueryStep, Call, QueryAttempt } from '@superdurable/connectors-sdk';
|
|
1
|
+
import { C as CreateCompanyInput, a as CompanyWriteResult, b as Connection, c as CreateLeadInput, d as CreatedLead, e as CreateOpportunityInput, O as OpportunityWriteResult, D as DeleteCompanyInput, f as DeletedCompany, g as DeleteOpportunityInput, h as DeletedOpportunity, F as FindLeadsByEmailInput, L as LeadProfilesPage, G as GetActivityPagingTokenInput, A as ActivityPagingToken, i as GetCompanyByExternalIDInput, j as CompanyProfile, k as GetLeadInput, l as LeadProfile, m as GetOpportunityByExternalIDInput, n as OpportunityProfile, o as ListActivitiesInput, p as ActivityPage, q as ListActivityTypesInput, r as ActivityTypes, U as UpdateLeadInput, s as UpdatedLead, t as UpsertCompanyInput, u as UpsertLeadByEmailInput, S as SyncedLead, v as UpsertOpportunityInput, w as Operations, x as SignedInteger, y as Config, z as CredentialSource } from './connection-CS06EvUW.js';
|
|
2
|
+
export { B as ActivityMetadata, E as ActivityMetadataSchema, H as ActivityPageSchema, I as ActivityPagingTokenSchema, J as ActivityType, K as ActivityTypeSchema, M as ActivityTypesSchema, N as CompanyProfileSchema, P as CompanyWriteResultSchema, Q as ConfigSchema, R as CreateCompanyInputSchema, T as CreateLeadInputSchema, V as CreateOpportunityInputSchema, W as CreatedLeadSchema, X as CredentialMaterialError, Y as Credentials, Z as DeleteCompanyInputSchema, _ as DeleteOpportunityInputSchema, $ as DeletedCompanySchema, a0 as DeletedOpportunitySchema, a1 as FindLeadsByEmailInputSchema, a2 as GetActivityPagingTokenInputSchema, a3 as GetCompanyByExternalIDInputSchema, a4 as GetLeadInputSchema, a5 as GetOpportunityByExternalIDInputSchema, a6 as LeadProfileSchema, a7 as LeadProfilesPageSchema, a8 as ListActivitiesInputSchema, a9 as ListActivityTypesInputSchema, aa as OpportunityProfileSchema, ab as OpportunityWriteResultSchema, ac as SyncedLeadSchema, ad as UpdateLeadInputSchema, ae as UpdatedLeadSchema, af as UpsertCompanyInputSchema, ag as UpsertLeadByEmailInputSchema, ah as UpsertOpportunityInputSchema, ai as decodeCredentials, aj as decodeSharedCredentials, ak as decodeSignedInteger, al as exactIntegerJSONCodec, am as isCredentialMaterialError, an as newConnection, ao as newConnectionWithOperations, ap as parseExactIntegerJSON, aq as parseJSONNumberTokens } from './connection-CS06EvUW.js';
|
|
3
|
+
import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, MutationAttempt, Failure, CallID, IdempotencyKey } from '@superdurable/connectors-sdk';
|
|
4
4
|
import { StepTarget } from '@superdurable/dex';
|
|
5
5
|
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
6
6
|
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
@@ -10,6 +10,320 @@ import 'zod';
|
|
|
10
10
|
declare const ConnectorID = "adobe-marketo";
|
|
11
11
|
/** Provider identity for named connections. */
|
|
12
12
|
declare const ProviderID = "adobe";
|
|
13
|
+
/** Branch IDs for getOpportunityByExternalID. */
|
|
14
|
+
declare const GetOpportunityByExternalIDBranch: {
|
|
15
|
+
readonly Found: "found";
|
|
16
|
+
readonly NotFound: "notFound";
|
|
17
|
+
readonly ProviderRejected: "providerRejected";
|
|
18
|
+
readonly InvalidResponse: "invalidResponse";
|
|
19
|
+
readonly Defect: "defect";
|
|
20
|
+
};
|
|
21
|
+
/** Marketo returned the opportunity. */
|
|
22
|
+
declare const GetOpportunityByExternalIDBranchFound: "found";
|
|
23
|
+
/** Marketo found no matching opportunity. */
|
|
24
|
+
declare const GetOpportunityByExternalIDBranchNotFound: "notFound";
|
|
25
|
+
/** Marketo rejected the opportunity lookup. */
|
|
26
|
+
declare const GetOpportunityByExternalIDBranchProviderRejected: "providerRejected";
|
|
27
|
+
/** Marketo returned malformed opportunity JSON. */
|
|
28
|
+
declare const GetOpportunityByExternalIDBranchInvalidResponse: "invalidResponse";
|
|
29
|
+
/** The external opportunity ID is invalid. */
|
|
30
|
+
declare const GetOpportunityByExternalIDBranchDefect: "defect";
|
|
31
|
+
/** Manifest definition for getOpportunityByExternalID. */
|
|
32
|
+
declare const GetOpportunityByExternalIDDefinition: QueryDefinition;
|
|
33
|
+
/** Manifest metadata for getOpportunityByExternalID. */
|
|
34
|
+
declare const GetOpportunityByExternalIDMetadata: {
|
|
35
|
+
readonly kind: "query";
|
|
36
|
+
readonly idempotency: "none";
|
|
37
|
+
readonly authorization: "required";
|
|
38
|
+
};
|
|
39
|
+
/** Branch IDs for createOpportunity. */
|
|
40
|
+
declare const CreateOpportunityBranch: {
|
|
41
|
+
readonly Created: "created";
|
|
42
|
+
readonly AlreadyExists: "alreadyExists";
|
|
43
|
+
readonly ProviderRejected: "providerRejected";
|
|
44
|
+
readonly Uncertain: "uncertain";
|
|
45
|
+
readonly Defect: "defect";
|
|
46
|
+
};
|
|
47
|
+
/** Marketo created the opportunity. */
|
|
48
|
+
declare const CreateOpportunityBranchCreated: "created";
|
|
49
|
+
/** An opportunity already uses the external ID. */
|
|
50
|
+
declare const CreateOpportunityBranchAlreadyExists: "alreadyExists";
|
|
51
|
+
/** Marketo conclusively rejected the create. */
|
|
52
|
+
declare const CreateOpportunityBranchProviderRejected: "providerRejected";
|
|
53
|
+
/** A prior create may have succeeded but cannot be confirmed. */
|
|
54
|
+
declare const CreateOpportunityBranchUncertain: "uncertain";
|
|
55
|
+
/** The external opportunity ID or name is invalid. */
|
|
56
|
+
declare const CreateOpportunityBranchDefect: "defect";
|
|
57
|
+
/** Manifest definition for createOpportunity. */
|
|
58
|
+
declare const CreateOpportunityDefinition: MutationDefinition;
|
|
59
|
+
/** Manifest metadata for createOpportunity. */
|
|
60
|
+
declare const CreateOpportunityMetadata: {
|
|
61
|
+
readonly kind: "mutation";
|
|
62
|
+
readonly idempotency: "required";
|
|
63
|
+
readonly authorization: "required";
|
|
64
|
+
};
|
|
65
|
+
/** Branch IDs for upsertOpportunity. */
|
|
66
|
+
declare const UpsertOpportunityBranch: {
|
|
67
|
+
readonly Synced: "synced";
|
|
68
|
+
readonly ProviderRejected: "providerRejected";
|
|
69
|
+
readonly InvalidResponse: "invalidResponse";
|
|
70
|
+
readonly Defect: "defect";
|
|
71
|
+
};
|
|
72
|
+
/** Marketo created or updated the opportunity. */
|
|
73
|
+
declare const UpsertOpportunityBranchSynced: "synced";
|
|
74
|
+
/** Marketo rejected the upsert. */
|
|
75
|
+
declare const UpsertOpportunityBranchProviderRejected: "providerRejected";
|
|
76
|
+
/** Marketo returned malformed opportunity JSON. */
|
|
77
|
+
declare const UpsertOpportunityBranchInvalidResponse: "invalidResponse";
|
|
78
|
+
/** The external opportunity ID or name is invalid. */
|
|
79
|
+
declare const UpsertOpportunityBranchDefect: "defect";
|
|
80
|
+
/** Manifest definition for upsertOpportunity. */
|
|
81
|
+
declare const UpsertOpportunityDefinition: MutationDefinition;
|
|
82
|
+
/** Manifest metadata for upsertOpportunity. */
|
|
83
|
+
declare const UpsertOpportunityMetadata: {
|
|
84
|
+
readonly kind: "mutation";
|
|
85
|
+
readonly idempotency: "required";
|
|
86
|
+
readonly authorization: "required";
|
|
87
|
+
};
|
|
88
|
+
/** Branch IDs for deleteOpportunity. */
|
|
89
|
+
declare const DeleteOpportunityBranch: {
|
|
90
|
+
readonly Deleted: "deleted";
|
|
91
|
+
readonly ProviderRejected: "providerRejected";
|
|
92
|
+
readonly InvalidResponse: "invalidResponse";
|
|
93
|
+
readonly Defect: "defect";
|
|
94
|
+
};
|
|
95
|
+
/** The opportunity is absent after the call. */
|
|
96
|
+
declare const DeleteOpportunityBranchDeleted: "deleted";
|
|
97
|
+
/** Marketo rejected deletion, including existing opportunity roles. */
|
|
98
|
+
declare const DeleteOpportunityBranchProviderRejected: "providerRejected";
|
|
99
|
+
/** Marketo returned malformed deletion JSON. */
|
|
100
|
+
declare const DeleteOpportunityBranchInvalidResponse: "invalidResponse";
|
|
101
|
+
/** The external opportunity ID is invalid. */
|
|
102
|
+
declare const DeleteOpportunityBranchDefect: "defect";
|
|
103
|
+
/** Manifest definition for deleteOpportunity. */
|
|
104
|
+
declare const DeleteOpportunityDefinition: MutationDefinition;
|
|
105
|
+
/** Manifest metadata for deleteOpportunity. */
|
|
106
|
+
declare const DeleteOpportunityMetadata: {
|
|
107
|
+
readonly kind: "mutation";
|
|
108
|
+
readonly idempotency: "required";
|
|
109
|
+
readonly authorization: "required";
|
|
110
|
+
};
|
|
111
|
+
/** Branch IDs for getCompanyByExternalID. */
|
|
112
|
+
declare const GetCompanyByExternalIDBranch: {
|
|
113
|
+
readonly Found: "found";
|
|
114
|
+
readonly NotFound: "notFound";
|
|
115
|
+
readonly ProviderRejected: "providerRejected";
|
|
116
|
+
readonly InvalidResponse: "invalidResponse";
|
|
117
|
+
readonly Defect: "defect";
|
|
118
|
+
};
|
|
119
|
+
/** Marketo returned the company. */
|
|
120
|
+
declare const GetCompanyByExternalIDBranchFound: "found";
|
|
121
|
+
/** Marketo found no matching company. */
|
|
122
|
+
declare const GetCompanyByExternalIDBranchNotFound: "notFound";
|
|
123
|
+
/** Marketo rejected the company lookup. */
|
|
124
|
+
declare const GetCompanyByExternalIDBranchProviderRejected: "providerRejected";
|
|
125
|
+
/** Marketo returned malformed company JSON. */
|
|
126
|
+
declare const GetCompanyByExternalIDBranchInvalidResponse: "invalidResponse";
|
|
127
|
+
/** The external company ID is invalid. */
|
|
128
|
+
declare const GetCompanyByExternalIDBranchDefect: "defect";
|
|
129
|
+
/** Manifest definition for getCompanyByExternalID. */
|
|
130
|
+
declare const GetCompanyByExternalIDDefinition: QueryDefinition;
|
|
131
|
+
/** Manifest metadata for getCompanyByExternalID. */
|
|
132
|
+
declare const GetCompanyByExternalIDMetadata: {
|
|
133
|
+
readonly kind: "query";
|
|
134
|
+
readonly idempotency: "none";
|
|
135
|
+
readonly authorization: "required";
|
|
136
|
+
};
|
|
137
|
+
/** Branch IDs for createCompany. */
|
|
138
|
+
declare const CreateCompanyBranch: {
|
|
139
|
+
readonly Created: "created";
|
|
140
|
+
readonly AlreadyExists: "alreadyExists";
|
|
141
|
+
readonly ProviderRejected: "providerRejected";
|
|
142
|
+
readonly Uncertain: "uncertain";
|
|
143
|
+
readonly Defect: "defect";
|
|
144
|
+
};
|
|
145
|
+
/** Marketo created the company. */
|
|
146
|
+
declare const CreateCompanyBranchCreated: "created";
|
|
147
|
+
/** A company already uses the external ID. */
|
|
148
|
+
declare const CreateCompanyBranchAlreadyExists: "alreadyExists";
|
|
149
|
+
/** Marketo conclusively rejected the create. */
|
|
150
|
+
declare const CreateCompanyBranchProviderRejected: "providerRejected";
|
|
151
|
+
/** A prior create may have succeeded but cannot be confirmed. */
|
|
152
|
+
declare const CreateCompanyBranchUncertain: "uncertain";
|
|
153
|
+
/** The external company ID or name is invalid. */
|
|
154
|
+
declare const CreateCompanyBranchDefect: "defect";
|
|
155
|
+
/** Manifest definition for createCompany. */
|
|
156
|
+
declare const CreateCompanyDefinition: MutationDefinition;
|
|
157
|
+
/** Manifest metadata for createCompany. */
|
|
158
|
+
declare const CreateCompanyMetadata: {
|
|
159
|
+
readonly kind: "mutation";
|
|
160
|
+
readonly idempotency: "required";
|
|
161
|
+
readonly authorization: "required";
|
|
162
|
+
};
|
|
163
|
+
/** Branch IDs for upsertCompany. */
|
|
164
|
+
declare const UpsertCompanyBranch: {
|
|
165
|
+
readonly Synced: "synced";
|
|
166
|
+
readonly ProviderRejected: "providerRejected";
|
|
167
|
+
readonly InvalidResponse: "invalidResponse";
|
|
168
|
+
readonly Defect: "defect";
|
|
169
|
+
};
|
|
170
|
+
/** Marketo created or updated the company. */
|
|
171
|
+
declare const UpsertCompanyBranchSynced: "synced";
|
|
172
|
+
/** Marketo rejected the upsert. */
|
|
173
|
+
declare const UpsertCompanyBranchProviderRejected: "providerRejected";
|
|
174
|
+
/** Marketo returned malformed company JSON. */
|
|
175
|
+
declare const UpsertCompanyBranchInvalidResponse: "invalidResponse";
|
|
176
|
+
/** The external company ID or name is invalid. */
|
|
177
|
+
declare const UpsertCompanyBranchDefect: "defect";
|
|
178
|
+
/** Manifest definition for upsertCompany. */
|
|
179
|
+
declare const UpsertCompanyDefinition: MutationDefinition;
|
|
180
|
+
/** Manifest metadata for upsertCompany. */
|
|
181
|
+
declare const UpsertCompanyMetadata: {
|
|
182
|
+
readonly kind: "mutation";
|
|
183
|
+
readonly idempotency: "required";
|
|
184
|
+
readonly authorization: "required";
|
|
185
|
+
};
|
|
186
|
+
/** Branch IDs for deleteCompany. */
|
|
187
|
+
declare const DeleteCompanyBranch: {
|
|
188
|
+
readonly Deleted: "deleted";
|
|
189
|
+
readonly ProviderRejected: "providerRejected";
|
|
190
|
+
readonly InvalidResponse: "invalidResponse";
|
|
191
|
+
readonly Defect: "defect";
|
|
192
|
+
};
|
|
193
|
+
/** The company is absent after the call. */
|
|
194
|
+
declare const DeleteCompanyBranchDeleted: "deleted";
|
|
195
|
+
/** Marketo rejected the deletion. */
|
|
196
|
+
declare const DeleteCompanyBranchProviderRejected: "providerRejected";
|
|
197
|
+
/** Marketo returned malformed deletion JSON. */
|
|
198
|
+
declare const DeleteCompanyBranchInvalidResponse: "invalidResponse";
|
|
199
|
+
/** The external company ID is invalid. */
|
|
200
|
+
declare const DeleteCompanyBranchDefect: "defect";
|
|
201
|
+
/** Manifest definition for deleteCompany. */
|
|
202
|
+
declare const DeleteCompanyDefinition: MutationDefinition;
|
|
203
|
+
/** Manifest metadata for deleteCompany. */
|
|
204
|
+
declare const DeleteCompanyMetadata: {
|
|
205
|
+
readonly kind: "mutation";
|
|
206
|
+
readonly idempotency: "required";
|
|
207
|
+
readonly authorization: "required";
|
|
208
|
+
};
|
|
209
|
+
/** Branch IDs for getActivityPagingToken. */
|
|
210
|
+
declare const GetActivityPagingTokenBranch: {
|
|
211
|
+
readonly Found: "found";
|
|
212
|
+
readonly ProviderRejected: "providerRejected";
|
|
213
|
+
readonly InvalidResponse: "invalidResponse";
|
|
214
|
+
readonly Defect: "defect";
|
|
215
|
+
};
|
|
216
|
+
/** Marketo returned an activity cursor. */
|
|
217
|
+
declare const GetActivityPagingTokenBranchFound: "found";
|
|
218
|
+
/** Marketo rejected the date or activity permission. */
|
|
219
|
+
declare const GetActivityPagingTokenBranchProviderRejected: "providerRejected";
|
|
220
|
+
/** Marketo returned malformed activity cursor JSON. */
|
|
221
|
+
declare const GetActivityPagingTokenBranchInvalidResponse: "invalidResponse";
|
|
222
|
+
/** The date and time is invalid. */
|
|
223
|
+
declare const GetActivityPagingTokenBranchDefect: "defect";
|
|
224
|
+
/** Manifest definition for getActivityPagingToken. */
|
|
225
|
+
declare const GetActivityPagingTokenDefinition: QueryDefinition;
|
|
226
|
+
/** Manifest metadata for getActivityPagingToken. */
|
|
227
|
+
declare const GetActivityPagingTokenMetadata: {
|
|
228
|
+
readonly kind: "query";
|
|
229
|
+
readonly idempotency: "none";
|
|
230
|
+
readonly authorization: "required";
|
|
231
|
+
};
|
|
232
|
+
/** Branch IDs for listActivityTypes. */
|
|
233
|
+
declare const ListActivityTypesBranch: {
|
|
234
|
+
readonly Found: "found";
|
|
235
|
+
readonly ProviderRejected: "providerRejected";
|
|
236
|
+
readonly InvalidResponse: "invalidResponse";
|
|
237
|
+
readonly Defect: "defect";
|
|
238
|
+
};
|
|
239
|
+
/** Marketo returned activity types. */
|
|
240
|
+
declare const ListActivityTypesBranchFound: "found";
|
|
241
|
+
/** Marketo rejected the activity type request. */
|
|
242
|
+
declare const ListActivityTypesBranchProviderRejected: "providerRejected";
|
|
243
|
+
/** Marketo returned malformed activity type JSON. */
|
|
244
|
+
declare const ListActivityTypesBranchInvalidResponse: "invalidResponse";
|
|
245
|
+
/** The connection configuration is invalid. */
|
|
246
|
+
declare const ListActivityTypesBranchDefect: "defect";
|
|
247
|
+
/** Manifest definition for listActivityTypes. */
|
|
248
|
+
declare const ListActivityTypesDefinition: QueryDefinition;
|
|
249
|
+
/** Manifest metadata for listActivityTypes. */
|
|
250
|
+
declare const ListActivityTypesMetadata: {
|
|
251
|
+
readonly kind: "query";
|
|
252
|
+
readonly idempotency: "none";
|
|
253
|
+
readonly authorization: "required";
|
|
254
|
+
};
|
|
255
|
+
/** Branch IDs for listActivities. */
|
|
256
|
+
declare const ListActivitiesBranch: {
|
|
257
|
+
readonly Found: "found";
|
|
258
|
+
readonly ProviderRejected: "providerRejected";
|
|
259
|
+
readonly InvalidResponse: "invalidResponse";
|
|
260
|
+
readonly Defect: "defect";
|
|
261
|
+
};
|
|
262
|
+
/** Marketo returned an activity page. */
|
|
263
|
+
declare const ListActivitiesBranchFound: "found";
|
|
264
|
+
/** Marketo rejected the cursor or activity type IDs. */
|
|
265
|
+
declare const ListActivitiesBranchProviderRejected: "providerRejected";
|
|
266
|
+
/** Marketo returned malformed activity JSON. */
|
|
267
|
+
declare const ListActivitiesBranchInvalidResponse: "invalidResponse";
|
|
268
|
+
/** The cursor or activity type IDs are invalid. */
|
|
269
|
+
declare const ListActivitiesBranchDefect: "defect";
|
|
270
|
+
/** Manifest definition for listActivities. */
|
|
271
|
+
declare const ListActivitiesDefinition: QueryDefinition;
|
|
272
|
+
/** Manifest metadata for listActivities. */
|
|
273
|
+
declare const ListActivitiesMetadata: {
|
|
274
|
+
readonly kind: "query";
|
|
275
|
+
readonly idempotency: "none";
|
|
276
|
+
readonly authorization: "required";
|
|
277
|
+
};
|
|
278
|
+
/** Branch IDs for createLead. */
|
|
279
|
+
declare const CreateLeadBranch: {
|
|
280
|
+
readonly Created: "created";
|
|
281
|
+
readonly AlreadyExists: "alreadyExists";
|
|
282
|
+
readonly ProviderRejected: "providerRejected";
|
|
283
|
+
readonly Uncertain: "uncertain";
|
|
284
|
+
readonly Defect: "defect";
|
|
285
|
+
};
|
|
286
|
+
/** Marketo created the lead. */
|
|
287
|
+
declare const CreateLeadBranchCreated: "created";
|
|
288
|
+
/** Marketo found an existing lead for this email. */
|
|
289
|
+
declare const CreateLeadBranchAlreadyExists: "alreadyExists";
|
|
290
|
+
/** Marketo conclusively rejected the create request. */
|
|
291
|
+
declare const CreateLeadBranchProviderRejected: "providerRejected";
|
|
292
|
+
/** A previous create may have succeeded but cannot be confirmed at the send cap. */
|
|
293
|
+
declare const CreateLeadBranchUncertain: "uncertain";
|
|
294
|
+
/** Local email or name fields are invalid. */
|
|
295
|
+
declare const CreateLeadBranchDefect: "defect";
|
|
296
|
+
/** Manifest definition for createLead. */
|
|
297
|
+
declare const CreateLeadDefinition: MutationDefinition;
|
|
298
|
+
/** Manifest metadata for createLead. */
|
|
299
|
+
declare const CreateLeadMetadata: {
|
|
300
|
+
readonly kind: "mutation";
|
|
301
|
+
readonly idempotency: "required";
|
|
302
|
+
readonly authorization: "required";
|
|
303
|
+
};
|
|
304
|
+
/** Branch IDs for upsertLeadByEmail. */
|
|
305
|
+
declare const UpsertLeadByEmailBranch: {
|
|
306
|
+
readonly Synced: "synced";
|
|
307
|
+
readonly ProviderRejected: "providerRejected";
|
|
308
|
+
readonly InvalidResponse: "invalidResponse";
|
|
309
|
+
readonly Defect: "defect";
|
|
310
|
+
};
|
|
311
|
+
/** Marketo created or updated the lead. */
|
|
312
|
+
declare const UpsertLeadByEmailBranchSynced: "synced";
|
|
313
|
+
/** Marketo conclusively rejected the upsert or found multiple matches. */
|
|
314
|
+
declare const UpsertLeadByEmailBranchProviderRejected: "providerRejected";
|
|
315
|
+
/** Marketo returned malformed or oversized JSON. */
|
|
316
|
+
declare const UpsertLeadByEmailBranchInvalidResponse: "invalidResponse";
|
|
317
|
+
/** Local email or name fields are invalid. */
|
|
318
|
+
declare const UpsertLeadByEmailBranchDefect: "defect";
|
|
319
|
+
/** Manifest definition for upsertLeadByEmail. */
|
|
320
|
+
declare const UpsertLeadByEmailDefinition: MutationDefinition;
|
|
321
|
+
/** Manifest metadata for upsertLeadByEmail. */
|
|
322
|
+
declare const UpsertLeadByEmailMetadata: {
|
|
323
|
+
readonly kind: "mutation";
|
|
324
|
+
readonly idempotency: "required";
|
|
325
|
+
readonly authorization: "required";
|
|
326
|
+
};
|
|
13
327
|
/** Branch IDs for getLead. */
|
|
14
328
|
declare const GetLeadBranch: {
|
|
15
329
|
readonly Found: "found";
|
|
@@ -36,7 +350,323 @@ declare const GetLeadMetadata: {
|
|
|
36
350
|
readonly idempotency: "none";
|
|
37
351
|
readonly authorization: "required";
|
|
38
352
|
};
|
|
353
|
+
/** Branch IDs for findLeadsByEmail. */
|
|
354
|
+
declare const FindLeadsByEmailBranch: {
|
|
355
|
+
readonly Found: "found";
|
|
356
|
+
readonly ProviderRejected: "providerRejected";
|
|
357
|
+
readonly InvalidResponse: "invalidResponse";
|
|
358
|
+
readonly Defect: "defect";
|
|
359
|
+
};
|
|
360
|
+
/** Marketo returned the matching lead page. */
|
|
361
|
+
declare const FindLeadsByEmailBranchFound: "found";
|
|
362
|
+
/** Marketo conclusively rejected the filter. */
|
|
363
|
+
declare const FindLeadsByEmailBranchProviderRejected: "providerRejected";
|
|
364
|
+
/** Marketo returned malformed or oversized JSON. */
|
|
365
|
+
declare const FindLeadsByEmailBranchInvalidResponse: "invalidResponse";
|
|
366
|
+
/** Local email or connection configuration is invalid. */
|
|
367
|
+
declare const FindLeadsByEmailBranchDefect: "defect";
|
|
368
|
+
/** Manifest definition for findLeadsByEmail. */
|
|
369
|
+
declare const FindLeadsByEmailDefinition: QueryDefinition;
|
|
370
|
+
/** Manifest metadata for findLeadsByEmail. */
|
|
371
|
+
declare const FindLeadsByEmailMetadata: {
|
|
372
|
+
readonly kind: "query";
|
|
373
|
+
readonly idempotency: "none";
|
|
374
|
+
readonly authorization: "required";
|
|
375
|
+
};
|
|
376
|
+
/** Branch IDs for updateLead. */
|
|
377
|
+
declare const UpdateLeadBranch: {
|
|
378
|
+
readonly Updated: "updated";
|
|
379
|
+
readonly NotFound: "notFound";
|
|
380
|
+
readonly ProviderRejected: "providerRejected";
|
|
381
|
+
readonly InvalidResponse: "invalidResponse";
|
|
382
|
+
readonly Defect: "defect";
|
|
383
|
+
};
|
|
384
|
+
/** Marketo updated the selected lead. */
|
|
385
|
+
declare const UpdateLeadBranchUpdated: "updated";
|
|
386
|
+
/** Marketo found no lead for the ID. */
|
|
387
|
+
declare const UpdateLeadBranchNotFound: "notFound";
|
|
388
|
+
/** Marketo conclusively rejected the update. */
|
|
389
|
+
declare const UpdateLeadBranchProviderRejected: "providerRejected";
|
|
390
|
+
/** Marketo returned malformed or oversized JSON. */
|
|
391
|
+
declare const UpdateLeadBranchInvalidResponse: "invalidResponse";
|
|
392
|
+
/** Local ID, name fields, or connection configuration is invalid. */
|
|
393
|
+
declare const UpdateLeadBranchDefect: "defect";
|
|
394
|
+
/** Manifest definition for updateLead. */
|
|
395
|
+
declare const UpdateLeadDefinition: MutationDefinition;
|
|
396
|
+
/** Manifest metadata for updateLead. */
|
|
397
|
+
declare const UpdateLeadMetadata: {
|
|
398
|
+
readonly kind: "mutation";
|
|
399
|
+
readonly idempotency: "required";
|
|
400
|
+
readonly authorization: "required";
|
|
401
|
+
};
|
|
39
402
|
|
|
403
|
+
/** Configuration for the getOpportunityByExternalID connector Step. */
|
|
404
|
+
interface GetOpportunityByExternalIDStepConfig<StepInput, OperationInput = GetOpportunityByExternalIDInput, OperationOutput = OpportunityProfile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
405
|
+
/** Named connection supplying this operation. */
|
|
406
|
+
connection: Connection<{
|
|
407
|
+
getOpportunityByExternalID(): Query<OperationInput, OperationOutput>;
|
|
408
|
+
}>;
|
|
409
|
+
/** Name matching the bound connection. */
|
|
410
|
+
connectionName: string;
|
|
411
|
+
/** Marketo returned the opportunity. */
|
|
412
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
413
|
+
/** Marketo found no matching opportunity. */
|
|
414
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
415
|
+
/** Marketo rejected the opportunity lookup. */
|
|
416
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
417
|
+
/** Marketo returned malformed opportunity JSON. */
|
|
418
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
419
|
+
/** The external opportunity ID is invalid. */
|
|
420
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
421
|
+
}
|
|
422
|
+
/** Build the getOpportunityByExternalID Step from a named connection. */
|
|
423
|
+
declare function newGetOpportunityByExternalIDStep<StepInput, OperationInput = GetOpportunityByExternalIDInput, OperationOutput = OpportunityProfile>(configuration: GetOpportunityByExternalIDStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
424
|
+
/** Configuration for the createOpportunity connector Step. */
|
|
425
|
+
interface CreateOpportunityStepConfig<StepInput, OperationInput = CreateOpportunityInput, OperationOutput = OpportunityWriteResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
426
|
+
/** Named connection supplying this operation. */
|
|
427
|
+
connection: Connection<{
|
|
428
|
+
createOpportunity(): Mutation<OperationInput, OperationOutput>;
|
|
429
|
+
}>;
|
|
430
|
+
/** Name matching the bound connection. */
|
|
431
|
+
connectionName: string;
|
|
432
|
+
/** Marketo created the opportunity. */
|
|
433
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
434
|
+
/** An opportunity already uses the external ID. */
|
|
435
|
+
alreadyExists?: StepTarget<MutationResult<OperationOutput>>;
|
|
436
|
+
/** Marketo conclusively rejected the create. */
|
|
437
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
438
|
+
/** A prior create may have succeeded but cannot be confirmed. */
|
|
439
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
440
|
+
/** The external opportunity ID or name is invalid. */
|
|
441
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
442
|
+
}
|
|
443
|
+
/** Build the createOpportunity Step from a named connection. */
|
|
444
|
+
declare function newCreateOpportunityStep<StepInput, OperationInput = CreateOpportunityInput, OperationOutput = OpportunityWriteResult>(configuration: CreateOpportunityStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
445
|
+
/** Configuration for the upsertOpportunity connector Step. */
|
|
446
|
+
interface UpsertOpportunityStepConfig<StepInput, OperationInput = UpsertOpportunityInput, OperationOutput = OpportunityWriteResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
447
|
+
/** Named connection supplying this operation. */
|
|
448
|
+
connection: Connection<{
|
|
449
|
+
upsertOpportunity(): Mutation<OperationInput, OperationOutput>;
|
|
450
|
+
}>;
|
|
451
|
+
/** Name matching the bound connection. */
|
|
452
|
+
connectionName: string;
|
|
453
|
+
/** Marketo created or updated the opportunity. */
|
|
454
|
+
synced: StepTarget<MutationResult<OperationOutput>>;
|
|
455
|
+
/** Marketo rejected the upsert. */
|
|
456
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
457
|
+
/** Marketo returned malformed opportunity JSON. */
|
|
458
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
459
|
+
/** The external opportunity ID or name is invalid. */
|
|
460
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
461
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
462
|
+
maxSends?: number;
|
|
463
|
+
}
|
|
464
|
+
/** Build the upsertOpportunity Step from a named connection. */
|
|
465
|
+
declare function newUpsertOpportunityStep<StepInput, OperationInput = UpsertOpportunityInput, OperationOutput = OpportunityWriteResult>(configuration: UpsertOpportunityStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
466
|
+
/** Configuration for the deleteOpportunity connector Step. */
|
|
467
|
+
interface DeleteOpportunityStepConfig<StepInput, OperationInput = DeleteOpportunityInput, OperationOutput = DeletedOpportunity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
468
|
+
/** Named connection supplying this operation. */
|
|
469
|
+
connection: Connection<{
|
|
470
|
+
deleteOpportunity(): Mutation<OperationInput, OperationOutput>;
|
|
471
|
+
}>;
|
|
472
|
+
/** Name matching the bound connection. */
|
|
473
|
+
connectionName: string;
|
|
474
|
+
/** The opportunity is absent after the call. */
|
|
475
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
476
|
+
/** Marketo rejected deletion, including existing opportunity roles. */
|
|
477
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
478
|
+
/** Marketo returned malformed deletion JSON. */
|
|
479
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
480
|
+
/** The external opportunity ID is invalid. */
|
|
481
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
482
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
483
|
+
maxSends?: number;
|
|
484
|
+
}
|
|
485
|
+
/** Build the deleteOpportunity Step from a named connection. */
|
|
486
|
+
declare function newDeleteOpportunityStep<StepInput, OperationInput = DeleteOpportunityInput, OperationOutput = DeletedOpportunity>(configuration: DeleteOpportunityStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
487
|
+
/** Configuration for the getCompanyByExternalID connector Step. */
|
|
488
|
+
interface GetCompanyByExternalIDStepConfig<StepInput, OperationInput = GetCompanyByExternalIDInput, OperationOutput = CompanyProfile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
489
|
+
/** Named connection supplying this operation. */
|
|
490
|
+
connection: Connection<{
|
|
491
|
+
getCompanyByExternalID(): Query<OperationInput, OperationOutput>;
|
|
492
|
+
}>;
|
|
493
|
+
/** Name matching the bound connection. */
|
|
494
|
+
connectionName: string;
|
|
495
|
+
/** Marketo returned the company. */
|
|
496
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
497
|
+
/** Marketo found no matching company. */
|
|
498
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
499
|
+
/** Marketo rejected the company lookup. */
|
|
500
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
501
|
+
/** Marketo returned malformed company JSON. */
|
|
502
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
503
|
+
/** The external company ID is invalid. */
|
|
504
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
505
|
+
}
|
|
506
|
+
/** Build the getCompanyByExternalID Step from a named connection. */
|
|
507
|
+
declare function newGetCompanyByExternalIDStep<StepInput, OperationInput = GetCompanyByExternalIDInput, OperationOutput = CompanyProfile>(configuration: GetCompanyByExternalIDStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
508
|
+
/** Configuration for the createCompany connector Step. */
|
|
509
|
+
interface CreateCompanyStepConfig<StepInput, OperationInput = CreateCompanyInput, OperationOutput = CompanyWriteResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
510
|
+
/** Named connection supplying this operation. */
|
|
511
|
+
connection: Connection<{
|
|
512
|
+
createCompany(): Mutation<OperationInput, OperationOutput>;
|
|
513
|
+
}>;
|
|
514
|
+
/** Name matching the bound connection. */
|
|
515
|
+
connectionName: string;
|
|
516
|
+
/** Marketo created the company. */
|
|
517
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
518
|
+
/** A company already uses the external ID. */
|
|
519
|
+
alreadyExists?: StepTarget<MutationResult<OperationOutput>>;
|
|
520
|
+
/** Marketo conclusively rejected the create. */
|
|
521
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
522
|
+
/** A prior create may have succeeded but cannot be confirmed. */
|
|
523
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
524
|
+
/** The external company ID or name is invalid. */
|
|
525
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
526
|
+
}
|
|
527
|
+
/** Build the createCompany Step from a named connection. */
|
|
528
|
+
declare function newCreateCompanyStep<StepInput, OperationInput = CreateCompanyInput, OperationOutput = CompanyWriteResult>(configuration: CreateCompanyStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
529
|
+
/** Configuration for the upsertCompany connector Step. */
|
|
530
|
+
interface UpsertCompanyStepConfig<StepInput, OperationInput = UpsertCompanyInput, OperationOutput = CompanyWriteResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
531
|
+
/** Named connection supplying this operation. */
|
|
532
|
+
connection: Connection<{
|
|
533
|
+
upsertCompany(): Mutation<OperationInput, OperationOutput>;
|
|
534
|
+
}>;
|
|
535
|
+
/** Name matching the bound connection. */
|
|
536
|
+
connectionName: string;
|
|
537
|
+
/** Marketo created or updated the company. */
|
|
538
|
+
synced: StepTarget<MutationResult<OperationOutput>>;
|
|
539
|
+
/** Marketo rejected the upsert. */
|
|
540
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
541
|
+
/** Marketo returned malformed company JSON. */
|
|
542
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
543
|
+
/** The external company ID or name is invalid. */
|
|
544
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
545
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
546
|
+
maxSends?: number;
|
|
547
|
+
}
|
|
548
|
+
/** Build the upsertCompany Step from a named connection. */
|
|
549
|
+
declare function newUpsertCompanyStep<StepInput, OperationInput = UpsertCompanyInput, OperationOutput = CompanyWriteResult>(configuration: UpsertCompanyStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
550
|
+
/** Configuration for the deleteCompany connector Step. */
|
|
551
|
+
interface DeleteCompanyStepConfig<StepInput, OperationInput = DeleteCompanyInput, OperationOutput = DeletedCompany> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
552
|
+
/** Named connection supplying this operation. */
|
|
553
|
+
connection: Connection<{
|
|
554
|
+
deleteCompany(): Mutation<OperationInput, OperationOutput>;
|
|
555
|
+
}>;
|
|
556
|
+
/** Name matching the bound connection. */
|
|
557
|
+
connectionName: string;
|
|
558
|
+
/** The company is absent after the call. */
|
|
559
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
560
|
+
/** Marketo rejected the deletion. */
|
|
561
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
562
|
+
/** Marketo returned malformed deletion JSON. */
|
|
563
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
564
|
+
/** The external company ID is invalid. */
|
|
565
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
566
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
567
|
+
maxSends?: number;
|
|
568
|
+
}
|
|
569
|
+
/** Build the deleteCompany Step from a named connection. */
|
|
570
|
+
declare function newDeleteCompanyStep<StepInput, OperationInput = DeleteCompanyInput, OperationOutput = DeletedCompany>(configuration: DeleteCompanyStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
571
|
+
/** Configuration for the getActivityPagingToken connector Step. */
|
|
572
|
+
interface GetActivityPagingTokenStepConfig<StepInput, OperationInput = GetActivityPagingTokenInput, OperationOutput = ActivityPagingToken> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
573
|
+
/** Named connection supplying this operation. */
|
|
574
|
+
connection: Connection<{
|
|
575
|
+
getActivityPagingToken(): Query<OperationInput, OperationOutput>;
|
|
576
|
+
}>;
|
|
577
|
+
/** Name matching the bound connection. */
|
|
578
|
+
connectionName: string;
|
|
579
|
+
/** Marketo returned an activity cursor. */
|
|
580
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
581
|
+
/** Marketo rejected the date or activity permission. */
|
|
582
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
583
|
+
/** Marketo returned malformed activity cursor JSON. */
|
|
584
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
585
|
+
/** The date and time is invalid. */
|
|
586
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
587
|
+
}
|
|
588
|
+
/** Build the getActivityPagingToken Step from a named connection. */
|
|
589
|
+
declare function newGetActivityPagingTokenStep<StepInput, OperationInput = GetActivityPagingTokenInput, OperationOutput = ActivityPagingToken>(configuration: GetActivityPagingTokenStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
590
|
+
/** Configuration for the listActivityTypes connector Step. */
|
|
591
|
+
interface ListActivityTypesStepConfig<StepInput, OperationInput = ListActivityTypesInput, OperationOutput = ActivityTypes> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
592
|
+
/** Named connection supplying this operation. */
|
|
593
|
+
connection: Connection<{
|
|
594
|
+
listActivityTypes(): Query<OperationInput, OperationOutput>;
|
|
595
|
+
}>;
|
|
596
|
+
/** Name matching the bound connection. */
|
|
597
|
+
connectionName: string;
|
|
598
|
+
/** Marketo returned activity types. */
|
|
599
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
600
|
+
/** Marketo rejected the activity type request. */
|
|
601
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
602
|
+
/** Marketo returned malformed activity type JSON. */
|
|
603
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
604
|
+
/** The connection configuration is invalid. */
|
|
605
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
606
|
+
}
|
|
607
|
+
/** Build the listActivityTypes Step from a named connection. */
|
|
608
|
+
declare function newListActivityTypesStep<StepInput, OperationInput = ListActivityTypesInput, OperationOutput = ActivityTypes>(configuration: ListActivityTypesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
609
|
+
/** Configuration for the listActivities connector Step. */
|
|
610
|
+
interface ListActivitiesStepConfig<StepInput, OperationInput = ListActivitiesInput, OperationOutput = ActivityPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
611
|
+
/** Named connection supplying this operation. */
|
|
612
|
+
connection: Connection<{
|
|
613
|
+
listActivities(): Query<OperationInput, OperationOutput>;
|
|
614
|
+
}>;
|
|
615
|
+
/** Name matching the bound connection. */
|
|
616
|
+
connectionName: string;
|
|
617
|
+
/** Marketo returned an activity page. */
|
|
618
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
619
|
+
/** Marketo rejected the cursor or activity type IDs. */
|
|
620
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
621
|
+
/** Marketo returned malformed activity JSON. */
|
|
622
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
623
|
+
/** The cursor or activity type IDs are invalid. */
|
|
624
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
625
|
+
}
|
|
626
|
+
/** Build the listActivities Step from a named connection. */
|
|
627
|
+
declare function newListActivitiesStep<StepInput, OperationInput = ListActivitiesInput, OperationOutput = ActivityPage>(configuration: ListActivitiesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
628
|
+
/** Configuration for the createLead connector Step. */
|
|
629
|
+
interface CreateLeadStepConfig<StepInput, OperationInput = CreateLeadInput, OperationOutput = CreatedLead> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
630
|
+
/** Named connection supplying this operation. */
|
|
631
|
+
connection: Connection<{
|
|
632
|
+
createLead(): Mutation<OperationInput, OperationOutput>;
|
|
633
|
+
}>;
|
|
634
|
+
/** Name matching the bound connection. */
|
|
635
|
+
connectionName: string;
|
|
636
|
+
/** Marketo created the lead. */
|
|
637
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
638
|
+
/** Marketo found an existing lead for this email. */
|
|
639
|
+
alreadyExists?: StepTarget<MutationResult<OperationOutput>>;
|
|
640
|
+
/** Marketo conclusively rejected the create request. */
|
|
641
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
642
|
+
/** A previous create may have succeeded but cannot be confirmed at the send cap. */
|
|
643
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
644
|
+
/** Local email or name fields are invalid. */
|
|
645
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
646
|
+
}
|
|
647
|
+
/** Build the createLead Step from a named connection. */
|
|
648
|
+
declare function newCreateLeadStep<StepInput, OperationInput = CreateLeadInput, OperationOutput = CreatedLead>(configuration: CreateLeadStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
649
|
+
/** Configuration for the upsertLeadByEmail connector Step. */
|
|
650
|
+
interface UpsertLeadByEmailStepConfig<StepInput, OperationInput = UpsertLeadByEmailInput, OperationOutput = SyncedLead> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
651
|
+
/** Named connection supplying this operation. */
|
|
652
|
+
connection: Connection<{
|
|
653
|
+
upsertLeadByEmail(): Mutation<OperationInput, OperationOutput>;
|
|
654
|
+
}>;
|
|
655
|
+
/** Name matching the bound connection. */
|
|
656
|
+
connectionName: string;
|
|
657
|
+
/** Marketo created or updated the lead. */
|
|
658
|
+
synced: StepTarget<MutationResult<OperationOutput>>;
|
|
659
|
+
/** Marketo conclusively rejected the upsert or found multiple matches. */
|
|
660
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
661
|
+
/** Marketo returned malformed or oversized JSON. */
|
|
662
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
663
|
+
/** Local email or name fields are invalid. */
|
|
664
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
665
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
666
|
+
maxSends?: number;
|
|
667
|
+
}
|
|
668
|
+
/** Build the upsertLeadByEmail Step from a named connection. */
|
|
669
|
+
declare function newUpsertLeadByEmailStep<StepInput, OperationInput = UpsertLeadByEmailInput, OperationOutput = SyncedLead>(configuration: UpsertLeadByEmailStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
40
670
|
/** Configuration for the getLead connector Step. */
|
|
41
671
|
interface GetLeadStepConfig<StepInput, OperationInput = GetLeadInput, OperationOutput = LeadProfile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
42
672
|
/** Named connection supplying this operation. */
|
|
@@ -58,19 +688,237 @@ interface GetLeadStepConfig<StepInput, OperationInput = GetLeadInput, OperationO
|
|
|
58
688
|
}
|
|
59
689
|
/** Build the getLead Step from a named connection. */
|
|
60
690
|
declare function newGetLeadStep<StepInput, OperationInput = GetLeadInput, OperationOutput = LeadProfile>(configuration: GetLeadStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
691
|
+
/** Configuration for the findLeadsByEmail connector Step. */
|
|
692
|
+
interface FindLeadsByEmailStepConfig<StepInput, OperationInput = FindLeadsByEmailInput, OperationOutput = LeadProfilesPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
693
|
+
/** Named connection supplying this operation. */
|
|
694
|
+
connection: Connection<{
|
|
695
|
+
findLeadsByEmail(): Query<OperationInput, OperationOutput>;
|
|
696
|
+
}>;
|
|
697
|
+
/** Name matching the bound connection. */
|
|
698
|
+
connectionName: string;
|
|
699
|
+
/** Marketo returned the matching lead page. */
|
|
700
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
701
|
+
/** Marketo conclusively rejected the filter. */
|
|
702
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
703
|
+
/** Marketo returned malformed or oversized JSON. */
|
|
704
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
705
|
+
/** Local email or connection configuration is invalid. */
|
|
706
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
707
|
+
}
|
|
708
|
+
/** Build the findLeadsByEmail Step from a named connection. */
|
|
709
|
+
declare function newFindLeadsByEmailStep<StepInput, OperationInput = FindLeadsByEmailInput, OperationOutput = LeadProfilesPage>(configuration: FindLeadsByEmailStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
710
|
+
/** Configuration for the updateLead connector Step. */
|
|
711
|
+
interface UpdateLeadStepConfig<StepInput, OperationInput = UpdateLeadInput, OperationOutput = UpdatedLead> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
712
|
+
/** Named connection supplying this operation. */
|
|
713
|
+
connection: Connection<{
|
|
714
|
+
updateLead(): Mutation<OperationInput, OperationOutput>;
|
|
715
|
+
}>;
|
|
716
|
+
/** Name matching the bound connection. */
|
|
717
|
+
connectionName: string;
|
|
718
|
+
/** Marketo updated the selected lead. */
|
|
719
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
720
|
+
/** Marketo found no lead for the ID. */
|
|
721
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
722
|
+
/** Marketo conclusively rejected the update. */
|
|
723
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
724
|
+
/** Marketo returned malformed or oversized JSON. */
|
|
725
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
726
|
+
/** Local ID, name fields, or connection configuration is invalid. */
|
|
727
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
728
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
729
|
+
maxSends?: number;
|
|
730
|
+
}
|
|
731
|
+
/** Build the updateLead Step from a named connection. */
|
|
732
|
+
declare function newUpdateLeadStep<StepInput, OperationInput = UpdateLeadInput, OperationOutput = UpdatedLead>(configuration: UpdateLeadStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
61
733
|
|
|
62
734
|
/** Open one named Marketo connection from Dex project configuration. */
|
|
63
735
|
declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection<Operations>;
|
|
64
736
|
|
|
737
|
+
type Kind = Failure['kind'];
|
|
738
|
+
type Document = Record<string, unknown>;
|
|
739
|
+
type Identifier = SignedInteger | string;
|
|
740
|
+
interface Resource {
|
|
741
|
+
path: string;
|
|
742
|
+
deletePath: string;
|
|
743
|
+
externalField: string;
|
|
744
|
+
identityField: 'id' | 'marketoGUID';
|
|
745
|
+
nameField: string;
|
|
746
|
+
externalLimit: number;
|
|
747
|
+
}
|
|
748
|
+
interface Problem {
|
|
749
|
+
kind: Kind;
|
|
750
|
+
message: string;
|
|
751
|
+
branch?: string;
|
|
752
|
+
delay?: number;
|
|
753
|
+
}
|
|
754
|
+
declare abstract class Operation<Input, Output> {
|
|
755
|
+
protected readonly client: MarketoClient;
|
|
756
|
+
protected abstract readonly operation: string;
|
|
757
|
+
/** Bind the provider client. */
|
|
758
|
+
constructor(client: MarketoClient);
|
|
759
|
+
abstract invoke(call: Call, input: Input): Promise<QueryAttempt<Output> | MutationAttempt<Output>>;
|
|
760
|
+
protected failure(issue: Problem): Failure;
|
|
761
|
+
}
|
|
762
|
+
interface Read<Output> {
|
|
763
|
+
path: string;
|
|
764
|
+
empty: Output;
|
|
765
|
+
decode: (value: Document) => Output | undefined;
|
|
766
|
+
resource?: boolean;
|
|
767
|
+
authBranch?: 'providerRejected';
|
|
768
|
+
}
|
|
769
|
+
declare abstract class ReadOperation<Input, Output> extends Operation<Input, Output> implements Query<Input, Output> {
|
|
770
|
+
protected abstract readonly contract: QueryDefinition;
|
|
771
|
+
abstract invoke(call: Call, input: Input): Promise<QueryAttempt<Output>>;
|
|
772
|
+
/** Return the manifest-generated Query definition. */
|
|
773
|
+
definition(): QueryDefinition;
|
|
774
|
+
protected defect(empty: Output, message: string): QueryAttempt<Output>;
|
|
775
|
+
protected read(call: Call, request: Read<Output>): Promise<QueryAttempt<Output>>;
|
|
776
|
+
}
|
|
777
|
+
interface WriteResult {
|
|
778
|
+
identity: Identifier;
|
|
779
|
+
status: string;
|
|
780
|
+
code: string;
|
|
781
|
+
}
|
|
782
|
+
interface Write<Output> {
|
|
783
|
+
path: string;
|
|
784
|
+
payload: object;
|
|
785
|
+
empty: Output;
|
|
786
|
+
convert: (value: WriteResult) => Output;
|
|
787
|
+
resource?: Resource;
|
|
788
|
+
}
|
|
789
|
+
interface SafeWrite<Output> extends Write<Output> {
|
|
790
|
+
branch: 'synced' | 'updated' | 'deleted';
|
|
791
|
+
updateId?: SignedInteger;
|
|
792
|
+
}
|
|
793
|
+
declare abstract class WriteOperation<Input, Output> extends Operation<Input, Output> implements Mutation<Input, Output> {
|
|
794
|
+
protected abstract readonly contract: MutationDefinition;
|
|
795
|
+
abstract invoke(call: Call, input: Input): Promise<MutationAttempt<Output>>;
|
|
796
|
+
/** Return the manifest-generated Mutation definition. */
|
|
797
|
+
definition(): MutationDefinition;
|
|
798
|
+
/** Correlate attempts with the original Dex call. */
|
|
799
|
+
idempotencyKey(callID: CallID): IdempotencyKey;
|
|
800
|
+
protected outcome(empty: Output, issue: Problem): MutationAttempt<Output>;
|
|
801
|
+
protected defect(empty: Output, message: string): MutationAttempt<Output>;
|
|
802
|
+
protected safeWrite(call: Call, request: SafeWrite<Output>): Promise<MutationAttempt<Output>>;
|
|
803
|
+
protected limited(call: Call, request: Write<Output>): Promise<MutationAttempt<Output>>;
|
|
804
|
+
private uncertain;
|
|
805
|
+
}
|
|
806
|
+
/** Read one opportunity GUID and name by its external ID. */
|
|
807
|
+
declare class GetOpportunityByExternalIDOperation extends ReadOperation<GetOpportunityByExternalIDInput, OpportunityProfile> {
|
|
808
|
+
protected readonly operation = "getOpportunityByExternalID";
|
|
809
|
+
protected readonly contract: QueryDefinition;
|
|
810
|
+
/** Read one opportunity GUID and name by its external ID. */
|
|
811
|
+
invoke(call: Call, input: GetOpportunityByExternalIDInput): Promise<QueryAttempt<OpportunityProfile>>;
|
|
812
|
+
}
|
|
813
|
+
/** Create one opportunity by external ID with bounded sends. */
|
|
814
|
+
declare class CreateOpportunityOperation extends WriteOperation<CreateOpportunityInput, OpportunityWriteResult> {
|
|
815
|
+
protected readonly operation = "createOpportunity";
|
|
816
|
+
protected readonly contract: MutationDefinition;
|
|
817
|
+
/** Create one opportunity by external ID with bounded sends. */
|
|
818
|
+
invoke(call: Call, input: CreateOpportunityInput): Promise<MutationAttempt<OpportunityWriteResult>>;
|
|
819
|
+
}
|
|
820
|
+
/** Create or replace an opportunity name using its external ID. */
|
|
821
|
+
declare class UpsertOpportunityOperation extends WriteOperation<UpsertOpportunityInput, OpportunityWriteResult> {
|
|
822
|
+
protected readonly operation = "upsertOpportunity";
|
|
823
|
+
protected readonly contract: MutationDefinition;
|
|
824
|
+
/** Create or replace an opportunity name using its external ID. */
|
|
825
|
+
invoke(call: Call, input: UpsertOpportunityInput): Promise<MutationAttempt<OpportunityWriteResult>>;
|
|
826
|
+
}
|
|
827
|
+
/** Delete an opportunity by external ID. */
|
|
828
|
+
declare class DeleteOpportunityOperation extends WriteOperation<DeleteOpportunityInput, DeletedOpportunity> {
|
|
829
|
+
protected readonly operation = "deleteOpportunity";
|
|
830
|
+
protected readonly contract: MutationDefinition;
|
|
831
|
+
/** Delete an opportunity by external ID. */
|
|
832
|
+
invoke(call: Call, input: DeleteOpportunityInput): Promise<MutationAttempt<DeletedOpportunity>>;
|
|
833
|
+
}
|
|
834
|
+
/** Read one company ID and name by its external company ID. */
|
|
835
|
+
declare class GetCompanyByExternalIDOperation extends ReadOperation<GetCompanyByExternalIDInput, CompanyProfile> {
|
|
836
|
+
protected readonly operation = "getCompanyByExternalID";
|
|
837
|
+
protected readonly contract: QueryDefinition;
|
|
838
|
+
/** Read one company ID and name by its external company ID. */
|
|
839
|
+
invoke(call: Call, input: GetCompanyByExternalIDInput): Promise<QueryAttempt<CompanyProfile>>;
|
|
840
|
+
}
|
|
841
|
+
/** Create one company by external ID with bounded sends. */
|
|
842
|
+
declare class CreateCompanyOperation extends WriteOperation<CreateCompanyInput, CompanyWriteResult> {
|
|
843
|
+
protected readonly operation = "createCompany";
|
|
844
|
+
protected readonly contract: MutationDefinition;
|
|
845
|
+
/** Create one company by external ID with bounded sends. */
|
|
846
|
+
invoke(call: Call, input: CreateCompanyInput): Promise<MutationAttempt<CompanyWriteResult>>;
|
|
847
|
+
}
|
|
848
|
+
/** Create or replace a company's name using its external ID. */
|
|
849
|
+
declare class UpsertCompanyOperation extends WriteOperation<UpsertCompanyInput, CompanyWriteResult> {
|
|
850
|
+
protected readonly operation = "upsertCompany";
|
|
851
|
+
protected readonly contract: MutationDefinition;
|
|
852
|
+
/** Create or replace a company's name using its external ID. */
|
|
853
|
+
invoke(call: Call, input: UpsertCompanyInput): Promise<MutationAttempt<CompanyWriteResult>>;
|
|
854
|
+
}
|
|
855
|
+
/** Delete a company by external ID. */
|
|
856
|
+
declare class DeleteCompanyOperation extends WriteOperation<DeleteCompanyInput, DeletedCompany> {
|
|
857
|
+
protected readonly operation = "deleteCompany";
|
|
858
|
+
protected readonly contract: MutationDefinition;
|
|
859
|
+
/** Delete a company by external ID. */
|
|
860
|
+
invoke(call: Call, input: DeleteCompanyInput): Promise<MutationAttempt<DeletedCompany>>;
|
|
861
|
+
}
|
|
862
|
+
/** Get an activity cursor for an ISO 8601 date and time. */
|
|
863
|
+
declare class GetActivityPagingTokenOperation extends ReadOperation<GetActivityPagingTokenInput, ActivityPagingToken> {
|
|
864
|
+
protected readonly operation = "getActivityPagingToken";
|
|
865
|
+
protected readonly contract: QueryDefinition;
|
|
866
|
+
/** Get an activity cursor for an ISO 8601 date and time. */
|
|
867
|
+
invoke(call: Call, input: GetActivityPagingTokenInput): Promise<QueryAttempt<ActivityPagingToken>>;
|
|
868
|
+
}
|
|
869
|
+
/** List activity type IDs and names without provider attributes. */
|
|
870
|
+
declare class ListActivityTypesOperation extends ReadOperation<ListActivityTypesInput, ActivityTypes> {
|
|
871
|
+
protected readonly operation = "listActivityTypes";
|
|
872
|
+
protected readonly contract: QueryDefinition;
|
|
873
|
+
/** List activity type IDs and names without provider attributes. */
|
|
874
|
+
invoke(call: Call, _input: ListActivityTypesInput): Promise<QueryAttempt<ActivityTypes>>;
|
|
875
|
+
}
|
|
876
|
+
/** Read one page of activity IDs, lead IDs, types, and dates without activity attributes. */
|
|
877
|
+
declare class ListActivitiesOperation extends ReadOperation<ListActivitiesInput, ActivityPage> {
|
|
878
|
+
protected readonly operation = "listActivities";
|
|
879
|
+
protected readonly contract: QueryDefinition;
|
|
880
|
+
/** Read one page of activity IDs, lead IDs, types, and dates without activity attributes. */
|
|
881
|
+
invoke(call: Call, input: ListActivitiesInput): Promise<QueryAttempt<ActivityPage>>;
|
|
882
|
+
}
|
|
883
|
+
/** Create one lead by email with createOnly and bounded sends. */
|
|
884
|
+
declare class CreateLeadOperation extends WriteOperation<CreateLeadInput, CreatedLead> {
|
|
885
|
+
protected readonly operation = "createLead";
|
|
886
|
+
protected readonly contract: MutationDefinition;
|
|
887
|
+
/** Create one lead by email with createOnly and bounded sends. */
|
|
888
|
+
invoke(call: Call, input: CreateLeadInput): Promise<MutationAttempt<CreatedLead>>;
|
|
889
|
+
}
|
|
890
|
+
/** Create or replace selected names on the lead matching one email. */
|
|
891
|
+
declare class UpsertLeadByEmailOperation extends WriteOperation<UpsertLeadByEmailInput, SyncedLead> {
|
|
892
|
+
protected readonly operation = "upsertLeadByEmail";
|
|
893
|
+
protected readonly contract: MutationDefinition;
|
|
894
|
+
/** Create or replace selected names on the lead matching one email. */
|
|
895
|
+
invoke(call: Call, input: UpsertLeadByEmailInput): Promise<MutationAttempt<SyncedLead>>;
|
|
896
|
+
}
|
|
897
|
+
/** Find a cursor page of leads by email, returning only IDs and names. */
|
|
898
|
+
declare class FindLeadsByEmailOperation extends ReadOperation<FindLeadsByEmailInput, LeadProfilesPage> {
|
|
899
|
+
protected readonly operation = "findLeadsByEmail";
|
|
900
|
+
protected readonly contract: QueryDefinition;
|
|
901
|
+
/** Find a cursor page of leads by email, returning only IDs and names. */
|
|
902
|
+
invoke(call: Call, input: FindLeadsByEmailInput): Promise<QueryAttempt<LeadProfilesPage>>;
|
|
903
|
+
}
|
|
904
|
+
/** Set one lead's selected names by ID using Marketo updateOnly. */
|
|
905
|
+
declare class UpdateLeadOperation extends WriteOperation<UpdateLeadInput, UpdatedLead> {
|
|
906
|
+
protected readonly operation = "updateLead";
|
|
907
|
+
protected readonly contract: MutationDefinition;
|
|
908
|
+
/** Set one lead's selected names by ID using Marketo updateOnly. */
|
|
909
|
+
invoke(call: Call, input: UpdateLeadInput): Promise<MutationAttempt<UpdatedLead>>;
|
|
910
|
+
}
|
|
911
|
+
|
|
65
912
|
/** Injectable provider sender for tests and local applications. */
|
|
66
913
|
interface MarketoClientOptions {
|
|
67
914
|
/** Provider sender; omitted uses the SDK transport. */ send?: (request: ProviderRequest) => Promise<ProviderResponse>;
|
|
68
915
|
}
|
|
916
|
+
/** One bounded Marketo response or sanitized transport outcome. */
|
|
69
917
|
interface Exchange {
|
|
70
918
|
status: number;
|
|
71
919
|
body: Uint8Array;
|
|
72
920
|
retryAfterMs: number;
|
|
73
|
-
error?: 'credential' | 'request' | 'tooLarge';
|
|
921
|
+
error?: 'credential' | 'refresh' | 'request' | 'tooLarge' | 'read';
|
|
74
922
|
}
|
|
75
923
|
/** Authenticated Marketo client for selected lead fields. */
|
|
76
924
|
declare class MarketoClient {
|
|
@@ -83,8 +931,40 @@ declare class MarketoClient {
|
|
|
83
931
|
/** Validate subscription endpoints without contacting Marketo. */
|
|
84
932
|
constructor(config: Config, credentials: CredentialSource, options?: MarketoClientOptions);
|
|
85
933
|
/** Bind the getLead Query. */ getLead(): GetLeadOperation;
|
|
934
|
+
/** Bind the getOpportunityByExternalID operation. */
|
|
935
|
+
getOpportunityByExternalID(): GetOpportunityByExternalIDOperation;
|
|
936
|
+
/** Bind the createOpportunity operation. */
|
|
937
|
+
createOpportunity(): CreateOpportunityOperation;
|
|
938
|
+
/** Bind the upsertOpportunity operation. */
|
|
939
|
+
upsertOpportunity(): UpsertOpportunityOperation;
|
|
940
|
+
/** Bind the deleteOpportunity operation. */
|
|
941
|
+
deleteOpportunity(): DeleteOpportunityOperation;
|
|
942
|
+
/** Bind the getCompanyByExternalID operation. */
|
|
943
|
+
getCompanyByExternalID(): GetCompanyByExternalIDOperation;
|
|
944
|
+
/** Bind the createCompany operation. */
|
|
945
|
+
createCompany(): CreateCompanyOperation;
|
|
946
|
+
/** Bind the upsertCompany operation. */
|
|
947
|
+
upsertCompany(): UpsertCompanyOperation;
|
|
948
|
+
/** Bind the deleteCompany operation. */
|
|
949
|
+
deleteCompany(): DeleteCompanyOperation;
|
|
950
|
+
/** Bind the getActivityPagingToken operation. */
|
|
951
|
+
getActivityPagingToken(): GetActivityPagingTokenOperation;
|
|
952
|
+
/** Bind the listActivityTypes operation. */
|
|
953
|
+
listActivityTypes(): ListActivityTypesOperation;
|
|
954
|
+
/** Bind the listActivities operation. */
|
|
955
|
+
listActivities(): ListActivitiesOperation;
|
|
956
|
+
/** Bind the createLead operation. */
|
|
957
|
+
createLead(): CreateLeadOperation;
|
|
958
|
+
/** Bind the upsertLeadByEmail operation. */
|
|
959
|
+
upsertLeadByEmail(): UpsertLeadByEmailOperation;
|
|
960
|
+
/** Bind the findLeadsByEmail operation. */
|
|
961
|
+
findLeadsByEmail(): FindLeadsByEmailOperation;
|
|
962
|
+
/** Bind the updateLead operation. */
|
|
963
|
+
updateLead(): UpdateLeadOperation;
|
|
86
964
|
/** Resolve the token and perform one bounded lead lookup. */
|
|
87
|
-
get(call: Call, leadID:
|
|
965
|
+
get(call: Call, leadID: SignedInteger): Promise<Exchange>;
|
|
966
|
+
/** Resolve the token and send a bounded Marketo REST request. */
|
|
967
|
+
request(call: Call, method: string, path: string, payload?: object, signal?: AbortSignal): Promise<Exchange>;
|
|
88
968
|
}
|
|
89
969
|
/** Read one lead's ID and names from Marketo. */
|
|
90
970
|
declare class GetLeadOperation implements Query<GetLeadInput, LeadProfile> {
|
|
@@ -95,4 +975,4 @@ declare class GetLeadOperation implements Query<GetLeadInput, LeadProfile> {
|
|
|
95
975
|
invoke(call: Call, input: GetLeadInput): Promise<QueryAttempt<LeadProfile>>;
|
|
96
976
|
}
|
|
97
977
|
|
|
98
|
-
export { Config, Connection, ConnectorID, CredentialSource, GetLeadBranch, GetLeadBranchDefect, GetLeadBranchFound, GetLeadBranchInvalidResponse, GetLeadBranchNotFound, GetLeadBranchProviderRejected, GetLeadDefinition, GetLeadInput, GetLeadMetadata, GetLeadOperation, type GetLeadStepConfig, LeadProfile, MarketoClient, type MarketoClientOptions, ProviderID, newGetLeadStep, newProjectConnection };
|
|
978
|
+
export { ActivityPage, ActivityPagingToken, ActivityTypes, CompanyProfile, CompanyWriteResult, Config, Connection, ConnectorID, CreateCompanyBranch, CreateCompanyBranchAlreadyExists, CreateCompanyBranchCreated, CreateCompanyBranchDefect, CreateCompanyBranchProviderRejected, CreateCompanyBranchUncertain, CreateCompanyDefinition, CreateCompanyInput, CreateCompanyMetadata, CreateCompanyOperation, type CreateCompanyStepConfig, CreateLeadBranch, CreateLeadBranchAlreadyExists, CreateLeadBranchCreated, CreateLeadBranchDefect, CreateLeadBranchProviderRejected, CreateLeadBranchUncertain, CreateLeadDefinition, CreateLeadInput, CreateLeadMetadata, CreateLeadOperation, type CreateLeadStepConfig, CreateOpportunityBranch, CreateOpportunityBranchAlreadyExists, CreateOpportunityBranchCreated, CreateOpportunityBranchDefect, CreateOpportunityBranchProviderRejected, CreateOpportunityBranchUncertain, CreateOpportunityDefinition, CreateOpportunityInput, CreateOpportunityMetadata, CreateOpportunityOperation, type CreateOpportunityStepConfig, CreatedLead, CredentialSource, DeleteCompanyBranch, DeleteCompanyBranchDefect, DeleteCompanyBranchDeleted, DeleteCompanyBranchInvalidResponse, DeleteCompanyBranchProviderRejected, DeleteCompanyDefinition, DeleteCompanyInput, DeleteCompanyMetadata, DeleteCompanyOperation, type DeleteCompanyStepConfig, DeleteOpportunityBranch, DeleteOpportunityBranchDefect, DeleteOpportunityBranchDeleted, DeleteOpportunityBranchInvalidResponse, DeleteOpportunityBranchProviderRejected, DeleteOpportunityDefinition, DeleteOpportunityInput, DeleteOpportunityMetadata, DeleteOpportunityOperation, type DeleteOpportunityStepConfig, DeletedCompany, DeletedOpportunity, FindLeadsByEmailBranch, FindLeadsByEmailBranchDefect, FindLeadsByEmailBranchFound, FindLeadsByEmailBranchInvalidResponse, FindLeadsByEmailBranchProviderRejected, FindLeadsByEmailDefinition, FindLeadsByEmailInput, FindLeadsByEmailMetadata, FindLeadsByEmailOperation, type FindLeadsByEmailStepConfig, GetActivityPagingTokenBranch, GetActivityPagingTokenBranchDefect, GetActivityPagingTokenBranchFound, GetActivityPagingTokenBranchInvalidResponse, GetActivityPagingTokenBranchProviderRejected, GetActivityPagingTokenDefinition, GetActivityPagingTokenInput, GetActivityPagingTokenMetadata, GetActivityPagingTokenOperation, type GetActivityPagingTokenStepConfig, GetCompanyByExternalIDBranch, GetCompanyByExternalIDBranchDefect, GetCompanyByExternalIDBranchFound, GetCompanyByExternalIDBranchInvalidResponse, GetCompanyByExternalIDBranchNotFound, GetCompanyByExternalIDBranchProviderRejected, GetCompanyByExternalIDDefinition, GetCompanyByExternalIDInput, GetCompanyByExternalIDMetadata, GetCompanyByExternalIDOperation, type GetCompanyByExternalIDStepConfig, GetLeadBranch, GetLeadBranchDefect, GetLeadBranchFound, GetLeadBranchInvalidResponse, GetLeadBranchNotFound, GetLeadBranchProviderRejected, GetLeadDefinition, GetLeadInput, GetLeadMetadata, GetLeadOperation, type GetLeadStepConfig, GetOpportunityByExternalIDBranch, GetOpportunityByExternalIDBranchDefect, GetOpportunityByExternalIDBranchFound, GetOpportunityByExternalIDBranchInvalidResponse, GetOpportunityByExternalIDBranchNotFound, GetOpportunityByExternalIDBranchProviderRejected, GetOpportunityByExternalIDDefinition, GetOpportunityByExternalIDInput, GetOpportunityByExternalIDMetadata, GetOpportunityByExternalIDOperation, type GetOpportunityByExternalIDStepConfig, LeadProfile, LeadProfilesPage, ListActivitiesBranch, ListActivitiesBranchDefect, ListActivitiesBranchFound, ListActivitiesBranchInvalidResponse, ListActivitiesBranchProviderRejected, ListActivitiesDefinition, ListActivitiesInput, ListActivitiesMetadata, ListActivitiesOperation, type ListActivitiesStepConfig, ListActivityTypesBranch, ListActivityTypesBranchDefect, ListActivityTypesBranchFound, ListActivityTypesBranchInvalidResponse, ListActivityTypesBranchProviderRejected, ListActivityTypesDefinition, ListActivityTypesInput, ListActivityTypesMetadata, ListActivityTypesOperation, type ListActivityTypesStepConfig, MarketoClient, type MarketoClientOptions, OpportunityProfile, OpportunityWriteResult, ProviderID, SignedInteger, SyncedLead, UpdateLeadBranch, UpdateLeadBranchDefect, UpdateLeadBranchInvalidResponse, UpdateLeadBranchNotFound, UpdateLeadBranchProviderRejected, UpdateLeadBranchUpdated, UpdateLeadDefinition, UpdateLeadInput, UpdateLeadMetadata, UpdateLeadOperation, type UpdateLeadStepConfig, UpdatedLead, UpsertCompanyBranch, UpsertCompanyBranchDefect, UpsertCompanyBranchInvalidResponse, UpsertCompanyBranchProviderRejected, UpsertCompanyBranchSynced, UpsertCompanyDefinition, UpsertCompanyInput, UpsertCompanyMetadata, UpsertCompanyOperation, type UpsertCompanyStepConfig, UpsertLeadByEmailBranch, UpsertLeadByEmailBranchDefect, UpsertLeadByEmailBranchInvalidResponse, UpsertLeadByEmailBranchProviderRejected, UpsertLeadByEmailBranchSynced, UpsertLeadByEmailDefinition, UpsertLeadByEmailInput, UpsertLeadByEmailMetadata, UpsertLeadByEmailOperation, type UpsertLeadByEmailStepConfig, UpsertOpportunityBranch, UpsertOpportunityBranchDefect, UpsertOpportunityBranchInvalidResponse, UpsertOpportunityBranchProviderRejected, UpsertOpportunityBranchSynced, UpsertOpportunityDefinition, UpsertOpportunityInput, UpsertOpportunityMetadata, UpsertOpportunityOperation, type UpsertOpportunityStepConfig, newCreateCompanyStep, newCreateLeadStep, newCreateOpportunityStep, newDeleteCompanyStep, newDeleteOpportunityStep, newFindLeadsByEmailStep, newGetActivityPagingTokenStep, newGetCompanyByExternalIDStep, newGetLeadStep, newGetOpportunityByExternalIDStep, newListActivitiesStep, newListActivityTypesStep, newProjectConnection, newUpdateLeadStep, newUpsertCompanyStep, newUpsertLeadByEmailStep, newUpsertOpportunityStep };
|