@openfn/language-beyonic 0.1.4 → 0.1.6

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 (2) hide show
  1. package/package.json +7 -4
  2. package/types/Adaptor.d.ts +4 -60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-beyonic",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "beyonic Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {
@@ -8,8 +8,11 @@
8
8
  "url": "https://github.com/openfn/adaptors.git"
9
9
  },
10
10
  "exports": {
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
11
+ ".": {
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./package.json": "./package.json"
13
16
  },
14
17
  "author": "Open Function Group",
15
18
  "license": "LGPLv3",
@@ -20,7 +23,7 @@
20
23
  "configuration-schema.json"
21
24
  ],
22
25
  "dependencies": {
23
- "@openfn/language-common": "^1.7.4",
26
+ "@openfn/language-common": "^1.7.5",
24
27
  "JSONPath": "^0.10.0",
25
28
  "lodash-fp": "^0.10.2",
26
29
  "superagent": "^8.0.0"
@@ -1,4 +1,3 @@
1
- /** @module Adaptor */
2
1
  /**
3
2
  * Execute a sequence of operations.
4
3
  * Wraps `language-common/execute`, and prepends initial state for beyonic.
@@ -7,97 +6,42 @@
7
6
  * create('foo'),
8
7
  * delete('bar')
9
8
  * )(state)
10
- * @constructor
9
+ * @function
11
10
  * @param {Operations} operations - Operations to be performed.
12
11
  * @returns {Operation}
13
12
  */
14
13
  export function execute(...operations: Operations): Operation;
15
- export class execute {
16
- /** @module Adaptor */
17
- /**
18
- * Execute a sequence of operations.
19
- * Wraps `language-common/execute`, and prepends initial state for beyonic.
20
- * @example
21
- * execute(
22
- * create('foo'),
23
- * delete('bar')
24
- * )(state)
25
- * @constructor
26
- * @param {Operations} operations - Operations to be performed.
27
- * @returns {Operation}
28
- */
29
- constructor(...operations: Operations);
30
- }
31
14
  /**
32
15
  * Create a payment
33
16
  * @example
34
17
  * execute(
35
18
  * createPayment(data)
36
19
  * )(state)
37
- * @constructor
20
+ * @function
38
21
  * @param {object} data - Payload data for the payment
39
22
  * @returns {Operation}
40
23
  */
41
24
  export function createPayment(data: object): Operation;
42
- export class createPayment {
43
- /**
44
- * Create a payment
45
- * @example
46
- * execute(
47
- * createPayment(data)
48
- * )(state)
49
- * @constructor
50
- * @param {object} data - Payload data for the payment
51
- * @returns {Operation}
52
- */
53
- constructor(data: object);
54
- }
55
25
  /**
56
26
  * Create a contact
57
27
  * @example
58
28
  * execute(
59
29
  * createContact(data)
60
30
  * )(state)
61
- * @constructor
31
+ * @function
62
32
  * @param {object} data - Payload data for the contact
63
33
  * @returns {Operation}
64
34
  */
65
35
  export function createContact(data: object): Operation;
66
- export class createContact {
67
- /**
68
- * Create a contact
69
- * @example
70
- * execute(
71
- * createContact(data)
72
- * )(state)
73
- * @constructor
74
- * @param {object} data - Payload data for the contact
75
- * @returns {Operation}
76
- */
77
- constructor(data: object);
78
- }
79
36
  /**
80
37
  * Create a collection request
81
38
  * @example
82
39
  * execute(
83
40
  * createCollectionRequest(data)
84
41
  * )(state)
85
- * @constructor
42
+ * @function
86
43
  * @param {object} data - Payload data for the collection request
87
44
  * @returns {Operation}
88
45
  */
89
46
  export function createCollectionRequest(data: object): Operation;
90
- export class createCollectionRequest {
91
- /**
92
- * Create a collection request
93
- * @example
94
- * execute(
95
- * createCollectionRequest(data)
96
- * )(state)
97
- * @constructor
98
- * @param {object} data - Payload data for the collection request
99
- * @returns {Operation}
100
- */
101
- constructor(data: object);
102
- }
103
47
  export { fn, field, fields, sourceValue, merge, dataPath, dataValue, lastReferenceValue } from "@openfn/language-common";