@activepieces/piece-zoom 0.6.2 → 0.6.5

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.
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=models.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/lib/common/models.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- export declare const zoomMeetingDropdown: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
2
- export declare const getRegistarantProps: () => {
3
- meeting_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- first_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- last_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- address: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
- city: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- state: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
- zip: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
- country: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
- phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
- comments: import("@activepieces/pieces-framework").LongTextProperty<false>;
14
- custom_questions: import("@activepieces/pieces-framework").ObjectProperty<false>;
15
- industry: import("@activepieces/pieces-framework").ShortTextProperty<false>;
16
- job_title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
17
- no_of_employees: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
18
- org: import("@activepieces/pieces-framework").ShortTextProperty<false>;
19
- purchasing_time_frame: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
20
- role_in_purchase_process: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
21
- };
22
- //# sourceMappingURL=props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/props.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,wLA8D9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;CA2H9B,CAAC"}
@@ -1,185 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRegistarantProps = exports.zoomMeetingDropdown = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const __1 = require("../..");
8
- exports.zoomMeetingDropdown = pieces_framework_1.Property.Dropdown({
9
- displayName: 'Meeting',
10
- description: 'Select a meeting from your Zoom account.',
11
- required: true,
12
- auth: __1.zoomAuth,
13
- refreshers: ['auth'],
14
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
15
- if (!auth) {
16
- return {
17
- disabled: true,
18
- placeholder: 'Connect your Zoom account first.',
19
- options: [],
20
- };
21
- }
22
- const accessToken = auth.access_token;
23
- const options = [];
24
- let nextPageToken = '';
25
- try {
26
- do {
27
- const queryParams = {
28
- type: 'scheduled',
29
- page_size: '300',
30
- };
31
- if (nextPageToken) {
32
- queryParams['next_page_token'] = nextPageToken;
33
- }
34
- const res = yield pieces_common_1.httpClient.sendRequest({
35
- method: pieces_common_1.HttpMethod.GET,
36
- url: 'https://api.zoom.us/v2/users/me/meetings',
37
- authentication: {
38
- type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
39
- token: accessToken,
40
- },
41
- queryParams,
42
- });
43
- options.push(...res.body.meetings.map((m) => ({
44
- label: m.topic || `Meeting ${m.id}`,
45
- value: String(m.id),
46
- })));
47
- nextPageToken = res.body.next_page_token;
48
- } while (nextPageToken);
49
- }
50
- catch (_b) {
51
- return {
52
- disabled: true,
53
- placeholder: 'Could not load meetings. Ensure your Zoom app has the meeting:read:list_meetings scope.',
54
- options: [],
55
- };
56
- }
57
- return { options };
58
- }),
59
- });
60
- const getRegistarantProps = () => ({
61
- meeting_id: pieces_framework_1.Property.ShortText({
62
- displayName: 'Meeting ID',
63
- description: 'The meeting ID.',
64
- required: true,
65
- }),
66
- first_name: pieces_framework_1.Property.ShortText({
67
- displayName: 'First name',
68
- description: "The registrant's first name.",
69
- required: true,
70
- }),
71
- last_name: pieces_framework_1.Property.ShortText({
72
- displayName: 'Last name',
73
- description: "The registrant's last name.",
74
- required: false,
75
- }),
76
- email: pieces_framework_1.Property.ShortText({
77
- displayName: 'Email',
78
- description: "The registrant's email address.",
79
- required: true,
80
- }),
81
- address: pieces_framework_1.Property.ShortText({
82
- displayName: 'Address',
83
- description: "The registrant's address",
84
- required: false,
85
- }),
86
- city: pieces_framework_1.Property.ShortText({
87
- displayName: 'City',
88
- description: "The registrant's city",
89
- required: false,
90
- }),
91
- state: pieces_framework_1.Property.ShortText({
92
- displayName: 'State',
93
- description: "The registrant's state or province.",
94
- required: false,
95
- }),
96
- zip: pieces_framework_1.Property.ShortText({
97
- displayName: 'Zip',
98
- description: "The registrant's zip or postal code.",
99
- required: false,
100
- }),
101
- country: pieces_framework_1.Property.ShortText({
102
- displayName: 'Country',
103
- description: "The registrant's two-letter country code.",
104
- required: false,
105
- }),
106
- phone: pieces_framework_1.Property.ShortText({
107
- displayName: 'Phone',
108
- description: "The registrant's phone number.",
109
- required: false,
110
- }),
111
- comments: pieces_framework_1.Property.LongText({
112
- displayName: 'Comments',
113
- description: "The registrant's questions and comments.",
114
- required: false,
115
- }),
116
- custom_questions: pieces_framework_1.Property.Object({
117
- displayName: 'Custom questions',
118
- description: '',
119
- required: false,
120
- }),
121
- industry: pieces_framework_1.Property.ShortText({
122
- displayName: 'Industry',
123
- description: "The registrant's industry.",
124
- required: false,
125
- }),
126
- job_title: pieces_framework_1.Property.ShortText({
127
- displayName: 'Job title',
128
- description: "The registrant's job title.",
129
- required: false,
130
- }),
131
- no_of_employees: pieces_framework_1.Property.StaticDropdown({
132
- displayName: 'No of employees',
133
- description: "The registrant's number of employees.",
134
- required: false,
135
- options: {
136
- disabled: false,
137
- options: [
138
- { label: '1-20', value: '1-20' },
139
- { label: '21-50', value: '21-50' },
140
- { label: '51-100', value: '51-100' },
141
- { label: '101-500', value: '101-500' },
142
- { label: '500-1,000', value: '500-1,000' },
143
- { label: '1,001-5,000', value: '1,001-5,000' },
144
- { label: '5,001-10,000', value: '5,001-10,000' },
145
- { label: 'More than 10,000', value: 'More than 10,000' },
146
- ],
147
- },
148
- }),
149
- org: pieces_framework_1.Property.ShortText({
150
- displayName: 'Organization',
151
- description: "The registrant's organization.",
152
- required: false,
153
- }),
154
- purchasing_time_frame: pieces_framework_1.Property.StaticDropdown({
155
- displayName: 'Purchasing time frame',
156
- description: "The registrant's purchasing time frame.",
157
- required: false,
158
- options: {
159
- disabled: false,
160
- options: [
161
- { label: 'Within a month', value: 'Within a month' },
162
- { label: '1-3 months', value: '1-3 months' },
163
- { label: '4-6 months', value: '4-6 months' },
164
- { label: 'More than 6 months', value: 'More than 6 months' },
165
- { label: 'No timeframe', value: 'No timeframe' },
166
- ],
167
- },
168
- }),
169
- role_in_purchase_process: pieces_framework_1.Property.StaticDropdown({
170
- displayName: 'Role in purchase process',
171
- description: "The registrant's role in the purchase process.",
172
- required: false,
173
- options: {
174
- disabled: false,
175
- options: [
176
- { label: 'Decision Maker', value: 'Decision Maker' },
177
- { label: 'Evaluator/Recommender', value: 'Evaluator/Recommender' },
178
- { label: 'Influencer', value: 'Influencer' },
179
- { label: 'Not involved', value: 'Not involved' },
180
- ],
181
- },
182
- }),
183
- });
184
- exports.getRegistarantProps = getRegistarantProps;
185
- //# sourceMappingURL=props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../src/lib/common/props.ts"],"names":[],"mappings":";;;;AAAA,qEAA+E;AAC/E,+DAIqC;AACrC,6BAA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