@scopieflows/app-apify 0.1.1 → 0.2.1
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/package.json +10 -25
- package/src/index.d.ts +5 -4
- package/src/index.d.ts.map +1 -0
- package/src/index.js +37 -15
- package/src/index.js.map +1 -1
- package/src/lib/actions/get-dataset-items.d.ts +8 -3
- package/src/lib/actions/get-dataset-items.d.ts.map +1 -0
- package/src/lib/actions/get-dataset-items.js +34 -20
- package/src/lib/actions/get-dataset-items.js.map +1 -1
- package/src/lib/actions/get-key-value-store-record.d.ts +11 -0
- package/src/lib/actions/get-key-value-store-record.d.ts.map +1 -0
- package/src/lib/actions/get-key-value-store-record.js +92 -0
- package/src/lib/actions/get-key-value-store-record.js.map +1 -0
- package/src/lib/actions/run-actor.d.ts +16 -0
- package/src/lib/actions/run-actor.d.ts.map +1 -0
- package/src/lib/actions/run-actor.js +40 -0
- package/src/lib/actions/run-actor.js.map +1 -0
- package/src/lib/actions/run-task.d.ts +15 -0
- package/src/lib/actions/run-task.d.ts.map +1 -0
- package/src/lib/actions/run-task.js +39 -0
- package/src/lib/actions/run-task.js.map +1 -0
- package/src/lib/actions/scrape-single-url.d.ts +7 -0
- package/src/lib/actions/scrape-single-url.d.ts.map +1 -0
- package/src/lib/actions/scrape-single-url.js +105 -0
- package/src/lib/actions/scrape-single-url.js.map +1 -0
- package/src/lib/common/index.d.ts +114 -0
- package/src/lib/common/index.d.ts.map +1 -0
- package/src/lib/common/index.js +442 -0
- package/src/lib/common/index.js.map +1 -0
- package/src/lib/triggers/watch-actor-runs.d.ts +35 -0
- package/src/lib/triggers/watch-actor-runs.d.ts.map +1 -0
- package/src/lib/triggers/watch-actor-runs.js +46 -0
- package/src/lib/triggers/watch-actor-runs.js.map +1 -0
- package/src/lib/triggers/watch-task-runs.d.ts +31 -0
- package/src/lib/triggers/watch-task-runs.d.ts.map +1 -0
- package/src/lib/triggers/watch-task-runs.js +45 -0
- package/src/lib/triggers/watch-task-runs.js.map +1 -0
- package/README.md +0 -7
- package/src/i18n/de.json +0 -22
- package/src/i18n/es.json +0 -22
- package/src/i18n/fr.json +0 -22
- package/src/i18n/ja.json +0 -22
- package/src/i18n/nl.json +0 -22
- package/src/i18n/pt.json +0 -22
- package/src/i18n/ru.json +0 -23
- package/src/i18n/translation.json +0 -22
- package/src/i18n/vi.json +0 -23
- package/src/i18n/zh.json +0 -22
- package/src/lib/actions/get-actors.d.ts +0 -3
- package/src/lib/actions/get-actors.js +0 -32
- package/src/lib/actions/get-actors.js.map +0 -1
- package/src/lib/actions/get-last-run.d.ts +0 -5
- package/src/lib/actions/get-last-run.js +0 -43
- package/src/lib/actions/get-last-run.js.map +0 -1
- package/src/lib/actions/start-actor.d.ts +0 -6
- package/src/lib/actions/start-actor.js +0 -46
- package/src/lib/actions/start-actor.js.map +0 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ActorClient, ApifyClient, Build, Dictionary, TaskClient, WebhookCondition, WebhookEventType } from 'apify-client';
|
|
2
|
+
export type ApifyAuth = {
|
|
3
|
+
props: {
|
|
4
|
+
apikey: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
type DropdownOption = {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
export type ActorBuild = Build & {
|
|
12
|
+
actorDefinition?: {
|
|
13
|
+
input?: {
|
|
14
|
+
properties?: Record<string, {
|
|
15
|
+
prefill?: unknown | null;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare enum RunType {
|
|
21
|
+
ACTOR = "Actor",
|
|
22
|
+
TASK = "task"
|
|
23
|
+
}
|
|
24
|
+
export declare const MEMORY_OPTIONS: {
|
|
25
|
+
value: number;
|
|
26
|
+
label: string;
|
|
27
|
+
}[];
|
|
28
|
+
export declare const TERMINAL_STATUSES: WebhookEventType[];
|
|
29
|
+
export declare const STATUS_OPTIONS: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
export declare const createApifyClient: (apiKey: string) => ApifyClient;
|
|
34
|
+
export declare const listActors: (apiKey: string, actorSource: string) => Promise<DropdownOption[]>;
|
|
35
|
+
export declare const fetchActorInputSchema: (apiKey: string, actorId: string) => Promise<Build | undefined>;
|
|
36
|
+
export declare const getDefaultValuesFromBuild: (build: ActorBuild) => Dictionary;
|
|
37
|
+
export declare const listTasks: (apiKey: string) => Promise<DropdownOption[]>;
|
|
38
|
+
export declare const listDatasets: (apiKey: string) => Promise<DropdownOption[]>;
|
|
39
|
+
export declare const listStores: (apiKey: string) => Promise<DropdownOption[]>;
|
|
40
|
+
export declare const listRecords: (apiKey: string, storeId: string) => Promise<DropdownOption[]>;
|
|
41
|
+
export declare const pluralize: (n: number) => string;
|
|
42
|
+
export declare const getFileExtension: (contentType: string) => string;
|
|
43
|
+
export declare const isBinaryContentType: (contentType: string) => boolean;
|
|
44
|
+
export declare const createDropdownOptions: (auth: unknown, fetchItems: (apiKey: string) => Promise<DropdownOption[]>) => Promise<{
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
options: DropdownOption[];
|
|
47
|
+
}>;
|
|
48
|
+
export declare const createBuildProperty: () => import("@scopieflows/apps-framework").ShortTextProperty<false>;
|
|
49
|
+
export declare const createMemoryProperty: (runType: RunType) => import("@scopieflows/apps-framework").StaticDropdownProperty<number, false>;
|
|
50
|
+
export declare const createTimeoutProperty: (runType: RunType) => import("@scopieflows/apps-framework").NumberProperty<false>;
|
|
51
|
+
export declare const createWaitForFinishProperty: (runType: RunType) => import("@scopieflows/apps-framework").CheckboxProperty<false>;
|
|
52
|
+
export declare const createRunOptions: (input: {
|
|
53
|
+
timeout?: number | null;
|
|
54
|
+
memory?: number | null;
|
|
55
|
+
build?: string | null;
|
|
56
|
+
}) => {
|
|
57
|
+
timeout?: number;
|
|
58
|
+
memory?: number;
|
|
59
|
+
build?: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const handleRun: ({ resourceClient, body, runOptions, waitForFinish, client }: {
|
|
62
|
+
resourceClient: ActorClient | TaskClient;
|
|
63
|
+
body: Dictionary;
|
|
64
|
+
runOptions: {
|
|
65
|
+
timeout?: number;
|
|
66
|
+
memory?: number;
|
|
67
|
+
build?: string;
|
|
68
|
+
};
|
|
69
|
+
waitForFinish: boolean;
|
|
70
|
+
client: ApifyClient;
|
|
71
|
+
}) => Promise<{
|
|
72
|
+
run: any;
|
|
73
|
+
datasetItems: any;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const createActorSourceProperty: () => import("@scopieflows/apps-framework").StaticDropdownProperty<string, true>;
|
|
76
|
+
export declare const createActorIdProperty: () => import("@scopieflows/apps-framework").DropdownProperty<string, true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
77
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
78
|
+
}>>;
|
|
79
|
+
export declare const createTaskIdProperty: () => import("@scopieflows/apps-framework").DropdownProperty<string, true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
80
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
81
|
+
}>>;
|
|
82
|
+
export declare const createActorInputProperty: () => import("@scopieflows/apps-framework").DynamicProperties<true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
83
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
84
|
+
}>>;
|
|
85
|
+
export declare const createTaskInputProperty: () => import("@scopieflows/apps-framework").DynamicProperties<true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
86
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
87
|
+
}>>;
|
|
88
|
+
export declare const createWebhook: (client: ApifyClient, eventTypes: WebhookEventType[], condition: WebhookCondition, webhookUrl: string, idempotencyKey: string) => Promise<string>;
|
|
89
|
+
export declare const deleteWebhook: (client: ApifyClient, webhookId: string) => Promise<void>;
|
|
90
|
+
export declare const generateIdempotencyKey: (id: string, eventTypes: WebhookEventType[], webhookUrl: string) => string;
|
|
91
|
+
export declare const createStatusesProperty: () => import("@scopieflows/apps-framework").StaticMultiSelectDropdownProperty<string, true>;
|
|
92
|
+
export declare const createWebhookSampleData: (runType: RunType) => {
|
|
93
|
+
userId: string;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
eventType: string;
|
|
96
|
+
eventData: {
|
|
97
|
+
actorId: string;
|
|
98
|
+
actorTaskId: string | undefined;
|
|
99
|
+
actorRunId: string;
|
|
100
|
+
};
|
|
101
|
+
resource: {
|
|
102
|
+
id: string;
|
|
103
|
+
actId: string;
|
|
104
|
+
startedAt: string;
|
|
105
|
+
finishedAt: string;
|
|
106
|
+
status: string;
|
|
107
|
+
isStatusMessageTerminal: boolean;
|
|
108
|
+
defaultKeyValueStoreId: string;
|
|
109
|
+
defaultDatasetId: string;
|
|
110
|
+
defaultRequestQueueId: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
export {};
|
|
114
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEX,WAAW,EACX,KAAK,EACL,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AASF,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG;IAC/B,eAAe,CAAC,EAAE;QAChB,KAAK,CAAC,EAAE;YACN,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EA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M,aAAa,WAChB,WAAW,cACP,gBAAgB,EAAE,aACnB,gBAAgB,cACf,MAAM,kBACF,MAAM,KACrB,OAAO,CAAC,MAAM,CAYhB,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,WAAW,aACR,MAAM,KAChB,OAAO,CAAC,IAAI,CAMd,CAAC;AAEF,eAAO,MAAM,sBAAsB,OAC7B,MAAM,cACE,gBAAgB,EAAE,cAClB,MAAM,KACjB,MAKF,CAAC;AAEF,eAAO,MAAM,sBAAsB,+FAQjC,CAAC;AAEH,eAAO,MAAM,uBAAuB,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;CAoBtD,CAAC"}
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createWebhookSampleData = exports.createStatusesProperty = exports.generateIdempotencyKey = exports.deleteWebhook = exports.createWebhook = exports.createTaskInputProperty = exports.createActorInputProperty = exports.createTaskIdProperty = exports.createActorIdProperty = exports.createActorSourceProperty = exports.handleRun = exports.createRunOptions = exports.createWaitForFinishProperty = exports.createTimeoutProperty = exports.createMemoryProperty = exports.createBuildProperty = exports.createDropdownOptions = exports.isBinaryContentType = exports.getFileExtension = exports.pluralize = exports.listRecords = exports.listStores = exports.listDatasets = exports.listTasks = exports.getDefaultValuesFromBuild = exports.fetchActorInputSchema = exports.listActors = exports.createApifyClient = exports.STATUS_OPTIONS = exports.TERMINAL_STATUSES = exports.MEMORY_OPTIONS = exports.RunType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const apify_client_1 = require("apify-client");
|
|
6
|
+
const pieces_framework_1 = require("@scopieflows/apps-framework");
|
|
7
|
+
const crypto_1 = require("crypto");
|
|
8
|
+
const __1 = require("../..");
|
|
9
|
+
var RunType;
|
|
10
|
+
(function (RunType) {
|
|
11
|
+
RunType["ACTOR"] = "Actor";
|
|
12
|
+
RunType["TASK"] = "task";
|
|
13
|
+
})(RunType || (exports.RunType = RunType = {}));
|
|
14
|
+
// Memory options for actor/task runs
|
|
15
|
+
exports.MEMORY_OPTIONS = [
|
|
16
|
+
{ value: 128, label: '128 MB' },
|
|
17
|
+
{ value: 256, label: '256 MB' },
|
|
18
|
+
{ value: 512, label: '512 MB' },
|
|
19
|
+
{ value: 1024, label: '1024 MB' },
|
|
20
|
+
{ value: 2048, label: '2048 MB' },
|
|
21
|
+
{ value: 4096, label: '4096 MB' },
|
|
22
|
+
{ value: 8192, label: '8192 MB' },
|
|
23
|
+
{ value: 16384, label: '16384 MB' },
|
|
24
|
+
{ value: 32768, label: '32768 MB' }
|
|
25
|
+
];
|
|
26
|
+
exports.TERMINAL_STATUSES = [
|
|
27
|
+
'ACTOR.RUN.SUCCEEDED',
|
|
28
|
+
'ACTOR.RUN.FAILED',
|
|
29
|
+
'ACTOR.RUN.TIMED_OUT',
|
|
30
|
+
'ACTOR.RUN.ABORTED',
|
|
31
|
+
];
|
|
32
|
+
exports.STATUS_OPTIONS = [
|
|
33
|
+
{
|
|
34
|
+
label: 'Aborted',
|
|
35
|
+
value: 'ACTOR.RUN.ABORTED',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Failed',
|
|
39
|
+
value: 'ACTOR.RUN.FAILED',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Succeeded',
|
|
43
|
+
value: 'ACTOR.RUN.SUCCEEDED',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: 'Timed Out',
|
|
47
|
+
value: 'ACTOR.RUN.TIMED_OUT',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
// Helper to create an Apify client instance with tracking header
|
|
51
|
+
const createApifyClient = (apiKey) => {
|
|
52
|
+
return new apify_client_1.ApifyClient({
|
|
53
|
+
token: apiKey,
|
|
54
|
+
requestInterceptors: [
|
|
55
|
+
(request) => {
|
|
56
|
+
if (!request.headers) {
|
|
57
|
+
request.headers = {};
|
|
58
|
+
}
|
|
59
|
+
request.headers['x-apify-integration-platform'] = 'scopieflows';
|
|
60
|
+
return request;
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
exports.createApifyClient = createApifyClient;
|
|
66
|
+
const mapActorToDropdownOption = (item) => {
|
|
67
|
+
const optionName = item.title
|
|
68
|
+
? `${item.title} (${item.username}/${item.name})`
|
|
69
|
+
: `${item.username}/${item.name}`;
|
|
70
|
+
return {
|
|
71
|
+
label: optionName,
|
|
72
|
+
value: item.id,
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
const mapTaskToDropdownOption = (item) => {
|
|
76
|
+
return {
|
|
77
|
+
label: item.title || item.name || item.id,
|
|
78
|
+
value: item.id,
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
const listActors = (apiKey, actorSource) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
82
|
+
const client = (0, exports.createApifyClient)(apiKey);
|
|
83
|
+
try {
|
|
84
|
+
if (actorSource === 'recent') {
|
|
85
|
+
const recentActors = yield client.actors().list({
|
|
86
|
+
offset: 0,
|
|
87
|
+
sortBy: apify_client_1.ActorListSortBy.LAST_RUN_STARTED_AT,
|
|
88
|
+
desc: true,
|
|
89
|
+
limit: 1000,
|
|
90
|
+
});
|
|
91
|
+
return recentActors.items.map(mapActorToDropdownOption);
|
|
92
|
+
}
|
|
93
|
+
const storeActors = yield client.store().list({
|
|
94
|
+
limit: 1000,
|
|
95
|
+
offset: 0,
|
|
96
|
+
});
|
|
97
|
+
return storeActors.items.map(mapActorToDropdownOption);
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
return [
|
|
101
|
+
{ label: `Failed to load actors: ${error.message || error}`, value: '' },
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
exports.listActors = listActors;
|
|
106
|
+
const fetchActorInputSchema = (apiKey, actorId) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
107
|
+
const client = (0, exports.createApifyClient)(apiKey);
|
|
108
|
+
const defaultBuild = yield client.actor(actorId).defaultBuild();
|
|
109
|
+
const build = yield defaultBuild.get();
|
|
110
|
+
return build;
|
|
111
|
+
});
|
|
112
|
+
exports.fetchActorInputSchema = fetchActorInputSchema;
|
|
113
|
+
const getDefaultValuesFromBuild = (build) => {
|
|
114
|
+
var _a, _b;
|
|
115
|
+
const properties = (_b = (_a = build === null || build === void 0 ? void 0 : build.actorDefinition) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.properties;
|
|
116
|
+
if (!properties) {
|
|
117
|
+
return {};
|
|
118
|
+
}
|
|
119
|
+
const defaultValues = {};
|
|
120
|
+
for (const [key, property] of Object.entries(properties)) {
|
|
121
|
+
if ((property === null || property === void 0 ? void 0 : property.prefill) != null) {
|
|
122
|
+
defaultValues[key] = property.prefill;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return defaultValues;
|
|
126
|
+
};
|
|
127
|
+
exports.getDefaultValuesFromBuild = getDefaultValuesFromBuild;
|
|
128
|
+
const listTasks = (apiKey) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
129
|
+
const client = (0, exports.createApifyClient)(apiKey);
|
|
130
|
+
try {
|
|
131
|
+
const tasks = yield client.tasks().list({
|
|
132
|
+
limit: 1000,
|
|
133
|
+
offset: 0,
|
|
134
|
+
});
|
|
135
|
+
return tasks.items.map(mapTaskToDropdownOption);
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
return [
|
|
139
|
+
{ label: `Failed to load tasks: ${error.message || error}`, value: '' },
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
exports.listTasks = listTasks;
|
|
144
|
+
const listDatasets = (apiKey) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
145
|
+
const client = (0, exports.createApifyClient)(apiKey);
|
|
146
|
+
try {
|
|
147
|
+
const dataset = yield client.datasets().list({
|
|
148
|
+
desc: true,
|
|
149
|
+
});
|
|
150
|
+
return dataset.items.map(item => ({
|
|
151
|
+
value: item.id,
|
|
152
|
+
label: `${item.title || item.name} (${item.itemCount} ${(0, exports.pluralize)(item.itemCount)} - ${item.id})`
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
catch (error) {
|
|
156
|
+
return [{ label: `Failed to load datasets: ${error.message || error}`, value: '' }];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
exports.listDatasets = listDatasets;
|
|
160
|
+
const listStores = (apiKey) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
161
|
+
const client = (0, exports.createApifyClient)(apiKey);
|
|
162
|
+
try {
|
|
163
|
+
const stores = yield client.keyValueStores().list({
|
|
164
|
+
desc: true
|
|
165
|
+
});
|
|
166
|
+
return stores.items.map(item => ({
|
|
167
|
+
value: item.id,
|
|
168
|
+
label: item.title || item.name
|
|
169
|
+
}));
|
|
170
|
+
}
|
|
171
|
+
catch (error) {
|
|
172
|
+
return [{ label: `Failed to load Key-Value store list: ${error.message || error}`, value: '' }];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
exports.listStores = listStores;
|
|
176
|
+
const listRecords = (apiKey, storeId) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
177
|
+
const client = (0, exports.createApifyClient)(apiKey);
|
|
178
|
+
try {
|
|
179
|
+
const records = yield client.keyValueStore(storeId).listKeys();
|
|
180
|
+
return records.items.map(item => ({
|
|
181
|
+
value: item.key,
|
|
182
|
+
label: item.key
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
catch (error) {
|
|
186
|
+
return [{ label: `Failed to fetch keys for store "${storeId}". Reason: ${error.message}`, value: '' }];
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
exports.listRecords = listRecords;
|
|
190
|
+
const pluralize = (n) => n === 1 ? "item" : "items";
|
|
191
|
+
exports.pluralize = pluralize;
|
|
192
|
+
// File extension mapping for key-value store records
|
|
193
|
+
const getFileExtension = (contentType) => {
|
|
194
|
+
const extensions = {
|
|
195
|
+
'image/png': '.png',
|
|
196
|
+
'image/jpeg': '.jpg',
|
|
197
|
+
'application/pdf': '.pdf',
|
|
198
|
+
'application/zip': '.zip',
|
|
199
|
+
'text/html': '.html',
|
|
200
|
+
'text/csv': '.csv',
|
|
201
|
+
'application/json': '.json',
|
|
202
|
+
'text/plain': '.txt'
|
|
203
|
+
};
|
|
204
|
+
return extensions[contentType] || '';
|
|
205
|
+
};
|
|
206
|
+
exports.getFileExtension = getFileExtension;
|
|
207
|
+
const isBinaryContentType = (contentType) => {
|
|
208
|
+
if (!contentType)
|
|
209
|
+
return false;
|
|
210
|
+
if (contentType.includes('application/json') || contentType.includes('text/')) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
return true;
|
|
214
|
+
};
|
|
215
|
+
exports.isBinaryContentType = isBinaryContentType;
|
|
216
|
+
// Create dropdown options for a list of items
|
|
217
|
+
const createDropdownOptions = (auth, fetchItems) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
218
|
+
if (!auth) {
|
|
219
|
+
return {
|
|
220
|
+
disabled: true,
|
|
221
|
+
options: [],
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
try {
|
|
225
|
+
const apifyAuth = auth;
|
|
226
|
+
const items = yield fetchItems(apifyAuth.props.apikey);
|
|
227
|
+
return { disabled: false, options: items };
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
return {
|
|
231
|
+
disabled: true,
|
|
232
|
+
options: [],
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
exports.createDropdownOptions = createDropdownOptions;
|
|
237
|
+
const createBuildProperty = () => pieces_framework_1.Property.ShortText({
|
|
238
|
+
displayName: 'Build',
|
|
239
|
+
description: 'Build to run. It can be either a build tag or build number. By default, the run uses the build specified in the default run configuration (typically `latest`).',
|
|
240
|
+
required: false
|
|
241
|
+
});
|
|
242
|
+
exports.createBuildProperty = createBuildProperty;
|
|
243
|
+
const createMemoryProperty = (runType) => pieces_framework_1.Property.StaticDropdown({
|
|
244
|
+
displayName: 'Memory',
|
|
245
|
+
description: `Memory limit for the run, in megabytes. The amount of memory can be set to one of the available options. By default, the run uses a memory limit specified in the ${runType === RunType.ACTOR ? 'default run configuration for the Actor' : 'task settings'}.`,
|
|
246
|
+
required: false,
|
|
247
|
+
options: {
|
|
248
|
+
options: exports.MEMORY_OPTIONS
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
exports.createMemoryProperty = createMemoryProperty;
|
|
252
|
+
const createTimeoutProperty = (runType) => pieces_framework_1.Property.Number({
|
|
253
|
+
displayName: 'Timeout (seconds)',
|
|
254
|
+
required: false,
|
|
255
|
+
description: `Optional timeout for the run, in seconds. By default, the run uses a timeout specified in the ${runType === RunType.ACTOR ? 'default run configuration for the Actor' : 'task settings'}.`
|
|
256
|
+
});
|
|
257
|
+
exports.createTimeoutProperty = createTimeoutProperty;
|
|
258
|
+
const createWaitForFinishProperty = (runType) => pieces_framework_1.Property.Checkbox({
|
|
259
|
+
displayName: 'Wait for finish',
|
|
260
|
+
description: `If enabled, the step waits for the ${runType} run to finish and returns the run’s dataset items as the step output.`,
|
|
261
|
+
required: false,
|
|
262
|
+
defaultValue: true,
|
|
263
|
+
});
|
|
264
|
+
exports.createWaitForFinishProperty = createWaitForFinishProperty;
|
|
265
|
+
// Create run options from input props
|
|
266
|
+
const createRunOptions = (input) => {
|
|
267
|
+
const options = {};
|
|
268
|
+
if (input.timeout != null)
|
|
269
|
+
options.timeout = input.timeout;
|
|
270
|
+
if (input.memory != null)
|
|
271
|
+
options.memory = input.memory;
|
|
272
|
+
if (input.build)
|
|
273
|
+
options.build = input.build;
|
|
274
|
+
return options;
|
|
275
|
+
};
|
|
276
|
+
exports.createRunOptions = createRunOptions;
|
|
277
|
+
// Handle run based on the wait for finish property
|
|
278
|
+
const handleRun = (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ resourceClient, body, runOptions, waitForFinish, client }) {
|
|
279
|
+
const run = waitForFinish
|
|
280
|
+
? yield resourceClient.call(body, runOptions)
|
|
281
|
+
: yield resourceClient.start(body, runOptions);
|
|
282
|
+
if (waitForFinish && run.defaultDatasetId) {
|
|
283
|
+
const datasetItems = yield client.dataset(run.defaultDatasetId).listItems();
|
|
284
|
+
return {
|
|
285
|
+
run,
|
|
286
|
+
datasetItems: datasetItems.items
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
run,
|
|
291
|
+
datasetItems: null
|
|
292
|
+
};
|
|
293
|
+
});
|
|
294
|
+
exports.handleRun = handleRun;
|
|
295
|
+
const createActorSourceProperty = () => pieces_framework_1.Property.StaticDropdown({
|
|
296
|
+
required: true,
|
|
297
|
+
displayName: 'Actor Source',
|
|
298
|
+
defaultValue: 'recent',
|
|
299
|
+
options: {
|
|
300
|
+
options: [{
|
|
301
|
+
label: 'Recently Used Actors',
|
|
302
|
+
value: 'recent',
|
|
303
|
+
}, {
|
|
304
|
+
label: 'Apify Store',
|
|
305
|
+
value: 'store',
|
|
306
|
+
}]
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
exports.createActorSourceProperty = createActorSourceProperty;
|
|
310
|
+
const createActorIdProperty = () => pieces_framework_1.Property.Dropdown({
|
|
311
|
+
displayName: 'Actor',
|
|
312
|
+
auth: __1.apifyAuth,
|
|
313
|
+
description: 'Select an Actor from the list.',
|
|
314
|
+
required: true,
|
|
315
|
+
refreshers: ['auth', 'actorSource'],
|
|
316
|
+
options: (props) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
317
|
+
const actorSource = props['actorSource'];
|
|
318
|
+
return (0, exports.createDropdownOptions)(props['auth'], (apiKey) => (0, exports.listActors)(apiKey, actorSource));
|
|
319
|
+
})
|
|
320
|
+
});
|
|
321
|
+
exports.createActorIdProperty = createActorIdProperty;
|
|
322
|
+
const createTaskIdProperty = () => pieces_framework_1.Property.Dropdown({
|
|
323
|
+
displayName: 'Actor Task',
|
|
324
|
+
auth: __1.apifyAuth,
|
|
325
|
+
description: 'Select a task from the list.',
|
|
326
|
+
required: true,
|
|
327
|
+
refreshers: ['auth'],
|
|
328
|
+
options: (props) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
329
|
+
return (0, exports.createDropdownOptions)(props['auth'], exports.listTasks);
|
|
330
|
+
})
|
|
331
|
+
});
|
|
332
|
+
exports.createTaskIdProperty = createTaskIdProperty;
|
|
333
|
+
const createInputBodyProperty = (runType, defaultValue) => pieces_framework_1.Property.Json({
|
|
334
|
+
displayName: `${runType === RunType.ACTOR ? '' : 'Override '}Input JSON`,
|
|
335
|
+
description: `JSON input for the ${runType} run, which you can find on the ${runType} input page in Apify Console. If empty, the run uses the input specified in the default run configuration.`,
|
|
336
|
+
required: true,
|
|
337
|
+
defaultValue
|
|
338
|
+
});
|
|
339
|
+
const createActorInputProperty = () => pieces_framework_1.Property.DynamicProperties({
|
|
340
|
+
displayName: 'Input',
|
|
341
|
+
auth: __1.apifyAuth,
|
|
342
|
+
required: true,
|
|
343
|
+
refreshers: ['auth', 'actorid'],
|
|
344
|
+
props: (propsValue) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
345
|
+
var _a;
|
|
346
|
+
const auth = propsValue['auth'];
|
|
347
|
+
const actorId = propsValue['actorid'];
|
|
348
|
+
if (!((_a = auth === null || auth === void 0 ? void 0 : auth.props) === null || _a === void 0 ? void 0 : _a.apikey) || !actorId) {
|
|
349
|
+
return {
|
|
350
|
+
body: createInputBodyProperty(RunType.ACTOR)
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
let defaultInputs;
|
|
354
|
+
try {
|
|
355
|
+
const defaultBuild = yield (0, exports.fetchActorInputSchema)(auth.props.apikey, actorId);
|
|
356
|
+
defaultInputs = defaultBuild ? (0, exports.getDefaultValuesFromBuild)(defaultBuild) : undefined;
|
|
357
|
+
}
|
|
358
|
+
catch (_b) {
|
|
359
|
+
defaultInputs = undefined;
|
|
360
|
+
}
|
|
361
|
+
return {
|
|
362
|
+
body: createInputBodyProperty(RunType.ACTOR, defaultInputs)
|
|
363
|
+
};
|
|
364
|
+
})
|
|
365
|
+
});
|
|
366
|
+
exports.createActorInputProperty = createActorInputProperty;
|
|
367
|
+
const createTaskInputProperty = () => pieces_framework_1.Property.DynamicProperties({
|
|
368
|
+
displayName: 'Input',
|
|
369
|
+
auth: __1.apifyAuth,
|
|
370
|
+
required: true,
|
|
371
|
+
refreshers: ['auth', 'taskid'],
|
|
372
|
+
props: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
373
|
+
return {
|
|
374
|
+
body: createInputBodyProperty(RunType.TASK, {})
|
|
375
|
+
};
|
|
376
|
+
})
|
|
377
|
+
});
|
|
378
|
+
exports.createTaskInputProperty = createTaskInputProperty;
|
|
379
|
+
const createWebhook = (client, eventTypes, condition, webhookUrl, idempotencyKey) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
380
|
+
try {
|
|
381
|
+
const webhook = yield client.webhooks().create({
|
|
382
|
+
eventTypes,
|
|
383
|
+
condition,
|
|
384
|
+
requestUrl: webhookUrl,
|
|
385
|
+
idempotencyKey,
|
|
386
|
+
});
|
|
387
|
+
return webhook.id;
|
|
388
|
+
}
|
|
389
|
+
catch (error) {
|
|
390
|
+
throw new Error(`Failed to create a webhook. Reason: ${error.message}`);
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
exports.createWebhook = createWebhook;
|
|
394
|
+
const deleteWebhook = (client, webhookId) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
395
|
+
try {
|
|
396
|
+
yield client.webhook(webhookId).delete();
|
|
397
|
+
}
|
|
398
|
+
catch (error) {
|
|
399
|
+
throw new Error(`Failed to delete the webhook. Reason: ${error.message}`);
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
exports.deleteWebhook = deleteWebhook;
|
|
403
|
+
const generateIdempotencyKey = (id, eventTypes, webhookUrl) => {
|
|
404
|
+
const sortedEventTypes = [...eventTypes].sort();
|
|
405
|
+
const hash = (0, crypto_1.createHash)('sha256');
|
|
406
|
+
hash.update(`${id}:${sortedEventTypes.join(',')}:${webhookUrl}`);
|
|
407
|
+
return hash.digest('hex');
|
|
408
|
+
};
|
|
409
|
+
exports.generateIdempotencyKey = generateIdempotencyKey;
|
|
410
|
+
const createStatusesProperty = () => pieces_framework_1.Property.StaticMultiSelectDropdown({
|
|
411
|
+
displayName: 'Statuses',
|
|
412
|
+
description: 'Run statuses to watch.',
|
|
413
|
+
required: true,
|
|
414
|
+
defaultValue: exports.TERMINAL_STATUSES,
|
|
415
|
+
options: {
|
|
416
|
+
options: exports.STATUS_OPTIONS,
|
|
417
|
+
},
|
|
418
|
+
});
|
|
419
|
+
exports.createStatusesProperty = createStatusesProperty;
|
|
420
|
+
const createWebhookSampleData = (runType) => ({
|
|
421
|
+
userId: 'wRsJZtadYvn4mBZmm',
|
|
422
|
+
createdAt: '2019-12-12T07:34:14.202Z',
|
|
423
|
+
eventType: 'ACTOR.RUN.SUCCEEDED',
|
|
424
|
+
eventData: {
|
|
425
|
+
actorId: 'vvE7iMKuMc5qTHHsR',
|
|
426
|
+
actorTaskId: runType === RunType.ACTOR ? undefined : "FThsabHGXorVhWbPV",
|
|
427
|
+
actorRunId: 'JgwXN9BdwxGcu9MMF',
|
|
428
|
+
},
|
|
429
|
+
resource: {
|
|
430
|
+
id: "RHQcmK6J61lSuqwert",
|
|
431
|
+
actId: "nFJndFXA5zjCTuudP",
|
|
432
|
+
startedAt: "2025-10-30T11:30:34.985Z",
|
|
433
|
+
finishedAt: "2025-10-30T11:30:41.352Z",
|
|
434
|
+
status: "SUCCEEDED",
|
|
435
|
+
isStatusMessageTerminal: true,
|
|
436
|
+
defaultKeyValueStoreId: "eJNzqsbPiopwJcgGQ",
|
|
437
|
+
defaultDatasetId: "wmKPijuyDnPZAPRMk",
|
|
438
|
+
defaultRequestQueueId: "FL35cSF7jrxr3BY39",
|
|
439
|
+
},
|
|
440
|
+
});
|
|
441
|
+
exports.createWebhookSampleData = createWebhookSampleData;
|
|
442
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,+CASsB;AACtB,oEAAyD;AACzD,mCAAoC;AACpC,6BAAkC;AA4BlC,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,wBAAa,CAAA;AACf,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAED,qCAAqC;AACxB,QAAA,cAAc,GAAG;IAC5B,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC/B,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC/B,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC/B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;IACjC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;IACjC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;IACjC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;IACjC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE;IACnC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE;CACpC,CAAC;AAEW,QAAA,iBAAiB,GAAuB;IACnD,qBAAqB;IACrB,kBAAkB;IAClB,qBAAqB;IACrB,mBAAmB;CACpB,CAAC;AAEW,QAAA,cAAc,GAAG;IAC5B;QACE,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,mBAAmB;KAC3B;IACD;QAC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C,CAAC;IACjE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC,CAAC;AATW,QAAA,sBAAsB,0BASjC;AAEK,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,2BAAQ,CAAC,yBAAyB,CAAC;IAC7E,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,yBAAiB;IAC/B,OAAO,EAAE;QACP,OAAO,EAAE,sBAAc;KACxB;CACF,CAAC,CAAC;AARU,QAAA,sBAAsB,0BAQhC;AAEI,MAAM,uBAAuB,GAAG,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC;IAC5D,MAAM,EAAE,mBAAmB;IAC3B,SAAS,EAAE,0BAA0B;IACrC,SAAS,EAAE,qBAAqB;IAChC,SAAS,EAAE;QACT,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,mBAAmB;QACxE,UAAU,EAAE,mBAAmB;KAChC;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,mBAAmB;QAC1B,SAAS,EAAE,0BAA0B;QACrC,UAAU,EAAE,0BAA0B;QACtC,MAAM,EAAE,WAAW;QACnB,uBAAuB,EAAE,IAAI;QAC7B,sBAAsB,EAAE,mBAAmB;QAC3C,gBAAgB,EAAE,mBAAmB;QACrC,qBAAqB,EAAE,mBAAmB;KAC3C;CACF,CAAC,CAAC;AApBU,QAAA,uBAAuB,2BAoBjC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@scopieflows/apps-framework';
|
|
2
|
+
export declare const watchActorRunsTrigger: import("@scopieflows/apps-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
3
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
4
|
+
}>, {
|
|
5
|
+
actorSource: import("@scopieflows/apps-framework").StaticDropdownProperty<string, true>;
|
|
6
|
+
actorid: import("@scopieflows/apps-framework").DropdownProperty<string, true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
7
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
8
|
+
}>>;
|
|
9
|
+
statuses: import("@scopieflows/apps-framework").StaticMultiSelectDropdownProperty<string, true>;
|
|
10
|
+
}> | import("@scopieflows/apps-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
11
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
12
|
+
}>, {
|
|
13
|
+
actorSource: import("@scopieflows/apps-framework").StaticDropdownProperty<string, true>;
|
|
14
|
+
actorid: import("@scopieflows/apps-framework").DropdownProperty<string, true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
15
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
16
|
+
}>>;
|
|
17
|
+
statuses: import("@scopieflows/apps-framework").StaticMultiSelectDropdownProperty<string, true>;
|
|
18
|
+
}> | import("@scopieflows/apps-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
19
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
20
|
+
}>, {
|
|
21
|
+
actorSource: import("@scopieflows/apps-framework").StaticDropdownProperty<string, true>;
|
|
22
|
+
actorid: import("@scopieflows/apps-framework").DropdownProperty<string, true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
23
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
24
|
+
}>>;
|
|
25
|
+
statuses: import("@scopieflows/apps-framework").StaticMultiSelectDropdownProperty<string, true>;
|
|
26
|
+
}> | import("@scopieflows/apps-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
27
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
28
|
+
}>, {
|
|
29
|
+
actorSource: import("@scopieflows/apps-framework").StaticDropdownProperty<string, true>;
|
|
30
|
+
actorid: import("@scopieflows/apps-framework").DropdownProperty<string, true, import("@scopieflows/apps-framework").CustomAuthProperty<{
|
|
31
|
+
apikey: import("@scopieflows/apps-framework").SecretTextProperty<true>;
|
|
32
|
+
}>>;
|
|
33
|
+
statuses: import("@scopieflows/apps-framework").StaticMultiSelectDropdownProperty<string, true>;
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=watch-actor-runs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch-actor-runs.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/watch-actor-runs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,MAAM,+BAA+B,CAAC;AAc/E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuChC,CAAC"}
|