Skip to content

Commit

Permalink
chore: sync with main (#13256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinkumar6 authored Apr 17, 2024
2 parents f797dc5 + 944d235 commit 7f66d06
Show file tree
Hide file tree
Showing 590 changed files with 5,996 additions and 3,239 deletions.
42 changes: 32 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,55 @@ module.exports = {
'setupTests.ts',
'jest.setup.*',
'jest.config.*',
// temporarily disable lint on __tests__
'__tests__',
// 'packages/adapter-nextjs/__tests__',
'packages/analytics/__tests__',
'packages/api/__tests__',
'packages/api-graphql/__tests__',
'packages/api-rest/__tests__',
'packages/auth/__tests__',
// 'packages/aws-amplify/__tests__',
// 'packages/core/__tests__',
'packages/datastore/__tests__',
'packages/datastore-storage-adapter/__tests__',
'packages/geo/__tests__',
'packages/interactions/__tests__',
'packages/notifications/__tests__',
'packages/predictions/__tests__',
'packages/pubsub/__tests__',
'packages/react-native/__tests__',
'packages/rtn-push-notification/__tests__',
'packages/rtn-web-browser/__tests__',
'packages/storage/__tests__',
// will enable lint by packages
// 'adapter-nextjs',
// 'packages/analytics',
// 'packages/api',
'packages/api-graphql',
// 'packages/api-graphql',
// 'packages/api-rest',
// 'packages/auth',
// 'packages/aws-amplify',
// 'packages/core',
'packages/datastore',
'packages/datastore-storage-adapter',
'packages/geo',
'packages/interactions',
'packages/notifications',
'packages/predictions',
// 'packages/geo',
// 'packages/interactions',
// 'packages/notifications',
// 'packages/predictions',
// 'packages/pubsub',
'packages/react-native',
'packages/rtn-push-notification',
'packages/rtn-web-browser',
// 'packages/react-native',
// 'packages/rtn-push-notification',
// 'packages/rtn-web-browser',
// 'packages/storage',
],
rules: {
camelcase: [
'error',
{
allow: [
// exceptions for core package
'phone_number',
'search_indices',
// exceptions for api packages
'graphql_headers',
// exceptions for the legacy config
/^(aws_|amazon_)/,
Expand Down Expand Up @@ -105,6 +126,7 @@ module.exports = {
'no-useless-constructor': 'off',
'no-trailing-spaces': 'error',
'no-return-await': 'error',
'n/no-callback-literal': 'off',
'object-shorthand': 'error',
'prefer-destructuring': 'off',
'promise/catch-or-return': [
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/callable-npm-publish-lts-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
with:
path: amplify-js
token: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
# Minimal depth 0 so we can fetch all git tags.
fetch-depth: 0

- name: Setup node and build the repository
uses: ./amplify-js/.github/actions/node-and-build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/callable-npm-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
with:
path: amplify-js
token: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
# Minimal depth 0 so we can fetch all git tags.
fetch-depth: 0

- name: Setup node and build the repository
uses: ./amplify-js/.github/actions/node-and-build
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/push-latest-release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: Push - release from release to latest

concurrency:
# group name unique for push to push-latest-release
group: push-release-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"type": "node",
"request": "launch",
// The debugger will only run tests for the package specified here:
"cwd": "${workspaceFolder}/packages/datastore",
"cwd": "${workspaceFolder}/packages/api-graphql",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
// Optionally specify a single test file to run/debug:
"connectivityHandling.test.ts",
"generateClientWithAmplifyInstance.test.ts",
"--runInBand",
"--testTimeout",
"600000", // 10 min timeout so jest doesn't error while we're stepping through code
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"editor.detectIndentation": false,
"editor.insertSpaces": false,
"editor.tabSize": 4,
"prettier.requireConfig": true,
"typescript.tsdk": "node_modules/typescript/lib",
"formattingToggle.affects": [
Expand Down
2 changes: 1 addition & 1 deletion docs/api/assets/navigation.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/assets/search.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<a href="_aws_amplify_predictions._Reference_Types_.AmazonAIIdentifyPredictionsProvider.html#identifyText" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>identify<wbr/>Text</span></a>
</div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_AmazonAIIdentifyPredictionsProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>AmazonAIIdentify<wbr/>Predictions<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_aws_amplify_predictions._Reference_Types_.AmazonAIIdentifyPredictionsProvider.html" class="tsd-signature-type tsd-kind-class">AmazonAIIdentifyPredictionsProvider</a><a href="#constructor.new_AmazonAIIdentifyPredictionsProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="_aws_amplify_predictions._Reference_Types_.AmazonAIIdentifyPredictionsProvider.html" class="tsd-signature-type tsd-kind-class">AmazonAIIdentifyPredictionsProvider</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="getProviderName" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Provider<wbr/>Name</span><a href="#getProviderName" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getProviderName.getProviderName-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Provider<wbr/>Name</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#getProviderName.getProviderName-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member"><a id="identify" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>identify</span><a href="#identify" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="identify.identify-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">identify</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">input</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesOutput</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/_aws_amplify_predictions.IdentifyLabelsOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyLabelsOutput</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/_aws_amplify_predictions.IdentifyTextOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyTextOutput</a><span class="tsd-signature-symbol">&gt;</span><a href="#identify.identify-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">input</span>: <a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesInput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesInput</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/_aws_amplify_predictions.IdentifyLabelsInput.html" class="tsd-signature-type tsd-kind-interface">IdentifyLabelsInput</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/_aws_amplify_predictions.IdentifyTextInput.html" class="tsd-signature-type tsd-kind-interface">IdentifyTextInput</a></h5></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesOutput</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/_aws_amplify_predictions.IdentifyLabelsOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyLabelsOutput</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/_aws_amplify_predictions.IdentifyTextOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyTextOutput</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="identifyEntities" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>identify<wbr/>Entities</span><a href="#identifyEntities" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="identifyEntities.identifyEntities-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">identify<wbr/>Entities</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">input</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesOutput</a><span class="tsd-signature-symbol">&gt;</span><a href="#identifyEntities.identifyEntities-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Identify faces within an image that is provided as input, and match faces from a collection
or identify celebrities.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">input</span>: <a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesInput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesInput</a></h5><div class="tsd-comment tsd-typography"><p>object containing the source image and face match options.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesOutput</a><span class="tsd-signature-symbol">&gt;</span></h4><p>Promise resolving to identify results.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">input</span>: <a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesInput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesInput</a></h5><div class="tsd-comment tsd-typography"><p>object of <a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesInput.html" class="tsd-kind-interface">IdentifyEntitiesInput</a> containing the source image and face match options.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyEntitiesOutput</a><span class="tsd-signature-symbol">&gt;</span></h4><p>a promise resolving to identify results as <a href="../interfaces/_aws_amplify_predictions.IdentifyEntitiesOutput.html" class="tsd-kind-interface">IdentifyEntitiesOutput</a>.</p>
<div class="tsd-comment tsd-typography"></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="identifyLabels" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>identify<wbr/>Labels</span><a href="#identifyLabels" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="identifyLabels.identifyLabels-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">identify<wbr/>Labels</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">input</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_aws_amplify_predictions.IdentifyLabelsOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyLabelsOutput</a><span class="tsd-signature-symbol">&gt;</span><a href="#identifyLabels.identifyLabels-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Identify instances of real world entities from an image and if it contains unsafe content.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">input</span>: <a href="../interfaces/_aws_amplify_predictions.IdentifyLabelsInput.html" class="tsd-signature-type tsd-kind-interface">IdentifyLabelsInput</a></h5><div class="tsd-comment tsd-typography"><p>Object containing the source image and entity type to identify.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/_aws_amplify_predictions.IdentifyLabelsOutput.html" class="tsd-signature-type tsd-kind-interface">IdentifyLabelsOutput</a><span class="tsd-signature-symbol">&gt;</span></h4><ul>
Expand Down
Loading

0 comments on commit 7f66d06

Please sign in to comment.