From c75b0ee0c9ebbf3790874b582ba20ec21264f594 Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Thu, 12 Oct 2023 17:51:54 +0700 Subject: [PATCH 01/15] [ADD] OpenSPP adaptor --- packages/openspp/.eslintrc.json | 3 + packages/openspp/CHANGELOG.md | 104 +++ packages/openspp/LICENSE | 674 ++++++++++++++++++++ packages/openspp/LICENSE.LESSER | 165 +++++ packages/openspp/README.md | 32 + packages/openspp/assets/rectangle.png | Bin 0 -> 27264 bytes packages/openspp/assets/square.png | Bin 0 -> 17857 bytes packages/openspp/ast.json | 487 ++++++++++++++ packages/openspp/configuration-schema.json | 46 ++ packages/openspp/package.json | 51 ++ packages/openspp/src/Adaptor.js | 705 +++++++++++++++++++++ packages/openspp/src/index.js | 4 + packages/openspp/test/Adaptor.test.js | 34 + 13 files changed, 2305 insertions(+) create mode 100644 packages/openspp/.eslintrc.json create mode 100644 packages/openspp/CHANGELOG.md create mode 100644 packages/openspp/LICENSE create mode 100644 packages/openspp/LICENSE.LESSER create mode 100644 packages/openspp/README.md create mode 100644 packages/openspp/assets/rectangle.png create mode 100644 packages/openspp/assets/square.png create mode 100644 packages/openspp/ast.json create mode 100644 packages/openspp/configuration-schema.json create mode 100644 packages/openspp/package.json create mode 100644 packages/openspp/src/Adaptor.js create mode 100644 packages/openspp/src/index.js create mode 100644 packages/openspp/test/Adaptor.test.js diff --git a/packages/openspp/.eslintrc.json b/packages/openspp/.eslintrc.json new file mode 100644 index 000000000..f7a0ddac8 --- /dev/null +++ b/packages/openspp/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "../../.eslintrc.json" +} \ No newline at end of file diff --git a/packages/openspp/CHANGELOG.md b/packages/openspp/CHANGELOG.md new file mode 100644 index 000000000..086b896d0 --- /dev/null +++ b/packages/openspp/CHANGELOG.md @@ -0,0 +1,104 @@ +# @openfn/language-template + +## 3.0.1 + +### Patch Changes + +- Update lock files +- Updated dependencies + - @openfn/language-common@1.8.1 + +## 3.0.0 + +### Major Changes + +- 2c1d603: Remove parameter reassignment to ensure proper functioning inside an + `each` block; add eslint + + The packages receiving a major bump here exposed functions that didn't work as + expected inside `each` blocks. Users were previously wrapping these functions + inside their own custom `fn` blocks, and this change will ensure that they can + be used inside a standard each. + + See https://github.com/OpenFn/adaptors/issues/275 for more details. + +### Patch Changes + +- Updated dependencies [2c1d603] + - @openfn/language-common@1.8.0 + +## 2.0.0 + +### Major Changes + +- 779596f: Use native fetch (undici) in template and add icons in openfn + +### Minor Changes + +- 1af9cd5: Better docs and resource names + +## 1.7.8 + +### Patch Changes + +- 14f481e: mark execute as private +- Updated dependencies [2b4c61a] + - @openfn/language-common@1.7.6 + +## 1.7.7 + +### Patch Changes + +- f7ebd3c: remove sample configuration + +## 1.7.6 + +### Patch Changes + +- f2aed32: add examples + +## 1.7.5 + +### Patch Changes + +- 6d8de03: change @constructor to @function and remove /\*_ @module Adaptor _/ + +## 1.7.4 + +### Patch Changes + +- f2a91a4: Update package exports +- Updated dependencies [f2a91a4] + - @openfn/language-common@1.7.5 + +## 1.7.3 + +### Patch Changes + +- 8566b26: Fix typings +- b3d45ff: Fix CJS export of npm package. +- b5eb665: Adjusted docs for common and built to markdown +- ecf5d30: remove sinon since it was not being used +- Updated dependencies [8566b26] +- Updated dependencies [b3d45ff] +- Updated dependencies [b5eb665] +- Updated dependencies [ecf5d30] + - @openfn/language-common@1.7.4 + +## 1.7.2 + +### Patch Changes + +- f4b3dd6: remove travis build url + +## 1.7.1 + +### Patch Changes + +- Fixed package.json for template adaptor + +## 1.7.0 + +### Minor Changes + +- 554e905: Migrated to monorepo diff --git a/packages/openspp/LICENSE b/packages/openspp/LICENSE new file mode 100644 index 000000000..94a9ed024 --- /dev/null +++ b/packages/openspp/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/packages/openspp/LICENSE.LESSER b/packages/openspp/LICENSE.LESSER new file mode 100644 index 000000000..65c5ca88a --- /dev/null +++ b/packages/openspp/LICENSE.LESSER @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/packages/openspp/README.md b/packages/openspp/README.md new file mode 100644 index 000000000..325b655ea --- /dev/null +++ b/packages/openspp/README.md @@ -0,0 +1,32 @@ +# language-template + +An OpenFn **_adaptor_** for building integration jobs for use with the \_\_\_\_ +API. + +## Documentation + +View the [docs site](https://docs.openfn.org/adaptors/packages/template-docs) +for full technical documentation. + +### Configuration + +View the +[configuration-schema](https://docs.openfn.org/adaptors/packages/template-configuration-schema/) +for required and optional `configuration` properties. + +### A example expression using the `create` function + +```js +create('patient', { name: 'Bukayo' }); +``` + +## Development + +Clone the [adaptors monorepo](https://github.com/OpenFn/adaptors). Follow the +"Getting Started" guide inside to get set up. + +Run tests using `pnpm run test` or `pnpm run test:watch` + +Build the project using `pnpm build`. + +To build _only_ the docs run `pnpm build docs`. diff --git a/packages/openspp/assets/rectangle.png b/packages/openspp/assets/rectangle.png new file mode 100644 index 0000000000000000000000000000000000000000..5fb8b66e05d1112192bd22b240e6e5ac68b78c82 GIT binary patch literal 27264 zcmeFZbyS;Aw>F%F0Kv6LvEWu9xLa|jv_OlecyV_KPN7%@x0V9M+u|My6e#Y+gHyb? z^QQeh=bY!P@BQbj^}YWc)(UIxnLXFczV@CyGdnlD)YVoYz`c(P000QoR2B6A01&ze zXoX;*e=D%pO#%SqSpH9*dg{S_pswyNHujFzP)|QsYpAuay$t~1J5!!v|C*-3JMzx* zo*Aex4lYi`+>F7uxCksAe{Hn832FNfYn7a?iXya?`;mQjvA=yAmpf{G6aC`gGJoomnA#otOJ#OBcy9=Zr*R+ zwt3-jeL5>=PN|-eyk6UewPlV`aDKrQNC1=RJ1nTXJR)s1{M<%4Bh#j>bJp5$J}$d> zbL&%~=t484#-Bs}dPBVMI$dtm#ohj(@SviFl+M8!%j&Oe1K%gX@n zcz-4KSJ0$hymZAX9rX|Y2pWei`y%C9ieFlR_e1(wo3~GW8t&bvTnJ^hwD^pq9{Kf4 z_V;;r=$?Kr8R}Gz!7TXUlgBUuYwaOgrH9{cDwqR+x53x9`ORzsc6|Nun1r&j3YvK4 zH3bstd?PP0;-_>fBOBYWpo%85Y54lN;e3qGINGPE93Y)vl5^YT;tOBCAqQ90r(5@P z-g`avp<+N>xY;tlYpC0T;w9{U>FbOftcD)|nv=&K`B71X(?^ z@p$mVcFnr9tTDqlD4xz|2Gz;iv{!pY&rYlUYt^zS%YWvVt%>?>VP@sL`?gcv;%{b$ z_Mp+ry6(0iqw_(d!1U436O~D^n#p~}FjVJTK>-R6=!!mdUS7WYx^a)VM1i*W5nY-F zMS20JxFm6~ zju~5MTFQ*~KWt?uKExY6{M9?L{{*=1pZ=TPqmm*965rGZqx5Jx-Z@duvBG6aAfLF%y!*iRm8kNi{j09IBa8B? z%r<;aceTB9<5t4Lz*a)-@(Ng;@PKQ1;3RnT!qP<2Kv|TgMY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od0&WVOmu5I_A$d%JC=7NxT>d97O`fG|>Ki@hlJ-#>5zzEbb3a)zhEN zt=6=S&zamR@LyAE3wm7`Uov=iCN#o%&5g2oY%ep;)b8GhK(tyl!2~)hozeAe0%r@kuaKrYyU=elaNHbZ1am@N;hE zrcUkH84ZO4Lj1Jp9ghH)M&|ohzcvN~^7wbt_9c>C#$^frUOA+^+H+$0Ec)0DcNN^@zks=DVnwNET1SxT3W8QWjDZv0&1oFUD$6xXVb=vIDk&0SSA z+bJ*Vd1HK9u*w)!^<`WcBNQA|oJ;J_%uUMa`FU{WboJsjC#N{COZ_v%*}f#c$iJIh z8N!KkcZJqgEiBLAT}=ep`r<@5XQS|5Fn4yC?C;0vzaQE!Zx+GC-d-6NEw-3=xH|dG zuX|6as)GB~=hA;YHH@4&mF=_bCdJ>P{`N%p|2LW`8za#txl2gY(j>D0;GedpzDAXr HUD*Et2m7Ah literal 0 HcmV?d00001 diff --git a/packages/openspp/assets/square.png b/packages/openspp/assets/square.png new file mode 100644 index 0000000000000000000000000000000000000000..60f00c1f3ee3fd7fd3ee1abf91fb192bb6fe4081 GIT binary patch literal 17857 zcmeIaWl)^avNk#f3_e(bGq}Ux9tL*_8hmhf_d$XMix4142q8g2kl>Qw9wb2%2<`+3 z7J}a)d!K#wsqd>>b*k?Dx2d9dXRYpMbwAzHGjI1>BT^%VB zZd7u&u{C?H+AF0JALWFFBdE5?4Vcd9!tcK^PSHPw56Bp#~(=v4u`d;(+smCC%Gfn$X||l zcSY&gzMWpE>~p{L2z$+T?d>RQ8Hh11hqtZa=<=t`qi>;kKk5KTg=Vo6HziqtDqEk* zOx90AvX4hi+PD{b(DPA48zL1Wr&W`ZKR>xwJvDS|Io_{|Va0ARU$6A-3YIYn3z#H~ zq-rH!o%P5(m^{YvB%Irk*tT@74p}H`pmFoD92fj*!d7Fxlze%9^XGaf@%Np6v(Svp z_YX3k7NDq>CC-L9Xl+hoUYB4;e2R=rw34Auc3JPlo}C;em-$X(7R_9l`kNs6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fYPdrY#x%kR1U#tXi#Q)4x9Ft|$GGuW1aqXQD6DZ$)-3S7F$h%3@fo!A9+|(pv$GS_@o=h~T1!T~SVnWAABle3Ye^&2G5* zwzTacRE?IugJYJ9J`iJL_iVcX_s91NdS}D>>_lmG4S^rx&^|`XO^>0j+6qPt5M?av zcP~u_Cstp;5(qw~?5o0Z>d0G4RVV;Bt@+GXw}gwtsGAFMt3rz5l37 z#)4;YJa?fSy@0u20*qsV&@9Z5z?AxfCcFRykdolI1p&BdD@+x!Bg_PVJ@A5sEL@;G z+}OWhLGCTU(~31B!g0U>Rd=Dcp2U!1n#uL|5aKj2-Ffn7FgV0vn9L~< zH3s!F0#m=jw8YV*)|kG=0@)bsR?>tnOCV8~SHj8O_SV7#VY{9L zSim%qFaa=;8e0(yn6j@(f|(jPhH!dc!^SM|;jsX4jL;`^i9Ia6UlW?wIHCiEVFZqj zAhptf85$N+&~2|@lo+@P0tiAdFDNk$?h=Bi#sPr7J$4z!WqEnj6iX)@BKQc`=?%8; zpb!CwmIwwiM;74#>y8&Aa7cPF?IoZ5+pz={SWyeBUW$tGZ|`4v0+^AAgf%chf%2$N zcVKJOl)~zANN{m52`IKbj2BK#LFonqamgXMN$kiWB}52BzYO+MB+{K8{WLL94|+Rx zXzW9Y!V>0*Q7%v~aU^D`oDifu4ld~-Luq0fL#&^URpjAD$8E-=dyl)EC{1AZjW=bcyCG;+gH6DP7pcd>YZGRtyX%}K+ zZ#bmMX%QFP@CW{l&bmWdhd43H`*7ZK%)%`6LfFLGr1OL+LAA3-J-*$Fp9mSN-WO&r$n=%tMYp>sMOF z1Hkn^^uIZ2TtwCq@BBEa1>|9CtzsSzkhy&p05f2(v86Kt{=W>~|IgWc-Ir^I58Woj UcOzDKFhBq`C2hqDc~tcO10X7)h5!Hn literal 0 HcmV?d00001 diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json new file mode 100644 index 000000000..17a54dc0e --- /dev/null +++ b/packages/openspp/ast.json @@ -0,0 +1,487 @@ +{ + "operations": [ + { + "name": "create", + "params": [ + "resource", + "data", + "callback" + ], + "docs": { + "description": "Create some resource in some system", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "create(\"patient\", {\"name\": \"Bukayo\"})" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "The type of entity that will be created", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "resource" + }, + { + "title": "param", + "description": "The data to create the new resource", + "type": { + "type": "NameExpression", + "name": "object" + }, + "name": "data" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + } + ], + "exports": [], + "common": [ + { + "name": "fn", + "params": [ + "func" + ], + "docs": { + "description": "Creates a custom step (or operation) for more flexible job writing.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "fn(state => {\n // do some things to state\n return state;\n});" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "is the function", + "type": { + "type": "NameExpression", + "name": "Function" + }, + "name": "func" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "sourceValue", + "params": [ + "path" + ], + "docs": { + "description": "Picks out a single value from source data.\nIf a JSONPath returns more than one value for the reference, the first\nitem will be returned.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "sourceValue('$.key')" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "JSONPath referencing a point in `state`.", + "type": { + "type": "NameExpression", + "name": "String" + }, + "name": "path" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "dataPath", + "params": [ + "path" + ], + "docs": { + "description": "Ensures a path points at the data.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "dataPath('key')" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "JSONPath referencing a point in `data`.", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "path" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "string" + } + } + ] + }, + "valid": true + }, + { + "name": "dataValue", + "params": [ + "path" + ], + "docs": { + "description": "Picks out a single value from the source data object—usually `state.data`.\nIf a JSONPath returns more than one value for the reference, the first\nitem will be returned.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "dataValue('key')" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "JSONPath referencing a point in `data`.", + "type": { + "type": "NameExpression", + "name": "String" + }, + "name": "path" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "lastReferenceValue", + "params": [ + "path" + ], + "docs": { + "description": "Picks out the last reference value from source data.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "lastReferenceValue('key')" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "JSONPath referencing a point in `references`.", + "type": { + "type": "NameExpression", + "name": "String" + }, + "name": "path" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "each", + "params": [ + "dataSource", + "operation" + ], + "docs": { + "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "JSONPath referencing a point in `state`.", + "type": { + "type": "NameExpression", + "name": "DataSource" + }, + "name": "dataSource" + }, + { + "title": "param", + "description": "The operation needed to be repeated.", + "type": { + "type": "NameExpression", + "name": "Operation" + }, + "name": "operation" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "field", + "params": [ + "key", + "value" + ], + "docs": { + "description": "Returns a key, value pair in an array.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "field('destination_field_name__c', 'value')" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "Name of the field", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "key" + }, + { + "title": "param", + "description": "The value itself or a sourceable operation.", + "type": { + "type": "NameExpression", + "name": "Value" + }, + "name": "value" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Field" + } + } + ] + }, + "valid": true + }, + { + "name": "fields", + "params": [ + "fields" + ], + "docs": { + "description": "Zips key value pairs into an object.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "fields(list_of_fields)" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "a list of fields", + "type": { + "type": "NameExpression", + "name": "Fields" + }, + "name": "fields" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Object" + } + } + ] + }, + "valid": true + }, + { + "name": "merge", + "params": [ + "dataSource", + "fields" + ], + "docs": { + "description": "Merges fields into each item in an array.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "merge(\n \"$.books[*]\",\n fields(\n field( \"publisher\", sourceValue(\"$.publisher\") )\n )\n)" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": null, + "type": { + "type": "NameExpression", + "name": "DataSource" + }, + "name": "dataSource" + }, + { + "title": "param", + "description": "Group of fields to merge in.", + "type": { + "type": "NameExpression", + "name": "Object" + }, + "name": "fields" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "DataSource" + } + } + ] + }, + "valid": true + } + ] +} \ No newline at end of file diff --git a/packages/openspp/configuration-schema.json b/packages/openspp/configuration-schema.json new file mode 100644 index 000000000..7c6d50cdb --- /dev/null +++ b/packages/openspp/configuration-schema.json @@ -0,0 +1,46 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "baseUrl": { + "title": "Base URL", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The base URL (http://www.example.com)", + "format": "uri", + "minLength": 1, + "default": "http://localhost", + "examples": ["https://dev.newlogic-demo.com"] + }, + "username": { + "title": "Username", + "type": "string", + "description": "Username", + "default": "admin", + "examples": ["test@openfn.org"] + }, + "password": { + "title": "Password", + "type": "string", + "description": "Password", + "default": "admin", + "writeOnly": true, + "examples": ["@some(!)Str0ngp4ss0w0rd"] + }, + "database": { + "title": "Database Name", + "type": "string", + "default": "devel", + "description": "Database Name", + "examples": ["devel"] + } + }, + "type": "object", + "additionalProperties": true, + "required": ["password", "username", "database", "baseUrl"] +} diff --git a/packages/openspp/package.json b/packages/openspp/package.json new file mode 100644 index 000000000..1c67a8db0 --- /dev/null +++ b/packages/openspp/package.json @@ -0,0 +1,51 @@ +{ + "name": "@openfn/language-template", + "version": "3.0.1", + "description": "The standard template for building OpenFn adaptors", + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + }, + "./package.json": "./package.json" + }, + "scripts": { + "build": "pnpm clean && build-adaptor template", + "test": "mocha --experimental-specifier-resolution=node --no-warnings", + "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings", + "clean": "rimraf dist types docs", + "pack": "pnpm pack --pack-destination ../../dist", + "lint": "eslint src" + }, + "author": "Open Function Group", + "license": "LGPLv3", + "files": [ + "dist/", + "types/", + "ast.json", + "configuration-schema.json" + ], + "dependencies": { + "@openfn/language-common": "^1.8.1", + "odoo": "^0.4.0" + }, + "devDependencies": { + "@openfn/buildtools": "workspace:^1.0.2", + "@openfn/simple-ast": "0.4.1", + "assertion-error": "2.0.0", + "chai": "4.3.6", + "deep-eql": "4.1.1", + "esno": "^0.16.3", + "mocha": "9.2.2", + "rimraf": "3.0.2", + "undici": "^5.22.1", + "odoo": "^0.4.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/openfn/adaptors.git" + }, + "types": "types/index.d.ts", + "main": "dist/index.cjs" +} diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js new file mode 100644 index 000000000..5f6efb389 --- /dev/null +++ b/packages/openspp/src/Adaptor.js @@ -0,0 +1,705 @@ +import { + execute as commonExecute, + composeNextState, + expandReferences, +} from "@openfn/language-common"; + +import pkg from "odoo"; +const { Odoo } = pkg; + +var sppConnector = null; + + +export class Log { + static info(message) { + return console.info(`ℹ `, message); + } + + static success(message) { + return console.info(`✓ Success at ${new Date()}:\n∟`, message); + } + + static warn(message) { + return console.warn(`⚠ Warning at ${new Date()}:\n∟`, message); + } + + static error(message) { + return console.error(`✗ Error at ${new Date()}:\n∟`, message); + } +} + + +/** + * Execute a sequence of operations. + * Wraps `language-common/execute` to make working with this API easier. + * @example + * execute( + * create("foo"), + * delete("bar") + * )(state) + * @private + * @param {Operations} operations - Operations to be performed. + * @returns {Operation} + */ +export function execute(...operations) { + sppConnector = null; + + const initialState = { + references: [], + data: null, + }; + + return state => { + return commonExecute(...operations)({ ...initialState, ...state }); + }; +} + +/** + * Logs in to OpenSpp, gets a session token. + * @example + * login(state) + * @private + * @param {State} state - Runtime state. + * @returns {State} + */ +function login(state) { + const {baseUrl, username, password, database} = state.configuration; + sppConnector = new Odoo({ + host: baseUrl, + database: database, + username: username, + password: password + }); + sppConnector.connect((err) => { + if (err) { + Log.error(err); + throw new Error("Can't login to OpenSPP, please check your credentials or network!"); + } + }); + return state; +} + +/** + * Create a brand new program membership for registrant. + * @example + * _creatingEnrolledRegistrantToProgram("IND_Q4VGGZPF", "PROG_2023_00000001") + * @private + * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll + * @param {string} program_id - program_id of program + */ +function _creatingEnrolledRegistrantToProgram(registrant_id, program_id) { + if (sppConnector === null) { + login(state); + } + let registrant; + let program; + sppConnector + .search_read( + "res.partner", + { + domain: [["is_registrant", "=", true], ["registrant_id", "=", registrant_id]], + limit: 1, + fields: ["id"], + }, + (err, res) => { + if (err) { + Log.error(err); + } + registrant = res; + } + ) + .then(() =>{ + sppConnector.search_read( + "g2p.program", + { + domain: [["program_id", "=", program_id]], + limit: 1, + fields: ["id"], + }, + (err, res) => { + if (err) { + Log.error(err); + } + program = res; + } + ) + }) + .then(() =>{ + if (!registrant || !program) { + return Log.error("Registrant or Program not exists!"); + } + let registrantId = registrant[0].id; + let programId = program[0].id; + sppConnector.create( + "g2p.program_membership", + { + program_id: programId, + partner_id: registrantId, + state: "enrolled", + } + ); + }); +}; + +/** + * get group information from OpenSPP + * @public + * @example + * getGroup("GRP_Q4VGGZPF") + * @function + * @param {string} registrant_id - The registrant_id of the group + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function getGroup(registrant_id, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [ + ["is_registrant", "=", true], + ["is_group", "=", true], + ["registrant_id", "=", registrant_id] + ]; + let defaultOrder = "id desc"; + let defaultFields = [ + "name", "address", "phone", "kind", "registration_date", "registrant_id" + ]; + let options = { + domain: defaultDomain, + limit: 1, + order: defaultOrder, + fields: defaultFields + }; + sppConnector.search_read("res.partner", options, (err, group) => { + if (err) { + return Log.error(err); + } + if (!group) { + return Log.warn(`Group ${registrant_id} not found!`); + } + Log.info(`Group ${registrant_id} found!`); + let nextState = composeNextState(state, group); + if (callback) { + return callback(nextState); + } + return nextState; + }); + }; +}; + +/** + * get individual information from OpenSPP + * @public + * @example + * getIndividual("IND_Q4VGGZPF") + * @function + * @param {string} registrant_id - The registrant_id of the individual + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function getIndividual(registrant_id, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [ + ["is_registrant", "=", true], + ["is_group", "=", true], + ["registrant_id", "=", registrant_id] + ]; + let defaultOrder = "id desc"; + let defaultFields = [ + "name", "address", "phone", "registrant_id", + "gender", "email", "category_id", "birthdate", + ]; + let options = { + domain: defaultDomain, + limit: 1, + order: defaultOrder, + fields: defaultFields + }; + sppConnector.search_read("res.partner", options, (err, individual) => { + if (err) { + return Log.error(err); + } + if (!individual) { + return Log.warn(`Individual with id=${registrant_id} not found!`); + } + Log.info(`Individual with id=${registrant_id} found!`); + let nextState = composeNextState(state, individual); + if (callback) { + return callback(nextState); + } + return nextState; + }); + }; +}; + +/** + * get group members information from OpenSPP + * @public + * @example + * getGroupMembers("GRP_Q4VGGZPF") + * @function + * @param {string} registrant_id - The name of the group + * @param {number} [offset=0] - Offset searching + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function getGroupMembers(registrant_id, offset=0, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [ + ["is_ended", "=", false], + ["group.registrant_id", "=", registrant_id] + ]; + let defaultFields = [ + "individual", "kind", "start_date", "ended_date", + "individual_birthdate", "individual_gender" + ]; + let options = { + domain: defaultDomain, + limit: 100, + fields: defaultFields + }; + if (offset > 0) { + options.offset = offset + } + sppConnector.search_read("g2p.group.membership", options, (err, members) => { + if (err) { + return Log.error(err); + } + if (!members) { + return Log.warn(`Household ${registrant_id} not found or not having members!`) + } + Log.info(`Household ${registrant_id} members found!`); + let nextState = composeNextState(state, members); + if (callback) { + return callback(nextState); + } + return nextState; + }) + } +}; + +/** + * get service points information from OpenSPP + * @public + * @example + * getServicePoint("000117") + * @function + * @param {string} name - The number of the agent + * @param {number} [offset=0] - Offset searching + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function getServicePoint(name, offset=0, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [["name", "=", name]]; + let defaultFields = [ + "name", "area_id", "service_type_ids", "phone_sanitized", + "shop_address", "is_contract_active", "is_disabled" + ]; + let options = { + domain: defaultDomain, + limit: 100, + fields: defaultFields + }; + if (offset > 0) { + options.offset = offset; + } + sppConnector.search_read("spp.service.point", options, (err, agents) => { + if (err) { + return Log.error(err); + } + if (!agents) { + return Log.warn(`Agent ${name} not found!`) + } + Log.info(`Agent ${name} found!`); + let nextState = composeNextState(state, agents); + if (callback) { + return callback(nextState); + } + return nextState; + }) + } +}; + +/** + * get groups from OpenSPP + * @public + * @example + * searchGroup([["registrant_id", "=", "GRP_Q4VGGZPF"]]) + * @function + * @param {string} domain - searching domain + * @param {number} [offset=0] - Offset searching + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function searchGroup(domain, offset=0, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [ + ["is_registrant", "=", true], + ["is_group", "=", true], + ]; + let defaultOrder = "id desc"; + let defaultFields = ["name", "registrant_id"]; + let isDomain = true; + for (const element of domain) { + if (!Array.isArray(element)) { + isDomain = false; + break; + } + } + if (!isDomain) { + domain = [domain]; + } + let finalDomain = [...domain, ...defaultDomain]; + let options = { + domain: finalDomain, + limit: 100, + offset: offset, + order: defaultOrder, + fields: defaultFields + }; + sppConnector.search_read("res.partner", options, (err, groups) => { + if (err) { + return Log.error(err); + } + if (!groups) { + return Log.warn(`Group with domain=${domain} not found!`); + } + Log.info(`Group with domain=${domain} found!`); + let nextState = composeNextState(state, groups); + if (callback) { + return callback(nextState); + } + return nextState; + }); + } +} + +/** + * get individuals from OpenSPP + * @public + * @example + * searchIndividual([["registrant_id", "=", "IND_Q4VGGZPF"]]) + * @function + * @param {string} domain - searching domain + * @param {number} [offset=0] - Offset searching + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function searchIndividual(domain, offset=0, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [ + ["is_registrant", "=", true], + ["is_group", "=", false], + ]; + let defaultOrder = "id desc"; + let defaultFields = ["name", "registrant_id"]; + let isDomain = true; + for (const element of domain) { + if (!Array.isArray(element)) { + isDomain = false; + break; + } + } + if (!isDomain) { + domain = [domain]; + } + let finalDomain = [...domain, ...defaultDomain]; + let options = { + domain: finalDomain, + limit: 100, + offset: offset, + order: defaultOrder, + fields: defaultFields + }; + sppConnector.search_read("res.partner", options, (err, individuals) => { + if (err) { + return Log.error(err); + } + if (!individuals) { + return Log.warn(`Individual with domain=${domain} not found!`); + } + Log.info(`Individual with domain=${domain} found!`); + let nextState = composeNextState(state, individuals); + if (callback) { + return callback(nextState); + } + return nextState; + }); + } +} + +/** + * get program information from OpenSPP + * @public + * @example + * getProgram("PROG_2023_00000001") + * @function + * @param {string} program_id - searching domain + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function getProgram(program_id, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [["program_id", "=", program_id]]; + let defaultFields = [ + "name", "program_id", "eligible_beneficiaries_count", + "cycles_count", "state", "target_type" + ]; + let options = { + domain: defaultDomain, + limit: 1, + fields: defaultFields + }; + sppConnector.search_read("g2p.program", options, (err, program) => { + if (err) { + return Log.error(err); + } + if (!program) { + return Log.warn(`Program ${program_id} not found!`) + } + Log.info(`Program ${program_id} found!`); + let nextState = composeNextState(state, program); + if (callback) { + return callback(nextState); + } + return nextState; + }) + } +} + +/** + * get programs list from OpenSPP + * @public + * @example + * getPrograms(100) + * @function + * @param {number} [offset=0] - offset from start + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function getPrograms(offset=0, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = []; + let defaultFields = ["name", "program_id"]; + let defaultOrder = "id"; + let options = { + domain: defaultDomain, + limit: 100, + fields: defaultFields, + offset: offset, + order: defaultOrder, + }; + sppConnector.search_read("g2p.program", options, (err, programs) => { + if (err) { + return Log.error(err); + } + if (!programs) { + return Log.warn("No program found!"); + } + Log.info("Program(s) found!"); + let nextState = composeNextState(state, programs); + if (callback) { + return callback(nextState); + } + return nextState; + }); + }; +}; + +/** + * get programs list from OpenSPP + * @public + * @example + * getEnrolledPrograms("IND_Q4VGGZPF") + * @function + * @param {string} registrant_id - registrant_id of group / individual wanted to search + * @param {function} callback - An optional callback function + * @returns {Operation} + */ +export function getEnrolledPrograms(registrant_id, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let defaultDomain = [["partner_id.registrant_id", "=", registrant_id]]; + let defaultFields = ["program_id"]; + sppConnector.search_read( + "g2p.program_membership", + { + domain: defaultDomain, + fields: defaultFields, + limit: 500 + }, + (err, program_ids) => { + if (err) { + return Log.error(err); + } + if (!program_ids) { + return Log.warn("No enrolled program(s) found!"); + } + Log.info("Enrolled program(s) found!"); + sppConnector.search_read( + "g2p.program", + { + domain: [["id", "in", program_ids]], + fields: defaultFields, + limit: program_ids.length + }, + (err, programs) => { + let nextState = composeNextState(state, programs); + if (callback) { + return callback(nextState); + } + return nextState; + } + ); + } + ); + }; +}; + +/** + * enroll registrant to program from OpenSPP + * @public + * @example + * enroll("IND_Q4VGGZPF", "PROG_2023_00000001") + * @function + * @param {string} registrant_id - registrant_id of group / individual wanted to enroll + * @param {string} program_id - program_id of program + * @param {function} callback - An optional callback function + */ +export function enroll(registrant_id, program_id, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let domain = [ + ["partner_id.registrant_id", "=", registrant_id], + ["program_id.program_id", "=", program_id], + ]; + let fields = ["partner_id", "program_id", "state"]; + sppConnector.search_read( + "g2p.program_membership", + { + domain: domain, + limit: 1, + fields: fields, + }, + (err, result) => { + if (err) { + return Log.error(err); + } + if (Array.isArray(result) && result.length > 0) { + let membership = result[0]; + if (membership.state === "enrolled") { + return Log.info(`Registrant ${registrant_id} enrolled into Program ${program_id}`); + } else { + sppConnector.update( + model="g2p.program_membership", + id=membership.id, + params={state: "enrolled"}, + (err, result) => { + if (err) { + return Log.error(err); + } + return Log.info(`Registrant ${registrant_id} enrolled into Program ${program_id}`); + } + ); + } + } else { + Log.info("Please waiting to create program membership"); + return _creatingEnrolledRegistrantToProgram(registrant_id, program_id); + } + } + ); + }; +}; + +/** + * unenroll registrant from program from OpenSPP + * @public + * @example + * unenroll("IND_Q4VGGZPF", "PROG_2023_00000001") + * @function + * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll + * @param {string} program_id - program_id of program + * @param {function} callback - An optional callback function + */ +export function unenroll(registrant_id, program_id, callback=false) { + if (sppConnector === null) { + login(state); + } + return state => { + let domain = [ + ["partner_id.registrant_id", "=", registrant_id], + ["program_id.program_id", "=", program_id], + ]; + let fields = ["partner_id", "program_id", "state"]; + sppConnector.search_read( + "g2p.program_membership", + { + domain: domain, + fields: fields, + limit: 1 + }, + (err, result) => { + if (err) { + Log.error(err); + } + if ((Array.isArray(result) && result.length === 0) || result[0].state !== "enrolled") { + Log.info(`Registrant ${registrant_id} is not enrolled into Program ${program_id}`); + } else { + sppConnector.update( + model="g2p.program_membership", + id=membership.id, + params={state: "not_eligible"}, + (err, result) => { + if (err) { + return Log.error(err); + } + return Log.info(`Registrant ${registrant_id} enrolled into Program ${program_id}`); + } + ); + } + } + ); + }; +}; + +// TODO: Decide which functions to publish from @openfn/language-common +export { + dataPath, + dataValue, + dateFns, + each, + field, + fields, + fn, + http, + lastReferenceValue, + merge, + sourceValue, +} from "@openfn/language-common"; diff --git a/packages/openspp/src/index.js b/packages/openspp/src/index.js new file mode 100644 index 000000000..a013b3648 --- /dev/null +++ b/packages/openspp/src/index.js @@ -0,0 +1,4 @@ +import * as Adaptor from './Adaptor'; +export default Adaptor; + +export * from './Adaptor'; \ No newline at end of file diff --git a/packages/openspp/test/Adaptor.test.js b/packages/openspp/test/Adaptor.test.js new file mode 100644 index 000000000..fd4226614 --- /dev/null +++ b/packages/openspp/test/Adaptor.test.js @@ -0,0 +1,34 @@ +import { expect } from 'chai'; +import { execute } from '../src/Adaptor.js'; + +describe('execute', () => { + it('executes each operation in sequence', done => { + const state = {}; + const operations = [ + state => { + return { counter: 1 }; + }, + state => { + return { counter: 2 }; + }, + state => { + return { counter: 3 }; + }, + ]; + + execute(...operations)(state) + .then(finalState => { + expect(finalState).to.eql({ counter: 3 }); + }) + .then(done) + .catch(done); + }); + + it('assigns references, data to the initialState', () => { + const state = {}; + + execute()(state).then(finalState => { + expect(finalState).to.eql({ references: [], data: null }); + }); + }); +}); From ae98267eb2171f13d316a3b3697850aed358485b Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Fri, 20 Oct 2023 21:57:47 +0700 Subject: [PATCH 02/15] [UPD] change language name --- packages/openspp/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/openspp/package.json b/packages/openspp/package.json index 1c67a8db0..64596765a 100644 --- a/packages/openspp/package.json +++ b/packages/openspp/package.json @@ -1,7 +1,7 @@ { - "name": "@openfn/language-template", + "name": "@openfn/language-openspp", "version": "3.0.1", - "description": "The standard template for building OpenFn adaptors", + "description": "The standard openspp for building OpenFn adaptors", "type": "module", "exports": { ".": { @@ -11,7 +11,7 @@ "./package.json": "./package.json" }, "scripts": { - "build": "pnpm clean && build-adaptor template", + "build": "pnpm clean && build-adaptor openspp", "test": "mocha --experimental-specifier-resolution=node --no-warnings", "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings", "clean": "rimraf dist types docs", From 5a9ef1527ef8fed861949686480f48ca5c4c214f Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Fri, 20 Oct 2023 23:11:02 +0700 Subject: [PATCH 03/15] [UPD] change log --- packages/openspp/CHANGELOG.md | 105 ++-------------------------------- packages/openspp/package.json | 2 +- 2 files changed, 5 insertions(+), 102 deletions(-) diff --git a/packages/openspp/CHANGELOG.md b/packages/openspp/CHANGELOG.md index 086b896d0..64f17efdb 100644 --- a/packages/openspp/CHANGELOG.md +++ b/packages/openspp/CHANGELOG.md @@ -1,104 +1,7 @@ -# @openfn/language-template +# @openfn/language-openspp -## 3.0.1 +## 1.0.0 -### Patch Changes +### First Entry -- Update lock files -- Updated dependencies - - @openfn/language-common@1.8.1 - -## 3.0.0 - -### Major Changes - -- 2c1d603: Remove parameter reassignment to ensure proper functioning inside an - `each` block; add eslint - - The packages receiving a major bump here exposed functions that didn't work as - expected inside `each` blocks. Users were previously wrapping these functions - inside their own custom `fn` blocks, and this change will ensure that they can - be used inside a standard each. - - See https://github.com/OpenFn/adaptors/issues/275 for more details. - -### Patch Changes - -- Updated dependencies [2c1d603] - - @openfn/language-common@1.8.0 - -## 2.0.0 - -### Major Changes - -- 779596f: Use native fetch (undici) in template and add icons in openfn - -### Minor Changes - -- 1af9cd5: Better docs and resource names - -## 1.7.8 - -### Patch Changes - -- 14f481e: mark execute as private -- Updated dependencies [2b4c61a] - - @openfn/language-common@1.7.6 - -## 1.7.7 - -### Patch Changes - -- f7ebd3c: remove sample configuration - -## 1.7.6 - -### Patch Changes - -- f2aed32: add examples - -## 1.7.5 - -### Patch Changes - -- 6d8de03: change @constructor to @function and remove /\*_ @module Adaptor _/ - -## 1.7.4 - -### Patch Changes - -- f2a91a4: Update package exports -- Updated dependencies [f2a91a4] - - @openfn/language-common@1.7.5 - -## 1.7.3 - -### Patch Changes - -- 8566b26: Fix typings -- b3d45ff: Fix CJS export of npm package. -- b5eb665: Adjusted docs for common and built to markdown -- ecf5d30: remove sinon since it was not being used -- Updated dependencies [8566b26] -- Updated dependencies [b3d45ff] -- Updated dependencies [b5eb665] -- Updated dependencies [ecf5d30] - - @openfn/language-common@1.7.4 - -## 1.7.2 - -### Patch Changes - -- f4b3dd6: remove travis build url - -## 1.7.1 - -### Patch Changes - -- Fixed package.json for template adaptor - -## 1.7.0 - -### Minor Changes - -- 554e905: Migrated to monorepo +- Create OpenSPP adaptor diff --git a/packages/openspp/package.json b/packages/openspp/package.json index 64596765a..d768d88a2 100644 --- a/packages/openspp/package.json +++ b/packages/openspp/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openspp", - "version": "3.0.1", + "version": "1.0.0", "description": "The standard openspp for building OpenFn adaptors", "type": "module", "exports": { From 1b425369b76b5608fc6a149173ba0776f0d16004 Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Sat, 4 Nov 2023 11:22:54 +0700 Subject: [PATCH 04/15] [UPD] convert to async - await code style --- packages/openspp/package.json | 4 +- packages/openspp/src/Adaptor.js | 580 ++++++++++++++------------------ 2 files changed, 256 insertions(+), 328 deletions(-) diff --git a/packages/openspp/package.json b/packages/openspp/package.json index d768d88a2..0a1916d12 100644 --- a/packages/openspp/package.json +++ b/packages/openspp/package.json @@ -28,7 +28,7 @@ ], "dependencies": { "@openfn/language-common": "^1.8.1", - "odoo": "^0.4.0" + "odoo-await": "^3.4.1" }, "devDependencies": { "@openfn/buildtools": "workspace:^1.0.2", @@ -40,7 +40,7 @@ "mocha": "9.2.2", "rimraf": "3.0.2", "undici": "^5.22.1", - "odoo": "^0.4.0" + "odoo-await": "^3.4.1" }, "repository": { "type": "git", diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index 5f6efb389..afaa67214 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -4,31 +4,12 @@ import { expandReferences, } from "@openfn/language-common"; -import pkg from "odoo"; +import pkg from "odoo-await"; const { Odoo } = pkg; var sppConnector = null; -export class Log { - static info(message) { - return console.info(`ℹ `, message); - } - - static success(message) { - return console.info(`✓ Success at ${new Date()}:\n∟`, message); - } - - static warn(message) { - return console.warn(`⚠ Warning at ${new Date()}:\n∟`, message); - } - - static error(message) { - return console.error(`✗ Error at ${new Date()}:\n∟`, message); - } -} - - /** * Execute a sequence of operations. * Wraps `language-common/execute` to make working with this API easier. @@ -50,7 +31,7 @@ export function execute(...operations) { }; return state => { - return commonExecute(...operations)({ ...initialState, ...state }); + return commonExecute(login, ...operations)({ ...initialState, ...state }); }; } @@ -62,83 +43,64 @@ export function execute(...operations) { * @param {State} state - Runtime state. * @returns {State} */ -function login(state) { +async function login(state) { const {baseUrl, username, password, database} = state.configuration; sppConnector = new Odoo({ host: baseUrl, - database: database, + db: database, username: username, password: password }); - sppConnector.connect((err) => { - if (err) { - Log.error(err); - throw new Error("Can't login to OpenSPP, please check your credentials or network!"); - } - }); + try { + await sppConnector.connect(); + } catch (err) { + console.log(`✗ Error at ${new Date()}:\n∟${err}`); + throw new Error("Can't login to OpenSPP, please check your credentials or network!"); + } return state; } /** * Create a brand new program membership for registrant. * @example - * _creatingEnrolledRegistrantToProgram("IND_Q4VGGZPF", "PROG_2023_00000001") + * creatingEnrolledRegistrantToProgram("IND_Q4VGGZPF", "PROG_2023_00000001") * @private * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll * @param {string} program_id - program_id of program */ -function _creatingEnrolledRegistrantToProgram(registrant_id, program_id) { - if (sppConnector === null) { - login(state); - } - let registrant; - let program; - sppConnector - .search_read( +async function creatingEnrolledRegistrantToProgram(registrant_id, program_id) { + try { + let registrant = await sppConnector.searchRead( "res.partner", + [["is_registrant", "=", true], ["registrant_id", "=", registrant_id]], + ["id"], + { limit: 1 }, + ); + if (registrant.length === 0) { + throw new Error(`Registrant ${registrant_id} not exists!`); + } + registrant = registrant[0].id; + let program = await sppConnector.searchRead( + "g2p.program", + [["program_id", "=", program_id]], + ["id"], + { limit: 1 }, + ); + if (program.length === 0) { + throw new Error(`Program ${program_id} not exists!`); + } + program = program[0].id; + await sppConnector.create( + "g2p.program_membership", { - domain: [["is_registrant", "=", true], ["registrant_id", "=", registrant_id]], - limit: 1, - fields: ["id"], - }, - (err, res) => { - if (err) { - Log.error(err); - } - registrant = res; + program_id: program, + partner_id: registrant, + state: "enrolled", } - ) - .then(() =>{ - sppConnector.search_read( - "g2p.program", - { - domain: [["program_id", "=", program_id]], - limit: 1, - fields: ["id"], - }, - (err, res) => { - if (err) { - Log.error(err); - } - program = res; - } - ) - }) - .then(() =>{ - if (!registrant || !program) { - return Log.error("Registrant or Program not exists!"); - } - let registrantId = registrant[0].id; - let programId = program[0].id; - sppConnector.create( - "g2p.program_membership", - { - program_id: programId, - partner_id: registrantId, - state: "enrolled", - } - ); - }); + ); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } }; /** @@ -152,39 +114,35 @@ function _creatingEnrolledRegistrantToProgram(registrant_id, program_id) { * @returns {Operation} */ export function getGroup(registrant_id, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = [ ["is_registrant", "=", true], ["is_group", "=", true], ["registrant_id", "=", registrant_id] ]; - let defaultOrder = "id desc"; let defaultFields = [ "name", "address", "phone", "kind", "registration_date", "registrant_id" ]; - let options = { - domain: defaultDomain, - limit: 1, - order: defaultOrder, - fields: defaultFields - }; - sppConnector.search_read("res.partner", options, (err, group) => { - if (err) { - return Log.error(err); - } - if (!group) { - return Log.warn(`Group ${registrant_id} not found!`); + try { + let group = await sppConnector.searchRead( + "res.partner", + defaultDomain, + defaultFields, + { limit: 1, order: "id desc" }, + ); + if (group.length === 0) { + return console.log(`✗ Error at ${new Date()}:\n∟Group ${registrant_id} not found!`); } - Log.info(`Group ${registrant_id} found!`); - let nextState = composeNextState(state, group); + console.log(`ℹ Group ${registrant_id} found!`); + let nextState = composeNextState(state, group[0]); if (callback) { return callback(nextState); + } else { + return nextState; } - return nextState; - }); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } }; }; @@ -199,40 +157,36 @@ export function getGroup(registrant_id, callback=false) { * @returns {Operation} */ export function getIndividual(registrant_id, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = [ ["is_registrant", "=", true], - ["is_group", "=", true], + ["is_group", "=", false], ["registrant_id", "=", registrant_id] ]; - let defaultOrder = "id desc"; let defaultFields = [ "name", "address", "phone", "registrant_id", "gender", "email", "category_id", "birthdate", ]; - let options = { - domain: defaultDomain, - limit: 1, - order: defaultOrder, - fields: defaultFields - }; - sppConnector.search_read("res.partner", options, (err, individual) => { - if (err) { - return Log.error(err); - } - if (!individual) { - return Log.warn(`Individual with id=${registrant_id} not found!`); + try { + let individual = await sppConnector.searchRead( + "res.partner", + defaultDomain, + defaultFields, + { limit: 1, order: "id desc" }, + ); + if (individual.length === 0) { + return console.log(`✗ Error at ${new Date()}:\n∟Individual with id=${registrant_id} not found!`); } - Log.info(`Individual with id=${registrant_id} found!`); - let nextState = composeNextState(state, individual); + console.log(`ℹ Individual with id=${registrant_id} found!`); + let nextState = composeNextState(state, individual[0]); if (callback) { return callback(nextState); + } else { + return nextState; } - return nextState; - }); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } }; }; @@ -248,40 +202,51 @@ export function getIndividual(registrant_id, callback=false) { * @returns {Operation} */ export function getGroupMembers(registrant_id, offset=0, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { - let defaultDomain = [ - ["is_ended", "=", false], - ["group.registrant_id", "=", registrant_id] - ]; - let defaultFields = [ - "individual", "kind", "start_date", "ended_date", - "individual_birthdate", "individual_gender" - ]; - let options = { - domain: defaultDomain, - limit: 100, - fields: defaultFields - }; - if (offset > 0) { - options.offset = offset - } - sppConnector.search_read("g2p.group.membership", options, (err, members) => { - if (err) { - return Log.error(err); + return async state => { + try { + let group_id = await sppConnector.search( + "res.partner", + [ + ["is_group", "=", true], + ["is_registrant", "=", true], + ["registrant_id", "=", registrant_id], + ] + ); + if (group_id.length === 0) { + return console.log(`✗ Error at ${new Date()}:\n∟Group id=${registrant_id} not found!`); } + let defaultDomain = [ + ["is_ended", "=", false], + ["group", "=", group_id[0]] + ]; + let defaultFields = [ + "individual", "kind", "start_date", "ended_date", + "individual_birthdate", "individual_gender" + ]; + let options = { + limit: 100, + order: "id desc" + }; + if (offset > 0) { + options.offset = offset + } + let members = await sppConnector.searchRead( + "g2p.group.membership", + defaultDomain, + defaultFields, + options, + ); if (!members) { - return Log.warn(`Household ${registrant_id} not found or not having members!`) + return console.log(`⚠ Warning at ${new Date()}:\n∟Household ${registrant_id} not having members!`) } - Log.info(`Household ${registrant_id} members found!`); + console.log(`ℹ Household ${registrant_id} members found!`); let nextState = composeNextState(state, members); if (callback) { return callback(nextState); } - return nextState; - }) + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } } }; @@ -297,37 +262,37 @@ export function getGroupMembers(registrant_id, offset=0, callback=false) { * @returns {Operation} */ export function getServicePoint(name, offset=0, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = [["name", "=", name]]; let defaultFields = [ "name", "area_id", "service_type_ids", "phone_sanitized", "shop_address", "is_contract_active", "is_disabled" ]; let options = { - domain: defaultDomain, limit: 100, - fields: defaultFields + order: "id desc", }; if (offset > 0) { options.offset = offset; } - sppConnector.search_read("spp.service.point", options, (err, agents) => { - if (err) { - return Log.error(err); - } - if (!agents) { - return Log.warn(`Agent ${name} not found!`) + try { + let agents = await sppConnector.searchRead( + "spp.service.point", + defaultDomain, + defaultFields, + options, + ); + if (agents.length === 0) { + return console.log(`⚠ Warning at ${new Date()}:\n∟Agent ${name} not found!`); } - Log.info(`Agent ${name} found!`); + console.log(`ℹ Agent ${name} found!`); let nextState = composeNextState(state, agents); if (callback) { return callback(nextState); } - return nextState; - }) + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } } }; @@ -343,10 +308,7 @@ export function getServicePoint(name, offset=0, callback=false) { * @returns {Operation} */ export function searchGroup(domain, offset=0, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = [ ["is_registrant", "=", true], ["is_group", "=", true], @@ -365,26 +327,29 @@ export function searchGroup(domain, offset=0, callback=false) { } let finalDomain = [...domain, ...defaultDomain]; let options = { - domain: finalDomain, limit: 100, offset: offset, order: defaultOrder, - fields: defaultFields }; - sppConnector.search_read("res.partner", options, (err, groups) => { - if (err) { - return Log.error(err); - } - if (!groups) { - return Log.warn(`Group with domain=${domain} not found!`); + try { + let groups = await sppConnector.searchRead( + "res.partner", + finalDomain, + defaultFields, + options, + ); + if (groups.length === 0) { + return console.log(`⚠ Warning at ${new Date()}:\n∟Group with domain=${domain} not found!`); } - Log.info(`Group with domain=${domain} found!`); + console.log(`ℹ Group with domain=${domain} found!`); let nextState = composeNextState(state, groups); if (callback) { return callback(nextState); } return nextState; - }); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } } } @@ -400,10 +365,7 @@ export function searchGroup(domain, offset=0, callback=false) { * @returns {Operation} */ export function searchIndividual(domain, offset=0, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = [ ["is_registrant", "=", true], ["is_group", "=", false], @@ -422,26 +384,29 @@ export function searchIndividual(domain, offset=0, callback=false) { } let finalDomain = [...domain, ...defaultDomain]; let options = { - domain: finalDomain, limit: 100, offset: offset, order: defaultOrder, - fields: defaultFields }; - sppConnector.search_read("res.partner", options, (err, individuals) => { - if (err) { - return Log.error(err); - } - if (!individuals) { - return Log.warn(`Individual with domain=${domain} not found!`); + try { + let individuals = await sppConnector.searchRead( + "res.partner", + finalDomain, + defaultFields, + options, + ); + if (individuals.length === 0) { + return console.log(`⚠ Warning at ${new Date()}:\n∟Individual with domain=${domain} not found!`); } - Log.info(`Individual with domain=${domain} found!`); + console.log(`ℹ Individual with domain=${domain} found!`); let nextState = composeNextState(state, individuals); if (callback) { return callback(nextState); } return nextState; - }); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } } } @@ -456,34 +421,32 @@ export function searchIndividual(domain, offset=0, callback=false) { * @returns {Operation} */ export function getProgram(program_id, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = [["program_id", "=", program_id]]; let defaultFields = [ "name", "program_id", "eligible_beneficiaries_count", "cycles_count", "state", "target_type" ]; - let options = { - domain: defaultDomain, - limit: 1, - fields: defaultFields - }; - sppConnector.search_read("g2p.program", options, (err, program) => { - if (err) { - return Log.error(err); - } - if (!program) { - return Log.warn(`Program ${program_id} not found!`) + let options = { limit: 1 }; + try { + let program = await sppConnector.searchRead( + "g2p.program", + defaultDomain, + defaultFields, + options, + ); + if (program.length === 0) { + return console.log(`⚠ Warning at ${new Date()}:\n∟Program ${program_id} not found!`); } - Log.info(`Program ${program_id} found!`); - let nextState = composeNextState(state, program); + console.log(`ℹ Program ${program_id} found!`); + let nextState = composeNextState(state, program[0]); if (callback) { return callback(nextState); } return nextState; - }) + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } } } @@ -498,34 +461,34 @@ export function getProgram(program_id, callback=false) { * @returns {Operation} */ export function getPrograms(offset=0, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = []; let defaultFields = ["name", "program_id"]; let defaultOrder = "id"; let options = { - domain: defaultDomain, limit: 100, - fields: defaultFields, offset: offset, order: defaultOrder, }; - sppConnector.search_read("g2p.program", options, (err, programs) => { - if (err) { - return Log.error(err); - } - if (!programs) { - return Log.warn("No program found!"); + try { + let programs = await sppConnector.searchRead( + "g2p.program", + defaultDomain, + defaultFields, + options, + ); + if (programs.length === 0) { + return console.log(`⚠ Warning at ${new Date()}:\n∟No program found!`); } - Log.info("Program(s) found!"); + console.log(`ℹ Program(s) found!`); let nextState = composeNextState(state, programs); if (callback) { return callback(nextState); } return nextState; - }); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } }; }; @@ -540,44 +503,34 @@ export function getPrograms(offset=0, callback=false) { * @returns {Operation} */ export function getEnrolledPrograms(registrant_id, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let defaultDomain = [["partner_id.registrant_id", "=", registrant_id]]; let defaultFields = ["program_id"]; - sppConnector.search_read( - "g2p.program_membership", - { - domain: defaultDomain, - fields: defaultFields, - limit: 500 - }, - (err, program_ids) => { - if (err) { - return Log.error(err); - } - if (!program_ids) { - return Log.warn("No enrolled program(s) found!"); - } - Log.info("Enrolled program(s) found!"); - sppConnector.search_read( - "g2p.program", - { - domain: [["id", "in", program_ids]], - fields: defaultFields, - limit: program_ids.length - }, - (err, programs) => { - let nextState = composeNextState(state, programs); - if (callback) { - return callback(nextState); - } - return nextState; - } - ); + try { + let program_ids = await sppConnector.searchRead( + "g2p.program_membership", + defaultDomain, + defaultFields, + ); + if (program_ids.length === 0) { + return console.log(`⚠ Warning at ${new Date()}:\n∟No enrolled program(s) found!`); } - ); + console.log(`ℹ Enrolled program(s) found!`); + program_ids = program_ids.map(i => i.program_id[0]); + let programs = await sppConnector.searchRead( + "g2p.program", + [["id", "in", program_ids]], + defaultFields, + { limit: program_ids.length } + ); + let nextState = composeNextState(state, programs); + if (callback) { + return callback(nextState); + } + return nextState; + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } }; }; @@ -592,49 +545,36 @@ export function getEnrolledPrograms(registrant_id, callback=false) { * @param {function} callback - An optional callback function */ export function enroll(registrant_id, program_id, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let domain = [ ["partner_id.registrant_id", "=", registrant_id], ["program_id.program_id", "=", program_id], ]; let fields = ["partner_id", "program_id", "state"]; - sppConnector.search_read( - "g2p.program_membership", - { - domain: domain, - limit: 1, - fields: fields, - }, - (err, result) => { - if (err) { - return Log.error(err); - } - if (Array.isArray(result) && result.length > 0) { - let membership = result[0]; - if (membership.state === "enrolled") { - return Log.info(`Registrant ${registrant_id} enrolled into Program ${program_id}`); - } else { - sppConnector.update( - model="g2p.program_membership", - id=membership.id, - params={state: "enrolled"}, - (err, result) => { - if (err) { - return Log.error(err); - } - return Log.info(`Registrant ${registrant_id} enrolled into Program ${program_id}`); - } - ); - } - } else { - Log.info("Please waiting to create program membership"); - return _creatingEnrolledRegistrantToProgram(registrant_id, program_id); + try { + let programMember = await sppConnector.searchRead( + "g2p.program_membership", + domain, + fields, + { limit: 1 } + ); + if (programMember.length > 0) { + let membership = programMember[0]; + if (membership.state !== "enrolled") { + await sppConnector.update( + "g2p.program_membership", + membership.id, + { state: "enrolled" }, + ); } + return console.log(`ℹ Registrant ${registrant_id} enrolled into Program ${program_id}`); + } else { + console.log(`ℹ Please wait for creating program membership!`); + return await creatingEnrolledRegistrantToProgram(registrant_id, program_id); } - ); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } }; }; @@ -649,43 +589,31 @@ export function enroll(registrant_id, program_id, callback=false) { * @param {function} callback - An optional callback function */ export function unenroll(registrant_id, program_id, callback=false) { - if (sppConnector === null) { - login(state); - } - return state => { + return async state => { let domain = [ ["partner_id.registrant_id", "=", registrant_id], ["program_id.program_id", "=", program_id], ]; let fields = ["partner_id", "program_id", "state"]; - sppConnector.search_read( - "g2p.program_membership", - { - domain: domain, - fields: fields, - limit: 1 - }, - (err, result) => { - if (err) { - Log.error(err); - } - if ((Array.isArray(result) && result.length === 0) || result[0].state !== "enrolled") { - Log.info(`Registrant ${registrant_id} is not enrolled into Program ${program_id}`); - } else { - sppConnector.update( - model="g2p.program_membership", - id=membership.id, - params={state: "not_eligible"}, - (err, result) => { - if (err) { - return Log.error(err); - } - return Log.info(`Registrant ${registrant_id} enrolled into Program ${program_id}`); - } - ); - } + try { + let programMember = await sppConnector.searchRead( + "g2p.program_membership", + domain, + fields, + { limit: 1 } + ); + if (programMember.length > 0 && programMember[0].state === "enrolled") { + let membership = programMember[0]; + await sppConnector.update( + "g2p.program_membership", + membership.id, + { state: "not_eligible" }, + ); } - ); + return console.log(`ℹ Registrant ${registrant_id} not enroll into Program ${program_id}`); + } catch (err) { + return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + } }; }; From a88e91108703f8c9a7d49d4dd49a99bf4f7a9f58 Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Sat, 4 Nov 2023 11:24:00 +0700 Subject: [PATCH 05/15] [UPD] remove todo export functions from language-common --- packages/openspp/src/Adaptor.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index afaa67214..01e046dea 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -617,7 +617,6 @@ export function unenroll(registrant_id, program_id, callback=false) { }; }; -// TODO: Decide which functions to publish from @openfn/language-common export { dataPath, dataValue, From e1cd62c97e019f5b1b05fe97836f5cf4eeb9db2d Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Sat, 4 Nov 2023 13:05:11 +0700 Subject: [PATCH 06/15] [UPD] update manifest + icons --- packages/openspp/assets/rectangle.png | Bin 27264 -> 17277 bytes packages/openspp/assets/square.png | Bin 17857 -> 3968 bytes packages/openspp/package.json | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/openspp/assets/rectangle.png b/packages/openspp/assets/rectangle.png index 5fb8b66e05d1112192bd22b240e6e5ac68b78c82..5c3b84f068580c9db61febf9ae27ddfdf69908cf 100644 GIT binary patch literal 17277 zcmaI8WmKF?&^3x%aCdhJ&fxBv5Ht|nWpH;1?(PJK;O_1kTnG2y5ZvzMocBH7x7NMu z{sGn+dY*o|tEy}7+STEolx0wm2$3KlAW-CFB~>9Hpa9^%-4WoxKT%ufgu%Zcom6GS zA*!Z`k0Bt)A><^*)ZF#Xd=TA<78>6#qOwpBbSwg7YKGz&Iz%Z_610@v<3t%0EXk(p zI+{eoOreXWzc1Z(YHlT;H<&U|4>)2T!O7{|iGO{gX&6WdVu96zRx)0pN)(sq$3zH* zv7CA*S}AU#vOL%z7)@|Ge17<`z;~E))4r6EdoFZOES@a#0rysELs`e%f^dQTlZ+@y zkh%ZEtHCN>un#2iOJ?Q!fm`n%Tm%78_wgq?xNa#?GH4&kuhocu9%WBX^mv|&7(-=R ztI z`B|Iv?YqCYD8-L|26u@4U>s4ZX>HGGoJfZehK+)SK>b7O&CY~eL6`4>d~-kAR4g;t zklgU!2yCc*(H};mlU~6?dz@mt^~45Y(Y-=2f>xNM>XI_Zd^DB+%}SN>lfxeEGG;qO z#W&>3l_F%2&Kd~XAlYmYwBG1FMQdlvWQ_#*-)zFjKVj^dz3r3~pU+!;gxoe_Bb0(F z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%K z@Er(ueU5mBgSth7j|Va_!>9_pQ(r(N{z4{hBvkc)IfSH34imgL4~ZW|gx5oyQ@#BVcIs&Cd3XgSMD4x4fdKq( z7lK>4&Z$tAaDahb3f>zV0PUuRgrh?L^#Gs-tmF17)UX3=a6?6SZz&8W1VCVL*uUUP zL?wdQw*$3lI8=vntvej(o&GNrz@`Y@7tl9g5J{0gA3?n%gVe+SbpPO!I$FKr zz8C@M2?k$bg0j)Wd$*9N6mUh;LyuDb{xYr9ZY~lozJ|naA@j%~Yal%-`8WJjU+BQ4 zDG|s&q<9W8PiyY`fANF;hI!N?#s=+0gJTD=9W?d|r3`bN+fN1}N#+gM#3%SZU2<~nF(m4l8urdryFaZXZfnCTB$bfE zk`5fqe|8F!od0&WVOmu5I_A$d%JC=7NxT>d97O`fG|>Ki@hlJ-#>5zzEbb3a)zhEN zt=6=S&zamR@LyAE3wm7`Uov=iCN#o%&5g2oY%ep;)b8GhK(tyl!2~)hozeAe0%r@kuaKrYyU=elaNHbZ1am@N;hE zrcUkH84ZO4Lj1Jp9ghH)M&|ohzcvN~^7wbt_9c>C#$^frUOA+^+H+$0Ec)0DcNN^@zks=DVnwNET1SxT3W8QWjDZv0&1oFUD$6xXVb=vIDk&0SSA z+bJ*Vd1HK9u*w)!^<`WcBNQA|oJ;J_%uUMa`FU{WboJsjC#N{COZ_v%*}f#c$iJIh z8N!KkcZJqgEiBLAT}=ep`r<@5XQS|5Fn4yC?C;0vzaQE!Zx+GC-d-6NEw-3=xH|dG zuX|6as)GB~=hA;YHH@4&mF=_bCdJ>P{`N%p|2LW`8za#txl2gY(j>D0;GedpzDAXr HUD*Et2m7Ah diff --git a/packages/openspp/assets/square.png b/packages/openspp/assets/square.png index 60f00c1f3ee3fd7fd3ee1abf91fb192bb6fe4081..1d798d7c3d3ec1b6486a8c536e7d60572505bc25 100644 GIT binary patch literal 3968 zcmbW4_dC^(`^R4g$2mF1K{l!EV@n+S&_P)pqwMTW$leEa#M_=3WgemEi0mzUgp_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(jPhH!dc!^SM|;jsX4jL;`^i9Ia6UlW?wIHCiEVFZqj zAhptf85$N+&~2|@lo+@P0tiAdFDNk$?h=Bi#sPr7J$4z!WqEnj6iX)@BKQc`=?%8; zpb!CwmIwwiM;74#>y8&Aa7cPF?IoZ5+pz={SWyeBUW$tGZ|`4v0+^AAgf%chf%2$N zcVKJOl)~zANN{m52`IKbj2BK#LFonqamgXMN$kiWB}52BzYO+MB+{K8{WLL94|+Rx zXzW9Y!V>0*Q7%v~aU^D`oDifu4ld~-Luq0fL#&^URpjAD$8E-=dyl)EC{1AZjW=bcyCG;+gH6DP7pcd>YZGRtyX%}K+ zZ#bmMX%QFP@CW{l&bmWdhd43H`*7ZK%)%`6LfFLGr1OL+LAA3-J-*$Fp9mSN-WO&r$n=%tMYp>sMOF z1Hkn^^uIZ2TtwCq@BBEa1>|9CtzsSzkhy&p05f2(v86Kt{=W>~|IgWc-Ir^I58Woj UcOzDKFhBq`C2hqDc~tcO10X7)h5!Hn diff --git a/packages/openspp/package.json b/packages/openspp/package.json index 0a1916d12..d6a54bb0e 100644 --- a/packages/openspp/package.json +++ b/packages/openspp/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openspp", "version": "1.0.0", - "description": "The standard openspp for building OpenFn adaptors", + "description": "An OpenFn adaptor for working with the OpenSPP json rpc", "type": "module", "exports": { ".": { From 6473a58875c3b223d0f5a59dfaaa32f7291239f8 Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Sun, 5 Nov 2023 00:41:43 +0700 Subject: [PATCH 07/15] [UPD] change function name, return state in every situation, remove Date in logs, fix README file --- packages/openspp/README.md | 6 +-- packages/openspp/src/Adaptor.js | 84 ++++++++++++++++++++------------- 2 files changed, 55 insertions(+), 35 deletions(-) diff --git a/packages/openspp/README.md b/packages/openspp/README.md index 325b655ea..fe74a7ff1 100644 --- a/packages/openspp/README.md +++ b/packages/openspp/README.md @@ -1,17 +1,17 @@ -# language-template +# language-openspp An OpenFn **_adaptor_** for building integration jobs for use with the \_\_\_\_ API. ## Documentation -View the [docs site](https://docs.openfn.org/adaptors/packages/template-docs) +View the [docs site](https://docs.openfn.org/adaptors/packages/openspp-docs) for full technical documentation. ### Configuration View the -[configuration-schema](https://docs.openfn.org/adaptors/packages/template-configuration-schema/) +[configuration-schema](https://docs.openfn.org/adaptors/packages/openspp-configuration-schema/) for required and optional `configuration` properties. ### A example expression using the `create` function diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index 01e046dea..d439f07d8 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -7,7 +7,7 @@ import { import pkg from "odoo-await"; const { Odoo } = pkg; -var sppConnector = null; +let sppConnector; /** @@ -23,8 +23,6 @@ var sppConnector = null; * @returns {Operation} */ export function execute(...operations) { - sppConnector = null; - const initialState = { references: [], data: null, @@ -54,7 +52,7 @@ async function login(state) { try { await sppConnector.connect(); } catch (err) { - console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); throw new Error("Can't login to OpenSPP, please check your credentials or network!"); } return state; @@ -63,12 +61,12 @@ async function login(state) { /** * Create a brand new program membership for registrant. * @example - * creatingEnrolledRegistrantToProgram("IND_Q4VGGZPF", "PROG_2023_00000001") + * createProgramMembership("IND_Q4VGGZPF", "PROG_2023_00000001") * @private * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll * @param {string} program_id - program_id of program */ -async function creatingEnrolledRegistrantToProgram(registrant_id, program_id) { +async function createProgramMembership(registrant_id, program_id) { try { let registrant = await sppConnector.searchRead( "res.partner", @@ -99,7 +97,7 @@ async function creatingEnrolledRegistrantToProgram(registrant_id, program_id) { } ); } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); } }; @@ -131,7 +129,8 @@ export function getGroup(registrant_id, callback=false) { { limit: 1, order: "id desc" }, ); if (group.length === 0) { - return console.log(`✗ Error at ${new Date()}:\n∟Group ${registrant_id} not found!`); + console.log(`✗ Error: Group ${registrant_id} not found!`); + return state; } console.log(`ℹ Group ${registrant_id} found!`); let nextState = composeNextState(state, group[0]); @@ -141,7 +140,8 @@ export function getGroup(registrant_id, callback=false) { return nextState; } } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } }; }; @@ -175,7 +175,8 @@ export function getIndividual(registrant_id, callback=false) { { limit: 1, order: "id desc" }, ); if (individual.length === 0) { - return console.log(`✗ Error at ${new Date()}:\n∟Individual with id=${registrant_id} not found!`); + console.log(`✗ Error: Individual with id=${registrant_id} not found!`); + return state; } console.log(`ℹ Individual with id=${registrant_id} found!`); let nextState = composeNextState(state, individual[0]); @@ -185,7 +186,8 @@ export function getIndividual(registrant_id, callback=false) { return nextState; } } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } }; }; @@ -213,7 +215,8 @@ export function getGroupMembers(registrant_id, offset=0, callback=false) { ] ); if (group_id.length === 0) { - return console.log(`✗ Error at ${new Date()}:\n∟Group id=${registrant_id} not found!`); + console.log(`✗ Error: Group id=${registrant_id} not found!`); + return state; } let defaultDomain = [ ["is_ended", "=", false], @@ -237,7 +240,8 @@ export function getGroupMembers(registrant_id, offset=0, callback=false) { options, ); if (!members) { - return console.log(`⚠ Warning at ${new Date()}:\n∟Household ${registrant_id} not having members!`) + console.log(`⚠ Warning: Household ${registrant_id} not having members!`) + return state; } console.log(`ℹ Household ${registrant_id} members found!`); let nextState = composeNextState(state, members); @@ -245,7 +249,8 @@ export function getGroupMembers(registrant_id, offset=0, callback=false) { return callback(nextState); } } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } } }; @@ -283,7 +288,8 @@ export function getServicePoint(name, offset=0, callback=false) { options, ); if (agents.length === 0) { - return console.log(`⚠ Warning at ${new Date()}:\n∟Agent ${name} not found!`); + console.log(`⚠ Warning: Agent ${name} not found!`); + return state; } console.log(`ℹ Agent ${name} found!`); let nextState = composeNextState(state, agents); @@ -291,7 +297,8 @@ export function getServicePoint(name, offset=0, callback=false) { return callback(nextState); } } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } } }; @@ -339,7 +346,8 @@ export function searchGroup(domain, offset=0, callback=false) { options, ); if (groups.length === 0) { - return console.log(`⚠ Warning at ${new Date()}:\n∟Group with domain=${domain} not found!`); + console.log(`⚠ Warning: Group with domain=${domain} not found!`); + return state; } console.log(`ℹ Group with domain=${domain} found!`); let nextState = composeNextState(state, groups); @@ -348,7 +356,8 @@ export function searchGroup(domain, offset=0, callback=false) { } return nextState; } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } } } @@ -396,7 +405,8 @@ export function searchIndividual(domain, offset=0, callback=false) { options, ); if (individuals.length === 0) { - return console.log(`⚠ Warning at ${new Date()}:\n∟Individual with domain=${domain} not found!`); + console.log(`⚠ Warning: Individual with domain=${domain} not found!`); + return state; } console.log(`ℹ Individual with domain=${domain} found!`); let nextState = composeNextState(state, individuals); @@ -405,7 +415,8 @@ export function searchIndividual(domain, offset=0, callback=false) { } return nextState; } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } } } @@ -436,7 +447,8 @@ export function getProgram(program_id, callback=false) { options, ); if (program.length === 0) { - return console.log(`⚠ Warning at ${new Date()}:\n∟Program ${program_id} not found!`); + console.log(`⚠ Warning: Program ${program_id} not found!`); + return state; } console.log(`ℹ Program ${program_id} found!`); let nextState = composeNextState(state, program[0]); @@ -445,7 +457,8 @@ export function getProgram(program_id, callback=false) { } return nextState; } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } } } @@ -478,7 +491,8 @@ export function getPrograms(offset=0, callback=false) { options, ); if (programs.length === 0) { - return console.log(`⚠ Warning at ${new Date()}:\n∟No program found!`); + console.log(`⚠ Warning: No program found!`); + return state; } console.log(`ℹ Program(s) found!`); let nextState = composeNextState(state, programs); @@ -487,7 +501,8 @@ export function getPrograms(offset=0, callback=false) { } return nextState; } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } }; }; @@ -513,7 +528,8 @@ export function getEnrolledPrograms(registrant_id, callback=false) { defaultFields, ); if (program_ids.length === 0) { - return console.log(`⚠ Warning at ${new Date()}:\n∟No enrolled program(s) found!`); + console.log(`⚠ Warning: No enrolled program(s) found!`); + return state; } console.log(`ℹ Enrolled program(s) found!`); program_ids = program_ids.map(i => i.program_id[0]); @@ -529,7 +545,8 @@ export function getEnrolledPrograms(registrant_id, callback=false) { } return nextState; } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } }; }; @@ -567,13 +584,14 @@ export function enroll(registrant_id, program_id, callback=false) { { state: "enrolled" }, ); } - return console.log(`ℹ Registrant ${registrant_id} enrolled into Program ${program_id}`); + console.log(`ℹ Registrant ${registrant_id} enrolled into Program ${program_id}`); } else { - console.log(`ℹ Please wait for creating program membership!`); - return await creatingEnrolledRegistrantToProgram(registrant_id, program_id); + await createProgramMembership(registrant_id, program_id); } } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + } finally { + return state; } }; }; @@ -610,9 +628,11 @@ export function unenroll(registrant_id, program_id, callback=false) { { state: "not_eligible" }, ); } - return console.log(`ℹ Registrant ${registrant_id} not enroll into Program ${program_id}`); + console.log(`ℹ Registrant ${registrant_id} not enroll into Program ${program_id}`); + return state; } catch (err) { - return console.log(`✗ Error at ${new Date()}:\n∟${err}`); + console.log(`✗ Error: ${err}`); + return state; } }; }; From 02fe513aebf7c0736869341ea5881ab12248865b Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Tue, 7 Nov 2023 02:34:22 +0700 Subject: [PATCH 08/15] [UPD] small changes --- packages/openspp/README.md | 8 ++++---- packages/openspp/src/Adaptor.js | 6 +++--- packages/openspp/test/Adaptor.test.js | 19 +++++++++++++------ 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/packages/openspp/README.md b/packages/openspp/README.md index fe74a7ff1..1a5419834 100644 --- a/packages/openspp/README.md +++ b/packages/openspp/README.md @@ -1,6 +1,6 @@ -# language-openspp +# language-openspp -An OpenFn **_adaptor_** for building integration jobs for use with the \_\_\_\_ +An OpenFn **_adaptor_** for building integration jobs for use with OpenSPP API. ## Documentation @@ -14,10 +14,10 @@ View the [configuration-schema](https://docs.openfn.org/adaptors/packages/openspp-configuration-schema/) for required and optional `configuration` properties. -### A example expression using the `create` function +### A example expression using the `getServicePoint` function ```js -create('patient', { name: 'Bukayo' }); +getServicePoint("newagentflour"); ``` ## Development diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index d439f07d8..04f192951 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -5,7 +5,7 @@ import { } from "@openfn/language-common"; import pkg from "odoo-await"; -const { Odoo } = pkg; +const Odoo = pkg; let sppConnector; @@ -44,7 +44,7 @@ export function execute(...operations) { async function login(state) { const {baseUrl, username, password, database} = state.configuration; sppConnector = new Odoo({ - host: baseUrl, + baseUrl: baseUrl, db: database, username: username, password: password @@ -53,7 +53,7 @@ async function login(state) { await sppConnector.connect(); } catch (err) { console.log(`✗ Error: ${err}`); - throw new Error("Can't login to OpenSPP, please check your credentials or network!"); + sppConnector = null; } return state; } diff --git a/packages/openspp/test/Adaptor.test.js b/packages/openspp/test/Adaptor.test.js index fd4226614..3246db3ef 100644 --- a/packages/openspp/test/Adaptor.test.js +++ b/packages/openspp/test/Adaptor.test.js @@ -1,9 +1,16 @@ -import { expect } from 'chai'; -import { execute } from '../src/Adaptor.js'; +import { expect } from "chai"; +import { execute } from "../src/Adaptor.js"; -describe('execute', () => { - it('executes each operation in sequence', done => { - const state = {}; +describe("execute", () => { + it("executes each operation in sequence", done => { + const state = { + configuration: { + username: "admin", + password: "935j-jv38-yeu9", + baseUrl: "https://dev.newlogic-demo.com/", + database: "devel", + }, + };; const operations = [ state => { return { counter: 1 }; @@ -24,7 +31,7 @@ describe('execute', () => { .catch(done); }); - it('assigns references, data to the initialState', () => { + it("assigns references, data to the initialState", () => { const state = {}; execute()(state).then(finalState => { From 44ceb1ad114244c93e98818124aa7b10e10b143c Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Tue, 7 Nov 2023 09:07:02 +0700 Subject: [PATCH 09/15] [UPD] small changes --- packages/openspp/ast.json | 604 +++++++++++++++++++++++++++++++- packages/openspp/src/Adaptor.js | 2 +- pnpm-lock.yaml | 58 +++ 3 files changed, 653 insertions(+), 11 deletions(-) diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json index 17a54dc0e..cab24e4d8 100644 --- a/packages/openspp/ast.json +++ b/packages/openspp/ast.json @@ -1,14 +1,13 @@ { "operations": [ { - "name": "create", + "name": "getGroup", "params": [ - "resource", - "data", + "registrant_id", "callback" ], "docs": { - "description": "Create some resource in some system", + "description": "get group information from OpenSPP", "tags": [ { "title": "public", @@ -17,7 +16,7 @@ }, { "title": "example", - "description": "create(\"patient\", {\"name\": \"Bukayo\"})" + "description": "getGroup(\"GRP_Q4VGGZPF\")" }, { "title": "function", @@ -26,21 +25,496 @@ }, { "title": "param", - "description": "The type of entity that will be created", + "description": "The registrant_id of the group", "type": { "type": "NameExpression", "name": "string" }, - "name": "resource" + "name": "registrant_id" }, { "title": "param", - "description": "The data to create the new resource", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "getIndividual", + "params": [ + "registrant_id", + "callback" + ], + "docs": { + "description": "get individual information from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "getIndividual(\"IND_Q4VGGZPF\")" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "The registrant_id of the individual", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "registrant_id" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "getGroupMembers", + "params": [ + "registrant_id", + "offset", + "callback" + ], + "docs": { + "description": "get group members information from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "getGroupMembers(\"GRP_Q4VGGZPF\")" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "The name of the group", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "registrant_id" + }, + { + "title": "param", + "description": "Offset searching", + "type": { + "type": "OptionalType", + "expression": { + "type": "NameExpression", + "name": "number" + } + }, + "name": "offset", + "default": "0" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "getServicePoint", + "params": [ + "name", + "offset", + "callback" + ], + "docs": { + "description": "get service points information from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "getServicePoint(\"000117\")" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "The number of the agent", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "name" + }, + { + "title": "param", + "description": "Offset searching", + "type": { + "type": "OptionalType", + "expression": { + "type": "NameExpression", + "name": "number" + } + }, + "name": "offset", + "default": "0" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "searchGroup", + "params": [ + "domain", + "offset", + "callback" + ], + "docs": { + "description": "get groups from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "searchGroup([[\"registrant_id\", \"=\", \"GRP_Q4VGGZPF\"]])" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "searching domain", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "domain" + }, + { + "title": "param", + "description": "Offset searching", + "type": { + "type": "OptionalType", + "expression": { + "type": "NameExpression", + "name": "number" + } + }, + "name": "offset", + "default": "0" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "searchIndividual", + "params": [ + "domain", + "offset", + "callback" + ], + "docs": { + "description": "get individuals from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "searchIndividual([[\"registrant_id\", \"=\", \"IND_Q4VGGZPF\"]])" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "searching domain", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "domain" + }, + { + "title": "param", + "description": "Offset searching", + "type": { + "type": "OptionalType", + "expression": { + "type": "NameExpression", + "name": "number" + } + }, + "name": "offset", + "default": "0" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "getProgram", + "params": [ + "program_id", + "callback" + ], + "docs": { + "description": "get program information from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "getProgram(\"PROG_2023_00000001\")" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "searching domain", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "program_id" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "getPrograms", + "params": [ + "offset", + "callback" + ], + "docs": { + "description": "get programs list from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "getPrograms(100)" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "offset from start", + "type": { + "type": "OptionalType", + "expression": { + "type": "NameExpression", + "name": "number" + } + }, + "name": "offset", + "default": "0" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, + { + "name": "getEnrolledPrograms", + "params": [ + "registrant_id", + "callback" + ], + "docs": { + "description": "get programs list from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "getEnrolledPrograms(\"IND_Q4VGGZPF\")" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "registrant_id of group / individual wanted to search", "type": { "type": "NameExpression", - "name": "object" + "name": "string" }, - "name": "data" + "name": "registrant_id" }, { "title": "param", @@ -62,6 +536,116 @@ ] }, "valid": true + }, + { + "name": "enroll", + "params": [ + "registrant_id", + "program_id", + "callback" + ], + "docs": { + "description": "enroll registrant to program from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "enroll(\"IND_Q4VGGZPF\", \"PROG_2023_00000001\")" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "registrant_id of group / individual wanted to enroll", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "registrant_id" + }, + { + "title": "param", + "description": "program_id of program", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "program_id" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + } + ] + }, + "valid": true + }, + { + "name": "unenroll", + "params": [ + "registrant_id", + "program_id", + "callback" + ], + "docs": { + "description": "unenroll registrant from program from OpenSPP", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "unenroll(\"IND_Q4VGGZPF\", \"PROG_2023_00000001\")" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "registrant_id of group / individual wanted to unenroll", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "registrant_id" + }, + { + "title": "param", + "description": "program_id of program", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "program_id" + }, + { + "title": "param", + "description": "An optional callback function", + "type": { + "type": "NameExpression", + "name": "function" + }, + "name": "callback" + } + ] + }, + "valid": true } ], "exports": [], diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index 04f192951..f6dc361b9 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -7,7 +7,7 @@ import { import pkg from "odoo-await"; const Odoo = pkg; -let sppConnector; +let sppConnector = null; /** diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dbf61d7a2..2f49d8105 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1409,6 +1409,43 @@ importers: specifier: ^1.17.2 version: 1.17.7 + packages/openspp: + dependencies: + '@openfn/language-common': + specifier: ^1.8.1 + version: link:../common + odoo-await: + specifier: ^3.4.1 + version: 3.4.1 + devDependencies: + '@openfn/buildtools': + specifier: workspace:^1.0.2 + version: link:../../tools/build + '@openfn/simple-ast': + specifier: 0.4.1 + version: 0.4.1 + assertion-error: + specifier: 2.0.0 + version: 2.0.0 + chai: + specifier: 4.3.6 + version: 4.3.6 + deep-eql: + specifier: 4.1.1 + version: 4.1.1 + esno: + specifier: ^0.16.3 + version: 0.16.3 + mocha: + specifier: 9.2.2 + version: 9.2.2 + rimraf: + specifier: 3.0.2 + version: 3.0.2 + undici: + specifier: ^5.22.1 + version: 5.24.0 + packages/postgresql: dependencies: '@openfn/language-common': @@ -9505,6 +9542,14 @@ packages: es-abstract: 1.22.2 dev: true + /odoo-await@3.4.1: + resolution: {integrity: sha512-9IYiqyuakuebrXSPKo2JWcBgufucQTJ87WNMFsGSzuDOrBAPI4JG4IwEyiqY3jqEeJbLh4Ooy+qHh2pMOnz0Wg==} + engines: {node: '>=11.16'} + dependencies: + uuid: 8.3.2 + xmlrpc: 1.3.2 + dev: false + /once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} dependencies: @@ -12389,6 +12434,11 @@ packages: engines: {node: '>=6.0'} dev: false + /xmlbuilder@8.2.2: + resolution: {integrity: sha512-eKRAFz04jghooy8muekqzo8uCSVNeyRedbuJrp0fovbLIi7wlsYtdUn3vBAAPq2Y3/0xMz2WMEUQ8yhVVO9Stw==} + engines: {node: '>=4.0'} + dev: false + /xmlcreate@1.0.2: resolution: {integrity: sha512-Mbe56Dvj00onbnSo9J0qj/XlY5bfN9KidsOnpd5tRCsR3ekB3hyyNU9fGrTdqNT5ZNvv4BsA2TcQlignsZyVcw==} dev: false @@ -12397,6 +12447,14 @@ packages: resolution: {integrity: sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==} dev: false + /xmlrpc@1.3.2: + resolution: {integrity: sha512-jQf5gbrP6wvzN71fgkcPPkF4bF/Wyovd7Xdff8d6/ihxYmgETQYSuTc+Hl+tsh/jmgPLro/Aro48LMFlIyEKKQ==} + engines: {node: '>=0.8', npm: '>=1.0.0'} + dependencies: + sax: 1.2.4 + xmlbuilder: 8.2.2 + dev: false + /xtend@4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'} From 19fe85cd8f01c23a36cf3a9ab99b67a2217dfab6 Mon Sep 17 00:00:00 2001 From: nhatnm0612 Date: Tue, 7 Nov 2023 12:28:15 +0700 Subject: [PATCH 10/15] [UPD] add test cases --- packages/openspp/assets/rectangle.png | Bin 17277 -> 8609 bytes packages/openspp/src/Adaptor.js | 2 ++ packages/openspp/test/Adaptor.test.js | 48 ++++++++++++++++++-------- packages/openspp/test/job.example.js | 6 ++++ 4 files changed, 42 insertions(+), 14 deletions(-) create mode 100644 packages/openspp/test/job.example.js diff --git a/packages/openspp/assets/rectangle.png b/packages/openspp/assets/rectangle.png index 5c3b84f068580c9db61febf9ae27ddfdf69908cf..e795094092fc2d4174473bf1d0c557204a1dd3df 100644 GIT binary patch literal 8609 zcmds7^;Z<$(_WB9rKLlWaA^<}q(l%_y1PWAON6DCMg#3#Wp|BQEjxaXdUXJ+oXzsz|iLPJgQ5eWkc004LdQj*sK0C4ZGfDR&p`|}-F;~W6+ z)D|TFR>y1UAj4b>_93}5O=q&In9?s{fxPub<KfNHCNY^F# z#1Ps`ab1!*$xk(0IgiE!cbgxqKBRkWd-Uo04+`^zlcRXnJ?8?e)qI(UA?DH-e zHEgp>*Lw1qFENs_ae@qVl~NORZ_@yD<3kOuUhUdUX^=yUtogI74c9Ww-1CO|Y;Kz) zf?Z2laDwr1008`Kg;Mj-HoQ%#e7RQ|<6}I~lxVi~)V=i)ZR<8`6NwJqb8sjAU%dY+ zSq;V39;?Ntvxx>Md-2`w6IacX$Yvj@>v&aMd2TQ?x^8&0*66qeQ{E%`76b5z z0w@wFRRds{$3)*PWr^<}@>Uyw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xa8!Mx?kN!ToQp4^M+%Exnl`GRc&Hc$N zi2Lb>c3Hev{s56ZWB%muN|Lf&nu(V$->-trCnI7bl&29!swKJbP0|^67gV5lUWM#8+5pAxgK3s z9~uKD&Tpv}b{%sH?PK7CLlkUo+_{W|e+~NuAt@S!{2lk-et3k-mHiK?O^`20&}#@C zXg`#oAJCU%OsAkn0*^H2%s1K$EfcqOmE_K&!P`_1m}-mA20PUyW&pTIOK}*)QY&R( zjTaho!|@}cUh09t+S&SgYN#sWMu|@?9z5bp{9JyPD%f6sA_TBg0dS>n@I<&>N)GA~ zVis}?vT&*ko_iXYXN2!-8NZ^9Eg*@4XNr^tvmXdjgamHPV_sl*~(b?{>tF#{sV0sZk{?&2eaHC`%!ZuksT zEb`*vEZ%TAJ&a71zTJcD-5{2hTKbJb6#c6;zXP7O^aZzL3#?3 z=qaGxo>A44sqSb=mMM}3&rFr7;`DDc+9e5ypaD?1I)#LxK47!qLh#x%(}o1xN;bq8 zzUg6P)TRY=8Y@Zx?_xYOKL72DFOmRX$S`?%`TxGlVaxFU^Dc)Tbf^eWY2&}wIe;iW zx$K!axBUO#F5&cUs}Ae?p=a&?S@ZvMf6bfYFF0tL?G&FiE$Q>!kfNWR`n#ILGqqWc p01E&&8RMl3!RI-&DS!CSC@H4P==tFBLg0BC44$rjF6*2UngA#xnN0uy diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index f6dc361b9..906b9a038 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -248,6 +248,7 @@ export function getGroupMembers(registrant_id, offset=0, callback=false) { if (callback) { return callback(nextState); } + return nextState; } catch (err) { console.log(`✗ Error: ${err}`); return state; @@ -296,6 +297,7 @@ export function getServicePoint(name, offset=0, callback=false) { if (callback) { return callback(nextState); } + return nextState; } catch (err) { console.log(`✗ Error: ${err}`); return state; diff --git a/packages/openspp/test/Adaptor.test.js b/packages/openspp/test/Adaptor.test.js index 3246db3ef..168d14e7b 100644 --- a/packages/openspp/test/Adaptor.test.js +++ b/packages/openspp/test/Adaptor.test.js @@ -1,16 +1,23 @@ import { expect } from "chai"; -import { execute } from "../src/Adaptor.js"; +import { + execute, + getServicePoint, + searchGroup, + searchIndividual, +} from "../src/Adaptor.js"; + +const state = { + configuration: { + username: "admin", + password: "admin", + baseUrl: "https://demo.openspp.org/", + database: "openspp_adaptor", + }, + references: [], +}; describe("execute", () => { it("executes each operation in sequence", done => { - const state = { - configuration: { - username: "admin", - password: "935j-jv38-yeu9", - baseUrl: "https://dev.newlogic-demo.com/", - database: "devel", - }, - };; const operations = [ state => { return { counter: 1 }; @@ -30,12 +37,25 @@ describe("execute", () => { .then(done) .catch(done); }); +}); + +describe("getServicePoint", () => { + it("get non-existing service point from demo server", async () => { + let finalState = await getServicePoint("n0n-3x15t1n6-53rv1c3-p01nt")(state); + expect(finalState.data).to.be.undefined; + }); +}); - it("assigns references, data to the initialState", () => { - const state = {}; +describe("searchGroup", () => { + it("search non-existing group from demo server", async () => { + let finalState = await searchGroup([["id", "=", -1]])(state); + expect(finalState.data).to.be.undefined; + }); +}); - execute()(state).then(finalState => { - expect(finalState).to.eql({ references: [], data: null }); - }); +describe("searchIndividual", () => { + it("search non-existing individual from demo server", async () => { + let finalState = await searchIndividual([["id", "=", -1]])(state); + expect(finalState.data).to.be.undefined; }); }); diff --git a/packages/openspp/test/job.example.js b/packages/openspp/test/job.example.js new file mode 100644 index 000000000..a8f1a74db --- /dev/null +++ b/packages/openspp/test/job.example.js @@ -0,0 +1,6 @@ +getServicePoint("Agent 1"); +searchGroup([["name", "ilike", "test group"]]); +searchIndividual([["name", "ilike", "butt"]]); +getGroup("GRP_7NAAH42X"); +getIndividual("IND_EJFW8GUQ"); +getProgram("PROG_2023_00000128"); From 7a685ba9061f61286c2a70fb10ff014bd2cb3cf6 Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Thu, 9 Nov 2023 09:30:20 +0000 Subject: [PATCH 11/15] openspp: soft tweaks --- packages/openspp/test/Adaptor.test.js | 86 ++++++++++++++------------- packages/openspp/test/job.example.js | 12 ++-- 2 files changed, 52 insertions(+), 46 deletions(-) diff --git a/packages/openspp/test/Adaptor.test.js b/packages/openspp/test/Adaptor.test.js index 168d14e7b..f146f65ea 100644 --- a/packages/openspp/test/Adaptor.test.js +++ b/packages/openspp/test/Adaptor.test.js @@ -1,61 +1,67 @@ -import { expect } from "chai"; +import { expect } from 'chai'; import { execute, getServicePoint, searchGroup, searchIndividual, -} from "../src/Adaptor.js"; +} from '../src/Adaptor.js'; const state = { configuration: { - username: "admin", - password: "admin", - baseUrl: "https://demo.openspp.org/", - database: "openspp_adaptor", + username: 'admin', + password: 'admin', + baseUrl: 'https://demo.openspp.org/', + database: 'openspp_adaptor', }, references: [], }; -describe("execute", () => { - it("executes each operation in sequence", done => { - const operations = [ - state => { - return { counter: 1 }; - }, - state => { - return { counter: 2 }; - }, - state => { - return { counter: 3 }; - }, - ]; +// Unit tests are disabled here because they run against a live sandbox +// They should be re-enabled for local dev when this adaptor is next touched +describe.skip('openspp', () => { + describe('execute', () => { + it('executes each operation in sequence', done => { + const operations = [ + state => { + return { counter: 1 }; + }, + state => { + return { counter: 2 }; + }, + state => { + return { counter: 3 }; + }, + ]; - execute(...operations)(state) - .then(finalState => { - expect(finalState).to.eql({ counter: 3 }); - }) - .then(done) - .catch(done); + execute(...operations)(state) + .then(finalState => { + expect(finalState).to.eql({ counter: 3 }); + }) + .then(done) + .catch(done); + }); }); -}); -describe("getServicePoint", () => { - it("get non-existing service point from demo server", async () => { - let finalState = await getServicePoint("n0n-3x15t1n6-53rv1c3-p01nt")(state); - expect(finalState.data).to.be.undefined; + describe('getServicePoint', () => { + it('get non-existing service point from demo server', async () => { + let finalState = await getServicePoint('n0n-3x15t1n6-53rv1c3-p01nt')( + state + ); + expect(finalState.data).to.be.undefined; + }); }); -}); -describe("searchGroup", () => { - it("search non-existing group from demo server", async () => { - let finalState = await searchGroup([["id", "=", -1]])(state); - expect(finalState.data).to.be.undefined; + describe('searchGroup', () => { + it('search non-existing group from demo server', async () => { + let finalState = await searchGroup([['id', '=', -1]])(state); + expect(finalState.data).to.be.undefined; + }); }); -}); -describe("searchIndividual", () => { - it("search non-existing individual from demo server", async () => { - let finalState = await searchIndividual([["id", "=", -1]])(state); - expect(finalState.data).to.be.undefined; + describe('searchIndividual', () => { + it('search non-existing individual from demo server', async () => { + let finalState = await searchIndividual([['id', '=', -1]])(state); + expect(finalState.data).to.be.undefined; + }); }); }); diff --git a/packages/openspp/test/job.example.js b/packages/openspp/test/job.example.js index a8f1a74db..cfc3046b2 100644 --- a/packages/openspp/test/job.example.js +++ b/packages/openspp/test/job.example.js @@ -1,6 +1,6 @@ -getServicePoint("Agent 1"); -searchGroup([["name", "ilike", "test group"]]); -searchIndividual([["name", "ilike", "butt"]]); -getGroup("GRP_7NAAH42X"); -getIndividual("IND_EJFW8GUQ"); -getProgram("PROG_2023_00000128"); +getServicePoint('Agent 1'); +searchGroup([['name', 'ilike', 'test group']]); +searchIndividual([['name', 'ilike', 'plants']]); +getGroup('GRP_7NAAH42X'); +getIndividual('IND_EJFW8GUQ'); +getProgram('PROG_2023_00000128'); From 2d372ddb708758dad745599c54768ad6000d0dca Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Thu, 9 Nov 2023 09:31:00 +0000 Subject: [PATCH 12/15] tweak changelog --- packages/openspp/CHANGELOG.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/openspp/CHANGELOG.md b/packages/openspp/CHANGELOG.md index 64f17efdb..481023bb6 100644 --- a/packages/openspp/CHANGELOG.md +++ b/packages/openspp/CHANGELOG.md @@ -2,6 +2,4 @@ ## 1.0.0 -### First Entry - - Create OpenSPP adaptor From a36b44cd8d3f35e7f5c46f2f234d95b70f3e29a0 Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Thu, 9 Nov 2023 09:56:11 +0000 Subject: [PATCH 13/15] openspp: format and lint --- packages/openspp/.eslintrc.json | 7 +- packages/openspp/src/Adaptor.js | 301 +++++++++++++++++--------------- 2 files changed, 166 insertions(+), 142 deletions(-) diff --git a/packages/openspp/.eslintrc.json b/packages/openspp/.eslintrc.json index f7a0ddac8..702aea997 100644 --- a/packages/openspp/.eslintrc.json +++ b/packages/openspp/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": "../../.eslintrc.json" -} \ No newline at end of file + "extends": "../../.eslintrc.json", + "rules": { + "no-param-reassign": 0 + } +} diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index 906b9a038..de5875d1e 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -1,15 +1,13 @@ import { execute as commonExecute, composeNextState, - expandReferences, -} from "@openfn/language-common"; +} from '@openfn/language-common'; -import pkg from "odoo-await"; +import pkg from 'odoo-await'; const Odoo = pkg; let sppConnector = null; - /** * Execute a sequence of operations. * Wraps `language-common/execute` to make working with this API easier. @@ -42,12 +40,12 @@ export function execute(...operations) { * @returns {State} */ async function login(state) { - const {baseUrl, username, password, database} = state.configuration; + const { baseUrl, username, password, database } = state.configuration; sppConnector = new Odoo({ baseUrl: baseUrl, db: database, username: username, - password: password + password: password, }); try { await sppConnector.connect(); @@ -63,43 +61,43 @@ async function login(state) { * @example * createProgramMembership("IND_Q4VGGZPF", "PROG_2023_00000001") * @private - * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll - * @param {string} program_id - program_id of program + * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll + * @param {string} program_id - program_id of program */ async function createProgramMembership(registrant_id, program_id) { try { let registrant = await sppConnector.searchRead( - "res.partner", - [["is_registrant", "=", true], ["registrant_id", "=", registrant_id]], - ["id"], - { limit: 1 }, + 'res.partner', + [ + ['is_registrant', '=', true], + ['registrant_id', '=', registrant_id], + ], + ['id'], + { limit: 1 } ); if (registrant.length === 0) { throw new Error(`Registrant ${registrant_id} not exists!`); } registrant = registrant[0].id; let program = await sppConnector.searchRead( - "g2p.program", - [["program_id", "=", program_id]], - ["id"], - { limit: 1 }, + 'g2p.program', + [['program_id', '=', program_id]], + ['id'], + { limit: 1 } ); if (program.length === 0) { throw new Error(`Program ${program_id} not exists!`); } program = program[0].id; - await sppConnector.create( - "g2p.program_membership", - { - program_id: program, - partner_id: registrant, - state: "enrolled", - } - ); + await sppConnector.create('g2p.program_membership', { + program_id: program, + partner_id: registrant, + state: 'enrolled', + }); } catch (err) { console.log(`✗ Error: ${err}`); } -}; +} /** * get group information from OpenSPP @@ -111,22 +109,27 @@ async function createProgramMembership(registrant_id, program_id) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function getGroup(registrant_id, callback=false) { +export function getGroup(registrant_id, callback = false) { return async state => { let defaultDomain = [ - ["is_registrant", "=", true], - ["is_group", "=", true], - ["registrant_id", "=", registrant_id] + ['is_registrant', '=', true], + ['is_group', '=', true], + ['registrant_id', '=', registrant_id], ]; let defaultFields = [ - "name", "address", "phone", "kind", "registration_date", "registrant_id" + 'name', + 'address', + 'phone', + 'kind', + 'registration_date', + 'registrant_id', ]; try { let group = await sppConnector.searchRead( - "res.partner", + 'res.partner', defaultDomain, defaultFields, - { limit: 1, order: "id desc" }, + { limit: 1, order: 'id desc' } ); if (group.length === 0) { console.log(`✗ Error: Group ${registrant_id} not found!`); @@ -144,7 +147,7 @@ export function getGroup(registrant_id, callback=false) { return state; } }; -}; +} /** * get individual information from OpenSPP @@ -156,23 +159,29 @@ export function getGroup(registrant_id, callback=false) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function getIndividual(registrant_id, callback=false) { +export function getIndividual(registrant_id, callback = false) { return async state => { let defaultDomain = [ - ["is_registrant", "=", true], - ["is_group", "=", false], - ["registrant_id", "=", registrant_id] + ['is_registrant', '=', true], + ['is_group', '=', false], + ['registrant_id', '=', registrant_id], ]; let defaultFields = [ - "name", "address", "phone", "registrant_id", - "gender", "email", "category_id", "birthdate", + 'name', + 'address', + 'phone', + 'registrant_id', + 'gender', + 'email', + 'category_id', + 'birthdate', ]; try { let individual = await sppConnector.searchRead( - "res.partner", + 'res.partner', defaultDomain, defaultFields, - { limit: 1, order: "id desc" }, + { limit: 1, order: 'id desc' } ); if (individual.length === 0) { console.log(`✗ Error: Individual with id=${registrant_id} not found!`); @@ -190,7 +199,7 @@ export function getIndividual(registrant_id, callback=false) { return state; } }; -}; +} /** * get group members information from OpenSPP @@ -203,44 +212,47 @@ export function getIndividual(registrant_id, callback=false) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function getGroupMembers(registrant_id, offset=0, callback=false) { +export function getGroupMembers(registrant_id, offset = 0, callback = false) { return async state => { try { - let group_id = await sppConnector.search( - "res.partner", - [ - ["is_group", "=", true], - ["is_registrant", "=", true], - ["registrant_id", "=", registrant_id], - ] - ); + let group_id = await sppConnector.search('res.partner', [ + ['is_group', '=', true], + ['is_registrant', '=', true], + ['registrant_id', '=', registrant_id], + ]); if (group_id.length === 0) { console.log(`✗ Error: Group id=${registrant_id} not found!`); return state; } let defaultDomain = [ - ["is_ended", "=", false], - ["group", "=", group_id[0]] + ['is_ended', '=', false], + ['group', '=', group_id[0]], ]; let defaultFields = [ - "individual", "kind", "start_date", "ended_date", - "individual_birthdate", "individual_gender" + 'individual', + 'kind', + 'start_date', + 'ended_date', + 'individual_birthdate', + 'individual_gender', ]; let options = { limit: 100, - order: "id desc" + order: 'id desc', }; if (offset > 0) { - options.offset = offset + options.offset = offset; } let members = await sppConnector.searchRead( - "g2p.group.membership", + 'g2p.group.membership', defaultDomain, defaultFields, - options, + options ); if (!members) { - console.log(`⚠ Warning: Household ${registrant_id} not having members!`) + console.log( + `⚠ Warning: Household ${registrant_id} not having members!` + ); return state; } console.log(`ℹ Household ${registrant_id} members found!`); @@ -253,8 +265,8 @@ export function getGroupMembers(registrant_id, offset=0, callback=false) { console.log(`✗ Error: ${err}`); return state; } - } -}; + }; +} /** * get service points information from OpenSPP @@ -267,26 +279,31 @@ export function getGroupMembers(registrant_id, offset=0, callback=false) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function getServicePoint(name, offset=0, callback=false) { +export function getServicePoint(name, offset = 0, callback = false) { return async state => { - let defaultDomain = [["name", "=", name]]; + let defaultDomain = [['name', '=', name]]; let defaultFields = [ - "name", "area_id", "service_type_ids", "phone_sanitized", - "shop_address", "is_contract_active", "is_disabled" + 'name', + 'area_id', + 'service_type_ids', + 'phone_sanitized', + 'shop_address', + 'is_contract_active', + 'is_disabled', ]; let options = { limit: 100, - order: "id desc", + order: 'id desc', }; if (offset > 0) { options.offset = offset; } try { let agents = await sppConnector.searchRead( - "spp.service.point", + 'spp.service.point', defaultDomain, defaultFields, - options, + options ); if (agents.length === 0) { console.log(`⚠ Warning: Agent ${name} not found!`); @@ -302,8 +319,8 @@ export function getServicePoint(name, offset=0, callback=false) { console.log(`✗ Error: ${err}`); return state; } - } -}; + }; +} /** * get groups from OpenSPP @@ -316,14 +333,14 @@ export function getServicePoint(name, offset=0, callback=false) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function searchGroup(domain, offset=0, callback=false) { +export function searchGroup(domain, offset = 0, callback = false) { return async state => { let defaultDomain = [ - ["is_registrant", "=", true], - ["is_group", "=", true], + ['is_registrant', '=', true], + ['is_group', '=', true], ]; - let defaultOrder = "id desc"; - let defaultFields = ["name", "registrant_id"]; + let defaultOrder = 'id desc'; + let defaultFields = ['name', 'registrant_id']; let isDomain = true; for (const element of domain) { if (!Array.isArray(element)) { @@ -342,10 +359,10 @@ export function searchGroup(domain, offset=0, callback=false) { }; try { let groups = await sppConnector.searchRead( - "res.partner", + 'res.partner', finalDomain, defaultFields, - options, + options ); if (groups.length === 0) { console.log(`⚠ Warning: Group with domain=${domain} not found!`); @@ -361,7 +378,7 @@ export function searchGroup(domain, offset=0, callback=false) { console.log(`✗ Error: ${err}`); return state; } - } + }; } /** @@ -375,14 +392,14 @@ export function searchGroup(domain, offset=0, callback=false) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function searchIndividual(domain, offset=0, callback=false) { +export function searchIndividual(domain, offset = 0, callback = false) { return async state => { let defaultDomain = [ - ["is_registrant", "=", true], - ["is_group", "=", false], + ['is_registrant', '=', true], + ['is_group', '=', false], ]; - let defaultOrder = "id desc"; - let defaultFields = ["name", "registrant_id"]; + let defaultOrder = 'id desc'; + let defaultFields = ['name', 'registrant_id']; let isDomain = true; for (const element of domain) { if (!Array.isArray(element)) { @@ -401,10 +418,10 @@ export function searchIndividual(domain, offset=0, callback=false) { }; try { let individuals = await sppConnector.searchRead( - "res.partner", + 'res.partner', finalDomain, defaultFields, - options, + options ); if (individuals.length === 0) { console.log(`⚠ Warning: Individual with domain=${domain} not found!`); @@ -420,7 +437,7 @@ export function searchIndividual(domain, offset=0, callback=false) { console.log(`✗ Error: ${err}`); return state; } - } + }; } /** @@ -433,20 +450,24 @@ export function searchIndividual(domain, offset=0, callback=false) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function getProgram(program_id, callback=false) { +export function getProgram(program_id, callback = false) { return async state => { - let defaultDomain = [["program_id", "=", program_id]]; + let defaultDomain = [['program_id', '=', program_id]]; let defaultFields = [ - "name", "program_id", "eligible_beneficiaries_count", - "cycles_count", "state", "target_type" + 'name', + 'program_id', + 'eligible_beneficiaries_count', + 'cycles_count', + 'state', + 'target_type', ]; let options = { limit: 1 }; try { let program = await sppConnector.searchRead( - "g2p.program", + 'g2p.program', defaultDomain, defaultFields, - options, + options ); if (program.length === 0) { console.log(`⚠ Warning: Program ${program_id} not found!`); @@ -462,7 +483,7 @@ export function getProgram(program_id, callback=false) { console.log(`✗ Error: ${err}`); return state; } - } + }; } /** @@ -475,11 +496,11 @@ export function getProgram(program_id, callback=false) { * @param {function} callback - An optional callback function * @returns {Operation} */ -export function getPrograms(offset=0, callback=false) { +export function getPrograms(offset = 0, callback = false) { return async state => { let defaultDomain = []; - let defaultFields = ["name", "program_id"]; - let defaultOrder = "id"; + let defaultFields = ['name', 'program_id']; + let defaultOrder = 'id'; let options = { limit: 100, offset: offset, @@ -487,10 +508,10 @@ export function getPrograms(offset=0, callback=false) { }; try { let programs = await sppConnector.searchRead( - "g2p.program", + 'g2p.program', defaultDomain, defaultFields, - options, + options ); if (programs.length === 0) { console.log(`⚠ Warning: No program found!`); @@ -507,7 +528,7 @@ export function getPrograms(offset=0, callback=false) { return state; } }; -}; +} /** * get programs list from OpenSPP @@ -515,19 +536,19 @@ export function getPrograms(offset=0, callback=false) { * @example * getEnrolledPrograms("IND_Q4VGGZPF") * @function - * @param {string} registrant_id - registrant_id of group / individual wanted to search + * @param {string} registrant_id - registrant_id of group / individual wanted to search * @param {function} callback - An optional callback function * @returns {Operation} */ -export function getEnrolledPrograms(registrant_id, callback=false) { +export function getEnrolledPrograms(registrant_id, callback = false) { return async state => { - let defaultDomain = [["partner_id.registrant_id", "=", registrant_id]]; - let defaultFields = ["program_id"]; + let defaultDomain = [['partner_id.registrant_id', '=', registrant_id]]; + let defaultFields = ['program_id']; try { let program_ids = await sppConnector.searchRead( - "g2p.program_membership", + 'g2p.program_membership', defaultDomain, - defaultFields, + defaultFields ); if (program_ids.length === 0) { console.log(`⚠ Warning: No enrolled program(s) found!`); @@ -536,8 +557,8 @@ export function getEnrolledPrograms(registrant_id, callback=false) { console.log(`ℹ Enrolled program(s) found!`); program_ids = program_ids.map(i => i.program_id[0]); let programs = await sppConnector.searchRead( - "g2p.program", - [["id", "in", program_ids]], + 'g2p.program', + [['id', 'in', program_ids]], defaultFields, { limit: program_ids.length } ); @@ -551,7 +572,7 @@ export function getEnrolledPrograms(registrant_id, callback=false) { return state; } }; -}; +} /** * enroll registrant to program from OpenSPP @@ -559,34 +580,34 @@ export function getEnrolledPrograms(registrant_id, callback=false) { * @example * enroll("IND_Q4VGGZPF", "PROG_2023_00000001") * @function - * @param {string} registrant_id - registrant_id of group / individual wanted to enroll - * @param {string} program_id - program_id of program + * @param {string} registrant_id - registrant_id of group / individual wanted to enroll + * @param {string} program_id - program_id of program * @param {function} callback - An optional callback function */ -export function enroll(registrant_id, program_id, callback=false) { +export function enroll(registrant_id, program_id) { return async state => { let domain = [ - ["partner_id.registrant_id", "=", registrant_id], - ["program_id.program_id", "=", program_id], + ['partner_id.registrant_id', '=', registrant_id], + ['program_id.program_id', '=', program_id], ]; - let fields = ["partner_id", "program_id", "state"]; + let fields = ['partner_id', 'program_id', 'state']; try { let programMember = await sppConnector.searchRead( - "g2p.program_membership", + 'g2p.program_membership', domain, fields, { limit: 1 } ); if (programMember.length > 0) { let membership = programMember[0]; - if (membership.state !== "enrolled") { - await sppConnector.update( - "g2p.program_membership", - membership.id, - { state: "enrolled" }, - ); + if (membership.state !== 'enrolled') { + await sppConnector.update('g2p.program_membership', membership.id, { + state: 'enrolled', + }); } - console.log(`ℹ Registrant ${registrant_id} enrolled into Program ${program_id}`); + console.log( + `ℹ Registrant ${registrant_id} enrolled into Program ${program_id}` + ); } else { await createProgramMembership(registrant_id, program_id); } @@ -596,7 +617,7 @@ export function enroll(registrant_id, program_id, callback=false) { return state; } }; -}; +} /** * unenroll registrant from program from OpenSPP @@ -604,40 +625,40 @@ export function enroll(registrant_id, program_id, callback=false) { * @example * unenroll("IND_Q4VGGZPF", "PROG_2023_00000001") * @function - * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll - * @param {string} program_id - program_id of program + * @param {string} registrant_id - registrant_id of group / individual wanted to unenroll + * @param {string} program_id - program_id of program * @param {function} callback - An optional callback function */ -export function unenroll(registrant_id, program_id, callback=false) { +export function unenroll(registrant_id, program_id) { return async state => { let domain = [ - ["partner_id.registrant_id", "=", registrant_id], - ["program_id.program_id", "=", program_id], + ['partner_id.registrant_id', '=', registrant_id], + ['program_id.program_id', '=', program_id], ]; - let fields = ["partner_id", "program_id", "state"]; + let fields = ['partner_id', 'program_id', 'state']; try { let programMember = await sppConnector.searchRead( - "g2p.program_membership", + 'g2p.program_membership', domain, fields, { limit: 1 } ); - if (programMember.length > 0 && programMember[0].state === "enrolled") { + if (programMember.length > 0 && programMember[0].state === 'enrolled') { let membership = programMember[0]; - await sppConnector.update( - "g2p.program_membership", - membership.id, - { state: "not_eligible" }, - ); + await sppConnector.update('g2p.program_membership', membership.id, { + state: 'not_eligible', + }); } - console.log(`ℹ Registrant ${registrant_id} not enroll into Program ${program_id}`); + console.log( + `ℹ Registrant ${registrant_id} not enroll into Program ${program_id}` + ); return state; } catch (err) { console.log(`✗ Error: ${err}`); return state; } }; -}; +} export { dataPath, @@ -651,4 +672,4 @@ export { lastReferenceValue, merge, sourceValue, -} from "@openfn/language-common"; +} from '@openfn/language-common'; From e414a9d30a156dd18872731eb6a63923befcbbb0 Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Thu, 9 Nov 2023 10:08:14 +0000 Subject: [PATCH 14/15] openspp: skip tests --- packages/openspp/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/openspp/package.json b/packages/openspp/package.json index d6a54bb0e..ac63e2ccd 100644 --- a/packages/openspp/package.json +++ b/packages/openspp/package.json @@ -12,8 +12,8 @@ }, "scripts": { "build": "pnpm clean && build-adaptor openspp", - "test": "mocha --experimental-specifier-resolution=node --no-warnings", - "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings", + "test": "mocha --experimental-specifier-resolution=node --no-warnings test/**/*.test.js", + "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings test/**/*.test.js", "clean": "rimraf dist types docs", "pack": "pnpm pack --pack-destination ../../dist", "lint": "eslint src" From 9004d6756d64e06bc04dfcbe836117d2b9a9674c Mon Sep 17 00:00:00 2001 From: Taylor Downs Date: Thu, 9 Nov 2023 12:53:02 +0000 Subject: [PATCH 15/15] add ast changes for openspp --- packages/openspp/ast.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json index cab24e4d8..280162c46 100644 --- a/packages/openspp/ast.json +++ b/packages/openspp/ast.json @@ -541,8 +541,7 @@ "name": "enroll", "params": [ "registrant_id", - "program_id", - "callback" + "program_id" ], "docs": { "description": "enroll registrant to program from OpenSPP", @@ -590,14 +589,13 @@ } ] }, - "valid": true + "valid": false }, { "name": "unenroll", "params": [ "registrant_id", - "program_id", - "callback" + "program_id" ], "docs": { "description": "unenroll registrant from program from OpenSPP", @@ -645,7 +643,7 @@ } ] }, - "valid": true + "valid": false } ], "exports": [],