@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 CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@coasy/piece-coasy",
3
- "version": "0.1.2"
3
+ "version": "0.1.3"
4
4
  }
@@ -15,10 +15,10 @@ export const createEventParticipant = createAction({
15
15
  description: 'ID of event',
16
16
  required: true,
17
17
  }),
18
- categoryId: Property.ShortText({
18
+ eventCategoryId: Property.ShortText({
19
19
  displayName: 'Category ID',
20
20
  description: 'ID of category',
21
- required: false,
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
- offerId: Property.ShortText({
13
+ offerIds: Property.Array({
14
14
  displayName: 'Offer ID',
15
15
  description: 'ID of offer',
16
- required: true,
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: true,
26
+ required: false,
27
27
  }),
28
28
  },
29
- run: configValue => runCoasyAction(configValue, name),
29
+ run: (configValue) => runCoasyAction(configValue, name),
30
30
  });
@@ -16,5 +16,5 @@ export const findEvent = createAction({
16
16
  required: false,
17
17
  }),
18
18
  },
19
- run: configValue => runCoasyAction(configValue, name),
19
+ run: (configValue) => runCoasyAction(configValue, name),
20
20
  });
@@ -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
  },