From 82858d2c0dade55c3709e6548246446e6df55632 Mon Sep 17 00:00:00 2001 From: Ty Eggen Date: Thu, 27 Sep 2018 21:29:56 -0700 Subject: [PATCH 1/7] Removed node_modules directory from repo --- .../node_modules/ask-sdk-core/CHANGELOG.md | 23 - .../custom/node_modules/ask-sdk-core/LICENSE | 201 -- .../node_modules/ask-sdk-core/README.md | 53 - .../dist/attributes/AttributesManager.d.ts | 55 - .../dist/attributes/AttributesManager.js | 15 - .../dist/attributes/AttributesManager.js.map | 1 - .../attributes/AttributesManagerFactory.d.ts | 13 - .../attributes/AttributesManagerFactory.js | 137 - .../AttributesManagerFactory.js.map | 1 - .../persistence/PersistenceAdapter.d.ts | 12 - .../persistence/PersistenceAdapter.js | 15 - .../persistence/PersistenceAdapter.js.map | 1 - .../dispatcher/DefaultRequestDispatcher.d.ts | 45 - .../dispatcher/DefaultRequestDispatcher.js | 222 -- .../DefaultRequestDispatcher.js.map | 1 - .../dist/dispatcher/RequestDispatcher.d.ts | 8 - .../dist/dispatcher/RequestDispatcher.js | 15 - .../dist/dispatcher/RequestDispatcher.js.map | 1 - .../dispatcher/error/DefaultErrorMapper.d.ts | 19 - .../dispatcher/error/DefaultErrorMapper.js | 91 - .../error/DefaultErrorMapper.js.map | 1 - .../dist/dispatcher/error/ErrorHandler.d.ts | 9 - .../dist/dispatcher/error/ErrorHandler.js | 15 - .../dist/dispatcher/error/ErrorHandler.js.map | 1 - .../dist/dispatcher/error/ErrorMapper.d.ts | 8 - .../dist/dispatcher/error/ErrorMapper.js | 15 - .../dist/dispatcher/error/ErrorMapper.js.map | 1 - .../handler/DefaultHandlerAdapter.d.ts | 21 - .../request/handler/DefaultHandlerAdapter.js | 80 - .../handler/DefaultHandlerAdapter.js.map | 1 - .../handler/DefaultRequestHandlerChain.d.ts | 19 - .../handler/DefaultRequestHandlerChain.js | 44 - .../handler/DefaultRequestHandlerChain.js.map | 1 - .../handler/GenericRequestHandlerChain.d.ts | 31 - .../handler/GenericRequestHandlerChain.js | 48 - .../handler/GenericRequestHandlerChain.js.map | 1 - .../request/handler/HandlerAdapter.d.ts | 9 - .../request/handler/HandlerAdapter.js | 15 - .../request/handler/HandlerAdapter.js.map | 1 - .../request/handler/HandlerInput.d.ts | 14 - .../request/handler/HandlerInput.js | 15 - .../request/handler/HandlerInput.js.map | 1 - .../request/handler/RequestHandler.d.ts | 9 - .../request/handler/RequestHandler.js | 15 - .../request/handler/RequestHandler.js.map | 1 - .../request/handler/RequestHandlerChain.d.ts | 10 - .../request/handler/RequestHandlerChain.js | 15 - .../handler/RequestHandlerChain.js.map | 1 - .../interceptor/RequestInterceptor.d.ts | 7 - .../request/interceptor/RequestInterceptor.js | 15 - .../interceptor/RequestInterceptor.js.map | 1 - .../interceptor/ResponseInterceptor.d.ts | 8 - .../interceptor/ResponseInterceptor.js | 15 - .../interceptor/ResponseInterceptor.js.map | 1 - .../request/mapper/DefaultRequestMapper.d.ts | 19 - .../request/mapper/DefaultRequestMapper.js | 91 - .../mapper/DefaultRequestMapper.js.map | 1 - .../request/mapper/RequestMapper.d.ts | 8 - .../request/mapper/RequestMapper.js | 15 - .../request/mapper/RequestMapper.js.map | 1 - .../node_modules/ask-sdk-core/dist/index.d.ts | 33 - .../node_modules/ask-sdk-core/dist/index.js | 49 - .../ask-sdk-core/dist/index.js.map | 1 - .../dist/response/ImageHelper.d.ts | 37 - .../ask-sdk-core/dist/response/ImageHelper.js | 79 - .../dist/response/ImageHelper.js.map | 1 - .../dist/response/PlainTextContentHelper.d.ts | 13 - .../dist/response/PlainTextContentHelper.js | 63 - .../response/PlainTextContentHelper.js.map | 1 - .../dist/response/ResponseBuilder.d.ts | 152 -- .../dist/response/ResponseBuilder.js | 15 - .../dist/response/ResponseBuilder.js.map | 1 - .../dist/response/ResponseFactory.d.ts | 9 - .../dist/response/ResponseFactory.js | 252 -- .../dist/response/ResponseFactory.js.map | 1 - .../dist/response/RichTextContentHelper.d.ts | 14 - .../dist/response/RichTextContentHelper.js | 63 - .../response/RichTextContentHelper.js.map | 1 - .../dist/response/TextContentHelper.d.ts | 30 - .../dist/response/TextContentHelper.js | 49 - .../dist/response/TextContentHelper.js.map | 1 - .../dist/service/DefaultApiClient.d.ts | 18 - .../dist/service/DefaultApiClient.js | 111 - .../dist/service/DefaultApiClient.js.map | 1 - .../ask-sdk-core/dist/skill/Skill.d.ts | 23 - .../ask-sdk-core/dist/skill/Skill.js | 120 - .../ask-sdk-core/dist/skill/Skill.js.map | 1 - .../dist/skill/SkillBuilders.d.ts | 7 - .../ask-sdk-core/dist/skill/SkillBuilders.js | 24 - .../dist/skill/SkillBuilders.js.map | 1 - .../dist/skill/SkillConfiguration.d.ts | 21 - .../dist/skill/SkillConfiguration.js | 15 - .../dist/skill/SkillConfiguration.js.map | 1 - .../dist/skill/factory/BaseSkillBuilder.d.ts | 25 - .../dist/skill/factory/BaseSkillBuilder.js | 15 - .../skill/factory/BaseSkillBuilder.js.map | 1 - .../dist/skill/factory/BaseSkillFactory.d.ts | 11 - .../dist/skill/factory/BaseSkillFactory.js | 185 -- .../skill/factory/BaseSkillFactory.js.map | 1 - .../skill/factory/CustomSkillBuilder.d.ts | 11 - .../dist/skill/factory/CustomSkillBuilder.js | 15 - .../skill/factory/CustomSkillBuilder.js.map | 1 - .../skill/factory/CustomSkillFactory.d.ts | 8 - .../dist/skill/factory/CustomSkillFactory.js | 50 - .../skill/factory/CustomSkillFactory.js.map | 1 - .../ask-sdk-core/dist/util/AskSdkUtils.d.ts | 13 - .../ask-sdk-core/dist/util/AskSdkUtils.js | 38 - .../ask-sdk-core/dist/util/AskSdkUtils.js.map | 1 - .../node_modules/ask-sdk-core/package.json | 82 - .../custom/node_modules/ask-sdk-model/LICENSE | 201 -- .../node_modules/ask-sdk-model/index.d.ts | 2282 ----------------- .../node_modules/ask-sdk-model/index.js | 911 ------- .../node_modules/ask-sdk-model/index.js.map | 1 - .../node_modules/ask-sdk-model/package.json | 51 - lambda/custom/package-lock.json | 376 +++ lambda/custom/package.json | 4 +- 116 files changed, 379 insertions(+), 6626 deletions(-) delete mode 100644 lambda/custom/node_modules/ask-sdk-core/CHANGELOG.md delete mode 100644 lambda/custom/node_modules/ask-sdk-core/LICENSE delete mode 100644 lambda/custom/node_modules/ask-sdk-core/README.md delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/index.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/index.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/index.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js delete mode 100644 lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-core/package.json delete mode 100644 lambda/custom/node_modules/ask-sdk-model/LICENSE delete mode 100644 lambda/custom/node_modules/ask-sdk-model/index.d.ts delete mode 100644 lambda/custom/node_modules/ask-sdk-model/index.js delete mode 100644 lambda/custom/node_modules/ask-sdk-model/index.js.map delete mode 100644 lambda/custom/node_modules/ask-sdk-model/package.json diff --git a/lambda/custom/node_modules/ask-sdk-core/CHANGELOG.md b/lambda/custom/node_modules/ask-sdk-core/CHANGELOG.md deleted file mode 100644 index 0d9223a..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/CHANGELOG.md +++ /dev/null @@ -1,23 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - - -## [2.0.7](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/compare/v2.0.6...v2.0.7) (2018-06-22) - - -### Bug Fixes - -* update attributes persistence behavior of ask-sdk-v1adapter ([51432df](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/commit/51432df)), closes [#414](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/414) - - - - - -## [2.0.5](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/compare/v2.0.4...v2.0.5) (2018-05-16) - - -### Bug Fixes - -* update execution behavior of interceptor ([352f638](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/commit/352f638)) diff --git a/lambda/custom/node_modules/ask-sdk-core/LICENSE b/lambda/custom/node_modules/ask-sdk-core/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/lambda/custom/node_modules/ask-sdk-core/README.md b/lambda/custom/node_modules/ask-sdk-core/README.md deleted file mode 100644 index cfb381d..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/README.md +++ /dev/null @@ -1,53 +0,0 @@ -Core SDK package contains basic components and default implementations of ASK SDK v2 for Node.js. - -## What is ASK SDK v2 for Node.js - -The ASK SDK v2 for Node.js is an open-source Alexa Skill Development Kit. ASK SDK v2 for Node.js makes it easier for you to build highly engaging skills, by allowing you to spend more time on implementing features and less on writing boiler-plate code. - -## Installing -To use the Core SDK package, you need to install two modules: core SDK and model(peer dependency of core SDK) within your NPM project. Run the following commands in the terminal to install them: - -``` -npm install --save ask-sdk-core -``` - -``` -npm install --save ask-sdk-model -``` - -## Usage and Getting Started - -You can find a getting started guide [here](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki). - -## Usage with TypeScript -The Core SDK package for Node.js bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api. - -### Pre-requisites -Before you can begin using these TypeScript definitions with your project, you need to make sure your project meets a few of these requirements: -- Use TypeScript v2.x -- Includes the TypeScript definitions for node. You can use npm to install this by typing the following into a terminal window: - -``` -npm install --save-dev @types/node -``` - -### In Node.js -To use the TypeScript definition files within a Node.js project, simply import ask-sdk-core as below: - -In a TypeScript file: - -```typescript -import * as Alexa from 'ask-sdk-core'; -``` - -In a JavaScript file: - -```javascript -const Alexa = require('ask-sdk-core'); -``` - -## Opening Issues -For bug reports, feature requests and questions, we would like to hear about it. Search the [existing issues](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues) and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of the SDK, Node.js or browser environment and OS you’re using. Please include a stack trace and reduced repro case when appropriate, too. - -## License -This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information. diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.d.ts deleted file mode 100644 index 6f8ece2..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * An interface handling three level attributes: request, session and persistence. - */ -export interface AttributesManager { - /** - * Provides request attributes for the request life cycle. - * @returns {Object.} - */ - getRequestAttributes(): { - [key: string]: any; - }; - /** - * Provides session attributes extracted from request envelope. - * @returns {Object.} - */ - getSessionAttributes(): { - [key: string]: any; - }; - /** - * Provides persistent attributes retrieved and cached from persistence adapter. - * @returns {Promise>} - */ - getPersistentAttributes(): Promise<{ - [key: string]: any; - }>; - /** - * Overwrites the request attributes value. - * @param {Object.} requestAttributes - * @returns {void} - */ - setRequestAttributes(requestAttributes: { - [key: string]: any; - }): void; - /** - * Overwrites the session attributes value. - * @param {Object.} sessionAttributes - * @returns {void} - */ - setSessionAttributes(sessionAttributes: { - [key: string]: any; - }): void; - /** - * Overwrites and caches the persistent attributes value. Note no persistence layer calls are being made in this function. - * @param {Object.} persistentAttributes - * @returns {void} - */ - setPersistentAttributes(persistentAttributes: { - [key: string]: any; - }): void; - /** - * Save persistent attributes to the persistence layer if a persistence adapter is provided. - * @return {Promise} - */ - savePersistentAttributes(): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js deleted file mode 100644 index 4a02187..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=AttributesManager.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js.map deleted file mode 100644 index 2f477f1..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AttributesManager.js","sourceRoot":"","sources":["../../lib/attributes/AttributesManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.d.ts deleted file mode 100644 index 604371e..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { RequestEnvelope } from 'ask-sdk-model'; -import { AttributesManager } from './AttributesManager'; -import { PersistenceAdapter } from './persistence/PersistenceAdapter'; -/** - * Provider for attributes that can be stored on three levels: request, session and persistence. - */ -export declare class AttributesManagerFactory { - static init(options: { - requestEnvelope: RequestEnvelope; - persistenceAdapter?: PersistenceAdapter; - }): AttributesManager; - private constructor(); -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js deleted file mode 100644 index 5466ce3..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var AskSdkUtils_1 = require("../util/AskSdkUtils"); -/** - * Provider for attributes that can be stored on three levels: request, session and persistence. - */ -var AttributesManagerFactory = /** @class */ (function () { - function AttributesManagerFactory() { - } - AttributesManagerFactory.init = function (options) { - if (!options.requestEnvelope) { - throw AskSdkUtils_1.createAskSdkError('AttributesManagerFactory', 'RequestEnvelope cannot be null or undefined!'); - } - var thisRequestAttributes = {}; - var thisSessionAttributes = options.requestEnvelope.session - ? options.requestEnvelope.session.attributes - ? JSON.parse(JSON.stringify(options.requestEnvelope.session.attributes)) - : {} - : undefined; - var thisPersistentAttributes; - var persistentAttributesSet = false; - return { - getRequestAttributes: function () { - return thisRequestAttributes; - }, - getSessionAttributes: function () { - if (!options.requestEnvelope.session) { - throw AskSdkUtils_1.createAskSdkError('AttributesManager', 'Cannot get SessionAttributes from out of session request!'); - } - return thisSessionAttributes; - }, - getPersistentAttributes: function () { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - if (!options.persistenceAdapter) { - throw AskSdkUtils_1.createAskSdkError('AttributesManager', 'Cannot get PersistentAttributes without PersistenceManager'); - } - if (!!persistentAttributesSet) return [3 /*break*/, 2]; - return [4 /*yield*/, options.persistenceAdapter.getAttributes(options.requestEnvelope)]; - case 1: - thisPersistentAttributes = _a.sent(); - persistentAttributesSet = true; - _a.label = 2; - case 2: return [2 /*return*/, thisPersistentAttributes]; - } - }); - }); - }, - setRequestAttributes: function (requestAttributes) { - thisRequestAttributes = requestAttributes; - }, - setSessionAttributes: function (sessionAttributes) { - if (!options.requestEnvelope.session) { - throw AskSdkUtils_1.createAskSdkError('AttributesManager', 'Cannot set SessionAttributes to out of session request!'); - } - thisSessionAttributes = sessionAttributes; - }, - setPersistentAttributes: function (persistentAttributes) { - if (!options.persistenceAdapter) { - throw AskSdkUtils_1.createAskSdkError('AttributesManager', 'Cannot set PersistentAttributes without persistence adapter!'); - } - thisPersistentAttributes = persistentAttributes; - persistentAttributesSet = true; - }, - savePersistentAttributes: function () { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - if (!options.persistenceAdapter) { - throw AskSdkUtils_1.createAskSdkError('AttributesManager', 'Cannot save PersistentAttributes without persistence adapter!'); - } - if (!persistentAttributesSet) return [3 /*break*/, 2]; - return [4 /*yield*/, options.persistenceAdapter.saveAttributes(options.requestEnvelope, thisPersistentAttributes)]; - case 1: - _a.sent(); - _a.label = 2; - case 2: return [2 /*return*/]; - } - }); - }); - }, - }; - }; - return AttributesManagerFactory; -}()); -exports.AttributesManagerFactory = AttributesManagerFactory; -//# sourceMappingURL=AttributesManagerFactory.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js.map deleted file mode 100644 index 0a41f69..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AttributesManagerFactory.js","sourceRoot":"","sources":["../../lib/attributes/AttributesManagerFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGb,mDAAwD;AAIxD;;GAEG;AACH;IAoFI;IAAuB,CAAC;IAnFV,6BAAI,GAAlB,UAAmB,OAGlB;QACG,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE;YAC1B,MAAM,+BAAiB,CACnB,0BAA0B,EAC1B,8CAA8C,CACjD,CAAC;SACL;QAED,IAAI,qBAAqB,GAA4B,EAAE,CAAC;QACxD,IAAI,qBAAqB,GAA4B,OAAO,CAAC,eAAe,CAAC,OAAO;YACjC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU;gBAC1C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;gBACxE,CAAC,CAAC,EAAE;YACN,CAAC,CAAC,SAAS,CAAC;QAC/D,IAAI,wBAAiD,CAAC;QACtD,IAAI,uBAAuB,GAAG,KAAK,CAAC;QAEpC,OAAO;YACH,oBAAoB,EAApB;gBACI,OAAO,qBAAqB,CAAC;YACjC,CAAC;YACD,oBAAoB,EAApB;gBACI,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,EAAE;oBAClC,MAAM,+BAAiB,CACnB,mBAAmB,EACnB,2DAA2D,CAAC,CAAC;iBACpE;gBAED,OAAO,qBAAqB,CAAC;YACjC,CAAC;YACK,uBAAuB,EAA7B;;;;;gCACI,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE;oCAC7B,MAAM,+BAAiB,CACnB,mBAAmB,EACnB,4DAA4D,CAAC,CAAC;iCACrE;qCAEG,CAAC,uBAAuB,EAAxB,wBAAwB;gCACG,qBAAM,OAAO,CAAC,kBAAkB,CAAC,aAAa,CAAC,OAAO,CAAC,eAAe,CAAC,EAAA;;gCAAlG,wBAAwB,GAAG,SAAuE,CAAC;gCACnG,uBAAuB,GAAG,IAAI,CAAC;;oCAGnC,sBAAO,wBAAwB,EAAC;;;;aACnC;YACD,oBAAoB,EAApB,UAAqB,iBAA0C;gBAC3D,qBAAqB,GAAG,iBAAiB,CAAC;YAC9C,CAAC;YACD,oBAAoB,EAApB,UAAqB,iBAA0C;gBAC3D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,EAAE;oBAClC,MAAM,+BAAiB,CACnB,mBAAmB,EACnB,yDAAyD,CAAC,CAAC;iBAClE;gBAED,qBAAqB,GAAG,iBAAiB,CAAC;YAC9C,CAAC;YACD,uBAAuB,EAAvB,UAAwB,oBAA6C;gBACjE,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE;oBAC7B,MAAM,+BAAiB,CACnB,mBAAmB,EACnB,8DAA8D,CAAC,CAAC;iBACvE;gBAED,wBAAwB,GAAG,oBAAoB,CAAC;gBAChD,uBAAuB,GAAG,IAAI,CAAC;YACnC,CAAC;YACK,wBAAwB,EAA9B;;;;;gCACI,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE;oCAC7B,MAAM,+BAAiB,CACnB,mBAAmB,EACnB,+DAA+D,CAAC,CAAC;iCACxE;qCAEG,uBAAuB,EAAvB,wBAAuB;gCACvB,qBAAM,OAAO,CAAC,kBAAkB,CAAC,cAAc,CAAC,OAAO,CAAC,eAAe,EAAE,wBAAwB,CAAC,EAAA;;gCAAlG,SAAkG,CAAC;;;;;;aAE1G;SACJ,CAAC;IACN,CAAC;IAGL,+BAAC;AAAD,CAAC,AArFD,IAqFC;AArFY,4DAAwB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.d.ts deleted file mode 100644 index e7b1512..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { RequestEnvelope } from 'ask-sdk-model'; -/** - * An interface for storing and retrieving persistent attributes from persistence tier given request envelope. - */ -export interface PersistenceAdapter { - getAttributes(requestEnvelope: RequestEnvelope): Promise<{ - [key: string]: any; - }>; - saveAttributes(requestEnvelope: RequestEnvelope, attributes: { - [key: string]: any; - }): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js deleted file mode 100644 index 142f973..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PersistenceAdapter.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js.map deleted file mode 100644 index cf9dcd5..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/attributes/persistence/PersistenceAdapter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PersistenceAdapter.js","sourceRoot":"","sources":["../../../lib/attributes/persistence/PersistenceAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.d.ts deleted file mode 100644 index f2b702f..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { ErrorMapper } from './error/ErrorMapper'; -import { HandlerAdapter } from './request/handler/HandlerAdapter'; -import { HandlerInput } from './request/handler/HandlerInput'; -import { RequestInterceptor } from './request/interceptor/RequestInterceptor'; -import { ResponseInterceptor } from './request/interceptor/ResponseInterceptor'; -import { RequestMapper } from './request/mapper/RequestMapper'; -import { RequestDispatcher } from './RequestDispatcher'; -/** - * Default implementation of {@link RequestDispatcher}. - */ -export declare class DefaultRequestDispatcher implements RequestDispatcher { - protected requestMappers: RequestMapper[]; - protected errorMapper: ErrorMapper; - protected handlerAdapters: HandlerAdapter[]; - protected requestInterceptors: RequestInterceptor[]; - protected responseInterceptors: ResponseInterceptor[]; - constructor(options: { - requestMappers: RequestMapper[]; - handlerAdapters: HandlerAdapter[]; - errorMapper?: ErrorMapper; - requestInterceptors?: RequestInterceptor[]; - responseInterceptors?: ResponseInterceptor[]; - }); - /** - * Main entry point for dispatching logic. - * Dispatches handlerInput to requestHandlers and error, if any, to _errorHandlers - * @param {HandlerInput} handlerInput - * @returns {Promise} - */ - dispatch(handlerInput: HandlerInput): Promise; - /** - * Main logic for request dispatching. Binds the forwarding function to the handlerInput - * @param {HandlerInput} handlerInput - * @returns {Promise} - */ - protected dispatchRequest(handlerInput: HandlerInput): Promise; - /** - * Main logic for error dispatching. - * @param {HandlerInput} handlerInput - * @param {Error} error - * @returns {Promise} - */ - protected dispatchError(handlerInput: HandlerInput, error: Error): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js deleted file mode 100644 index d92580a..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var AskSdkUtils_1 = require("../util/AskSdkUtils"); -/** - * Default implementation of {@link RequestDispatcher}. - */ -var DefaultRequestDispatcher = /** @class */ (function () { - function DefaultRequestDispatcher(options) { - this.requestMappers = options.requestMappers; - this.handlerAdapters = options.handlerAdapters; - this.errorMapper = options.errorMapper; - this.requestInterceptors = options.requestInterceptors; - this.responseInterceptors = options.responseInterceptors; - } - /** - * Main entry point for dispatching logic. - * Dispatches handlerInput to requestHandlers and error, if any, to _errorHandlers - * @param {HandlerInput} handlerInput - * @returns {Promise} - */ - DefaultRequestDispatcher.prototype.dispatch = function (handlerInput) { - return __awaiter(this, void 0, void 0, function () { - var response, _i, _a, requestInterceptor, _b, _c, responseInterceptor, err_1; - return __generator(this, function (_d) { - switch (_d.label) { - case 0: - _d.trys.push([0, 10, , 12]); - if (!this.requestInterceptors) return [3 /*break*/, 4]; - _i = 0, _a = this.requestInterceptors; - _d.label = 1; - case 1: - if (!(_i < _a.length)) return [3 /*break*/, 4]; - requestInterceptor = _a[_i]; - return [4 /*yield*/, requestInterceptor.process(handlerInput)]; - case 2: - _d.sent(); - _d.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [4 /*yield*/, this.dispatchRequest(handlerInput)]; - case 5: - // Dispatch request to handler chain - response = _d.sent(); - if (!this.responseInterceptors) return [3 /*break*/, 9]; - _b = 0, _c = this.responseInterceptors; - _d.label = 6; - case 6: - if (!(_b < _c.length)) return [3 /*break*/, 9]; - responseInterceptor = _c[_b]; - return [4 /*yield*/, responseInterceptor.process(handlerInput, response)]; - case 7: - _d.sent(); - _d.label = 8; - case 8: - _b++; - return [3 /*break*/, 6]; - case 9: return [3 /*break*/, 12]; - case 10: - err_1 = _d.sent(); - return [4 /*yield*/, this.dispatchError(handlerInput, err_1)]; - case 11: - response = _d.sent(); - return [3 /*break*/, 12]; - case 12: return [2 /*return*/, response]; - } - }); - }); - }; - /** - * Main logic for request dispatching. Binds the forwarding function to the handlerInput - * @param {HandlerInput} handlerInput - * @returns {Promise} - */ - DefaultRequestDispatcher.prototype.dispatchRequest = function (handlerInput) { - return __awaiter(this, void 0, void 0, function () { - var handlerChain, _i, _a, requestMapper, handler, requestInterceptors, responseInterceptors, adapter, _b, _c, handlerAdapter, _d, requestInterceptors_1, requestInterceptor, response, _e, responseInterceptors_1, responseInterceptor; - return __generator(this, function (_f) { - switch (_f.label) { - case 0: - _i = 0, _a = this.requestMappers; - _f.label = 1; - case 1: - if (!(_i < _a.length)) return [3 /*break*/, 4]; - requestMapper = _a[_i]; - return [4 /*yield*/, requestMapper.getRequestHandlerChain(handlerInput)]; - case 2: - handlerChain = _f.sent(); - if (handlerChain) { - return [3 /*break*/, 4]; - } - _f.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: - if (!handlerChain) { - throw AskSdkUtils_1.createAskSdkError(this.constructor.name, "Could not find handler that can handle the request: " + JSON.stringify(handlerInput.requestEnvelope.request, null, 2)); - } - handler = handlerChain.getRequestHandler(); - requestInterceptors = handlerChain.getRequestInterceptors(); - responseInterceptors = handlerChain.getResponseInterceptors(); - for (_b = 0, _c = this.handlerAdapters; _b < _c.length; _b++) { - handlerAdapter = _c[_b]; - if (handlerAdapter.supports(handler)) { - adapter = handlerAdapter; - break; - } - } - if (!adapter) { - throw AskSdkUtils_1.createAskSdkError(this.constructor.name, "Could not find the handler adapter that supports the request handler."); - } - if (!requestInterceptors) return [3 /*break*/, 8]; - _d = 0, requestInterceptors_1 = requestInterceptors; - _f.label = 5; - case 5: - if (!(_d < requestInterceptors_1.length)) return [3 /*break*/, 8]; - requestInterceptor = requestInterceptors_1[_d]; - return [4 /*yield*/, requestInterceptor.process(handlerInput)]; - case 6: - _f.sent(); - _f.label = 7; - case 7: - _d++; - return [3 /*break*/, 5]; - case 8: return [4 /*yield*/, adapter.execute(handlerInput, handler)]; - case 9: - response = _f.sent(); - if (!responseInterceptors) return [3 /*break*/, 13]; - _e = 0, responseInterceptors_1 = responseInterceptors; - _f.label = 10; - case 10: - if (!(_e < responseInterceptors_1.length)) return [3 /*break*/, 13]; - responseInterceptor = responseInterceptors_1[_e]; - return [4 /*yield*/, responseInterceptor.process(handlerInput, response)]; - case 11: - _f.sent(); - _f.label = 12; - case 12: - _e++; - return [3 /*break*/, 10]; - case 13: return [2 /*return*/, response]; - } - }); - }); - }; - /** - * Main logic for error dispatching. - * @param {HandlerInput} handlerInput - * @param {Error} error - * @returns {Promise} - */ - DefaultRequestDispatcher.prototype.dispatchError = function (handlerInput, error) { - return __awaiter(this, void 0, void 0, function () { - var handler; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - if (!this.errorMapper) return [3 /*break*/, 2]; - return [4 /*yield*/, this.errorMapper.getErrorHandler(handlerInput, error)]; - case 1: - handler = _a.sent(); - if (handler) { - return [2 /*return*/, handler.handle(handlerInput, error)]; - } - _a.label = 2; - case 2: throw error; - } - }); - }); - }; - return DefaultRequestDispatcher; -}()); -exports.DefaultRequestDispatcher = DefaultRequestDispatcher; -//# sourceMappingURL=DefaultRequestDispatcher.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js.map deleted file mode 100644 index 0dc9b95..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/DefaultRequestDispatcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultRequestDispatcher.js","sourceRoot":"","sources":["../../lib/dispatcher/DefaultRequestDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGb,mDAAwD;AAWxD;;GAEG;AACH;IAOI,kCAAY,OAMX;QACG,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC7C,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC/C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;QACvD,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACU,2CAAQ,GAArB,UAAsB,YAA2B;;;;;;;6BAIrC,IAAI,CAAC,mBAAmB,EAAxB,wBAAwB;8BACiC,EAAxB,KAAA,IAAI,CAAC,mBAAmB;;;6BAAxB,CAAA,cAAwB,CAAA;wBAA9C,kBAAkB;wBACzB,qBAAM,kBAAkB,CAAC,OAAO,CAAC,YAAY,CAAC,EAAA;;wBAA9C,SAA8C,CAAC;;;wBADlB,IAAwB,CAAA;;4BAMlD,qBAAM,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,EAAA;;wBADnD,oCAAoC;wBACpC,QAAQ,GAAG,SAAwC,CAAC;6BAGhD,IAAI,CAAC,oBAAoB,EAAzB,wBAAyB;8BACkC,EAAzB,KAAA,IAAI,CAAC,oBAAoB;;;6BAAzB,CAAA,cAAyB,CAAA;wBAAhD,mBAAmB;wBAC1B,qBAAM,mBAAmB,CAAC,OAAO,CAAC,YAAY,EAAE,QAAQ,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AAmB;8BACiC,EAAnB,2CAAmB;;;6BAAnB,CAAA,iCAAmB,CAAA;wBAAzC,kBAAkB;wBACzB,qBAAM,kBAAkB,CAAC,OAAO,CAAC,YAAY,CAAC,EAAA;;wBAA9C,SAA8C,CAAC;;;wBADlB,IAAmB,CAAA;;4BAMvC,qBAAM,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,EAAA;;wBAAvD,QAAQ,GAAG,SAA4C;6BAGzD,oBAAoB,EAApB,yBAAoB;8BACkC,EAApB,6CAAoB;;;6BAApB,CAAA,kCAAoB,CAAA;wBAA3C,mBAAmB;wBAC1B,qBAAM,mBAAmB,CAAC,OAAO,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAA;;wBAAzD,SAAyD,CAAC;;;wBAD5B,IAAoB,CAAA;;6BAK1D,sBAAO,QAAQ,EAAC;;;;KACnB;IAED;;;;;OAKG;IACa,gDAAa,GAA7B,UAA8B,YAA2B,EAC3B,KAAa;;;;;;6BACnC,IAAI,CAAC,WAAW,EAAhB,wBAAgB;wBACe,qBAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,EAAA;;wBAApF,OAAO,GAAkB,SAA2D;wBAC1F,IAAI,OAAO,EAAE;4BACT,sBAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,EAAC;yBAC9C;;4BAGL,MAAM,KAAK,CAAC;;;;KACf;IACL,+BAAC;AAAD,CAAC,AAjID,IAiIC;AAjIY,4DAAwB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.d.ts deleted file mode 100644 index 176990f..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { HandlerInput } from './request/handler/HandlerInput'; -/** - * An interface providing the logic for dispatching handler input to handler. - */ -export interface RequestDispatcher { - dispatch(handlerInput: HandlerInput): Promise | Response; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js deleted file mode 100644 index 02704e1..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=RequestDispatcher.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js.map deleted file mode 100644 index b6c2f24..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/RequestDispatcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RequestDispatcher.js","sourceRoot":"","sources":["../../lib/dispatcher/RequestDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.d.ts deleted file mode 100644 index dfd6287..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { HandlerInput } from '../request/handler/HandlerInput'; -import { ErrorHandler } from './ErrorHandler'; -import { ErrorMapper } from './ErrorMapper'; -/** - * Default implementation of {@link ErrorMapper}. - */ -export declare class DefaultErrorMapper implements ErrorMapper { - protected errorHandlers: ErrorHandler[]; - constructor(options: { - errorHandlers: ErrorHandler[]; - }); - /** - * Loops through the error handler array in order and finds the first handler that can handle the given input and error. - * @param {HandlerInput} handlerInput - * @param {Error} error - * @returns {Promise} Returns null if no capable error handler is found. - */ - getErrorHandler(handlerInput: HandlerInput, error: Error): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js deleted file mode 100644 index 135d97c..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Default implementation of {@link ErrorMapper}. - */ -var DefaultErrorMapper = /** @class */ (function () { - function DefaultErrorMapper(options) { - this.errorHandlers = options.errorHandlers; - } - /** - * Loops through the error handler array in order and finds the first handler that can handle the given input and error. - * @param {HandlerInput} handlerInput - * @param {Error} error - * @returns {Promise} Returns null if no capable error handler is found. - */ - DefaultErrorMapper.prototype.getErrorHandler = function (handlerInput, error) { - return __awaiter(this, void 0, void 0, function () { - var _i, _a, errorHandler; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _i = 0, _a = this.errorHandlers; - _b.label = 1; - case 1: - if (!(_i < _a.length)) return [3 /*break*/, 4]; - errorHandler = _a[_i]; - return [4 /*yield*/, errorHandler.canHandle(handlerInput, error)]; - case 2: - if (_b.sent()) { - return [2 /*return*/, errorHandler]; - } - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/, null]; - } - }); - }); - }; - return DefaultErrorMapper; -}()); -exports.DefaultErrorMapper = DefaultErrorMapper; -//# sourceMappingURL=DefaultErrorMapper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js.map deleted file mode 100644 index 8ffb212..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/DefaultErrorMapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultErrorMapper.js","sourceRoot":"","sources":["../../../lib/dispatcher/error/DefaultErrorMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMb;;GAEG;AACH;IAGI,4BAAY,OAA0C;QAClD,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACU,4CAAe,GAA5B,UAA6B,YAA2B,EAAE,KAAa;;;;;;8BACtB,EAAlB,KAAA,IAAI,CAAC,aAAa;;;6BAAlB,CAAA,cAAkB,CAAA;wBAAlC,YAAY;wBACf,qBAAM,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC,EAAA;;wBAArD,IAAI,SAAiD,EAAE;4BACnD,sBAAO,YAAY,EAAC;yBACvB;;;wBAHsB,IAAkB,CAAA;;4BAM7C,sBAAO,IAAI,EAAC;;;;KACf;IACL,yBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,gDAAkB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.d.ts deleted file mode 100644 index 84512c4..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { HandlerInput } from '../request/handler/HandlerInput'; -/** - * An interface for user created handler logic to add to {@link ErrorMapper}. - */ -export interface ErrorHandler { - canHandle(handlerInput: HandlerInput, error: Error): Promise | boolean; - handle(handlerInput: HandlerInput, error: Error): Promise | Response; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js deleted file mode 100644 index 2ff52ac..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ErrorHandler.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js.map deleted file mode 100644 index 873ed62..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorHandler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorHandler.js","sourceRoot":"","sources":["../../../lib/dispatcher/error/ErrorHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.d.ts deleted file mode 100644 index 69ee6e8..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { HandlerInput } from '../request/handler/HandlerInput'; -import { ErrorHandler } from './ErrorHandler'; -/** - * An interface providing a mapping of handler input and error to {@link ErrorHandler}. - */ -export interface ErrorMapper { - getErrorHandler(handlerInput: HandlerInput, error: Error): Promise | ErrorHandler; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js deleted file mode 100644 index e5bb53a..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ErrorMapper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js.map deleted file mode 100644 index 3cf3485..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/error/ErrorMapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorMapper.js","sourceRoot":"","sources":["../../../lib/dispatcher/error/ErrorMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.d.ts deleted file mode 100644 index 4b4a4f0..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { HandlerAdapter } from './HandlerAdapter'; -import { HandlerInput } from './HandlerInput'; -/** - * Default implementation of {@link HandlerAdapter} that supports the default {@link RequestHandler}. - */ -export declare class DefaultHandlerAdapter implements HandlerAdapter { - /** - * Decides if the type of canHandle in request handler is a function or not. - * @param {any} handler - * @returns {boolean} - */ - supports(handler: any): boolean; - /** - * Executes the handle function of request handler and returns a promise of response. - * @param {HandlerInput} handlerInput - * @param {any} handler - * @returns {Promise} - */ - execute(handlerInput: HandlerInput, handler: any): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js deleted file mode 100644 index 2932291..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Default implementation of {@link HandlerAdapter} that supports the default {@link RequestHandler}. - */ -var DefaultHandlerAdapter = /** @class */ (function () { - function DefaultHandlerAdapter() { - } - /** - * Decides if the type of canHandle in request handler is a function or not. - * @param {any} handler - * @returns {boolean} - */ - DefaultHandlerAdapter.prototype.supports = function (handler) { - return typeof handler.canHandle === 'function' && typeof handler.handle === 'function'; - }; - /** - * Executes the handle function of request handler and returns a promise of response. - * @param {HandlerInput} handlerInput - * @param {any} handler - * @returns {Promise} - */ - DefaultHandlerAdapter.prototype.execute = function (handlerInput, handler) { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - return [2 /*return*/, handler.handle(handlerInput)]; - }); - }); - }; - return DefaultHandlerAdapter; -}()); -exports.DefaultHandlerAdapter = DefaultHandlerAdapter; -//# sourceMappingURL=DefaultHandlerAdapter.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js.map deleted file mode 100644 index 3a64e9b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultHandlerAdapter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultHandlerAdapter.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/handler/DefaultHandlerAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOb;;GAEG;AACH;IAAA;IAoBA,CAAC;IAlBG;;;;OAIG;IACI,wCAAQ,GAAf,UAAgB,OAAa;QACzB,OAAO,OAAO,OAAO,CAAC,SAAS,KAAK,UAAU,IAAI,OAAO,OAAO,CAAC,MAAM,KAAK,UAAU,CAAC;IAC3F,CAAC;IAED;;;;;OAKG;IACU,uCAAO,GAApB,UAAqB,YAA2B,EAAE,OAAa;;;gBAC3D,sBAAyB,OAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,EAAC;;;KAC1D;IACL,4BAAC;AAAD,CAAC,AApBD,IAoBC;AApBY,sDAAqB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.d.ts deleted file mode 100644 index ef790a4..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { RequestInterceptor } from '../interceptor/RequestInterceptor'; -import { ResponseInterceptor } from '../interceptor/ResponseInterceptor'; -import { GenericRequestHandlerChain } from './GenericRequestHandlerChain'; -import { RequestHandler } from './RequestHandler'; -/** - * Default implementation of {@link RequestHandlerChain}. - */ -export declare class DefaultRequestHandlerChain extends GenericRequestHandlerChain { - constructor(options: { - requestHandler: RequestHandler; - requestInterceptors?: RequestInterceptor[]; - responseInterceptors?: ResponseInterceptor[]; - }); - /** - * Provides request handler. - * @returns {RequestHandler} - */ - getRequestHandler(): RequestHandler; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js deleted file mode 100644 index f8e21c3..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var GenericRequestHandlerChain_1 = require("./GenericRequestHandlerChain"); -/** - * Default implementation of {@link RequestHandlerChain}. - */ -var DefaultRequestHandlerChain = /** @class */ (function (_super) { - __extends(DefaultRequestHandlerChain, _super); - function DefaultRequestHandlerChain(options) { - return _super.call(this, options) || this; - } - /** - * Provides request handler. - * @returns {RequestHandler} - */ - DefaultRequestHandlerChain.prototype.getRequestHandler = function () { - return this.requestHandler; - }; - return DefaultRequestHandlerChain; -}(GenericRequestHandlerChain_1.GenericRequestHandlerChain)); -exports.DefaultRequestHandlerChain = DefaultRequestHandlerChain; -//# sourceMappingURL=DefaultRequestHandlerChain.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js.map deleted file mode 100644 index d133dcf..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/DefaultRequestHandlerChain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultRequestHandlerChain.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/handler/DefaultRequestHandlerChain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;AAIb,2EAA0E;AAI1E;;GAEG;AACH;IAAgD,8CAA0B;IACtE,oCAAY,OAIX;eACG,kBAAM,OAAO,CAAC;IAClB,CAAC;IAED;;;OAGG;IACI,sDAAiB,GAAxB;QACI,OAAwB,IAAI,CAAC,cAAc,CAAC;IAChD,CAAC;IACL,iCAAC;AAAD,CAAC,AAhBD,CAAgD,uDAA0B,GAgBzE;AAhBY,gEAA0B"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.d.ts deleted file mode 100644 index 3199f2f..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { RequestInterceptor } from '../interceptor/RequestInterceptor'; -import { ResponseInterceptor } from '../interceptor/ResponseInterceptor'; -import { RequestHandlerChain } from './RequestHandlerChain'; -/** - * Generic implementation of {@link RequestHandlerChain}. - */ -export declare class GenericRequestHandlerChain implements RequestHandlerChain { - protected requestHandler: any; - protected requestInterceptors: RequestInterceptor[]; - protected responseInterceptors: ResponseInterceptor[]; - constructor(options: { - requestHandler: any; - requestInterceptors?: RequestInterceptor[]; - responseInterceptors?: ResponseInterceptor[]; - }); - /** - * Provides request handler. - * @returns {any} - */ - getRequestHandler(): any; - /** - * Provides request interceptor array. - * @returns {RequestInterceptor[]} - */ - getRequestInterceptors(): RequestInterceptor[]; - /** - * Provides response interceptor array. - * @returns {ResponseInterceptor[]} - */ - getResponseInterceptors(): ResponseInterceptor[]; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js deleted file mode 100644 index 4b990ca..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Generic implementation of {@link RequestHandlerChain}. - */ -var GenericRequestHandlerChain = /** @class */ (function () { - function GenericRequestHandlerChain(options) { - this.requestHandler = options.requestHandler; - this.requestInterceptors = options.requestInterceptors; - this.responseInterceptors = options.responseInterceptors; - } - /** - * Provides request handler. - * @returns {any} - */ - GenericRequestHandlerChain.prototype.getRequestHandler = function () { - return this.requestHandler; - }; - /** - * Provides request interceptor array. - * @returns {RequestInterceptor[]} - */ - GenericRequestHandlerChain.prototype.getRequestInterceptors = function () { - return this.requestInterceptors; - }; - /** - * Provides response interceptor array. - * @returns {ResponseInterceptor[]} - */ - GenericRequestHandlerChain.prototype.getResponseInterceptors = function () { - return this.responseInterceptors; - }; - return GenericRequestHandlerChain; -}()); -exports.GenericRequestHandlerChain = GenericRequestHandlerChain; -//# sourceMappingURL=GenericRequestHandlerChain.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js.map deleted file mode 100644 index 209aedf..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/GenericRequestHandlerChain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GenericRequestHandlerChain.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/handler/GenericRequestHandlerChain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAMb;;GAEG;AACH;IAKI,oCAAY,OAIX;QACG,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC7C,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;QACvD,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACI,sDAAiB,GAAxB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACI,2DAAsB,GAA7B;QACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;IAED;;;OAGG;IACI,4DAAuB,GAA9B;QACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACrC,CAAC;IACL,iCAAC;AAAD,CAAC,AAtCD,IAsCC;AAtCY,gEAA0B"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.d.ts deleted file mode 100644 index 414a622..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { HandlerInput } from './HandlerInput'; -/** - * An interface that abstracts the handling of a request for specific types of handlers. - */ -export interface HandlerAdapter { - supports(handler: any): boolean; - execute(handlerInput: HandlerInput, handler: any): Promise | Response; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js deleted file mode 100644 index adaac0a..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=HandlerAdapter.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js.map deleted file mode 100644 index 7f2a5e8..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerAdapter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HandlerAdapter.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/handler/HandlerAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.d.ts deleted file mode 100644 index 8228427..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { RequestEnvelope, services } from 'ask-sdk-model'; -import { AttributesManager } from '../../../attributes/AttributesManager'; -import { ResponseBuilder } from '../../../response/ResponseBuilder'; -import ServiceClientFactory = services.ServiceClientFactory; -/** - * An interface that represents components passed into {@link RequestHandler} and {@link ErrorHandler}. - */ -export interface HandlerInput { - requestEnvelope: RequestEnvelope; - context?: any; - attributesManager: AttributesManager; - responseBuilder: ResponseBuilder; - serviceClientFactory?: ServiceClientFactory; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js deleted file mode 100644 index 495773b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=HandlerInput.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js.map deleted file mode 100644 index 951ff4b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/HandlerInput.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HandlerInput.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/handler/HandlerInput.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.d.ts deleted file mode 100644 index 4ad0080..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { HandlerInput } from './HandlerInput'; -/** - * An interface for user-created handler logic to add to {@link RequestMapper}. - */ -export interface RequestHandler { - canHandle(handlerInput: HandlerInput): Promise | boolean; - handle(handlerInput: HandlerInput): Promise | Response; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js deleted file mode 100644 index 7de61f2..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=RequestHandler.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js.map deleted file mode 100644 index 41c2aa4..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RequestHandler.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/handler/RequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.d.ts deleted file mode 100644 index 5ae87d1..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { RequestInterceptor } from '../interceptor/RequestInterceptor'; -import { ResponseInterceptor } from '../interceptor/ResponseInterceptor'; -/** - * An interface containing the request handler and corresponding request/response interceptors. - */ -export interface RequestHandlerChain { - getRequestHandler(): any; - getRequestInterceptors(): RequestInterceptor[]; - getResponseInterceptors(): ResponseInterceptor[]; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js deleted file mode 100644 index 0c5e05c..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=RequestHandlerChain.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js.map deleted file mode 100644 index 1d38844..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/handler/RequestHandlerChain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RequestHandlerChain.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/handler/RequestHandlerChain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.d.ts deleted file mode 100644 index a83a964..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { HandlerInput } from '../handler/HandlerInput'; -/** - * An interface containing the logic to execute before handler is called. - */ -export interface RequestInterceptor { - process(handlerInput: HandlerInput): Promise | void; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js deleted file mode 100644 index d6ac85f..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=RequestInterceptor.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js.map deleted file mode 100644 index fd4b719..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/RequestInterceptor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RequestInterceptor.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/interceptor/RequestInterceptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.d.ts deleted file mode 100644 index 1ba57ec..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { HandlerInput } from '../handler/HandlerInput'; -/** - * An interface containing the logic to be executed after handler returns. - */ -export interface ResponseInterceptor { - process(handlerInput: HandlerInput, response?: Response): Promise | void; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js deleted file mode 100644 index 70945c2..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ResponseInterceptor.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js.map deleted file mode 100644 index e66d316..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/interceptor/ResponseInterceptor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ResponseInterceptor.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/interceptor/ResponseInterceptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.d.ts deleted file mode 100644 index f472fae..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { DefaultRequestHandlerChain } from '../handler/DefaultRequestHandlerChain'; -import { HandlerInput } from '../handler/HandlerInput'; -import { RequestHandlerChain } from '../handler/RequestHandlerChain'; -import { RequestMapper } from './RequestMapper'; -/** - * Default implementation for {@link RequestMapper}. - */ -export declare class DefaultRequestMapper implements RequestMapper { - protected requestHandlerChains: DefaultRequestHandlerChain[]; - constructor(options: { - requestHandlerChains: DefaultRequestHandlerChain[]; - }); - /** - * Loops through the RequestHandlerChain array to find the first handler that can dispatch the given input and returns the request handler chain. - * @param {HandlerInput} handlerInput - * @returns {Promise} - */ - getRequestHandlerChain(handlerInput: HandlerInput): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js deleted file mode 100644 index a707124..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Default implementation for {@link RequestMapper}. - */ -var DefaultRequestMapper = /** @class */ (function () { - function DefaultRequestMapper(options) { - this.requestHandlerChains = options.requestHandlerChains; - } - /** - * Loops through the RequestHandlerChain array to find the first handler that can dispatch the given input and returns the request handler chain. - * @param {HandlerInput} handlerInput - * @returns {Promise} - */ - DefaultRequestMapper.prototype.getRequestHandlerChain = function (handlerInput) { - return __awaiter(this, void 0, void 0, function () { - var _i, _a, requestHandlerChain, requestHandler; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _i = 0, _a = this.requestHandlerChains; - _b.label = 1; - case 1: - if (!(_i < _a.length)) return [3 /*break*/, 4]; - requestHandlerChain = _a[_i]; - requestHandler = requestHandlerChain.getRequestHandler(); - return [4 /*yield*/, requestHandler.canHandle(handlerInput)]; - case 2: - if (_b.sent()) { - return [2 /*return*/, requestHandlerChain]; - } - _b.label = 3; - case 3: - _i++; - return [3 /*break*/, 1]; - case 4: return [2 /*return*/, null]; - } - }); - }); - }; - return DefaultRequestMapper; -}()); -exports.DefaultRequestMapper = DefaultRequestMapper; -//# sourceMappingURL=DefaultRequestMapper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js.map deleted file mode 100644 index 979e9f5..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/DefaultRequestMapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultRequestMapper.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/mapper/DefaultRequestMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOb;;GAEG;AACH;IAGI,8BAAY,OAEX;QACG,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACU,qDAAsB,GAAnC,UAAoC,YAA2B;;;;;;8BACA,EAAzB,KAAA,IAAI,CAAC,oBAAoB;;;6BAAzB,CAAA,cAAyB,CAAA;wBAAhD,mBAAmB;wBACpB,cAAc,GAAG,mBAAmB,CAAC,iBAAiB,EAAE,CAAC;wBAC3D,qBAAM,cAAc,CAAC,SAAS,CAAC,YAAY,CAAC,EAAA;;wBAAhD,IAAI,SAA4C,EAAE;4BAC9C,sBAAO,mBAAmB,EAAC;yBAC9B;;;wBAJ6B,IAAyB,CAAA;;4BAO3D,sBAAO,IAAI,EAAC;;;;KACf;IACL,2BAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,oDAAoB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.d.ts deleted file mode 100644 index 55c3e73..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { HandlerInput } from '../handler/HandlerInput'; -import { RequestHandlerChain } from '../handler/RequestHandlerChain'; -/** - * An interface providing a mapping of handler input and error to {@link RequestHandlerChain}. - */ -export interface RequestMapper { - getRequestHandlerChain(handlerInput: HandlerInput): Promise | RequestHandlerChain; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js deleted file mode 100644 index 2a7ff69..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=RequestMapper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js.map deleted file mode 100644 index 2a1d883..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/dispatcher/request/mapper/RequestMapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RequestMapper.js","sourceRoot":"","sources":["../../../../lib/dispatcher/request/mapper/RequestMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/index.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/index.d.ts deleted file mode 100644 index 4bcf2d0..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -export { AttributesManager } from './attributes/AttributesManager'; -export { AttributesManagerFactory } from './attributes/AttributesManagerFactory'; -export { PersistenceAdapter } from './attributes/persistence/PersistenceAdapter'; -export { DefaultRequestDispatcher } from './dispatcher/DefaultRequestDispatcher'; -export { DefaultErrorMapper } from './dispatcher/error/DefaultErrorMapper'; -export { ErrorHandler } from './dispatcher/error/ErrorHandler'; -export { ErrorMapper } from './dispatcher/error/ErrorMapper'; -export { DefaultHandlerAdapter } from './dispatcher/request/handler/DefaultHandlerAdapter'; -export { DefaultRequestHandlerChain } from './dispatcher/request/handler/DefaultRequestHandlerChain'; -export { GenericRequestHandlerChain } from './dispatcher/request/handler/GenericRequestHandlerChain'; -export { HandlerAdapter } from './dispatcher/request/handler/HandlerAdapter'; -export { HandlerInput } from './dispatcher/request/handler/HandlerInput'; -export { RequestHandler } from './dispatcher/request/handler/RequestHandler'; -export { RequestHandlerChain } from './dispatcher/request/handler/RequestHandlerChain'; -export { RequestInterceptor } from './dispatcher/request/interceptor/RequestInterceptor'; -export { ResponseInterceptor } from './dispatcher/request/interceptor/ResponseInterceptor'; -export { DefaultRequestMapper } from './dispatcher/request/mapper/DefaultRequestMapper'; -export { RequestMapper } from './dispatcher/request/mapper/RequestMapper'; -export { RequestDispatcher } from './dispatcher/RequestDispatcher'; -export { ImageHelper } from './response/ImageHelper'; -export { PlainTextContentHelper } from './response/PlainTextContentHelper'; -export { ResponseBuilder } from './response/ResponseBuilder'; -export { ResponseFactory } from './response/ResponseFactory'; -export { RichTextContentHelper } from './response/RichTextContentHelper'; -export { TextContentHelper } from './response/TextContentHelper'; -export { DefaultApiClient } from './service/DefaultApiClient'; -export { BaseSkillBuilder } from './skill/factory/BaseSkillBuilder'; -export { BaseSkillFactory } from './skill/factory/BaseSkillFactory'; -export { CustomSkillBuilder } from './skill/factory/CustomSkillBuilder'; -export { CustomSkillFactory } from './skill/factory/CustomSkillFactory'; -export { Skill } from './skill/Skill'; -export { SkillBuilders } from './skill/SkillBuilders'; -export { SkillConfiguration } from './skill/SkillConfiguration'; diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/index.js b/lambda/custom/node_modules/ask-sdk-core/dist/index.js deleted file mode 100644 index 489a26b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/index.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -var AttributesManagerFactory_1 = require("./attributes/AttributesManagerFactory"); -exports.AttributesManagerFactory = AttributesManagerFactory_1.AttributesManagerFactory; -var DefaultRequestDispatcher_1 = require("./dispatcher/DefaultRequestDispatcher"); -exports.DefaultRequestDispatcher = DefaultRequestDispatcher_1.DefaultRequestDispatcher; -var DefaultErrorMapper_1 = require("./dispatcher/error/DefaultErrorMapper"); -exports.DefaultErrorMapper = DefaultErrorMapper_1.DefaultErrorMapper; -var DefaultHandlerAdapter_1 = require("./dispatcher/request/handler/DefaultHandlerAdapter"); -exports.DefaultHandlerAdapter = DefaultHandlerAdapter_1.DefaultHandlerAdapter; -var DefaultRequestHandlerChain_1 = require("./dispatcher/request/handler/DefaultRequestHandlerChain"); -exports.DefaultRequestHandlerChain = DefaultRequestHandlerChain_1.DefaultRequestHandlerChain; -var GenericRequestHandlerChain_1 = require("./dispatcher/request/handler/GenericRequestHandlerChain"); -exports.GenericRequestHandlerChain = GenericRequestHandlerChain_1.GenericRequestHandlerChain; -var DefaultRequestMapper_1 = require("./dispatcher/request/mapper/DefaultRequestMapper"); -exports.DefaultRequestMapper = DefaultRequestMapper_1.DefaultRequestMapper; -var ImageHelper_1 = require("./response/ImageHelper"); -exports.ImageHelper = ImageHelper_1.ImageHelper; -var PlainTextContentHelper_1 = require("./response/PlainTextContentHelper"); -exports.PlainTextContentHelper = PlainTextContentHelper_1.PlainTextContentHelper; -var ResponseFactory_1 = require("./response/ResponseFactory"); -exports.ResponseFactory = ResponseFactory_1.ResponseFactory; -var RichTextContentHelper_1 = require("./response/RichTextContentHelper"); -exports.RichTextContentHelper = RichTextContentHelper_1.RichTextContentHelper; -var TextContentHelper_1 = require("./response/TextContentHelper"); -exports.TextContentHelper = TextContentHelper_1.TextContentHelper; -var DefaultApiClient_1 = require("./service/DefaultApiClient"); -exports.DefaultApiClient = DefaultApiClient_1.DefaultApiClient; -var BaseSkillFactory_1 = require("./skill/factory/BaseSkillFactory"); -exports.BaseSkillFactory = BaseSkillFactory_1.BaseSkillFactory; -var CustomSkillFactory_1 = require("./skill/factory/CustomSkillFactory"); -exports.CustomSkillFactory = CustomSkillFactory_1.CustomSkillFactory; -var Skill_1 = require("./skill/Skill"); -exports.Skill = Skill_1.Skill; -var SkillBuilders_1 = require("./skill/SkillBuilders"); -exports.SkillBuilders = SkillBuilders_1.SkillBuilders; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/index.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/index.js.map deleted file mode 100644 index 1a0ad68..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAGb,kFAAiF;AAAxE,8DAAA,wBAAwB,CAAA;AAEjC,kFAAiF;AAAxE,8DAAA,wBAAwB,CAAA;AACjC,4EAA2E;AAAlE,kDAAA,kBAAkB,CAAA;AAG3B,4FAA2F;AAAlF,wDAAA,qBAAqB,CAAA;AAC9B,sGAAqG;AAA5F,kEAAA,0BAA0B,CAAA;AACnC,sGAAqG;AAA5F,kEAAA,0BAA0B,CAAA;AAOnC,yFAAwF;AAA/E,sDAAA,oBAAoB,CAAA;AAG7B,sDAAqD;AAA5C,oCAAA,WAAW,CAAA;AACpB,4EAA2E;AAAlE,0DAAA,sBAAsB,CAAA;AAE/B,8DAA6D;AAApD,4CAAA,eAAe,CAAA;AACxB,0EAAyE;AAAhE,wDAAA,qBAAqB,CAAA;AAC9B,kEAAiE;AAAxD,gDAAA,iBAAiB,CAAA;AAC1B,+DAA8D;AAArD,8CAAA,gBAAgB,CAAA;AAEzB,qEAAoE;AAA3D,8CAAA,gBAAgB,CAAA;AAEzB,yEAAwE;AAA/D,kDAAA,kBAAkB,CAAA;AAC3B,uCAAsC;AAA7B,wBAAA,KAAK,CAAA;AACd,uDAAsD;AAA7C,wCAAA,aAAa,CAAA"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.d.ts deleted file mode 100644 index 62fca49..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { interfaces } from 'ask-sdk-model'; -import Image = interfaces.display.Image; -/** - * Responsible for building image object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#image-object-specifications. - */ -export declare class ImageHelper { - protected image: Image; - /** - * Sets content description in image object - * @param {string} description text used to describe the image for a screen reader - * @returns {ImageHelper} - */ - withDescription(description: string): this; - /** - * Add image instance in image object - * @param {string} url source of the image - * @param {interfaces.display.ImageSize} size size of the image. Accepted values: - * X_SMALL: Displayed within extra small containers - * SMALL: Displayed within small containers - * MEDIUM: Displayed within medium containers - * LARGE: Displayed within large containers - * X_LARGE Displayed within extra large containers - * By default, for Echo Show, size takes the value X_SMALL. If the other size values are included, - * then the order of precedence for displaying images begins with X_LARGE and proceeds downward, - * which means that larger images will be downscaled for display on Echo Show if provided. - * For the best user experience, include the appropriately sized image, and do not include larger images. - * @param {number} widthPixels widthPixels of the image - * @param {number} heightPixels heightPixels of the image - * @returns {ImageHelper} - */ - addImageInstance(url: string, size?: interfaces.display.ImageSize, widthPixels?: number, heightPixels?: number): this; - /** - * @returns {Image} - */ - getImage(): Image; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js b/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js deleted file mode 100644 index f83051b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Responsible for building image object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#image-object-specifications. - */ -var ImageHelper = /** @class */ (function () { - function ImageHelper() { - this.image = {}; - } - /** - * Sets content description in image object - * @param {string} description text used to describe the image for a screen reader - * @returns {ImageHelper} - */ - ImageHelper.prototype.withDescription = function (description) { - this.image.contentDescription = description; - return this; - }; - /** - * Add image instance in image object - * @param {string} url source of the image - * @param {interfaces.display.ImageSize} size size of the image. Accepted values: - * X_SMALL: Displayed within extra small containers - * SMALL: Displayed within small containers - * MEDIUM: Displayed within medium containers - * LARGE: Displayed within large containers - * X_LARGE Displayed within extra large containers - * By default, for Echo Show, size takes the value X_SMALL. If the other size values are included, - * then the order of precedence for displaying images begins with X_LARGE and proceeds downward, - * which means that larger images will be downscaled for display on Echo Show if provided. - * For the best user experience, include the appropriately sized image, and do not include larger images. - * @param {number} widthPixels widthPixels of the image - * @param {number} heightPixels heightPixels of the image - * @returns {ImageHelper} - */ - ImageHelper.prototype.addImageInstance = function (url, size, widthPixels, heightPixels) { - var imageInstance = { - url: url, - }; - if (size) { - imageInstance.size = size; - } - if (heightPixels) { - imageInstance.heightPixels = heightPixels; - } - if (widthPixels) { - imageInstance.widthPixels = widthPixels; - } - if (!this.image.sources) { - this.image.sources = [imageInstance]; - } - else { - this.image.sources.push(imageInstance); - } - return this; - }; - /** - * @returns {Image} - */ - ImageHelper.prototype.getImage = function () { - return this.image; - }; - return ImageHelper; -}()); -exports.ImageHelper = ImageHelper; -//# sourceMappingURL=ImageHelper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js.map deleted file mode 100644 index 9af62d9..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ImageHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImageHelper.js","sourceRoot":"","sources":["../../lib/response/ImageHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAMb;;;GAGG;AACH;IAAA;QACc,UAAK,GAAW,EAAE,CAAC;IAiEjC,CAAC;IA/DG;;;;OAIG;IACI,qCAAe,GAAtB,UAAuB,WAAoB;QACvC,IAAI,CAAC,KAAK,CAAC,kBAAkB,GAAG,WAAW,CAAC;QAE5C,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACI,sCAAgB,GAAvB,UAAwB,GAAY,EACZ,IAAoC,EACpC,WAAqB,EACrB,YAAsB;QAC1C,IAAM,aAAa,GAAmB;YAClC,GAAG,KAAA;SACN,CAAC;QAEF,IAAI,IAAI,EAAE;YACN,aAAa,CAAC,IAAI,GAAG,IAAI,CAAC;SAC7B;QAED,IAAI,YAAY,EAAE;YACd,aAAa,CAAC,YAAY,GAAG,YAAY,CAAC;SAC7C;QAED,IAAI,WAAW,EAAE;YACb,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;SAC3C;QAED,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YACrB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,aAAa,CAAC,CAAC;SACxC;aAAM;YACH,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;OAEG;IACI,8BAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACL,kBAAC;AAAD,CAAC,AAlED,IAkEC;AAlEY,kCAAW"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.d.ts deleted file mode 100644 index cc7e212..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { interfaces } from 'ask-sdk-model'; -import { TextContentHelper } from './TextContentHelper'; -/** - * Responsible for building plain text content object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#textcontent-object-specifications. - */ -export declare class PlainTextContentHelper extends TextContentHelper { - constructor(); - /** - * @returns {interfaces.display.TextContent} - */ - getTextContent(): interfaces.display.TextContent; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js b/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js deleted file mode 100644 index 6d133e5..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var TextContentHelper_1 = require("./TextContentHelper"); -/** - * Responsible for building plain text content object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#textcontent-object-specifications. - */ -var PlainTextContentHelper = /** @class */ (function (_super) { - __extends(PlainTextContentHelper, _super); - function PlainTextContentHelper() { - return _super.call(this) || this; - } - /** - * @returns {interfaces.display.TextContent} - */ - PlainTextContentHelper.prototype.getTextContent = function () { - var textContent = {}; - if (this.primaryText) { - textContent.primaryText = { - type: 'PlainText', - text: this.primaryText, - }; - } - if (this.secondaryText) { - textContent.secondaryText = { - type: 'PlainText', - text: this.secondaryText, - }; - } - if (this.tertiaryText) { - textContent.tertiaryText = { - type: 'PlainText', - text: this.tertiaryText, - }; - } - return textContent; - }; - return PlainTextContentHelper; -}(TextContentHelper_1.TextContentHelper)); -exports.PlainTextContentHelper = PlainTextContentHelper; -//# sourceMappingURL=PlainTextContentHelper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js.map deleted file mode 100644 index 2ae1674..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/PlainTextContentHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PlainTextContentHelper.js","sourceRoot":"","sources":["../../lib/response/PlainTextContentHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;AAGb,yDAAwD;AAGxD;;;GAGG;AACH;IAA4C,0CAAiB;IACzD;eACI,iBAAO;IACX,CAAC;IAED;;OAEG;IACI,+CAAc,GAArB;QACI,IAAM,WAAW,GAAiB,EAAE,CAAC;QAErC,IAAI,IAAI,CAAC,WAAW,EAAE;YAClB,WAAW,CAAC,WAAW,GAAG;gBACtB,IAAI,EAAG,WAAW;gBAClB,IAAI,EAAG,IAAI,CAAC,WAAW;aAC1B,CAAC;SACL;QAED,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,WAAW,CAAC,aAAa,GAAG;gBACxB,IAAI,EAAG,WAAW;gBAClB,IAAI,EAAG,IAAI,CAAC,aAAa;aAC5B,CAAC;SACL;QAED,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,WAAW,CAAC,YAAY,GAAG;gBACvB,IAAI,EAAG,WAAW;gBAClB,IAAI,EAAG,IAAI,CAAC,YAAY;aAC3B,CAAC;SACL;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;IACL,6BAAC;AAAD,CAAC,AAlCD,CAA4C,qCAAiB,GAkC5D;AAlCY,wDAAsB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.d.ts deleted file mode 100644 index 1d8c987..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -import { Directive, Intent, interfaces, Response } from 'ask-sdk-model'; -import AudioItemMetadata = interfaces.audioplayer.AudioItemMetadata; -/** - * An interface which helps building a response. - */ -export interface ResponseBuilder { - /** - * Has Alexa say the provided speech to the user - * @param {string} speechOutput - * @returns {ResponseBuilder} - */ - speak(speechOutput: string): this; - /** - * Has alexa listen for speech from the user. If the user doesn't respond within 8 seconds - * then has alexa reprompt with the provided reprompt speech - * @param {string} repromptSpeechOutput - * @returns {ResponseBuilder} - */ - reprompt(repromptSpeechOutput: string): this; - /** - * Renders a simple card with the following title and content - * @param {string} cardTitle - * @param {string} cardContent - * @returns {ResponseBuilder} - */ - withSimpleCard(cardTitle: string, cardContent: string): this; - /** - * Renders a standard card with the following title, content and image - * @param {string} cardTitle - * @param {string} cardContent - * @param {string} smallImageUrl - * @param {string} largeImageUrl - * @returns {ResponseBuilder} - */ - withStandardCard(cardTitle: string, cardContent: string, smallImageUrl?: string, largeImageUrl?: string): this; - /** - * Renders a link account card - * @returns {ResponseBuilder} - */ - withLinkAccountCard(): this; - /** - * Renders an askForPermissionsConsent card - * @param {string[]} permissionArray - * @returns {ResponseBuilder} - */ - withAskForPermissionsConsentCard(permissionArray: string[]): this; - /** - * Adds a Dialog delegate directive to response - * @param {Intent} updatedIntent - * @returns {ResponseBuilder} - */ - addDelegateDirective(updatedIntent?: Intent): this; - /** - * Adds a Dialog elicitSlot directive to response - * @param {string} slotToElicit - * @param {Intent} updatedIntent - * @returns {ResponseBuilder} - */ - addElicitSlotDirective(slotToElicit: string, updatedIntent?: Intent): this; - /** - * Adds a Dialog confirmSlot directive to response - * @param {string} slotToConfirm - * @param {Intent} updatedIntent - * @returns {ResponseBuilder} - */ - addConfirmSlotDirective(slotToConfirm: string, updatedIntent?: Intent): this; - /** - * Adds a Dialog confirmIntent directive to response - * @param {Intent} updatedIntent - * @returns {ResponseBuilder} - */ - addConfirmIntentDirective(updatedIntent?: Intent): this; - /** - * Adds an AudioPlayer play directive - * @param {interfaces.audioplayer.PlayBehavior} playBehavior Describes playback behavior. Accepted values: - * REPLACE_ALL: Immediately begin playback of the specified stream, and replace current and enqueued streams. - * ENQUEUE: Add the specified stream to the end of the current queue. - * This does not impact the currently playing stream. - * REPLACE_ENQUEUED: Replace all streams in the queue. This does not impact the currently playing stream. - * @param {string} url Identifies the location of audio content at a remote HTTPS location. - * The audio file must be hosted at an Internet-accessible HTTPS endpoint. - * HTTPS is required, and the domain hosting the files must present a valid, trusted SSL certificate. - * Self-signed certificates cannot be used. - * The supported formats for the audio file include AAC/MP4, MP3, HLS, PLS and M3U. Bitrates: 16kbps to 384 kbps. - * @param {string} token A token that represents the audio stream. This token cannot exceed 1024 characters - * @param {number} offsetInMilliseconds The timestamp in the stream from which Alexa should begin playback. - * Set to 0 to start playing the stream from the beginning. - * Set to any other value to start playback from that associated point in the stream - * @param {string} expectedPreviousToken A token that represents the expected previous stream. - * This property is required and allowed only when the playBehavior is ENQUEUE. - * This is used to prevent potential race conditions if requests to progress - * through a playlist and change tracks occur at the same time. - * @param {interfaces.audioplayer.AudioItemMetadata} audioItemMetadata Metadata that can be displayed on screen enabled devices - * @returns {ResponseBuilder} - */ - addAudioPlayerPlayDirective(playBehavior: interfaces.audioplayer.PlayBehavior, url: string, token: string, offsetInMilliseconds: number, expectedPreviousToken?: string, audioItemMetadata?: AudioItemMetadata): this; - /** - * Adds an AudioPlayer Stop directive - Stops the current audio Playback - * @returns {ResponseBuilder} - */ - addAudioPlayerStopDirective(): this; - /** - * Adds an AudioPlayer ClearQueue directive - clear the queue without stopping the currently playing stream, - * or clear the queue and stop any currently playing stream. - * - * @param {interfaces.audioplayer.ClearBehavior} clearBehavior Describes the clear queue behavior. - * Accepted values: - * CLEAR_ENQUEUED: clears the queue and continues to play the currently playing stream - * CLEAR_ALL: clears the entire playback queue and stops the currently playing stream (if applicable). - * @returns {ResponseBuilder} - */ - addAudioPlayerClearQueueDirective(clearBehavior: interfaces.audioplayer.ClearBehavior): this; - /** - * Adds a Display RenderTemplate Directive - * @param {interfaces.display.Template} template - * @returns {ResponseBuilder} - */ - addRenderTemplateDirective(template: interfaces.display.Template): this; - /** - * Adds a hint directive - show a hint on the screen of the echo show - * @param {string} text plain text to show on the hint - * @returns {ResponseBuilder} - */ - addHintDirective(text: string): this; - /** - * Adds a VideoApp play directive to play a video - * - * @param {string} source Identifies the location of video content at a remote HTTPS location. - * The video file must be hosted at an Internet-accessible HTTPS endpoint. - * @param {string} title (optional) title that can be displayed on VideoApp. - * @param {string} subtitle (optional) subtitle that can be displayed on VideoApp. - * @returns {ResponseBuilder} - */ - addVideoAppLaunchDirective(source: string, title?: string, subtitle?: string): this; - /** - * Sets shouldEndSession value to null/false/true - * @param {boolean} val - * @returns {ResponseBuilder} - */ - withShouldEndSession(val: boolean): this; - /** - * Helper method for adding directives to responses - * @param {Directive} directive the directive send back to Alexa device - * @returns {ResponseBuilder} - */ - addDirective(directive: Directive): this; - /** - * Returns the response object - * @returns {Response} - */ - getResponse(): Response; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js b/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js deleted file mode 100644 index 8f30d8d..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ResponseBuilder.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js.map deleted file mode 100644 index c7c3f64..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseBuilder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ResponseBuilder.js","sourceRoot":"","sources":["../../lib/response/ResponseBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.d.ts deleted file mode 100644 index 6abc023..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ResponseBuilder } from './ResponseBuilder'; -/** - * Responsible for building JSON responses using ask-sdk-model as per the Alexa skills kit interface - * https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference#response-body-syntax. - */ -export declare class ResponseFactory { - static init(): ResponseBuilder; - private constructor(); -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js b/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js deleted file mode 100644 index 1d6c8ce..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Responsible for building JSON responses using ask-sdk-model as per the Alexa skills kit interface - * https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference#response-body-syntax. - */ -var ResponseFactory = /** @class */ (function () { - function ResponseFactory() { - } - ResponseFactory.init = function () { - var response = {}; - function isVideoAppLaunchDirectivePresent() { - if (!response.directives) { - return false; - } - for (var _i = 0, _a = response.directives; _i < _a.length; _i++) { - var directive = _a[_i]; - if (directive.type === 'VideoApp.Launch') { - return true; - } - } - return false; - } - function trimOutputSpeech(speechOutput) { - if (!speechOutput) { - return ''; - } - var speech = speechOutput.trim(); - var length = speech.length; - if (speech.startsWith('') && speech.endsWith('')) { - return speech.substring(7, length - 8).trim(); - } - return speech; - } - return { - speak: function (speechOutput) { - response.outputSpeech = { - type: 'SSML', - ssml: '' - + trimOutputSpeech(speechOutput) - + '', - }; - return this; - }, - reprompt: function (repromptSpeechOutput) { - response.reprompt = { - outputSpeech: { - type: 'SSML', - ssml: '' - + trimOutputSpeech(repromptSpeechOutput) - + '', - }, - }; - if (!isVideoAppLaunchDirectivePresent()) { - response.shouldEndSession = false; - } - return this; - }, - withSimpleCard: function (cardTitle, cardContent) { - response.card = { - type: 'Simple', - title: cardTitle, - content: cardContent, - }; - return this; - }, - withStandardCard: function (cardTitle, cardContent, smallImageUrl, largeImageUrl) { - var card = { - type: 'Standard', - title: cardTitle, - text: cardContent, - }; - if (smallImageUrl || largeImageUrl) { - card.image = {}; - if (smallImageUrl) { - card.image.smallImageUrl = smallImageUrl; - } - if (largeImageUrl) { - card.image.largeImageUrl = largeImageUrl; - } - } - response.card = card; - return this; - }, - withLinkAccountCard: function () { - response.card = { - type: 'LinkAccount', - }; - return this; - }, - withAskForPermissionsConsentCard: function (permissionArray) { - response.card = { - type: 'AskForPermissionsConsent', - permissions: permissionArray, - }; - return this; - }, - addDelegateDirective: function (updatedIntent) { - var delegateDirective = { - type: 'Dialog.Delegate', - }; - if (updatedIntent) { - delegateDirective.updatedIntent = updatedIntent; - } - this.addDirective(delegateDirective); - return this; - }, - addElicitSlotDirective: function (slotToElicit, updatedIntent) { - var elicitSlotDirective = { - type: 'Dialog.ElicitSlot', - slotToElicit: slotToElicit, - }; - if (updatedIntent) { - elicitSlotDirective.updatedIntent = updatedIntent; - } - this.addDirective(elicitSlotDirective); - return this; - }, - addConfirmSlotDirective: function (slotToConfirm, updatedIntent) { - var confirmSlotDirective = { - type: 'Dialog.ConfirmSlot', - slotToConfirm: slotToConfirm, - }; - if (updatedIntent) { - confirmSlotDirective.updatedIntent = updatedIntent; - } - this.addDirective(confirmSlotDirective); - return this; - }, - addConfirmIntentDirective: function (updatedIntent) { - var confirmIntentDirective = { - type: 'Dialog.ConfirmIntent', - }; - if (updatedIntent) { - confirmIntentDirective.updatedIntent = updatedIntent; - } - this.addDirective(confirmIntentDirective); - return this; - }, - addAudioPlayerPlayDirective: function (playBehavior, url, token, offsetInMilliseconds, expectedPreviousToken, audioItemMetadata) { - var stream = { - url: url, - token: token, - offsetInMilliseconds: offsetInMilliseconds, - }; - if (expectedPreviousToken) { - stream.expectedPreviousToken = expectedPreviousToken; - } - var audioItem = { - stream: stream, - }; - if (audioItemMetadata) { - audioItem.metadata = audioItemMetadata; - } - var playDirective = { - type: 'AudioPlayer.Play', - playBehavior: playBehavior, - audioItem: audioItem, - }; - this.addDirective(playDirective); - return this; - }, - addAudioPlayerStopDirective: function () { - var stopDirective = { - type: 'AudioPlayer.Stop', - }; - this.addDirective(stopDirective); - return this; - }, - addAudioPlayerClearQueueDirective: function (clearBehavior) { - var clearQueueDirective = { - type: 'AudioPlayer.ClearQueue', - clearBehavior: clearBehavior, - }; - this.addDirective(clearQueueDirective); - return this; - }, - addRenderTemplateDirective: function (template) { - var renderTemplateDirective = { - type: 'Display.RenderTemplate', - template: template, - }; - this.addDirective(renderTemplateDirective); - return this; - }, - addHintDirective: function (text) { - var hint = { - type: 'PlainText', - text: text, - }; - var hintDirective = { - type: 'Hint', - hint: hint, - }; - this.addDirective(hintDirective); - return this; - }, - addVideoAppLaunchDirective: function (source, title, subtitle) { - var videoItem = { - source: source, - }; - if (title || subtitle) { - videoItem.metadata = {}; - if (title) { - videoItem.metadata.title = title; - } - if (subtitle) { - videoItem.metadata.subtitle = subtitle; - } - } - var launchDirective = { - type: 'VideoApp.Launch', - videoItem: videoItem, - }; - this.addDirective(launchDirective); - delete response.shouldEndSession; - return this; - }, - withShouldEndSession: function (val) { - if (!isVideoAppLaunchDirectivePresent()) { - response.shouldEndSession = val; - } - return this; - }, - addDirective: function (directive) { - if (!response.directives) { - response.directives = []; - } - response.directives.push(directive); - return this; - }, - getResponse: function () { - return response; - }, - }; - }; - return ResponseFactory; -}()); -exports.ResponseFactory = ResponseFactory; -//# sourceMappingURL=ResponseFactory.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js.map deleted file mode 100644 index 9be91c9..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/ResponseFactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ResponseFactory.js","sourceRoot":"","sources":["../../lib/response/ResponseFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AA4Bb;;;GAGG;AACH;IA8RI;IAAuB,CAAC;IA7RV,oBAAI,GAAlB;QACI,IAAM,QAAQ,GAAc,EAAE,CAAC;QAE/B;YACI,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;gBACtB,OAAO,KAAK,CAAC;aAChB;YAED,KAAwB,UAAmB,EAAnB,KAAA,QAAQ,CAAC,UAAU,EAAnB,cAAmB,EAAnB,IAAmB,EAAE;gBAAxC,IAAM,SAAS,SAAA;gBAChB,IAAI,SAAS,CAAC,IAAI,KAAK,iBAAiB,EAAE;oBACtC,OAAO,IAAI,CAAC;iBACf;aACJ;YAED,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,0BAA0B,YAAqB;YAC3C,IAAI,CAAC,YAAY,EAAE;gBACf,OAAO,EAAE,CAAC;aACb;YACD,IAAM,MAAM,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC;YACnC,IAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;YAC7B,IAAI,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;gBAC7D,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;aACjD;YAED,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,OAAO;YACH,KAAK,EAAL,UAAM,YAAqB;gBACvB,QAAQ,CAAC,YAAY,GAAG;oBACpB,IAAI,EAAG,MAAM;oBACb,IAAI,EAAG,SAAS;0BACP,gBAAgB,CA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Q,CAAC,UAAU,EAAE;oBACtB,QAAQ,CAAC,UAAU,GAAG,EAAE,CAAC;iBAC5B;gBACD,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAEpC,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,WAAW,EAAX;gBACI,OAAO,QAAQ,CAAC;YACpB,CAAC;SACJ,CAAC;IACN,CAAC;IAGL,sBAAC;AAAD,CAAC,AA/RD,IA+RC;AA/RY,0CAAe"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.d.ts deleted file mode 100644 index 5dea90d..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { interfaces } from 'ask-sdk-model'; -import { TextContentHelper } from './TextContentHelper'; -import TextContent = interfaces.display.TextContent; -/** - * Responsible for building rich text content object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#textcontent-object-specifications. - */ -export declare class RichTextContentHelper extends TextContentHelper { - constructor(); - /** - * @returns {interfaces.display.TextContent} - */ - getTextContent(): TextContent; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js b/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js deleted file mode 100644 index a734b6c..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var TextContentHelper_1 = require("./TextContentHelper"); -/** - * Responsible for building rich text content object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#textcontent-object-specifications. - */ -var RichTextContentHelper = /** @class */ (function (_super) { - __extends(RichTextContentHelper, _super); - function RichTextContentHelper() { - return _super.call(this) || this; - } - /** - * @returns {interfaces.display.TextContent} - */ - RichTextContentHelper.prototype.getTextContent = function () { - var textContent = {}; - if (this.primaryText) { - textContent.primaryText = { - type: 'RichText', - text: this.primaryText, - }; - } - if (this.secondaryText) { - textContent.secondaryText = { - type: 'RichText', - text: this.secondaryText, - }; - } - if (this.tertiaryText) { - textContent.tertiaryText = { - type: 'RichText', - text: this.tertiaryText, - }; - } - return textContent; - }; - return RichTextContentHelper; -}(TextContentHelper_1.TextContentHelper)); -exports.RichTextContentHelper = RichTextContentHelper; -//# sourceMappingURL=RichTextContentHelper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js.map deleted file mode 100644 index 28e3f80..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/RichTextContentHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RichTextContentHelper.js","sourceRoot":"","sources":["../../lib/response/RichTextContentHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;AAGb,yDAAwD;AAGxD;;;GAGG;AACH;IAA2C,yCAAiB;IACxD;eACI,iBAAO;IACX,CAAC;IAED;;OAEG;IACI,8CAAc,GAArB;QACI,IAAM,WAAW,GAAiB,EAAE,CAAC;QAErC,IAAI,IAAI,CAAC,WAAW,EAAE;YAClB,WAAW,CAAC,WAAW,GAAG;gBACtB,IAAI,EAAG,UAAU;gBACjB,IAAI,EAAG,IAAI,CAAC,WAAW;aAC1B,CAAC;SACL;QAED,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,WAAW,CAAC,aAAa,GAAG;gBACxB,IAAI,EAAG,UAAU;gBACjB,IAAI,EAAG,IAAI,CAAC,aAAa;aAC5B,CAAC;SACL;QAED,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,WAAW,CAAC,YAAY,GAAG;gBACvB,IAAI,EAAG,UAAU;gBACjB,IAAI,EAAG,IAAI,CAAC,YAAY;aAC3B,CAAC;SACL;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;IACL,4BAAC;AAAD,CAAC,AAlCD,CAA2C,qCAAiB,GAkC3D;AAlCY,sDAAqB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.d.ts deleted file mode 100644 index 0d1fc6d..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { interfaces } from 'ask-sdk-model'; -import TextContent = interfaces.display.TextContent; -/** - * An abstract class responsible for building text content object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#textcontent-object-specifications. - */ -export declare abstract class TextContentHelper { - protected primaryText: string; - protected secondaryText: string; - protected tertiaryText: string; - /** - * @param {string} primaryText - * @returns {this} - */ - withPrimaryText(primaryText: string): this; - /** - * @param {string} secondaryText - * @returns {this} - */ - withSecondaryText(secondaryText: string): this; - /** - * @param {string} tertiaryText - * @returns {this} - */ - withTertiaryText(tertiaryText: string): this; - /** - * @returns {interfaces.display.TextContent} - */ - abstract getTextContent(): TextContent; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js b/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js deleted file mode 100644 index 467383e..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * An abstract class responsible for building text content object using ask-sdk-model in Alexa skills kit display interface - * https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#textcontent-object-specifications. - */ -var TextContentHelper = /** @class */ (function () { - function TextContentHelper() { - } - /** - * @param {string} primaryText - * @returns {this} - */ - TextContentHelper.prototype.withPrimaryText = function (primaryText) { - this.primaryText = primaryText; - return this; - }; - /** - * @param {string} secondaryText - * @returns {this} - */ - TextContentHelper.prototype.withSecondaryText = function (secondaryText) { - this.secondaryText = secondaryText; - return this; - }; - /** - * @param {string} tertiaryText - * @returns {this} - */ - TextContentHelper.prototype.withTertiaryText = function (tertiaryText) { - this.tertiaryText = tertiaryText; - return this; - }; - return TextContentHelper; -}()); -exports.TextContentHelper = TextContentHelper; -//# sourceMappingURL=TextContentHelper.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js.map deleted file mode 100644 index c3fecfc..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/response/TextContentHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TextContentHelper.js","sourceRoot":"","sources":["../../lib/response/TextContentHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAKb;;;GAGG;AACH;IAAA;IAuCA,CAAC;IAlCG;;;OAGG;IACI,2CAAe,GAAtB,UAAuB,WAAoB;QACvC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,6CAAiB,GAAxB,UAAyB,aAAsB;QAC3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QAEnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,4CAAgB,GAAvB,UAAwB,YAAqB;QACzC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAML,wBAAC;AAAD,CAAC,AAvCD,IAuCC;AAvCqB,8CAAiB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.d.ts deleted file mode 100644 index a742a5b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { services } from 'ask-sdk-model'; -import ApiClientResponse = services.ApiClientResponse; -import ApiClientRequest = services.ApiClientRequest; -import ApiClient = services.ApiClient; -/** - * Default implementation of {@link services.ApiClient} which uses the native HTTP/HTTPS library of Node.JS. - */ -export declare class DefaultApiClient implements ApiClient { - /** - * Dispatches a request to an API endpoint described in the request. - * An ApiClient is expected to resolve the Promise in the case an API returns a non-200 HTTP - * status code. The responsibility of translating a particular response code to an error lies with the - * caller to invoke. - * @param {services.ApiClientRequest} request request to dispatch to the ApiClient - * @returns {Promise} response from the ApiClient - */ - invoke(request: ApiClientRequest): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js b/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js deleted file mode 100644 index 212d00e..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -var url = require("url"); -var AskSdkUtils_1 = require("../util/AskSdkUtils"); -/** - * Default implementation of {@link services.ApiClient} which uses the native HTTP/HTTPS library of Node.JS. - */ -var DefaultApiClient = /** @class */ (function () { - function DefaultApiClient() { - } - /** - * Dispatches a request to an API endpoint described in the request. - * An ApiClient is expected to resolve the Promise in the case an API returns a non-200 HTTP - * status code. The responsibility of translating a particular response code to an error lies with the - * caller to invoke. - * @param {services.ApiClientRequest} request request to dispatch to the ApiClient - * @returns {Promise} response from the ApiClient - */ - DefaultApiClient.prototype.invoke = function (request) { - var _this = this; - var urlObj = url.parse(request.url); - var clientRequestOptions = { - // tslint:disable:object-literal-sort-keys - hostname: urlObj.hostname, - path: urlObj.path, - port: urlObj.port, - protocol: urlObj.protocol, - auth: urlObj.auth, - headers: arrayToObjectHeader(request.headers), - method: request.method, - }; - var client = clientRequestOptions.protocol === 'https:' ? require('https') : require('http'); - return new Promise(function (resolve, reject) { - var clientRequest = client.request(clientRequestOptions, function (response) { - var chunks = []; - response.on('data', function (chunk) { - chunks.push(chunk); - }); - response.on('end', function () { - var responseStr = chunks.join(''); - var responseObj = { - statusCode: response.statusCode, - body: responseStr, - headers: objectToArrayHeader(response.headers), - }; - resolve(responseObj); - }); - }); - clientRequest.on('error', function (err) { - reject(AskSdkUtils_1.createAskSdkError(_this.constructor.name, err.message)); - }); - if (request.body) { - clientRequest.write(request.body); - } - clientRequest.end(); - }); - }; - return DefaultApiClient; -}()); -exports.DefaultApiClient = DefaultApiClient; -/** - * Converts the header array in {@link services.ApiClientRequest} to compatible JSON object. - * @private - * @param {{key : string, value : string}[]} header header array from ApiClientRequest} - * @returns {Object.} header object to pass into HTTP client - */ -function arrayToObjectHeader(header) { - var reducer = function (obj, item) { - if (obj[item.key]) { - obj[item.key].push(item.value); - } - else { - obj[item.key] = [item.value]; - } - return obj; - }; - return header.reduce(reducer, {}); -} -/** - * Converts JSON header object to header array required for {services.ApiClientResponse} - * @private - * @param {Object.} header JSON header object returned by HTTP client - * @returns {{key : string, value : string}[]} - */ -function objectToArrayHeader(header) { - var arrayHeader = []; - Object.keys(header).forEach(function (key) { - var headerArray = Array.isArray(header[key]) ? header[key] : [header[key]]; - for (var _i = 0, _a = headerArray; _i < _a.length; _i++) { - var value = _a[_i]; - arrayHeader.push({ - key: key, - value: value, - }); - } - }); - return arrayHeader; -} -//# sourceMappingURL=DefaultApiClient.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js.map deleted file mode 100644 index a520da1..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/service/DefaultApiClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultApiClient.js","sourceRoot":"","sources":["../../lib/service/DefaultApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAKb,yBAA2B;AAC3B,mDAAwD;AAKxD;;GAEG;AACH;IAAA;IAuDA,CAAC;IAtDG;;;;;;;OAOG;IACI,iCAAM,GAAb,U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AAsB,EAAtB,KAAW,WAAW,EAAtB,cAAsB,EAAtB,IAAsB,EAAE;YAAvC,IAAM,KAAK,SAAA;YACZ,WAAW,CAAC,IAAI,CAAC;gBACb,GAAG,KAAA;gBACH,KAAK,OAAA;aACR,CAAC,CAAC;SACN;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.d.ts deleted file mode 100644 index 947c876..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { RequestEnvelope, ResponseEnvelope, services } from 'ask-sdk-model'; -import { PersistenceAdapter } from '../attributes/persistence/PersistenceAdapter'; -import { RequestDispatcher } from '../dispatcher/RequestDispatcher'; -import { SkillConfiguration } from './SkillConfiguration'; -import ApiClient = services.ApiClient; -/** - * Top level container for request dispatcher. - */ -export declare class Skill { - protected requestDispatcher: RequestDispatcher; - protected persistenceAdapter: PersistenceAdapter; - protected apiClient: ApiClient; - protected customUserAgent: string; - protected skillId: string; - constructor(skillConfiguration: SkillConfiguration); - /** - * Invokes the dispatcher to handler the request envelope and construct the handler input. - * @param {RequestEnvelope} requestEnvelope - * @param context - * @returns {Promise} - */ - invoke(requestEnvelope: RequestEnvelope, context?: any): Promise; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js b/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js deleted file mode 100644 index 8e3a04f..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var ask_sdk_model_1 = require("ask-sdk-model"); -var AttributesManagerFactory_1 = require("../attributes/AttributesManagerFactory"); -var DefaultRequestDispatcher_1 = require("../dispatcher/DefaultRequestDispatcher"); -var ResponseFactory_1 = require("../response/ResponseFactory"); -var AskSdkUtils_1 = require("../util/AskSdkUtils"); -var ServiceClientFactory = ask_sdk_model_1.services.ServiceClientFactory; -/** - * Top level container for request dispatcher. - */ -var Skill = /** @class */ (function () { - function Skill(skillConfiguration) { - this.persistenceAdapter = skillConfiguration.persistenceAdapter; - this.apiClient = skillConfiguration.apiClient; - this.customUserAgent = skillConfiguration.customUserAgent; - this.skillId = skillConfiguration.skillId; - this.requestDispatcher = new DefaultRequestDispatcher_1.DefaultRequestDispatcher({ - requestMappers: skillConfiguration.requestMappers, - handlerAdapters: skillConfiguration.handlerAdapters, - errorMapper: skillConfiguration.errorMapper, - requestInterceptors: skillConfiguration.requestInterceptors, - responseInterceptors: skillConfiguration.responseInterceptors, - }); - } - /** - * Invokes the dispatcher to handler the request envelope and construct the handler input. - * @param {RequestEnvelope} requestEnvelope - * @param context - * @returns {Promise} - */ - Skill.prototype.invoke = function (requestEnvelope, context) { - return __awaiter(this, void 0, void 0, function () { - var handlerInput, response; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - if (this.skillId != null && requestEnvelope.context.System.application.applicationId !== this.skillId) { - throw AskSdkUtils_1.createAskSdkError(this.constructor.name, 'Skill ID verification failed!'); - } - handlerInput = { - requestEnvelope: requestEnvelope, - context: context, - attributesManager: AttributesManagerFactory_1.AttributesManagerFactory.init({ - requestEnvelope: requestEnvelope, - persistenceAdapter: this.persistenceAdapter, - }), - responseBuilder: ResponseFactory_1.ResponseFactory.init(), - serviceClientFactory: this.apiClient - ? new ServiceClientFactory({ - apiClient: this.apiClient, - apiEndpoint: requestEnvelope.context.System.apiEndpoint, - authorizationValue: requestEnvelope.context.System.apiAccessToken, - }) - : undefined, - }; - return [4 /*yield*/, this.requestDispatcher.dispatch(handlerInput)]; - case 1: - response = _a.sent(); - return [2 /*return*/, { - version: '1.0', - response: response, - userAgent: AskSdkUtils_1.createAskSdkUserAgent(this.customUserAgent), - sessionAttributes: requestEnvelope.session ? handlerInput.attributesManager.getSessionAttributes() : undefined, - }]; - } - }); - }); - }; - return Skill; -}()); -exports.Skill = Skill; -//# sourceMappingURL=Skill.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js.map deleted file mode 100644 index 3f14624..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/Skill.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Skill.js","sourceRoot":"","sources":["../../lib/skill/Skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,+CAIuB;AACvB,mFAAkF;AAElF,mFAAkF;AAGlF,+DAA8D;AAC9D,mDAG6B;AAE7B,IAAO,oBAAoB,GAAG,wBAAQ,CAAC,oBAAoB,CAAC;AAG5D;;GAEG;AACH;IAOI,eAAY,kBAAuC;QAC/C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC;QAChE,IAAI,CAAC,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,kBAAkB,CAAC,eAAe,CAAC;QAC1D,IAAI,CAAC,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC;QAE1C,IAAI,CAAC,iBAAiB,GAAG,IAAI,mDAAwB,CAAC;YAClD,cAAc,EAAG,kBAAkB,CAAC,cAAc;YAClD,eAAe,EAAG,kBAAkB,CAAC,eAAe;YACpD,WAAW,EAAG,kBAAkB,CAAC,WAAW;Y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AAoB,EAAE,CAAC,CAAC,CAAC,SAAS;6BAClH,EAAC;;;;KACL;IACL,YAAC;AAAD,CAAC,AA9DD,IA8DC;AA9DY,sBAAK"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.d.ts deleted file mode 100644 index c0b436b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { CustomSkillBuilder } from './factory/CustomSkillBuilder'; -/** - * Provider for skill builders. - */ -export declare const SkillBuilders: { - custom(): CustomSkillBuilder; -}; diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js b/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js deleted file mode 100644 index 39b2848..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -var CustomSkillFactory_1 = require("./factory/CustomSkillFactory"); -/** - * Provider for skill builders. - */ -exports.SkillBuilders = { - custom: function () { - return CustomSkillFactory_1.CustomSkillFactory.init(); - }, -}; -//# sourceMappingURL=SkillBuilders.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js.map deleted file mode 100644 index 66bce6f..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillBuilders.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SkillBuilders.js","sourceRoot":"","sources":["../../lib/skill/SkillBuilders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAGb,mEAAkE;AAElE;;GAEG;AACU,QAAA,aAAa,GAAG;IACzB,MAAM,EAAN;QACI,OAAO,uCAAkB,CAAC,IAAI,EAAE,CAAC;IACrC,CAAC;CACJ,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.d.ts deleted file mode 100644 index 24fce53..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { services } from 'ask-sdk-model'; -import { PersistenceAdapter } from '../attributes/persistence/PersistenceAdapter'; -import { ErrorMapper } from '../dispatcher/error/ErrorMapper'; -import { HandlerAdapter } from '../dispatcher/request/handler/HandlerAdapter'; -import { RequestInterceptor } from '../dispatcher/request/interceptor/RequestInterceptor'; -import { ResponseInterceptor } from '../dispatcher/request/interceptor/ResponseInterceptor'; -import { RequestMapper } from '../dispatcher/request/mapper/RequestMapper'; -/** - * An interfaces that represents the standard components needed to build {@link Skill}. - */ -export interface SkillConfiguration { - requestMappers: RequestMapper[]; - handlerAdapters: HandlerAdapter[]; - errorMapper?: ErrorMapper; - requestInterceptors?: RequestInterceptor[]; - responseInterceptors?: ResponseInterceptor[]; - persistenceAdapter?: PersistenceAdapter; - apiClient?: services.ApiClient; - customUserAgent?: string; - skillId?: string; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js b/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js deleted file mode 100644 index 3119b45..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SkillConfiguration.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js.map deleted file mode 100644 index 6f5db66..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/SkillConfiguration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SkillConfiguration.js","sourceRoot":"","sources":["../../lib/skill/SkillConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.d.ts deleted file mode 100644 index 97a7931..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Response } from 'ask-sdk-model'; -import { ErrorHandler } from '../../dispatcher/error/ErrorHandler'; -import { HandlerInput } from '../../dispatcher/request/handler/HandlerInput'; -import { RequestHandler } from '../../dispatcher/request/handler/RequestHandler'; -import { RequestInterceptor } from '../../dispatcher/request/interceptor/RequestInterceptor'; -import { ResponseInterceptor } from '../../dispatcher/request/interceptor/ResponseInterceptor'; -import { Skill } from '../Skill'; -import { SkillConfiguration } from '../SkillConfiguration'; -import { LambdaHandler } from './BaseSkillFactory'; -/** - * An interface containing help functions to build a {@link Skill}. - */ -export interface BaseSkillBuilder { - addRequestHandler(matcher: ((handlerInput: HandlerInput) => Promise | boolean) | string, executor: (handlerInput: HandlerInput) => Promise | Response): this; - addRequestHandlers(...requestHandlers: RequestHandler[]): this; - addRequestInterceptors(...executors: Array Promise | void)>): this; - addResponseInterceptors(...executors: Array Promise | void)>): this; - addErrorHandler(matcher: (handlerInput: HandlerInput, error: Error) => Promise | boolean, executor: (handlerInput: HandlerInput, error: Error) => Promise | Response): this; - addErrorHandlers(...errorHandlers: ErrorHandler[]): this; - withCustomUserAgent(customUserAgent: string): this; - withSkillId(skillId: string): this; - getSkillConfiguration(): SkillConfiguration; - create(): Skill; - lambda(): LambdaHandler; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js deleted file mode 100644 index f7328d1..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=BaseSkillBuilder.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js.map deleted file mode 100644 index 07f65a6..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillBuilder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BaseSkillBuilder.js","sourceRoot":"","sources":["../../../lib/skill/factory/BaseSkillBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.d.ts deleted file mode 100644 index cfc9636..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { RequestEnvelope } from 'ask-sdk-model'; -import { BaseSkillBuilder } from './BaseSkillBuilder'; -/** - * Type definition of LambdaHandler which contains inputs received in lambda function. - * https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html. - */ -export declare type LambdaHandler = (requestEnvelope: RequestEnvelope, context: any, callback: (err: Error, result?: any) => void) => void; -export declare class BaseSkillFactory { - static init(): BaseSkillBuilder; - private constructor(); -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js deleted file mode 100644 index e90935b..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -var DefaultErrorMapper_1 = require("../../dispatcher/error/DefaultErrorMapper"); -var DefaultHandlerAdapter_1 = require("../../dispatcher/request/handler/DefaultHandlerAdapter"); -var DefaultRequestHandlerChain_1 = require("../../dispatcher/request/handler/DefaultRequestHandlerChain"); -var DefaultRequestMapper_1 = require("../../dispatcher/request/mapper/DefaultRequestMapper"); -var AskSdkUtils_1 = require("../../util/AskSdkUtils"); -var Skill_1 = require("../Skill"); -var BaseSkillFactory = /** @class */ (function () { - function BaseSkillFactory() { - } - BaseSkillFactory.init = function () { - var thisRequestHandlerChains = []; - var thisRequestInterceptors = []; - var thisResponseInterceptors = []; - var thisErrorHandlers = []; - var thisCustomUserAgent; - var thisSkillId; - return { - addRequestHandler: function (matcher, executor) { - var canHandle; - switch (typeof matcher) { - case 'string': { - canHandle = function (_a) { - var requestEnvelope = _a.requestEnvelope; - return matcher === (requestEnvelope.request.type === 'IntentRequest' - ? requestEnvelope.request.intent.name - : requestEnvelope.request.type); - }; - break; - } - case 'function': { - canHandle = matcher; - break; - } - default: { - throw AskSdkUtils_1.createAskSdkError('SkillBuilderError', "Matcher must be of type string or function, got: " + typeof matcher + "!"); - } - } - thisRequestHandlerChains.push(new DefaultRequestHandlerChain_1.DefaultRequestHandlerChain({ - requestHandler: { - canHandle: canHandle, - handle: executor, - }, - })); - return this; - }, - addRequestHandlers: function () { - var requestHandlers = []; - for (var _i = 0; _i < arguments.length; _i++) { - requestHandlers[_i] = arguments[_i]; - } - for (var _a = 0, requestHandlers_1 = requestHandlers; _a < requestHandlers_1.length; _a++) { - var requestHandler = requestHandlers_1[_a]; - thisRequestHandlerChains.push(new DefaultRequestHandlerChain_1.DefaultRequestHandlerChain({ - requestHandler: requestHandler, - })); - } - return this; - }, - addRequestInterceptors: function () { - var executors = []; - for (var _i = 0; _i < arguments.length; _i++) { - executors[_i] = arguments[_i]; - } - for (var _a = 0, executors_1 = executors; _a < executors_1.length; _a++) { - var executor = executors_1[_a]; - switch (typeof executor) { - case 'object': { - thisRequestInterceptors.push(executor); - break; - } - case 'function': { - thisRequestInterceptors.push({ - process: executor, - }); - break; - } - default: { - throw AskSdkUtils_1.createAskSdkError('SkillBuilderError', "Executor must be of type Object(RequestInterceptor) or function, got: " + typeof executor); - } - } - } - return this; - }, - addResponseInterceptors: function () { - var executors = []; - for (var _i = 0; _i < arguments.length; _i++) { - executors[_i] = arguments[_i]; - } - for (var _a = 0, executors_2 = executors; _a < executors_2.length; _a++) { - var executor = executors_2[_a]; - switch (typeof executor) { - case 'object': { - thisResponseInterceptors.push(executor); - break; - } - case 'function': { - thisResponseInterceptors.push({ - process: executor, - }); - break; - } - default: { - throw AskSdkUtils_1.createAskSdkError('SkillBuilderError', "Executor must be of type Object(ResponseInterceptor) or function, got: " + typeof executor); - } - } - } - return this; - }, - addErrorHandler: function (matcher, executor) { - thisErrorHandlers.push({ - canHandle: matcher, - handle: executor, - }); - return this; - }, - addErrorHandlers: function () { - var errorHandlers = []; - for (var _i = 0; _i < arguments.length; _i++) { - errorHandlers[_i] = arguments[_i]; - } - thisErrorHandlers.push.apply(thisErrorHandlers, errorHandlers); - return this; - }, - withCustomUserAgent: function (customUserAgent) { - thisCustomUserAgent = customUserAgent; - return this; - }, - withSkillId: function (skillId) { - thisSkillId = skillId; - return this; - }, - getSkillConfiguration: function () { - var requestMapper = new DefaultRequestMapper_1.DefaultRequestMapper({ - requestHandlerChains: thisRequestHandlerChains, - }); - var errorMapper = thisErrorHandlers.length - ? new DefaultErrorMapper_1.DefaultErrorMapper({ - errorHandlers: thisErrorHandlers, - }) - : undefined; - return { - requestMappers: [requestMapper], - handlerAdapters: [new DefaultHandlerAdapter_1.DefaultHandlerAdapter()], - errorMapper: errorMapper, - requestInterceptors: thisRequestInterceptors, - responseInterceptors: thisResponseInterceptors, - customUserAgent: thisCustomUserAgent, - skillId: thisSkillId, - }; - }, - create: function () { - return new Skill_1.Skill(this.getSkillConfiguration()); - }, - lambda: function () { - var skill = new Skill_1.Skill(this.getSkillConfiguration()); - return function (event, context, callback) { - skill.invoke(event, context) - .then(function (response) { - callback(null, response); - }) - .catch(function (err) { - callback(err, null); - }); - }; - }, - }; - }; - return BaseSkillFactory; -}()); -exports.BaseSkillFactory = BaseSkillFactory; -//# sourceMappingURL=BaseSkillFactory.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js.map deleted file mode 100644 index 47b2dd0..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/BaseSkillFactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BaseSkillFactory.js","sourceRoot":"","sources":["../../../lib/skill/factory/BaseSkillFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAOb,gFAA+E;AAE/E,gGAA+F;AAC/F,0GAAyG;AAKzG,6FAA4F;AAC5F,sDAA2D;AAC3D,kCAAiC;AAajC;IAwKI;IAAuB,CAAC;IAvKV,qBAAI,GAAlB;QACI,IAAM,wBAAwB,GAAkC,EAAE,CAAC;QACnE,IAAM,uBAAuB,GAA0B,EAAE,CAAC;QAC1D,IAAM,wBAAwB,GAA2B,EAAE,CAAC;QAC5D,IAAM,iBAAiB,GAAoB,EAAE,CAAC;QAC9C,IAAI,mBAA4B,CAAC;QACjC,IAAI,WAAoB,CAAC;QAEzB,OAAO;YACH,iBAAiB,EAAjB,UACI,OAAgF,EAChF,QAAwE;gBAExE,IAAI,SAAuE,CAAC;gBAE5E,QAAQ,OAAO,OAAO,EAAE;oBACpB,KAAK,QAAS,CAAC,CAAC;wBACZ,SAAS,GAAG,UAAC,EAAkC;gCAAhC,oCAAe;4BAC1B,OAAO,OAAO,KAAK,CACZ,eAAe,CAAC,OAAO,CAAC,IAAI,KAAK,eAAe;gCAC5C,CAAC,CAAkB,eAAe,CAAC,OAAQ,CAAC,MAAM,CAAC,IAAI;gCACvD,CAAC,CAAC,e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,CAAC;SACJ,CAAC;IACN,CAAC;IAGL,uBAAC;AAAD,CAAC,AAzKD,IAyKC;AAzKY,4CAAgB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.d.ts deleted file mode 100644 index 4af6ec3..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { services } from 'ask-sdk-model'; -import { PersistenceAdapter } from '../../attributes/persistence/PersistenceAdapter'; -import { BaseSkillBuilder } from './BaseSkillBuilder'; -import ApiClient = services.ApiClient; -/** - * An interface which helps building a customized skill. - */ -export interface CustomSkillBuilder extends BaseSkillBuilder { - withPersistenceAdapter(persistenceAdapter: PersistenceAdapter): this; - withApiClient(apiClient: ApiClient): this; -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js deleted file mode 100644 index b5c1554..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=CustomSkillBuilder.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js.map deleted file mode 100644 index 68a9fcd..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillBuilder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CustomSkillBuilder.js","sourceRoot":"","sources":["../../../lib/skill/factory/CustomSkillBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.d.ts deleted file mode 100644 index 46caa46..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { CustomSkillBuilder } from './CustomSkillBuilder'; -/** - * Provider for {@link CustomSkillBuilder} - */ -export declare class CustomSkillFactory { - static init(): CustomSkillBuilder; - private constructor(); -} diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js deleted file mode 100644 index 20c2ad5..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var BaseSkillFactory_1 = require("./BaseSkillFactory"); -/** - * Provider for {@link CustomSkillBuilder} - */ -var CustomSkillFactory = /** @class */ (function () { - function CustomSkillFactory() { - } - CustomSkillFactory.init = function () { - var thisPersistenceAdapter; - var thisApiClient; - var baseSkillBuilder = BaseSkillFactory_1.BaseSkillFactory.init(); - return __assign({}, baseSkillBuilder, { getSkillConfiguration: function () { - var skillConfiguration = baseSkillBuilder.getSkillConfiguration(); - return __assign({}, skillConfiguration, { persistenceAdapter: thisPersistenceAdapter, apiClient: thisApiClient }); - }, - withPersistenceAdapter: function (persistenceAdapter) { - thisPersistenceAdapter = persistenceAdapter; - return this; - }, - withApiClient: function (apiClient) { - thisApiClient = apiClient; - return this; - } }); - }; - return CustomSkillFactory; -}()); -exports.CustomSkillFactory = CustomSkillFactory; -//# sourceMappingURL=CustomSkillFactory.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js.map deleted file mode 100644 index c0dd254..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/skill/factory/CustomSkillFactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CustomSkillFactory.js","sourceRoot":"","sources":["../../../lib/skill/factory/CustomSkillFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;;;;;;;;;AAKb,uDAAsD;AAItD;;GAEG;AACH;IA+BI;IAAuB,CAAC;IA9BV,uBAAI,GAAlB;QACI,IAAI,sBAA2C,CAAC;QAChD,IAAI,aAAyB,CAAC;QAE9B,IAAM,gBAAgB,GAAG,mCAAgB,CAAC,IAAI,EAAE,CAAC;QAEjD,oBAC4B,gBAAgB,IACxC,qBAAqB,EAArB;gBACI,IAAM,kBAAkB,GAAG,gBAAgB,CAAC,qBAAqB,EAAE,CAAC;gBAEpE,oBACO,kBAAkB,IACrB,kBAAkB,EAAG,sBAAsB,EAC3C,SAAS,EAAG,aAAa,IAC3B;YACN,CAAC;YACD,sBAAsB,EAAtB,UAAuB,kBAAuC;gBAC1D,sBAAsB,GAAG,kBAAkB,CAAC;gBAE5C,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,aAAa,EAAb,UAAc,SAAqB;gBAC/B,aAAa,GAAG,SAAS,CAAC;gBAE1B,OAAO,IAAI,CAAC;YAChB,CAAC,IACH;IACN,CAAC;IAGL,yBAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCY,gDAAkB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.d.ts b/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.d.ts deleted file mode 100644 index f186cf6..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * function creating an AskSdk error. - * @param {string} errorName - * @param {string} errorMessage - * @returns {Error} - */ -export declare function createAskSdkError(errorName: string, errorMessage: string): Error; -/** - * function creating an AskSdk user agent. - * @param {string} customUserAgent - * @returns {string} - */ -export declare function createAskSdkUserAgent(customUserAgent: string): string; diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js b/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js deleted file mode 100644 index e0d09a5..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * or in the "license" file accompanying this file. This file is distributed - * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing - * permissions and limitations under the License. - */ -'use strict'; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * function creating an AskSdk error. - * @param {string} errorName - * @param {string} errorMessage - * @returns {Error} - */ -function createAskSdkError(errorName, errorMessage) { - var error = new Error(errorMessage); - error.name = "AskSdk." + errorName + " Error"; - return error; -} -exports.createAskSdkError = createAskSdkError; -/** - * function creating an AskSdk user agent. - * @param {string} customUserAgent - * @returns {string} - */ -function createAskSdkUserAgent(customUserAgent) { - var packageInfo = require('../../package.json'); - var customUserAgentString = customUserAgent ? (' ' + customUserAgent) : ''; - return "ask-node/" + packageInfo.version + " Node/" + process.version + customUserAgentString; -} -exports.createAskSdkUserAgent = createAskSdkUserAgent; -//# sourceMappingURL=AskSdkUtils.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js.map b/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js.map deleted file mode 100644 index 34dd7f9..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/dist/util/AskSdkUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AskSdkUtils.js","sourceRoot":"","sources":["../../lib/util/AskSdkUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,CAAC;;AAIb;;;;;GAKG;AACH,2BAAkC,SAAkB,EAAE,YAAqB;IACvE,IAAM,KAAK,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;IACtC,KAAK,CAAC,IAAI,GAAG,YAAU,SAAS,WAAQ,CAAC;IAEzC,OAAO,KAAK,CAAC;AACjB,CAAC;AALD,8CAKC;AAED;;;;GAIG;AACH,+BAAsC,eAAwB;IAC1D,IAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAClD,IAAM,qBAAqB,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE7E,OAAO,cAAY,WAAW,CAAC,OAAO,cAAS,OAAO,CAAC,OAAS,GAAG,qBAAqB,CAAC;AAC7F,CAAC;AALD,sDAKC"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-core/package.json b/lambda/custom/node_modules/ask-sdk-core/package.json deleted file mode 100644 index 43fec12..0000000 --- a/lambda/custom/node_modules/ask-sdk-core/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "_from": "ask-sdk-core@^2.0.0", - "_id": "ask-sdk-core@2.0.7", - "_inBundle": false, - "_integrity": "sha512-L0YoF7ls0iUoo/WYDYj7uDjAFThYZSDjzF8YvLHIEZyzKVgrNNqxetRorUB+odDoctPWW7RV1xcep8F4p7c1jg==", - "_location": "/ask-sdk-core", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "ask-sdk-core@^2.0.0", - "name": "ask-sdk-core", - "escapedName": "ask-sdk-core", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/ask-sdk-core/-/ask-sdk-core-2.0.7.tgz", - "_shasum": "0f2300aa99a5bd92c0bd700d1ed92ff8da1f83b9", - "_spec": "ask-sdk-core@^2.0.0", - "_where": "/home/miststlkr/Projects/vanhack/lambda/custom", - "author": { - "name": "Amazon.com" - }, - "bugs": { - "url": "https://github.com/alexa/alexa-skill-sdk-for-nodejs/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Tianren Zhang", - "email": "tianrenz@amazon.com" - }, - { - "name": "Tiantian Xie", - "email": "xtiantia@amazon.com" - } - ], - "deprecated": false, - "description": "Core package for Alexa Skills Kit SDK", - "devDependencies": { - "@types/chai": "^4.1.2", - "@types/mocha": "^5.0.0", - "@types/node": "^9.6.1", - "@types/sinon": "^4.3.0", - "ask-sdk-model": "^1.0.0", - "chai": "^4.1.2", - "del": "^3.0.0", - "gulp": "^4.0.0", - "mocha": "^5.0.5", - "nock": "^9.2.3", - "nyc": "^11.4.1", - "sinon": "^4.5.0", - "ts-node": "^6.0.1", - "tslint": "^5.9.1", - "typedoc": "^0.11.1", - "typescript": "^2.8.1" - }, - "homepage": "https://github.com/alexa/alexa-skill-sdk-for-nodejs#readme", - "keywords": [ - "Alexa", - "SDK" - ], - "license": "Apache-2.0", - "main": "dist/index.js", - "name": "ask-sdk-core", - "peerDependencies": { - "ask-sdk-model": "^1.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs.git" - }, - "scripts": { - "gulp": "gulp" - }, - "types": "dist/index.d.ts", - "version": "2.0.7" -} diff --git a/lambda/custom/node_modules/ask-sdk-model/LICENSE b/lambda/custom/node_modules/ask-sdk-model/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/lambda/custom/node_modules/ask-sdk-model/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/lambda/custom/node_modules/ask-sdk-model/index.d.ts b/lambda/custom/node_modules/ask-sdk-model/index.d.ts deleted file mode 100644 index c00e43f..0000000 --- a/lambda/custom/node_modules/ask-sdk-model/index.d.ts +++ /dev/null @@ -1,2282 +0,0 @@ -export declare namespace services { - /** - * Represents the interface between ApiClient and a Service Client. - * @export - * @interface ApiClientMessage - */ - interface ApiClientMessage { - headers: Array<{ - key: string; - value: string; - }>; - body?: string; - } - /** - * Represents a request sent from Service Clients to an ApiClient implementation. - * @export - * @interface ApiClientRequest - * @extends {ApiClientMessage} - */ - interface ApiClientRequest extends ApiClientMessage { - url: string; - method: string; - } - /** - * Represents a response returned by ApiClient implementation to a Service Client. - * @export - * @interface ApiClientResponse - * @extends {ApiClientMessage} - */ - interface ApiClientResponse extends ApiClientMessage { - /** - * Result code of the attempt to satisfy the request. Normally this - * corresponds to the HTTP status code returned by the server. - */ - statusCode: number; - } - /** - * Represents a basic contract for API request execution - * @export - * @interface ApiClient - */ - interface ApiClient { - /** - * Dispatches a request to an API endpoint described in the request. - * An ApiClient is expected to resolve the Promise in the case an API returns a non-200 HTTP - * status code. The responsibility of translating a particular response code to an error lies with the - * caller to invoke. - * @param {ApiClientRequest} request request to dispatch to the ApiClient - * @returns {Promise} Response from the ApiClient - * @memberof ApiClient - */ - invoke(request: ApiClientRequest): Promise; - } - /** - * Represents an interface that provides API configuration options needed by service clients. - * @interface ApiConfiguration - */ - interface ApiConfiguration { - /** - * Configured ApiClient implementation - */ - apiClient: ApiClient; - /** - * Authorization value to be used on any calls of the service client instance - */ - authorizationValue: string; - /** - * Endpoint to hit by the service client instance - */ - apiEndpoint: string; - } - /** - * Class to be used as the base class for the generated service clients. - */ - abstract class BaseServiceClient { - private static isCodeSuccessful(responseCode); - private static buildUrl(endpoint, path, queryParameters, pathParameters); - private static interpolateParams(path, params); - private static buildQueryString(params, isQueryStart); - /** - * ApiConfiguration instance to provide dependencies for this service client - */ - protected apiConfiguration: ApiConfiguration; - /** - * Creates new instance of the BaseServiceClient - * @param {ApiConfiguration} apiConfiguration configuration parameter to provide dependencies to service client instance - */ - protected constructor(apiConfiguration: ApiConfiguration); - /** - * Invocation wrapper to implement service operations in generated classes - * @param method HTTP method, such as 'POST', 'GET', 'DELETE', etc. - * @param endpoint base API url - * @param path the path pattern with possible placeholders for path parameters in form {paramName} - * @param pathParams path parameters collection - * @param queryParams query parameters collection - * @param headerParams headers collection - * @param bodyParam if body parameter is present it is provided here, otherwise null or undefined - * @param errors maps recognized status codes to messages - */ - protected invoke(method: string, endpoint: string, path: string, pathParams: Map, queryParams: Map, headerParams: Array<{ - key: string; - value: string; - }>, bodyParam: any, errors: Map): Promise; - } -} -/** - * An object containing an application ID. This is used to verify that the request was intended for your service. - * @interface - */ -export interface Application { - 'applicationId': string; -} -/** - * - * @interface - */ -export interface Context { - 'System': interfaces.system.SystemState; - 'AudioPlayer'?: interfaces.audioplayer.AudioPlayerState; - 'Display'?: interfaces.display.DisplayState; -} -/** - * An object providing information about the device used to send the request. The device object contains both deviceId and supportedInterfaces properties. The deviceId property uniquely identifies the device. The supportedInterfaces property lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. - * @interface - */ -export interface Device { - 'deviceId': string; - 'supportedInterfaces': SupportedInterfaces; -} -/** - * Enumeration indicating the status of the multi-turn dialog. This property is included if the skill meets the requirements to use the Dialog directives. Note that COMPLETED is only possible when you use the Dialog.Delegate directive. If you use intent confirmation, dialogState is considered COMPLETED if the user denies the entire intent (for instance, by answering “no” when asked the confirmation prompt). Be sure to also check the confirmationStatus property on the Intent object before fulfilling the user’s request. - * @enum - */ -export declare type DialogState = 'STARTED' | 'IN_PROGRESS' | 'COMPLETED'; -/** - * - * @interface - */ -export declare type Directive = interfaces.audioplayer.StopDirective | dialog.ConfirmSlotDirective | interfaces.audioplayer.PlayDirective | interfaces.connections.SendRequestDirective | interfaces.display.RenderTemplateDirective | interfaces.gadgetController.SetLightDirective | dialog.DelegateDirective | interfaces.display.HintDirective | dialog.ConfirmIntentDirective | interfaces.gameEngine.StartInputHandlerDirective | interfaces.videoapp.LaunchDirective | interfaces.gameEngine.StopInputHandlerDirective | interfaces.connections.SendResponseDirective | dialog.ElicitSlotDirective | interfaces.audioplayer.ClearQueueDirective; -/** - * An object that represents what the user wants. - * @interface - */ -export interface Intent { - 'name': string; - 'slots'?: { - [key: string]: Slot; - }; - 'confirmationStatus': IntentConfirmationStatus; -} -/** - * Indication of whether an intent or slot has been explicitly confirmed or denied by the user, or neither. - * @enum - */ -export declare type IntentConfirmationStatus = 'NONE' | 'DENIED' | 'CONFIRMED'; -/** - * Contains a consentToken allowing the skill access to information that the customer has consented to provide, such as address information. Note that the consentToken is deprecated. Use the apiAccessToken available in the context object to determine the user’s permissions. - * @interface - */ -export interface Permissions { - 'consentToken'?: string; -} -/** - * A request object that provides the details of the user’s request. The request body contains the parameters necessary for the service to perform its logic and generate a response. - * @interface - */ -export declare type Request = interfaces.audioplayer.PlaybackFinishedRequest | events.skillevents.SkillEnabledRequest | services.listManagement.ListUpdatedEventRequest | events.skillevents.SkillDisabledRequest | interfaces.display.ElementSelectedRequest | events.skillevents.PermissionChangedRequest | services.listManagement.ListItemsCreatedEventRequest | SessionEndedRequest | IntentRequest | interfaces.audioplayer.PlaybackFailedRequest | LaunchRequest | interfaces.audioplayer.PlaybackStoppedRequest | interfaces.playbackcontroller.PreviousCommandIssuedRequest | services.listManagement.ListItemsUpdatedEventRequest | events.skillevents.AccountLinkedRequest | services.listManagement.ListCreatedEventRequest | interfaces.audioplayer.PlaybackStartedRequest | interfaces.audioplayer.PlaybackNearlyFinishedRequest | services.listManagement.ListItemsDeletedEventRequest | interfaces.connections.ConnectionsResponse | interfaces.messaging.MessageReceivedRequest | interfaces.connections.ConnectionsRequest | interfaces.system.ExceptionEncounteredRequest | events.skillevents.PermissionAcceptedRequest | services.listManagement.ListDeletedEventRequest | interfaces.gameEngine.InputHandlerEventRequest | interfaces.playbackcontroller.NextCommandIssuedRequest | interfaces.playbackcontroller.PauseCommandIssuedRequest | interfaces.playbackcontroller.PlayCommandIssuedRequest; -/** - * Request wrapper for all requests sent to your Skill. - * @interface - */ -export interface RequestEnvelope { - 'version': string; - 'session'?: Session; - 'context': Context; - 'request': Request; -} -/** - * - * @interface - */ -export interface Response { - 'outputSpeech'?: ui.OutputSpeech; - 'card'?: ui.Card; - 'reprompt'?: ui.Reprompt; - 'directives'?: Array; - 'shouldEndSession'?: boolean; -} -/** - * - * @interface - */ -export interface ResponseEnvelope { - 'version': string; - 'sessionAttributes'?: { - [key: string]: any; - }; - 'userAgent'?: string; - 'response': Response; -} -/** - * Represents a single execution of the alexa service - * @interface - */ -export interface Session { - 'new': boolean; - 'sessionId': string; - 'user': User; - 'attributes'?: { - [key: string]: any; - }; - 'application': Application; -} -/** - * An error object providing more information about the error that occurred. - * @interface - */ -export interface SessionEndedError { - 'type': SessionEndedErrorType; - 'message': string; -} -/** - * A string indicating the type of error that occurred. - * @enum - */ -export declare type SessionEndedErrorType = 'INVALID_RESPONSE' | 'DEVICE_COMMUNICATION_ERROR' | 'INTERNAL_SERVICE_ERROR'; -/** - * The reason why session ended when not initiated from the Skill itself. - * @enum - */ -export declare type SessionEndedReason = 'USER_INITIATED' | 'ERROR' | 'EXCEEDED_MAX_REPROMPTS'; -/** - * - * @interface - */ -export interface Slot { - 'name': string; - 'value': string; - 'confirmationStatus': SlotConfirmationStatus; - 'resolutions'?: slu.entityresolution.Resolutions; -} -/** - * An enumeration indicating whether the user has explicitly confirmed or denied the value of this slot. - * @enum - */ -export declare type SlotConfirmationStatus = 'NONE' | 'DENIED' | 'CONFIRMED'; -/** - * An object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. - * @interface - */ -export interface SupportedInterfaces { - 'AudioPlayer'?: interfaces.audioplayer.AudioPlayerInterface; - 'Display'?: interfaces.display.DisplayInterface; - 'VideoApp'?: interfaces.videoapp.VideoAppInterface; -} -/** - * Represents the user registered to the device initiating the request. - * @interface - */ -export interface User { - 'userId': string; - 'accessToken'?: string; - 'permissions'?: Permissions; -} -export declare namespace events.skillevents { - /** - * - * @interface - */ - interface AccountLinkedBody { - 'accessToken'?: string; - } -} -export declare namespace events.skillevents { - /** - * - * @interface - */ - interface Permission { - 'scope'?: string; - } -} -export declare namespace events.skillevents { - /** - * - * @interface - */ - interface PermissionBody { - 'acceptedPermissions'?: Array; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * This object encapsulates details about an Authorization object including the status, amount captured and fee charged. - * @interface - */ - interface AuthorizationDetails { - 'amazonAuthorizationId'?: string; - 'authorizationReferenceId'?: string; - 'sellerAuthorizationNote'?: string; - 'authorizationAmount'?: interfaces.amazonpay.model.v1.Price; - 'capturedAmount'?: interfaces.amazonpay.model.v1.Price; - 'authorizationFee'?: interfaces.amazonpay.model.v1.Price; - 'idList'?: Array; - 'creationTimestamp'?: string; - 'expirationTimestamp'?: string; - 'authorizationStatus'?: interfaces.amazonpay.model.v1.AuthorizationStatus; - 'softDecline'?: boolean; - 'captureNow'?: boolean; - 'softDescriptor'?: string; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * Indicates the current status of an Authorization object, a Capture object, or a Refund object. - * @interface - */ - interface AuthorizationStatus { - 'state'?: interfaces.amazonpay.model.v1.State; - 'reasonCode'?: string; - 'reasonDescription'?: string; - 'lastUpdateTimestamp'?: string; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * This is an object to set the attributes specified in the AuthorizeAttributes table. See the “AuthorizationDetails” section of the Amazon Pay API reference guide for details about this object. - * @interface - */ - interface AuthorizeAttributes { - 'authorizationReferenceId': string; - 'authorizationAmount': interfaces.amazonpay.model.v1.Price; - 'transactionTimeout'?: number; - 'sellerAuthorizationNote'?: string; - 'softDescriptor'?: string; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * The merchant can choose to set the attributes specified in the BillingAgreementAttributes. - * @interface - */ - interface BillingAgreementAttributes { - 'platformId'?: string; - 'sellerNote'?: string; - 'sellerBillingAgreementAttributes'?: interfaces.amazonpay.model.v1.SellerBillingAgreementAttributes; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * The result attributes from successful SetupAmazonPay call. - * @interface - */ - interface BillingAgreementDetails { - 'billingAgreementId': string; - 'creationTimestamp'?: string; - 'destination'?: interfaces.amazonpay.model.v1.Destination; - 'checkoutLanguage'?: string; - 'releaseEnvironment': interfaces.amazonpay.model.v1.ReleaseEnvironment; - 'billingAgreementStatus': interfaces.amazonpay.model.v1.BillingAgreementStatus; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * Indicates the current status of the billing agreement. For more information about the State and ReasonCode response elements, see Billing agreement states and reason codes - https://pay.amazon.com/us/developer/documentation/apireference/201752870 - * @enum - */ - type BillingAgreementStatus = 'CANCELED' | 'CLOSED' | 'DRAFT' | 'OPEN' | 'SUSPENDED'; -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * The default shipping address of the buyer. Returned if needAmazonShippingAddress is set to true. - * @interface - */ - interface Destination { - 'name'?: string; - 'companyName'?: string; - 'addressLine1'?: string; - 'addressLine2'?: string; - 'addressLine3'?: string; - 'city'?: string; - 'districtOrCounty'?: string; - 'stateOrRegion'?: string; - 'postalCode'?: string; - 'countryCode'?: string; - 'phone'?: string; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * * This is used to specify applicable payment action. * Authorize – you want to confirm the order and authorize a certain amount, but you do not want to capture at this time. * AuthorizeAndCapture – you want to confirm the order, authorize for the given amount, and capture the funds. - * @enum - */ - type PaymentAction = 'Authorize' | 'AuthorizeAndCapture'; -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * This object specifies amount and currency authorized/captured. - * @interface - */ - interface Price { - 'amount': string; - 'currencyCode': string; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * This is required only for Ecommerce provider (Solution provider) use cases. - * @interface - */ - interface ProviderAttributes { - 'providerId': string; - 'providerCreditList': Array; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * - * @interface - */ - interface ProviderCredit { - 'providerId'?: string; - 'credit'?: interfaces.amazonpay.model.v1.Price; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * Indicates if the order is for a Live (Production) or Sandbox environment. - * @enum - */ - type ReleaseEnvironment = 'LIVE' | 'SANDBOX'; -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * Provides more context about the billing agreement that is represented by this Billing Agreement object. - * @interface - */ - interface SellerBillingAgreementAttributes { - 'sellerBillingAgreementId'?: string; - 'storeName'?: string; - 'customInformation'?: string; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * This object includes elements shown to buyers in emails and in their transaction history. See the “SellerOrderAttributes” section of the Amazon Pay API reference guide for details about this object. - * @interface - */ - interface SellerOrderAttributes { - 'sellerOrderId'?: string; - 'storeName'?: string; - 'customInformation'?: string; - 'sellerNote'?: string; - } -} -export declare namespace interfaces.amazonpay.model.v1 { - /** - * Indicates the state that the Authorization object, Capture object, or Refund object is in. For more information see - https://pay.amazon.com/us/developer/documentation/apireference/201752950 - * @enum - */ - type State = 'Pending' | 'Open' | 'Declined' | 'Closed' | 'Completed'; -} -export declare namespace interfaces.amazonpay.v1 { - /** - * Error response for SetupAmazonPay and ChargeAmazonPay calls. - * @interface - */ - interface AmazonPayErrorResponse { - 'errorCode': string; - 'errorMessage': string; - } -} -export declare namespace interfaces.amazonpay.v1 { - /** - * Charge Amazon Pay Request Object - * @interface - */ - interface ChargeAmazonPay { - 'consentToken'?: string; - 'sellerId': string; - 'billingAgreementId': string; - 'paymentAction': interfaces.amazonpay.model.v1.PaymentAction; - 'authorizeAttributes': interfaces.amazonpay.model.v1.AuthorizeAttributes; - 'sellerOrderAttributes'?: interfaces.amazonpay.model.v1.SellerOrderAttributes; - 'providerAttributes'?: interfaces.amazonpay.model.v1.ProviderAttributes; - } -} -export declare namespace interfaces.amazonpay.v1 { - /** - * Charge Amazon Pay Result Object. It is sent as part of the reponse to ChargeAmazonPay request. - * @interface - */ - interface ChargeAmazonPayResult { - 'amazonOrderReferenceId': string; - 'authorizationDetails': interfaces.amazonpay.model.v1.AuthorizationDetails; - } -} -export declare namespace interfaces.amazonpay.v1 { - /** - * Setup Amazon Pay Request Object - * @interface - */ - interface SetupAmazonPay { - 'consentToken'?: string; - 'sellerId': string; - 'countryOfEstablishment': string; - 'ledgerCurrency': string; - 'checkoutLanguage'?: string; - 'billingAgreementAttributes'?: interfaces.amazonpay.model.v1.BillingAgreementAttributes; - 'needAmazonShippingAddress'?: boolean; - 'sandboxMode'?: boolean; - 'sandboxCustomerEmailId'?: string; - } -} -export declare namespace interfaces.amazonpay.v1 { - /** - * Setup Amazon Pay Result Object. It is sent as part of the reponse to SetupAmazonPay request. - * @interface - */ - interface SetupAmazonPayResult { - 'billingAgreementDetails': interfaces.amazonpay.model.v1.BillingAgreementDetails; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface AudioItem { - 'stream'?: interfaces.audioplayer.Stream; - 'metadata'?: interfaces.audioplayer.AudioItemMetadata; - } -} -export declare namespace interfaces.audioplayer { - /** - * Encapsulates the metadata about an AudioItem. - * @interface - */ - interface AudioItemMetadata { - 'title'?: string; - 'subtitle'?: string; - 'art'?: interfaces.display.Image; - 'backgroundImage'?: interfaces.display.Image; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface AudioPlayerInterface { - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface AudioPlayerState { - 'offsetInMilliseconds'?: number; - 'token'?: string; - 'playerActivity'?: interfaces.audioplayer.PlayerActivity; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @enum - */ - type ClearBehavior = 'CLEAR_ALL' | 'CLEAR_ENQUEUED'; -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface CurrentPlaybackState { - 'offsetInMilliseconds'?: number; - 'playerActivity'?: interfaces.audioplayer.PlayerActivity; - 'token'?: string; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface Error { - 'message'?: string; - 'type'?: interfaces.audioplayer.ErrorType; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @enum - */ - type ErrorType = 'MEDIA_ERROR_INTERNAL_DEVICE_ERROR' | 'MEDIA_ERROR_INTERNAL_SERVER_ERROR' | 'MEDIA_ERROR_INVALID_REQUEST' | 'MEDIA_ERROR_SERVICE_UNAVAILABLE' | 'MEDIA_ERROR_UNKNOWN'; -} -export declare namespace interfaces.audioplayer { - /** - * - * @enum - */ - type PlayBehavior = 'ENQUEUE' | 'REPLACE_ALL' | 'REPLACE_ENQUEUED'; -} -export declare namespace interfaces.audioplayer { - /** - * - * @enum - */ - type PlayerActivity = 'PLAYING' | 'PAUSED' | 'FINISHED' | 'BUFFER_UNDERRUN' | 'IDLE' | 'STOPPED'; -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface Stream { - 'expectedPreviousToken'?: string; - 'token': string; - 'url': string; - 'offsetInMilliseconds': number; - } -} -export declare namespace interfaces.connections { - /** - * Connection Status indicates a high level understanding of the result of ConnectionsRequest. - * @interface - */ - interface ConnectionsStatus { - 'code': string; - 'message'?: string; - } -} -export declare namespace interfaces.display { - /** - * - * @enum - */ - type BackButtonBehavior = 'HIDDEN' | 'VISIBLE'; -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface DisplayInterface { - 'templateVersion'?: string; - 'markupVersion'?: string; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface DisplayState { - 'token'?: string; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - type Hint = interfaces.display.PlainTextHint; -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface Image { - 'contentDescription'?: string; - 'sources'?: Array; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface ImageInstance { - 'url': string; - 'size'?: interfaces.display.ImageSize; - 'widthPixels'?: number; - 'heightPixels'?: number; - } -} -export declare namespace interfaces.display { - /** - * - * @enum - */ - type ImageSize = 'X_SMALL' | 'SMALL' | 'MEDIUM' | 'LARGE' | 'X_LARGE'; -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface ListItem { - 'token': string; - 'image'?: interfaces.display.Image; - 'textContent'?: interfaces.display.TextContent; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - type Template = interfaces.display.ListTemplate2 | interfaces.display.ListTemplate1 | interfaces.display.BodyTemplate7 | interfaces.display.BodyTemplate6 | interfaces.display.BodyTemplate3 | interfaces.display.BodyTemplate2 | interfaces.display.BodyTemplate1; -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface TextContent { - 'primaryText'?: interfaces.display.TextField; - 'secondaryText'?: interfaces.display.TextField; - 'tertiaryText'?: interfaces.display.TextField; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - type TextField = interfaces.display.RichText | interfaces.display.PlainText; -} -export declare namespace interfaces.monetization.v1 { - /** - * Entity to define In Skill Product over which actions will be performed. - * @interface - */ - interface InSkillProduct { - 'productId': string; - } -} -export declare namespace interfaces.monetization.v1 { - /** - * Response from purchase directives: * ACCEPTED - User have accepted the offer to purchase the product * DECLINED - User have declined the offer to purchase the product * NOT_ENTITLED - User tries to cancel/return a product he/she is not entitled to. * ALREADY_PURCHASED - User has already purchased the product * ERROR - An internal error occurred - * @enum - */ - type PurchaseResult = 'ACCEPTED' | 'DECLINED' | 'NOT_ENTITLED' | 'ERROR' | 'ALREADY_PURCHASED'; -} -export declare namespace interfaces.system { - /** - * - * @interface - */ - interface Error { - 'type': interfaces.system.ErrorType; - 'message'?: string; - } -} -export declare namespace interfaces.system { - /** - * - * @interface - */ - interface ErrorCause { - 'requestId': string; - } -} -export declare namespace interfaces.system { - /** - * - * @enum - */ - type ErrorType = 'INVALID_RESPONSE' | 'DEVICE_COMMUNICATION_ERROR' | 'INTERNAL_SERVICE_ERROR'; -} -export declare namespace interfaces.system { - /** - * - * @interface - */ - interface SystemState { - 'application': Application; - 'user': User; - 'device': Device; - 'apiEndpoint': string; - 'apiAccessToken'?: string; - } -} -export declare namespace interfaces.videoapp { - /** - * - * @interface - */ - interface Metadata { - 'title'?: string; - 'subtitle'?: string; - } -} -export declare namespace interfaces.videoapp { - /** - * - * @interface - */ - interface VideoAppInterface { - } -} -export declare namespace interfaces.videoapp { - /** - * - * @interface - */ - interface VideoItem { - 'source': string; - 'metadata'?: interfaces.videoapp.Metadata; - } -} -export declare namespace services.deviceAddress { - /** - * Represents the full address response from the service. - * @interface - */ - interface Address { - 'addressLine1'?: string; - 'addressLine2'?: string; - 'addressLine3'?: string; - 'countryCode'?: string; - 'stateOrRegion'?: string; - 'city'?: string; - 'districtOrCounty'?: string; - 'postalCode'?: string; - } -} -export declare namespace services.deviceAddress { - /** - * - * @interface - */ - interface Error { - 'type'?: string; - 'message'?: string; - } -} -export declare namespace services.deviceAddress { - /** - * - * @interface - */ - interface ShortAddress { - 'countryCode'?: string; - 'postalCode'?: string; - } -} -export declare namespace services.directive { - /** - * - * @interface - */ - type Directive = services.directive.SpeakDirective; -} -export declare namespace services.directive { - /** - * - * @interface - */ - interface Error { - 'code': number; - 'message': string; - } -} -export declare namespace services.directive { - /** - * - * @interface - */ - interface Header { - 'requestId': string; - } -} -export declare namespace services.directive { - /** - * Send Directive Request payload. - * @interface - */ - interface SendDirectiveRequest { - 'header': services.directive.Header; - 'directive': services.directive.Directive; - } -} -export declare namespace services.gadgetController { - /** - * The action that triggers the animation. Possible values are as follows * `buttonDown` - Play the animation when the button is pressed. * `buttonUp` - Play the animation when the button is released. * `none` - Play the animation as soon as it arrives. - * @enum - */ - type TriggerEventType = 'buttonDown' | 'buttonUp' | 'none'; -} -export declare namespace services.gadgetController { - /** - * - * @interface - */ - interface AnimationStep { - 'durationMs': number; - 'color': string; - 'blend': boolean; - } -} -export declare namespace services.gadgetController { - /** - * - * @interface - */ - interface LightAnimation { - 'repeat'?: number; - 'targetLights'?: Array; - 'sequence'?: Array; - } -} -export declare namespace services.gadgetController { - /** - * Arguments that pertain to animating the buttons. - * @interface - */ - interface SetLightParameters { - 'triggerEvent'?: services.gadgetController.TriggerEventType; - 'triggerEventTimeMs'?: number; - 'animations'?: Array; - } -} -export declare namespace services.gameEngine { - /** - * Specifies what raw button presses to put in the inputEvents field of the event. * history - All button presses since this Input Handler was started. * matches - Just the button presses that contributed to this event (that is, were in the recognizers). To receive no raw button presses, leave this array empty or do not specify it at all. - * @enum - */ - type EventReportingType = 'history' | 'matches'; -} -export declare namespace services.gameEngine { - /** - * - * @interface - */ - interface InputEvent { - 'gadgetId'?: string; - 'timestamp'?: string; - 'action'?: services.gameEngine.InputEventActionType; - 'color'?: string; - 'feature'?: string; - } -} -export declare namespace services.gameEngine { - /** - * Either \"down\" for a button pressed or \"up\" for a button released. - * @enum - */ - type InputEventActionType = 'down' | 'up'; -} -export declare namespace services.gameEngine { - /** - * - * @interface - */ - interface InputHandlerEvent { - 'name'?: string; - 'inputEvents'?: Array; - } -} -export declare namespace services.gameEngine { - /** - * Where the pattern must appear in the history of this input handler. * `start` - (Default) The first event in the pattern must be the first event in the history of raw Echo Button events. * `end` - The last event in the pattern must be the last event in the history of raw Echo Button events. * `anywhere` - The pattern may appear anywhere in the history of raw Echo Button events. - * @enum - */ - type PatternRecognizerAnchorType = 'start' | 'end' | 'anywhere'; -} -export declare namespace services.gameEngine { - /** - * The events object is where you define the conditions that must be met for your skill to be notified of Echo Button input. You must define at least one event. - * @interface - */ - interface Event { - 'shouldEndInputHandler': boolean; - 'meets': Array; - 'fails'?: Array; - 'reports'?: services.gameEngine.EventReportingType; - 'maximumInvocations'?: number; - 'triggerTimeMilliseconds'?: number; - } -} -export declare namespace services.gameEngine { - /** - * An object that provides all of the events that need to occur, in a specific order, for this recognizer to be true. Omitting any parameters in this object means \"match anything\". - * @interface - */ - interface Pattern { - 'gadgetIds'?: Array; - 'colors'?: Array; - 'action'?: services.gameEngine.InputEventActionType; - } -} -export declare namespace services.gameEngine { - /** - * Recognizers are conditions that, at any moment, are either true or false, based on all the raw button events that the Input Handler has received in the time elapsed since the Input Handler session started. - * @interface - */ - type Recognizer = services.gameEngine.ProgressRecognizer | services.gameEngine.PatternRecognizer | services.gameEngine.DeviationRecognizer; -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface AlexaList { - 'listId'?: string; - 'name'?: string; - 'state'?: services.listManagement.ListState; - 'version'?: number; - 'items'?: Array; - 'links'?: services.listManagement.Links; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface AlexaListItem { - 'id'?: string; - 'version'?: number; - 'value'?: string; - 'status'?: services.listManagement.ListItemState; - 'createdTime'?: string; - 'updatedTime'?: string; - 'href'?: string; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface AlexaListMetadata { - 'listId'?: string; - 'name'?: string; - 'state'?: services.listManagement.ListState; - 'version'?: number; - 'statusMap'?: Array; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface AlexaListsMetadata { - 'lists'?: Array; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface CreateListItemRequest { - 'value'?: string; - 'status'?: services.listManagement.ListItemState; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface CreateListRequest { - 'name'?: string; - 'state'?: services.listManagement.ListState; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface Error { - 'type'?: string; - 'message'?: string; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ForbiddenError { - 'Message'?: string; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface Links { - 'next'?: string; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListBody { - 'listId'?: string; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListItemBody { - 'listId'?: string; - 'listItemIds'?: Array; - } -} -export declare namespace services.listManagement { - /** - * - * @enum - */ - type ListItemState = 'active' | 'completed'; -} -export declare namespace services.listManagement { - /** - * - * @enum - */ - type ListState = 'active' | 'archived'; -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface Status { - 'url'?: string; - 'status'?: services.listManagement.ListItemState; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface UpdateListItemRequest { - 'value'?: string; - 'status'?: services.listManagement.ListItemState; - 'version'?: number; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface UpdateListRequest { - 'name'?: string; - 'state'?: services.listManagement.ListState; - 'version'?: number; - } -} -export declare namespace services.monetization { - /** - * State determining if the user is entitled to the product. Note - Any new values introduced later should be treated as 'NOT_ENTITLED'. * 'ENTITLED' - The user is entitled to the product. * 'NOT_ENTITLED' - The user is not entitled to the product. - * @enum - */ - type EntitledState = 'ENTITLED' | 'NOT_ENTITLED'; -} -export declare namespace services.monetization { - /** - * Describes error detail - * @interface - */ - interface Error { - 'message'?: string; - } -} -export declare namespace services.monetization { - /** - * - * @interface - */ - interface InSkillProduct { - 'productId': string; - 'referenceName': string; - 'name': string; - 'type': services.monetization.ProductType; - 'summary': string; - 'purchasable': services.monetization.PurchasableState; - 'entitled': services.monetization.EntitledState; - } -} -export declare namespace services.monetization { - /** - * - * @interface - */ - interface InSkillProductsResponse { - 'inSkillProducts': Array; - 'isTruncated': boolean; - 'nextToken': string; - } -} -export declare namespace services.monetization { - /** - * Product type. * 'SUBSCRIPTION' - Once purchased, customers will own the content for the subscription period. * 'ENTITLEMENT' - Once purchased, customers will own the content forever. - * @enum - */ - type ProductType = 'SUBSCRIPTION' | 'ENTITLEMENT'; -} -export declare namespace services.monetization { - /** - * State determining if the product is purchasable by the user. Note - Any new values introduced later should be treated as 'NOT_PURCHASABLE'. * 'PURCHASABLE' - The product is purchasable by the user. * 'NOT_PURCHASABLE' - The product is not purchasable by the user. - * @enum - */ - type PurchasableState = 'PURCHASABLE' | 'NOT_PURCHASABLE'; -} -export declare namespace services.ups { - /** - * - * @interface - */ - interface Error { - 'code'?: services.ups.ErrorCode; - 'message'?: string; - } -} -export declare namespace services.ups { - /** - * A more precise error code. Some of these codes may not apply to some APIs. - INVALID_KEY: the setting key is not supported - INVALID_VALUE: the setting value is not valid - INVALID_TOKEN: the token is invalid - INVALID_URI: the uri is invalid - DEVICE_UNREACHABLE: the device is offline - UNKNOWN_ERROR: internal service error - * @enum - */ - type ErrorCode = 'INVALID_KEY' | 'INVALID_VALUE' | 'INVALID_TOKEN' | 'INVALID_URI' | 'DEVICE_UNREACHABLE' | 'UNKNOWN_ERROR'; -} -export declare namespace services.ups { - /** - * - * @interface - */ - interface PhoneNumber { - 'countryCode'?: string; - 'phoneNumber'?: string; - } -} -export declare namespace slu.entityresolution { - /** - * Represents a possible authority for entity resolution - * @interface - */ - interface Resolution { - 'authority': string; - 'status': slu.entityresolution.Status; - 'values': Array; - } -} -export declare namespace slu.entityresolution { - /** - * Represents the results of resolving the words captured from the user's utterance. This is included for slots that use a custom slot type or a built-in slot type that you have extended with your own values. Note that resolutions is not included for built-in slot types that you have not extended. - * @interface - */ - interface Resolutions { - 'resolutionsPerAuthority'?: Array; - } -} -export declare namespace slu.entityresolution { - /** - * - * @interface - */ - interface Status { - 'code': slu.entityresolution.StatusCode; - } -} -export declare namespace slu.entityresolution { - /** - * Indication of the results of attempting to resolve the user utterance against the defined slot types. - * @enum - */ - type StatusCode = 'ER_SUCCESS_MATCH' | 'ER_SUCCESS_NO_MATCH' | 'ER_ERROR_TIMEOUT' | 'ER_ERROR_EXCEPTION'; -} -export declare namespace slu.entityresolution { - /** - * Represents the resolved value for the slot, based on the user’s utterance and slot type definition. - * @interface - */ - interface Value { - 'name': string; - 'id': string; - } -} -export declare namespace slu.entityresolution { - /** - * A wrapper class for an entity resolution value used for JSON serialization. - * @interface - */ - interface ValueWrapper { - 'value': slu.entityresolution.Value; - } -} -export declare namespace ui { - /** - * - * @interface - */ - type Card = ui.LinkAccountCard | ui.StandardCard | ui.AskForPermissionsConsentCard | ui.SimpleCard; -} -export declare namespace ui { - /** - * - * @interface - */ - interface Image { - 'smallImageUrl'?: string; - 'largeImageUrl'?: string; - } -} -export declare namespace ui { - /** - * - * @interface - */ - type OutputSpeech = ui.SsmlOutputSpeech | ui.PlainTextOutputSpeech; -} -export declare namespace ui { - /** - * - * @interface - */ - interface Reprompt { - 'outputSpeech': ui.OutputSpeech; - } -} -/** - * An IntentRequest is an object that represents a request made to a skill based on what the user wants to do. - * @interface - */ -export interface IntentRequest { - 'type': 'IntentRequest'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'dialogState': DialogState; - 'intent': Intent; -} -/** - * Represents that a user made a request to an Alexa skill, but did not provide a specific intent. - * @interface - */ -export interface LaunchRequest { - 'type': 'LaunchRequest'; - 'requestId': string; - 'timestamp': string; - 'locale': string; -} -/** - * A SessionEndedRequest is an object that represents a request made to an Alexa skill to notify that a session was ended. Your service receives a SessionEndedRequest when a currently open session is closed for one of the following reasons:
  1. The user says “exit”
  2. the user does not respond or says something that does not match an intent defined in your voice interface while the device is listening for the user’s response
  3. an error occurs
