@coasy/piece-coasy 0.2.7 → 0.3.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/README.md
CHANGED
|
@@ -140,11 +140,11 @@ The piece uses custom authentication with:
|
|
|
140
140
|
|
|
141
141
|
## Publishing
|
|
142
142
|
|
|
143
|
-
The piece is published as `@coasy/piece-coasy` to npm. Version is currently `0.0
|
|
143
|
+
The piece is published as `@coasy/piece-coasy` to npm. Version is currently `0.3.0`.
|
|
144
144
|
|
|
145
145
|
To publish a new version:
|
|
146
146
|
|
|
147
|
-
1. Update the `version` in `package.json` in Coasy community folder (e.g., from `0.0
|
|
147
|
+
1. Update the `version` in `package.json` in Coasy community folder (e.g., from `0.3.0` to `0.3.1`)
|
|
148
148
|
2. Build the package with:
|
|
149
149
|
```bash
|
|
150
150
|
npm run build-piece coasy
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sendEmail = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
6
|
const index_1 = require("../../index");
|
|
6
7
|
const actions_1 = require("../common/actions");
|
|
@@ -55,6 +56,12 @@ exports.sendEmail = (0, pieces_framework_1.createAction)({
|
|
|
55
56
|
}),
|
|
56
57
|
},
|
|
57
58
|
// templateKey / templateId are XOR — both optional here, the server rejects both-or-neither.
|
|
58
|
-
run: (configValue) =>
|
|
59
|
+
run: (configValue) => {
|
|
60
|
+
const _a = configValue.propsValue, { bcc } = _a, rest = tslib_1.__rest(_a, ["bcc"]);
|
|
61
|
+
// An untouched BCC array arrives as [], which the server treats as "set" and
|
|
62
|
+
// then skips adding the archive address to the dispatch — omit it instead.
|
|
63
|
+
const request = Array.isArray(bcc) && bcc.length > 0 ? Object.assign(Object.assign({}, rest), { bcc }) : rest;
|
|
64
|
+
return (0, actions_1.runCoasyAction)(configValue, name, request);
|
|
65
|
+
},
|
|
59
66
|
});
|
|
60
67
|
//# sourceMappingURL=send-email.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-email.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/actions/send-email.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"send-email.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/actions/send-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,uCAAwC;AACxC,+CAAmD;AACnD,6DAA6E;AAE7E,MAAM,IAAI,GAAG,WAAW,CAAC;AAEZ,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,iBAAS;IACf,IAAI;IACJ,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,iDAAiD;IAC9D,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,iCAAgB;QAC7B,UAAU,EAAE,gCAAe;QAC3B,GAAG,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAClB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACpB,WAAW,EAAE,oBAAoB;YACjC,WAAW,EACT,0KAA0K;YAC5K,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC1B,W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