@superdurable/connector-zoom 0.0.0-stage → 0.1.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.d.ts ADDED
@@ -0,0 +1,151 @@
1
+ import { MockQuery, MockMutation, Case } from '@superdurable/connectors-sdk/connectormock';
2
+ import { Failure } from '@superdurable/connectors-sdk';
3
+ import { O as Operations, a as Connection, L as ListMeetingsInput, b as MeetingPage, G as GetMeetingInput, M as Meeting, C as CreateMeetingInput, U as UpdateMeetingInput, d as UpdatedMeeting, c as ListPastMeetingParticipantsInput, P as ParticipantPage, n as MeetingParticipant, q as MeetingSettings, r as MeetingSettingsInput, u as MeetingSummary } from './connection-4reP5njk.js';
4
+ import 'zod';
5
+
6
+ /** Go zero value for ListMeetingsInput in scripted cases. */
7
+ declare const emptyListMeetingsInput: ListMeetingsInput;
8
+ /** Go zero value for MeetingSummary in scripted cases. */
9
+ declare const emptyMeetingSummary: MeetingSummary;
10
+ /** Go zero value for MeetingPage in scripted cases. */
11
+ declare const emptyMeetingPage: MeetingPage;
12
+ /** Go zero value for GetMeetingInput in scripted cases. */
13
+ declare const emptyGetMeetingInput: GetMeetingInput;
14
+ /** Go zero value for MeetingSettings in scripted cases. */
15
+ declare const emptyMeetingSettings: MeetingSettings;
16
+ /** Go zero value for Meeting in scripted cases. */
17
+ declare const emptyMeeting: Meeting;
18
+ /** Go zero value for MeetingSettingsInput in scripted cases. */
19
+ declare const emptyMeetingSettingsInput: MeetingSettingsInput;
20
+ /** Go zero value for CreateMeetingInput in scripted cases. */
21
+ declare const emptyCreateMeetingInput: CreateMeetingInput;
22
+ /** Go zero value for UpdateMeetingInput in scripted cases. */
23
+ declare const emptyUpdateMeetingInput: UpdateMeetingInput;
24
+ /** Go zero value for UpdatedMeeting in scripted cases. */
25
+ declare const emptyUpdatedMeeting: UpdatedMeeting;
26
+ /** Go zero value for ListPastMeetingParticipantsInput in scripted cases. */
27
+ declare const emptyListPastMeetingParticipantsInput: ListPastMeetingParticipantsInput;
28
+ /** Go zero value for MeetingParticipant in scripted cases. */
29
+ declare const emptyMeetingParticipant: MeetingParticipant;
30
+ /** Go zero value for ParticipantPage in scripted cases. */
31
+ declare const emptyParticipantPage: ParticipantPage;
32
+ /** Script the listed branch. */
33
+ declare function listMeetingsListed(value: MeetingPage, failure?: Failure): Case<MeetingPage>;
34
+ /** Script the providerRejected branch. */
35
+ declare function listMeetingsProviderRejected(value: MeetingPage, failure?: Failure): Case<MeetingPage>;
36
+ /** Script the invalidResponse branch. */
37
+ declare function listMeetingsInvalidResponse(value: MeetingPage, failure?: Failure): Case<MeetingPage>;
38
+ /** Script the defect branch. */
39
+ declare function listMeetingsDefect(value: MeetingPage, failure?: Failure): Case<MeetingPage>;
40
+ /** Script a safe retry of listMeetings. */
41
+ declare function listMeetingsRetry(failure: Failure, retryAfterMs?: number): Case<MeetingPage>;
42
+ /** Manifest scenario listedDefaultAnswer for listMeetings. */
43
+ declare function listMeetingsListedDefaultAnswer(): Case<MeetingPage>;
44
+ /** Default listMeetings scenario. */
45
+ declare function listMeetingsDefault(): Case<MeetingPage>;
46
+ /** Manifest scenario providerRejectedFailure for listMeetings. */
47
+ declare function listMeetingsProviderRejectedFailure(): Case<MeetingPage>;
48
+ /** Manifest scenario dailyLimitFailure for listMeetings. */
49
+ declare function listMeetingsDailyLimitFailure(): Case<MeetingPage>;
50
+ /** Manifest scenario invalidResponseFailure for listMeetings. */
51
+ declare function listMeetingsInvalidResponseFailure(): Case<MeetingPage>;
52
+ /** Script the found branch. */
53
+ declare function getMeetingFound(value: Meeting, failure?: Failure): Case<Meeting>;
54
+ /** Script the notFound branch. */
55
+ declare function getMeetingNotFound(value: Meeting, failure?: Failure): Case<Meeting>;
56
+ /** Script the providerRejected branch. */
57
+ declare function getMeetingProviderRejected(value: Meeting, failure?: Failure): Case<Meeting>;
58
+ /** Script the invalidResponse branch. */
59
+ declare function getMeetingInvalidResponse(value: Meeting, failure?: Failure): Case<Meeting>;
60
+ /** Script the defect branch. */
61
+ declare function getMeetingDefect(value: Meeting, failure?: Failure): Case<Meeting>;
62
+ /** Script a safe retry of getMeeting. */
63
+ declare function getMeetingRetry(failure: Failure, retryAfterMs?: number): Case<Meeting>;
64
+ /** Manifest scenario foundDefaultAnswer for getMeeting. */
65
+ declare function getMeetingFoundDefaultAnswer(): Case<Meeting>;
66
+ /** Default getMeeting scenario. */
67
+ declare function getMeetingDefault(): Case<Meeting>;
68
+ /** Manifest scenario notFoundFailure for getMeeting. */
69
+ declare function getMeetingNotFoundFailure(): Case<Meeting>;
70
+ /** Manifest scenario providerRejectedFailure for getMeeting. */
71
+ declare function getMeetingProviderRejectedFailure(): Case<Meeting>;
72
+ /** Manifest scenario dailyLimitFailure for getMeeting. */
73
+ declare function getMeetingDailyLimitFailure(): Case<Meeting>;
74
+ /** Manifest scenario invalidResponseFailure for getMeeting. */
75
+ declare function getMeetingInvalidResponseFailure(): Case<Meeting>;
76
+ /** Script the created branch. */
77
+ declare function createMeetingCreated(value: Meeting, failure?: Failure): Case<Meeting>;
78
+ /** Script the providerRejected branch. */
79
+ declare function createMeetingProviderRejected(value: Meeting, failure?: Failure): Case<Meeting>;
80
+ /** Script the defect branch. */
81
+ declare function createMeetingDefect(value: Meeting, failure?: Failure): Case<Meeting>;
82
+ /** Script a safe retry of createMeeting. */
83
+ declare function createMeetingRetry(failure: Failure, retryAfterMs?: number): Case<Meeting>;
84
+ /** Script an uncertain createMeeting attempt. */
85
+ declare function createMeetingUncertain(value: Meeting, failure: Failure): Case<Meeting>;
86
+ /** Manifest scenario createdDefaultAnswer for createMeeting. */
87
+ declare function createMeetingCreatedDefaultAnswer(): Case<Meeting>;
88
+ /** Default createMeeting scenario. */
89
+ declare function createMeetingDefault(): Case<Meeting>;
90
+ /** Manifest scenario providerRejectedFailure for createMeeting. */
91
+ declare function createMeetingProviderRejectedFailure(): Case<Meeting>;
92
+ /** Manifest scenario dailyLimitFailure for createMeeting. */
93
+ declare function createMeetingDailyLimitFailure(): Case<Meeting>;
94
+ /** Script the updated branch. */
95
+ declare function updateMeetingUpdated(value: UpdatedMeeting, failure?: Failure): Case<UpdatedMeeting>;
96
+ /** Script the notFound branch. */
97
+ declare function updateMeetingNotFound(value: UpdatedMeeting, failure?: Failure): Case<UpdatedMeeting>;
98
+ /** Script the providerRejected branch. */
99
+ declare function updateMeetingProviderRejected(value: UpdatedMeeting, failure?: Failure): Case<UpdatedMeeting>;
100
+ /** Script the defect branch. */
101
+ declare function updateMeetingDefect(value: UpdatedMeeting, failure?: Failure): Case<UpdatedMeeting>;
102
+ /** Script a safe retry of updateMeeting. */
103
+ declare function updateMeetingRetry(failure: Failure, retryAfterMs?: number): Case<UpdatedMeeting>;
104
+ /** Manifest scenario updatedDefaultAnswer for updateMeeting. */
105
+ declare function updateMeetingUpdatedDefaultAnswer(): Case<UpdatedMeeting>;
106
+ /** Default updateMeeting scenario. */
107
+ declare function updateMeetingDefault(): Case<UpdatedMeeting>;
108
+ /** Manifest scenario notFoundFailure for updateMeeting. */
109
+ declare function updateMeetingNotFoundFailure(): Case<UpdatedMeeting>;
110
+ /** Manifest scenario providerRejectedFailure for updateMeeting. */
111
+ declare function updateMeetingProviderRejectedFailure(): Case<UpdatedMeeting>;
112
+ /** Manifest scenario dailyLimitFailure for updateMeeting. */
113
+ declare function updateMeetingDailyLimitFailure(): Case<UpdatedMeeting>;
114
+ /** Script the listed branch. */
115
+ declare function listPastMeetingParticipantsListed(value: ParticipantPage, failure?: Failure): Case<ParticipantPage>;
116
+ /** Script the notFound branch. */
117
+ declare function listPastMeetingParticipantsNotFound(value: ParticipantPage, failure?: Failure): Case<ParticipantPage>;
118
+ /** Script the providerRejected branch. */
119
+ declare function listPastMeetingParticipantsProviderRejected(value: ParticipantPage, failure?: Failure): Case<ParticipantPage>;
120
+ /** Script the invalidResponse branch. */
121
+ declare function listPastMeetingParticipantsInvalidResponse(value: ParticipantPage, failure?: Failure): Case<ParticipantPage>;
122
+ /** Script the defect branch. */
123
+ declare function listPastMeetingParticipantsDefect(value: ParticipantPage, failure?: Failure): Case<ParticipantPage>;
124
+ /** Script a safe retry of listPastMeetingParticipants. */
125
+ declare function listPastMeetingParticipantsRetry(failure: Failure, retryAfterMs?: number): Case<ParticipantPage>;
126
+ /** Manifest scenario listedDefaultAnswer for listPastMeetingParticipants. */
127
+ declare function listPastMeetingParticipantsListedDefaultAnswer(): Case<ParticipantPage>;
128
+ /** Default listPastMeetingParticipants scenario. */
129
+ declare function listPastMeetingParticipantsDefault(): Case<ParticipantPage>;
130
+ /** Manifest scenario notFoundFailure for listPastMeetingParticipants. */
131
+ declare function listPastMeetingParticipantsNotFoundFailure(): Case<ParticipantPage>;
132
+ /** Manifest scenario providerRejectedFailure for listPastMeetingParticipants. */
133
+ declare function listPastMeetingParticipantsProviderRejectedFailure(): Case<ParticipantPage>;
134
+ /** Manifest scenario dailyLimitFailure for listPastMeetingParticipants. */
135
+ declare function listPastMeetingParticipantsDailyLimitFailure(): Case<ParticipantPage>;
136
+ /** Manifest scenario invalidResponseFailure for listPastMeetingParticipants. */
137
+ declare function listPastMeetingParticipantsInvalidResponseFailure(): Case<ParticipantPage>;
138
+ /** Scripted operations and manifest defaults for this connector. */
139
+ declare class GeneratedMock implements Operations {
140
+ #private;
141
+ constructor(connectionName: string);
142
+ connection(): Connection;
143
+ listMeetings(): MockQuery<ListMeetingsInput, MeetingPage>;
144
+ getMeeting(): MockQuery<GetMeetingInput, Meeting>;
145
+ createMeeting(): MockMutation<CreateMeetingInput, Meeting>;
146
+ updateMeeting(): MockMutation<UpdateMeetingInput, UpdatedMeeting>;
147
+ listPastMeetingParticipants(): MockQuery<ListPastMeetingParticipantsInput, ParticipantPage>;
148
+ assertNoFailures(): void;
149
+ }
150
+
151
+ export { GeneratedMock, createMeetingCreated, createMeetingCreatedDefaultAnswer, createMeetingDailyLimitFailure, createMeetingDefault, createMeetingDefect, createMeetingProviderRejected, createMeetingProviderRejectedFailure, createMeetingRetry, createMeetingUncertain, emptyCreateMeetingInput, emptyGetMeetingInput, emptyListMeetingsInput, emptyListPastMeetingParticipantsInput, emptyMeeting, emptyMeetingPage, emptyMeetingParticipant, emptyMeetingSettings, emptyMeetingSettingsInput, emptyMeetingSummary, emptyParticipantPage, emptyUpdateMeetingInput, emptyUpdatedMeeting, getMeetingDailyLimitFailure, getMeetingDefault, getMeetingDefect, getMeetingFound, getMeetingFoundDefaultAnswer, getMeetingInvalidResponse, getMeetingInvalidResponseFailure, getMeetingNotFound, getMeetingNotFoundFailure, getMeetingProviderRejected, getMeetingProviderRejectedFailure, getMeetingRetry, listMeetingsDailyLimitFailure, listMeetingsDefault, listMeetingsDefect, listMeetingsInvalidResponse, listMeetingsInvalidResponseFailure, listMeetingsListed, listMeetingsListedDefaultAnswer, listMeetingsProviderRejected, listMeetingsProviderRejectedFailure, listMeetingsRetry, listPastMeetingParticipantsDailyLimitFailure, listPastMeetingParticipantsDefault, listPastMeetingParticipantsDefect, listPastMeetingParticipantsInvalidResponse, listPastMeetingParticipantsInvalidResponseFailure, listPastMeetingParticipantsListed, listPastMeetingParticipantsListedDefaultAnswer, listPastMeetingParticipantsNotFound, listPastMeetingParticipantsNotFoundFailure, listPastMeetingParticipantsProviderRejected, listPastMeetingParticipantsProviderRejectedFailure, listPastMeetingParticipantsRetry, updateMeetingDailyLimitFailure, updateMeetingDefault, updateMeetingDefect, updateMeetingNotFound, updateMeetingNotFoundFailure, updateMeetingProviderRejected, updateMeetingProviderRejectedFailure, updateMeetingRetry, updateMeetingUpdated, updateMeetingUpdatedDefaultAnswer };
package/dist/mock.js ADDED
@@ -0,0 +1,365 @@
1
+ import {
2
+ ConnectorID,
3
+ CreateMeetingDefinition,
4
+ CreateMeetingInputSchema,
5
+ GetMeetingDefinition,
6
+ GetMeetingInputSchema,
7
+ ListMeetingsDefinition,
8
+ ListMeetingsInputSchema,
9
+ ListPastMeetingParticipantsDefinition,
10
+ ListPastMeetingParticipantsInputSchema,
11
+ MeetingPageSchema,
12
+ MeetingParticipantSchema,
13
+ MeetingSchema,
14
+ MeetingSettingsInputSchema,
15
+ MeetingSettingsSchema,
16
+ MeetingSummarySchema,
17
+ ParticipantPageSchema,
18
+ ProviderID,
19
+ UpdateMeetingDefinition,
20
+ UpdateMeetingInputSchema,
21
+ UpdatedMeetingSchema,
22
+ newConnectionWithOperations
23
+ } from "./chunk-IOSXDBUC.js";
24
+
25
+ // src/generated/mock.ts
26
+ import { branchCase, retryCase, uncertainCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
27
+ var emptyListMeetingsInput = ListMeetingsInputSchema.parse({});
28
+ var emptyMeetingSummary = MeetingSummarySchema.parse({
29
+ "id": 0,
30
+ "topic": ""
31
+ });
32
+ var emptyMeetingPage = MeetingPageSchema.parse({
33
+ "meetings": [],
34
+ "totalRecords": 0
35
+ });
36
+ var emptyGetMeetingInput = GetMeetingInputSchema.parse({
37
+ "meetingId": 0
38
+ });
39
+ var emptyMeetingSettings = MeetingSettingsSchema.parse({
40
+ "hostVideo": false,
41
+ "participantVideo": false,
42
+ "joinBeforeHost": false,
43
+ "muteUponEntry": false,
44
+ "waitingRoom": false
45
+ });
46
+ var emptyMeeting = MeetingSchema.parse({
47
+ "id": 0,
48
+ "topic": "",
49
+ "settings": emptyMeetingSettings
50
+ });
51
+ var emptyMeetingSettingsInput = MeetingSettingsInputSchema.parse({});
52
+ var emptyCreateMeetingInput = CreateMeetingInputSchema.parse({
53
+ "topic": "",
54
+ "startTime": "",
55
+ "timeZone": "",
56
+ "durationMinutes": 0
57
+ });
58
+ var emptyUpdateMeetingInput = UpdateMeetingInputSchema.parse({
59
+ "meetingId": 0
60
+ });
61
+ var emptyUpdatedMeeting = UpdatedMeetingSchema.parse({
62
+ "meetingId": 0
63
+ });
64
+ var emptyListPastMeetingParticipantsInput = ListPastMeetingParticipantsInputSchema.parse({
65
+ "meetingId": 0
66
+ });
67
+ var emptyMeetingParticipant = MeetingParticipantSchema.parse({
68
+ "durationSeconds": 0,
69
+ "isInternalUser": false
70
+ });
71
+ var emptyParticipantPage = ParticipantPageSchema.parse({
72
+ "meetingId": 0,
73
+ "participants": [],
74
+ "totalRecords": 0
75
+ });
76
+ function listMeetingsListed(value, failure) {
77
+ return branchCase("listed", value, failure);
78
+ }
79
+ function listMeetingsProviderRejected(value, failure) {
80
+ return branchCase("providerRejected", value, failure);
81
+ }
82
+ function listMeetingsInvalidResponse(value, failure) {
83
+ return branchCase("invalidResponse", value, failure);
84
+ }
85
+ function listMeetingsDefect(value, failure) {
86
+ return branchCase("defect", value, failure);
87
+ }
88
+ function listMeetingsRetry(failure, retryAfterMs = 0) {
89
+ return retryCase(failure, retryAfterMs);
90
+ }
91
+ function listMeetingsListedDefaultAnswer() {
92
+ const value = emptyMeetingPage;
93
+ return branchCase("listed", value);
94
+ }
95
+ function listMeetingsDefault() {
96
+ return listMeetingsListedDefaultAnswer();
97
+ }
98
+ function listMeetingsProviderRejectedFailure() {
99
+ const value = emptyMeetingPage;
100
+ return branchCase("providerRejected", value, { kind: "AUTHORIZATION", provider: ConnectorID, operation: "listMeetings", message: "Zoom denied access to the meeting list." });
101
+ }
102
+ function listMeetingsDailyLimitFailure() {
103
+ const value = emptyMeetingPage;
104
+ return branchCase("providerRejected", value, { kind: "RATE_LIMIT", provider: ConnectorID, operation: "listMeetings", message: "Zoom daily API rate limit reached with HTTP 429 (code 429)" });
105
+ }
106
+ function listMeetingsInvalidResponseFailure() {
107
+ const value = emptyMeetingPage;
108
+ return branchCase("invalidResponse", value, { kind: "PROTOCOL", provider: ConnectorID, operation: "listMeetings", message: "Zoom returned an unusable meeting page." });
109
+ }
110
+ function getMeetingFound(value, failure) {
111
+ return branchCase("found", value, failure);
112
+ }
113
+ function getMeetingNotFound(value, failure) {
114
+ return branchCase("notFound", value, failure);
115
+ }
116
+ function getMeetingProviderRejected(value, failure) {
117
+ return branchCase("providerRejected", value, failure);
118
+ }
119
+ function getMeetingInvalidResponse(value, failure) {
120
+ return branchCase("invalidResponse", value, failure);
121
+ }
122
+ function getMeetingDefect(value, failure) {
123
+ return branchCase("defect", value, failure);
124
+ }
125
+ function getMeetingRetry(failure, retryAfterMs = 0) {
126
+ return retryCase(failure, retryAfterMs);
127
+ }
128
+ function getMeetingFoundDefaultAnswer() {
129
+ const value = MeetingSchema.parse({ "createdAt": "2036-02-23T17:00:00Z", "durationMinutes": 30, "hostId": "zoom-host-1", "id": 92674392836, "joinUrl": "https://us05web.zoom.us/j/92674392836?pwd=mock", "settings": { "hostVideo": false, "joinBeforeHost": false, "muteUponEntry": false, "participantVideo": false, "waitingRoom": true }, "startTime": "2036-02-24T17:00:00Z", "timeZone": "America/Los_Angeles", "topic": "Consultation", "type": 2 });
130
+ return branchCase("found", value);
131
+ }
132
+ function getMeetingDefault() {
133
+ return getMeetingFoundDefaultAnswer();
134
+ }
135
+ function getMeetingNotFoundFailure() {
136
+ const value = emptyMeeting;
137
+ return branchCase("notFound", value, { kind: "NOT_FOUND", provider: ConnectorID, operation: "getMeeting", message: "The meeting does not exist or was deleted." });
138
+ }
139
+ function getMeetingProviderRejectedFailure() {
140
+ const value = emptyMeeting;
141
+ return branchCase("providerRejected", value, { kind: "AUTHORIZATION", provider: ConnectorID, operation: "getMeeting", message: "Zoom denied access to the meeting." });
142
+ }
143
+ function getMeetingDailyLimitFailure() {
144
+ const value = emptyMeeting;
145
+ return branchCase("providerRejected", value, { kind: "RATE_LIMIT", provider: ConnectorID, operation: "getMeeting", message: "Zoom daily API rate limit reached with HTTP 429 (code 429)" });
146
+ }
147
+ function getMeetingInvalidResponseFailure() {
148
+ const value = emptyMeeting;
149
+ return branchCase("invalidResponse", value, { kind: "PROTOCOL", provider: ConnectorID, operation: "getMeeting", message: "Zoom returned an unusable meeting." });
150
+ }
151
+ function createMeetingCreated(value, failure) {
152
+ return branchCase("created", value, failure);
153
+ }
154
+ function createMeetingProviderRejected(value, failure) {
155
+ return branchCase("providerRejected", value, failure);
156
+ }
157
+ function createMeetingDefect(value, failure) {
158
+ return branchCase("defect", value, failure);
159
+ }
160
+ function createMeetingRetry(failure, retryAfterMs = 0) {
161
+ return retryCase(failure, retryAfterMs);
162
+ }
163
+ function createMeetingUncertain(value, failure) {
164
+ return uncertainCase(value, failure);
165
+ }
166
+ function createMeetingCreatedDefaultAnswer() {
167
+ const value = MeetingSchema.parse({ "createdAt": "2036-02-23T17:00:00Z", "durationMinutes": 30, "hostId": "zoom-host-1", "id": 92674392836, "joinUrl": "https://us05web.zoom.us/j/92674392836?pwd=mock", "settings": { "hostVideo": false, "joinBeforeHost": false, "muteUponEntry": false, "participantVideo": false, "waitingRoom": true }, "startTime": "2036-02-24T17:00:00Z", "timeZone": "America/Los_Angeles", "topic": "Consultation", "type": 2 });
168
+ return branchCase("created", value);
169
+ }
170
+ function createMeetingDefault() {
171
+ return createMeetingCreatedDefaultAnswer();
172
+ }
173
+ function createMeetingProviderRejectedFailure() {
174
+ const value = emptyMeeting;
175
+ return branchCase("providerRejected", value, { kind: "PROVIDER_REJECTION", provider: ConnectorID, operation: "createMeeting", message: "Zoom conclusively rejected the meeting because the user cannot host; nothing was created." });
176
+ }
177
+ function createMeetingDailyLimitFailure() {
178
+ const value = emptyMeeting;
179
+ return branchCase("providerRejected", value, { kind: "RATE_LIMIT", provider: ConnectorID, operation: "createMeeting", message: "Zoom daily API rate limit reached with HTTP 429 (code 429)" });
180
+ }
181
+ function updateMeetingUpdated(value, failure) {
182
+ return branchCase("updated", value, failure);
183
+ }
184
+ function updateMeetingNotFound(value, failure) {
185
+ return branchCase("notFound", value, failure);
186
+ }
187
+ function updateMeetingProviderRejected(value, failure) {
188
+ return branchCase("providerRejected", value, failure);
189
+ }
190
+ function updateMeetingDefect(value, failure) {
191
+ return branchCase("defect", value, failure);
192
+ }
193
+ function updateMeetingRetry(failure, retryAfterMs = 0) {
194
+ return retryCase(failure, retryAfterMs);
195
+ }
196
+ function updateMeetingUpdatedDefaultAnswer() {
197
+ const value = UpdatedMeetingSchema.parse({ "meetingId": 92674392836 });
198
+ return branchCase("updated", value);
199
+ }
200
+ function updateMeetingDefault() {
201
+ return updateMeetingUpdatedDefaultAnswer();
202
+ }
203
+ function updateMeetingNotFoundFailure() {
204
+ const value = emptyUpdatedMeeting;
205
+ return branchCase("notFound", value, { kind: "NOT_FOUND", provider: ConnectorID, operation: "updateMeeting", message: "The meeting does not exist or was deleted." });
206
+ }
207
+ function updateMeetingProviderRejectedFailure() {
208
+ const value = emptyUpdatedMeeting;
209
+ return branchCase("providerRejected", value, { kind: "PROVIDER_REJECTION", provider: ConnectorID, operation: "updateMeeting", message: "Zoom conclusively rejected the patch because a field value is invalid." });
210
+ }
211
+ function updateMeetingDailyLimitFailure() {
212
+ const value = emptyUpdatedMeeting;
213
+ return branchCase("providerRejected", value, { kind: "RATE_LIMIT", provider: ConnectorID, operation: "updateMeeting", message: "Zoom daily API rate limit reached with HTTP 429 (code 429)" });
214
+ }
215
+ function listPastMeetingParticipantsListed(value, failure) {
216
+ return branchCase("listed", value, failure);
217
+ }
218
+ function listPastMeetingParticipantsNotFound(value, failure) {
219
+ return branchCase("notFound", value, failure);
220
+ }
221
+ function listPastMeetingParticipantsProviderRejected(value, failure) {
222
+ return branchCase("providerRejected", value, failure);
223
+ }
224
+ function listPastMeetingParticipantsInvalidResponse(value, failure) {
225
+ return branchCase("invalidResponse", value, failure);
226
+ }
227
+ function listPastMeetingParticipantsDefect(value, failure) {
228
+ return branchCase("defect", value, failure);
229
+ }
230
+ function listPastMeetingParticipantsRetry(failure, retryAfterMs = 0) {
231
+ return retryCase(failure, retryAfterMs);
232
+ }
233
+ function listPastMeetingParticipantsListedDefaultAnswer() {
234
+ const value = emptyParticipantPage;
235
+ return branchCase("listed", value);
236
+ }
237
+ function listPastMeetingParticipantsDefault() {
238
+ return listPastMeetingParticipantsListedDefaultAnswer();
239
+ }
240
+ function listPastMeetingParticipantsNotFoundFailure() {
241
+ const value = emptyParticipantPage;
242
+ return branchCase("notFound", value, { kind: "NOT_FOUND", provider: ConnectorID, operation: "listPastMeetingParticipants", message: "Zoom has no ended instance of the meeting." });
243
+ }
244
+ function listPastMeetingParticipantsProviderRejectedFailure() {
245
+ const value = emptyParticipantPage;
246
+ return branchCase("providerRejected", value, { kind: "AUTHORIZATION", provider: ConnectorID, operation: "listPastMeetingParticipants", message: "Zoom denied access to the participant list." });
247
+ }
248
+ function listPastMeetingParticipantsDailyLimitFailure() {
249
+ const value = emptyParticipantPage;
250
+ return branchCase("providerRejected", value, { kind: "RATE_LIMIT", provider: ConnectorID, operation: "listPastMeetingParticipants", message: "Zoom daily API rate limit reached with HTTP 429 (code 429)" });
251
+ }
252
+ function listPastMeetingParticipantsInvalidResponseFailure() {
253
+ const value = emptyParticipantPage;
254
+ return branchCase("invalidResponse", value, { kind: "PROTOCOL", provider: ConnectorID, operation: "listPastMeetingParticipants", message: "Zoom returned an unusable participant page." });
255
+ }
256
+ var GeneratedMock = class {
257
+ #listMeetings;
258
+ #getMeeting;
259
+ #createMeeting;
260
+ #updateMeeting;
261
+ #listPastMeetingParticipants;
262
+ #connection;
263
+ constructor(connectionName) {
264
+ this.#listMeetings = newQuery(ListMeetingsDefinition).default(listMeetingsDefault());
265
+ this.#getMeeting = newQuery(GetMeetingDefinition).default(getMeetingDefault());
266
+ this.#createMeeting = newMutation(CreateMeetingDefinition).default(createMeetingDefault());
267
+ this.#updateMeeting = newMutation(UpdateMeetingDefinition).default(updateMeetingDefault());
268
+ this.#listPastMeetingParticipants = newQuery(ListPastMeetingParticipantsDefinition).default(listPastMeetingParticipantsDefault());
269
+ this.#connection = newConnectionWithOperations(this, { provider: ProviderID, name: connectionName });
270
+ }
271
+ connection() {
272
+ return this.#connection;
273
+ }
274
+ listMeetings() {
275
+ return this.#listMeetings;
276
+ }
277
+ getMeeting() {
278
+ return this.#getMeeting;
279
+ }
280
+ createMeeting() {
281
+ return this.#createMeeting;
282
+ }
283
+ updateMeeting() {
284
+ return this.#updateMeeting;
285
+ }
286
+ listPastMeetingParticipants() {
287
+ return this.#listPastMeetingParticipants;
288
+ }
289
+ assertNoFailures() {
290
+ this.#listMeetings.assertNoFailures();
291
+ this.#getMeeting.assertNoFailures();
292
+ this.#createMeeting.assertNoFailures();
293
+ this.#updateMeeting.assertNoFailures();
294
+ this.#listPastMeetingParticipants.assertNoFailures();
295
+ }
296
+ };
297
+ export {
298
+ GeneratedMock,
299
+ createMeetingCreated,
300
+ createMeetingCreatedDefaultAnswer,
301
+ createMeetingDailyLimitFailure,
302
+ createMeetingDefault,
303
+ createMeetingDefect,
304
+ createMeetingProviderRejected,
305
+ createMeetingProviderRejectedFailure,
306
+ createMeetingRetry,
307
+ createMeetingUncertain,
308
+ emptyCreateMeetingInput,
309
+ emptyGetMeetingInput,
310
+ emptyListMeetingsInput,
311
+ emptyListPastMeetingParticipantsInput,
312
+ emptyMeeting,
313
+ emptyMeetingPage,
314
+ emptyMeetingParticipant,
315
+ emptyMeetingSettings,
316
+ emptyMeetingSettingsInput,
317
+ emptyMeetingSummary,
318
+ emptyParticipantPage,
319
+ emptyUpdateMeetingInput,
320
+ emptyUpdatedMeeting,
321
+ getMeetingDailyLimitFailure,
322
+ getMeetingDefault,
323
+ getMeetingDefect,
324
+ getMeetingFound,
325
+ getMeetingFoundDefaultAnswer,
326
+ getMeetingInvalidResponse,
327
+ getMeetingInvalidResponseFailure,
328
+ getMeetingNotFound,
329
+ getMeetingNotFoundFailure,
330
+ getMeetingProviderRejected,
331
+ getMeetingProviderRejectedFailure,
332
+ getMeetingRetry,
333
+ listMeetingsDailyLimitFailure,
334
+ listMeetingsDefault,
335
+ listMeetingsDefect,
336
+ listMeetingsInvalidResponse,
337
+ listMeetingsInvalidResponseFailure,
338
+ listMeetingsListed,
339
+ listMeetingsListedDefaultAnswer,
340
+ listMeetingsProviderRejected,
341
+ listMeetingsProviderRejectedFailure,
342
+ listMeetingsRetry,
343
+ listPastMeetingParticipantsDailyLimitFailure,
344
+ listPastMeetingParticipantsDefault,
345
+ listPastMeetingParticipantsDefect,
346
+ listPastMeetingParticipantsInvalidResponse,
347
+ listPastMeetingParticipantsInvalidResponseFailure,
348
+ listPastMeetingParticipantsListed,
349
+ listPastMeetingParticipantsListedDefaultAnswer,
350
+ listPastMeetingParticipantsNotFound,
351
+ listPastMeetingParticipantsNotFoundFailure,
352
+ listPastMeetingParticipantsProviderRejected,
353
+ listPastMeetingParticipantsProviderRejectedFailure,
354
+ listPastMeetingParticipantsRetry,
355
+ updateMeetingDailyLimitFailure,
356
+ updateMeetingDefault,
357
+ updateMeetingDefect,
358
+ updateMeetingNotFound,
359
+ updateMeetingNotFoundFailure,
360
+ updateMeetingProviderRejected,
361
+ updateMeetingProviderRejectedFailure,
362
+ updateMeetingRetry,
363
+ updateMeetingUpdated,
364
+ updateMeetingUpdatedDefaultAnswer
365
+ };
package/package.json CHANGED
@@ -1,6 +1,64 @@
1
1
  {
2
2
  "name": "@superdurable/connector-zoom",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Zoom meeting operations for Dex",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/superdurable/dex-connectors-library.git",
8
+ "directory": "connectors/zoom/typescript"
9
+ },
10
+ "type": "module",
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "registry": "https://registry.npmjs.org"
14
+ },
15
+ "engines": {
16
+ "node": "^22.0.0 || ^24.0.0"
17
+ },
18
+ "module": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js"
24
+ },
25
+ "./mock": {
26
+ "types": "./dist/mock.d.ts",
27
+ "import": "./dist/mock.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "dex-connector.json",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "build": "tsup src/index.ts src/mock.ts --format esm --dts --clean",
38
+ "typecheck": "tsc --noEmit",
39
+ "lint": "eslint src test examples",
40
+ "test": "npm run build && vitest run --exclude 'test/integration/**'",
41
+ "test:integration": "npm run build && vitest run test/integration/*.integration.test.ts",
42
+ "check": "npm test && npm run typecheck && npm run lint",
43
+ "example:meeting-list": "npm run build && tsx examples/meeting-list/main.ts",
44
+ "example:meeting-list:integration": "npm run build && tsx examples/meeting-list/integration.ts",
45
+ "example:meeting-list:start": "npm run build && tsx examples/meeting-list/start.ts"
46
+ },
47
+ "dependencies": {
48
+ "@superdurable/connectors-sdk": "0.7.0",
49
+ "@superdurable/dex": ">=1.28.0",
50
+ "zod": "^4.1.0"
51
+ },
52
+ "devDependencies": {
53
+ "@eslint/js": "^9.0.0",
54
+ "@types/node": "^22.0.0",
55
+ "eslint": "^9.0.0",
56
+ "tsup": "^8.0.0",
57
+ "tsx": "^4.23.15",
58
+ "typescript": "^5.9.0",
59
+ "typescript-eslint": "^8.0.0",
60
+ "vitest": "^3.0.0",
61
+ "yaml": "^2.9.1"
62
+ },
63
+ "license": "MIT"
64
+ }