@scopieflows/app-zoom 0.5.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.
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zoomCreateMeetingRegistrant = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const props_1 = require("../common/props");
8
+ const __1 = require("../..");
9
+ exports.zoomCreateMeetingRegistrant = (0, pieces_framework_1.createAction)({
10
+ auth: __1.zoomAuth,
11
+ name: 'zoom_create_meeting_registrant',
12
+ displayName: 'Create Zoom Meeting Registrant',
13
+ description: "Create and submit a user's registration to a meeting.",
14
+ props: (0, props_1.getRegistarantProps)(),
15
+ run(context) {
16
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
17
+ const body = {
18
+ first_name: context.propsValue.first_name,
19
+ last_name: context.propsValue.last_name,
20
+ email: context.propsValue.email,
21
+ address: context.propsValue.address,
22
+ city: context.propsValue.city,
23
+ state: context.propsValue.state,
24
+ zip: context.propsValue.zip,
25
+ country: context.propsValue.country,
26
+ phone: context.propsValue.phone,
27
+ comments: context.propsValue.comments,
28
+ industry: context.propsValue.industry,
29
+ job_title: context.propsValue.job_title,
30
+ no_of_employees: context.propsValue.no_of_employees,
31
+ org: context.propsValue.org,
32
+ purchasing_time_frame: context.propsValue.purchasing_time_frame,
33
+ role_in_purchase_process: context.propsValue.role_in_purchase_process,
34
+ };
35
+ if (context.propsValue.custom_questions &&
36
+ Object.keys(context.propsValue.custom_questions).length > 0) {
37
+ body.custom_questions = Object.entries(context.propsValue.custom_questions).map(([key, value]) => ({ title: key, value: value }));
38
+ }
39
+ const request = {
40
+ method: pieces_common_1.HttpMethod.POST,
41
+ url: `https://api.zoom.us/v2/meetings/${context.propsValue.meeting_id}/registrants`,
42
+ body,
43
+ authentication: {
44
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
45
+ token: context.auth.access_token,
46
+ },
47
+ queryParams: {},
48
+ };
49
+ const result = yield pieces_common_1.httpClient.sendRequest(request);
50
+ console.debug('Meeting registration response', result);
51
+ if (result.status === 201) {
52
+ return result.body;
53
+ }
54
+ else {
55
+ return result;
56
+ }
57
+ });
58
+ },
59
+ });
60
+ //# sourceMappingURL=create-meeting-registrant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-meeting-registrant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/zoom/src/lib/actions/create-meeting-registrant.ts"],"names":[],"mappings":";;;;AAAA,oEAA6D;AAC7D,8DAKoC;AAEpC,2CAAsD;AACtD,6BAAiC;AAEpB,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,YAAQ;IACd,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,uDAAuD;IACpE,KAAK,EAAE,IAAA,2BAAmB,GAAE;IACtB,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAA4B;gBACpC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;gBACzC,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;gBACvC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;gBACnC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;gBAC7B,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,GAAG,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG;gBAC3B,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;gBACnC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,QAAQ,EAAE,OAAO,CAA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AAC;iBAAM,CAAC;gBACN,OAAO,MAAM,CAAC;YAChB,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const zoomCreateMeeting: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {
2
+ topic: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
3
+ start_time: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
4
+ duration: import("@scopieflows/pieces-framework").NumberProperty<false>;
5
+ auto_recording: import("@scopieflows/pieces-framework").StaticDropdownProperty<string, false>;
6
+ audio: import("@scopieflows/pieces-framework").StaticDropdownProperty<string, false>;
7
+ agenda: import("@scopieflows/pieces-framework").LongTextProperty<false>;
8
+ password: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
9
+ pre_schedule: import("@scopieflows/pieces-framework").CheckboxProperty<false>;
10
+ schedule_for: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
11
+ join_url: import("@scopieflows/pieces-framework").LongTextProperty<false>;
12
+ }>;
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zoomCreateMeeting = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const __1 = require("../..");
8
+ const defaults = {
9
+ agenda: 'My Meeting',
10
+ default_password: false,
11
+ duration: 30,
12
+ pre_schedule: false,
13
+ settings: {
14
+ allow_multiple_devices: true,
15
+ approval_type: 2,
16
+ audio: 'telephony',
17
+ calendar_type: 1,
18
+ close_registration: false,
19
+ email_notification: true,
20
+ host_video: true,
21
+ join_before_host: false,
22
+ meeting_authentication: true,
23
+ mute_upon_entry: false,
24
+ participant_video: false,
25
+ private_meeting: false,
26
+ registrants_confirmation_email: true,
27
+ registrants_email_notification: true,
28
+ registration_type: 1,
29
+ show_share_button: true,
30
+ host_save_video_order: true,
31
+ },
32
+ timezone: 'UTC',
33
+ type: 2,
34
+ };
35
+ const action = () => {
36
+ return (0, pieces_framework_1.createAction)({
37
+ auth: __1.zoomAuth,
38
+ name: 'zoom_create_meeting', // Must be a unique across the piece, this shouldn't be changed.
39
+ displayName: 'Create Zoom Meeting',
40
+ description: 'Create a new Zoom Meeting',
41
+ props: {
42
+ topic: pieces_framework_1.Property.ShortText({
43
+ displayName: "Meeting's topic",
44
+ description: "The meeting's topic",
45
+ required: true,
46
+ }),
47
+ start_time: pieces_framework_1.Property.ShortText({
48
+ displayName: 'Start Time',
49
+ description: 'Meeting start date-time',
50
+ required: false,
51
+ }),
52
+ duration: pieces_framework_1.Property.Number({
53
+ displayName: 'Duration (in Minutes)',
54
+ description: 'Duration of the meeting',
55
+ required: false,
56
+ }),
57
+ auto_recording: pieces_framework_1.Property.StaticDropdown({
58
+ displayName: 'Auto Recording',
59
+ required: false,
60
+ options: {
61
+ disabled: false,
62
+ options: [
63
+ { label: 'Local', value: 'local' },
64
+ { label: 'Cloud', value: 'cloud' },
65
+ { label: 'None', value: 'none' },
66
+ ],
67
+ },
68
+ }),
69
+ audio: pieces_framework_1.Property.StaticDropdown({
70
+ displayName: 'Audio',
71
+ required: false,
72
+ options: {
73
+ disabled: false,
74
+ options: [
75
+ { label: 'Both telephony and VoIP', value: 'both' },
76
+ { label: 'Telephony only', value: 'telephony' },
77
+ { label: 'VoIP only', value: 'voip' },
78
+ { label: 'Third party audio conference', value: 'thirdParty' },
79
+ ],
80
+ },
81
+ }),
82
+ agenda: pieces_framework_1.Property.LongText({
83
+ displayName: 'Agenda',
84
+ description: "The meeting's agenda",
85
+ required: false,
86
+ }),
87
+ password: pieces_framework_1.Property.ShortText({
88
+ displayName: 'Password',
89
+ description: 'The password required to join the meeting. By default, a password can only have a maximum length of 10 characters and only contain alphanumeric characters and the @, -, _, and * characters.',
90
+ required: false,
91
+ }),
92
+ pre_schedule: pieces_framework_1.Property.Checkbox({
93
+ displayName: 'Pre Schedule',
94
+ description: 'Whether the prescheduled meeting was created via the GSuite app.',
95
+ required: false,
96
+ }),
97
+ schedule_for: pieces_framework_1.Property.ShortText({
98
+ displayName: 'Schedule for',
99
+ description: 'The email address or user ID of the user to schedule a meeting for.',
100
+ required: false,
101
+ }),
102
+ join_url: pieces_framework_1.Property.LongText({
103
+ displayName: 'Join URL',
104
+ description: 'URL for participants to join the meeting.',
105
+ required: false,
106
+ }),
107
+ },
108
+ run(context) {
109
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
110
+ const body = Object.assign(Object.assign({}, defaults), context.propsValue);
111
+ if (context.propsValue.auto_recording) {
112
+ body.settings.auto_recording = context.propsValue.auto_recording;
113
+ }
114
+ if (context.propsValue.audio) {
115
+ body.settings.audio = context.propsValue.audio;
116
+ }
117
+ delete body['auth'];
118
+ const request = {
119
+ method: pieces_common_1.HttpMethod.POST,
120
+ url: `https://api.zoom.us/v2/users/me/meetings`,
121
+ body: body,
122
+ authentication: {
123
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
124
+ token: context.auth.access_token,
125
+ },
126
+ queryParams: {},
127
+ };
128
+ const result = yield pieces_common_1.httpClient.sendRequest(request);
129
+ if (result.status === 201) {
130
+ return result.body;
131
+ }
132
+ else {
133
+ return result;
134
+ }
135
+ });
136
+ },
137
+ });
138
+ };
139
+ exports.zoomCreateMeeting = action();
140
+ //# sourceMappingURL=create-meeting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-meeting.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/zoom/src/lib/actions/create-meeting.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,8DAKoC;AAEpC,6BAAiC;AAEjC,MAAM,QAAQ,GAAG;IACf,MAAM,EAAE,YAAY;IACpB,gBAAgB,EAAE,KAAK;IACvB,QAAQ,EAAE,EAAE;IACZ,YAAY,EAAE,KAAK;IAEnB,QAAQ,EAAE;QACR,sBAAsB,EA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etingRegistrant {
3
+ first_name: string;
4
+ last_name?: string;
5
+ email: string;
6
+ address?: string;
7
+ city?: string;
8
+ state?: string;
9
+ zip?: string;
10
+ country?: string;
11
+ phone?: string;
12
+ comments?: string;
13
+ custom_questions?: {
14
+ title: string;
15
+ value: string;
16
+ }[];
17
+ industry?: string;
18
+ job_title?: string;
19
+ no_of_employees?: string;
20
+ org?: string;
21
+ purchasing_time_frame?: string;
22
+ role_in_purchase_process?: string;
23
+ language?: string;
24
+ auto_approve?: boolean;
25
+ }
26
+ export interface RegistrationResponse extends HttpMessageBody {
27
+ id: number;
28
+ join_url: string;
29
+ registrant_id: string;
30
+ start_time: string;
31
+ topic: string;
32
+ occurrences: {
33
+ duration: number;
34
+ occurrence_id: string;
35
+ start_time: string;
36
+ status: string;
37
+ }[];
38
+ participant_pin_code: number;
39
+ }
40
+ export interface MeetingResponseBody extends HttpMessageBody {
41
+ id?: number;
42
+ assistant_id?: string;
43
+ host_email?: string;
44
+ registration_url?: string;
45
+ agenda?: string;
46
+ created_at?: string;
47
+ duration?: number;
48
+ join_url?: string;
49
+ occurrences?: {
50
+ duration?: number;
51
+ occurrence_id?: string;
52
+ start_time?: string;
53
+ status?: string;
54
+ }[];
55
+ password?: string;
56
+ pmi?: string;
57
+ pre_schedule?: boolean;
58
+ recurrence?: {
59
+ end_date_time?: string;
60
+ end_times?: number;
61
+ monthly_day?: number;
62
+ monthly_week?: number;
63
+ monthly_week_day?: number;
64
+ repeat_interval?: number;
65
+ type: number;
66
+ weekly_days?: string;
67
+ };
68
+ settings: {
69
+ allow_multiple_devices: boolean;
70
+ alternative_hosts: number;
71
+ alternative_hosts_email_notification: boolean;
72
+ alternative_host_update_polls: boolean;
73
+ approval_type: number;
74
+ approved_or_denied_countries_or_regions: {
75
+ approved_list: string[];
76
+ denied_list: string[];
77
+ enable: boolean;
78
+ method: string;
79
+ };
80
+ audio: string;
81
+ authentication_domains: string;
82
+ authentication_exception: {
83
+ email: string;
84
+ name: string;
85
+ join_url: string;
86
+ }[];
87
+ authentication_name: string;
88
+ authentication_option: string;
89
+ auto_recording: string;
90
+ breakout_room: {
91
+ enable: boolean;
92
+ rooms: {
93
+ name: string;
94
+ participants: string[];
95
+ }[];
96
+ };
97
+ calendar_type: number;
98
+ close_registration: boolean;
99
+ contact_email: string;
100
+ contact_name: string;
101
+ custom_keys: {
102
+ key: string;
103
+ value: string;
104
+ }[];
105
+ email_notification: boolean;
106
+ encryption_type: string;
107
+ focus_mode: boolean;
108
+ global_dial_in_countries: string[];
109
+ global_dial_in_numbers: {
110
+ city: string;
111
+ country: string;
112
+ country_name: string;
113
+ number: string;
114
+ type: string;
115
+ }[];
116
+ host_video: boolean;
117
+ jbh_time: number;
118
+ join_before_host: boolean;
119
+ language_interpretation: {
120
+ enable: boolean;
121
+ interpreters: {
122
+ email: string;
123
+ languages: string;
124
+ }[];
125
+ };
126
+ meeting_authentication: boolean;
127
+ mute_upon_entry: boolean;
128
+ participant_video: boolean;
129
+ private_meeting: boolean;
130
+ registrants_confirmation_email: boolean;
131
+ registrants_email_notification: boolean;
132
+ registration_type: number;
133
+ show_share_button: boolean;
134
+ use_pmi: boolean;
135
+ waiting_room: boolean;
136
+ watermark: boolean;
137
+ host_save_video_order: boolean;
138
+ };
139
+ start_time: string;
140
+ start_url: string;
141
+ timezone: string;
142
+ topic: string;
143
+ type: number;
144
+ tracking_fields: {
145
+ field: string;
146
+ value: string;
147
+ visible: boolean;
148
+ }[];
149
+ }
150
+ export interface MeetingMessageBody extends HttpMessageBody {
151
+ agenda?: string;
152
+ password?: string;
153
+ duration?: number;
154
+ pre_schedule?: boolean;
155
+ recurrence?: {
156
+ end_date_time: string;
157
+ end_times: number;
158
+ monthly_day: number;
159
+ monthly_week: number;
160
+ monthly_week_day: number;
161
+ repeat_interval: number;
162
+ type: number;
163
+ weekly_days: string;
164
+ };
165
+ settings: {
166
+ allow_multiple_devices?: boolean;
167
+ alternative_hosts?: number;
168
+ alternative_hosts_email_notification?: boolean;
169
+ alternative_host_update_polls?: boolean;
170
+ approval_type?: number;
171
+ approved_or_denied_countries_or_regions?: {
172
+ approved_list?: string[];
173
+ denied_list?: string[];
174
+ enable?: boolean;
175
+ method?: string;
176
+ };
177
+ audio?: string;
178
+ authentication_domains?: string;
179
+ authentication_exception?: {
180
+ email?: string;
181
+ name?: string;
182
+ join_url?: string;
183
+ }[];
184
+ authentication_name?: string;
185
+ authentication_option?: string;
186
+ auto_recording?: string;
187
+ breakout_room?: {
188
+ enable?: boolean;
189
+ rooms?: {
190
+ name: string;
191
+ participants: string[];
192
+ }[];
193
+ };
194
+ calendar_type?: number;
195
+ close_registration?: boolean;
196
+ contact_email?: string;
197
+ contact_name?: string;
198
+ custom_keys?: {
199
+ key?: string;
200
+ value?: string;
201
+ }[];
202
+ email_notification?: boolean;
203
+ encryption_type?: string;
204
+ focus_mode?: boolean;
205
+ global_dial_in_countries?: string[];
206
+ global_dial_in_numbers?: {
207
+ city?: string;
208
+ country?: string;
209
+ country_name?: string;
210
+ number?: string;
211
+ type?: string;
212
+ }[];
213
+ host_video?: boolean;
214
+ jbh_time?: number;
215
+ join_before_host?: boolean;
216
+ language_interpretation?: {
217
+ enable?: boolean;
218
+ interpreters?: {
219
+ email?: string;
220
+ languages?: string;
221
+ }[];
222
+ };
223
+ meeting_authentication?: boolean;
224
+ mute_upon_entry?: boolean;
225
+ participant_video?: boolean;
226
+ private_meeting?: boolean;
227
+ registrants_confirmation_email?: boolean;
228
+ registrants_email_notification?: boolean;
229
+ registration_type?: number;
230
+ show_share_button?: boolean;
231
+ use_pmi?: boolean;
232
+ waiting_room?: boolean;
233
+ watermark?: boolean;
234
+ host_save_video_order?: boolean;
235
+ };
236
+ start_time?: string;
237
+ start_url?: string;
238
+ timezone?: string;
239
+ topic?: string;
240
+ type?: number;
241
+ tracking_fields?: {
242
+ field: string;
243
+ value?: string;
244
+ visible?: boolean;
245
+ }[];
246
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/zoom/src/lib/common/models.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export declare const getRegistarantProps: () => {
2
+ meeting_id: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
3
+ first_name: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
4
+ last_name: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
5
+ email: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
6
+ address: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
7
+ city: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
8
+ state: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
9
+ zip: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
10
+ country: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
11
+ phone: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
12
+ comments: import("@scopieflows/pieces-framework").LongTextProperty<false>;
13
+ custom_questions: import("@scopieflows/pieces-framework").ObjectProperty<false>;
14
+ industry: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
15
+ job_title: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
16
+ no_of_employees: import("@scopieflows/pieces-framework").StaticDropdownProperty<string, false>;
17
+ org: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
18
+ purchasing_time_frame: import("@scopieflows/pieces-framework").StaticDropdownProperty<string, false>;
19
+ role_in_purchase_process: import("@scopieflows/pieces-framework").StaticDropdownProperty<string, false>;
20
+ };
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRegistarantProps = void 0;
4
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
5
+ const getRegistarantProps = () => ({
6
+ meeting_id: pieces_framework_1.Property.ShortText({
7
+ displayName: 'Meeting ID',
8
+ description: 'The meeting ID.',
9
+ required: true,
10
+ }),
11
+ first_name: pieces_framework_1.Property.ShortText({
12
+ displayName: 'First name',
13
+ description: "The registrant's first name.",
14
+ required: true,
15
+ }),
16
+ last_name: pieces_framework_1.Property.ShortText({
17
+ displayName: 'Last name',
18
+ description: "The registrant's last name.",
19
+ required: false,
20
+ }),
21
+ email: pieces_framework_1.Property.ShortText({
22
+ displayName: 'Email',
23
+ description: "The registrant's email address.",
24
+ required: true,
25
+ }),
26
+ address: pieces_framework_1.Property.ShortText({
27
+ displayName: 'Address',
28
+ description: "The registrant's address",
29
+ required: false,
30
+ }),
31
+ city: pieces_framework_1.Property.ShortText({
32
+ displayName: 'City',
33
+ description: "The registrant's city",
34
+ required: false,
35
+ }),
36
+ state: pieces_framework_1.Property.ShortText({
37
+ displayName: 'State',
38
+ description: "The registrant's state or province.",
39
+ required: false,
40
+ }),
41
+ zip: pieces_framework_1.Property.ShortText({
42
+ displayName: 'Zip',
43
+ description: "The registrant's zip or postal code.",
44
+ required: false,
45
+ }),
46
+ country: pieces_framework_1.Property.ShortText({
47
+ displayName: 'Country',
48
+ description: "The registrant's two-letter country code.",
49
+ required: false,
50
+ }),
51
+ phone: pieces_framework_1.Property.ShortText({
52
+ displayName: 'Phone',
53
+ description: "The registrant's phone number.",
54
+ required: false,
55
+ }),
56
+ comments: pieces_framework_1.Property.LongText({
57
+ displayName: 'Comments',
58
+ description: "The registrant's questions and comments.",
59
+ required: false,
60
+ }),
61
+ custom_questions: pieces_framework_1.Property.Object({
62
+ displayName: 'Custom questions',
63
+ description: '',
64
+ required: false,
65
+ }),
66
+ industry: pieces_framework_1.Property.ShortText({
67
+ displayName: 'Industry',
68
+ description: "The registrant's industry.",
69
+ required: false,
70
+ }),
71
+ job_title: pieces_framework_1.Property.ShortText({
72
+ displayName: 'Job title',
73
+ description: "The registrant's job title.",
74
+ required: false,
75
+ }),
76
+ no_of_employees: pieces_framework_1.Property.StaticDropdown({
77
+ displayName: 'No of employees',
78
+ description: "The registrant's number of employees.",
79
+ required: false,
80
+ options: {
81
+ disabled: false,
82
+ options: [
83
+ { label: '1-20', value: '1-20' },
84
+ { label: '21-50', value: '21-50' },
85
+ { label: '51-100', value: '51-100' },
86
+ { label: '101-500', value: '101-500' },
87
+ { label: '500-1,000', value: '500-1,000' },
88
+ { label: '1,001-5,000', value: '1,001-5,000' },
89
+ { label: '5,001-10,000', value: '5,001-10,000' },
90
+ { label: 'More than 10,000', value: 'More than 10,000' },
91
+ ],
92
+ },
93
+ }),
94
+ org: pieces_framework_1.Property.ShortText({
95
+ displayName: 'Organization',
96
+ description: "The registrant's organization.",
97
+ required: false,
98
+ }),
99
+ purchasing_time_frame: pieces_framework_1.Property.StaticDropdown({
100
+ displayName: 'Purchasing time frame',
101
+ description: "The registrant's purchasing time frame.",
102
+ required: false,
103
+ options: {
104
+ disabled: false,
105
+ options: [
106
+ { label: 'Within a month', value: 'Within a month' },
107
+ { label: '1-3 months', value: '1-3 months' },
108
+ { label: '4-6 months', value: '4-6 months' },
109
+ { label: 'More than 6 months', value: 'More than 6 months' },
110
+ { label: 'No timeframe', value: 'No timeframe' },
111
+ ],
112
+ },
113
+ }),
114
+ role_in_purchase_process: pieces_framework_1.Property.StaticDropdown({
115
+ displayName: 'Role in purchase process',
116
+ description: "The registrant's role in the purchase process.",
117
+ required: false,
118
+ options: {
119
+ disabled: false,
120
+ options: [
121
+ { label: 'Decision Maker', value: 'Decision Maker' },
122
+ { label: 'Evaluator/Recommender', value: 'Evaluator/Recommender' },
123
+ { label: 'Influencer', value: 'Influencer' },
124
+ { label: 'Not involved', value: 'Not involved' },
125
+ ],
126
+ },
127
+ }),
128
+ });
129
+ exports.getRegistarantProps = getRegistarantProps;
130
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/zoom/src/lib/common/props.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAElD,MAAM,mBAAmB,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