@activepieces/piece-bika 0.0.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.
Files changed (42) hide show
  1. package/README.md +7 -0
  2. package/package.json +32 -0
  3. package/src/i18n/ca.json +50 -0
  4. package/src/i18n/de.json +52 -0
  5. package/src/i18n/es.json +52 -0
  6. package/src/i18n/fr.json +52 -0
  7. package/src/i18n/hi.json +50 -0
  8. package/src/i18n/id.json +50 -0
  9. package/src/i18n/ja.json +52 -0
  10. package/src/i18n/nl.json +52 -0
  11. package/src/i18n/pt.json +52 -0
  12. package/src/i18n/ru.json +50 -0
  13. package/src/i18n/translation.json +52 -0
  14. package/src/i18n/vi.json +50 -0
  15. package/src/i18n/zh.json +52 -0
  16. package/src/index.d.ts +6 -0
  17. package/src/index.js +78 -0
  18. package/src/index.js.map +1 -0
  19. package/src/lib/actions/create-record.d.ts +7 -0
  20. package/src/lib/actions/create-record.js +47 -0
  21. package/src/lib/actions/create-record.js.map +1 -0
  22. package/src/lib/actions/delete-record.d.ts +7 -0
  23. package/src/lib/actions/delete-record.js +36 -0
  24. package/src/lib/actions/delete-record.js.map +1 -0
  25. package/src/lib/actions/find-record.d.ts +7 -0
  26. package/src/lib/actions/find-record.js +35 -0
  27. package/src/lib/actions/find-record.js.map +1 -0
  28. package/src/lib/actions/find-records.d.ts +9 -0
  29. package/src/lib/actions/find-records.js +54 -0
  30. package/src/lib/actions/find-records.js.map +1 -0
  31. package/src/lib/actions/update-record.d.ts +8 -0
  32. package/src/lib/actions/update-record.js +49 -0
  33. package/src/lib/actions/update-record.js.map +1 -0
  34. package/src/lib/common/client.d.ts +62 -0
  35. package/src/lib/common/client.js +89 -0
  36. package/src/lib/common/client.js.map +1 -0
  37. package/src/lib/common/constants.d.ts +27 -0
  38. package/src/lib/common/constants.js +10 -0
  39. package/src/lib/common/constants.js.map +1 -0
  40. package/src/lib/common/index.d.ts +10 -0
  41. package/src/lib/common/index.js +229 -0
  42. package/src/lib/common/index.js.map +1 -0
