@openfn/language-opencrvs 1.0.0 → 1.0.2

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 CHANGED
@@ -64,12 +64,12 @@
64
64
  "tags": [
65
65
  {
66
66
  "title": "example",
67
- "description": "query(\n{\nevent: 'birth',\nregistrationStatuses: ['REGISTERED'],\nchildGender: 'male',\ndateOfRegistrationEnd: '2022-12-31T23:59:59.999Z',\ndateOfRegistrationStart: '2021-11-01T00:00:00.000Z',\ndeclarationJurisdictionId: '',\neventLocationId: '704b9706-d729-4834-8656-05b562065deb',\nfatherFirstNames: 'Dad',\nmotherFirstNames: 'Mom',\n},\n);",
67
+ "description": "queryEvents(\n{\nevent: 'birth',\nregistrationStatuses: ['REGISTERED'],\nchildGender: 'male',\ndateOfRegistrationEnd: '2022-12-31T23:59:59.999Z',\ndateOfRegistrationStart: '2021-11-01T00:00:00.000Z',\ndeclarationJurisdictionId: '',\neventLocationId: '704b9706-d729-4834-8656-05b562065deb',\nfatherFirstNames: 'Dad',\nmotherFirstNames: 'Mom',\n},\n);",
68
68
  "caption": "Search for events with specific parameters"
69
69
  },
70
70
  {
71
71
  "title": "example",
72
- "description": "query(\n{\nevent: 'birth',\nregistrationStatuses: ['REGISTERED'],\nchildGender: 'male',\ndateOfRegistrationEnd: '2022-12-31T23:59:59.999Z',\ndateOfRegistrationStart: '2021-11-01T00:00:00.000Z',\ndeclarationJurisdictionId: '',\neventLocationId: '704b9706-d729-4834-8656-05b562065deb',\nfatherFirstNames: 'Dad',\nmotherFirstNames: 'Mom',\n},\n{ count: 10, skip: 0 }\n);",
72
+ "description": "queryEvents(\n{\nevent: 'birth',\nregistrationStatuses: ['REGISTERED'],\nchildGender: 'male',\ndateOfRegistrationEnd: '2022-12-31T23:59:59.999Z',\ndateOfRegistrationStart: '2021-11-01T00:00:00.000Z',\ndeclarationJurisdictionId: '',\neventLocationId: '704b9706-d729-4834-8656-05b562065deb',\nfatherFirstNames: 'Dad',\nmotherFirstNames: 'Mom',\n},\n{ count: 10, skip: 0 }\n);",
73
73
  "caption": "Search for events with options"
74
74
  },
75
75
  {
@@ -5,7 +5,6 @@
5
5
  "title": "Your Domain",
6
6
  "type": "string",
7
7
  "description": "OpenCRVS domain",
8
- "format": "uri",
9
8
  "minLength": 1,
10
9
  "examples": [
11
10
  "openfn.opencrvs.dev"
@@ -47,4 +46,4 @@
47
46
  "clientId",
48
47
  "clientSecret"
49
48
  ]
50
- }
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-opencrvs",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "OpenFn opencrvs adaptor",
5
5
  "type": "module",
6
6
  "exports": {
@@ -72,7 +72,7 @@ export function createBirthNotification(body: any[]): Operation;
72
72
  /**
73
73
  * Make an events search query against the OpenCRVS GraphQL API.
74
74
  * @example <caption>Search for events with specific parameters</caption>
75
- * query(
75
+ * queryEvents(
76
76
  {
77
77
  event: 'birth',
78
78
  registrationStatuses: ['REGISTERED'],
@@ -86,7 +86,7 @@ export function createBirthNotification(body: any[]): Operation;
86
86
  },
87
87
  );
88
88
  * @example <caption>Search for events with options</caption>
89
- * query(
89
+ * queryEvents(
90
90
  {
91
91
  event: 'birth',
92
92
  registrationStatuses: ['REGISTERED'],