@coasy/piece-coasy 0.1.2 → 0.1.3
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 +1 -1
- package/src/lib/actions/create-event-participant.ts +2 -2
- package/src/lib/actions/create-voucher.ts +28 -2
- package/src/lib/actions/enroll-user-course.ts +2 -2
- package/src/lib/actions/find-event.ts +1 -1
- package/src/lib/triggers/cancelled-order.ts +0 -4
- package/src/lib/triggers/new-webinar-participant.ts +0 -9
package/package.json
CHANGED
|
@@ -15,10 +15,10 @@ export const createEventParticipant = createAction({
|
|
|
15
15
|
description: 'ID of event',
|
|
16
16
|
required: true,
|
|
17
17
|
}),
|
|
18
|
-
|
|
18
|
+
eventCategoryId: Property.ShortText({
|
|
19
19
|
displayName: 'Category ID',
|
|
20
20
|
description: 'ID of category',
|
|
21
|
-
required:
|
|
21
|
+
required: true,
|
|
22
22
|
}),
|
|
23
23
|
},
|
|
24
24
|
run: (configValue) => runCoasyAction(configValue, name),
|
|
@@ -10,10 +10,36 @@ export const createVoucher = createAction({
|
|
|
10
10
|
displayName: 'Create Voucher',
|
|
11
11
|
description: 'Creates a new voucher',
|
|
12
12
|
props: {
|
|
13
|
-
|
|
13
|
+
offerIds: Property.Array({
|
|
14
14
|
displayName: 'Offer ID',
|
|
15
15
|
description: 'ID of offer',
|
|
16
|
-
required:
|
|
16
|
+
required: false,
|
|
17
|
+
}),
|
|
18
|
+
countLeft: Property.Number({
|
|
19
|
+
displayName: 'Quantity',
|
|
20
|
+
description: 'Count of vouchers',
|
|
21
|
+
required: false,
|
|
22
|
+
}),
|
|
23
|
+
recurringPeriod: Property.StaticDropdown({
|
|
24
|
+
displayName: 'Recurring period',
|
|
25
|
+
description: 'How the voucher will recurre',
|
|
26
|
+
required: false,
|
|
27
|
+
options: {
|
|
28
|
+
options: [
|
|
29
|
+
{
|
|
30
|
+
label: 'Monthly',
|
|
31
|
+
value: 'MONTHLY',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: 'Quarterly',
|
|
35
|
+
value: 'QUARTERLY',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Yearly',
|
|
39
|
+
value: 'YEARLY',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
17
43
|
}),
|
|
18
44
|
},
|
|
19
45
|
run: (configValue) => runCoasyAction(configValue, name),
|
|
@@ -23,8 +23,8 @@ export const enrollUserCourse = createAction({
|
|
|
23
23
|
directGrant: Property.Checkbox({
|
|
24
24
|
displayName: 'Direct Grant',
|
|
25
25
|
description: 'Give direct grant',
|
|
26
|
-
required:
|
|
26
|
+
required: false,
|
|
27
27
|
}),
|
|
28
28
|
},
|
|
29
|
-
run: configValue => runCoasyAction(configValue, name),
|
|
29
|
+
run: (configValue) => runCoasyAction(configValue, name),
|
|
30
30
|
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
<<<<<<< Updated upstream
|
|
2
1
|
import {
|
|
3
2
|
createTrigger,
|
|
4
3
|
Property,
|
|
5
4
|
TriggerStrategy,
|
|
6
5
|
} from '@activepieces/pieces-framework';
|
|
7
|
-
=======
|
|
8
|
-
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
|
|
9
|
-
>>>>>>> Stashed changes
|
|
10
6
|
import { coasyAuth } from '../..';
|
|
11
7
|
import {
|
|
12
8
|
createCoasyTrigger,
|
|
@@ -30,7 +30,6 @@ export const newWebinarParticipant = createTrigger({
|
|
|
30
30
|
options: {
|
|
31
31
|
options: [
|
|
32
32
|
{
|
|
33
|
-
<<<<<<< Updated upstream
|
|
34
33
|
label: 'Upcoming',
|
|
35
34
|
value: 'UPCOMING',
|
|
36
35
|
},
|
|
@@ -41,14 +40,6 @@ export const newWebinarParticipant = createTrigger({
|
|
|
41
40
|
{
|
|
42
41
|
label: 'Not Attended',
|
|
43
42
|
value: 'NOT_ATTENDED',
|
|
44
|
-
=======
|
|
45
|
-
label: 'Instantly',
|
|
46
|
-
value: 'INSTANTLY',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: 'Later',
|
|
50
|
-
value: 'LATER',
|
|
51
|
-
>>>>>>> Stashed changes
|
|
52
43
|
},
|
|
53
44
|
],
|
|
54
45
|
},
|