- * @interface - */ -export interface SessionEndedRequest { - 'type': 'SessionEndedRequest'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'reason': SessionEndedReason; - 'error'?: SessionEndedError; -} -export declare namespace dialog { - /** - * - * @interface - */ - interface ConfirmIntentDirective { - 'type': 'Dialog.ConfirmIntent'; - 'updatedIntent'?: Intent; - } -} -export declare namespace dialog { - /** - * - * @interface - */ - interface ConfirmSlotDirective { - 'type': 'Dialog.ConfirmSlot'; - 'updatedIntent'?: Intent; - 'slotToConfirm': string; - } -} -export declare namespace dialog { - /** - * - * @interface - */ - interface DelegateDirective { - 'type': 'Dialog.Delegate'; - 'updatedIntent'?: Intent; - } -} -export declare namespace dialog { - /** - * - * @interface - */ - interface ElicitSlotDirective { - 'type': 'Dialog.ElicitSlot'; - 'updatedIntent'?: Intent; - 'slotToElicit': string; - } -} -export declare namespace events.skillevents { - /** - * This event indicates that a customer has linked an account in a third-party application with the Alexa app. This event is useful for an application that support out-of-session (non-voice) user interactions so that this application can be notified when the internal customer can be associated with the Alexa customer. This event is required for many applications that synchronize customer Alexa lists with application lists. During the account linking process, the Alexa app directs the user to the skill website where the customer logs in. When the customer logs in, the skill then provides an access token and a consent token to Alexa. The event includes the same access token and consent token. - * @interface - */ - interface AccountLinkedRequest { - 'type': 'AlexaSkillEvent.SkillAccountLinked'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body': events.skillevents.AccountLinkedBody; - } -} -export declare namespace events.skillevents { - /** - * - * @interface - */ - interface PermissionAcceptedRequest { - 'type': 'AlexaSkillEvent.SkillPermissionAccepted'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: events.skillevents.PermissionBody; - } -} -export declare namespace events.skillevents { - /** - * - * @interface - */ - interface PermissionChangedRequest { - 'type': 'AlexaSkillEvent.SkillPermissionChanged'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: events.skillevents.PermissionBody; - } -} -export declare namespace events.skillevents { - /** - * - * @interface - */ - interface SkillDisabledRequest { - 'type': 'AlexaSkillEvent.SkillDisabled'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - } -} -export declare namespace events.skillevents { - /** - * - * @interface - */ - interface SkillEnabledRequest { - 'type': 'AlexaSkillEvent.SkillEnabled'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface ClearQueueDirective { - 'type': 'AudioPlayer.ClearQueue'; - 'clearBehavior'?: interfaces.audioplayer.ClearBehavior; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface PlayDirective { - 'type': 'AudioPlayer.Play'; - 'playBehavior'?: interfaces.audioplayer.PlayBehavior; - 'audioItem'?: interfaces.audioplayer.AudioItem; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface PlaybackFailedRequest { - 'type': 'AudioPlayer.PlaybackFailed'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'currentPlaybackState'?: interfaces.audioplayer.CurrentPlaybackState; - 'error'?: interfaces.audioplayer.Error; - 'token'?: string; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface PlaybackFinishedRequest { - 'type': 'AudioPlayer.PlaybackFinished'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'offsetInMilliseconds'?: number; - 'token'?: string; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface PlaybackNearlyFinishedRequest { - 'type': 'AudioPlayer.PlaybackNearlyFinished'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'offsetInMilliseconds'?: number; - 'token'?: string; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface PlaybackStartedRequest { - 'type': 'AudioPlayer.PlaybackStarted'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'offsetInMilliseconds'?: number; - 'token'?: string; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface PlaybackStoppedRequest { - 'type': 'AudioPlayer.PlaybackStopped'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'offsetInMilliseconds'?: number; - 'token'?: string; - } -} -export declare namespace interfaces.audioplayer { - /** - * - * @interface - */ - interface StopDirective { - 'type': 'AudioPlayer.Stop'; - } -} -export declare namespace interfaces.connections { - /** - * This is the request object that a skill will receive as a result of Connections.SendRequest directive from sender skill. - * @interface - */ - interface ConnectionsRequest { - 'type': 'Connections.Request'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'name'?: string; - 'payload'?: { - [key: string]: any; - }; - } -} -export declare namespace interfaces.connections { - /** - * This is the request object that a skill will receive as a result of Connections.SendResponse directive from referrer skill. - * @interface - */ - interface ConnectionsResponse { - 'type': 'Connections.Response'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'status'?: interfaces.connections.ConnectionsStatus; - 'name'?: string; - 'payload'?: { - [key: string]: any; - }; - 'token'?: string; - } -} -export declare namespace interfaces.connections { - /** - * This is the directive that a skill can send as part of their response to a session based request to execute a predefined Connections. This will also return a result to the referring skill. (No Guarantee response will be returned) - * @interface - */ - interface SendRequestDirective { - 'type': 'Connections.SendRequest'; - 'name': string; - 'payload'?: { - [key: string]: any; - }; - 'token': string; - } -} -export declare namespace interfaces.connections { - /** - * This is the directive that a skill can send as part of their response to a session based request to return a response to ConnectionsRequest. - * @interface - */ - interface SendResponseDirective { - 'type': 'Connections.SendResponse'; - 'status': interfaces.connections.ConnectionsStatus; - 'payload'?: { - [key: string]: any; - }; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface BodyTemplate1 { - 'type': 'BodyTemplate1'; - 'token'?: string; - 'backButton'?: interfaces.display.BackButtonBehavior; - 'backgroundImage'?: interfaces.display.Image; - 'title'?: string; - 'textContent'?: interfaces.display.TextContent; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface BodyTemplate2 { - 'type': 'BodyTemplate2'; - 'token'?: string; - 'backButton'?: interfaces.display.BackButtonBehavior; - 'backgroundImage'?: interfaces.display.Image; - 'image'?: interfaces.display.Image; - 'title'?: string; - 'textContent'?: interfaces.display.TextContent; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface BodyTemplate3 { - 'type': 'BodyTemplate3'; - 'token'?: string; - 'backButton'?: interfaces.display.BackButtonBehavior; - 'backgroundImage'?: interfaces.display.Image; - 'image'?: interfaces.display.Image; - 'title'?: string; - 'textContent'?: interfaces.display.TextContent; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface BodyTemplate6 { - 'type': 'BodyTemplate6'; - 'token'?: string; - 'backButton'?: interfaces.display.BackButtonBehavior; - 'backgroundImage'?: interfaces.display.Image; - 'textContent'?: interfaces.display.TextContent; - 'image'?: interfaces.display.Image; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface BodyTemplate7 { - 'type': 'BodyTemplate7'; - 'token'?: string; - 'backButton'?: interfaces.display.BackButtonBehavior; - 'title'?: string; - 'image'?: interfaces.display.Image; - 'backgroundImage'?: interfaces.display.Image; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface ElementSelectedRequest { - 'type': 'Display.ElementSelected'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'token': string; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface HintDirective { - 'type': 'Hint'; - 'hint': interfaces.display.Hint; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface ListTemplate1 { - 'type': 'ListTemplate1'; - 'token'?: string; - 'backButton'?: interfaces.display.BackButtonBehavior; - 'backgroundImage'?: interfaces.display.Image; - 'title'?: string; - 'listItems'?: Array; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface ListTemplate2 { - 'type': 'ListTemplate2'; - 'token'?: string; - 'backButton'?: interfaces.display.BackButtonBehavior; - 'backgroundImage'?: interfaces.display.Image; - 'title'?: string; - 'listItems'?: Array; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface PlainText { - 'type': 'PlainText'; - 'text': string; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface PlainTextHint { - 'type': 'PlainText'; - 'text': string; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface RenderTemplateDirective { - 'type': 'Display.RenderTemplate'; - 'template'?: interfaces.display.Template; - } -} -export declare namespace interfaces.display { - /** - * - * @interface - */ - interface RichText { - 'type': 'RichText'; - 'text': string; - } -} -export declare namespace interfaces.gadgetController { - /** - * Sends Alexa a command to modify the behavior of connected Echo Buttons. - * @interface - */ - interface SetLightDirective { - 'type': 'GadgetController.SetLight'; - 'version'?: number; - 'targetGadgets'?: Array; - 'parameters'?: services.gadgetController.SetLightParameters; - } -} -export declare namespace interfaces.gameEngine { - /** - * Sent when the conditions of an Echo Button event that your skill defined were met. - * @interface - */ - interface InputHandlerEventRequest { - 'type': 'GameEngine.InputHandlerEvent'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'events'?: Array; - } -} -export declare namespace interfaces.gameEngine { - /** - * - * @interface - */ - interface StartInputHandlerDirective { - 'type': 'GameEngine.StartInputHandler'; - 'timeout'?: number; - 'proxies'?: Array; - 'recognizers'?: { - [key: string]: services.gameEngine.Recognizer; - }; - 'events'?: { - [key: string]: services.gameEngine.Event; - }; - } -} -export declare namespace interfaces.gameEngine { - /** - * - * @interface - */ - interface StopInputHandlerDirective { - 'type': 'GameEngine.StopInputHandler'; - 'originatingRequestId'?: string; - } -} -export declare namespace interfaces.messaging { - /** - * - * @interface - */ - interface MessageReceivedRequest { - 'type': 'Messaging.MessageReceived'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'message': { - [key: string]: any; - }; - } -} -export declare namespace interfaces.playbackcontroller { - /** - * - * @interface - */ - interface NextCommandIssuedRequest { - 'type': 'PlaybackController.NextCommandIssued'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - } -} -export declare namespace interfaces.playbackcontroller { - /** - * - * @interface - */ - interface PauseCommandIssuedRequest { - 'type': 'PlaybackController.PauseCommandIssued'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - } -} -export declare namespace interfaces.playbackcontroller { - /** - * - * @interface - */ - interface PlayCommandIssuedRequest { - 'type': 'PlaybackController.PlayCommandIssued'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - } -} -export declare namespace interfaces.playbackcontroller { - /** - * - * @interface - */ - interface PreviousCommandIssuedRequest { - 'type': 'PlaybackController.PreviousCommandIssued'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - } -} -export declare namespace interfaces.system { - /** - * - * @interface - */ - interface ExceptionEncounteredRequest { - 'type': 'System.ExceptionEncountered'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'error': interfaces.system.Error; - 'cause': interfaces.system.ErrorCause; - } -} -export declare namespace interfaces.videoapp { - /** - * - * @interface - */ - interface LaunchDirective { - 'type': 'VideoApp.Launch'; - 'videoItem': interfaces.videoapp.VideoItem; - } -} -export declare namespace services.directive { - /** - * - * @interface - */ - interface SpeakDirective { - 'type': 'VoicePlayer.Speak'; - 'speech'?: string; - } -} -export declare namespace services.gameEngine { - /** - * The deviation recognizer returns true when another specified recognizer reports that the player has deviated from its expected pattern. - * @interface - */ - interface DeviationRecognizer { - 'type': 'deviation'; - 'recognizer'?: string; - } -} -export declare namespace services.gameEngine { - /** - * This recognizer is true when all of the specified events have occurred in the specified order. - * @interface - */ - interface PatternRecognizer { - 'type': 'match'; - 'anchor'?: services.gameEngine.PatternRecognizerAnchorType; - 'fuzzy'?: boolean; - 'gadgetIds'?: Array; - 'actions'?: Array; - 'pattern'?: Array; - } -} -export declare namespace services.gameEngine { - /** - * This recognizer consults another recognizer for the degree of completion, and is true if that degree is above the specified threshold. The completion parameter is specified as a decimal percentage. - * @interface - */ - interface ProgressRecognizer { - 'type': 'progress'; - 'recognizer'?: string; - 'completion'?: number; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListCreatedEventRequest { - 'type': 'AlexaHouseholdListEvent.ListCreated'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: services.listManagement.ListBody; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListDeletedEventRequest { - 'type': 'AlexaHouseholdListEvent.ListDeleted'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: services.listManagement.ListBody; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListItemsCreatedEventRequest { - 'type': 'AlexaHouseholdListEvent.ItemsCreated'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: services.listManagement.ListItemBody; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListItemsDeletedEventRequest { - 'type': 'AlexaHouseholdListEvent.ItemsDeleted'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: services.listManagement.ListItemBody; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListItemsUpdatedEventRequest { - 'type': 'AlexaHouseholdListEvent.ItemsUpdated'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: services.listManagement.ListItemBody; - } -} -export declare namespace services.listManagement { - /** - * - * @interface - */ - interface ListUpdatedEventRequest { - 'type': 'AlexaHouseholdListEvent.ListUpdated'; - 'requestId': string; - 'timestamp': string; - 'locale': string; - 'body'?: services.listManagement.ListBody; - } -} -export declare namespace ui { - /** - * - * @interface - */ - interface AskForPermissionsConsentCard { - 'type': 'AskForPermissionsConsent'; - 'permissions': Array; - } -} -export declare namespace ui { - /** - * - * @interface - */ - interface LinkAccountCard { - 'type': 'LinkAccount'; - } -} -export declare namespace ui { - /** - * - * @interface - */ - interface PlainTextOutputSpeech { - 'type': 'PlainText'; - 'text': string; - } -} -export declare namespace ui { - /** - * - * @interface - */ - interface SimpleCard { - 'type': 'Simple'; - 'title'?: string; - 'content'?: string; - } -} -export declare namespace ui { - /** - * - * @interface - */ - interface SsmlOutputSpeech { - 'type': 'SSML'; - 'ssml': string; - } -} -export declare namespace ui { - /** - * - * @interface - */ - interface StandardCard { - 'type': 'Standard'; - 'title'?: string; - 'text'?: string; - 'image'?: ui.Image; - } -} -export declare namespace services.deviceAddress { - /** - * - */ - class DeviceAddressServiceClient extends BaseServiceClient { - constructor(apiConfiguration: ApiConfiguration); - /** - * - * @param {string} deviceId The device Id for which to get the country and postal code - */ - getCountryAndPostalCode(deviceId: string): Promise; - /** - * - * @param {string} deviceId The device Id for which to get the address - */ - getFullAddress(deviceId: string): Promise; - } -} -export declare namespace services.directive { - /** - * - */ - class DirectiveServiceClient extends BaseServiceClient { - constructor(apiConfiguration: ApiConfiguration); - /** - * - * @param {services.directive.SendDirectiveRequest} sendDirectiveRequest Represents the request object to send in the payload. - */ - enqueue(sendDirectiveRequest: services.directive.SendDirectiveRequest): Promise; - } -} -export declare namespace services.listManagement { - /** - * - */ - class ListManagementServiceClient extends BaseServiceClient { - constructor(apiConfiguration: ApiConfiguration); - /** - * - */ - getListsMetadata(): Promise; - /** - * - * @param {string} listId Value of the customer’s listId retrieved from a getListsMetadata call - */ - deleteList(listId: string): Promise; - /** - * - * @param {string} listId The customer’s listId is retrieved from a getListsMetadata call. - * @param {string} itemId The customer’s itemId is retrieved from a GetList call. - */ - deleteListItem(listId: string, itemId: string): Promise; - /** - * - * @param {string} listId Retrieved from a call to getListsMetadata - * @param {string} itemId itemId within a list is retrieved from a getList call - */ - getListItem(listId: string, itemId: string): Promise; - /** - * - * @param {string} listId Customer’s listId - * @param {string} itemId itemId to be updated in the list - * @param {services.listManagement.UpdateListItemRequest} updateListItemRequest - */ - updateListItem(listId: string, itemId: string, updateListItemRequest: services.listManagement.UpdateListItemRequest): Promise; - /** - * - * @param {string} listId The customer’s listId retrieved from a getListsMetadata call. - * @param {services.listManagement.CreateListItemRequest} createListItemRequest - */ - createListItem(listId: string, createListItemRequest: services.listManagement.CreateListItemRequest): Promise; - /** - * - * @param {string} listId Value of the customer’s listId retrieved from a getListsMetadata call. - * @param {services.listManagement.UpdateListRequest} updateListRequest - */ - updateList(listId: string, updateListRequest: services.listManagement.UpdateListRequest): Promise; - /** - * - * @param {string} listId Retrieved from a call to GetListsMetadata to specify the listId in the request path. - * @param {string} status Specify the status of the list. - */ - getList(listId: string, status: string): Promise; - /** - * - * @param {services.listManagement.CreateListRequest} createListRequest - */ - createList(createListRequest: services.listManagement.CreateListRequest): Promise; - } -} -export declare namespace services.monetization { - /** - * - */ - class MonetizationServiceClient extends BaseServiceClient { - constructor(apiConfiguration: ApiConfiguration); - /** - * - * @param {string} acceptLanguage User's locale/language in context - * @param {string} purchasable Filter products based on whether they are purchasable by the user or not. * 'PURCHASABLE' - Products that are purchasable by the user. * 'NOT_PURCHASABLE' - Products that are not purchasable by the user. - * @param {string} entitled Filter products based on whether they are entitled to the user or not. * 'ENTITLED' - Products that the user is entitled to. * 'NOT_ENTITLED' - Products that the user is not entitled to. - * @param {string} productType Product type. * 'SUBSCRIPTION' - Once purchased, customers will own the content for the subscription period. * 'ENTITLEMENT' - Once purchased, customers will own the content forever. - * @param {string} nextToken When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element, the value of which can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that In-Skill Products API understands. Token has expiry of 24 hours. - * @param {number} maxResults sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 100 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned because maxResults was exceeded, the response contains isTruncated = true. - */ - getInSkillProducts(acceptLanguage: string, purchasable?: string, entitled?: string, productType?: string, nextToken?: string, maxResults?: number): Promise; - /** - * - * @param {string} acceptLanguage User's locale/language in context - * @param {string} productId Product Id. - */ - getInSkillProduct(acceptLanguage: string, productId: string): Promise; - } -} -export declare namespace services.ups { - /** - * - */ - class UpsServiceClient extends BaseServiceClient { - constructor(apiConfiguration: ApiConfiguration); - /** - * - */ - getProfileEmail(): Promise; - /** - * - */ - getProfileGivenName(): Promise; - /** - * - */ - getProfileMobileNumber(): Promise; - /** - * - */ - getProfileName(): Promise; - } -} -export declare namespace services { - /** - * Helper class that instantiates an ServiceClient implementation automatically resolving its - * required ApiConfiguration. - * @export - * @class ServiceClientFactory - */ - class ServiceClientFactory { - protected apiConfiguration: ApiConfiguration; - constructor(apiConfiguration: ApiConfiguration); - getDeviceAddressServiceClient(): deviceAddress.DeviceAddressServiceClient; - getDirectiveServiceClient(): directive.DirectiveServiceClient; - getListManagementServiceClient(): listManagement.ListManagementServiceClient; - getMonetizationServiceClient(): monetization.MonetizationServiceClient; - getUpsServiceClient(): ups.UpsServiceClient; - } -} diff --git a/lambda/custom/node_modules/ask-sdk-model/index.js b/lambda/custom/node_modules/ask-sdk-model/index.js deleted file mode 100644 index 0e2a4e7..0000000 --- a/lambda/custom/node_modules/ask-sdk-model/index.js +++ /dev/null @@ -1,911 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var services; -(function (services) { - /** - * Class to be used as the base class for the generated service clients. - */ - var BaseServiceClient = /** @class */ (function () { - /** - * Creates new instance of the BaseServiceClient - * @param {ApiConfiguration} apiConfiguration configuration parameter to provide dependencies to service client instance - */ - function BaseServiceClient(apiConfiguration) { - this.apiConfiguration = apiConfiguration; - } - BaseServiceClient.isCodeSuccessful = function (responseCode) { - return responseCode >= 200 && responseCode < 300; - }; - BaseServiceClient.buildUrl = function (endpoint, path, queryParameters, pathParameters) { - var processedEndpoint = endpoint.endsWith('/') ? endpoint.substr(0, endpoint.length - 1) : endpoint; - var pathWithParams = this.interpolateParams(path, pathParameters); - var isConstantQueryPresent = pathWithParams.includes('?'); - var queryString = this.buildQueryString(queryParameters, isConstantQueryPresent); - return processedEndpoint + pathWithParams + queryString; - }; - BaseServiceClient.interpolateParams = function (path, params) { - if (!params) { - return path; - } - var result = path; - params.forEach(function (paramValue, paramName) { - result = result.replace('{' + paramName + '}', encodeURIComponent(paramValue)); - }); - return result; - }; - BaseServiceClient.buildQueryString = function (params, isQueryStart) { - if (!params) { - return ''; - } - var sb = []; - if (isQueryStart) { - sb.push('&'); - } - else { - sb.push('?'); - } - params.forEach(function (paramValue, paramName) { - sb.push(encodeURIComponent(paramName)); - sb.push('='); - sb.push(encodeURIComponent(paramValue)); - sb.push('&'); - }); - sb.pop(); - return sb.join(''); - }; - /** - * Invocation wrapper to implement service operations in generated classes - * @param method HTTP method, such as 'POST', 'GET', 'DELETE', etc. - * @param endpoint base API url - * @param path the path pattern with possible placeholders for path parameters in form {paramName} - * @param pathParams path parameters collection - * @param queryParams query parameters collection - * @param headerParams headers collection - * @param bodyParam if body parameter is present it is provided here, otherwise null or undefined - * @param errors maps recognized status codes to messages - */ - BaseServiceClient.prototype.invoke = function (method, endpoint, path, pathParams, queryParams, headerParams, bodyParam, errors) { - return __awaiter(this, void 0, void 0, function () { - var request, apiClient, response, err_1, body, err; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - request = { - url: BaseServiceClient.buildUrl(endpoint, path, queryParams, pathParams), - method: method, - headers: headerParams, - }; - if (bodyParam != null) { - request.body = JSON.stringify(bodyParam); - } - apiClient = this.apiConfiguration.apiClient; - _a.label = 1; - case 1: - _a.trys.push([1, 3, , 4]); - return [4 /*yield*/, apiClient.invoke(request)]; - case 2: - response = _a.sent(); - return [3 /*break*/, 4]; - case 3: - err_1 = _a.sent(); - err_1.message = "Call to service failed: " + err_1.message; - throw err_1; - case 4: - try { - body = response.body ? JSON.parse(response.body) : undefined; - } - catch (err) { - throw new SyntaxError("Failed trying to parse the response body: " + response.body); - } - if (BaseServiceClient.isCodeSuccessful(response.statusCode)) { - return [2 /*return*/, body]; - } - err = new Error('Unknown error'); - err.name = 'ServiceError'; - err['statusCode'] = response.statusCode; // tslint:disable-line:no-string-literal - err['response'] = body; // tslint:disable-line:no-string-literal - if (errors && errors.has(response.statusCode)) { - err.message = errors.get(response.statusCode); - } - throw err; - } - }); - }); - }; - return BaseServiceClient; - }()); - services.BaseServiceClient = BaseServiceClient; -})(services = exports.services || (exports.services = {})); -(function (services) { - var deviceAddress; - (function (deviceAddress) { - /** - * - */ - var DeviceAddressServiceClient = /** @class */ (function (_super) { - __extends(DeviceAddressServiceClient, _super); - function DeviceAddressServiceClient(apiConfiguration) { - return _super.call(this, apiConfiguration) || this; - } - /** - * - * @param {string} deviceId The device Id for which to get the country and postal code - */ - DeviceAddressServiceClient.prototype.getCountryAndPostalCode = function (deviceId) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getCountryAndPostalCode'; - // verify required parameter 'deviceId' is not null or undefined - if (deviceId == null) { - throw new Error("Required parameter deviceId was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('deviceId', deviceId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Successfully get the country and postal code of the deviceId"); - errorDefinitions.set(204, "No content could be queried out"); - errorDefinitions.set(403, "The authentication token is invalid or doesn't have access to the resource"); - errorDefinitions.set(405, "The method is not supported"); - errorDefinitions.set(429, "The request is throttled"); - errorDefinitions.set(0, "Unexpected error"); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v1/devices/{deviceId}/settings/address/countryAndPostalCode", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} deviceId The device Id for which to get the address - */ - DeviceAddressServiceClient.prototype.getFullAddress = function (deviceId) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getFullAddress'; - // verify required parameter 'deviceId' is not null or undefined - if (deviceId == null) { - throw new Error("Required parameter deviceId was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('deviceId', deviceId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Successfully get the address of the device"); - errorDefinitions.set(204, "No content could be queried out"); - errorDefinitions.set(403, "The authentication token is invalid or doesn't have access to the resource"); - errorDefinitions.set(405, "The method is not supported"); - errorDefinitions.set(429, "The request is throttled"); - errorDefinitions.set(0, "Unexpected error"); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v1/devices/{deviceId}/settings/address", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - return DeviceAddressServiceClient; - }(services.BaseServiceClient)); - deviceAddress.DeviceAddressServiceClient = DeviceAddressServiceClient; - })(deviceAddress = services.deviceAddress || (services.deviceAddress = {})); -})(services = exports.services || (exports.services = {})); -(function (services) { - var directive; - (function (directive) { - /** - * - */ - var DirectiveServiceClient = /** @class */ (function (_super) { - __extends(DirectiveServiceClient, _super); - function DirectiveServiceClient(apiConfiguration) { - return _super.call(this, apiConfiguration) || this; - } - /** - * - * @param {services.directive.SendDirectiveRequest} sendDirectiveRequest Represents the request object to send in the payload. - */ - DirectiveServiceClient.prototype.enqueue = function (sendDirectiveRequest) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'enqueue'; - // verify required parameter 'sendDirectiveRequest' is not null or undefined - if (sendDirectiveRequest == null) { - throw new Error("Required parameter sendDirectiveRequest was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(204, "Directive sent successfully."); - errorDefinitions.set(400, "Directive not valid."); - errorDefinitions.set(401, "Not Authorized."); - errorDefinitions.set(403, "The skill is not allowed to send directives at the moment."); - errorDefinitions.set(0, "Unexpected error."); - return [2 /*return*/, this.invoke("POST", this.apiConfiguration.apiEndpoint, "/v1/directives", pathParams, queryParams, headerParams, sendDirectiveRequest, errorDefinitions)]; - }); - }); - }; - return DirectiveServiceClient; - }(services.BaseServiceClient)); - directive.DirectiveServiceClient = DirectiveServiceClient; - })(directive = services.directive || (services.directive = {})); -})(services = exports.services || (exports.services = {})); -(function (services) { - var listManagement; - (function (listManagement) { - /** - * - */ - var ListManagementServiceClient = /** @class */ (function (_super) { - __extends(ListManagementServiceClient, _super); - function ListManagementServiceClient(apiConfiguration) { - return _super.call(this, apiConfiguration) || this; - } - /** - * - */ - ListManagementServiceClient.prototype.getListsMetadata = function () { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getListsMetadata'; - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Success"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(500, "Internal Server Error"); - return [2 /*return*/, this.invoke("GET", "https://api.amazonalexa.com/", "/v2/householdlists/", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} listId Value of the customer’s listId retrieved from a getListsMetadata call - */ - ListManagementServiceClient.prototype.deleteList = function (listId) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'deleteList'; - // verify required parameter 'listId' is not null or undefined - if (listId == null) { - throw new Error("Required parameter listId was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('listId', listId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Success"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(404, "Not Found"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("DELETE", "https://api.amazonalexa.com/", "/v2/householdlists/{listId}/", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} listId The customer’s listId is retrieved from a getListsMetadata call. - * @param {string} itemId The customer’s itemId is retrieved from a GetList call. - */ - ListManagementServiceClient.prototype.deleteListItem = function (listId, itemId) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'deleteListItem'; - // verify required parameter 'listId' is not null or undefined - if (listId == null) { - throw new Error("Required parameter listId was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'itemId' is not null or undefined - if (itemId == null) { - throw new Error("Required parameter itemId was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('listId', listId); - pathParams.set('itemId', itemId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Success"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(404, "Not Found"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("DELETE", "https://api.amazonalexa.com/", "/v2/householdlists/{listId}/items/{itemId}/", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} listId Retrieved from a call to getListsMetadata - * @param {string} itemId itemId within a list is retrieved from a getList call - */ - ListManagementServiceClient.prototype.getListItem = function (listId, itemId) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getListItem'; - // verify required parameter 'listId' is not null or undefined - if (listId == null) { - throw new Error("Required parameter listId was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'itemId' is not null or undefined - if (itemId == null) { - throw new Error("Required parameter itemId was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('listId', listId); - pathParams.set('itemId', itemId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Success"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(404, "Not Found"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("GET", "https://api.amazonalexa.com/", "/v2/householdlists/{listId}/items/{itemId}/", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} listId Customer’s listId - * @param {string} itemId itemId to be updated in the list - * @param {services.listManagement.UpdateListItemRequest} updateListItemRequest - */ - ListManagementServiceClient.prototype.updateListItem = function (listId, itemId, updateListItemRequest) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'updateListItem'; - // verify required parameter 'listId' is not null or undefined - if (listId == null) { - throw new Error("Required parameter listId was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'itemId' is not null or undefined - if (itemId == null) { - throw new Error("Required parameter itemId was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'updateListItemRequest' is not null or undefined - if (updateListItemRequest == null) { - throw new Error("Required parameter updateListItemRequest was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('listId', listId); - pathParams.set('itemId', itemId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Success"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(404, "Not Found"); - errorDefinitions.set(409, "Conflict"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("PUT", "https://api.amazonalexa.com/", "/v2/householdlists/{listId}/items/{itemId}/", pathParams, queryParams, headerParams, updateListItemRequest, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} listId The customer’s listId retrieved from a getListsMetadata call. - * @param {services.listManagement.CreateListItemRequest} createListItemRequest - */ - ListManagementServiceClient.prototype.createListItem = function (listId, createListItemRequest) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'createListItem'; - // verify required parameter 'listId' is not null or undefined - if (listId == null) { - throw new Error("Required parameter listId was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'createListItemRequest' is not null or undefined - if (createListItemRequest == null) { - throw new Error("Required parameter createListItemRequest was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('listId', listId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(201, "Success"); - errorDefinitions.set(400, "Bad Request"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(404, "Not found"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("POST", "https://api.amazonalexa.com/", "/v2/householdlists/{listId}/items/", pathParams, queryParams, headerParams, createListItemRequest, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} listId Value of the customer’s listId retrieved from a getListsMetadata call. - * @param {services.listManagement.UpdateListRequest} updateListRequest - */ - ListManagementServiceClient.prototype.updateList = function (listId, updateListRequest) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'updateList'; - // verify required parameter 'listId' is not null or undefined - if (listId == null) { - throw new Error("Required parameter listId was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'updateListRequest' is not null or undefined - if (updateListRequest == null) { - throw new Error("Required parameter updateListRequest was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('listId', listId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Success"); - errorDefinitions.set(400, "Bad Request"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(404, "List not found"); - errorDefinitions.set(409, "Conflict"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("PUT", "https://api.amazonalexa.com/", "/v2/householdlists/{listId}/", pathParams, queryParams, headerParams, updateListRequest, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} listId Retrieved from a call to GetListsMetadata to specify the listId in the request path. - * @param {string} status Specify the status of the list. - */ - ListManagementServiceClient.prototype.getList = function (listId, status) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getList'; - // verify required parameter 'listId' is not null or undefined - if (listId == null) { - throw new Error("Required parameter listId was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'status' is not null or undefined - if (status == null) { - throw new Error("Required parameter status was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - pathParams.set('listId', listId); - pathParams.set('status', status); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Success"); - errorDefinitions.set(400, "Bad Request"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(404, "Not Found"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("GET", "https://api.amazonalexa.com/", "/v2/householdlists/{listId}/{status}/", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {services.listManagement.CreateListRequest} createListRequest - */ - ListManagementServiceClient.prototype.createList = function (createListRequest) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'createList'; - // verify required parameter 'createListRequest' is not null or undefined - if (createListRequest == null) { - throw new Error("Required parameter createListRequest was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(201, "Success"); - errorDefinitions.set(400, "Bad Request"); - errorDefinitions.set(403, "Forbidden"); - errorDefinitions.set(409, "Conflict"); - errorDefinitions.set(500, "Internal Server Error"); - errorDefinitions.set(0, "Internal Server Error"); - return [2 /*return*/, this.invoke("POST", "https://api.amazonalexa.com/", "/v2/householdlists/", pathParams, queryParams, headerParams, createListRequest, errorDefinitions)]; - }); - }); - }; - return ListManagementServiceClient; - }(services.BaseServiceClient)); - listManagement.ListManagementServiceClient = ListManagementServiceClient; - })(listManagement = services.listManagement || (services.listManagement = {})); -})(services = exports.services || (exports.services = {})); -(function (services) { - var monetization; - (function (monetization) { - /** - * - */ - var MonetizationServiceClient = /** @class */ (function (_super) { - __extends(MonetizationServiceClient, _super); - function MonetizationServiceClient(apiConfiguration) { - return _super.call(this, apiConfiguration) || this; - } - /** - * - * @param {string} acceptLanguage User's locale/language in context - * @param {string} purchasable Filter products based on whether they are purchasable by the user or not. * 'PURCHASABLE' - Products that are purchasable by the user. * 'NOT_PURCHASABLE' - Products that are not purchasable by the user. - * @param {string} entitled Filter products based on whether they are entitled to the user or not. * 'ENTITLED' - Products that the user is entitled to. * 'NOT_ENTITLED' - Products that the user is not entitled to. - * @param {string} productType Product type. * 'SUBSCRIPTION' - Once purchased, customers will own the content for the subscription period. * 'ENTITLEMENT' - Once purchased, customers will own the content forever. - * @param {string} nextToken When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element, the value of which can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that In-Skill Products API understands. Token has expiry of 24 hours. - * @param {number} maxResults sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 100 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned because maxResults was exceeded, the response contains isTruncated = true. - */ - MonetizationServiceClient.prototype.getInSkillProducts = function (acceptLanguage, purchasable, entitled, productType, nextToken, maxResults) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getInSkillProducts'; - // verify required parameter 'acceptLanguage' is not null or undefined - if (acceptLanguage == null) { - throw new Error("Required parameter acceptLanguage was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - if (purchasable != null) { - queryParams.set('purchasable', purchasable); - } - if (entitled != null) { - queryParams.set('entitled', entitled); - } - if (productType != null) { - queryParams.set('productType', productType); - } - if (nextToken != null) { - queryParams.set('nextToken', nextToken); - } - if (maxResults != null) { - queryParams.set('maxResults', maxResults.toString()); - } - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - headerParams.push({ key: 'Accept-Language', value: acceptLanguage }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Returns a list of In-Skill products on success."); - errorDefinitions.set(400, "Invalid request"); - errorDefinitions.set(401, "The authentication token is invalid or doesn't have access to make this request"); - errorDefinitions.set(500, "Internal Server Error"); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v1/users/~current/skills/~current/inSkillProducts", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - * @param {string} acceptLanguage User's locale/language in context - * @param {string} productId Product Id. - */ - MonetizationServiceClient.prototype.getInSkillProduct = function (acceptLanguage, productId) { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getInSkillProduct'; - // verify required parameter 'acceptLanguage' is not null or undefined - if (acceptLanguage == null) { - throw new Error("Required parameter acceptLanguage was null or undefined when calling " + __operationId__ + "."); - } - // verify required parameter 'productId' is not null or undefined - if (productId == null) { - throw new Error("Required parameter productId was null or undefined when calling " + __operationId__ + "."); - } - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - headerParams.push({ key: 'Accept-Language', value: acceptLanguage }); - pathParams = new Map(); - pathParams.set('productId', productId); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Returns an In-Skill Product on success."); - errorDefinitions.set(400, "Invalid request."); - errorDefinitions.set(401, "The authentication token is invalid or doesn't have access to make this request"); - errorDefinitions.set(404, "Requested resource not found."); - errorDefinitions.set(500, "Internal Server Error."); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v1/users/~current/skills/~current/inSkillProducts/{productId}", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - return MonetizationServiceClient; - }(services.BaseServiceClient)); - monetization.MonetizationServiceClient = MonetizationServiceClient; - })(monetization = services.monetization || (services.monetization = {})); -})(services = exports.services || (exports.services = {})); -(function (services) { - var ups; - (function (ups) { - /** - * - */ - var UpsServiceClient = /** @class */ (function (_super) { - __extends(UpsServiceClient, _super); - function UpsServiceClient(apiConfiguration) { - return _super.call(this, apiConfiguration) || this; - } - /** - * - */ - UpsServiceClient.prototype.getProfileEmail = function () { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getProfileEmail'; - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Successfully retrieved the requested information."); - errorDefinitions.set(204, "The query did not return any results."); - errorDefinitions.set(401, "The authentication token is malformed or invalid."); - errorDefinitions.set(403, "The authentication token does not have access to resource."); - errorDefinitions.set(429, "The skill has been throttled due to an excessive number of requests."); - errorDefinitions.set(0, "An unexpected error occurred."); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v2/accounts/~current/settings/Profile.email", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - */ - UpsServiceClient.prototype.getProfileGivenName = function () { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getProfileGivenName'; - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Successfully retrieved the requested information."); - errorDefinitions.set(204, "The query did not return any results."); - errorDefinitions.set(401, "The authentication token is malformed or invalid."); - errorDefinitions.set(403, "The authentication token does not have access to resource."); - errorDefinitions.set(429, "The skill has been throttled due to an excessive number of requests."); - errorDefinitions.set(0, "An unexpected error occurred."); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v2/accounts/~current/settings/Profile.givenName", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - */ - UpsServiceClient.prototype.getProfileMobileNumber = function () { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getProfileMobileNumber'; - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Successfully retrieved the requested information."); - errorDefinitions.set(204, "The query did not return any results."); - errorDefinitions.set(401, "The authentication token is malformed or invalid."); - errorDefinitions.set(403, "The authentication token does not have access to resource."); - errorDefinitions.set(429, "The skill has been throttled due to an excessive number of requests."); - errorDefinitions.set(0, "An unexpected error occurred."); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v2/accounts/~current/settings/Profile.mobileNumber", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - /** - * - */ - UpsServiceClient.prototype.getProfileName = function () { - return __awaiter(this, void 0, void 0, function () { - var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions; - return __generator(this, function (_a) { - __operationId__ = 'getProfileName'; - queryParams = new Map(); - headerParams = []; - headerParams.push({ key: 'Content-type', value: 'application/json' }); - pathParams = new Map(); - authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue; - headerParams.push({ key: "Authorization", value: authorizationValue }); - errorDefinitions = new Map(); - errorDefinitions.set(200, "Successfully retrieved the requested information."); - errorDefinitions.set(204, "The query did not return any results."); - errorDefinitions.set(401, "The authentication token is malformed or invalid."); - errorDefinitions.set(403, "The authentication token does not have access to resource."); - errorDefinitions.set(429, "The skill has been throttled due to an excessive number of requests."); - errorDefinitions.set(0, "An unexpected error occurred."); - return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v2/accounts/~current/settings/Profile.name", pathParams, queryParams, headerParams, null, errorDefinitions)]; - }); - }); - }; - return UpsServiceClient; - }(services.BaseServiceClient)); - ups.UpsServiceClient = UpsServiceClient; - })(ups = services.ups || (services.ups = {})); -})(services = exports.services || (exports.services = {})); -(function (services) { - /** - * Helper class that instantiates an ServiceClient implementation automatically resolving its - * required ApiConfiguration. - * @export - * @class ServiceClientFactory - */ - var ServiceClientFactory = /** @class */ (function () { - function ServiceClientFactory(apiConfiguration) { - this.apiConfiguration = apiConfiguration; - } - /* - * Gets an instance of { deviceAddress.DeviceAddressService }. - * @returns { deviceAddress.DeviceAddressService } - */ - ServiceClientFactory.prototype.getDeviceAddressServiceClient = function () { - try { - return new services.deviceAddress.DeviceAddressServiceClient(this.apiConfiguration); - } - catch (e) { - var factoryError = new Error("ServiceClientFactory Error while initializing DeviceAddressServiceClient: " + e.message); - factoryError['name'] = 'ServiceClientFactoryError'; - throw factoryError; - } - }; - /* - * Gets an instance of { directive.DirectiveService }. - * @returns { directive.DirectiveService } - */ - ServiceClientFactory.prototype.getDirectiveServiceClient = function () { - try { - return new services.directive.DirectiveServiceClient(this.apiConfiguration); - } - catch (e) { - var factoryError = new Error("ServiceClientFactory Error while initializing DirectiveServiceClient: " + e.message); - factoryError['name'] = 'ServiceClientFactoryError'; - throw factoryError; - } - }; - /* - * Gets an instance of { listManagement.ListManagementService }. - * @returns { listManagement.ListManagementService } - */ - ServiceClientFactory.prototype.getListManagementServiceClient = function () { - try { - return new services.listManagement.ListManagementServiceClient(this.apiConfiguration); - } - catch (e) { - var factoryError = new Error("ServiceClientFactory Error while initializing ListManagementServiceClient: " + e.message); - factoryError['name'] = 'ServiceClientFactoryError'; - throw factoryError; - } - }; - /* - * Gets an instance of { monetization.MonetizationService }. - * @returns { monetization.MonetizationService } - */ - ServiceClientFactory.prototype.getMonetizationServiceClient = function () { - try { - return new services.monetization.MonetizationServiceClient(this.apiConfiguration); - } - catch (e) { - var factoryError = new Error("ServiceClientFactory Error while initializing MonetizationServiceClient: " + e.message); - factoryError['name'] = 'ServiceClientFactoryError'; - throw factoryError; - } - }; - /* - * Gets an instance of { ups.UpsService }. - * @returns { ups.UpsService } - */ - ServiceClientFactory.prototype.getUpsServiceClient = function () { - try { - return new services.ups.UpsServiceClient(this.apiConfiguration); - } - catch (e) { - var factoryError = new Error("ServiceClientFactory Error while initializing UpsServiceClient: " + e.message); - factoryError['name'] = 'ServiceClientFactoryError'; - throw factoryError; - } - }; - return ServiceClientFactory; - }()); - services.ServiceClientFactory = ServiceClientFactory; -})(services = exports.services || (exports.services = {})); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-model/index.js.map b/lambda/custom/node_modules/ask-sdk-model/index.js.map deleted file mode 100644 index f82f07e..0000000 --- a/lambda/custom/node_modules/ask-sdk-model/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAiB,QAAQ,CAgNxB;AAhND,WAAiB,QAAQ;IAyErB;;OAEG;IACH;QA8DI;;;WAGG;QACH,2BAAsB,gBAAmC;YACrD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QAC7C,CAAC;QAnEc,kCAAgB,GAA/B,UAAiC,YAAqB;YAClD,OAAO,YAAY,IAAI,GAAG,IAAI,YAAY,GAAG,GAAG,CAAC;QACrD,CAAC;QAEc,0BAAQ,GAAvB,UACI,QAAiB,EACjB,IAAa,EACb,eAAqC,EACrC,cAAoC;YAEpC,IAAM,iBAAiB,GAAY,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;YAC/G,IAAM,cAAc,GAAY,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;YAC7E,IAAM,sBAAsB,GAAa,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YACtE,IAAM,WAAW,GAAY,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAC;YAE5F,OAAO,iBAAiB,GAAG,cAAc,GAAG,WAAW,CAAC;QAC5D,CAAC;QAEc,mCAAiB,GAAhC,UAAiC,IAAa,EAAE,MAA4B;YAC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,GAAG,2BAA2B,CAAC;gBAEnD,MAAM,YAAY,CAAC;aACtB;QACL,CAAC;QAED;;;WAGG;QACH,kDAAmB,GAAnB;YACI,IAAI;gBACA,OAAO,IAAI,SAAA,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aAC1D;YAAC,OAAM,CAAC,EAAE;gBACP,IAAM,YAAY,GAAG,IAAI,KAAK,CAAC,qEAAmE,CAAC,CAAC,OAAS,CAAC,CAAC;gBAC/G,YAAY,CAAC,MAAM,CAAC,GAAG,2BAA2B,CAAC;gBAEnD,MAAM,YAAY,CAAC;aACtB;QACL,CAAC;QACL,2BAAC;IAAD,CAAC,AAjFD,IAiFC;IAjFY,6BAAoB,uBAiFhC,CAAA;AACL,CAAC,EA1FgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA0FxB"} \ No newline at end of file diff --git a/lambda/custom/node_modules/ask-sdk-model/package.json b/lambda/custom/node_modules/ask-sdk-model/package.json deleted file mode 100644 index e59bf70..0000000 --- a/lambda/custom/node_modules/ask-sdk-model/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "_from": "ask-sdk-model@^1.0.0", - "_id": "ask-sdk-model@1.4.1", - "_inBundle": false, - "_integrity": "sha512-pwpaavszEATrEtVEQSxYgDXj8kkkMh7rQzlIyOsSRdSI/mTJEk9Xb5mPkZw2QTCYsyVWxynWcw07uL6Wehpmmg==", - "_location": "/ask-sdk-model", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "ask-sdk-model@^1.0.0", - "name": "ask-sdk-model", - "escapedName": "ask-sdk-model", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/ask-sdk-model/-/ask-sdk-model-1.4.1.tgz", - "_shasum": "cbc3e071ac720336ee289dd0a57e6bbdf5c9d0f9", - "_spec": "ask-sdk-model@^1.0.0", - "_where": "/home/miststlkr/Projects/vanhack/lambda/custom", - "author": { - "name": "Amazon.com" - }, - "bugs": { - "url": "https://github.com/alexa/alexa-skill-sdk-for-nodejs/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Model package for Alexa Skills Kit SDK", - "devDependencies": { - "typescript": "^2.8.1" - }, - "homepage": "https://github.com/alexa/alexa-skill-sdk-for-nodejs#readme", - "keywords": [ - "Alexa", - "Skill", - "SDK" - ], - "license": "Apache-2.0", - "main": "index.js", - "name": "ask-sdk-model", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "types": "index.d.ts", - "version": "1.4.1" -} diff --git a/lambda/custom/package-lock.json b/lambda/custom/package-lock.json index 0c92977..fd09f16 100644 --- a/lambda/custom/package-lock.json +++ b/lambda/custom/package-lock.json @@ -4,6 +4,17 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, "ask-sdk-core": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/ask-sdk-core/-/ask-sdk-core-2.0.7.tgz", @@ -13,6 +24,371 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/ask-sdk-model/-/ask-sdk-model-1.4.1.tgz", "integrity": "sha512-pwpaavszEATrEtVEQSxYgDXj8kkkMh7rQzlIyOsSRdSI/mTJEk9Xb5mPkZw2QTCYsyVWxynWcw07uL6Wehpmmg==" + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "optional": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "bluebird": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.2.tgz", + "integrity": "sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg==" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + }, + "combined-stream": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "optional": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", + "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "1.0.6", + "mime-types": "^2.1.12" + }, + "dependencies": { + "combined-stream": { + "version": "1.0.6", + "resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "requires": { + "delayed-stream": "~1.0.0" + } + } + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz", + "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==", + "requires": { + "ajv": "^5.3.0", + "har-schema": "^2.0.0" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + }, + "mime-db": { + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", + "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==" + }, + "mime-types": { + "version": "2.1.20", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", + "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", + "requires": { + "mime-db": "~1.36.0" + } + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "psl": { + "version": "1.1.29", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "request-promise": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.2.tgz", + "integrity": "sha1-0epG1lSm7k+O5qT+oQGMIpEZBLQ=", + "requires": { + "bluebird": "^3.5.0", + "request-promise-core": "1.1.1", + "stealthy-require": "^1.1.0", + "tough-cookie": ">=2.3.3" + } + }, + "request-promise-core": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", + "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", + "requires": { + "lodash": "^4.13.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sshpk": { + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", + "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } } } } diff --git a/lambda/custom/package.json b/lambda/custom/package.json index e7af15e..acf5cd1 100644 --- a/lambda/custom/package.json +++ b/lambda/custom/package.json @@ -10,6 +10,8 @@ "license": "ISC", "dependencies": { "ask-sdk-core": "^2.0.0", - "ask-sdk-model": "^1.0.0" + "ask-sdk-model": "^1.0.0", + "request": "^2.88.0", + "request-promise": "^4.2.2" } } From b8fa707ef371bae35f2d839d15bf8042d5343b86 Mon Sep 17 00:00:00 2001 From: Ty Eggen Date: Thu, 27 Sep 2018 21:30:31 -0700 Subject: [PATCH 2/7] Added node_modules to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules From 7cfb2eacaaa6f7e7d53306a506ad5d9e011279bd Mon Sep 17 00:00:00 2001 From: Ty Eggen Date: Thu, 27 Sep 2018 21:31:15 -0700 Subject: [PATCH 3/7] Updated Lambda with request-promise --- lambda/custom/index.js | 126 ++++++++++++++++++++--------------------- 1 file changed, 60 insertions(+), 66 deletions(-) diff --git a/lambda/custom/index.js b/lambda/custom/index.js index 1f4565a..cbb56b8 100644 --- a/lambda/custom/index.js +++ b/lambda/custom/index.js @@ -1,41 +1,36 @@ /* eslint-disable func-names */ /* eslint-disable no-console */ +/* jslint esversion: 6 */ const Alexa = require('ask-sdk-core'); -const https = require('https'); +var rp = require('request-promise'); const noList = ["Sorry", "Unfortunately", "Sadly", "Alas", "I\'m sad to say that", "Out of luck", "No", "Nope", "What a bummer", "My magic eight ball says"]; const yesList = ["Yes", "Thankfully", "Indeed", "Yup", "I\'m happy to report that", "In fact", "Luckily", "What do you know", "Look at that", "Your stars have aligned", "Sure"]; -function getWebRequest(url,doWebRequestCallBack) { - https.get(url, function (res) { - var webResponseString = ''; +function getWebRequest(url) { + let params = { + uri: url + }; - if (res.statusCode !== 200) { - doWebRequestCallBack(new Error("Non 200 Response")); - } - - res.on('data', function (data) { - webResponseString += data; - }); + return rp(params).then(function (response) { + if (typeof response != 'object') + response = JSON.parse(response); - res.on('end', function () { - var webResponseObject = JSON.parse(webResponseString); - if (webResponseObject.error) { - doWebRequestCallBack(new Error(webResponseObject.error.message)); - } else { - doWebRequestCallBack(null, webResponseObject); - } - }); - }).on('error', function (e) { - doWebRequestCallBack(new Error(e.message)); + if (response.error) { + throw new Error(response.error.message); + } else { + return response; + } + }).catch(function (err) { + return err; }); } -function randReply (options) { +function randReply(options) { i = Math.floor(Math.random() * options.length); - return(options[i]); + return (options[i]); } const LaunchRequestHandler = { @@ -55,61 +50,60 @@ const LaunchRequestHandler = { const IsVHSOpenIntentHandler = { canHandle(handlerInput) { - return handlerInput.requestEnvelope.request.type === 'IntentRequest' - && handlerInput.requestEnvelope.request.intent.name === 'IsVHSOpenIntent'; + return handlerInput.requestEnvelope.request.type === 'IntentRequest' && + handlerInput.requestEnvelope.request.intent.name === 'IsVHSOpenIntent'; }, - async handle(handlerInput) { + handle(handlerInput) { let url = "https://api.vanhack.ca/s/vhs/data/door.json"; - await getWebRequest(url, function webResponseCallback(err, data) { - if (err) { - speechText = "Sorry I couldn't connect to the server: " + err; - } else { - const doorStatus = data.value; - if (doorStatus === 'open') { - speechText = randReply(yesList); - } else { - speechText = randReply(noList); - } - speechText += ', we are ' + doorStatus; + return getWebRequest(url).then(function (data) { + var doorStatus = data.value; + + switch (doorStatus) { + case 'open': + return randReply(yesList) + ', we are ' + doorStatus; + case 'closed': + return randReply(noList) + ', we are ' + doorStatus; + default: + return "I'm not really sure if the space is open or not! Better check isvhsopen.com!"; } + }).catch(function (err) { + return "An error occured! The error was " + err; + }).then(function (speechText) { + return handlerInput.responseBuilder + .speak(speechText) + .withSimpleCard('VHS', speechText) + .getResponse(); }); - - return handlerInput.responseBuilder - .speak(speechText) - .withSimpleCard('VHS', speechText) - .getResponse(); - }, + } }; const EquipmentUseIntentHandler = { canHandle(handlerInput) { - return handlerInput.requestEnvelope.request.type === 'IntentRequest' - && handlerInput.requestEnvelope.request.intent.name === 'EquipmentUseIntent'; + return handlerInput.requestEnvelope.request.type === 'IntentRequest' && + handlerInput.requestEnvelope.request.intent.name === 'EquipmentUseIntent'; }, - async handle(handlerInput) { + handle(handlerInput) { let url = "https://api.vanhack.ca/s/vhs/data/laser.json"; - await getWebRequest(url, function webResponseCallback(err, data) { - if (err) { - speechText2 = "Sorry I couldn't connect to the server: " + err; - } else { - const EquipmentStatus = data.value; - speechText2 = 'Currently the laser is ' + EquipmentStatus; - } + return getWebRequest(url).then(function (data) { + const EquipmentStatus = data.value; + return 'Currently the laser is ' + EquipmentStatus; + }).catch(function (err) { + return "An error occured! The error was " + err; + }).then(function (speechText) { + return handlerInput.responseBuilder + .speak(speechText) + .withSimpleCard('VHS', speechText) + .getResponse(); }); - - return handlerInput.responseBuilder - .speak(speechText2) - .withSimpleCard('VHS', speechText2) - .getResponse(); }, }; const HelloIntentHandler = { canHandle(handlerInput) { - return handlerInput.requestEnvelope.request.type === 'IntentRequest' - && handlerInput.requestEnvelope.request.intent.name === 'HelloIntent'; + return handlerInput.requestEnvelope.request.type === 'IntentRequest' && + handlerInput.requestEnvelope.request.intent.name === 'HelloIntent'; }, handle(handlerInput) { const speechText = 'Hello Hacker!'; @@ -123,8 +117,8 @@ const HelloIntentHandler = { const HelpIntentHandler = { canHandle(handlerInput) { - return handlerInput.requestEnvelope.request.type === 'IntentRequest' - && handlerInput.requestEnvelope.request.intent.name === 'AMAZON.HelpIntent'; + return handlerInput.requestEnvelope.request.type === 'IntentRequest' && + handlerInput.requestEnvelope.request.intent.name === 'AMAZON.HelpIntent'; }, handle(handlerInput) { const speechText = 'You can say hello to me! Of course if you want to put me to work, you can ask if VHS is open as well.'; @@ -139,9 +133,9 @@ const HelpIntentHandler = { const CancelAndStopIntentHandler = { canHandle(handlerInput) { - return handlerInput.requestEnvelope.request.type === 'IntentRequest' - && (handlerInput.requestEnvelope.request.intent.name === 'AMAZON.CancelIntent' - || handlerInput.requestEnvelope.request.intent.name === 'AMAZON.StopIntent'); + return handlerInput.requestEnvelope.request.type === 'IntentRequest' && + (handlerInput.requestEnvelope.request.intent.name === 'AMAZON.CancelIntent' || + handlerInput.requestEnvelope.request.intent.name === 'AMAZON.StopIntent'); }, handle(handlerInput) { const speechText = 'Happy hacking!'; @@ -191,4 +185,4 @@ exports.handler = skillBuilder SessionEndedRequestHandler ) .addErrorHandlers(ErrorHandler) - .lambda(); + .lambda(); \ No newline at end of file From 413eb20856d2e0bd8524e40f4391a69ef6848c09 Mon Sep 17 00:00:00 2001 From: Ty Eggen Date: Thu, 27 Sep 2018 21:41:03 -0700 Subject: [PATCH 4/7] Removed .ask and .idea directories --- .ask/config | 40 ---------------------------------------- .idea/misc.xml | 6 ------ .idea/modules.xml | 8 -------- .idea/vanhack.iml | 12 ------------ .idea/vcs.xml | 6 ------ 5 files changed, 72 deletions(-) delete mode 100644 .ask/config delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vanhack.iml delete mode 100644 .idea/vcs.xml diff --git a/.ask/config b/.ask/config deleted file mode 100644 index 5259ed6..0000000 --- a/.ask/config +++ /dev/null @@ -1,40 +0,0 @@ -{ - "deploy_settings": { - "default": { - "skill_id": "amzn1.ask.skill.89fa507d-8e84-4a75-8a20-aa3ada8dd204", - "was_cloned": false, - "merge": { - "manifest": { - "apis": { - "custom": { - "endpoint": { - "uri": "ask-custom-vanhack-default" - } - } - } - } - }, - "resources": { - "manifest": { - "eTag": "2beee03a809642ae00ac8bd69070b81b" - }, - "interactionModel": { - "en-US": { - "eTag": "28b6d3a0ec0aa16520508aa732cfa7bf" - } - }, - "lambda": [ - { - "arn": "arn:aws:lambda:us-east-1:250493968031:function:ask-custom-vanhack-default", - "functionName": "arn:aws:lambda:us-east-1:250493968031:function:ask-custom-vanhack-default", - "awsRegion": "us-east-1", - "alexaUsage": [ - "custom/default" - ], - "revisionId": "050fef5e-1a1f-417b-a12d-5682daab7967" - } - ] - } - } - } -} diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 28a804d..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 58ae48f..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vanhack.iml b/.idea/vanhack.iml deleted file mode 100644 index 24643cc..0000000 --- a/.idea/vanhack.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file From 42de87012ae0874365954f183f85f0b2b9e29549 Mon Sep 17 00:00:00 2001 From: Ty Eggen Date: Thu, 27 Sep 2018 21:41:38 -0700 Subject: [PATCH 5/7] Updated .gitignore with .ask and .idea directories --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 3c3629e..3bc1607 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +.ask +.idea node_modules From 68ec2f1a9c2f22ff4a8a790279b13d4cfe9b49f7 Mon Sep 17 00:00:00 2001 From: Ty Eggen Date: Thu, 27 Sep 2018 22:46:37 -0700 Subject: [PATCH 6/7] Added development stuff to README --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 8b7122c..c6c812d 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,15 @@ There is currently a bug where the skill always responds to the previous utteran * R: The laser is currently off I think there is a scope issue with the getWebRequest function returning speechText + +### Development + +- Install ASK + - `npm install -g ask-cli` +- Setup ASK + - `ask init` + - Make sure you have set up your AWS developer account and your AWS account +- Create a new ASK project + - `ask new -n vanhack` +- Clone this project + - `git clone git@github.com:/alexa-vanhack.git alexa-vanhack` From 660bd39482b156ad24323d1d6e1f16d2f1576012 Mon Sep 17 00:00:00 2001 From: Ty Eggen Date: Thu, 27 Sep 2018 22:50:20 -0700 Subject: [PATCH 7/7] README formatting --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c6c812d..117afce 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,11 @@ I think there is a scope issue with the getWebRequest function returning speechT ### Development - Install ASK - - `npm install -g ask-cli` + - `npm install -g ask-cli` - Setup ASK - - `ask init` - - Make sure you have set up your AWS developer account and your AWS account + - `ask init` + - Make sure you have set up your AWS developer account and your AWS account - Create a new ASK project - - `ask new -n vanhack` + - `ask new -n vanhack` - Clone this project - - `git clone git@github.com:/alexa-vanhack.git alexa-vanhack` + - `git clone git@github.com:/alexa-vanhack.git alexa-vanhack`