@activepieces/piece-actualbudget 0.0.11 → 0.1.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 +3 -3
- package/src/i18n/zh.json +55 -55
- package/src/lib/actions/get-accounts.js +1 -1
- package/src/lib/actions/get-accounts.js.map +1 -1
- package/src/lib/actions/get-budget.js +1 -1
- package/src/lib/actions/get-budget.js.map +1 -1
- package/src/lib/actions/get-categories.js +1 -1
- package/src/lib/actions/get-categories.js.map +1 -1
- package/src/lib/actions/import-transaction.js +1 -1
- package/src/lib/actions/import-transaction.js.map +1 -1
- package/src/lib/actions/import-transactions.js +1 -1
- package/src/lib/actions/import-transactions.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-actualbudget",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@actual-app/api": "25.3.1",
|
|
6
6
|
"@sinclair/typebox": "0.34.11",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"nanoid": "3.3.8",
|
|
9
9
|
"semver": "7.6.0",
|
|
10
10
|
"socket.io-client": "4.8.1",
|
|
11
|
-
"@activepieces/pieces-framework": "0.
|
|
12
|
-
"@activepieces/shared": "0.
|
|
11
|
+
"@activepieces/pieces-framework": "0.23.0",
|
|
12
|
+
"@activepieces/shared": "0.30.4",
|
|
13
13
|
"tslib": "2.6.2"
|
|
14
14
|
},
|
|
15
15
|
"resolutions": {
|
package/src/i18n/zh.json
CHANGED
|
@@ -15,61 +15,61 @@
|
|
|
15
15
|
"2028": "2028",
|
|
16
16
|
"2029": "2029",
|
|
17
17
|
"2030": "2030",
|
|
18
|
-
"Personal finance app": "
|
|
18
|
+
"Personal finance app": "Personal finance app",
|
|
19
19
|
"Server URL": "服务器 URL",
|
|
20
20
|
"Password": "密码",
|
|
21
|
-
"Sync ID": "
|
|
22
|
-
"End-to-end encryption password": "
|
|
23
|
-
"This is the URL of your running server": "
|
|
24
|
-
"This is the password you use to log into the server": "
|
|
25
|
-
"This is the ID from Settings → Show advanced settings → Sync ID": "
|
|
26
|
-
"if you have end-to-end encryption enabled": "
|
|
27
|
-
"Enter authentication details": "
|
|
28
|
-
"Get Budget": "
|
|
29
|
-
"Import Transaction": "
|
|
30
|
-
"Import Transactions": "
|
|
31
|
-
"Get Categories": "
|
|
32
|
-
"Get Accounts": "
|
|
33
|
-
"Get your monthly budget": "
|
|
34
|
-
"Add a transaction": "
|
|
35
|
-
"Get your categories": "
|
|
36
|
-
"Get your accounts": "
|
|
37
|
-
"Month": "
|
|
38
|
-
"Year": "
|
|
39
|
-
"Account ID": "
|
|
40
|
-
"Date": "
|
|
41
|
-
"Payee Name": "
|
|
42
|
-
"Amount": "
|
|
43
|
-
"Category ID": "
|
|
44
|
-
"Notes": "
|
|
45
|
-
"Imported ID": "
|
|
46
|
-
"Transfer ID": "
|
|
47
|
-
"Cleared": "
|
|
48
|
-
"Imported Payee": "
|
|
49
|
-
"Transactions": "
|
|
50
|
-
"The month of the budget you want to get": "
|
|
51
|
-
"The year of the budget you want to get": "
|
|
52
|
-
"ID of the account you want to import a transaction to": "
|
|
53
|
-
"Date the transaction took place": "
|
|
54
|
-
"Name of the payee": "
|
|
55
|
-
"The dollar value of the transaction": "
|
|
56
|
-
"ID of the transaction category": "
|
|
57
|
-
"Additional notes about the transaction": "
|
|
58
|
-
"Unique ID given by the bank for importing": "
|
|
59
|
-
"ID of the transaction in the other account for the transfer": "
|
|
60
|
-
"Flag indicating if the transaction has cleared or not": "
|
|
61
|
-
"Raw description when importing, representing the original value": "
|
|
62
|
-
"A json array of the transaction object": "
|
|
63
|
-
"January": "
|
|
64
|
-
"February": "
|
|
65
|
-
"March": "
|
|
66
|
-
"April": "
|
|
67
|
-
"May": "
|
|
68
|
-
"June": "
|
|
69
|
-
"July": "
|
|
70
|
-
"August": "
|
|
71
|
-
"September": "
|
|
72
|
-
"October": "
|
|
73
|
-
"November": "
|
|
74
|
-
"December": "
|
|
21
|
+
"Sync ID": "Sync ID",
|
|
22
|
+
"End-to-end encryption password": "End-to-end encryption password",
|
|
23
|
+
"This is the URL of your running server": "This is the URL of your running server",
|
|
24
|
+
"This is the password you use to log into the server": "This is the password you use to log into the server",
|
|
25
|
+
"This is the ID from Settings → Show advanced settings → Sync ID": "This is the ID from Settings → Show advanced settings → Sync ID",
|
|
26
|
+
"if you have end-to-end encryption enabled": "if you have end-to-end encryption enabled",
|
|
27
|
+
"Enter authentication details": "Enter authentication details",
|
|
28
|
+
"Get Budget": "Get Budget",
|
|
29
|
+
"Import Transaction": "Import Transaction",
|
|
30
|
+
"Import Transactions": "Import Transactions",
|
|
31
|
+
"Get Categories": "Get Categories",
|
|
32
|
+
"Get Accounts": "Get Accounts",
|
|
33
|
+
"Get your monthly budget": "Get your monthly budget",
|
|
34
|
+
"Add a transaction": "Add a transaction",
|
|
35
|
+
"Get your categories": "Get your categories",
|
|
36
|
+
"Get your accounts": "Get your accounts",
|
|
37
|
+
"Month": "Month",
|
|
38
|
+
"Year": "Year",
|
|
39
|
+
"Account ID": "Account ID",
|
|
40
|
+
"Date": "Date",
|
|
41
|
+
"Payee Name": "Payee Name",
|
|
42
|
+
"Amount": "Amount",
|
|
43
|
+
"Category ID": "Category ID",
|
|
44
|
+
"Notes": "Notes",
|
|
45
|
+
"Imported ID": "Imported ID",
|
|
46
|
+
"Transfer ID": "Transfer ID",
|
|
47
|
+
"Cleared": "Cleared",
|
|
48
|
+
"Imported Payee": "Imported Payee",
|
|
49
|
+
"Transactions": "Transactions",
|
|
50
|
+
"The month of the budget you want to get": "The month of the budget you want to get",
|
|
51
|
+
"The year of the budget you want to get": "The year of the budget you want to get",
|
|
52
|
+
"ID of the account you want to import a transaction to": "ID of the account you want to import a transaction to",
|
|
53
|
+
"Date the transaction took place": "Date the transaction took place",
|
|
54
|
+
"Name of the payee": "Name of the payee",
|
|
55
|
+
"The dollar value of the transaction": "The dollar value of the transaction",
|
|
56
|
+
"ID of the transaction category": "ID of the transaction category",
|
|
57
|
+
"Additional notes about the transaction": "Additional notes about the transaction",
|
|
58
|
+
"Unique ID given by the bank for importing": "Unique ID given by the bank for importing",
|
|
59
|
+
"ID of the transaction in the other account for the transfer": "ID of the transaction in the other account for the transfer",
|
|
60
|
+
"Flag indicating if the transaction has cleared or not": "Flag indicating if the transaction has cleared or not",
|
|
61
|
+
"Raw description when importing, representing the original value": "Raw description when importing, representing the original value",
|
|
62
|
+
"A json array of the transaction object": "A json array of the transaction object",
|
|
63
|
+
"January": "January",
|
|
64
|
+
"February": "February",
|
|
65
|
+
"March": "March",
|
|
66
|
+
"April": "April",
|
|
67
|
+
"May": "May",
|
|
68
|
+
"June": "June",
|
|
69
|
+
"July": "July",
|
|
70
|
+
"August": "August",
|
|
71
|
+
"September": "September",
|
|
72
|
+
"October": "October",
|
|
73
|
+
"November": "November",
|
|
74
|
+
"December": "December"
|
|
75
75
|
}
|
|
@@ -14,7 +14,7 @@ exports.getAccounts = (0, pieces_framework_1.createAction)({
|
|
|
14
14
|
props: {},
|
|
15
15
|
run(context) {
|
|
16
16
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
yield (0, common_1.initializeAndDownloadBudget)(api, context.auth);
|
|
17
|
+
yield (0, common_1.initializeAndDownloadBudget)(api, context.auth.props);
|
|
18
18
|
const accounts = yield api.getAccounts();
|
|
19
19
|
yield api.shutdown();
|
|
20
20
|
return accounts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-accounts.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/get-accounts.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAA8D;AAC9D,6DAAuC;AACvC,6CAA+D;AAGlD,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,mBAAmB;IAChC,KAAK,EAAE,EAAE;IACH,GAAG,CAAC,OAAO;;YACf,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"get-accounts.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/get-accounts.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAA8D;AAC9D,6DAAuC;AACvC,6CAA+D;AAGlD,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,mBAAmB;IAChC,KAAK,EAAE,EAAE;IACH,GAAG,CAAC,OAAO;;YACf,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAC1D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC;YACzC,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;YACrB,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -31,7 +31,7 @@ exports.getBudget = (0, pieces_framework_1.createAction)({
|
|
|
31
31
|
},
|
|
32
32
|
run(context) {
|
|
33
33
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
yield (0, common_1.initializeAndDownloadBudget)(api, context.auth);
|
|
34
|
+
yield (0, common_1.initializeAndDownloadBudget)(api, context.auth.props);
|
|
35
35
|
const budget = yield api.getBudgetMonth(`${context.propsValue.year}-${context.propsValue.month}`);
|
|
36
36
|
yield api.shutdown();
|
|
37
37
|
return budget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-budget.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/get-budget.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAAwE;AACxE,6DAAuC;AACvC,6CAAoF;AAGvE,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC7B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,IAAA,kBAAS,GAAE;aACnB;SACJ,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,IAAA,iBAAQ,GAAE;aACpB;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"get-budget.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/get-budget.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAAwE;AACxE,6DAAuC;AACvC,6CAAoF;AAGvE,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC7B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,IAAA,kBAAS,GAAE;aACnB;SACJ,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,IAAA,iBAAQ,GAAE;aACpB;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAC1D,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YAClG,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;YACrB,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -14,7 +14,7 @@ exports.getCategories = (0, pieces_framework_1.createAction)({
|
|
|
14
14
|
props: {},
|
|
15
15
|
run(context) {
|
|
16
16
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
yield (0, common_1.initializeAndDownloadBudget)(api, context.auth);
|
|
17
|
+
yield (0, common_1.initializeAndDownloadBudget)(api, context.auth.props);
|
|
18
18
|
const categories = yield api.getCategories();
|
|
19
19
|
yield api.shutdown();
|
|
20
20
|
return categories;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-categories.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/get-categories.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAA8D;AAC9D,6DAAuC;AACvC,6CAA+D;AAGlD,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE,EAAE;IACH,GAAG,CAAC,OAAO;;YACf,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"get-categories.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/get-categories.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAA8D;AAC9D,6DAAuC;AACvC,6CAA+D;AAGlD,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE,EAAE;IACH,GAAG,CAAC,OAAO;;YACf,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAC1D,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,aAAa,EAAE,CAAC;YAC7C,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;YACrB,OAAO,UAAU,CAAC;QACpB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -78,7 +78,7 @@ exports.importTransaction = (0, pieces_framework_1.createAction)({
|
|
|
78
78
|
cleared,
|
|
79
79
|
imported_payee,
|
|
80
80
|
};
|
|
81
|
-
yield (0, common_1.initializeAndDownloadBudget)(api, auth);
|
|
81
|
+
yield (0, common_1.initializeAndDownloadBudget)(api, auth.props);
|
|
82
82
|
const res = yield api.importTransactions(account_id, [transaction]);
|
|
83
83
|
yield api.shutdown();
|
|
84
84
|
return res;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-transaction.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/import-transaction.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;A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6DAA6D;YAC1E,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACjC,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,iEAAiE;YAC9E,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IAEK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE;YAE1I,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAEjE,MAAM,WAAW,GAAgB;gBAC/B,UAAU;gBACV,IAAI,EAAE,aAAa;gBACnB,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA,CAAC,CAAC,SAAS;gBAC3E,QAAQ;gBACR,OAAO,EAAE,UAAU;gBACnB,KAAK;gBACL,WAAW;gBACX,WAAW;gBACX,OAAO;gBACP,cAAc;aACf,CAAC;YAEF,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"import-transaction.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/import-transaction.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAGwC;AAExC,6DAAuC;AACvC,6CAA+D;AAElD,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,E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, arguments, void 0, function* ({ auth, propsValue: { account_id, transactions } }) {
|
|
29
|
-
yield (0, common_1.initializeAndDownloadBudget)(api, auth);
|
|
29
|
+
yield (0, common_1.initializeAndDownloadBudget)(api, auth.props);
|
|
30
30
|
const res = yield api.importTransactions(account_id, transactions);
|
|
31
31
|
yield api.shutdown();
|
|
32
32
|
return res;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-transactions.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/import-transactions.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAAwE;AACxE,6DAAuC;AACvC,6CAA+D;AAElD,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACxB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,CAAC,EAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAClF,CAAC;KACH;IAEK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE;YAC1D,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"import-transactions.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/actualbudget/src/lib/actions/import-transactions.ts"],"names":[],"mappings":";;;;AAAA,6BAAyC;AACzC,qEAAwE;AACxE,6DAAuC;AACvC,6CAA+D;AAElD,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,oBAAgB;IACtB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACxB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,CAAC,EAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAClF,CAAC;KACH;IAEK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE;YAC1D,MAAM,IAAA,oCAA2B,EAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;YAClD,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;YACnE,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;YACrB,OAAO,GAAG,CAAC;QACb,CAAC;KAAA;CACF,CAAC,CAAC"}
|