@activepieces/piece-dub 0.0.3 → 0.0.4

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,227 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createLink = 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 auth_1 = require("../auth");
8
- exports.createLink = (0, pieces_framework_1.createAction)({
9
- name: 'create_link',
10
- displayName: 'Create Link',
11
- description: 'Create a new shortened link in your Dub workspace.',
12
- audience: 'both',
13
- aiMetadata: {
14
- description: 'Creates a new Dub short link for a destination URL, optionally with a custom domain, slug, tags, UTM parameters, expiration, password protection, and device-specific redirects. Use when an agent needs to generate a trackable short link. Not idempotent: each call creates a separate link, and if no slug is supplied a new random one is generated, so repeating the call yields duplicate links.',
15
- idempotent: false,
16
- },
17
- auth: auth_1.dubAuth,
18
- props: {
19
- url: pieces_framework_1.Property.ShortText({
20
- displayName: 'Destination URL',
21
- description: 'The full destination URL the short link should redirect to.',
22
- required: true,
23
- }),
24
- domain: pieces_framework_1.Property.ShortText({
25
- displayName: 'Domain',
26
- description: 'The domain to use for the short link (e.g. `dub.sh`). If omitted, the primary workspace domain is used.',
27
- required: false,
28
- }),
29
- key: pieces_framework_1.Property.ShortText({
30
- displayName: 'Short Link Slug',
31
- description: 'Custom slug for the short link (e.g. `my-promo`). If omitted, a random 7-character slug is generated.',
32
- required: false,
33
- }),
34
- externalId: pieces_framework_1.Property.ShortText({
35
- displayName: 'External ID',
36
- description: 'Your internal database ID for this link. Must be unique per workspace. Useful for looking up the link later.',
37
- required: false,
38
- }),
39
- title: pieces_framework_1.Property.ShortText({
40
- displayName: 'Title',
41
- description: 'A human-readable title for the link (used in the Dub dashboard).',
42
- required: false,
43
- }),
44
- description: pieces_framework_1.Property.LongText({
45
- displayName: 'Description',
46
- description: 'A short description of what the link points to.',
47
- required: false,
48
- }),
49
- image: pieces_framework_1.Property.ShortText({
50
- displayName: 'OG Image URL',
51
- description: 'Custom link preview image (og:image). Used when Custom Link Previews (`proxy`) is enabled.',
52
- required: false,
53
- }),
54
- video: pieces_framework_1.Property.ShortText({
55
- displayName: 'OG Video URL',
56
- description: 'Custom link preview video (og:video). Used when Custom Link Previews (`proxy`) is enabled.',
57
- required: false,
58
- }),
59
- tags: pieces_framework_1.Property.Array({
60
- displayName: 'Tag Names',
61
- description: 'List of tag names to attach to this link.',
62
- required: false,
63
- }),
64
- folderId: pieces_framework_1.Property.ShortText({
65
- displayName: 'Folder ID',
66
- description: 'The unique ID of an existing folder to assign this link to.',
67
- required: false,
68
- }),
69
- expiresAt: pieces_framework_1.Property.ShortText({
70
- displayName: 'Expires At',
71
- description: 'ISO 8601 datetime when the link should expire (e.g. `2025-12-31T23:59:59Z`). Expired links redirect to the expiration URL.',
72
- required: false,
73
- }),
74
- expiredUrl: pieces_framework_1.Property.ShortText({
75
- displayName: 'Expired URL',
76
- description: 'URL to redirect to after the link expires.',
77
- required: false,
78
- }),
79
- password: pieces_framework_1.Property.ShortText({
80
- displayName: 'Password',
81
- description: 'Password-protect the link. Visitors must enter this password before being redirected.',
82
- required: false,
83
- }),
84
- trackConversion: pieces_framework_1.Property.Checkbox({
85
- displayName: 'Track Conversions',
86
- description: 'Whether to track conversions for this link.',
87
- required: false,
88
- defaultValue: false,
89
- }),
90
- proxy: pieces_framework_1.Property.Checkbox({
91
- displayName: 'Custom Link Previews',
92
- description: 'Enable Custom Link Previews (og:title, og:description, og:image) for this link.',
93
- required: false,
94
- defaultValue: false,
95
- }),
96
- rewrite: pieces_framework_1.Property.Checkbox({
97
- displayName: 'Cloaked URL (URL Rewriting)',
98
- description: 'Cloak the destination URL — visitors see the short link URL in the browser.',
99
- required: false,
100
- defaultValue: false,
101
- }),
102
- doIndex: pieces_framework_1.Property.Checkbox({
103
- displayName: 'Allow Search Engine Indexing',
104
- description: 'Allow search engines to index this short link.',
105
- required: false,
106
- defaultValue: false,
107
- }),
108
- archived: pieces_framework_1.Property.Checkbox({
109
- displayName: 'Archived',
110
- description: 'Archive this link immediately after creation.',
111
- required: false,
112
- defaultValue: false,
113
- }),
114
- ios: pieces_framework_1.Property.ShortText({
115
- displayName: 'iOS Redirect URL',
116
- description: 'Redirect iOS device visitors to this URL instead.',
117
- required: false,
118
- }),
119
- android: pieces_framework_1.Property.ShortText({
120
- displayName: 'Android Redirect URL',
121
- description: 'Redirect Android device visitors to this URL instead.',
122
- required: false,
123
- }),
124
- comments: pieces_framework_1.Property.LongText({
125
- displayName: 'Comments',
126
- description: 'Internal notes about this link (not shown to visitors).',
127
- required: false,
128
- }),
129
- // UTM parameters
130
- utm_source: pieces_framework_1.Property.ShortText({
131
- displayName: 'UTM Source',
132
- description: 'UTM source parameter (e.g. `newsletter`, `twitter`).',
133
- required: false,
134
- }),
135
- utm_medium: pieces_framework_1.Property.ShortText({
136
- displayName: 'UTM Medium',
137
- description: 'UTM medium parameter (e.g. `email`, `social`).',
138
- required: false,
139
- }),
140
- utm_campaign: pieces_framework_1.Property.ShortText({
141
- displayName: 'UTM Campaign',
142
- description: 'UTM campaign parameter (e.g. `spring-sale`).',
143
- required: false,
144
- }),
145
- utm_term: pieces_framework_1.Property.ShortText({
146
- displayName: 'UTM Term',
147
- description: 'UTM term parameter for paid search keywords.',
148
- required: false,
149
- }),
150
- utm_content: pieces_framework_1.Property.ShortText({
151
- displayName: 'UTM Content',
152
- description: 'UTM content parameter for A/B testing.',
153
- required: false,
154
- }),
155
- },
156
- run(context) {
157
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
158
- const { auth, propsValue } = context;
159
- // Build body, omitting undefined/null/empty values
160
- const body = {
161
- url: propsValue.url,
162
- };
163
- if (propsValue.domain)
164
- body['domain'] = propsValue.domain;
165
- if (propsValue.key)
166
- body['key'] = propsValue.key;
167
- if (propsValue.externalId)
168
- body['externalId'] = propsValue.externalId;
169
- if (propsValue.title)
170
- body['title'] = propsValue.title;
171
- if (propsValue.description)
172
- body['description'] = propsValue.description;
173
- if (propsValue.image)
174
- body['image'] = propsValue.image;
175
- if (propsValue.video)
176
- body['video'] = propsValue.video;
177
- if (propsValue.tags && propsValue.tags.length > 0) {
178
- body['tagNames'] = propsValue.tags;
179
- }
180
- if (propsValue.folderId)
181
- body['folderId'] = propsValue.folderId;
182
- if (propsValue.expiresAt)
183
- body['expiresAt'] = propsValue.expiresAt;
184
- if (propsValue.expiredUrl)
185
- body['expiredUrl'] = propsValue.expiredUrl;
186
- if (propsValue.password)
187
- body['password'] = propsValue.password;
188
- if (propsValue.trackConversion)
189
- body['trackConversion'] = propsValue.trackConversion;
190
- if (propsValue.proxy)
191
- body['proxy'] = propsValue.proxy;
192
- if (propsValue.rewrite)
193
- body['rewrite'] = propsValue.rewrite;
194
- if (propsValue.doIndex)
195
- body['doIndex'] = propsValue.doIndex;
196
- if (propsValue.archived)
197
- body['archived'] = propsValue.archived;
198
- if (propsValue.ios)
199
- body['ios'] = propsValue.ios;
200
- if (propsValue.android)
201
- body['android'] = propsValue.android;
202
- if (propsValue.comments)
203
- body['comments'] = propsValue.comments;
204
- if (propsValue.utm_source)
205
- body['utm_source'] = propsValue.utm_source;
206
- if (propsValue.utm_medium)
207
- body['utm_medium'] = propsValue.utm_medium;
208
- if (propsValue.utm_campaign)
209
- body['utm_campaign'] = propsValue.utm_campaign;
210
- if (propsValue.utm_term)
211
- body['utm_term'] = propsValue.utm_term;
212
- if (propsValue.utm_content)
213
- body['utm_content'] = propsValue.utm_content;
214
- const response = yield pieces_common_1.httpClient.sendRequest({
215
- method: pieces_common_1.HttpMethod.POST,
216
- url: `${auth_1.DUB_API_BASE}/links`,
217
- headers: {
218
- Authorization: `Bearer ${auth.secret_text}`,
219
- 'Content-Type': 'application/json',
220
- },
221
- body,
222
- });
223
- return response.body;
224
- });
225
- },
226
- });
227
- //# sourceMappingURL=create-link.js.map
@@ -1 +0,0 @@
1
- {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U,CAAC,UAAU,CAAC;YACtE,IAAI,UAAU,CAAC,UAAU;gBAAE,IAAI,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC;YACtE,IAAI,UAAU,CAAC,YAAY;gBAAE,IAAI,CAAC,cAAc,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC;YAC5E,IAAI,UAAU,CAAC,QAAQ;gBAAE,IAAI,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC;YAChE,IAAI,UAAU,CAAC,WAAW;gBAAE,IAAI,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC;YAEzE,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAU;gBACrD,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,mBAAY,QAAQ;gBAC5B,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;oBAC3C,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI;aACL,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const deleteLink: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- linkId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- }>;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteLink = 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 auth_1 = require("../auth");
8
- exports.deleteLink = (0, pieces_framework_1.createAction)({
9
- name: 'delete_link',
10
- displayName: 'Delete Link',
11
- description: 'Permanently delete a Dub link. This action cannot be undone.',
12
- audience: 'both',
13
- aiMetadata: {
14
- description: 'Permanently deletes a Dub link by its link ID; this is destructive and cannot be undone. Use only when an agent is certain the link should be removed. Idempotent on end state — once deleted the link stays gone — but a repeat call targets an already-removed link.',
15
- idempotent: true,
16
- },
17
- auth: auth_1.dubAuth,
18
- props: {
19
- linkId: pieces_framework_1.Property.ShortText({
20
- displayName: 'Link ID',
21
- description: 'The ID of the link to delete (e.g. `clv3g2...`). Find this from the Create Link or List Links actions.',
22
- required: true,
23
- }),
24
- },
25
- run(context) {
26
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
- const { auth, propsValue } = context;
28
- const response = yield pieces_common_1.httpClient.sendRequest({
29
- method: pieces_common_1.HttpMethod.DELETE,
30
- url: `${auth_1.DUB_API_BASE}/links/${propsValue.linkId}`,
31
- headers: {
32
- Authorization: `Bearer ${auth.secret_text}`,
33
- 'Content-Type': 'application/json',
34
- },
35
- });
36
- return response.body;
37
- });
38
- },
39
- });
40
- //# sourceMappingURL=delete-link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-link.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-link.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,kCAAgD;AAEnC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,8DAA8D;IAC3E,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,wQAAwQ;QAC1Q,UAAU,EAAE,IAAI;KACjB;IACD,IAAI,EAAE,cAAO;IACb,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,wGAAwG;YACrH,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;YAErC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAiB;gBAC5D,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,GAAG,EAAE,GAAG,mBAAY,UAAU,UAAU,CAAC,MAAM,EAAE;gBACjD,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;oBAC3C,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const getLink: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- lookupMethod: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
- linkId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- externalId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- domain: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
- key: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
- }>;
@@ -1,89 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLink = 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 auth_1 = require("../auth");
8
- exports.getLink = (0, pieces_framework_1.createAction)({
9
- name: 'get_link',
10
- displayName: 'Get Link',
11
- description: 'Retrieve details of a specific Dub link by its ID, external ID, or domain + key.',
12
- audience: 'both',
13
- aiMetadata: {
14
- description: 'Fetches the full details of a single existing Dub link. Choose the lookup mode: by Dub link ID, by your own external ID (prefixed with ext_), or by domain + slug key. Use when an agent has a known identifier and needs the current link record. Idempotent read-only lookup.',
15
- idempotent: true,
16
- },
17
- auth: auth_1.dubAuth,
18
- props: {
19
- lookupMethod: pieces_framework_1.Property.StaticDropdown({
20
- displayName: 'Look Up By',
21
- description: 'How to identify the link you want to retrieve.',
22
- required: true,
23
- defaultValue: 'linkId',
24
- options: {
25
- options: [
26
- { label: 'Link ID', value: 'linkId' },
27
- { label: 'External ID', value: 'externalId' },
28
- { label: 'Domain + Key', value: 'domainKey' },
29
- ],
30
- },
31
- }),
32
- linkId: pieces_framework_1.Property.ShortText({
33
- displayName: 'Link ID',
34
- description: 'The Dub-generated link ID (e.g. `clv3g2...`). Used when Look Up By = Link ID.',
35
- required: false,
36
- }),
37
- externalId: pieces_framework_1.Property.ShortText({
38
- displayName: 'External ID',
39
- description: 'Your internal ID for the link. Pass with prefix `ext_` (e.g. `ext_123456`). Used when Look Up By = External ID.',
40
- required: false,
41
- }),
42
- domain: pieces_framework_1.Property.ShortText({
43
- displayName: 'Domain',
44
- description: 'The domain of the link (e.g. `dub.sh`). Used when Look Up By = Domain + Key.',
45
- required: false,
46
- }),
47
- key: pieces_framework_1.Property.ShortText({
48
- displayName: 'Key (Slug)',
49
- description: 'The slug of the link (e.g. `my-promo`). Used when Look Up By = Domain + Key.',
50
- required: false,
51
- }),
52
- },
53
- run(context) {
54
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
55
- const { auth, propsValue } = context;
56
- const { lookupMethod, linkId, externalId, domain, key } = propsValue;
57
- let url;
58
- switch (lookupMethod) {
59
- case 'linkId':
60
- if (!linkId)
61
- throw new Error('Link ID is required when Look Up By = Link ID.');
62
- url = `${auth_1.DUB_API_BASE}/links/${linkId}`;
63
- break;
64
- case 'externalId':
65
- if (!externalId)
66
- throw new Error('External ID is required when Look Up By = External ID.');
67
- url = `${auth_1.DUB_API_BASE}/links/info?externalId=${encodeURIComponent(externalId)}`;
68
- break;
69
- case 'domainKey':
70
- if (!domain || !key)
71
- throw new Error('Both Domain and Key are required when Look Up By = Domain + Key.');
72
- url = `${auth_1.DUB_API_BASE}/links/info?domain=${encodeURIComponent(domain)}&key=${encodeURIComponent(key)}`;
73
- break;
74
- default:
75
- throw new Error(`Unsupported lookup method: ${lookupMethod}`);
76
- }
77
- const response = yield pieces_common_1.httpClient.sendRequest({
78
- method: pieces_common_1.HttpMethod.GET,
79
- url,
80
- headers: {
81
- Authorization: `Bearer ${auth.secret_text}`,
82
- 'Content-Type': 'application/json',
83
- },
84
- });
85
- return response.body;
86
- });
87
- },
88
- });
89
- //# sourceMappingURL=get-link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-link.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-link.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,kCAAgD;AAGnC,QAAA,OAAO,GAAG,IAAA,+BAAY,EAAC;IAClC,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,kFAAkF;IAC/F,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,iRAAiR;QACnR,UAAU,EAAE,IAAI;KACjB;IACD,IAAI,EAAE,cAAO;IACb,KAAK,EAAE;QACL,YAAY,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACpC,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,QAAQ;YACtB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACrC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC7C,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE;iBAC9C;aACF;SACF,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,+EAA+E;YAC5F,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EACT,iHAAiH;YACnH,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,M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ACrD,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG;gBACH,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;oBAC3C,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- export declare const listLinks: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- domain: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
- tagNames: import("@activepieces/pieces-framework").ArrayProperty<false>;
4
- search: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- userId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
- showArchived: import("@activepieces/pieces-framework").CheckboxProperty<false>;
7
- page: import("@activepieces/pieces-framework").NumberProperty<false>;
8
- pageSize: import("@activepieces/pieces-framework").NumberProperty<false>;
9
- sort: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
10
- }>;
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listLinks = 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 auth_1 = require("../auth");
8
- exports.listLinks = (0, pieces_framework_1.createAction)({
9
- name: 'list_links',
10
- displayName: 'List Links',
11
- description: 'Retrieve a paginated list of links in your Dub workspace.',
12
- audience: 'both',
13
- aiMetadata: {
14
- description: 'Lists short links in the Dub workspace, with optional filters by domain, tag names, user, archived status, and a free-text search over URL/title/slug; leave filters empty to return all links. Use when an agent needs to discover links or find a link ID without already knowing an identifier. Supports pagination and sorting. Idempotent read-only query.',
15
- idempotent: true,
16
- },
17
- auth: auth_1.dubAuth,
18
- props: {
19
- domain: pieces_framework_1.Property.ShortText({
20
- displayName: 'Domain Filter',
21
- description: 'Filter by a specific domain (e.g. `dub.sh`). Leave empty to return all domains.',
22
- required: false,
23
- }),
24
- tagNames: pieces_framework_1.Property.Array({
25
- displayName: 'Tag Name Filter',
26
- description: 'Filter by one or more tag names.',
27
- required: false,
28
- }),
29
- search: pieces_framework_1.Property.ShortText({
30
- displayName: 'Search Query',
31
- description: 'Search links by their URL, title, or slug.',
32
- required: false,
33
- }),
34
- userId: pieces_framework_1.Property.ShortText({
35
- displayName: 'User ID Filter',
36
- description: 'Filter links created by a specific user ID.',
37
- required: false,
38
- }),
39
- showArchived: pieces_framework_1.Property.Checkbox({
40
- displayName: 'Include Archived Links',
41
- description: 'Whether to include archived links in the results.',
42
- required: false,
43
- defaultValue: false,
44
- }),
45
- page: pieces_framework_1.Property.Number({
46
- displayName: 'Page',
47
- description: 'Page number for pagination (starts at 1).',
48
- required: false,
49
- defaultValue: 1,
50
- }),
51
- pageSize: pieces_framework_1.Property.Number({
52
- displayName: 'Page Size',
53
- description: 'Number of links to return per page (1–100). Default is 100.',
54
- required: false,
55
- defaultValue: 100,
56
- }),
57
- sort: pieces_framework_1.Property.StaticDropdown({
58
- displayName: 'Sort By',
59
- description: 'Field to sort results by.',
60
- required: false,
61
- defaultValue: 'createdAt',
62
- options: {
63
- options: [
64
- { label: 'Created At (newest first)', value: 'createdAt' },
65
- { label: 'Clicks (most clicks first)', value: 'clicks' },
66
- { label: 'Last Clicked', value: 'lastClicked' },
67
- ],
68
- },
69
- }),
70
- },
71
- run(context) {
72
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
73
- const { auth, propsValue } = context;
74
- // Use URLSearchParams so we can append multiple tagName values
75
- const params = new URLSearchParams();
76
- if (propsValue.domain)
77
- params.set('domain', propsValue.domain);
78
- if (propsValue.search)
79
- params.set('search', propsValue.search);
80
- if (propsValue.userId)
81
- params.set('userId', propsValue.userId);
82
- if (propsValue.showArchived)
83
- params.set('showArchived', 'true');
84
- if (propsValue.page)
85
- params.set('page', String(propsValue.page));
86
- if (propsValue.pageSize)
87
- params.set('pageSize', String(propsValue.pageSize));
88
- if (propsValue.sort)
89
- params.set('sort', propsValue.sort);
90
- // Append each tag as a separate tagName param so all survive serialisation
91
- if (propsValue.tagNames && propsValue.tagNames.length > 0) {
92
- for (const tag of propsValue.tagNames) {
93
- params.append('tagName', tag);
94
- }
95
- }
96
- const queryString = params.toString();
97
- const url = `${auth_1.DUB_API_BASE}/links${queryString ? `?${queryString}` : ''}`;
98
- const response = yield pieces_common_1.httpClient.sendRequest({
99
- method: pieces_common_1.HttpMethod.GET,
100
- url,
101
- headers: {
102
- Authorization: `Bearer ${auth.secret_text}`,
103
- 'Content-Type': 'application/json',
104
- },
105
- });
106
- return response.body;
107
- });
108
- },
109
- });
110
- //# sourceMappingURL=list-links.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-links.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-links.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,kCAAgD;AAEnC,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,iWAAiW;QACnW,UAAU,EAAE,IAAI;KACjB;IACD,IAAI,EAAE,cAAO;IACb,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,iFAAiF;YAC9F,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACvB,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,cAAc;YAC3B,WAAW,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EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG;gBACH,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;oBAC3C,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- export declare const updateLink: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- linkId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- key: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
- description: import("@activepieces/pieces-framework").LongTextProperty<false>;
7
- image: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
- video: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
10
- folderId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
- expiresAt: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
- expiredUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
- password: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
- trackConversion: import("@activepieces/pieces-framework").CheckboxProperty<false>;
15
- proxy: import("@activepieces/pieces-framework").CheckboxProperty<false>;
16
- rewrite: import("@activepieces/pieces-framework").CheckboxProperty<false>;
17
- doIndex: import("@activepieces/pieces-framework").CheckboxProperty<false>;
18
- archived: import("@activepieces/pieces-framework").CheckboxProperty<false>;
19
- ios: import("@activepieces/pieces-framework").ShortTextProperty<false>;
20
- android: import("@activepieces/pieces-framework").ShortTextProperty<false>;
21
- comments: import("@activepieces/pieces-framework").LongTextProperty<false>;
22
- utm_source: import("@activepieces/pieces-framework").ShortTextProperty<false>;
23
- utm_medium: import("@activepieces/pieces-framework").ShortTextProperty<false>;
24
- utm_campaign: import("@activepieces/pieces-framework").ShortTextProperty<false>;
25
- utm_term: import("@activepieces/pieces-framework").ShortTextProperty<false>;
26
- utm_content: import("@activepieces/pieces-framework").ShortTextProperty<false>;
27
- }>;