@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/mock.js
CHANGED
|
@@ -1,13 +1,152 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ActivityMetadataSchema,
|
|
3
|
+
ActivityPageSchema,
|
|
4
|
+
ActivityPagingTokenSchema,
|
|
5
|
+
ActivityTypeSchema,
|
|
6
|
+
ActivityTypesSchema,
|
|
7
|
+
CompanyProfileSchema,
|
|
8
|
+
CompanyWriteResultSchema,
|
|
9
|
+
CreateCompanyDefinition,
|
|
10
|
+
CreateCompanyInputSchema,
|
|
11
|
+
CreateLeadDefinition,
|
|
12
|
+
CreateLeadInputSchema,
|
|
13
|
+
CreateOpportunityDefinition,
|
|
14
|
+
CreateOpportunityInputSchema,
|
|
15
|
+
CreatedLeadSchema,
|
|
16
|
+
DeleteCompanyDefinition,
|
|
17
|
+
DeleteCompanyInputSchema,
|
|
18
|
+
DeleteOpportunityDefinition,
|
|
19
|
+
DeleteOpportunityInputSchema,
|
|
20
|
+
DeletedCompanySchema,
|
|
21
|
+
DeletedOpportunitySchema,
|
|
22
|
+
FindLeadsByEmailDefinition,
|
|
23
|
+
FindLeadsByEmailInputSchema,
|
|
24
|
+
GetActivityPagingTokenDefinition,
|
|
25
|
+
GetActivityPagingTokenInputSchema,
|
|
26
|
+
GetCompanyByExternalIDDefinition,
|
|
27
|
+
GetCompanyByExternalIDInputSchema,
|
|
2
28
|
GetLeadDefinition,
|
|
3
29
|
GetLeadInputSchema,
|
|
30
|
+
GetOpportunityByExternalIDDefinition,
|
|
31
|
+
GetOpportunityByExternalIDInputSchema,
|
|
4
32
|
LeadProfileSchema,
|
|
33
|
+
LeadProfilesPageSchema,
|
|
34
|
+
ListActivitiesDefinition,
|
|
35
|
+
ListActivitiesInputSchema,
|
|
36
|
+
ListActivityTypesDefinition,
|
|
37
|
+
ListActivityTypesInputSchema,
|
|
38
|
+
OpportunityProfileSchema,
|
|
39
|
+
OpportunityWriteResultSchema,
|
|
5
40
|
ProviderID,
|
|
6
|
-
|
|
7
|
-
|
|
41
|
+
SyncedLeadSchema,
|
|
42
|
+
UpdateLeadDefinition,
|
|
43
|
+
UpdateLeadInputSchema,
|
|
44
|
+
UpdatedLeadSchema,
|
|
45
|
+
UpsertCompanyDefinition,
|
|
46
|
+
UpsertCompanyInputSchema,
|
|
47
|
+
UpsertLeadByEmailDefinition,
|
|
48
|
+
UpsertLeadByEmailInputSchema,
|
|
49
|
+
UpsertOpportunityDefinition,
|
|
50
|
+
UpsertOpportunityInputSchema,
|
|
51
|
+
newConnectionWithOperations,
|
|
52
|
+
parseExactIntegerJSON
|
|
53
|
+
} from "./chunk-AYOHNIYZ.js";
|
|
8
54
|
|
|
9
55
|
// src/generated/mock.ts
|
|
10
|
-
import { branchCase, retryCase, newQuery } from "@superdurable/connectors-sdk/connectormock";
|
|
56
|
+
import { branchCase, retryCase, uncertainCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
|
|
57
|
+
var emptyGetOpportunityByExternalIDInput = GetOpportunityByExternalIDInputSchema.parse({
|
|
58
|
+
"externalOpportunityId": ""
|
|
59
|
+
});
|
|
60
|
+
var emptyOpportunityProfile = OpportunityProfileSchema.parse({
|
|
61
|
+
"marketoGUID": "",
|
|
62
|
+
"name": ""
|
|
63
|
+
});
|
|
64
|
+
var emptyCreateOpportunityInput = CreateOpportunityInputSchema.parse({
|
|
65
|
+
"externalOpportunityId": "",
|
|
66
|
+
"name": ""
|
|
67
|
+
});
|
|
68
|
+
var emptyOpportunityWriteResult = OpportunityWriteResultSchema.parse({
|
|
69
|
+
"marketoGUID": "",
|
|
70
|
+
"status": ""
|
|
71
|
+
});
|
|
72
|
+
var emptyUpsertOpportunityInput = UpsertOpportunityInputSchema.parse({
|
|
73
|
+
"externalOpportunityId": "",
|
|
74
|
+
"name": ""
|
|
75
|
+
});
|
|
76
|
+
var emptyDeleteOpportunityInput = DeleteOpportunityInputSchema.parse({
|
|
77
|
+
"externalOpportunityId": ""
|
|
78
|
+
});
|
|
79
|
+
var emptyDeletedOpportunity = DeletedOpportunitySchema.parse({
|
|
80
|
+
"deleted": false
|
|
81
|
+
});
|
|
82
|
+
var emptyGetCompanyByExternalIDInput = GetCompanyByExternalIDInputSchema.parse({
|
|
83
|
+
"externalCompanyId": ""
|
|
84
|
+
});
|
|
85
|
+
var emptyCompanyProfile = CompanyProfileSchema.parse({
|
|
86
|
+
"id": 0,
|
|
87
|
+
"company": ""
|
|
88
|
+
});
|
|
89
|
+
var emptyCreateCompanyInput = CreateCompanyInputSchema.parse({
|
|
90
|
+
"externalCompanyId": "",
|
|
91
|
+
"company": ""
|
|
92
|
+
});
|
|
93
|
+
var emptyCompanyWriteResult = CompanyWriteResultSchema.parse({
|
|
94
|
+
"id": 0,
|
|
95
|
+
"status": ""
|
|
96
|
+
});
|
|
97
|
+
var emptyUpsertCompanyInput = UpsertCompanyInputSchema.parse({
|
|
98
|
+
"externalCompanyId": "",
|
|
99
|
+
"company": ""
|
|
100
|
+
});
|
|
101
|
+
var emptyDeleteCompanyInput = DeleteCompanyInputSchema.parse({
|
|
102
|
+
"externalCompanyId": ""
|
|
103
|
+
});
|
|
104
|
+
var emptyDeletedCompany = DeletedCompanySchema.parse({
|
|
105
|
+
"deleted": false
|
|
106
|
+
});
|
|
107
|
+
var emptyGetActivityPagingTokenInput = GetActivityPagingTokenInputSchema.parse({
|
|
108
|
+
"sinceDatetime": ""
|
|
109
|
+
});
|
|
110
|
+
var emptyActivityPagingToken = ActivityPagingTokenSchema.parse({
|
|
111
|
+
"nextPageToken": ""
|
|
112
|
+
});
|
|
113
|
+
var emptyListActivityTypesInput = ListActivityTypesInputSchema.parse({});
|
|
114
|
+
var emptyActivityType = ActivityTypeSchema.parse({
|
|
115
|
+
"id": 0,
|
|
116
|
+
"name": ""
|
|
117
|
+
});
|
|
118
|
+
var emptyActivityTypes = ActivityTypesSchema.parse({
|
|
119
|
+
"types": []
|
|
120
|
+
});
|
|
121
|
+
var emptyListActivitiesInput = ListActivitiesInputSchema.parse({
|
|
122
|
+
"nextPageToken": "",
|
|
123
|
+
"activityTypeIds": []
|
|
124
|
+
});
|
|
125
|
+
var emptyActivityMetadata = ActivityMetadataSchema.parse({
|
|
126
|
+
"marketoGUID": "",
|
|
127
|
+
"leadId": 0,
|
|
128
|
+
"activityTypeId": 0,
|
|
129
|
+
"activityDate": ""
|
|
130
|
+
});
|
|
131
|
+
var emptyActivityPage = ActivityPageSchema.parse({
|
|
132
|
+
"activities": [],
|
|
133
|
+
"nextPageToken": "",
|
|
134
|
+
"moreResult": false
|
|
135
|
+
});
|
|
136
|
+
var emptyCreateLeadInput = CreateLeadInputSchema.parse({
|
|
137
|
+
"email": ""
|
|
138
|
+
});
|
|
139
|
+
var emptyCreatedLead = CreatedLeadSchema.parse({
|
|
140
|
+
"id": 0,
|
|
141
|
+
"status": ""
|
|
142
|
+
});
|
|
143
|
+
var emptyUpsertLeadByEmailInput = UpsertLeadByEmailInputSchema.parse({
|
|
144
|
+
"email": ""
|
|
145
|
+
});
|
|
146
|
+
var emptySyncedLead = SyncedLeadSchema.parse({
|
|
147
|
+
"id": 0,
|
|
148
|
+
"status": ""
|
|
149
|
+
});
|
|
11
150
|
var emptyGetLeadInput = GetLeadInputSchema.parse({
|
|
12
151
|
"leadId": 0
|
|
13
152
|
});
|
|
@@ -16,6 +155,321 @@ var emptyLeadProfile = LeadProfileSchema.parse({
|
|
|
16
155
|
"firstName": "",
|
|
17
156
|
"lastName": ""
|
|
18
157
|
});
|
|
158
|
+
var emptyFindLeadsByEmailInput = FindLeadsByEmailInputSchema.parse({
|
|
159
|
+
"email": ""
|
|
160
|
+
});
|
|
161
|
+
var emptyLeadProfilesPage = LeadProfilesPageSchema.parse({
|
|
162
|
+
"leads": [],
|
|
163
|
+
"nextPageToken": ""
|
|
164
|
+
});
|
|
165
|
+
var emptyUpdateLeadInput = UpdateLeadInputSchema.parse({
|
|
166
|
+
"leadId": 0
|
|
167
|
+
});
|
|
168
|
+
var emptyUpdatedLead = UpdatedLeadSchema.parse({
|
|
169
|
+
"id": 0,
|
|
170
|
+
"status": ""
|
|
171
|
+
});
|
|
172
|
+
function getOpportunityByExternalIDFound(value, failure) {
|
|
173
|
+
return branchCase("found", value, failure);
|
|
174
|
+
}
|
|
175
|
+
function getOpportunityByExternalIDNotFound(value, failure) {
|
|
176
|
+
return branchCase("notFound", value, failure);
|
|
177
|
+
}
|
|
178
|
+
function getOpportunityByExternalIDProviderRejected(value, failure) {
|
|
179
|
+
return branchCase("providerRejected", value, failure);
|
|
180
|
+
}
|
|
181
|
+
function getOpportunityByExternalIDInvalidResponse(value, failure) {
|
|
182
|
+
return branchCase("invalidResponse", value, failure);
|
|
183
|
+
}
|
|
184
|
+
function getOpportunityByExternalIDDefect(value, failure) {
|
|
185
|
+
return branchCase("defect", value, failure);
|
|
186
|
+
}
|
|
187
|
+
function getOpportunityByExternalIDRetry(failure, retryAfterMs = 0) {
|
|
188
|
+
return retryCase(failure, retryAfterMs);
|
|
189
|
+
}
|
|
190
|
+
function getOpportunityByExternalIDFoundDefault() {
|
|
191
|
+
const value = OpportunityProfileSchema.parse(parseExactIntegerJSON('{"marketoGUID":"dff23271-f996-47d7-984f-f2676861b5fa","name":"Sample Opportunity"}'));
|
|
192
|
+
return branchCase("found", value);
|
|
193
|
+
}
|
|
194
|
+
function getOpportunityByExternalIDDefault() {
|
|
195
|
+
return getOpportunityByExternalIDFoundDefault();
|
|
196
|
+
}
|
|
197
|
+
function createOpportunityCreated(value, failure) {
|
|
198
|
+
return branchCase("created", value, failure);
|
|
199
|
+
}
|
|
200
|
+
function createOpportunityAlreadyExists(value, failure) {
|
|
201
|
+
return branchCase("alreadyExists", value, failure);
|
|
202
|
+
}
|
|
203
|
+
function createOpportunityProviderRejected(value, failure) {
|
|
204
|
+
return branchCase("providerRejected", value, failure);
|
|
205
|
+
}
|
|
206
|
+
function createOpportunityDefect(value, failure) {
|
|
207
|
+
return branchCase("defect", value, failure);
|
|
208
|
+
}
|
|
209
|
+
function createOpportunityRetry(failure, retryAfterMs = 0) {
|
|
210
|
+
return retryCase(failure, retryAfterMs);
|
|
211
|
+
}
|
|
212
|
+
function createOpportunityUncertain(value, failure) {
|
|
213
|
+
return uncertainCase(value, failure);
|
|
214
|
+
}
|
|
215
|
+
function createOpportunityCreatedDefault() {
|
|
216
|
+
const value = OpportunityWriteResultSchema.parse(parseExactIntegerJSON('{"marketoGUID":"dff23271-f996-47d7-984f-f2676861b5fa","status":"created"}'));
|
|
217
|
+
return branchCase("created", value);
|
|
218
|
+
}
|
|
219
|
+
function createOpportunityDefault() {
|
|
220
|
+
return createOpportunityCreatedDefault();
|
|
221
|
+
}
|
|
222
|
+
function upsertOpportunitySynced(value, failure) {
|
|
223
|
+
return branchCase("synced", value, failure);
|
|
224
|
+
}
|
|
225
|
+
function upsertOpportunityProviderRejected(value, failure) {
|
|
226
|
+
return branchCase("providerRejected", value, failure);
|
|
227
|
+
}
|
|
228
|
+
function upsertOpportunityInvalidResponse(value, failure) {
|
|
229
|
+
return branchCase("invalidResponse", value, failure);
|
|
230
|
+
}
|
|
231
|
+
function upsertOpportunityDefect(value, failure) {
|
|
232
|
+
return branchCase("defect", value, failure);
|
|
233
|
+
}
|
|
234
|
+
function upsertOpportunityRetry(failure, retryAfterMs = 0) {
|
|
235
|
+
return retryCase(failure, retryAfterMs);
|
|
236
|
+
}
|
|
237
|
+
function upsertOpportunitySyncedDefault() {
|
|
238
|
+
const value = OpportunityWriteResultSchema.parse(parseExactIntegerJSON('{"marketoGUID":"dff23271-f996-47d7-984f-f2676861b5fa","status":"updated"}'));
|
|
239
|
+
return branchCase("synced", value);
|
|
240
|
+
}
|
|
241
|
+
function upsertOpportunityDefault() {
|
|
242
|
+
return upsertOpportunitySyncedDefault();
|
|
243
|
+
}
|
|
244
|
+
function deleteOpportunityDeleted(value, failure) {
|
|
245
|
+
return branchCase("deleted", value, failure);
|
|
246
|
+
}
|
|
247
|
+
function deleteOpportunityProviderRejected(value, failure) {
|
|
248
|
+
return branchCase("providerRejected", value, failure);
|
|
249
|
+
}
|
|
250
|
+
function deleteOpportunityInvalidResponse(value, failure) {
|
|
251
|
+
return branchCase("invalidResponse", value, failure);
|
|
252
|
+
}
|
|
253
|
+
function deleteOpportunityDefect(value, failure) {
|
|
254
|
+
return branchCase("defect", value, failure);
|
|
255
|
+
}
|
|
256
|
+
function deleteOpportunityRetry(failure, retryAfterMs = 0) {
|
|
257
|
+
return retryCase(failure, retryAfterMs);
|
|
258
|
+
}
|
|
259
|
+
function deleteOpportunityDeletedDefault() {
|
|
260
|
+
const value = DeletedOpportunitySchema.parse(parseExactIntegerJSON('{"deleted":true}'));
|
|
261
|
+
return branchCase("deleted", value);
|
|
262
|
+
}
|
|
263
|
+
function deleteOpportunityDefault() {
|
|
264
|
+
return deleteOpportunityDeletedDefault();
|
|
265
|
+
}
|
|
266
|
+
function getCompanyByExternalIDFound(value, failure) {
|
|
267
|
+
return branchCase("found", value, failure);
|
|
268
|
+
}
|
|
269
|
+
function getCompanyByExternalIDNotFound(value, failure) {
|
|
270
|
+
return branchCase("notFound", value, failure);
|
|
271
|
+
}
|
|
272
|
+
function getCompanyByExternalIDProviderRejected(value, failure) {
|
|
273
|
+
return branchCase("providerRejected", value, failure);
|
|
274
|
+
}
|
|
275
|
+
function getCompanyByExternalIDInvalidResponse(value, failure) {
|
|
276
|
+
return branchCase("invalidResponse", value, failure);
|
|
277
|
+
}
|
|
278
|
+
function getCompanyByExternalIDDefect(value, failure) {
|
|
279
|
+
return branchCase("defect", value, failure);
|
|
280
|
+
}
|
|
281
|
+
function getCompanyByExternalIDRetry(failure, retryAfterMs = 0) {
|
|
282
|
+
return retryCase(failure, retryAfterMs);
|
|
283
|
+
}
|
|
284
|
+
function getCompanyByExternalIDFoundDefault() {
|
|
285
|
+
const value = CompanyProfileSchema.parse(parseExactIntegerJSON('{"company":"Sample Company","id":3433}'));
|
|
286
|
+
return branchCase("found", value);
|
|
287
|
+
}
|
|
288
|
+
function getCompanyByExternalIDDefault() {
|
|
289
|
+
return getCompanyByExternalIDFoundDefault();
|
|
290
|
+
}
|
|
291
|
+
function createCompanyCreated(value, failure) {
|
|
292
|
+
return branchCase("created", value, failure);
|
|
293
|
+
}
|
|
294
|
+
function createCompanyAlreadyExists(value, failure) {
|
|
295
|
+
return branchCase("alreadyExists", value, failure);
|
|
296
|
+
}
|
|
297
|
+
function createCompanyProviderRejected(value, failure) {
|
|
298
|
+
return branchCase("providerRejected", value, failure);
|
|
299
|
+
}
|
|
300
|
+
function createCompanyDefect(value, failure) {
|
|
301
|
+
return branchCase("defect", value, failure);
|
|
302
|
+
}
|
|
303
|
+
function createCompanyRetry(failure, retryAfterMs = 0) {
|
|
304
|
+
return retryCase(failure, retryAfterMs);
|
|
305
|
+
}
|
|
306
|
+
function createCompanyUncertain(value, failure) {
|
|
307
|
+
return uncertainCase(value, failure);
|
|
308
|
+
}
|
|
309
|
+
function createCompanyCreatedDefault() {
|
|
310
|
+
const value = CompanyWriteResultSchema.parse(parseExactIntegerJSON('{"id":3433,"status":"created"}'));
|
|
311
|
+
return branchCase("created", value);
|
|
312
|
+
}
|
|
313
|
+
function createCompanyDefault() {
|
|
314
|
+
return createCompanyCreatedDefault();
|
|
315
|
+
}
|
|
316
|
+
function upsertCompanySynced(value, failure) {
|
|
317
|
+
return branchCase("synced", value, failure);
|
|
318
|
+
}
|
|
319
|
+
function upsertCompanyProviderRejected(value, failure) {
|
|
320
|
+
return branchCase("providerRejected", value, failure);
|
|
321
|
+
}
|
|
322
|
+
function upsertCompanyInvalidResponse(value, failure) {
|
|
323
|
+
return branchCase("invalidResponse", value, failure);
|
|
324
|
+
}
|
|
325
|
+
function upsertCompanyDefect(value, failure) {
|
|
326
|
+
return branchCase("defect", value, failure);
|
|
327
|
+
}
|
|
328
|
+
function upsertCompanyRetry(failure, retryAfterMs = 0) {
|
|
329
|
+
return retryCase(failure, retryAfterMs);
|
|
330
|
+
}
|
|
331
|
+
function upsertCompanySyncedDefault() {
|
|
332
|
+
const value = CompanyWriteResultSchema.parse(parseExactIntegerJSON('{"id":3433,"status":"updated"}'));
|
|
333
|
+
return branchCase("synced", value);
|
|
334
|
+
}
|
|
335
|
+
function upsertCompanyDefault() {
|
|
336
|
+
return upsertCompanySyncedDefault();
|
|
337
|
+
}
|
|
338
|
+
function deleteCompanyDeleted(value, failure) {
|
|
339
|
+
return branchCase("deleted", value, failure);
|
|
340
|
+
}
|
|
341
|
+
function deleteCompanyProviderRejected(value, failure) {
|
|
342
|
+
return branchCase("providerRejected", value, failure);
|
|
343
|
+
}
|
|
344
|
+
function deleteCompanyInvalidResponse(value, failure) {
|
|
345
|
+
return branchCase("invalidResponse", value, failure);
|
|
346
|
+
}
|
|
347
|
+
function deleteCompanyDefect(value, failure) {
|
|
348
|
+
return branchCase("defect", value, failure);
|
|
349
|
+
}
|
|
350
|
+
function deleteCompanyRetry(failure, retryAfterMs = 0) {
|
|
351
|
+
return retryCase(failure, retryAfterMs);
|
|
352
|
+
}
|
|
353
|
+
function deleteCompanyDeletedDefault() {
|
|
354
|
+
const value = DeletedCompanySchema.parse(parseExactIntegerJSON('{"deleted":true}'));
|
|
355
|
+
return branchCase("deleted", value);
|
|
356
|
+
}
|
|
357
|
+
function deleteCompanyDefault() {
|
|
358
|
+
return deleteCompanyDeletedDefault();
|
|
359
|
+
}
|
|
360
|
+
function getActivityPagingTokenFound(value, failure) {
|
|
361
|
+
return branchCase("found", value, failure);
|
|
362
|
+
}
|
|
363
|
+
function getActivityPagingTokenProviderRejected(value, failure) {
|
|
364
|
+
return branchCase("providerRejected", value, failure);
|
|
365
|
+
}
|
|
366
|
+
function getActivityPagingTokenInvalidResponse(value, failure) {
|
|
367
|
+
return branchCase("invalidResponse", value, failure);
|
|
368
|
+
}
|
|
369
|
+
function getActivityPagingTokenDefect(value, failure) {
|
|
370
|
+
return branchCase("defect", value, failure);
|
|
371
|
+
}
|
|
372
|
+
function getActivityPagingTokenRetry(failure, retryAfterMs = 0) {
|
|
373
|
+
return retryCase(failure, retryAfterMs);
|
|
374
|
+
}
|
|
375
|
+
function getActivityPagingTokenFoundDefault() {
|
|
376
|
+
const value = ActivityPagingTokenSchema.parse(parseExactIntegerJSON('{"nextPageToken":"SAMPLE_ACTIVITY_CURSOR"}'));
|
|
377
|
+
return branchCase("found", value);
|
|
378
|
+
}
|
|
379
|
+
function getActivityPagingTokenDefault() {
|
|
380
|
+
return getActivityPagingTokenFoundDefault();
|
|
381
|
+
}
|
|
382
|
+
function listActivityTypesFound(value, failure) {
|
|
383
|
+
return branchCase("found", value, failure);
|
|
384
|
+
}
|
|
385
|
+
function listActivityTypesProviderRejected(value, failure) {
|
|
386
|
+
return branchCase("providerRejected", value, failure);
|
|
387
|
+
}
|
|
388
|
+
function listActivityTypesInvalidResponse(value, failure) {
|
|
389
|
+
return branchCase("invalidResponse", value, failure);
|
|
390
|
+
}
|
|
391
|
+
function listActivityTypesDefect(value, failure) {
|
|
392
|
+
return branchCase("defect", value, failure);
|
|
393
|
+
}
|
|
394
|
+
function listActivityTypesRetry(failure, retryAfterMs = 0) {
|
|
395
|
+
return retryCase(failure, retryAfterMs);
|
|
396
|
+
}
|
|
397
|
+
function listActivityTypesFoundDefault() {
|
|
398
|
+
const value = ActivityTypesSchema.parse(parseExactIntegerJSON('{"types":[{"id":2,"name":"Fill Out Form"}]}'));
|
|
399
|
+
return branchCase("found", value);
|
|
400
|
+
}
|
|
401
|
+
function listActivityTypesDefault() {
|
|
402
|
+
return listActivityTypesFoundDefault();
|
|
403
|
+
}
|
|
404
|
+
function listActivitiesFound(value, failure) {
|
|
405
|
+
return branchCase("found", value, failure);
|
|
406
|
+
}
|
|
407
|
+
function listActivitiesProviderRejected(value, failure) {
|
|
408
|
+
return branchCase("providerRejected", value, failure);
|
|
409
|
+
}
|
|
410
|
+
function listActivitiesInvalidResponse(value, failure) {
|
|
411
|
+
return branchCase("invalidResponse", value, failure);
|
|
412
|
+
}
|
|
413
|
+
function listActivitiesDefect(value, failure) {
|
|
414
|
+
return branchCase("defect", value, failure);
|
|
415
|
+
}
|
|
416
|
+
function listActivitiesRetry(failure, retryAfterMs = 0) {
|
|
417
|
+
return retryCase(failure, retryAfterMs);
|
|
418
|
+
}
|
|
419
|
+
function listActivitiesFoundDefault() {
|
|
420
|
+
const value = ActivityPageSchema.parse(parseExactIntegerJSON('{"activities":[{"activityDate":"2026-01-01T00:00:00Z","activityTypeId":2,"leadId":318581,"marketoGUID":"102988"}],"moreResult":false,"nextPageToken":"SAMPLE_NEXT_CURSOR"}'));
|
|
421
|
+
return branchCase("found", value);
|
|
422
|
+
}
|
|
423
|
+
function listActivitiesDefault() {
|
|
424
|
+
return listActivitiesFoundDefault();
|
|
425
|
+
}
|
|
426
|
+
function createLeadCreated(value, failure) {
|
|
427
|
+
return branchCase("created", value, failure);
|
|
428
|
+
}
|
|
429
|
+
function createLeadAlreadyExists(value, failure) {
|
|
430
|
+
return branchCase("alreadyExists", value, failure);
|
|
431
|
+
}
|
|
432
|
+
function createLeadProviderRejected(value, failure) {
|
|
433
|
+
return branchCase("providerRejected", value, failure);
|
|
434
|
+
}
|
|
435
|
+
function createLeadDefect(value, failure) {
|
|
436
|
+
return branchCase("defect", value, failure);
|
|
437
|
+
}
|
|
438
|
+
function createLeadRetry(failure, retryAfterMs = 0) {
|
|
439
|
+
return retryCase(failure, retryAfterMs);
|
|
440
|
+
}
|
|
441
|
+
function createLeadUncertain(value, failure) {
|
|
442
|
+
return uncertainCase(value, failure);
|
|
443
|
+
}
|
|
444
|
+
function createLeadCreatedDefault() {
|
|
445
|
+
const value = CreatedLeadSchema.parse(parseExactIntegerJSON('{"id":318582,"status":"created"}'));
|
|
446
|
+
return branchCase("created", value);
|
|
447
|
+
}
|
|
448
|
+
function createLeadDefault() {
|
|
449
|
+
return createLeadCreatedDefault();
|
|
450
|
+
}
|
|
451
|
+
function upsertLeadByEmailSynced(value, failure) {
|
|
452
|
+
return branchCase("synced", value, failure);
|
|
453
|
+
}
|
|
454
|
+
function upsertLeadByEmailProviderRejected(value, failure) {
|
|
455
|
+
return branchCase("providerRejected", value, failure);
|
|
456
|
+
}
|
|
457
|
+
function upsertLeadByEmailInvalidResponse(value, failure) {
|
|
458
|
+
return branchCase("invalidResponse", value, failure);
|
|
459
|
+
}
|
|
460
|
+
function upsertLeadByEmailDefect(value, failure) {
|
|
461
|
+
return branchCase("defect", value, failure);
|
|
462
|
+
}
|
|
463
|
+
function upsertLeadByEmailRetry(failure, retryAfterMs = 0) {
|
|
464
|
+
return retryCase(failure, retryAfterMs);
|
|
465
|
+
}
|
|
466
|
+
function upsertLeadByEmailSyncedDefault() {
|
|
467
|
+
const value = SyncedLeadSchema.parse(parseExactIntegerJSON('{"id":318581,"status":"updated"}'));
|
|
468
|
+
return branchCase("synced", value);
|
|
469
|
+
}
|
|
470
|
+
function upsertLeadByEmailDefault() {
|
|
471
|
+
return upsertLeadByEmailSyncedDefault();
|
|
472
|
+
}
|
|
19
473
|
function getLeadFound(value, failure) {
|
|
20
474
|
return branchCase("found", value, failure);
|
|
21
475
|
}
|
|
@@ -35,34 +489,261 @@ function getLeadRetry(failure, retryAfterMs = 0) {
|
|
|
35
489
|
return retryCase(failure, retryAfterMs);
|
|
36
490
|
}
|
|
37
491
|
function getLeadFoundDefault() {
|
|
38
|
-
const value = LeadProfileSchema.parse({
|
|
492
|
+
const value = LeadProfileSchema.parse(parseExactIntegerJSON('{"firstName":"Sample","id":318581,"lastName":"Lead"}'));
|
|
39
493
|
return branchCase("found", value);
|
|
40
494
|
}
|
|
41
495
|
function getLeadDefault() {
|
|
42
496
|
return getLeadFoundDefault();
|
|
43
497
|
}
|
|
498
|
+
function findLeadsByEmailFound(value, failure) {
|
|
499
|
+
return branchCase("found", value, failure);
|
|
500
|
+
}
|
|
501
|
+
function findLeadsByEmailProviderRejected(value, failure) {
|
|
502
|
+
return branchCase("providerRejected", value, failure);
|
|
503
|
+
}
|
|
504
|
+
function findLeadsByEmailInvalidResponse(value, failure) {
|
|
505
|
+
return branchCase("invalidResponse", value, failure);
|
|
506
|
+
}
|
|
507
|
+
function findLeadsByEmailDefect(value, failure) {
|
|
508
|
+
return branchCase("defect", value, failure);
|
|
509
|
+
}
|
|
510
|
+
function findLeadsByEmailRetry(failure, retryAfterMs = 0) {
|
|
511
|
+
return retryCase(failure, retryAfterMs);
|
|
512
|
+
}
|
|
513
|
+
function findLeadsByEmailFoundDefault() {
|
|
514
|
+
const value = LeadProfilesPageSchema.parse(parseExactIntegerJSON('{"leads":[{"firstName":"Sample","id":318581,"lastName":"Lead"}],"nextPageToken":""}'));
|
|
515
|
+
return branchCase("found", value);
|
|
516
|
+
}
|
|
517
|
+
function findLeadsByEmailDefault() {
|
|
518
|
+
return findLeadsByEmailFoundDefault();
|
|
519
|
+
}
|
|
520
|
+
function updateLeadUpdated(value, failure) {
|
|
521
|
+
return branchCase("updated", value, failure);
|
|
522
|
+
}
|
|
523
|
+
function updateLeadNotFound(value, failure) {
|
|
524
|
+
return branchCase("notFound", value, failure);
|
|
525
|
+
}
|
|
526
|
+
function updateLeadProviderRejected(value, failure) {
|
|
527
|
+
return branchCase("providerRejected", value, failure);
|
|
528
|
+
}
|
|
529
|
+
function updateLeadInvalidResponse(value, failure) {
|
|
530
|
+
return branchCase("invalidResponse", value, failure);
|
|
531
|
+
}
|
|
532
|
+
function updateLeadDefect(value, failure) {
|
|
533
|
+
return branchCase("defect", value, failure);
|
|
534
|
+
}
|
|
535
|
+
function updateLeadRetry(failure, retryAfterMs = 0) {
|
|
536
|
+
return retryCase(failure, retryAfterMs);
|
|
537
|
+
}
|
|
538
|
+
function updateLeadUpdatedDefault() {
|
|
539
|
+
const value = UpdatedLeadSchema.parse(parseExactIntegerJSON('{"id":318581,"status":"updated"}'));
|
|
540
|
+
return branchCase("updated", value);
|
|
541
|
+
}
|
|
542
|
+
function updateLeadDefault() {
|
|
543
|
+
return updateLeadUpdatedDefault();
|
|
544
|
+
}
|
|
44
545
|
var GeneratedMock = class {
|
|
546
|
+
#getOpportunityByExternalID;
|
|
547
|
+
#createOpportunity;
|
|
548
|
+
#upsertOpportunity;
|
|
549
|
+
#deleteOpportunity;
|
|
550
|
+
#getCompanyByExternalID;
|
|
551
|
+
#createCompany;
|
|
552
|
+
#upsertCompany;
|
|
553
|
+
#deleteCompany;
|
|
554
|
+
#getActivityPagingToken;
|
|
555
|
+
#listActivityTypes;
|
|
556
|
+
#listActivities;
|
|
557
|
+
#createLead;
|
|
558
|
+
#upsertLeadByEmail;
|
|
45
559
|
#getLead;
|
|
560
|
+
#findLeadsByEmail;
|
|
561
|
+
#updateLead;
|
|
46
562
|
#connection;
|
|
47
563
|
constructor(connectionName) {
|
|
564
|
+
this.#getOpportunityByExternalID = newQuery(GetOpportunityByExternalIDDefinition).default(getOpportunityByExternalIDDefault());
|
|
565
|
+
this.#createOpportunity = newMutation(CreateOpportunityDefinition).default(createOpportunityDefault());
|
|
566
|
+
this.#upsertOpportunity = newMutation(UpsertOpportunityDefinition).default(upsertOpportunityDefault());
|
|
567
|
+
this.#deleteOpportunity = newMutation(DeleteOpportunityDefinition).default(deleteOpportunityDefault());
|
|
568
|
+
this.#getCompanyByExternalID = newQuery(GetCompanyByExternalIDDefinition).default(getCompanyByExternalIDDefault());
|
|
569
|
+
this.#createCompany = newMutation(CreateCompanyDefinition).default(createCompanyDefault());
|
|
570
|
+
this.#upsertCompany = newMutation(UpsertCompanyDefinition).default(upsertCompanyDefault());
|
|
571
|
+
this.#deleteCompany = newMutation(DeleteCompanyDefinition).default(deleteCompanyDefault());
|
|
572
|
+
this.#getActivityPagingToken = newQuery(GetActivityPagingTokenDefinition).default(getActivityPagingTokenDefault());
|
|
573
|
+
this.#listActivityTypes = newQuery(ListActivityTypesDefinition).default(listActivityTypesDefault());
|
|
574
|
+
this.#listActivities = newQuery(ListActivitiesDefinition).default(listActivitiesDefault());
|
|
575
|
+
this.#createLead = newMutation(CreateLeadDefinition).default(createLeadDefault());
|
|
576
|
+
this.#upsertLeadByEmail = newMutation(UpsertLeadByEmailDefinition).default(upsertLeadByEmailDefault());
|
|
48
577
|
this.#getLead = newQuery(GetLeadDefinition).default(getLeadDefault());
|
|
578
|
+
this.#findLeadsByEmail = newQuery(FindLeadsByEmailDefinition).default(findLeadsByEmailDefault());
|
|
579
|
+
this.#updateLead = newMutation(UpdateLeadDefinition).default(updateLeadDefault());
|
|
49
580
|
this.#connection = newConnectionWithOperations(this, { provider: ProviderID, name: connectionName });
|
|
50
581
|
}
|
|
51
582
|
connection() {
|
|
52
583
|
return this.#connection;
|
|
53
584
|
}
|
|
585
|
+
getOpportunityByExternalID() {
|
|
586
|
+
return this.#getOpportunityByExternalID;
|
|
587
|
+
}
|
|
588
|
+
createOpportunity() {
|
|
589
|
+
return this.#createOpportunity;
|
|
590
|
+
}
|
|
591
|
+
upsertOpportunity() {
|
|
592
|
+
return this.#upsertOpportunity;
|
|
593
|
+
}
|
|
594
|
+
deleteOpportunity() {
|
|
595
|
+
return this.#deleteOpportunity;
|
|
596
|
+
}
|
|
597
|
+
getCompanyByExternalID() {
|
|
598
|
+
return this.#getCompanyByExternalID;
|
|
599
|
+
}
|
|
600
|
+
createCompany() {
|
|
601
|
+
return this.#createCompany;
|
|
602
|
+
}
|
|
603
|
+
upsertCompany() {
|
|
604
|
+
return this.#upsertCompany;
|
|
605
|
+
}
|
|
606
|
+
deleteCompany() {
|
|
607
|
+
return this.#deleteCompany;
|
|
608
|
+
}
|
|
609
|
+
getActivityPagingToken() {
|
|
610
|
+
return this.#getActivityPagingToken;
|
|
611
|
+
}
|
|
612
|
+
listActivityTypes() {
|
|
613
|
+
return this.#listActivityTypes;
|
|
614
|
+
}
|
|
615
|
+
listActivities() {
|
|
616
|
+
return this.#listActivities;
|
|
617
|
+
}
|
|
618
|
+
createLead() {
|
|
619
|
+
return this.#createLead;
|
|
620
|
+
}
|
|
621
|
+
upsertLeadByEmail() {
|
|
622
|
+
return this.#upsertLeadByEmail;
|
|
623
|
+
}
|
|
54
624
|
getLead() {
|
|
55
625
|
return this.#getLead;
|
|
56
626
|
}
|
|
627
|
+
findLeadsByEmail() {
|
|
628
|
+
return this.#findLeadsByEmail;
|
|
629
|
+
}
|
|
630
|
+
updateLead() {
|
|
631
|
+
return this.#updateLead;
|
|
632
|
+
}
|
|
57
633
|
assertNoFailures() {
|
|
634
|
+
this.#getOpportunityByExternalID.assertNoFailures();
|
|
635
|
+
this.#createOpportunity.assertNoFailures();
|
|
636
|
+
this.#upsertOpportunity.assertNoFailures();
|
|
637
|
+
this.#deleteOpportunity.assertNoFailures();
|
|
638
|
+
this.#getCompanyByExternalID.assertNoFailures();
|
|
639
|
+
this.#createCompany.assertNoFailures();
|
|
640
|
+
this.#upsertCompany.assertNoFailures();
|
|
641
|
+
this.#deleteCompany.assertNoFailures();
|
|
642
|
+
this.#getActivityPagingToken.assertNoFailures();
|
|
643
|
+
this.#listActivityTypes.assertNoFailures();
|
|
644
|
+
this.#listActivities.assertNoFailures();
|
|
645
|
+
this.#createLead.assertNoFailures();
|
|
646
|
+
this.#upsertLeadByEmail.assertNoFailures();
|
|
58
647
|
this.#getLead.assertNoFailures();
|
|
648
|
+
this.#findLeadsByEmail.assertNoFailures();
|
|
649
|
+
this.#updateLead.assertNoFailures();
|
|
59
650
|
}
|
|
60
651
|
};
|
|
61
652
|
export {
|
|
62
653
|
GeneratedMock,
|
|
63
654
|
GeneratedMock as Mock,
|
|
655
|
+
createCompanyAlreadyExists,
|
|
656
|
+
createCompanyCreated,
|
|
657
|
+
createCompanyCreatedDefault,
|
|
658
|
+
createCompanyDefault,
|
|
659
|
+
createCompanyDefect,
|
|
660
|
+
createCompanyProviderRejected,
|
|
661
|
+
createCompanyRetry,
|
|
662
|
+
createCompanyUncertain,
|
|
663
|
+
createLeadAlreadyExists,
|
|
664
|
+
createLeadCreated,
|
|
665
|
+
createLeadCreatedDefault,
|
|
666
|
+
createLeadDefault,
|
|
667
|
+
createLeadDefect,
|
|
668
|
+
createLeadProviderRejected,
|
|
669
|
+
createLeadRetry,
|
|
670
|
+
createLeadUncertain,
|
|
671
|
+
createOpportunityAlreadyExists,
|
|
672
|
+
createOpportunityCreated,
|
|
673
|
+
createOpportunityCreatedDefault,
|
|
674
|
+
createOpportunityDefault,
|
|
675
|
+
createOpportunityDefect,
|
|
676
|
+
createOpportunityProviderRejected,
|
|
677
|
+
createOpportunityRetry,
|
|
678
|
+
createOpportunityUncertain,
|
|
679
|
+
deleteCompanyDefault,
|
|
680
|
+
deleteCompanyDefect,
|
|
681
|
+
deleteCompanyDeleted,
|
|
682
|
+
deleteCompanyDeletedDefault,
|
|
683
|
+
deleteCompanyInvalidResponse,
|
|
684
|
+
deleteCompanyProviderRejected,
|
|
685
|
+
deleteCompanyRetry,
|
|
686
|
+
deleteOpportunityDefault,
|
|
687
|
+
deleteOpportunityDefect,
|
|
688
|
+
deleteOpportunityDeleted,
|
|
689
|
+
deleteOpportunityDeletedDefault,
|
|
690
|
+
deleteOpportunityInvalidResponse,
|
|
691
|
+
deleteOpportunityProviderRejected,
|
|
692
|
+
deleteOpportunityRetry,
|
|
693
|
+
emptyActivityMetadata,
|
|
694
|
+
emptyActivityPage,
|
|
695
|
+
emptyActivityPagingToken,
|
|
696
|
+
emptyActivityType,
|
|
697
|
+
emptyActivityTypes,
|
|
698
|
+
emptyCompanyProfile,
|
|
699
|
+
emptyCompanyWriteResult,
|
|
700
|
+
emptyCreateCompanyInput,
|
|
701
|
+
emptyCreateLeadInput,
|
|
702
|
+
emptyCreateOpportunityInput,
|
|
703
|
+
emptyCreatedLead,
|
|
704
|
+
emptyDeleteCompanyInput,
|
|
705
|
+
emptyDeleteOpportunityInput,
|
|
706
|
+
emptyDeletedCompany,
|
|
707
|
+
emptyDeletedOpportunity,
|
|
708
|
+
emptyFindLeadsByEmailInput,
|
|
709
|
+
emptyGetActivityPagingTokenInput,
|
|
710
|
+
emptyGetCompanyByExternalIDInput,
|
|
64
711
|
emptyGetLeadInput,
|
|
712
|
+
emptyGetOpportunityByExternalIDInput,
|
|
65
713
|
emptyLeadProfile,
|
|
714
|
+
emptyLeadProfilesPage,
|
|
715
|
+
emptyListActivitiesInput,
|
|
716
|
+
emptyListActivityTypesInput,
|
|
717
|
+
emptyOpportunityProfile,
|
|
718
|
+
emptyOpportunityWriteResult,
|
|
719
|
+
emptySyncedLead,
|
|
720
|
+
emptyUpdateLeadInput,
|
|
721
|
+
emptyUpdatedLead,
|
|
722
|
+
emptyUpsertCompanyInput,
|
|
723
|
+
emptyUpsertLeadByEmailInput,
|
|
724
|
+
emptyUpsertOpportunityInput,
|
|
725
|
+
findLeadsByEmailDefault,
|
|
726
|
+
findLeadsByEmailDefect,
|
|
727
|
+
findLeadsByEmailFound,
|
|
728
|
+
findLeadsByEmailFoundDefault,
|
|
729
|
+
findLeadsByEmailInvalidResponse,
|
|
730
|
+
findLeadsByEmailProviderRejected,
|
|
731
|
+
findLeadsByEmailRetry,
|
|
732
|
+
getActivityPagingTokenDefault,
|
|
733
|
+
getActivityPagingTokenDefect,
|
|
734
|
+
getActivityPagingTokenFound,
|
|
735
|
+
getActivityPagingTokenFoundDefault,
|
|
736
|
+
getActivityPagingTokenInvalidResponse,
|
|
737
|
+
getActivityPagingTokenProviderRejected,
|
|
738
|
+
getActivityPagingTokenRetry,
|
|
739
|
+
getCompanyByExternalIDDefault,
|
|
740
|
+
getCompanyByExternalIDDefect,
|
|
741
|
+
getCompanyByExternalIDFound,
|
|
742
|
+
getCompanyByExternalIDFoundDefault,
|
|
743
|
+
getCompanyByExternalIDInvalidResponse,
|
|
744
|
+
getCompanyByExternalIDNotFound,
|
|
745
|
+
getCompanyByExternalIDProviderRejected,
|
|
746
|
+
getCompanyByExternalIDRetry,
|
|
66
747
|
getLeadDefault,
|
|
67
748
|
getLeadDefect,
|
|
68
749
|
getLeadFound,
|
|
@@ -70,5 +751,56 @@ export {
|
|
|
70
751
|
getLeadInvalidResponse,
|
|
71
752
|
getLeadNotFound,
|
|
72
753
|
getLeadProviderRejected,
|
|
73
|
-
getLeadRetry
|
|
754
|
+
getLeadRetry,
|
|
755
|
+
getOpportunityByExternalIDDefault,
|
|
756
|
+
getOpportunityByExternalIDDefect,
|
|
757
|
+
getOpportunityByExternalIDFound,
|
|
758
|
+
getOpportunityByExternalIDFoundDefault,
|
|
759
|
+
getOpportunityByExternalIDInvalidResponse,
|
|
760
|
+
getOpportunityByExternalIDNotFound,
|
|
761
|
+
getOpportunityByExternalIDProviderRejected,
|
|
762
|
+
getOpportunityByExternalIDRetry,
|
|
763
|
+
listActivitiesDefault,
|
|
764
|
+
listActivitiesDefect,
|
|
765
|
+
listActivitiesFound,
|
|
766
|
+
listActivitiesFoundDefault,
|
|
767
|
+
listActivitiesInvalidResponse,
|
|
768
|
+
listActivitiesProviderRejected,
|
|
769
|
+
listActivitiesRetry,
|
|
770
|
+
listActivityTypesDefault,
|
|
771
|
+
listActivityTypesDefect,
|
|
772
|
+
listActivityTypesFound,
|
|
773
|
+
listActivityTypesFoundDefault,
|
|
774
|
+
listActivityTypesInvalidResponse,
|
|
775
|
+
listActivityTypesProviderRejected,
|
|
776
|
+
listActivityTypesRetry,
|
|
777
|
+
updateLeadDefault,
|
|
778
|
+
updateLeadDefect,
|
|
779
|
+
updateLeadInvalidResponse,
|
|
780
|
+
updateLeadNotFound,
|
|
781
|
+
updateLeadProviderRejected,
|
|
782
|
+
updateLeadRetry,
|
|
783
|
+
updateLeadUpdated,
|
|
784
|
+
updateLeadUpdatedDefault,
|
|
785
|
+
upsertCompanyDefault,
|
|
786
|
+
upsertCompanyDefect,
|
|
787
|
+
upsertCompanyInvalidResponse,
|
|
788
|
+
upsertCompanyProviderRejected,
|
|
789
|
+
upsertCompanyRetry,
|
|
790
|
+
upsertCompanySynced,
|
|
791
|
+
upsertCompanySyncedDefault,
|
|
792
|
+
upsertLeadByEmailDefault,
|
|
793
|
+
upsertLeadByEmailDefect,
|
|
794
|
+
upsertLeadByEmailInvalidResponse,
|
|
795
|
+
upsertLeadByEmailProviderRejected,
|
|
796
|
+
upsertLeadByEmailRetry,
|
|
797
|
+
upsertLeadByEmailSynced,
|
|
798
|
+
upsertLeadByEmailSyncedDefault,
|
|
799
|
+
upsertOpportunityDefault,
|
|
800
|
+
upsertOpportunityDefect,
|
|
801
|
+
upsertOpportunityInvalidResponse,
|
|
802
|
+
upsertOpportunityProviderRejected,
|
|
803
|
+
upsertOpportunityRetry,
|
|
804
|
+
upsertOpportunitySynced,
|
|
805
|
+
upsertOpportunitySyncedDefault
|
|
74
806
|
};
|