@activepieces/piece-snowflake 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -15
- package/src/index.d.ts +4 -11
- package/src/index.d.ts.map +1 -0
- package/src/index.js +36 -56
- package/src/index.js.map +1 -1
- package/src/lib/actions/create-dynamic-table.d.ts +36 -0
- package/src/lib/actions/create-dynamic-table.d.ts.map +1 -0
- package/src/lib/actions/create-dynamic-table.js +81 -0
- package/src/lib/actions/create-dynamic-table.js.map +1 -0
- package/src/lib/actions/delete-row.d.ts +43 -0
- package/src/lib/actions/delete-row.d.ts.map +1 -0
- package/src/lib/actions/delete-row.js +45 -0
- package/src/lib/actions/delete-row.js.map +1 -0
- package/src/lib/actions/execute-stored-procedure.d.ts +43 -0
- package/src/lib/actions/execute-stored-procedure.d.ts.map +1 -0
- package/src/lib/actions/execute-stored-procedure.js +92 -0
- package/src/lib/actions/execute-stored-procedure.js.map +1 -0
- package/src/lib/actions/get-row-by-id.d.ts +53 -0
- package/src/lib/actions/get-row-by-id.d.ts.map +1 -0
- package/src/lib/actions/get-row-by-id.js +67 -0
- package/src/lib/actions/get-row-by-id.js.map +1 -0
- package/src/lib/actions/get-table-schema.d.ts +42 -0
- package/src/lib/actions/get-table-schema.d.ts.map +1 -0
- package/src/lib/actions/get-table-schema.js +49 -0
- package/src/lib/actions/get-table-schema.js.map +1 -0
- package/src/lib/actions/insert-multiple-rows.d.ts +43 -0
- package/src/lib/actions/insert-multiple-rows.d.ts.map +1 -0
- package/src/lib/actions/insert-multiple-rows.js +81 -0
- package/src/lib/actions/insert-multiple-rows.js.map +1 -0
- package/src/lib/actions/insert-row.d.ts +16 -10
- package/src/lib/actions/insert-row.d.ts.map +1 -0
- package/src/lib/actions/insert-row.js +3 -3
- package/src/lib/actions/insert-row.js.map +1 -1
- package/src/lib/actions/list-tables.d.ts +32 -0
- package/src/lib/actions/list-tables.d.ts.map +1 -0
- package/src/lib/actions/list-tables.js +47 -0
- package/src/lib/actions/list-tables.js.map +1 -0
- package/src/lib/actions/load-data-from-stage.d.ts +48 -0
- package/src/lib/actions/load-data-from-stage.d.ts.map +1 -0
- package/src/lib/actions/load-data-from-stage.js +117 -0
- package/src/lib/actions/load-data-from-stage.js.map +1 -0
- package/src/lib/actions/run-multiple-queries.d.ts +4 -2
- package/src/lib/actions/run-multiple-queries.d.ts.map +1 -0
- package/src/lib/actions/run-multiple-queries.js +3 -3
- package/src/lib/actions/run-multiple-queries.js.map +1 -1
- package/src/lib/actions/run-query.d.ts +4 -2
- package/src/lib/actions/run-query.d.ts.map +1 -0
- package/src/lib/actions/run-query.js +11 -26
- package/src/lib/actions/run-query.js.map +1 -1
- package/src/lib/actions/search-rows.d.ts +45 -0
- package/src/lib/actions/search-rows.d.ts.map +1 -0
- package/src/lib/actions/search-rows.js +58 -0
- package/src/lib/actions/search-rows.js.map +1 -0
- package/src/lib/actions/update-row.d.ts +53 -0
- package/src/lib/actions/update-row.d.ts.map +1 -0
- package/src/lib/actions/update-row.js +54 -0
- package/src/lib/actions/update-row.js.map +1 -0
- package/src/lib/actions/upsert-row.d.ts +62 -0
- package/src/lib/actions/upsert-row.d.ts.map +1 -0
- package/src/lib/actions/upsert-row.js +93 -0
- package/src/lib/actions/upsert-row.js.map +1 -0
- package/src/lib/auth.d.ts +22 -0
- package/src/lib/auth.d.ts.map +1 -0
- package/src/lib/auth.js +243 -0
- package/src/lib/auth.js.map +1 -0
- package/src/lib/common/index.d.ts +49 -11
- package/src/lib/common/index.d.ts.map +1 -0
- package/src/lib/common/index.js +93 -41
- package/src/lib/common/index.js.map +1 -1
- package/README.md +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadDataFromStageAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
exports.loadDataFromStageAction = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'load_data_from_stage',
|
|
10
|
+
displayName: 'Load Data from Stage',
|
|
11
|
+
description: 'Load data into a Snowflake table from a named internal or external stage using COPY INTO.',
|
|
12
|
+
auth: auth_1.snowflakeAuth,
|
|
13
|
+
props: {
|
|
14
|
+
database: common_1.snowflakeCommonProps.database,
|
|
15
|
+
schema: common_1.snowflakeCommonProps.schema,
|
|
16
|
+
table: common_1.snowflakeCommonProps.table,
|
|
17
|
+
stage_path: pieces_framework_1.Property.ShortText({
|
|
18
|
+
displayName: 'Stage Path',
|
|
19
|
+
description: 'The stage path to load from. For internal stages use `@stage_name` or `@schema.stage_name/path/`. ' +
|
|
20
|
+
'For external (S3/GCS/Azure) stages use `@schema.stage_name/prefix/`. ' +
|
|
21
|
+
'Example: `@my_stage/data/`',
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
file_format_type: pieces_framework_1.Property.StaticDropdown({
|
|
25
|
+
displayName: 'File Format',
|
|
26
|
+
description: 'The format of the files in the stage.',
|
|
27
|
+
required: true,
|
|
28
|
+
defaultValue: 'CSV',
|
|
29
|
+
options: {
|
|
30
|
+
options: [
|
|
31
|
+
{ label: 'CSV', value: 'CSV' },
|
|
32
|
+
{ label: 'JSON', value: 'JSON' },
|
|
33
|
+
{ label: 'PARQUET', value: 'PARQUET' },
|
|
34
|
+
{ label: 'AVRO', value: 'AVRO' },
|
|
35
|
+
{ label: 'ORC', value: 'ORC' },
|
|
36
|
+
{ label: 'XML', value: 'XML' },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
file_pattern: pieces_framework_1.Property.ShortText({
|
|
41
|
+
displayName: 'File Pattern',
|
|
42
|
+
description: 'Optional regex pattern to filter files in the stage (e.g. `.*\\.csv` to load only CSV files).',
|
|
43
|
+
required: false,
|
|
44
|
+
}),
|
|
45
|
+
skip_header: pieces_framework_1.Property.Number({
|
|
46
|
+
displayName: 'Skip Header Rows',
|
|
47
|
+
description: 'Number of header rows to skip at the top of each CSV file (CSV only). Defaults to 0.',
|
|
48
|
+
required: false,
|
|
49
|
+
defaultValue: 0,
|
|
50
|
+
}),
|
|
51
|
+
error_on_column_count_mismatch: pieces_framework_1.Property.Checkbox({
|
|
52
|
+
displayName: 'Error on Column Count Mismatch',
|
|
53
|
+
description: 'If enabled, COPY fails when the number of columns in the file does not match the table.',
|
|
54
|
+
required: false,
|
|
55
|
+
defaultValue: true,
|
|
56
|
+
}),
|
|
57
|
+
on_error: pieces_framework_1.Property.StaticDropdown({
|
|
58
|
+
displayName: 'On Error',
|
|
59
|
+
description: 'What to do when a row fails to load.',
|
|
60
|
+
required: false,
|
|
61
|
+
defaultValue: 'ABORT_STATEMENT',
|
|
62
|
+
options: {
|
|
63
|
+
options: [
|
|
64
|
+
{ label: 'Abort statement (default)', value: 'ABORT_STATEMENT' },
|
|
65
|
+
{ label: 'Continue (skip bad rows)', value: 'CONTINUE' },
|
|
66
|
+
{ label: 'Skip file', value: 'SKIP_FILE' },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
},
|
|
71
|
+
run(context) {
|
|
72
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const { table, stage_path, file_format_type, file_pattern, skip_header, error_on_column_count_mismatch, on_error, } = context.propsValue;
|
|
74
|
+
let fileFormatClause = `TYPE = '${file_format_type}'`;
|
|
75
|
+
if (skip_header)
|
|
76
|
+
fileFormatClause += ` SKIP_HEADER = ${Number(skip_header)}`;
|
|
77
|
+
if (error_on_column_count_mismatch !== undefined) {
|
|
78
|
+
fileFormatClause += ` ERROR_ON_COLUMN_COUNT_MISMATCH = ${error_on_column_count_mismatch ? 'TRUE' : 'FALSE'}`;
|
|
79
|
+
}
|
|
80
|
+
let sql = `COPY INTO ${table} FROM ${stage_path} FILE_FORMAT = (${fileFormatClause})`;
|
|
81
|
+
if (file_pattern)
|
|
82
|
+
sql += ` PATTERN = '${file_pattern.replace(/'/g, "''")}'`;
|
|
83
|
+
sql += ` ON_ERROR = '${on_error !== null && on_error !== void 0 ? on_error : 'ABORT_STATEMENT'}'`;
|
|
84
|
+
const connection = (0, common_1.configureConnection)(context.auth);
|
|
85
|
+
yield (0, common_1.connect)(connection);
|
|
86
|
+
try {
|
|
87
|
+
const result = yield (0, common_1.execute)(connection, sql, []);
|
|
88
|
+
if (!result || result.length === 0) {
|
|
89
|
+
return { success: true, files_processed: 0, rows_loaded: 0 };
|
|
90
|
+
}
|
|
91
|
+
const summary = result.map((row) => {
|
|
92
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
93
|
+
return ({
|
|
94
|
+
file: (_a = row['file']) !== null && _a !== void 0 ? _a : null,
|
|
95
|
+
status: (_b = row['status']) !== null && _b !== void 0 ? _b : null,
|
|
96
|
+
rows_parsed: (_c = row['rows_parsed']) !== null && _c !== void 0 ? _c : null,
|
|
97
|
+
rows_loaded: (_d = row['rows_loaded']) !== null && _d !== void 0 ? _d : null,
|
|
98
|
+
error_limit: (_e = row['error_limit']) !== null && _e !== void 0 ? _e : null,
|
|
99
|
+
errors_seen: (_f = row['errors_seen']) !== null && _f !== void 0 ? _f : null,
|
|
100
|
+
first_error: (_g = row['first_error']) !== null && _g !== void 0 ? _g : null,
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
const totalLoaded = summary.reduce((sum, r) => sum + (Number(r.rows_loaded) || 0), 0);
|
|
104
|
+
return {
|
|
105
|
+
success: true,
|
|
106
|
+
files_processed: summary.length,
|
|
107
|
+
rows_loaded: totalLoaded,
|
|
108
|
+
files: summary,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
finally {
|
|
112
|
+
yield (0, common_1.destroy)(connection);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
//# sourceMappingURL=load-data-from-stage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-data-from-stage.js","sourceRoot":"","sources":["../../../../src/lib/actions/load-data-from-stage.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAwC;AACxC,sCAOmB;AAEN,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EACT,2FAA2F;IAC7F,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,QAAQ,EAAE,6BAAoB,CAAC,QAAQ;QACvC,MAAM,EAAE,6BAAoB,CAAC,MAAM;QACnC,KAAK,EAAE,6BAAoB,CAAC,KAAK;QACjC,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EACT,oGAAoG;gBACpG,uEAAuE;gBACvE,4BAA4B;YAC9B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACxC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,KAAK;YACnB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oBAC9B,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;iBAC/B;aACF;SACF,CAAC;QACF,YA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ACvC,WAAW,EAAE,MAAA,GAAG,CAAC,aAAa,CAAC,mCAAI,IAAI;qBACxC,CAAC,CAAA;iBAAA,CAAC,CAAC;gBAEJ,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAChC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,EAC9C,CAAC,CACF,CAAC;gBAEF,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,OAAO,CAAC,MAAM;oBAC/B,WAAW,EAAE,WAAW;oBACxB,KAAK,EAAE,OAAO;iBACf,CAAC;YACJ,CAAC;oBAAS,CAAC;gBACT,MAAM,IAAA,gBAAO,EAAC,UAAU,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
export declare const runMultipleQueries: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1
|
+
export declare const runMultipleQueries: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
2
|
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
5
5
|
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
6
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
6
7
|
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
8
|
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
9
|
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
}
|
|
10
|
+
}>)[], {
|
|
10
11
|
sqlTexts: import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
11
12
|
binds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
12
13
|
useTransaction: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
13
14
|
timeout: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
14
15
|
application: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
16
|
}>;
|
|
17
|
+
//# sourceMappingURL=run-multiple-queries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-multiple-queries.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-multiple-queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAmJ7B,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runMultipleQueries = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
8
|
const DEFAULT_APPLICATION_NAME = 'ActivePieces';
|
|
9
9
|
const DEFAULT_QUERY_TIMEOUT = 30000;
|
|
@@ -11,7 +11,7 @@ exports.runMultipleQueries = (0, pieces_framework_1.createAction)({
|
|
|
11
11
|
name: 'runMultipleQueries',
|
|
12
12
|
displayName: 'Run Multiple Queries',
|
|
13
13
|
description: 'Run Multiple Queries',
|
|
14
|
-
auth:
|
|
14
|
+
auth: auth_1.snowflakeAuth,
|
|
15
15
|
props: {
|
|
16
16
|
sqlTexts: pieces_framework_1.Property.Array({
|
|
17
17
|
displayName: 'SQL queries',
|
|
@@ -48,7 +48,7 @@ exports.runMultipleQueries = (0, pieces_framework_1.createAction)({
|
|
|
48
48
|
},
|
|
49
49
|
run(context) {
|
|
50
50
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
const connection = (0, common_1.configureConnection)(context.auth
|
|
51
|
+
const connection = (0, common_1.configureConnection)(context.auth, context.propsValue.application, context.propsValue.timeout);
|
|
52
52
|
return new Promise((resolve, reject) => {
|
|
53
53
|
connection.connect(function (err) {
|
|
54
54
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-multiple-queries.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"run-multiple-queries.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-multiple-queries.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,kCAAwC;AACxC,sCAAoE;AAKpE,MAAM,wBAAwB,GAAG,cAAc,CAAC;AAChD,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEvB,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACvB,WAAW,EAAE,aAAa;YAC1B,WAAW,EACT,yHAAyH;gBACzH,6EAA6E;YAC/E,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACpB,WAAW,EAAE,YAAY;YACzB,WAAW,EACT,iFAAiF;gBACjF,qDAAqD;gBACrD,8EAA8E;gBAC9E,gCAAgC;YAClC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAChC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EACT,0HAA0H;YAC5H,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACv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Aa,EAAE,CAAC;gDACvB,CAAC;6CACF,CAAC,CAAC;wCACL,CAAC,CAAC,CAAC;oCACL,CAAC;oCAED,UAAU,CAAC,OAAO,CAAC,CAAC,GAA+B,EAAE,EAAE;wCACrD,IAAI,GAAG,EAAE,CAAC;4CACR,MAAM,CAAC,GAAG,CAAC,CAAC;4CACZ,OAAO;wCACT,CAAC;wCACD,OAAO,CAAC,YAAY,CAAC,CAAC;oCACxB,CAAC,CAAC,CAAC;gCACL,CAAC;gCAAC,OAAO,GAAG,EAAE,CAAC;oCACb,WAAW,CAAC,GAAqB,CAAC,CAAC,CAAC,kCAAkC;gCACxE,CAAC;4BACH,CAAC;yBAAA;wBAED,0BAA0B,EAAE,CAAC;oBAC/B,CAAC;iBAAA,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export declare const runQuery: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1
|
+
export declare const runQuery: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
2
|
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
5
5
|
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
6
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
6
7
|
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
8
|
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
9
|
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
}
|
|
10
|
+
}>)[], {
|
|
10
11
|
sqlText: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
12
|
binds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
12
13
|
timeout: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
13
14
|
application: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
15
|
}>;
|
|
16
|
+
//# sourceMappingURL=run-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-query.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/run-query.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;EAgDnB,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runQuery = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
8
|
const DEFAULT_APPLICATION_NAME = 'ActivePieces';
|
|
9
9
|
const DEFAULT_QUERY_TIMEOUT = 30000;
|
|
@@ -11,7 +11,7 @@ exports.runQuery = (0, pieces_framework_1.createAction)({
|
|
|
11
11
|
name: 'runQuery',
|
|
12
12
|
displayName: 'Run Query',
|
|
13
13
|
description: 'Run Query',
|
|
14
|
-
auth:
|
|
14
|
+
auth: auth_1.snowflakeAuth,
|
|
15
15
|
props: {
|
|
16
16
|
sqlText: pieces_framework_1.Property.ShortText({
|
|
17
17
|
displayName: 'SQL query',
|
|
@@ -38,30 +38,15 @@ exports.runQuery = (0, pieces_framework_1.createAction)({
|
|
|
38
38
|
},
|
|
39
39
|
run(context) {
|
|
40
40
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const connection = (0, common_1.configureConnection)(context.auth
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
sqlText,
|
|
51
|
-
binds: binds,
|
|
52
|
-
complete: (err, stmt, rows) => {
|
|
53
|
-
if (err) {
|
|
54
|
-
reject(err);
|
|
55
|
-
}
|
|
56
|
-
connection.destroy((err, conn) => {
|
|
57
|
-
if (err) {
|
|
58
|
-
reject(err);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
resolve(rows);
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
});
|
|
41
|
+
const connection = (0, common_1.configureConnection)(context.auth, context.propsValue.application, context.propsValue.timeout);
|
|
42
|
+
const { sqlText, binds } = context.propsValue;
|
|
43
|
+
yield (0, common_1.connect)(connection);
|
|
44
|
+
try {
|
|
45
|
+
return yield (0, common_1.execute)(connection, sqlText, binds);
|
|
46
|
+
}
|
|
47
|
+
finally {
|
|
48
|
+
yield (0, common_1.destroy)(connection);
|
|
49
|
+
}
|
|
65
50
|
});
|
|
66
51
|
},
|
|
67
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-query.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"run-query.js","sourceRoot":"","sources":["../../../../src/lib/actions/run-query.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,kCAAwC;AACxC,sCAMmB;AAEnB,MAAM,wBAAwB,GAAG,cAAc,CAAC;AAChD,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEvB,QAAA,QAAQ,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACpB,WAAW,EAAE,YAAY;YACzB,WAAW,EACT,yEAAyE;YAC3E,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACvB,WAAW,EAAE,oBAAoB;YACjC,WAAW,EACT,6GAA6G;YAC/G,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,qBAAqB;SACpC,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EACT,kFAAkF;YACpF,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,wBAAwB;SACvC,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,IAAA,4BAAmB,EACpC,OAAO,CAAC,IAA0B,EAClC,OAAO,CAAC,UAAU,CAAC,WAAW,EAC9B,OAAO,CAAC,UAAU,CAAC,OAAO,CAC3B,CAAC;YAEF,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE9C,MAAM,IAAA,gBAAO,EAAC,UAAU,CAAC,CAAC;YAC1B,IAAI,CAAC;gBACH,OAAO,MAAM,IAAA,gBAAO,EAAC,UAAU,EAAE,OAAO,EAAE,KAAwB,CAAC,CAAC;YACtE,CAAC;oBAAS,CAAC;gBACT,MAAM,IAAA,gBAAO,EAAC,UAAU,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const searchRowsAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
5
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
6
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
7
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
+
}>)[], {
|
|
11
|
+
database: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
15
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
16
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
17
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
19
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
20
|
+
}>)[]>;
|
|
21
|
+
schema: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
22
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
25
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
26
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
27
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
28
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
29
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
30
|
+
}>)[]>;
|
|
31
|
+
table: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
32
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
33
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
34
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
35
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
36
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
37
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
38
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
39
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
40
|
+
}>)[]>;
|
|
41
|
+
where_clause: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
42
|
+
order_by: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
43
|
+
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
44
|
+
}>;
|
|
45
|
+
//# sourceMappingURL=search-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-rows.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-rows.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiD3B,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchRowsAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
exports.searchRowsAction = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'search_rows',
|
|
10
|
+
displayName: 'Search Rows',
|
|
11
|
+
description: 'Search for rows in a Snowflake table using an optional WHERE condition, ordering, and row limit.',
|
|
12
|
+
auth: auth_1.snowflakeAuth,
|
|
13
|
+
props: {
|
|
14
|
+
database: common_1.snowflakeCommonProps.database,
|
|
15
|
+
schema: common_1.snowflakeCommonProps.schema,
|
|
16
|
+
table: common_1.snowflakeCommonProps.table,
|
|
17
|
+
where_clause: pieces_framework_1.Property.ShortText({
|
|
18
|
+
displayName: 'WHERE Condition',
|
|
19
|
+
description: "Optional SQL condition to filter results (e.g. `status = 'active' AND age > 18`). " +
|
|
20
|
+
'Leave empty to return all rows (subject to the row limit). ' +
|
|
21
|
+
'**Security note:** this value is embedded directly in SQL. Only use static values or data from trusted, internal steps — never pass unvalidated end-user input here.',
|
|
22
|
+
required: false,
|
|
23
|
+
}),
|
|
24
|
+
order_by: pieces_framework_1.Property.ShortText({
|
|
25
|
+
displayName: 'ORDER BY',
|
|
26
|
+
description: 'Optional column(s) to sort by (e.g. `created_at DESC` or `name ASC, age DESC`). ' +
|
|
27
|
+
'**Security note:** this value is embedded directly in SQL. Only use static values or data from trusted, internal steps — never pass unvalidated end-user input here.',
|
|
28
|
+
required: false,
|
|
29
|
+
}),
|
|
30
|
+
limit: pieces_framework_1.Property.Number({
|
|
31
|
+
displayName: 'Row Limit',
|
|
32
|
+
description: 'Maximum number of rows to return. Defaults to 100.',
|
|
33
|
+
required: false,
|
|
34
|
+
defaultValue: 100,
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
run(context) {
|
|
38
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const { table, where_clause, order_by, limit } = context.propsValue;
|
|
40
|
+
let sql = `SELECT * FROM ${table}`;
|
|
41
|
+
if (where_clause)
|
|
42
|
+
sql += ` WHERE ${where_clause}`;
|
|
43
|
+
if (order_by)
|
|
44
|
+
sql += ` ORDER BY ${order_by}`;
|
|
45
|
+
sql += ` LIMIT ${Math.trunc(limit !== null && limit !== void 0 ? limit : 100)}`;
|
|
46
|
+
const connection = (0, common_1.configureConnection)(context.auth);
|
|
47
|
+
yield (0, common_1.connect)(connection);
|
|
48
|
+
try {
|
|
49
|
+
const result = yield (0, common_1.execute)(connection, sql, []);
|
|
50
|
+
return result !== null && result !== void 0 ? result : [];
|
|
51
|
+
}
|
|
52
|
+
finally {
|
|
53
|
+
yield (0, common_1.destroy)(connection);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=search-rows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-rows.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-rows.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAwC;AACxC,sCAOmB;AAEN,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EACT,kGAAkG;IACpG,IAAI,EAAE,oBAAa;IACnB,KAAK,EAAE;QACL,QAAQ,EAAE,6BAAoB,CAAC,QAAQ;QACvC,MAAM,EAAE,6BAAoB,CAAC,MAAM;QACnC,KAAK,EAAE,6BAAoB,CAAC,KAAK;QACjC,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EACT,oFAAoF;gBACpF,6DAA6D;gBAC7D,sKAAsK;YACxK,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF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2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
5
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
6
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
7
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
+
}>)[], {
|
|
11
|
+
database: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
15
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
16
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
17
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
19
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
20
|
+
}>)[]>;
|
|
21
|
+
schema: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
22
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
25
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
26
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
27
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
28
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
29
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
30
|
+
}>)[]>;
|
|
31
|
+
table: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
32
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
33
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
34
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
35
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
36
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
37
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
38
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
39
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
40
|
+
}>)[]>;
|
|
41
|
+
table_update_values: import("@activepieces/pieces-framework").DynamicProperties<true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
42
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
43
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
44
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
45
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
46
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
47
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
48
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
49
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
50
|
+
}>)[]>;
|
|
51
|
+
where_clause: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
52
|
+
}>;
|
|
53
|
+
//# sourceMappingURL=update-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-row.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-row.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsD1B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateRowAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
exports.updateRowAction = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'update_row',
|
|
10
|
+
displayName: 'Update Row',
|
|
11
|
+
description: 'Update one or more rows in a Snowflake table that match a WHERE condition.',
|
|
12
|
+
auth: auth_1.snowflakeAuth,
|
|
13
|
+
props: {
|
|
14
|
+
database: common_1.snowflakeCommonProps.database,
|
|
15
|
+
schema: common_1.snowflakeCommonProps.schema,
|
|
16
|
+
table: common_1.snowflakeCommonProps.table,
|
|
17
|
+
table_update_values: common_1.snowflakeCommonProps.table_update_values,
|
|
18
|
+
where_clause: pieces_framework_1.Property.ShortText({
|
|
19
|
+
displayName: 'WHERE Condition',
|
|
20
|
+
description: "A SQL condition to filter which rows to update (e.g. `id = 42` or `status = 'active'`). " +
|
|
21
|
+
'Leave empty to update ALL rows in the table (use with caution). ' +
|
|
22
|
+
'**Security note:** this value is embedded directly in SQL. Only use static values or data from trusted, internal steps — never pass unvalidated end-user input here.',
|
|
23
|
+
required: false,
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
run(context) {
|
|
27
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
const { table, table_update_values: columnValues, where_clause, } = context.propsValue;
|
|
30
|
+
const setEntries = Object.entries(columnValues).filter(([, v]) => v !== null && v !== undefined && v !== '');
|
|
31
|
+
if (setEntries.length === 0) {
|
|
32
|
+
throw new Error('At least one column value must be provided to update.');
|
|
33
|
+
}
|
|
34
|
+
const setClauses = setEntries.map(([col]) => `${col} = ?`).join(', ');
|
|
35
|
+
const binds = setEntries.map(([, v]) => v);
|
|
36
|
+
const sql = where_clause
|
|
37
|
+
? `UPDATE ${table} SET ${setClauses} WHERE ${where_clause}`
|
|
38
|
+
: `UPDATE ${table} SET ${setClauses}`;
|
|
39
|
+
const connection = (0, common_1.configureConnection)(context.auth);
|
|
40
|
+
yield (0, common_1.connect)(connection);
|
|
41
|
+
try {
|
|
42
|
+
const result = yield (0, common_1.execute)(connection, sql, binds);
|
|
43
|
+
return {
|
|
44
|
+
success: true,
|
|
45
|
+
rows_updated: (_b = (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a['number of rows updated']) !== null && _b !== void 0 ? _b : null,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
finally {
|
|
49
|
+
yield (0, common_1.destroy)(connection);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=update-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAa,CAAC;YAEvD,MAAM,GAAG,GAAG,YAAY;gBACtB,CAAC,CAAC,UAAU,KAAK,QAAQ,UAAU,UAAU,YAAY,EAAE;gBAC3D,CAAC,CAAC,UAAU,KAAK,QAAQ,UAAU,EAAE,CAAC;YAExC,MAAM,UAAU,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,IAA0B,CAAC,CAAC;YAC3E,MAAM,IAAA,gBAAO,EAAC,UAAU,CAAC,CAAC;YAC1B,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAO,EAAC,UAAU,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;gBACrD,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,YAAY,EAAE,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,0CAAG,wBAAwB,CAAC,mCAAI,IAAI;iBAC9D,CAAC;YACJ,CAAC;oBAAS,CAAC;gBACT,MAAM,IAAA,gBAAO,EAAC,UAAU,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const upsertRowAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
5
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
6
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
7
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
+
}>)[], {
|
|
11
|
+
database: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
15
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
16
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
17
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
19
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
20
|
+
}>)[]>;
|
|
21
|
+
schema: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
22
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
25
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
26
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
27
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
28
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
29
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
30
|
+
}>)[]>;
|
|
31
|
+
table: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
32
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
33
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
34
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
35
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
36
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
37
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
38
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
39
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
40
|
+
}>)[]>;
|
|
41
|
+
match_column: import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
42
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
43
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
44
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
45
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
46
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
47
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
48
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
49
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
50
|
+
}>)[]>;
|
|
51
|
+
table_column_values: import("@activepieces/pieces-framework").DynamicProperties<true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
52
|
+
account: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
53
|
+
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
54
|
+
password: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
55
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
56
|
+
privateKeyPassphrase: import("@activepieces/pieces-framework").SecretTextProperty<false>;
|
|
57
|
+
database: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
58
|
+
role: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
59
|
+
warehouse: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
60
|
+
}>)[]>;
|
|
61
|
+
}>;
|
|
62
|
+
//# sourceMappingURL=upsert-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsert-row.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/upsert-row.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmG1B,CAAC"}
|