@superdurable/connector-constantcontact 0.0.0-stage → 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/dist/mock.js ADDED
@@ -0,0 +1,824 @@
1
+ import {
2
+ ActivitiesPageSchema,
3
+ ActivityMetadataSchema,
4
+ ConnectorID,
5
+ ContactListMetadataSchema,
6
+ ContactListsPageSchema,
7
+ ContactMetadataSchema,
8
+ ContactsPageSchema,
9
+ CreateContactDefinition,
10
+ CreateContactInputSchema,
11
+ CreateContactListDefinition,
12
+ CreateContactListInputSchema,
13
+ CreateSegmentDefinition,
14
+ CreateSegmentInputSchema,
15
+ DeleteContactDefinition,
16
+ DeleteContactInputSchema,
17
+ DeleteContactListDefinition,
18
+ DeleteContactListInputSchema,
19
+ DeleteContactListOutputSchema,
20
+ DeleteContactOutputSchema,
21
+ DeleteSegmentDefinition,
22
+ DeleteSegmentInputSchema,
23
+ DeleteSegmentOutputSchema,
24
+ GetActivityDefinition,
25
+ GetActivityInputSchema,
26
+ GetContactDefinition,
27
+ GetContactInputSchema,
28
+ GetContactListDefinition,
29
+ GetContactListInputSchema,
30
+ GetSegmentDefinition,
31
+ GetSegmentInputSchema,
32
+ ListActivitiesDefinition,
33
+ ListActivitiesInputSchema,
34
+ ListContactListsDefinition,
35
+ ListContactListsInputSchema,
36
+ ListContactsDefinition,
37
+ ListContactsInputSchema,
38
+ ListSegmentsDefinition,
39
+ ListSegmentsInputSchema,
40
+ ProviderID,
41
+ SegmentMetadataSchema,
42
+ SegmentsPageSchema,
43
+ UpdateContactDefinition,
44
+ UpdateContactInputSchema,
45
+ UpdateContactListDefinition,
46
+ UpdateContactListInputSchema,
47
+ UpdateSegmentDefinition,
48
+ UpdateSegmentInputSchema,
49
+ newConnectionWithOperations,
50
+ parseExactIntegerJSON
51
+ } from "./chunk-65ID4QLZ.js";
52
+
53
+ // src/generated/mock.ts
54
+ import { branchCase, retryCase, uncertainCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
55
+ var emptyGetSegmentInput = GetSegmentInputSchema.parse({
56
+ "segmentId": 0
57
+ });
58
+ var emptySegmentMetadata = SegmentMetadataSchema.parse({
59
+ "segmentId": 0,
60
+ "name": ""
61
+ });
62
+ var emptyListSegmentsInput = ListSegmentsInputSchema.parse({});
63
+ var emptySegmentsPage = SegmentsPageSchema.parse({
64
+ "segments": []
65
+ });
66
+ var emptyCreateSegmentInput = CreateSegmentInputSchema.parse({
67
+ "name": "",
68
+ "segmentCriteria": ""
69
+ });
70
+ var emptyUpdateSegmentInput = UpdateSegmentInputSchema.parse({
71
+ "segmentId": 0,
72
+ "name": "",
73
+ "segmentCriteria": ""
74
+ });
75
+ var emptyDeleteSegmentInput = DeleteSegmentInputSchema.parse({
76
+ "segmentId": 0
77
+ });
78
+ var emptyDeleteSegmentOutput = DeleteSegmentOutputSchema.parse({
79
+ "segmentId": 0
80
+ });
81
+ var emptyGetActivityInput = GetActivityInputSchema.parse({
82
+ "activityId": ""
83
+ });
84
+ var emptyActivityMetadata = ActivityMetadataSchema.parse({
85
+ "activityId": "",
86
+ "state": "",
87
+ "percentDone": 0
88
+ });
89
+ var emptyListActivitiesInput = ListActivitiesInputSchema.parse({});
90
+ var emptyActivitiesPage = ActivitiesPageSchema.parse({
91
+ "activities": []
92
+ });
93
+ var emptyCreateContactInput = CreateContactInputSchema.parse({
94
+ "emailAddress": "",
95
+ "emailPermission": "",
96
+ "createSource": ""
97
+ });
98
+ var emptyContactMetadata = ContactMetadataSchema.parse({
99
+ "contactId": ""
100
+ });
101
+ var emptyListContactsInput = ListContactsInputSchema.parse({});
102
+ var emptyContactsPage = ContactsPageSchema.parse({
103
+ "contacts": []
104
+ });
105
+ var emptyUpdateContactInput = UpdateContactInputSchema.parse({
106
+ "contactId": "",
107
+ "updateSource": ""
108
+ });
109
+ var emptyDeleteContactInput = DeleteContactInputSchema.parse({
110
+ "contactId": ""
111
+ });
112
+ var emptyDeleteContactOutput = DeleteContactOutputSchema.parse({
113
+ "contactId": ""
114
+ });
115
+ var emptyGetContactInput = GetContactInputSchema.parse({
116
+ "contactId": ""
117
+ });
118
+ var emptyGetContactListInput = GetContactListInputSchema.parse({
119
+ "listId": ""
120
+ });
121
+ var emptyContactListMetadata = ContactListMetadataSchema.parse({
122
+ "listId": "",
123
+ "name": "",
124
+ "favorite": false
125
+ });
126
+ var emptyListContactListsInput = ListContactListsInputSchema.parse({});
127
+ var emptyContactListsPage = ContactListsPageSchema.parse({
128
+ "lists": []
129
+ });
130
+ var emptyCreateContactListInput = CreateContactListInputSchema.parse({
131
+ "name": "",
132
+ "favorite": false
133
+ });
134
+ var emptyUpdateContactListInput = UpdateContactListInputSchema.parse({
135
+ "listId": "",
136
+ "name": "",
137
+ "description": "",
138
+ "favorite": false
139
+ });
140
+ var emptyDeleteContactListInput = DeleteContactListInputSchema.parse({
141
+ "listId": ""
142
+ });
143
+ var emptyDeleteContactListOutput = DeleteContactListOutputSchema.parse({
144
+ "listId": "",
145
+ "activityId": ""
146
+ });
147
+ function getSegmentFound(value, failure) {
148
+ return branchCase("found", value, failure);
149
+ }
150
+ function getSegmentNotFound(value, failure) {
151
+ return branchCase("notFound", value, failure);
152
+ }
153
+ function getSegmentProviderRejected(value, failure) {
154
+ return branchCase("providerRejected", value, failure);
155
+ }
156
+ function getSegmentInvalidResponse(value, failure) {
157
+ return branchCase("invalidResponse", value, failure);
158
+ }
159
+ function getSegmentDefect(value, failure) {
160
+ return branchCase("defect", value, failure);
161
+ }
162
+ function getSegmentRetry(failure, retryAfterMs = 0) {
163
+ return retryCase(failure, retryAfterMs);
164
+ }
165
+ function getSegmentFoundDefault() {
166
+ const value = SegmentMetadataSchema.parse(parseExactIntegerJSON('{"name":"Recent readers","segmentCriteria":"{\\"version\\":\\"1.0.0\\",\\"criteria\\":{\\"type\\":\\"and\\",\\"group\\":[]}}","segmentId":30}'));
167
+ return branchCase("found", value);
168
+ }
169
+ function getSegmentDefault() {
170
+ return getSegmentFoundDefault();
171
+ }
172
+ function listSegmentsListed(value, failure) {
173
+ return branchCase("listed", value, failure);
174
+ }
175
+ function listSegmentsProviderRejected(value, failure) {
176
+ return branchCase("providerRejected", value, failure);
177
+ }
178
+ function listSegmentsInvalidResponse(value, failure) {
179
+ return branchCase("invalidResponse", value, failure);
180
+ }
181
+ function listSegmentsDefect(value, failure) {
182
+ return branchCase("defect", value, failure);
183
+ }
184
+ function listSegmentsRetry(failure, retryAfterMs = 0) {
185
+ return retryCase(failure, retryAfterMs);
186
+ }
187
+ function listSegmentsListedDefault() {
188
+ const value = SegmentsPageSchema.parse(parseExactIntegerJSON('{"segments":[{"name":"Recent readers","segmentId":30}]}'));
189
+ return branchCase("listed", value);
190
+ }
191
+ function listSegmentsDefault() {
192
+ return listSegmentsListedDefault();
193
+ }
194
+ function createSegmentCreated(value, failure) {
195
+ return branchCase("created", value, failure);
196
+ }
197
+ function createSegmentAlreadyExists(value, failure) {
198
+ return branchCase("alreadyExists", value, failure);
199
+ }
200
+ function createSegmentProviderRejected(value, failure) {
201
+ return branchCase("providerRejected", value, failure);
202
+ }
203
+ function createSegmentDefect(value, failure) {
204
+ return branchCase("defect", value, failure);
205
+ }
206
+ function createSegmentRetry(failure, retryAfterMs = 0) {
207
+ return retryCase(failure, retryAfterMs);
208
+ }
209
+ function createSegmentUncertain(value, failure) {
210
+ return uncertainCase(value, failure);
211
+ }
212
+ function createSegmentCreatedDefault() {
213
+ const value = SegmentMetadataSchema.parse(parseExactIntegerJSON('{"name":"Recent readers","segmentCriteria":"{\\"version\\":\\"1.0.0\\",\\"criteria\\":{\\"type\\":\\"and\\",\\"group\\":[]}}","segmentId":30}'));
214
+ return branchCase("created", value);
215
+ }
216
+ function createSegmentDefault() {
217
+ return createSegmentCreatedDefault();
218
+ }
219
+ function updateSegmentUpdated(value, failure) {
220
+ return branchCase("updated", value, failure);
221
+ }
222
+ function updateSegmentNotFound(value, failure) {
223
+ return branchCase("notFound", value, failure);
224
+ }
225
+ function updateSegmentProviderRejected(value, failure) {
226
+ return branchCase("providerRejected", value, failure);
227
+ }
228
+ function updateSegmentInvalidResponse(value, failure) {
229
+ return branchCase("invalidResponse", value, failure);
230
+ }
231
+ function updateSegmentDefect(value, failure) {
232
+ return branchCase("defect", value, failure);
233
+ }
234
+ function updateSegmentRetry(failure, retryAfterMs = 0) {
235
+ return retryCase(failure, retryAfterMs);
236
+ }
237
+ function updateSegmentUpdatedDefault() {
238
+ const value = SegmentMetadataSchema.parse(parseExactIntegerJSON('{"name":"Recent readers","segmentCriteria":"{\\"version\\":\\"1.0.0\\",\\"criteria\\":{\\"type\\":\\"and\\",\\"group\\":[]}}","segmentId":30}'));
239
+ return branchCase("updated", value);
240
+ }
241
+ function updateSegmentDefault() {
242
+ return updateSegmentUpdatedDefault();
243
+ }
244
+ function deleteSegmentDeleted(value, failure) {
245
+ return branchCase("deleted", value, failure);
246
+ }
247
+ function deleteSegmentNotFound(value, failure) {
248
+ return branchCase("notFound", value, failure);
249
+ }
250
+ function deleteSegmentProviderRejected(value, failure) {
251
+ return branchCase("providerRejected", value, failure);
252
+ }
253
+ function deleteSegmentDefect(value, failure) {
254
+ return branchCase("defect", value, failure);
255
+ }
256
+ function deleteSegmentRetry(failure, retryAfterMs = 0) {
257
+ return retryCase(failure, retryAfterMs);
258
+ }
259
+ function deleteSegmentDeletedDefault() {
260
+ const value = DeleteSegmentOutputSchema.parse(parseExactIntegerJSON('{"segmentId":30}'));
261
+ return branchCase("deleted", value);
262
+ }
263
+ function deleteSegmentDefault() {
264
+ return deleteSegmentDeletedDefault();
265
+ }
266
+ function getActivityFound(value, failure) {
267
+ return branchCase("found", value, failure);
268
+ }
269
+ function getActivityNotFound(value, failure) {
270
+ return branchCase("notFound", value, failure);
271
+ }
272
+ function getActivityProviderRejected(value, failure) {
273
+ return branchCase("providerRejected", value, failure);
274
+ }
275
+ function getActivityInvalidResponse(value, failure) {
276
+ return branchCase("invalidResponse", value, failure);
277
+ }
278
+ function getActivityDefect(value, failure) {
279
+ return branchCase("defect", value, failure);
280
+ }
281
+ function getActivityRetry(failure, retryAfterMs = 0) {
282
+ return retryCase(failure, retryAfterMs);
283
+ }
284
+ function getActivityFoundDefault() {
285
+ const value = ActivityMetadataSchema.parse(parseExactIntegerJSON('{"activityId":"3d72da26-2115-11ea-9216-fa163e6b01c0","percentDone":100,"state":"completed"}'));
286
+ return branchCase("found", value);
287
+ }
288
+ function getActivityDefault() {
289
+ return getActivityFoundDefault();
290
+ }
291
+ function listActivitiesListed(value, failure) {
292
+ return branchCase("listed", value, failure);
293
+ }
294
+ function listActivitiesProviderRejected(value, failure) {
295
+ return branchCase("providerRejected", value, failure);
296
+ }
297
+ function listActivitiesInvalidResponse(value, failure) {
298
+ return branchCase("invalidResponse", value, failure);
299
+ }
300
+ function listActivitiesDefect(value, failure) {
301
+ return branchCase("defect", value, failure);
302
+ }
303
+ function listActivitiesRetry(failure, retryAfterMs = 0) {
304
+ return retryCase(failure, retryAfterMs);
305
+ }
306
+ function listActivitiesListedDefault() {
307
+ const value = ActivitiesPageSchema.parse(parseExactIntegerJSON('{"activities":[{"activityId":"3d72da26-2115-11ea-9216-fa163e6b01c0","percentDone":100,"state":"completed"}]}'));
308
+ return branchCase("listed", value);
309
+ }
310
+ function listActivitiesDefault() {
311
+ return listActivitiesListedDefault();
312
+ }
313
+ function createContactCreated(value, failure) {
314
+ return branchCase("created", value, failure);
315
+ }
316
+ function createContactAlreadyExists(value, failure) {
317
+ return branchCase("alreadyExists", value, failure);
318
+ }
319
+ function createContactProviderRejected(value, failure) {
320
+ return branchCase("providerRejected", value, failure);
321
+ }
322
+ function createContactDefect(value, failure) {
323
+ return branchCase("defect", value, failure);
324
+ }
325
+ function createContactRetry(failure, retryAfterMs = 0) {
326
+ return retryCase(failure, retryAfterMs);
327
+ }
328
+ function createContactUncertain(value, failure) {
329
+ return uncertainCase(value, failure);
330
+ }
331
+ function createContactCreatedDefault() {
332
+ const value = ContactMetadataSchema.parse(parseExactIntegerJSON('{"contactId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","emailAddress":"reader@example.com","emailPermission":"implicit","firstName":"Avery","lastName":"Reader"}'));
333
+ return branchCase("created", value);
334
+ }
335
+ function createContactDefault() {
336
+ return createContactCreatedDefault();
337
+ }
338
+ function listContactsListed(value, failure) {
339
+ return branchCase("listed", value, failure);
340
+ }
341
+ function listContactsProviderRejected(value, failure) {
342
+ return branchCase("providerRejected", value, failure);
343
+ }
344
+ function listContactsInvalidResponse(value, failure) {
345
+ return branchCase("invalidResponse", value, failure);
346
+ }
347
+ function listContactsDefect(value, failure) {
348
+ return branchCase("defect", value, failure);
349
+ }
350
+ function listContactsRetry(failure, retryAfterMs = 0) {
351
+ return retryCase(failure, retryAfterMs);
352
+ }
353
+ function listContactsListedDefault() {
354
+ const value = ContactsPageSchema.parse(parseExactIntegerJSON('{"contacts":[{"contactId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","emailAddress":"reader@example.com"}]}'));
355
+ return branchCase("listed", value);
356
+ }
357
+ function listContactsDefault() {
358
+ return listContactsListedDefault();
359
+ }
360
+ function updateContactUpdated(value, failure) {
361
+ return branchCase("updated", value, failure);
362
+ }
363
+ function updateContactNotFound(value, failure) {
364
+ return branchCase("notFound", value, failure);
365
+ }
366
+ function updateContactProviderRejected(value, failure) {
367
+ return branchCase("providerRejected", value, failure);
368
+ }
369
+ function updateContactInvalidResponse(value, failure) {
370
+ return branchCase("invalidResponse", value, failure);
371
+ }
372
+ function updateContactDefect(value, failure) {
373
+ return branchCase("defect", value, failure);
374
+ }
375
+ function updateContactRetry(failure, retryAfterMs = 0) {
376
+ return retryCase(failure, retryAfterMs);
377
+ }
378
+ function updateContactUpdatedDefault() {
379
+ const value = ContactMetadataSchema.parse(parseExactIntegerJSON('{"contactId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","emailAddress":"reader@example.com","emailPermission":"implicit","firstName":"Avery","lastName":"Reader"}'));
380
+ return branchCase("updated", value);
381
+ }
382
+ function updateContactDefault() {
383
+ return updateContactUpdatedDefault();
384
+ }
385
+ function deleteContactDeleted(value, failure) {
386
+ return branchCase("deleted", value, failure);
387
+ }
388
+ function deleteContactNotFound(value, failure) {
389
+ return branchCase("notFound", value, failure);
390
+ }
391
+ function deleteContactProviderRejected(value, failure) {
392
+ return branchCase("providerRejected", value, failure);
393
+ }
394
+ function deleteContactDefect(value, failure) {
395
+ return branchCase("defect", value, failure);
396
+ }
397
+ function deleteContactRetry(failure, retryAfterMs = 0) {
398
+ return retryCase(failure, retryAfterMs);
399
+ }
400
+ function deleteContactDeletedDefault() {
401
+ const value = DeleteContactOutputSchema.parse(parseExactIntegerJSON('{"contactId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1"}'));
402
+ return branchCase("deleted", value);
403
+ }
404
+ function deleteContactDefault() {
405
+ return deleteContactDeletedDefault();
406
+ }
407
+ function getContactFound(value, failure) {
408
+ return branchCase("found", value, failure);
409
+ }
410
+ function getContactNotFound(value, failure) {
411
+ return branchCase("notFound", value, failure);
412
+ }
413
+ function getContactProviderRejected(value, failure) {
414
+ return branchCase("providerRejected", value, failure);
415
+ }
416
+ function getContactInvalidResponse(value, failure) {
417
+ return branchCase("invalidResponse", value, failure);
418
+ }
419
+ function getContactDefect(value, failure) {
420
+ return branchCase("defect", value, failure);
421
+ }
422
+ function getContactRetry(failure, retryAfterMs = 0) {
423
+ return retryCase(failure, retryAfterMs);
424
+ }
425
+ function getContactFoundDefault() {
426
+ const value = ContactMetadataSchema.parse(parseExactIntegerJSON('{"contactId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","emailAddress":"reader@example.com","emailPermission":"explicit","firstName":"Avery","lastName":"Reader"}'));
427
+ return branchCase("found", value);
428
+ }
429
+ function getContactDefault() {
430
+ return getContactFoundDefault();
431
+ }
432
+ function getContactContactMissing() {
433
+ const value = emptyContactMetadata;
434
+ return branchCase("notFound", value, { kind: "NOT_FOUND", provider: ConnectorID, operation: "getContact", message: "Constant Contact did not find the contact." });
435
+ }
436
+ function getContactListFound(value, failure) {
437
+ return branchCase("found", value, failure);
438
+ }
439
+ function getContactListNotFound(value, failure) {
440
+ return branchCase("notFound", value, failure);
441
+ }
442
+ function getContactListProviderRejected(value, failure) {
443
+ return branchCase("providerRejected", value, failure);
444
+ }
445
+ function getContactListInvalidResponse(value, failure) {
446
+ return branchCase("invalidResponse", value, failure);
447
+ }
448
+ function getContactListDefect(value, failure) {
449
+ return branchCase("defect", value, failure);
450
+ }
451
+ function getContactListRetry(failure, retryAfterMs = 0) {
452
+ return retryCase(failure, retryAfterMs);
453
+ }
454
+ function getContactListFoundDefault() {
455
+ const value = ContactListMetadataSchema.parse(parseExactIntegerJSON('{"favorite":false,"listId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","name":"Customers"}'));
456
+ return branchCase("found", value);
457
+ }
458
+ function getContactListDefault() {
459
+ return getContactListFoundDefault();
460
+ }
461
+ function listContactListsListed(value, failure) {
462
+ return branchCase("listed", value, failure);
463
+ }
464
+ function listContactListsProviderRejected(value, failure) {
465
+ return branchCase("providerRejected", value, failure);
466
+ }
467
+ function listContactListsInvalidResponse(value, failure) {
468
+ return branchCase("invalidResponse", value, failure);
469
+ }
470
+ function listContactListsDefect(value, failure) {
471
+ return branchCase("defect", value, failure);
472
+ }
473
+ function listContactListsRetry(failure, retryAfterMs = 0) {
474
+ return retryCase(failure, retryAfterMs);
475
+ }
476
+ function listContactListsListedDefault() {
477
+ const value = ContactListsPageSchema.parse(parseExactIntegerJSON('{"lists":[{"favorite":false,"listId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","name":"Customers"}]}'));
478
+ return branchCase("listed", value);
479
+ }
480
+ function listContactListsDefault() {
481
+ return listContactListsListedDefault();
482
+ }
483
+ function createContactListCreated(value, failure) {
484
+ return branchCase("created", value, failure);
485
+ }
486
+ function createContactListAlreadyExists(value, failure) {
487
+ return branchCase("alreadyExists", value, failure);
488
+ }
489
+ function createContactListProviderRejected(value, failure) {
490
+ return branchCase("providerRejected", value, failure);
491
+ }
492
+ function createContactListDefect(value, failure) {
493
+ return branchCase("defect", value, failure);
494
+ }
495
+ function createContactListRetry(failure, retryAfterMs = 0) {
496
+ return retryCase(failure, retryAfterMs);
497
+ }
498
+ function createContactListUncertain(value, failure) {
499
+ return uncertainCase(value, failure);
500
+ }
501
+ function createContactListCreatedDefault() {
502
+ const value = ContactListMetadataSchema.parse(parseExactIntegerJSON('{"favorite":false,"listId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","name":"Customers"}'));
503
+ return branchCase("created", value);
504
+ }
505
+ function createContactListDefault() {
506
+ return createContactListCreatedDefault();
507
+ }
508
+ function updateContactListUpdated(value, failure) {
509
+ return branchCase("updated", value, failure);
510
+ }
511
+ function updateContactListNotFound(value, failure) {
512
+ return branchCase("notFound", value, failure);
513
+ }
514
+ function updateContactListProviderRejected(value, failure) {
515
+ return branchCase("providerRejected", value, failure);
516
+ }
517
+ function updateContactListDefect(value, failure) {
518
+ return branchCase("defect", value, failure);
519
+ }
520
+ function updateContactListRetry(failure, retryAfterMs = 0) {
521
+ return retryCase(failure, retryAfterMs);
522
+ }
523
+ function updateContactListUpdatedDefault() {
524
+ const value = ContactListMetadataSchema.parse(parseExactIntegerJSON('{"favorite":false,"listId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1","name":"Preferred Customers"}'));
525
+ return branchCase("updated", value);
526
+ }
527
+ function updateContactListDefault() {
528
+ return updateContactListUpdatedDefault();
529
+ }
530
+ function deleteContactListAccepted(value, failure) {
531
+ return branchCase("accepted", value, failure);
532
+ }
533
+ function deleteContactListNotFound(value, failure) {
534
+ return branchCase("notFound", value, failure);
535
+ }
536
+ function deleteContactListProviderRejected(value, failure) {
537
+ return branchCase("providerRejected", value, failure);
538
+ }
539
+ function deleteContactListDefect(value, failure) {
540
+ return branchCase("defect", value, failure);
541
+ }
542
+ function deleteContactListRetry(failure, retryAfterMs = 0) {
543
+ return retryCase(failure, retryAfterMs);
544
+ }
545
+ function deleteContactListAcceptedDefault() {
546
+ const value = DeleteContactListOutputSchema.parse(parseExactIntegerJSON('{"activityId":"","listId":"1898ae62-4752-11e9-9c8a-fa163e6b01c1"}'));
547
+ return branchCase("accepted", value);
548
+ }
549
+ function deleteContactListDefault() {
550
+ return deleteContactListAcceptedDefault();
551
+ }
552
+ var GeneratedMock = class {
553
+ #getSegment;
554
+ #listSegments;
555
+ #createSegment;
556
+ #updateSegment;
557
+ #deleteSegment;
558
+ #getActivity;
559
+ #listActivities;
560
+ #createContact;
561
+ #listContacts;
562
+ #updateContact;
563
+ #deleteContact;
564
+ #getContact;
565
+ #getContactList;
566
+ #listContactLists;
567
+ #createContactList;
568
+ #updateContactList;
569
+ #deleteContactList;
570
+ #connection;
571
+ constructor(connectionName) {
572
+ this.#getSegment = newQuery(GetSegmentDefinition).default(getSegmentDefault());
573
+ this.#listSegments = newQuery(ListSegmentsDefinition).default(listSegmentsDefault());
574
+ this.#createSegment = newMutation(CreateSegmentDefinition).default(createSegmentDefault());
575
+ this.#updateSegment = newMutation(UpdateSegmentDefinition).default(updateSegmentDefault());
576
+ this.#deleteSegment = newMutation(DeleteSegmentDefinition).default(deleteSegmentDefault());
577
+ this.#getActivity = newQuery(GetActivityDefinition).default(getActivityDefault());
578
+ this.#listActivities = newQuery(ListActivitiesDefinition).default(listActivitiesDefault());
579
+ this.#createContact = newMutation(CreateContactDefinition).default(createContactDefault());
580
+ this.#listContacts = newQuery(ListContactsDefinition).default(listContactsDefault());
581
+ this.#updateContact = newMutation(UpdateContactDefinition).default(updateContactDefault());
582
+ this.#deleteContact = newMutation(DeleteContactDefinition).default(deleteContactDefault());
583
+ this.#getContact = newQuery(GetContactDefinition).default(getContactDefault());
584
+ this.#getContactList = newQuery(GetContactListDefinition).default(getContactListDefault());
585
+ this.#listContactLists = newQuery(ListContactListsDefinition).default(listContactListsDefault());
586
+ this.#createContactList = newMutation(CreateContactListDefinition).default(createContactListDefault());
587
+ this.#updateContactList = newMutation(UpdateContactListDefinition).default(updateContactListDefault());
588
+ this.#deleteContactList = newMutation(DeleteContactListDefinition).default(deleteContactListDefault());
589
+ this.#connection = newConnectionWithOperations(this, { provider: ProviderID, name: connectionName });
590
+ }
591
+ connection() {
592
+ return this.#connection;
593
+ }
594
+ getSegment() {
595
+ return this.#getSegment;
596
+ }
597
+ listSegments() {
598
+ return this.#listSegments;
599
+ }
600
+ createSegment() {
601
+ return this.#createSegment;
602
+ }
603
+ updateSegment() {
604
+ return this.#updateSegment;
605
+ }
606
+ deleteSegment() {
607
+ return this.#deleteSegment;
608
+ }
609
+ getActivity() {
610
+ return this.#getActivity;
611
+ }
612
+ listActivities() {
613
+ return this.#listActivities;
614
+ }
615
+ createContact() {
616
+ return this.#createContact;
617
+ }
618
+ listContacts() {
619
+ return this.#listContacts;
620
+ }
621
+ updateContact() {
622
+ return this.#updateContact;
623
+ }
624
+ deleteContact() {
625
+ return this.#deleteContact;
626
+ }
627
+ getContact() {
628
+ return this.#getContact;
629
+ }
630
+ getContactList() {
631
+ return this.#getContactList;
632
+ }
633
+ listContactLists() {
634
+ return this.#listContactLists;
635
+ }
636
+ createContactList() {
637
+ return this.#createContactList;
638
+ }
639
+ updateContactList() {
640
+ return this.#updateContactList;
641
+ }
642
+ deleteContactList() {
643
+ return this.#deleteContactList;
644
+ }
645
+ assertNoFailures() {
646
+ this.#getSegment.assertNoFailures();
647
+ this.#listSegments.assertNoFailures();
648
+ this.#createSegment.assertNoFailures();
649
+ this.#updateSegment.assertNoFailures();
650
+ this.#deleteSegment.assertNoFailures();
651
+ this.#getActivity.assertNoFailures();
652
+ this.#listActivities.assertNoFailures();
653
+ this.#createContact.assertNoFailures();
654
+ this.#listContacts.assertNoFailures();
655
+ this.#updateContact.assertNoFailures();
656
+ this.#deleteContact.assertNoFailures();
657
+ this.#getContact.assertNoFailures();
658
+ this.#getContactList.assertNoFailures();
659
+ this.#listContactLists.assertNoFailures();
660
+ this.#createContactList.assertNoFailures();
661
+ this.#updateContactList.assertNoFailures();
662
+ this.#deleteContactList.assertNoFailures();
663
+ }
664
+ };
665
+ export {
666
+ GeneratedMock,
667
+ createContactAlreadyExists,
668
+ createContactCreated,
669
+ createContactCreatedDefault,
670
+ createContactDefault,
671
+ createContactDefect,
672
+ createContactListAlreadyExists,
673
+ createContactListCreated,
674
+ createContactListCreatedDefault,
675
+ createContactListDefault,
676
+ createContactListDefect,
677
+ createContactListProviderRejected,
678
+ createContactListRetry,
679
+ createContactListUncertain,
680
+ createContactProviderRejected,
681
+ createContactRetry,
682
+ createContactUncertain,
683
+ createSegmentAlreadyExists,
684
+ createSegmentCreated,
685
+ createSegmentCreatedDefault,
686
+ createSegmentDefault,
687
+ createSegmentDefect,
688
+ createSegmentProviderRejected,
689
+ createSegmentRetry,
690
+ createSegmentUncertain,
691
+ deleteContactDefault,
692
+ deleteContactDefect,
693
+ deleteContactDeleted,
694
+ deleteContactDeletedDefault,
695
+ deleteContactListAccepted,
696
+ deleteContactListAcceptedDefault,
697
+ deleteContactListDefault,
698
+ deleteContactListDefect,
699
+ deleteContactListNotFound,
700
+ deleteContactListProviderRejected,
701
+ deleteContactListRetry,
702
+ deleteContactNotFound,
703
+ deleteContactProviderRejected,
704
+ deleteContactRetry,
705
+ deleteSegmentDefault,
706
+ deleteSegmentDefect,
707
+ deleteSegmentDeleted,
708
+ deleteSegmentDeletedDefault,
709
+ deleteSegmentNotFound,
710
+ deleteSegmentProviderRejected,
711
+ deleteSegmentRetry,
712
+ emptyActivitiesPage,
713
+ emptyActivityMetadata,
714
+ emptyContactListMetadata,
715
+ emptyContactListsPage,
716
+ emptyContactMetadata,
717
+ emptyContactsPage,
718
+ emptyCreateContactInput,
719
+ emptyCreateContactListInput,
720
+ emptyCreateSegmentInput,
721
+ emptyDeleteContactInput,
722
+ emptyDeleteContactListInput,
723
+ emptyDeleteContactListOutput,
724
+ emptyDeleteContactOutput,
725
+ emptyDeleteSegmentInput,
726
+ emptyDeleteSegmentOutput,
727
+ emptyGetActivityInput,
728
+ emptyGetContactInput,
729
+ emptyGetContactListInput,
730
+ emptyGetSegmentInput,
731
+ emptyListActivitiesInput,
732
+ emptyListContactListsInput,
733
+ emptyListContactsInput,
734
+ emptyListSegmentsInput,
735
+ emptySegmentMetadata,
736
+ emptySegmentsPage,
737
+ emptyUpdateContactInput,
738
+ emptyUpdateContactListInput,
739
+ emptyUpdateSegmentInput,
740
+ getActivityDefault,
741
+ getActivityDefect,
742
+ getActivityFound,
743
+ getActivityFoundDefault,
744
+ getActivityInvalidResponse,
745
+ getActivityNotFound,
746
+ getActivityProviderRejected,
747
+ getActivityRetry,
748
+ getContactContactMissing,
749
+ getContactDefault,
750
+ getContactDefect,
751
+ getContactFound,
752
+ getContactFoundDefault,
753
+ getContactInvalidResponse,
754
+ getContactListDefault,
755
+ getContactListDefect,
756
+ getContactListFound,
757
+ getContactListFoundDefault,
758
+ getContactListInvalidResponse,
759
+ getContactListNotFound,
760
+ getContactListProviderRejected,
761
+ getContactListRetry,
762
+ getContactNotFound,
763
+ getContactProviderRejected,
764
+ getContactRetry,
765
+ getSegmentDefault,
766
+ getSegmentDefect,
767
+ getSegmentFound,
768
+ getSegmentFoundDefault,
769
+ getSegmentInvalidResponse,
770
+ getSegmentNotFound,
771
+ getSegmentProviderRejected,
772
+ getSegmentRetry,
773
+ listActivitiesDefault,
774
+ listActivitiesDefect,
775
+ listActivitiesInvalidResponse,
776
+ listActivitiesListed,
777
+ listActivitiesListedDefault,
778
+ listActivitiesProviderRejected,
779
+ listActivitiesRetry,
780
+ listContactListsDefault,
781
+ listContactListsDefect,
782
+ listContactListsInvalidResponse,
783
+ listContactListsListed,
784
+ listContactListsListedDefault,
785
+ listContactListsProviderRejected,
786
+ listContactListsRetry,
787
+ listContactsDefault,
788
+ listContactsDefect,
789
+ listContactsInvalidResponse,
790
+ listContactsListed,
791
+ listContactsListedDefault,
792
+ listContactsProviderRejected,
793
+ listContactsRetry,
794
+ listSegmentsDefault,
795
+ listSegmentsDefect,
796
+ listSegmentsInvalidResponse,
797
+ listSegmentsListed,
798
+ listSegmentsListedDefault,
799
+ listSegmentsProviderRejected,
800
+ listSegmentsRetry,
801
+ updateContactDefault,
802
+ updateContactDefect,
803
+ updateContactInvalidResponse,
804
+ updateContactListDefault,
805
+ updateContactListDefect,
806
+ updateContactListNotFound,
807
+ updateContactListProviderRejected,
808
+ updateContactListRetry,
809
+ updateContactListUpdated,
810
+ updateContactListUpdatedDefault,
811
+ updateContactNotFound,
812
+ updateContactProviderRejected,
813
+ updateContactRetry,
814
+ updateContactUpdated,
815
+ updateContactUpdatedDefault,
816
+ updateSegmentDefault,
817
+ updateSegmentDefect,
818
+ updateSegmentInvalidResponse,
819
+ updateSegmentNotFound,
820
+ updateSegmentProviderRejected,
821
+ updateSegmentRetry,
822
+ updateSegmentUpdated,
823
+ updateSegmentUpdatedDefault
824
+ };