@@ -0,0 +1,52 @@
1
+ {
2
+ "Bika": "Bika",
3
+ "Interactive spreadsheets with collaboration": "Interactive spreadsheets with collaboration",
4
+ "Token": "Token",
5
+ "Instance Url": "Instance Url",
6
+ "The token of the Bika account": "The token of the Bika account",
7
+ "The url of the Bika instance.": "The url of the Bika instance.",
8
+ "\n To obtain your Bika token, follow these steps:\n\n 1. Log in to your Bika account.\n 2. Visit https://bika.com/workbench\n 3. Click on your profile picture (Bottom left).\n 4. Click on \"My Settings\".\n 5. Click on \"Developer\".\n 6. Click on \"Generate new token\".\n 7. Copy the token.\n ": "\n To obtain your Bika token, follow these steps:\n\n 1. Log in to your Bika account.\n 2. Visit https://bika.com/workbench\n 3. Click on your profile picture (Bottom left).\n 4. Click on \"My Settings\".\n 5. Click on \"Developer\".\n 6. Click on \"Generate new token\".\n 7. Copy the token.\n ",
9
+ "Create Record": "Create Record",
10
+ "Update Record": "Update Record",
11
+ "Find Records": "Find Records",
12
+ "Custom API Call": "Custom API Call",
13
+ "Creates a new record in database.": "Creates a new record in database.",
14
+ "Updates an existing record in database.": "Updates an existing record in database.",
15
+ "Finds records in database.": "Finds records in database.",
16
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
17
+ "Space": "Space",
18
+ "Database": "Database",
19
+ "Fields": "Fields",
20
+ "Record ID": "Record ID",
21
+ "Record IDs": "Record IDs",
22
+ "Field Names": "Field Names",
23
+ "Max Records": "Max Records",
24
+ "Page Size": "Page Size",
25
+ "Page Number": "Page Number",
26
+ "Filter": "Filter",
27
+ "Method": "Method",
28
+ "Headers": "Headers",
29
+ "Query Parameters": "Query Parameters",
30
+ "Body": "Body",
31
+ "Response is Binary ?": "Response is Binary ?",
32
+ "No Error on Failure": "No Error on Failure",
33
+ "Timeout (in seconds)": "Timeout (in seconds)",
34
+ "The fields to add to the record.": "The fields to add to the record.",
35
+ "The ID of the record to update.": "The ID of the record to update.",
36
+ "The IDs of the records to find.": "The IDs of the records to find.",
37
+ "The returned record results are limited to the specified fields": "The returned record results are limited to the specified fields",
38
+ "How many records are returned in total": "How many records are returned in total",
39
+ "How many records are returned per page (max 1000)": "How many records are returned per page (max 1000)",
40
+ "Specifies the page number of the page": "Specifies the page number of the page",
41
+ "The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language)": "The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language)",
42
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
43
+ "Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
44
+ "GET": "GET",
45
+ "POST": "POST",
46
+ "PATCH": "PATCH",
47
+ "PUT": "PUT",
48
+ "DELETE": "DELETE",
49
+ "HEAD": "HEAD",
50
+ "New Record": "New Record",
51
+ "Triggers when a new record is added to a database.": "Triggers when a new record is added to a database."
52
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "Bika": "Bika",
3
+ "Interactive spreadsheets with collaboration": "Interactive spreadsheets with collaboration",
4
+ "Token": "Token",
5
+ "Instance Url": "Instance Url",
6
+ "The token of the Bika account": "The token of the Bika account",
7
+ "The url of the Bika instance.": "The url of the Bika instance.",
8
+ "\n To obtain your Bika token, follow these steps:\n\n 1. Log in to your Bika account.\n 2. Visit https://bika.com/workbench\n 3. Click on your profile picture (Bottom left).\n 4. Click on \"My Settings\".\n 5. Click on \"Developer\".\n 6. Click on \"Generate new token\".\n 7. Copy the token.\n ": "\n To obtain your Bika token, follow these steps:\n\n 1. Log in to your Bika account.\n 2. Visit https://bika.com/workbench\n 3. Click on your profile picture (Bottom left).\n 4. Click on \"My Settings\".\n 5. Click on \"Developer\".\n 6. Click on \"Generate new token\".\n 7. Copy the token.\n ",
9
+ "Create Record": "Create Record",
10
+ "Update Record": "Update Record",
11
+ "Find Records": "Find Records",
12
+ "Custom API Call": "Custom API Call",
13
+ "Creates a new record in database.": "Creates a new record in database.",
14
+ "Updates an existing record in database.": "Updates an existing record in database.",
15
+ "Finds records in database.": "Finds records in database.",
16
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
17
+ "Space": "Space",
18
+ "Database": "Database",
19
+ "Fields": "Fields",
20
+ "Record ID": "Record ID",
21
+ "Record IDs": "Record IDs",
22
+ "Field Names": "Field Names",
23
+ "Max Records": "Max Records",
24
+ "Page Size": "Phân trang",
25
+ "Page Number": "Page Number",
26
+ "Filter": "Filter",
27
+ "Method": "Method",
28
+ "Headers": "Headers",
29
+ "Query Parameters": "Query Parameters",
30
+ "Body": "Body",
31
+ "No Error on Failure": "No Error on Failure",
32
+ "Timeout (in seconds)": "Timeout (in seconds)",
33
+ "The fields to add to the record.": "The fields to add to the record.",
34
+ "The ID of the record to update.": "The ID of the record to update.",
35
+ "The IDs of the records to find.": "The IDs of the records to find.",
36
+ "The returned record results are limited to the specified fields": "The returned record results are limited to the specified fields",
37
+ "How many records are returned in total": "How many records are returned in total",
38
+ "How many records are returned per page (max 1000)": "How many records are returned per page (max 1000)",
39
+ "Specifies the page number of the page": "Specifies the page number of the page",
40
+ "The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language)": "The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language)",
41
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
42
+ "GET": "GET",
43
+ "POST": "POST",
44
+ "PATCH": "PATCH",
45
+ "PUT": "PUT",
46
+ "DELETE": "DELETE",
47
+ "HEAD": "HEAD",
48
+ "New Record": "New Record",
49
+ "Triggers when a new record is added to a database.": "Triggers when a new record is added to a database."
50
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "Bika": "Bika",
3
+ "Interactive spreadsheets with collaboration": "Interactive spreadsheets with collaboration",
4
+ "Token": "Token",
5
+ "Instance Url": "Instance Url",
6
+ "The token of the Bika account": "The token of the Bika account",
7
+ "The url of the Bika instance.": "The url of the Bika instance.",
8
+ "\n To obtain your Bika token, follow these steps:\n\n 1. Log in to your Bika account.\n 2. Visit https://bika.com/workbench\n 3. Click on your profile picture (Bottom left).\n 4. Click on \"My Settings\".\n 5. Click on \"Developer\".\n 6. Click on \"Generate new token\".\n 7. Copy the token.\n ": "\n To obtain your Bika token, follow these steps:\n\n 1. Log in to your Bika account.\n 2. Visit https://bika.com/workbench\n 3. Click on your profile picture (Bottom left).\n 4. Click on \"My Settings\".\n 5. Click on \"Developer\".\n 6. Click on \"Generate new token\".\n 7. Copy the token.\n ",
9
+ "Create Record": "Create Record",
10
+ "Update Record": "Update Record",
11
+ "Find Records": "Find Records",
12
+ "Custom API Call": "自定义 API 呼叫",
13
+ "Creates a new record in database.": "Creates a new record in database.",
14
+ "Updates an existing record in database.": "Updates an existing record in database.",
15
+ "Finds records in database.": "Finds records in database.",
16
+ "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
17
+ "Space": "Space",
18
+ "Database": "Database",
19
+ "Fields": "Fields",
20
+ "Record ID": "Record ID",
21
+ "Record IDs": "Record IDs",
22
+ "Field Names": "Field Names",
23
+ "Max Records": "Max Records",
24
+ "Page Size": "Page Size",
25
+ "Page Number": "Page Number",
26
+ "Filter": "Filter",
27
+ "Method": "方法",
28
+ "Headers": "信头",
29
+ "Query Parameters": "查询参数",
30
+ "Body": "正文内容",
31
+ "Response is Binary ?": "Response is Binary ?",
32
+ "No Error on Failure": "失败时没有错误",
33
+ "Timeout (in seconds)": "超时(秒)",
34
+ "The fields to add to the record.": "The fields to add to the record.",
35
+ "The ID of the record to update.": "The ID of the record to update.",
36
+ "The IDs of the records to find.": "The IDs of the records to find.",
37
+ "The returned record results are limited to the specified fields": "The returned record results are limited to the specified fields",
38
+ "How many records are returned in total": "How many records are returned in total",
39
+ "How many records are returned per page (max 1000)": "How many records are returned per page (max 1000)",
40
+ "Specifies the page number of the page": "Specifies the page number of the page",
41
+ "The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language)": "The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language)",
42
+ "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
43
+ "Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
44
+ "GET": "获取",
45
+ "POST": "帖子",
46
+ "PATCH": "PATCH",
47
+ "PUT": "弹出",
48
+ "DELETE": "删除",
49
+ "HEAD": "黑色",
50
+ "New Record": "New Record",
51
+ "Triggers when a new record is added to a database.": "Triggers when a new record is added to a database."
52
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export declare const BikaAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ }>;
4
+ export declare const bika: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
5
+ token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
6
+ }>>;
package/src/index.js ADDED
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bika = exports.BikaAuth = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_common_1 = require("@activepieces/pieces-common");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const shared_1 = require("@activepieces/shared");
8
+ const create_record_1 = require("./lib/actions/create-record");
9
+ const find_records_1 = require("./lib/actions/find-records");
10
+ const find_record_1 = require("./lib/actions/find-record");
11
+ const delete_record_1 = require("./lib/actions/delete-record");
12
+ const update_record_1 = require("./lib/actions/update-record");
13
+ const common_1 = require("./lib/common");
14
+ exports.BikaAuth = pieces_framework_1.PieceAuth.CustomAuth({
15
+ required: true,
16
+ description: `
17
+ To obtain your Bika token, follow these steps:
18
+
19
+ 1. Log in to your Bika account.
20
+ 2. Visit https://bika.com.
21
+ 3. Click on your profile picture (Bottom left).
22
+ 4. Click on "My Settings".
23
+ 5. Click on "Developer".
24
+ 6. Click on "Generate new token".
25
+ 7. Copy the token.
26
+ `,
27
+ props: {
28
+ token: pieces_framework_1.PieceAuth.SecretText({
29
+ displayName: 'Token',
30
+ description: 'The token of the Bika account',
31
+ required: true,
32
+ }),
33
+ },
34
+ validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
35
+ try {
36
+ const client = (0, common_1.makeClient)(auth);
37
+ yield client.listSpaces();
38
+ return {
39
+ valid: true,
40
+ };
41
+ }
42
+ catch (e) {
43
+ return {
44
+ valid: false,
45
+ error: 'Invalid Token.',
46
+ };
47
+ }
48
+ }),
49
+ });
50
+ exports.bika = (0, pieces_framework_1.createPiece)({
51
+ displayName: 'Bika.ai',
52
+ auth: exports.BikaAuth,
53
+ description: `Interactive spreadsheets with collaboration`,
54
+ minimumSupportedRelease: '0.30.0',
55
+ logoUrl: 'https://cdn.activepieces.com/pieces/bika.png',
56
+ categories: [shared_1.PieceCategory.PRODUCTIVITY],
57
+ authors: [
58
+ 'codegino'
59
+ ],
60
+ actions: [
61
+ create_record_1.createRecordAction,
62
+ find_records_1.findRecordsAction,
63
+ find_record_1.findRecordAction,
64
+ update_record_1.updateRecordAction,
65
+ delete_record_1.deleteRecordAction,
66
+ (0, pieces_common_1.createCustomApiCallAction)({
67
+ baseUrl: () => 'https://bika.ai/api/openapi/bika',
68
+ auth: exports.BikaAuth,
69
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
70
+ return ({
71
+ Authorization: `Bearer ${auth.token}`,
72
+ });
73
+ }),
74
+ }),
75
+ ],
76
+ triggers: [],
77
+ });
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/bika/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AACrD,+DAAiE;AACjE,6DAA+D;AAC/D,2DAA4D;AAC5D,+DAAgE;AAChE,+DAAiE;AACjE,yCAA0C;AAE7B,QAAA,QAAQ,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC3C,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;;;;;;;;;;KAUV;IACH,KAAK,EAAE;QACL,KAAK,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC1B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACD,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,IAA6C,CAC9C,CAAC;YACF,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;YAC1B,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,gBAAgB;aACxB,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC;AAEU,QAAA,IAAI,GAAG,IAAA,8BAAW,EAAC;IAC9B,WAAW,EAAE,SAAS;IACtB,IAAI,EAAE,gBAAQ;IACd,WAAW,EAAE,6CAA6C;IAC1D,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8CAA8C;IACvD,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE;QACP,UAAU;KACX;IACD,OAAO,EAAE;QACP,kCAAkB;QAClB,gCAAiB;QACjB,8BAAgB;QAChB,kCAAkB;QAClB,kCAAkB;QAClB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,kCAAkC;YACjD,IAAI,EAAE,gBAAQ;YACd,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA0B,CAAC,KAAK,EAAE;iBAC7D,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const createRecordAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
5
+ database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
6
+ fields: import("@activepieces/pieces-framework").DynamicProperties<true>;
7
+ }>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createRecordAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const common_1 = require("../common");
7
+ const index_1 = require("../../index");
8
+ exports.createRecordAction = (0, pieces_framework_1.createAction)({
9
+ auth: index_1.BikaAuth,
10
+ name: 'bika_create_record',
11
+ displayName: 'Create Record',
12
+ description: 'Creates a new record in database.',
13
+ props: {
14
+ space_id: common_1.BikaCommon.space_id,
15
+ database_id: common_1.BikaCommon.database_id,
16
+ fields: common_1.BikaCommon.fields,
17
+ },
18
+ run(context) {
19
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
+ const auth = context.auth;
21
+ const databaseId = context.propsValue.database_id;
22
+ const spaceId = context.propsValue.space_id;
23
+ const dynamicFields = context.propsValue.fields;
24
+ const fields = {};
25
+ const props = Object.entries(dynamicFields);
26
+ for (const [propertyKey, propertyValue] of props) {
27
+ if (propertyValue !== undefined && propertyValue !== '') {
28
+ fields[propertyKey] = propertyValue;
29
+ }
30
+ }
31
+ const newFields = yield (0, common_1.createNewFields)(auth, spaceId, databaseId, fields);
32
+ const client = (0, common_1.makeClient)(context.auth);
33
+ const response = yield client.createRecord(spaceId, databaseId, {
34
+ records: [
35
+ {
36
+ fields: Object.assign({}, newFields),
37
+ },
38
+ ],
39
+ });
40
+ if (!response.success) {
41
+ throw new Error(JSON.stringify(response, undefined, 2));
42
+ }
43
+ return response;
44
+ });
45
+ },
46
+ });
47
+ //# sourceMappingURL=create-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-record.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bika/src/lib/actions/create-record.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,sCAAoE;AACpE,uCAAuC;AAE1B,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,gBAAQ;IACd,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,QAAQ,EAAE,mBAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,mBAAU,CAAC,WAAW;QACnC,MAAM,EAAE,mBAAU,CAAC,MAAM;KAC1B;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC5C,MAAM,aAAa,GAAsB,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;YACnE,MAAM,MAAM,GAER,EAAE,CAAC;YAEP,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YAC5C,KAAK,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,IAAI,KAAK,EAAE,CAAC;gBACjD,IAAI,aAAa,KAAK,SAAS,IAAI,aAAa,KAAK,EAAE,EAAE,CAAC;oBACxD,MAAM,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC;gBACtC,CAAC;YACH,CAAC;YAED,MAAM,SAAS,GAA4B,MAAM,IAAA,wBAAe,EAC9D,IAA6C,EAC7C,OAAO,EACP,UAAU,EACV,MAAM,CACP,CAAC;YAEF,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAA6C,CACtD,CAAC;YACF,MAAM,QAAQ,GAAQ,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,EAAG;gBACpE,OAAO,EAAE;oBACP;wBACE,MAAM,oBACD,SAAS,CACb;qBACF;iBACF;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const deleteRecordAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
5
+ database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
6
+ recordId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
+ }>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteRecordAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const common_1 = require("../common");
7
+ const index_1 = require("../../index");
8
+ exports.deleteRecordAction = (0, pieces_framework_1.createAction)({
9
+ auth: index_1.BikaAuth,
10
+ name: 'bika_delete_record',
11
+ displayName: 'Delete Record',
12
+ description: 'Deletes a record in database by ID.',
13
+ props: {
14
+ space_id: common_1.BikaCommon.space_id,
15
+ database_id: common_1.BikaCommon.database_id,
16
+ recordId: pieces_framework_1.Property.ShortText({
17
+ displayName: 'Record ID',
18
+ description: 'The ID of the record to delete.',
19
+ required: true,
20
+ }),
21
+ },
22
+ run(context) {
23
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
24
+ const databaseId = context.propsValue.database_id;
25
+ const spaceId = context.propsValue.space_id;
26
+ const recordId = context.propsValue.recordId;
27
+ const client = (0, common_1.makeClient)(context.auth);
28
+ const response = yield client.deleteRecord(spaceId, databaseId, recordId);
29
+ if (!response.success) {
30
+ throw new Error(JSON.stringify(response, undefined, 2));
31
+ }
32
+ return response;
33
+ });
34
+ },
35
+ });
36
+ //# sourceMappingURL=delete-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-record.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bika/src/lib/actions/delete-record.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,sCAAmD;AACnD,uCAAuC;AAE1B,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,gBAAQ;IACd,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,qCAAqC;IAClD,KAAK,EAAE;QACL,QAAQ,EAAE,mBAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,mBAAU,CAAC,WAAW;QACjC,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAE7C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAA6C,CACtD,CAAC;YAEF,MAAM,QAAQ,GAAQ,MAAM,MAAM,CAAC,YAAY,CAC7C,OAAO,EACP,UAAU,EACV,QAAQ,CACT,CAAC;YAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const findRecordAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
5
+ database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
6
+ recordId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
+ }>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findRecordAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const common_1 = require("../common");
7
+ const index_1 = require("../../index");
8
+ exports.findRecordAction = (0, pieces_framework_1.createAction)({
9
+ auth: index_1.BikaAuth,
10
+ name: 'bika_find_record',
11
+ displayName: 'Get Record',
12
+ description: 'Retrieves a record in database by ID.',
13
+ props: {
14
+ space_id: common_1.BikaCommon.space_id,
15
+ database_id: common_1.BikaCommon.database_id,
16
+ recordId: pieces_framework_1.Property.ShortText({
17
+ displayName: 'Record ID',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(context) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const databaseId = context.propsValue.database_id;
24
+ const spaceId = context.propsValue.space_id;
25
+ const recordId = context.propsValue.recordId;
26
+ const client = (0, common_1.makeClient)(context.auth);
27
+ const response = yield client.findRecord(spaceId, databaseId, recordId);
28
+ if (!response.success) {
29
+ throw new Error(JSON.stringify(response, undefined, 2));
30
+ }
31
+ return response;
32
+ });
33
+ },
34
+ });
35
+ //# sourceMappingURL=find-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-record.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bika/src/lib/actions/find-record.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,sCAAmD;AACnD,uCAAuC;AAE1B,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,gBAAQ;IACd,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,uCAAuC;IACpD,KAAK,EAAE;QACL,QAAQ,EAAE,mBAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,mBAAU,CAAC,WAAW;QACjC,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAE7C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAA6C,CACtD,CAAC;YAEF,MAAM,QAAQ,GAAQ,MAAM,MAAM,CAAC,UAAU,CAC3C,OAAO,EACP,UAAU,EACV,QAAQ,CACT,CAAC;YAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const findRecordsAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
5
+ database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
6
+ maxRecords: import("@activepieces/pieces-framework").NumberProperty<false>;
7
+ pageSize: import("@activepieces/pieces-framework").NumberProperty<false>;
8
+ filter: import("@activepieces/pieces-framework").LongTextProperty<false>;
9
+ }>;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findRecordsAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const common_1 = require("../common");
7
+ const index_1 = require("../../index");
8
+ const client_1 = require("../common/client");
9
+ exports.findRecordsAction = (0, pieces_framework_1.createAction)({
10
+ auth: index_1.BikaAuth,
11
+ name: 'bika_find_records',
12
+ displayName: 'Find Records',
13
+ description: 'Finds records in database.',
14
+ props: {
15
+ space_id: common_1.BikaCommon.space_id,
16
+ database_id: common_1.BikaCommon.database_id,
17
+ maxRecords: pieces_framework_1.Property.Number({
18
+ displayName: 'Max Records',
19
+ description: 'How many records are returned in total.',
20
+ required: false,
21
+ }),
22
+ pageSize: pieces_framework_1.Property.Number({
23
+ displayName: 'Page Size',
24
+ description: 'How many records are returned per page (max 1000).',
25
+ required: false,
26
+ }),
27
+ filter: pieces_framework_1.Property.LongText({
28
+ displayName: 'Filter',
29
+ description: 'The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language).',
30
+ required: false,
31
+ }),
32
+ },
33
+ run(context) {
34
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
+ var _a;
36
+ const databaseId = context.propsValue.database_id;
37
+ const spaceId = context.propsValue.space_id;
38
+ const maxRecords = context.propsValue.maxRecords;
39
+ const pageSize = (_a = context.propsValue.pageSize) !== null && _a !== void 0 ? _a : 100;
40
+ const filter = context.propsValue.filter;
41
+ const client = (0, common_1.makeClient)(context.auth);
42
+ const response = yield client.listRecords(spaceId, databaseId, (0, client_1.prepareQuery)({
43
+ pageSize,
44
+ maxRecords,
45
+ filter,
46
+ }));
47
+ if (!response.success) {
48
+ throw new Error(JSON.stringify(response, undefined, 2));
49
+ }
50
+ return response;
51
+ });
52
+ },
53
+ });
54
+ //# sourceMappingURL=find-records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-records.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bika/src/lib/actions/find-records.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,sCAAmD;AACnD,uCAAuC;AACvC,6CAAgD;AAEnC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,gBAAQ;IACd,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,4BAA4B;IACzC,KAAK,EAAE;QACL,QAAQ,EAAE,mBAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,mBAAU,CAAC,WAAW;QACnC,UAAU,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC1B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACxB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,QAAQ;YACrB,WAAW,EACT,sGAAsG;YACxG,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC5C,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;YACjD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,UAAU,CAAC,QAAQ,mCAAI,GAAG,CAAC;YACpD,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;YAEzC,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAA6C,CACtD,CAAC;YACF,MAAM,QAAQ,GAAQ,MAAM,MAAM,CAAC,WAAW,CAC5C,OAAO,EACP,UAAU,EACV,IAAA,qBAAY,EAAC;gBACX,QAAQ;gBACR,UAAU;gBACV,MAAM;aACP,CAAC,CACH,CAAC;YAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const updateRecordAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ }>, {
4
+ space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
5
+ database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
6
+ recordId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
+ fields: import("@activepieces/pieces-framework").DynamicProperties<true>;
8
+ }>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateRecordAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const common_1 = require("../common");
7
+ const index_1 = require("../../index");
8
+ exports.updateRecordAction = (0, pieces_framework_1.createAction)({
9
+ auth: index_1.BikaAuth,
10
+ name: 'bika_update_record',
11
+ displayName: 'Update Record',
12
+ description: 'Updates an existing record in database.',
13
+ props: {
14
+ space_id: common_1.BikaCommon.space_id,
15
+ database_id: common_1.BikaCommon.database_id,
16
+ recordId: pieces_framework_1.Property.ShortText({
17
+ displayName: 'Record ID',
18
+ description: 'The ID of the record to update.',
19
+ required: true,
20
+ }),
21
+ fields: common_1.BikaCommon.fields,
22
+ },
23
+ run(context) {
24
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
+ const auth = context.auth;
26
+ const databaseId = context.propsValue.database_id;
27
+ const spaceId = context.propsValue.space_id;
28
+ const recordId = context.propsValue.recordId;
29
+ const dynamicFields = context.propsValue.fields;
30
+ const fields = {};
31
+ const props = Object.entries(dynamicFields);
32
+ for (const [propertyKey, propertyValue] of props) {
33
+ if (propertyValue !== undefined && propertyValue !== '') {
34
+ fields[propertyKey] = propertyValue;
35
+ }
36
+ }
37
+ const newFields = yield (0, common_1.createNewFields)(auth, spaceId, databaseId, fields);
38
+ const client = (0, common_1.makeClient)(context.auth);
39
+ const response = yield client.updateRecord(spaceId, databaseId, recordId, {
40
+ fields: Object.assign({}, newFields),
41
+ });
42
+ if (!response.success) {
43
+ throw new Error(JSON.stringify(response, undefined, 2));
44
+ }
45
+ return response;
46
+ });
47
+ },
48
+ });
49
+ //# sourceMappingURL=update-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-record.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bika/src/lib/actions/update-record.ts"],"names":[],"mappings":";;;;AAAA,qEAKwC;AACxC,sCAAoE;AACpE,uCAAuC;AAE1B,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,gBAAQ;IACd,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,yCAAyC;IACtD,KAAK,EAAE;QACN,QAAQ,EAAE,mBAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,mBAAU,CAAC,WAAW;QACnC,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,MAAM,EAAE,mBAAU,CAAC,MAAM;KACzB;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7C,MAAM,aAAa,GAAsB,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;YACnE,MAAM,MAAM,GAER,EAAE,CAAC;YAEP,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YAC5C,KAAK,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,IAAI,KAAK,EAAE,CAAC;gBAClD,IAAI,aAAa,KAAK,SAAS,IAAI,aAAa,KAAK,EAAE,EAAE,CAAC;oBACzD,MAAM,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC;gBACrC,CAAC;YACF,CAAC;YAED,MAAM,SAAS,GAA4B,MAAM,IAAA,wBAAe,EAC/D,IAA6C,EAC7C,OAAO,EACP,UAAU,EACV,MAAM,CACN,CAAC;YAEF,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAA6C,CAAC,CAAC;YAEjF,MAAM,QAAQ,GAAQ,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;gBAC5E,MAAM,oBACF,SAAS,CACZ;aACH,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YACzD,CAAC;YAED,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { HttpMessageBody, HttpMethod, QueryParams } from '@activepieces/pieces-common';
2
+ import { BikaFieldType } from './constants';
3
+ export declare function prepareQuery(request?: Record<string, any>): QueryParams;
4
+ export declare class BikaClient {
5
+ private token;
6
+ private bikaUrl;
7
+ constructor(token: string, bikaUrl?: string);
8
+ makeRequest<T extends HttpMessageBody>(method: HttpMethod, resourceUri: string, query?: QueryParams, body?: any | undefined): Promise<T>;
9
+ listSpaces(): Promise<{
10
+ data: {
11
+ id: string;
12
+ name: string;
13
+ }[];
14
+ }>;
15
+ listDatabases(space_id: string): Promise<{
16
+ data: {
17
+ id: string;
18
+ name: string;
19
+ }[];
20
+ }>;
21
+ getDatabaseFields(space_id: string, database_id: string): Promise<{
22
+ data: {
23
+ id: string;
24
+ name: string;
25
+ type: BikaFieldType;
26
+ desc: string;
27
+ property?: {
28
+ format?: string;
29
+ defaultValue?: string;
30
+ options?: {
31
+ name: string;
32
+ id?: string;
33
+ }[];
34
+ };
35
+ }[];
36
+ }>;
37
+ createRecord(space_id: string, database_id: string, request: object): Promise<unknown>;
38
+ deleteRecord(space_id: string, database_id: string, record_id: string): Promise<unknown>;
39
+ updateRecord(space_id: string, database_id: string, record_id: string, request: object): Promise<unknown>;
40
+ findRecord(space_id: string, database_id: string, record_id: string, query?: QueryParams): Promise<{
41
+ data: {
42
+ total: number;
43
+ records: {
44
+ recordId: string;
45
+ createdAt: number;
46
+ updatedAt: number;
47
+ fields: Record<string, unknown>;
48
+ }[];
49
+ };
50
+ }>;
51
+ listRecords(space_id: string, database_id: string, query?: QueryParams): Promise<{
52
+ data: {
53
+ total: number;
54
+ records: {
55
+ recordId: string;
56
+ createdAt: number;
57
+ updatedAt: number;
58
+ fields: Record<string, unknown>;
59
+ }[];
60
+ };
61
+ }>;
62
+ }