From 63fcc23644002561f2ce01f340ca0b1a7774395f Mon Sep 17 00:00:00 2001 From: Robert Bo Davis Date: Wed, 1 Feb 2023 19:51:00 -0500 Subject: [PATCH] feat: add license header to all files --- .eslintrc.js | 16 +++++++++++ .../aarambh_production_custom/action.yml | 14 ++++++++++ .../aarambh_staging_custom/action.yml | 14 ++++++++++ .github/actions/custom-actions/action.yml | 14 ++++++++++ .../aselo_beta_custom/action.yml | 14 ++++++++++ .../aselo_development_custom/action.yml | 14 ++++++++++ .../jamaica_production_custom/action.yml | 14 ++++++++++ .../jamaica_staging_custom/action.yml | 14 ++++++++++ .../kellimni_production_custom/action.yml | 14 ++++++++++ .../malawi_production_custom/action.yml | 14 ++++++++++ .../malawi_staging_custom/action.yml | 14 ++++++++++ .../safernet_production_custom/action.yml | 14 ++++++++++ .../safernet_staging_custom/action.yml | 14 ++++++++++ .../teguio_production_custom/action.yml | 14 ++++++++++ .../teguio_staging_custom/action.yml | 14 ++++++++++ .../thailand_staging_custom/action.yml | 14 ++++++++++ .../zambia_production_custom/action.yml | 14 ++++++++++ .../zambia_staging_custom/action.yml | 14 ++++++++++ .github/actions/deploy-beta/action.yml | 14 ++++++++++ .github/actions/deploy-beta/dist/index.js | 16 +++++++++++ .github/actions/deploy-beta/index.js | 16 +++++++++++ .github/actions/deploy-beta/package-lock.json | 2 +- .github/actions/deploy-beta/package.json | 2 +- .github/actions/main-action/action.yml | 14 ++++++++++ .github/actions/main-action/dist/index.js | 16 +++++++++++ .github/actions/main-action/index.js | 16 +++++++++++ .github/actions/main-action/package-lock.json | 2 +- .github/actions/main-action/package.json | 2 +- .github/dependabot.yml | 14 ++++++++++ .github/workflows/aarambh_production.yml | 14 ++++++++++ .github/workflows/aarambh_staging.yml | 14 ++++++++++ .github/workflows/aselo_beta.yml | 14 ++++++++++ .github/workflows/aselo_development.yml | 14 ++++++++++ .github/workflows/aselo_production.yml | 14 ++++++++++ .github/workflows/canada_staging.yml | 14 ++++++++++ .github/workflows/check-license-header.yml | 27 +++++++++++++++++++ .../workflows/cl_linealibre_production.yml | 14 ++++++++++ .github/workflows/cl_linealibre_staging.yml | 14 ++++++++++ .github/workflows/custom_helpline.yml | 14 ++++++++++ .../workflows/deploy-all-staging-accounts.yml | 14 ++++++++++ .../deploy_development_e2e_end_to_end.yml | 14 ++++++++++ .../ecpat_philippines_production.yml | 14 ++++++++++ .../workflows/ecpat_philippines_staging.yml | 14 ++++++++++ .github/workflows/ethiopia_production.yml | 14 ++++++++++ .github/workflows/ethiopia_staging.yml | 14 ++++++++++ .github/workflows/flex2_staging.yml | 14 ++++++++++ .github/workflows/hungary_production.yml | 14 ++++++++++ .github/workflows/hungary_staging.yml | 14 ++++++++++ .github/workflows/jamaica_production.yml | 14 ++++++++++ .github/workflows/jamaica_staging.yml | 14 ++++++++++ .github/workflows/kellimni_production.yml | 14 ++++++++++ .github/workflows/kellimni_staging.yml | 14 ++++++++++ .github/workflows/malawi_production.yml | 14 ++++++++++ .github/workflows/malawi_staging.yml | 14 ++++++++++ .github/workflows/romania_staging.yml | 14 ++++++++++ .github/workflows/safernet_production.yml | 14 ++++++++++ .github/workflows/safernet_staging.yml | 14 ++++++++++ .github/workflows/serverless-ci.yml | 14 ++++++++++ .../workflows/serverless-pre-release-qa.yml | 14 ++++++++++ .../serverless-production-release.yml | 14 ++++++++++ .github/workflows/south_africa_production.yml | 14 ++++++++++ .github/workflows/south_africa_staging.yml | 14 ++++++++++ .../workflows/teguio_colombia_production.yml | 14 ++++++++++ .github/workflows/teguio_colombia_staging.yml | 14 ++++++++++ .../workflows/telefonzaufania_pl_staging.yml | 14 ++++++++++ .github/workflows/test_staging.yml | 14 ++++++++++ .github/workflows/thailand_production.yml | 14 ++++++++++ .github/workflows/thailand_staging.yml | 14 ++++++++++ .github/workflows/uk_staging.yml | 14 ++++++++++ .github/workflows/zambia_production.yml | 14 ++++++++++ .github/workflows/zambia_staging.yml | 14 ++++++++++ .github/workflows/zimbabwe_production.yml | 14 ++++++++++ .github/workflows/zimbabwe_staging.yml | 14 ++++++++++ __mocks__/twilio-flex-token-validator.js | 16 +++++++++++ functions/adjustChatCapacity.ts | 16 +++++++++++ functions/assignOfflineContact.ts | 16 +++++++++++ functions/assignOfflineContactInit.ts | 16 +++++++++++ functions/assignOfflineContactResolve.ts | 16 +++++++++++ functions/autopilotRedirect.protected.ts | 16 +++++++++++ functions/checkBlockList.protected.ts | 16 +++++++++++ functions/createContactlessTask.ts | 16 +++++++++++ functions/deleteFile.ts | 16 +++++++++++ functions/endChat.ts | 16 +++++++++++ functions/getFileDownloadUrl.ts | 16 +++++++++++ functions/getFileUploadUrl.ts | 16 +++++++++++ functions/getMessages.ts | 16 +++++++++++ functions/getTranslation.ts | 16 +++++++++++ functions/getWorkerAttributes.ts | 16 +++++++++++ functions/healthCheck.ts | 16 +++++++++++ .../helpers/addCustomerExternalId.private.ts | 16 +++++++++++ .../addTaskSidToChannelAttributes.private.ts | 16 +++++++++++ .../helpers/chatChannelJanitor.private.ts | 16 +++++++++++ .../customChannelToFlex.private.ts | 16 +++++++++++ .../flexToCustomChannel.private.ts | 16 +++++++++++ .../helpers/hrmDataManipulation.private.ts | 16 +++++++++++ functions/helpers/insightsService.private.ts | 16 +++++++++++ functions/issueSyncToken.ts | 16 +++++++++++ functions/listWorkerQueues.ts | 16 +++++++++++ functions/operatingHours.ts | 16 +++++++++++ functions/populateCounselors.ts | 16 +++++++++++ functions/postSurveyComplete.protected.ts | 16 +++++++++++ functions/postSurveyInit.ts | 16 +++++++++++ functions/reportToIWF.ts | 16 +++++++++++ functions/saveContactToSaferNet.ts | 16 +++++++++++ functions/savePendingContacts.ts | 16 +++++++++++ functions/selfReportToIWF.ts | 16 +++++++++++ functions/sendSystemMessage.ts | 16 +++++++++++ .../createContactListener.private.ts | 16 +++++++++++ .../janitorListener.private.ts | 16 +++++++++++ .../postSurveyListener.private.ts | 16 +++++++++++ .../transfersListener.private.ts | 16 +++++++++++ functions/transferChatStart.ts | 16 +++++++++++ .../webhooks/FlexChannelUpdate.protected.ts | 16 +++++++++++ .../instagram/FlexToInstagram.protected.ts | 16 +++++++++++ .../webhooks/instagram/InstagramToFlex.ts | 16 +++++++++++ .../webhooks/line/FlexToLine.protected.ts | 16 +++++++++++ functions/webhooks/line/LineToFlex.ts | 16 +++++++++++ .../webhooks/taskrouterCallback.protected.ts | 16 +++++++++++ .../twitter/FlexToTwitter.protected.ts | 16 +++++++++++ functions/webhooks/twitter/TwitterToFlex.ts | 16 +++++++++++ jest.config.js | 16 +++++++++++ license-header.tpl | 13 +++++++++ package.json | 4 ++- swagger.yaml | 14 ++++++++++ .../.eslintrc.js | 16 +++++++++++ .../src/index.ts | 16 +++++++++++ .../src/resolutions.ts | 16 +++++++++++ .../src/responseWithCors.ts | 16 +++++++++++ .../src/send.ts | 16 +++++++++++ .../src/taskrouter/eventFields.ts | 16 +++++++++++ .../src/taskrouter/eventTypes.ts | 16 +++++++++++ .../src/taskrouter/index.ts | 16 +++++++++++ .../src/tokenValidator.ts | 16 +++++++++++ .../tests/tokenValidator.test.ts | 16 +++++++++++ .../tests/twilioGlobals.ts | 16 +++++++++++ tests/adjustChatCapacity.test.ts | 16 +++++++++++ tests/assignOfflineContact.test.ts | 16 +++++++++++ tests/assignOfflineContactInit.test.ts | 16 +++++++++++ tests/autopilotRedirect.test.ts | 16 +++++++++++ tests/checkBlockList.test.ts | 16 +++++++++++ tests/createContactlessTask.test.ts | 16 +++++++++++ tests/getMessages.test.ts | 16 +++++++++++ tests/getTranslation.test.ts | 16 +++++++++++ tests/helpers.ts | 16 +++++++++++ tests/helpers/addCustomerExternalId.test.ts | 16 +++++++++++ tests/issueSyncToken.test.ts | 16 +++++++++++ tests/operatingHours.test.ts | 16 +++++++++++ tests/populateCounselors.test.ts | 16 +++++++++++ tests/reportToIWF.test.ts | 16 +++++++++++ tests/selfReportToIWF.test.ts | 16 +++++++++++ tests/sendSystemMessage.test.ts | 16 +++++++++++ .../createContactListener.test.ts | 16 +++++++++++ .../janitorListener.test.ts | 16 +++++++++++ .../postSurveyListener.test.ts | 16 +++++++++++ .../transfersListener.test.ts | 16 +++++++++++ tests/transferChatStart.test.ts | 16 +++++++++++ tests/webhooks/FlexChannelUpdate.test.ts | 16 +++++++++++ .../instagram/FlexToInstagram.test.ts | 16 +++++++++++ .../instagram/InstagramToFlex.test.ts | 16 +++++++++++ tests/webhooks/line/FlexToLine.test.ts | 16 +++++++++++ tests/webhooks/line/LineToFlex.test.ts | 16 +++++++++++ tests/webhooks/twitter/FlexToTwitter.test.ts | 16 +++++++++++ tests/webhooks/twitter/TwitterToFlex.test.ts | 16 +++++++++++ 163 files changed, 2415 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/check-license-header.yml create mode 100644 license-header.tpl diff --git a/.eslintrc.js b/.eslintrc.js index ed2697ef..7cd2fda5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + module.exports = { parser: '@typescript-eslint/parser', // Specifies the ESLint parser extends: [ diff --git a/.github/actions/custom-actions/aarambh_production_custom/action.yml b/.github/actions/custom-actions/aarambh_production_custom/action.yml index 887f46ed..d7f3b896 100644 --- a/.github/actions/custom-actions/aarambh_production_custom/action.yml +++ b/.github/actions/custom-actions/aarambh_production_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Aarambh Production release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the Aarambh Production environment' runs: diff --git a/.github/actions/custom-actions/aarambh_staging_custom/action.yml b/.github/actions/custom-actions/aarambh_staging_custom/action.yml index 567364bf..aaeb455b 100644 --- a/.github/actions/custom-actions/aarambh_staging_custom/action.yml +++ b/.github/actions/custom-actions/aarambh_staging_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Aarambh Staging release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the Aarambh Staging environment' inputs: diff --git a/.github/actions/custom-actions/action.yml b/.github/actions/custom-actions/action.yml index 56baf3ff..b011d747 100644 --- a/.github/actions/custom-actions/action.yml +++ b/.github/actions/custom-actions/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Execute per-helpline custom action' description: Compound 'routing' action to load custom deployment actions for the helpline being deployed inputs: diff --git a/.github/actions/custom-actions/aselo_beta_custom/action.yml b/.github/actions/custom-actions/aselo_beta_custom/action.yml index 80e653ca..007d5637 100644 --- a/.github/actions/custom-actions/aselo_beta_custom/action.yml +++ b/.github/actions/custom-actions/aselo_beta_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Aselo Beta release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the beta environment' runs: diff --git a/.github/actions/custom-actions/aselo_development_custom/action.yml b/.github/actions/custom-actions/aselo_development_custom/action.yml index 9daad428..3b9b7887 100644 --- a/.github/actions/custom-actions/aselo_development_custom/action.yml +++ b/.github/actions/custom-actions/aselo_development_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Aselo Development release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the development environment' inputs: diff --git a/.github/actions/custom-actions/jamaica_production_custom/action.yml b/.github/actions/custom-actions/jamaica_production_custom/action.yml index 964e7daa..834c13dd 100644 --- a/.github/actions/custom-actions/jamaica_production_custom/action.yml +++ b/.github/actions/custom-actions/jamaica_production_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'SafeSpot Production release custom action' description: 'Sets up environment variables related to non-standard additional features in use in SafeSpot (JM) Production environment' runs: diff --git a/.github/actions/custom-actions/jamaica_staging_custom/action.yml b/.github/actions/custom-actions/jamaica_staging_custom/action.yml index acfc0836..3555e1ec 100644 --- a/.github/actions/custom-actions/jamaica_staging_custom/action.yml +++ b/.github/actions/custom-actions/jamaica_staging_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'SafeSpot Staging release custom action' description: 'Sets up environment variables related to non-standard additional features in use in SafeSpot (JM) Staging environment' runs: diff --git a/.github/actions/custom-actions/kellimni_production_custom/action.yml b/.github/actions/custom-actions/kellimni_production_custom/action.yml index 61fd38c6..da6d6e34 100644 --- a/.github/actions/custom-actions/kellimni_production_custom/action.yml +++ b/.github/actions/custom-actions/kellimni_production_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Kellimni MT Production release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the beta environment' runs: diff --git a/.github/actions/custom-actions/malawi_production_custom/action.yml b/.github/actions/custom-actions/malawi_production_custom/action.yml index 0c61f4ae..710cf103 100644 --- a/.github/actions/custom-actions/malawi_production_custom/action.yml +++ b/.github/actions/custom-actions/malawi_production_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Malawi Production release custom action' description: 'Adds IWF related environment variables to the Malawi Production environment' runs: diff --git a/.github/actions/custom-actions/malawi_staging_custom/action.yml b/.github/actions/custom-actions/malawi_staging_custom/action.yml index 1d50dadd..c16d40f3 100644 --- a/.github/actions/custom-actions/malawi_staging_custom/action.yml +++ b/.github/actions/custom-actions/malawi_staging_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Malawi Staging release custom action' description: 'Adds IWF related environment variables to the Malawi Staging environment (for test runs only)' runs: diff --git a/.github/actions/custom-actions/safernet_production_custom/action.yml b/.github/actions/custom-actions/safernet_production_custom/action.yml index cc79eed3..16a32158 100644 --- a/.github/actions/custom-actions/safernet_production_custom/action.yml +++ b/.github/actions/custom-actions/safernet_production_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Safernet Production release custom action' runs: using: "composite" diff --git a/.github/actions/custom-actions/safernet_staging_custom/action.yml b/.github/actions/custom-actions/safernet_staging_custom/action.yml index a763738d..1ae5b7fe 100644 --- a/.github/actions/custom-actions/safernet_staging_custom/action.yml +++ b/.github/actions/custom-actions/safernet_staging_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Safernet Staging release custom action' runs: using: "composite" diff --git a/.github/actions/custom-actions/teguio_production_custom/action.yml b/.github/actions/custom-actions/teguio_production_custom/action.yml index 1b11ba43..de5a711e 100644 --- a/.github/actions/custom-actions/teguio_production_custom/action.yml +++ b/.github/actions/custom-actions/teguio_production_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Te Guio Production release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the beta environment' runs: diff --git a/.github/actions/custom-actions/teguio_staging_custom/action.yml b/.github/actions/custom-actions/teguio_staging_custom/action.yml index e3e97d1d..df086fc6 100644 --- a/.github/actions/custom-actions/teguio_staging_custom/action.yml +++ b/.github/actions/custom-actions/teguio_staging_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Te Guio Staging release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the beta environment' runs: diff --git a/.github/actions/custom-actions/thailand_staging_custom/action.yml b/.github/actions/custom-actions/thailand_staging_custom/action.yml index 4d95eeb1..d04cb17b 100644 --- a/.github/actions/custom-actions/thailand_staging_custom/action.yml +++ b/.github/actions/custom-actions/thailand_staging_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Childline Thailand Staging release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the thailand staging environment' runs: diff --git a/.github/actions/custom-actions/zambia_production_custom/action.yml b/.github/actions/custom-actions/zambia_production_custom/action.yml index 4efa46c7..f1cf26ca 100644 --- a/.github/actions/custom-actions/zambia_production_custom/action.yml +++ b/.github/actions/custom-actions/zambia_production_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Zambia PRoduction release custom action' description: 'Adds Twitter and Instagram related environment variables to the Zambia Production environment' runs: diff --git a/.github/actions/custom-actions/zambia_staging_custom/action.yml b/.github/actions/custom-actions/zambia_staging_custom/action.yml index 39ad4c5c..ec6bcdf2 100644 --- a/.github/actions/custom-actions/zambia_staging_custom/action.yml +++ b/.github/actions/custom-actions/zambia_staging_custom/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: 'Zambia Staging release custom action' description: 'Adds Twitter and Instagram related environment variables to the Zambia Staging environment' runs: diff --git a/.github/actions/deploy-beta/action.yml b/.github/actions/deploy-beta/action.yml index c27d0865..e2a262fe 100644 --- a/.github/actions/deploy-beta/action.yml +++ b/.github/actions/deploy-beta/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Install the Twilio CLI and the serverless plugin then deploy the function name: 'main-action' description: 'Install the Twilio CLI and the serverless plugin then deploy the function' diff --git a/.github/actions/deploy-beta/dist/index.js b/.github/actions/deploy-beta/dist/index.js index d94e5496..2328d4b7 100644 --- a/.github/actions/deploy-beta/dist/index.js +++ b/.github/actions/deploy-beta/dist/index.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ diff --git a/.github/actions/deploy-beta/index.js b/.github/actions/deploy-beta/index.js index 546c284f..40b6b43f 100644 --- a/.github/actions/deploy-beta/index.js +++ b/.github/actions/deploy-beta/index.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /** * If changes are made to this file, it needs to be recompiled using @vercel/ncc (https://github.com/vercel/ncc). * 1) Install vercel/ncc by running this command in your terminal. npm i -g @vercel/ncc diff --git a/.github/actions/deploy-beta/package-lock.json b/.github/actions/deploy-beta/package-lock.json index 5488a5ff..a77bfcf0 100644 --- a/.github/actions/deploy-beta/package-lock.json +++ b/.github/actions/deploy-beta/package-lock.json @@ -7,7 +7,7 @@ "": { "name": "healthcheck", "version": "1.0.0", - "license": "ISC", + "license": "AGPL", "dependencies": { "@actions/core": "^1.5.0", "node-fetch": "^3.0.0", diff --git a/.github/actions/deploy-beta/package.json b/.github/actions/deploy-beta/package.json index 59ab3e60..25c727e9 100644 --- a/.github/actions/deploy-beta/package.json +++ b/.github/actions/deploy-beta/package.json @@ -7,7 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", - "license": "ISC", + "license": "AGPL", "dependencies": { "@actions/core": "^1.5.0", "node-fetch": "^3.0.0", diff --git a/.github/actions/main-action/action.yml b/.github/actions/main-action/action.yml index 413c389d..2f08049f 100644 --- a/.github/actions/main-action/action.yml +++ b/.github/actions/main-action/action.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Install the Twilio CLI and the serverless plugin then deploy the function name: 'main-action' description: 'Install the Twilio CLI and the serverless plugin then deploy the function' diff --git a/.github/actions/main-action/dist/index.js b/.github/actions/main-action/dist/index.js index d94e5496..2328d4b7 100644 --- a/.github/actions/main-action/dist/index.js +++ b/.github/actions/main-action/dist/index.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ diff --git a/.github/actions/main-action/index.js b/.github/actions/main-action/index.js index 546c284f..40b6b43f 100644 --- a/.github/actions/main-action/index.js +++ b/.github/actions/main-action/index.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /** * If changes are made to this file, it needs to be recompiled using @vercel/ncc (https://github.com/vercel/ncc). * 1) Install vercel/ncc by running this command in your terminal. npm i -g @vercel/ncc diff --git a/.github/actions/main-action/package-lock.json b/.github/actions/main-action/package-lock.json index 5488a5ff..a77bfcf0 100644 --- a/.github/actions/main-action/package-lock.json +++ b/.github/actions/main-action/package-lock.json @@ -7,7 +7,7 @@ "": { "name": "healthcheck", "version": "1.0.0", - "license": "ISC", + "license": "AGPL", "dependencies": { "@actions/core": "^1.5.0", "node-fetch": "^3.0.0", diff --git a/.github/actions/main-action/package.json b/.github/actions/main-action/package.json index 59ab3e60..25c727e9 100644 --- a/.github/actions/main-action/package.json +++ b/.github/actions/main-action/package.json @@ -7,7 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", - "license": "ISC", + "license": "AGPL", "dependencies": { "@actions/core": "^1.5.0", "node-fetch": "^3.0.0", diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b7ad8750..f748c690 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + version: 2 updates: - package-ecosystem: "npm" diff --git a/.github/workflows/aarambh_production.yml b/.github/workflows/aarambh_production.yml index a5b3e6b4..f1b2ce73 100644 --- a/.github/workflows/aarambh_production.yml +++ b/.github/workflows/aarambh_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Aarambh Production release diff --git a/.github/workflows/aarambh_staging.yml b/.github/workflows/aarambh_staging.yml index 9e94dfaa..5b3da0c9 100644 --- a/.github/workflows/aarambh_staging.yml +++ b/.github/workflows/aarambh_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Aarambh Staging release diff --git a/.github/workflows/aselo_beta.yml b/.github/workflows/aselo_beta.yml index 18b3d978..428d4cc2 100644 --- a/.github/workflows/aselo_beta.yml +++ b/.github/workflows/aselo_beta.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: Aselo Beta deploy on: diff --git a/.github/workflows/aselo_development.yml b/.github/workflows/aselo_development.yml index d30487e9..444c5cee 100644 --- a/.github/workflows/aselo_development.yml +++ b/.github/workflows/aselo_development.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Aselo Development release diff --git a/.github/workflows/aselo_production.yml b/.github/workflows/aselo_production.yml index 4c1b11fc..daf9f3de 100644 --- a/.github/workflows/aselo_production.yml +++ b/.github/workflows/aselo_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Aselo Production deploy diff --git a/.github/workflows/canada_staging.yml b/.github/workflows/canada_staging.yml index 001cc296..e6801cba 100644 --- a/.github/workflows/canada_staging.yml +++ b/.github/workflows/canada_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Kids Help Phone Staging deploy diff --git a/.github/workflows/check-license-header.yml b/.github/workflows/check-license-header.yml new file mode 100644 index 00000000..29a52d43 --- /dev/null +++ b/.github/workflows/check-license-header.yml @@ -0,0 +1,27 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + +name: Check License Header + +on: [push] + +jobs: + license-header: + runs-on: ubuntu-latest + steps: + - name: Checkout Branch + uses: actions/checkout@v2 + + - name: Validate License Headers + run: npm run license:check diff --git a/.github/workflows/cl_linealibre_production.yml b/.github/workflows/cl_linealibre_production.yml index 5d9c52f7..762fed17 100644 --- a/.github/workflows/cl_linealibre_production.yml +++ b/.github/workflows/cl_linealibre_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Línea Libre Helpline (CL) Production deploy diff --git a/.github/workflows/cl_linealibre_staging.yml b/.github/workflows/cl_linealibre_staging.yml index 42b37c6b..bfa85139 100644 --- a/.github/workflows/cl_linealibre_staging.yml +++ b/.github/workflows/cl_linealibre_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Línea Libre Helpline (CL) Staging deploy diff --git a/.github/workflows/custom_helpline.yml b/.github/workflows/custom_helpline.yml index 036fe28f..676cee5a 100644 --- a/.github/workflows/custom_helpline.yml +++ b/.github/workflows/custom_helpline.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This job lets you deploy the Aselo serverless functions to an arbitrary helpline, useful for deploying to a developers private account. # The short environment & helpline codes need to be specified manually, # It will not run any custom action, only the basic ones common to all helplines diff --git a/.github/workflows/deploy-all-staging-accounts.yml b/.github/workflows/deploy-all-staging-accounts.yml index fa4849ab..335652b6 100644 --- a/.github/workflows/deploy-all-staging-accounts.yml +++ b/.github/workflows/deploy-all-staging-accounts.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to deploy Serverless to all helpline staging environments name: Deploy Serverless to all Staging Accounts diff --git a/.github/workflows/deploy_development_e2e_end_to_end.yml b/.github/workflows/deploy_development_e2e_end_to_end.yml index a72619de..b9275e44 100644 --- a/.github/workflows/deploy_development_e2e_end_to_end.yml +++ b/.github/workflows/deploy_development_e2e_end_to_end.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: Deploy Development (E2E) End to End diff --git a/.github/workflows/ecpat_philippines_production.yml b/.github/workflows/ecpat_philippines_production.yml index 8d45bac4..1fd70f12 100644 --- a/.github/workflows/ecpat_philippines_production.yml +++ b/.github/workflows/ecpat_philippines_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: ECPAT Phillippines Production deploy diff --git a/.github/workflows/ecpat_philippines_staging.yml b/.github/workflows/ecpat_philippines_staging.yml index 3feab156..63595fc9 100644 --- a/.github/workflows/ecpat_philippines_staging.yml +++ b/.github/workflows/ecpat_philippines_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: ECPAT Philippines Staging deploy diff --git a/.github/workflows/ethiopia_production.yml b/.github/workflows/ethiopia_production.yml index 5ef42d78..73264b15 100644 --- a/.github/workflows/ethiopia_production.yml +++ b/.github/workflows/ethiopia_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Ethiopia Production deploy diff --git a/.github/workflows/ethiopia_staging.yml b/.github/workflows/ethiopia_staging.yml index 57492212..7a8c3485 100644 --- a/.github/workflows/ethiopia_staging.yml +++ b/.github/workflows/ethiopia_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Ethiopia Staging deploy diff --git a/.github/workflows/flex2_staging.yml b/.github/workflows/flex2_staging.yml index 48527351..1c78d6d5 100644 --- a/.github/workflows/flex2_staging.yml +++ b/.github/workflows/flex2_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Flex 2.0 Staging deplioy diff --git a/.github/workflows/hungary_production.yml b/.github/workflows/hungary_production.yml index 0f577ec0..4e12741d 100644 --- a/.github/workflows/hungary_production.yml +++ b/.github/workflows/hungary_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Kek Vonal Production deploy diff --git a/.github/workflows/hungary_staging.yml b/.github/workflows/hungary_staging.yml index cfcdcf8f..be21e78a 100644 --- a/.github/workflows/hungary_staging.yml +++ b/.github/workflows/hungary_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Kek Vonal Staging release diff --git a/.github/workflows/jamaica_production.yml b/.github/workflows/jamaica_production.yml index 2ad5e45c..db524d95 100644 --- a/.github/workflows/jamaica_production.yml +++ b/.github/workflows/jamaica_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: SafeSpot Production release diff --git a/.github/workflows/jamaica_staging.yml b/.github/workflows/jamaica_staging.yml index 3813a9f8..6d949190 100644 --- a/.github/workflows/jamaica_staging.yml +++ b/.github/workflows/jamaica_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: SafeSpot Staging deploy diff --git a/.github/workflows/kellimni_production.yml b/.github/workflows/kellimni_production.yml index 53f195f7..2d75ea31 100644 --- a/.github/workflows/kellimni_production.yml +++ b/.github/workflows/kellimni_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Kellimni Production deploy diff --git a/.github/workflows/kellimni_staging.yml b/.github/workflows/kellimni_staging.yml index 421b7f31..49aafa03 100644 --- a/.github/workflows/kellimni_staging.yml +++ b/.github/workflows/kellimni_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Kellimni Staging deploy diff --git a/.github/workflows/malawi_production.yml b/.github/workflows/malawi_production.yml index 96580461..ec764037 100644 --- a/.github/workflows/malawi_production.yml +++ b/.github/workflows/malawi_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Malawi Production deploy diff --git a/.github/workflows/malawi_staging.yml b/.github/workflows/malawi_staging.yml index a4a95d66..b80bd0b6 100644 --- a/.github/workflows/malawi_staging.yml +++ b/.github/workflows/malawi_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Malawi Staging deploy diff --git a/.github/workflows/romania_staging.yml b/.github/workflows/romania_staging.yml index 715dcde0..8bccb5bd 100644 --- a/.github/workflows/romania_staging.yml +++ b/.github/workflows/romania_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Telefonul Copilului (Romania) Staging deploy diff --git a/.github/workflows/safernet_production.yml b/.github/workflows/safernet_production.yml index 92115dcc..107f9c1f 100644 --- a/.github/workflows/safernet_production.yml +++ b/.github/workflows/safernet_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: SaferNet Production deploy diff --git a/.github/workflows/safernet_staging.yml b/.github/workflows/safernet_staging.yml index 635e68f8..a54d1b5a 100644 --- a/.github/workflows/safernet_staging.yml +++ b/.github/workflows/safernet_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Safernet Staging deploy diff --git a/.github/workflows/serverless-ci.yml b/.github/workflows/serverless-ci.yml index c69b8cae..36fe123f 100644 --- a/.github/workflows/serverless-ci.yml +++ b/.github/workflows/serverless-ci.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + name: serverless-ci on: [push] diff --git a/.github/workflows/serverless-pre-release-qa.yml b/.github/workflows/serverless-pre-release-qa.yml index f929eec0..1be105e1 100644 --- a/.github/workflows/serverless-pre-release-qa.yml +++ b/.github/workflows/serverless-pre-release-qa.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Workflow to create a new pre-release with qa suffix name: Create a QA candidate release diff --git a/.github/workflows/serverless-production-release.yml b/.github/workflows/serverless-production-release.yml index 4e1c5856..5e04c930 100644 --- a/.github/workflows/serverless-production-release.yml +++ b/.github/workflows/serverless-production-release.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Workflow to create a new production release from a given qa tag name: Create a production release diff --git a/.github/workflows/south_africa_production.yml b/.github/workflows/south_africa_production.yml index b030f2f7..605657f9 100644 --- a/.github/workflows/south_africa_production.yml +++ b/.github/workflows/south_africa_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: South Africa Production deploy diff --git a/.github/workflows/south_africa_staging.yml b/.github/workflows/south_africa_staging.yml index 07cce304..a2b07030 100644 --- a/.github/workflows/south_africa_staging.yml +++ b/.github/workflows/south_africa_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: South Africa Staging deploy diff --git a/.github/workflows/teguio_colombia_production.yml b/.github/workflows/teguio_colombia_production.yml index 6e00f4e7..3d8f4de2 100644 --- a/.github/workflows/teguio_colombia_production.yml +++ b/.github/workflows/teguio_colombia_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Te Guío Colombia Production deploy diff --git a/.github/workflows/teguio_colombia_staging.yml b/.github/workflows/teguio_colombia_staging.yml index c46cac2f..309319ae 100644 --- a/.github/workflows/teguio_colombia_staging.yml +++ b/.github/workflows/teguio_colombia_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Te Guio Colombia Staging deploy diff --git a/.github/workflows/telefonzaufania_pl_staging.yml b/.github/workflows/telefonzaufania_pl_staging.yml index 940b4578..e7c74f8f 100644 --- a/.github/workflows/telefonzaufania_pl_staging.yml +++ b/.github/workflows/telefonzaufania_pl_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Telefon Zaufania (PL) Staging deploy diff --git a/.github/workflows/test_staging.yml b/.github/workflows/test_staging.yml index 032f484f..631e04c8 100644 --- a/.github/workflows/test_staging.yml +++ b/.github/workflows/test_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Test Staging release diff --git a/.github/workflows/thailand_production.yml b/.github/workflows/thailand_production.yml index 8d6225cc..b0b44f3d 100644 --- a/.github/workflows/thailand_production.yml +++ b/.github/workflows/thailand_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Thailand Production deploy diff --git a/.github/workflows/thailand_staging.yml b/.github/workflows/thailand_staging.yml index c8ce66d4..ba628ff2 100644 --- a/.github/workflows/thailand_staging.yml +++ b/.github/workflows/thailand_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Thailand Staging deploy diff --git a/.github/workflows/uk_staging.yml b/.github/workflows/uk_staging.yml index 071021df..a823c1b6 100644 --- a/.github/workflows/uk_staging.yml +++ b/.github/workflows/uk_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Revenge Porn Helpline Staging release diff --git a/.github/workflows/zambia_production.yml b/.github/workflows/zambia_production.yml index cb44ac49..a5cb9e26 100644 --- a/.github/workflows/zambia_production.yml +++ b/.github/workflows/zambia_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Zambia Production deploy diff --git a/.github/workflows/zambia_staging.yml b/.github/workflows/zambia_staging.yml index 9d246a49..a9a551d8 100644 --- a/.github/workflows/zambia_staging.yml +++ b/.github/workflows/zambia_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Zambia Staging deploy diff --git a/.github/workflows/zimbabwe_production.yml b/.github/workflows/zimbabwe_production.yml index 672984d4..6e2bb289 100644 --- a/.github/workflows/zimbabwe_production.yml +++ b/.github/workflows/zimbabwe_production.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Childline Zimbabwe Production deploy diff --git a/.github/workflows/zimbabwe_staging.yml b/.github/workflows/zimbabwe_staging.yml index d54541fa..3d368bb9 100644 --- a/.github/workflows/zimbabwe_staging.yml +++ b/.github/workflows/zimbabwe_staging.yml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # This is a basic workflow to publish a Twilio function with Github Actions name: Childline Zimbabwe Staging deploy diff --git a/__mocks__/twilio-flex-token-validator.js b/__mocks__/twilio-flex-token-validator.js index 99eb0c8a..67b71479 100644 --- a/__mocks__/twilio-flex-token-validator.js +++ b/__mocks__/twilio-flex-token-validator.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + module.exports = { functionValidator: e => e, // returns identity to bypass token validation }; diff --git a/functions/adjustChatCapacity.ts b/functions/adjustChatCapacity.ts index b062d34e..f36fcc9d 100644 --- a/functions/adjustChatCapacity.ts +++ b/functions/adjustChatCapacity.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/assignOfflineContact.ts b/functions/assignOfflineContact.ts index 8646581e..6ac51294 100644 --- a/functions/assignOfflineContact.ts +++ b/functions/assignOfflineContact.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/assignOfflineContactInit.ts b/functions/assignOfflineContactInit.ts index 8ad1fd6b..6e7b95ca 100644 --- a/functions/assignOfflineContactInit.ts +++ b/functions/assignOfflineContactInit.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/assignOfflineContactResolve.ts b/functions/assignOfflineContactResolve.ts index c7844592..05ea7f29 100644 --- a/functions/assignOfflineContactResolve.ts +++ b/functions/assignOfflineContactResolve.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/autopilotRedirect.protected.ts b/functions/autopilotRedirect.protected.ts index 90ecd9f6..a3e51c05 100644 --- a/functions/autopilotRedirect.protected.ts +++ b/functions/autopilotRedirect.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context, ServerlessCallback, diff --git a/functions/checkBlockList.protected.ts b/functions/checkBlockList.protected.ts index f1c2c726..0fa26bf5 100644 --- a/functions/checkBlockList.protected.ts +++ b/functions/checkBlockList.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; export interface Event { diff --git a/functions/createContactlessTask.ts b/functions/createContactlessTask.ts index 36277909..af3a9eea 100644 --- a/functions/createContactlessTask.ts +++ b/functions/createContactlessTask.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/deleteFile.ts b/functions/deleteFile.ts index 73d81504..f0e4868e 100644 --- a/functions/deleteFile.ts +++ b/functions/deleteFile.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import AWS, { S3, AWSError } from 'aws-sdk'; import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; diff --git a/functions/endChat.ts b/functions/endChat.ts index 276d0d07..e3b6585f 100644 --- a/functions/endChat.ts +++ b/functions/endChat.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/getFileDownloadUrl.ts b/functions/getFileDownloadUrl.ts index 5a760089..c1811b44 100644 --- a/functions/getFileDownloadUrl.ts +++ b/functions/getFileDownloadUrl.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import AWS from 'aws-sdk'; import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; diff --git a/functions/getFileUploadUrl.ts b/functions/getFileUploadUrl.ts index 607ca261..69bf01fc 100644 --- a/functions/getFileUploadUrl.ts +++ b/functions/getFileUploadUrl.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import AWS from 'aws-sdk'; import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; diff --git a/functions/getMessages.ts b/functions/getMessages.ts index a53dfc1e..2b3e75d5 100644 --- a/functions/getMessages.ts +++ b/functions/getMessages.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/getTranslation.ts b/functions/getTranslation.ts index a630ff17..6f6e7f88 100644 --- a/functions/getTranslation.ts +++ b/functions/getTranslation.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/getWorkerAttributes.ts b/functions/getWorkerAttributes.ts index 9eee1794..efdd3936 100644 --- a/functions/getWorkerAttributes.ts +++ b/functions/getWorkerAttributes.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/healthCheck.ts b/functions/healthCheck.ts index bfdf48d3..22011d4e 100644 --- a/functions/healthCheck.ts +++ b/functions/healthCheck.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, diff --git a/functions/helpers/addCustomerExternalId.private.ts b/functions/helpers/addCustomerExternalId.private.ts index 2e638625..b53ba088 100644 --- a/functions/helpers/addCustomerExternalId.private.ts +++ b/functions/helpers/addCustomerExternalId.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + // eslint-disable-next-line prettier/prettier import type { Context } from '@twilio-labs/serverless-runtime-types/types'; import type { TaskInstance } from 'twilio/lib/rest/taskrouter/v1/workspace/task'; diff --git a/functions/helpers/addTaskSidToChannelAttributes.private.ts b/functions/helpers/addTaskSidToChannelAttributes.private.ts index 0c3af376..fb320610 100644 --- a/functions/helpers/addTaskSidToChannelAttributes.private.ts +++ b/functions/helpers/addTaskSidToChannelAttributes.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context } from '@twilio-labs/serverless-runtime-types/types'; export type Body = { diff --git a/functions/helpers/chatChannelJanitor.private.ts b/functions/helpers/chatChannelJanitor.private.ts index 3b1f0d66..61793cb1 100644 --- a/functions/helpers/chatChannelJanitor.private.ts +++ b/functions/helpers/chatChannelJanitor.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /** * In order to make post surveys work, we need to disable the Channel Janitor (see https://www.twilio.com/docs/flex/developer/messaging/manage-flows#channel-janitor). * However, once the post survey is finished we want to mimic this feature to clear the channel and the proxy session, to enable future conversations from the same customer diff --git a/functions/helpers/customChannels/customChannelToFlex.private.ts b/functions/helpers/customChannels/customChannelToFlex.private.ts index 0a829e17..82119464 100644 --- a/functions/helpers/customChannels/customChannelToFlex.private.ts +++ b/functions/helpers/customChannels/customChannelToFlex.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context } from '@twilio-labs/serverless-runtime-types/types'; /** diff --git a/functions/helpers/customChannels/flexToCustomChannel.private.ts b/functions/helpers/customChannels/flexToCustomChannel.private.ts index f140100d..d7ebd106 100644 --- a/functions/helpers/customChannels/flexToCustomChannel.private.ts +++ b/functions/helpers/customChannels/flexToCustomChannel.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context } from '@twilio-labs/serverless-runtime-types/types'; export type WebhookEvent = { diff --git a/functions/helpers/hrmDataManipulation.private.ts b/functions/helpers/hrmDataManipulation.private.ts index 36cfeaa7..dd5ae222 100644 --- a/functions/helpers/hrmDataManipulation.private.ts +++ b/functions/helpers/hrmDataManipulation.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { get } from 'lodash'; // eslint-disable-next-line prettier/prettier import type { BotMemory } from '../postSurveyComplete.protected'; diff --git a/functions/helpers/insightsService.private.ts b/functions/helpers/insightsService.private.ts index 08ebff67..869573f2 100644 --- a/functions/helpers/insightsService.private.ts +++ b/functions/helpers/insightsService.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { get } from 'lodash'; // eslint-disable-next-line prettier/prettier import type { BotMemory } from '../postSurveyComplete.protected'; diff --git a/functions/issueSyncToken.ts b/functions/issueSyncToken.ts index 189d25fd..57d4d2d9 100644 --- a/functions/issueSyncToken.ts +++ b/functions/issueSyncToken.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/listWorkerQueues.ts b/functions/listWorkerQueues.ts index 96bc5fd7..ef8c70a0 100644 --- a/functions/listWorkerQueues.ts +++ b/functions/listWorkerQueues.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/operatingHours.ts b/functions/operatingHours.ts index 4273e86c..088aee15 100644 --- a/functions/operatingHours.ts +++ b/functions/operatingHours.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/populateCounselors.ts b/functions/populateCounselors.ts index ff860cbc..4d6d230d 100644 --- a/functions/populateCounselors.ts +++ b/functions/populateCounselors.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/postSurveyComplete.protected.ts b/functions/postSurveyComplete.protected.ts index 9ee03dea..d18819ca 100644 --- a/functions/postSurveyComplete.protected.ts +++ b/functions/postSurveyComplete.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable no-console */ /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ diff --git a/functions/postSurveyInit.ts b/functions/postSurveyInit.ts index 06e13ad5..3d7c7de5 100644 --- a/functions/postSurveyInit.ts +++ b/functions/postSurveyInit.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/reportToIWF.ts b/functions/reportToIWF.ts index f225a865..16ecdcbc 100644 --- a/functions/reportToIWF.ts +++ b/functions/reportToIWF.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import axios from 'axios'; import { diff --git a/functions/saveContactToSaferNet.ts b/functions/saveContactToSaferNet.ts index 604aa629..0f56adca 100644 --- a/functions/saveContactToSaferNet.ts +++ b/functions/saveContactToSaferNet.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, diff --git a/functions/savePendingContacts.ts b/functions/savePendingContacts.ts index a41a1311..baf867db 100644 --- a/functions/savePendingContacts.ts +++ b/functions/savePendingContacts.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/selfReportToIWF.ts b/functions/selfReportToIWF.ts index c11804d3..fc583161 100644 --- a/functions/selfReportToIWF.ts +++ b/functions/selfReportToIWF.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import axios, { AxiosRequestConfig } from 'axios'; import FormData from 'form-data'; diff --git a/functions/sendSystemMessage.ts b/functions/sendSystemMessage.ts index 6cc15b99..5f65910d 100644 --- a/functions/sendSystemMessage.ts +++ b/functions/sendSystemMessage.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/taskrouterListeners/createContactListener.private.ts b/functions/taskrouterListeners/createContactListener.private.ts index 13f6fe9c..1c1750d4 100644 --- a/functions/taskrouterListeners/createContactListener.private.ts +++ b/functions/taskrouterListeners/createContactListener.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/taskrouterListeners/janitorListener.private.ts b/functions/taskrouterListeners/janitorListener.private.ts index cd043153..ec420bb1 100644 --- a/functions/taskrouterListeners/janitorListener.private.ts +++ b/functions/taskrouterListeners/janitorListener.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/taskrouterListeners/postSurveyListener.private.ts b/functions/taskrouterListeners/postSurveyListener.private.ts index 1489e124..c800093a 100644 --- a/functions/taskrouterListeners/postSurveyListener.private.ts +++ b/functions/taskrouterListeners/postSurveyListener.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/taskrouterListeners/transfersListener.private.ts b/functions/taskrouterListeners/transfersListener.private.ts index 4c60168d..b0d99a2d 100644 --- a/functions/taskrouterListeners/transfersListener.private.ts +++ b/functions/taskrouterListeners/transfersListener.private.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/transferChatStart.ts b/functions/transferChatStart.ts index dee79cb3..bfb4d24d 100644 --- a/functions/transferChatStart.ts +++ b/functions/transferChatStart.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/webhooks/FlexChannelUpdate.protected.ts b/functions/webhooks/FlexChannelUpdate.protected.ts index 7cc80b54..9b7aaede 100644 --- a/functions/webhooks/FlexChannelUpdate.protected.ts +++ b/functions/webhooks/FlexChannelUpdate.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { diff --git a/functions/webhooks/instagram/FlexToInstagram.protected.ts b/functions/webhooks/instagram/FlexToInstagram.protected.ts index bb71ecb0..5c4ac147 100644 --- a/functions/webhooks/instagram/FlexToInstagram.protected.ts +++ b/functions/webhooks/instagram/FlexToInstagram.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/webhooks/instagram/InstagramToFlex.ts b/functions/webhooks/instagram/InstagramToFlex.ts index 5d0bd87d..e73303ef 100644 --- a/functions/webhooks/instagram/InstagramToFlex.ts +++ b/functions/webhooks/instagram/InstagramToFlex.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/webhooks/line/FlexToLine.protected.ts b/functions/webhooks/line/FlexToLine.protected.ts index b097086b..d9093bd9 100644 --- a/functions/webhooks/line/FlexToLine.protected.ts +++ b/functions/webhooks/line/FlexToLine.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import axios from 'axios'; diff --git a/functions/webhooks/line/LineToFlex.ts b/functions/webhooks/line/LineToFlex.ts index 3f3ed504..35aa1b26 100644 --- a/functions/webhooks/line/LineToFlex.ts +++ b/functions/webhooks/line/LineToFlex.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/functions/webhooks/taskrouterCallback.protected.ts b/functions/webhooks/taskrouterCallback.protected.ts index 18df3ae5..2ac23336 100644 --- a/functions/webhooks/taskrouterCallback.protected.ts +++ b/functions/webhooks/taskrouterCallback.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /** * This file is intended to be used as the Task Router Event Callback (see https://www.twilio.com/docs/taskrouter/api/event#event-callbacks). * We'll perform different actions based on the event type on each invocation. diff --git a/functions/webhooks/twitter/FlexToTwitter.protected.ts b/functions/webhooks/twitter/FlexToTwitter.protected.ts index 0797fbb8..fdbbc36b 100644 --- a/functions/webhooks/twitter/FlexToTwitter.protected.ts +++ b/functions/webhooks/twitter/FlexToTwitter.protected.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ import Twit from 'twit'; diff --git a/functions/webhooks/twitter/TwitterToFlex.ts b/functions/webhooks/twitter/TwitterToFlex.ts index ad2775cc..57f76a6d 100644 --- a/functions/webhooks/twitter/TwitterToFlex.ts +++ b/functions/webhooks/twitter/TwitterToFlex.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ import '@twilio-labs/serverless-runtime-types'; diff --git a/jest.config.js b/jest.config.js index f688d0a6..a68be2eb 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + module.exports = { globals: { 'ts-jest': { diff --git a/license-header.tpl b/license-header.tpl new file mode 100644 index 00000000..054dcc43 --- /dev/null +++ b/license-header.tpl @@ -0,0 +1,13 @@ +Copyright (C) {{.Year}} {{.Holder}} +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero 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 Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see https://www.gnu.org/licenses/. \ No newline at end of file diff --git a/package.json b/package.json index 3601c01c..dbe2489f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "swagger": "redoc-cli build -o assets/swagger.html swagger.yaml", "lint": "eslint --ext ts .", "tr": "twilio-run", - "tr:deploy": "npx tsc && twilio-run deploy --force" + "tr:deploy": "npx tsc && twilio-run deploy --force", + "license:add": "docker run --rm -v ${PWD}:/src ghcr.io/google/addlicense -c \"Technology Matters\" -y \"2021-2023\" -f license-header.tpl .", + "license:check": "docker run --rm -v ${PWD}:/src ghcr.io/google/addlicense -check -c \"Technology Matters\" -y \"2021-2023\" -f license-header.tpl ." }, "repository": { "type": "git", diff --git a/swagger.yaml b/swagger.yaml index 8798afa2..68b27d1d 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -1,3 +1,17 @@ +# Copyright (C) 2021-2023 Technology Matters +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + openapi: 3.0.0 servers: - url: / diff --git a/tech-matters-serverless-helpers-lib/.eslintrc.js b/tech-matters-serverless-helpers-lib/.eslintrc.js index e69682b9..724ba6d1 100644 --- a/tech-matters-serverless-helpers-lib/.eslintrc.js +++ b/tech-matters-serverless-helpers-lib/.eslintrc.js @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + module.exports = { parser: '@typescript-eslint/parser', // Specifies the ESLint parser extends: [ diff --git a/tech-matters-serverless-helpers-lib/src/index.ts b/tech-matters-serverless-helpers-lib/src/index.ts index d3141baa..fb732f3c 100644 --- a/tech-matters-serverless-helpers-lib/src/index.ts +++ b/tech-matters-serverless-helpers-lib/src/index.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback, TwilioResponse } from '@twilio-labs/serverless-runtime-types/types'; export { default as send } from './send'; diff --git a/tech-matters-serverless-helpers-lib/src/resolutions.ts b/tech-matters-serverless-helpers-lib/src/resolutions.ts index 9b87d956..a6e8a310 100644 --- a/tech-matters-serverless-helpers-lib/src/resolutions.ts +++ b/tech-matters-serverless-helpers-lib/src/resolutions.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import send from './send'; /** diff --git a/tech-matters-serverless-helpers-lib/src/responseWithCors.ts b/tech-matters-serverless-helpers-lib/src/responseWithCors.ts index 496ecef4..95c554ef 100644 --- a/tech-matters-serverless-helpers-lib/src/responseWithCors.ts +++ b/tech-matters-serverless-helpers-lib/src/responseWithCors.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@twilio-labs/serverless-runtime-types'; /** diff --git a/tech-matters-serverless-helpers-lib/src/send.ts b/tech-matters-serverless-helpers-lib/src/send.ts index 2a5920c3..98677ca6 100644 --- a/tech-matters-serverless-helpers-lib/src/send.ts +++ b/tech-matters-serverless-helpers-lib/src/send.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback, TwilioResponse } from '@twilio-labs/serverless-runtime-types/types'; const send = (statusCode: number) => (body: string | object) => (callback: ServerlessCallback) => ( diff --git a/tech-matters-serverless-helpers-lib/src/taskrouter/eventFields.ts b/tech-matters-serverless-helpers-lib/src/taskrouter/eventFields.ts index 0e44b2f1..3c57e3b8 100644 --- a/tech-matters-serverless-helpers-lib/src/taskrouter/eventFields.ts +++ b/tech-matters-serverless-helpers-lib/src/taskrouter/eventFields.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import type { EventType } from './eventTypes'; export type EventFields = { diff --git a/tech-matters-serverless-helpers-lib/src/taskrouter/eventTypes.ts b/tech-matters-serverless-helpers-lib/src/taskrouter/eventTypes.ts index 47d7cac2..823d111f 100644 --- a/tech-matters-serverless-helpers-lib/src/taskrouter/eventTypes.ts +++ b/tech-matters-serverless-helpers-lib/src/taskrouter/eventTypes.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /** * Tasrouter EventTypes: https://www.twilio.com/docs/taskrouter/api/event/reference#event-types */ diff --git a/tech-matters-serverless-helpers-lib/src/taskrouter/index.ts b/tech-matters-serverless-helpers-lib/src/taskrouter/index.ts index a77fada8..22f49ecd 100644 --- a/tech-matters-serverless-helpers-lib/src/taskrouter/index.ts +++ b/tech-matters-serverless-helpers-lib/src/taskrouter/index.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import type { EventFields } from './eventFields'; diff --git a/tech-matters-serverless-helpers-lib/src/tokenValidator.ts b/tech-matters-serverless-helpers-lib/src/tokenValidator.ts index 60118e82..69d6e3a0 100644 --- a/tech-matters-serverless-helpers-lib/src/tokenValidator.ts +++ b/tech-matters-serverless-helpers-lib/src/tokenValidator.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { validator } from 'twilio-flex-token-validator'; import { EnvironmentVariables, diff --git a/tech-matters-serverless-helpers-lib/tests/tokenValidator.test.ts b/tech-matters-serverless-helpers-lib/tests/tokenValidator.test.ts index c9ae3fec..a1eeb951 100644 --- a/tech-matters-serverless-helpers-lib/tests/tokenValidator.test.ts +++ b/tech-matters-serverless-helpers-lib/tests/tokenValidator.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import each from 'jest-each'; import * as tftv from 'twilio-flex-token-validator'; diff --git a/tech-matters-serverless-helpers-lib/tests/twilioGlobals.ts b/tech-matters-serverless-helpers-lib/tests/twilioGlobals.ts index fd21c8fd..bcc1ae10 100644 --- a/tech-matters-serverless-helpers-lib/tests/twilioGlobals.ts +++ b/tech-matters-serverless-helpers-lib/tests/twilioGlobals.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + const Twilio = require('twilio'); class TwilioResponse { diff --git a/tests/adjustChatCapacity.test.ts b/tests/adjustChatCapacity.test.ts index db988ebd..0bf3924e 100644 --- a/tests/adjustChatCapacity.test.ts +++ b/tests/adjustChatCapacity.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as adjustChatCapacity, Body } from '../functions/adjustChatCapacity'; diff --git a/tests/assignOfflineContact.test.ts b/tests/assignOfflineContact.test.ts index 9190cdeb..5ed54947 100644 --- a/tests/assignOfflineContact.test.ts +++ b/tests/assignOfflineContact.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import each from 'jest-each'; import { handler as assignOfflineContact, Body } from '../functions/assignOfflineContact'; diff --git a/tests/assignOfflineContactInit.test.ts b/tests/assignOfflineContactInit.test.ts index fde3f05a..c5ee7949 100644 --- a/tests/assignOfflineContactInit.test.ts +++ b/tests/assignOfflineContactInit.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import each from 'jest-each'; import { handler as assignOfflineContactInit, Body } from '../functions/assignOfflineContactInit'; diff --git a/tests/autopilotRedirect.test.ts b/tests/autopilotRedirect.test.ts index d5b4326a..4b413707 100644 --- a/tests/autopilotRedirect.test.ts +++ b/tests/autopilotRedirect.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as autopilotRedirect, Event } from '../functions/autopilotRedirect.protected'; diff --git a/tests/checkBlockList.test.ts b/tests/checkBlockList.test.ts index a14380f9..d6593853 100644 --- a/tests/checkBlockList.test.ts +++ b/tests/checkBlockList.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as checkBlockList, Event } from '../functions/checkBlockList.protected'; diff --git a/tests/createContactlessTask.test.ts b/tests/createContactlessTask.test.ts index 1848b92b..b0bdd93c 100644 --- a/tests/createContactlessTask.test.ts +++ b/tests/createContactlessTask.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as createContactlessTask, Body } from '../functions/createContactlessTask'; diff --git a/tests/getMessages.test.ts b/tests/getMessages.test.ts index 8036bd7f..c3cf0304 100644 --- a/tests/getMessages.test.ts +++ b/tests/getMessages.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as getMessages, Body } from '../functions/getMessages'; diff --git a/tests/getTranslation.test.ts b/tests/getTranslation.test.ts index 53481bee..1ec47cf9 100644 --- a/tests/getTranslation.test.ts +++ b/tests/getTranslation.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as getTranslation, Body } from '../functions/getTranslation'; diff --git a/tests/helpers.ts b/tests/helpers.ts index fa78e417..03093af6 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable */ // @ts-nocheck const fs = require("fs"); diff --git a/tests/helpers/addCustomerExternalId.test.ts b/tests/helpers/addCustomerExternalId.test.ts index ff1de9be..a6266f59 100644 --- a/tests/helpers/addCustomerExternalId.test.ts +++ b/tests/helpers/addCustomerExternalId.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { addCustomerExternalId, Body } from '../../functions/helpers/addCustomerExternalId.private'; import helpers from '../helpers'; diff --git a/tests/issueSyncToken.test.ts b/tests/issueSyncToken.test.ts index e7e41c92..48b50ae1 100644 --- a/tests/issueSyncToken.test.ts +++ b/tests/issueSyncToken.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import * as jwt from 'jsonwebtoken'; import { handler as issueSyncToken, AuthEvent } from '../functions/issueSyncToken'; diff --git a/tests/operatingHours.test.ts b/tests/operatingHours.test.ts index 8c1d2d0b..cfd95a81 100644 --- a/tests/operatingHours.test.ts +++ b/tests/operatingHours.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import MockDate from 'mockdate'; import { handler as operatingHours, Body } from '../functions/operatingHours'; diff --git a/tests/populateCounselors.test.ts b/tests/populateCounselors.test.ts index a9ffb952..4d479903 100644 --- a/tests/populateCounselors.test.ts +++ b/tests/populateCounselors.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as populateCounselors, Body } from '../functions/populateCounselors'; diff --git a/tests/reportToIWF.test.ts b/tests/reportToIWF.test.ts index dddb7503..af5a5a69 100644 --- a/tests/reportToIWF.test.ts +++ b/tests/reportToIWF.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import axios from 'axios'; import { omit } from 'lodash'; diff --git a/tests/selfReportToIWF.test.ts b/tests/selfReportToIWF.test.ts index 80caa0a1..ad6e04ec 100644 --- a/tests/selfReportToIWF.test.ts +++ b/tests/selfReportToIWF.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + /* eslint-disable no-var */ import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import axios from 'axios'; diff --git a/tests/sendSystemMessage.test.ts b/tests/sendSystemMessage.test.ts index 2a2e4ca7..012e6be1 100644 --- a/tests/sendSystemMessage.test.ts +++ b/tests/sendSystemMessage.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as sendSystemMessage, Body } from '../functions/sendSystemMessage'; diff --git a/tests/taskrouterListeners/createContactListener.test.ts b/tests/taskrouterListeners/createContactListener.test.ts index e1ad1ddf..4e7935c1 100644 --- a/tests/taskrouterListeners/createContactListener.test.ts +++ b/tests/taskrouterListeners/createContactListener.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { EventFields, EventType, diff --git a/tests/taskrouterListeners/janitorListener.test.ts b/tests/taskrouterListeners/janitorListener.test.ts index 5323bf05..1e308152 100644 --- a/tests/taskrouterListeners/janitorListener.test.ts +++ b/tests/taskrouterListeners/janitorListener.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { EventFields, EventType, diff --git a/tests/taskrouterListeners/postSurveyListener.test.ts b/tests/taskrouterListeners/postSurveyListener.test.ts index ab7b30f2..2d143a17 100644 --- a/tests/taskrouterListeners/postSurveyListener.test.ts +++ b/tests/taskrouterListeners/postSurveyListener.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { EventFields, EventType, diff --git a/tests/taskrouterListeners/transfersListener.test.ts b/tests/taskrouterListeners/transfersListener.test.ts index 555817ef..e0731a7e 100644 --- a/tests/taskrouterListeners/transfersListener.test.ts +++ b/tests/taskrouterListeners/transfersListener.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { EventFields, EventType, diff --git a/tests/transferChatStart.test.ts b/tests/transferChatStart.test.ts index 10cac2a2..68de1a94 100644 --- a/tests/transferChatStart.test.ts +++ b/tests/transferChatStart.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as transferChatStart, Body } from '../functions/transferChatStart'; diff --git a/tests/webhooks/FlexChannelUpdate.test.ts b/tests/webhooks/FlexChannelUpdate.test.ts index f9ef18ef..fd3badce 100644 --- a/tests/webhooks/FlexChannelUpdate.test.ts +++ b/tests/webhooks/FlexChannelUpdate.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import { handler as FlexChannelUpdate, diff --git a/tests/webhooks/instagram/FlexToInstagram.test.ts b/tests/webhooks/instagram/FlexToInstagram.test.ts index f0ccd8f0..a240cef4 100644 --- a/tests/webhooks/instagram/FlexToInstagram.test.ts +++ b/tests/webhooks/instagram/FlexToInstagram.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import each from 'jest-each'; import axios from 'axios'; import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; diff --git a/tests/webhooks/instagram/InstagramToFlex.test.ts b/tests/webhooks/instagram/InstagramToFlex.test.ts index 9157382c..14d0bd94 100644 --- a/tests/webhooks/instagram/InstagramToFlex.test.ts +++ b/tests/webhooks/instagram/InstagramToFlex.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import each from 'jest-each'; import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import crypto from 'crypto'; diff --git a/tests/webhooks/line/FlexToLine.test.ts b/tests/webhooks/line/FlexToLine.test.ts index 04b63ebf..28c40041 100644 --- a/tests/webhooks/line/FlexToLine.test.ts +++ b/tests/webhooks/line/FlexToLine.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import axios from 'axios'; import each from 'jest-each'; import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; diff --git a/tests/webhooks/line/LineToFlex.test.ts b/tests/webhooks/line/LineToFlex.test.ts index 206f791b..69dd37bd 100644 --- a/tests/webhooks/line/LineToFlex.test.ts +++ b/tests/webhooks/line/LineToFlex.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import each from 'jest-each'; import { handler as LineToFlex, Body } from '../../../functions/webhooks/line/LineToFlex'; diff --git a/tests/webhooks/twitter/FlexToTwitter.test.ts b/tests/webhooks/twitter/FlexToTwitter.test.ts index d0bd4285..f0cb4888 100644 --- a/tests/webhooks/twitter/FlexToTwitter.test.ts +++ b/tests/webhooks/twitter/FlexToTwitter.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import Twit from 'twit'; import each from 'jest-each'; diff --git a/tests/webhooks/twitter/TwitterToFlex.test.ts b/tests/webhooks/twitter/TwitterToFlex.test.ts index f49b168e..0279dd01 100644 --- a/tests/webhooks/twitter/TwitterToFlex.test.ts +++ b/tests/webhooks/twitter/TwitterToFlex.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; import each from 'jest-each'; import { handler as TwitterToFlex, Body } from '../../../functions/webhooks/twitter/TwitterToFlex';