@openfn/language-monnify 1.0.1 → 1.0.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/ast.json +2 -2
- package/package.json +3 -3
- package/types/Adaptor.d.ts +14 -2
package/ast.json
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"tags": [
|
|
70
70
|
{
|
|
71
71
|
"title": "example",
|
|
72
|
-
"description": "list('/api/v2/disbursements/search-transactions', {\n sourceAccountNumber: 4864192954\n});",
|
|
73
|
-
"caption": "Get
|
|
72
|
+
"description": "list('/api/v2/disbursements/search-transactions', {\n sourceAccountNumber: 4864192954,\n startDate: new Date('2025-11-15'),\n endDate: Date.now()\n});",
|
|
73
|
+
"caption": "Get transactions within a date range. (Default range is the current date)"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"title": "example",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-monnify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "OpenFn monnify adaptor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"configuration-schema.json"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@openfn/language-common": "3.2.
|
|
23
|
+
"@openfn/language-common": "3.2.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"assertion-error": "2.0.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"deep-eql": "4.1.1",
|
|
29
29
|
"mocha": "^10.7.3",
|
|
30
30
|
"rimraf": "3.0.2",
|
|
31
|
-
"undici": "^
|
|
31
|
+
"undici": "^7.19.2"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* @typedef {Object} ListQueryOptions
|
|
11
11
|
* @property {Number} pageNo - The page number. Please note that Monnify pagination starts at 0 not 1. (Default: 0)
|
|
12
12
|
* @property {Number} pageSize - The page size. (Default: 100)
|
|
13
|
+
* @property {Date} startDate - The lower date range
|
|
14
|
+
* @property {Date} endDate - The higher date range
|
|
13
15
|
* @property {Record<string, any>} [otherOptions] - Additional options.
|
|
14
16
|
**/
|
|
15
17
|
/**
|
|
@@ -33,9 +35,11 @@
|
|
|
33
35
|
export function get(path: string, options?: RequestOptions): Operation;
|
|
34
36
|
/**
|
|
35
37
|
* Fetch a list of items.
|
|
36
|
-
* @example <caption>Get
|
|
38
|
+
* @example <caption>Get transactions within a date range. (Default range is the current date)</caption>
|
|
37
39
|
* list('/api/v2/disbursements/search-transactions', {
|
|
38
|
-
* sourceAccountNumber: 4864192954
|
|
40
|
+
* sourceAccountNumber: 4864192954,
|
|
41
|
+
* startDate: new Date('2025-11-15'),
|
|
42
|
+
* endDate: Date.now()
|
|
39
43
|
* });
|
|
40
44
|
*
|
|
41
45
|
* @example <caption>Get all transactions for a specific page and page number.</caption>
|
|
@@ -120,6 +124,14 @@ export type ListQueryOptions = {
|
|
|
120
124
|
* - The page size. (Default: 100)
|
|
121
125
|
*/
|
|
122
126
|
pageSize: number;
|
|
127
|
+
/**
|
|
128
|
+
* - The lower date range
|
|
129
|
+
*/
|
|
130
|
+
startDate: Date;
|
|
131
|
+
/**
|
|
132
|
+
* - The higher date range
|
|
133
|
+
*/
|
|
134
|
+
endDate: Date;
|
|
123
135
|
/**
|
|
124
136
|
* - Additional options.
|
|
125
137
|
*/
|