Skip to content

Commit

Permalink
chore(analytics): setup module for analytics service provider kinesis
Browse files Browse the repository at this point in the history
  • Loading branch information
5d committed Sep 13, 2023
1 parent f83db1f commit 3a9d27a
Show file tree
Hide file tree
Showing 10 changed files with 827 additions and 3 deletions.
7 changes: 7 additions & 0 deletions packages/analytics/kinesis/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@aws-amplify/analytics/kinesis",
"main": "../lib/providers/kinesis/index.js",
"browser": "../lib-esm/providers/kinesis/index.js",
"module": "../lib-esm/providers/kinesis/index.js",
"typings": "../lib-esm/providers/kinesis/index.d.ts"
}
6 changes: 6 additions & 0 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"import": "./lib-esm/providers/pinpoint/index.js",
"require": "./lib/providers/pinpoint/index.js"
},
"./kinesis": {
"types": "./lib-esm/providers/kinesis/index.d.ts",
"import": "./lib-esm/providers/kinesis/index.js",
"require": "./lib/providers/kinesis/index.js"
},
"./package.json": "./package.json"
},
"repository": {
Expand Down Expand Up @@ -73,6 +78,7 @@
},
"devDependencies": {
"@aws-amplify/core": "6.0.0",
"@aws-sdk/client-kinesis": "3.398.0",
"@aws-sdk/types": "3.398.0",
"@types/uuid": "^9.0.0",
"typescript": "5.0.2"
Expand Down
10 changes: 10 additions & 0 deletions packages/analytics/src/providers/kinesis/apis/identifyUser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { IdentifyUserParameters } from '../types';

export const identifyUser = async (
parameters: IdentifyUserParameters
): Promise<void> => {
throw new Error('Not Yet Implemented!');
};
5 changes: 5 additions & 0 deletions packages/analytics/src/providers/kinesis/apis/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export { record } from './record';
export { identifyUser } from './identifyUser';
8 changes: 8 additions & 0 deletions packages/analytics/src/providers/kinesis/apis/record.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { RecordParameters } from '../types';

export const record = (parameters: RecordParameters): void => {
throw new Error('Not Yet Implemented!');
};
4 changes: 4 additions & 0 deletions packages/analytics/src/providers/kinesis/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export * from './apis';
4 changes: 4 additions & 0 deletions packages/analytics/src/providers/kinesis/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export * from './parameters';
5 changes: 5 additions & 0 deletions packages/analytics/src/providers/kinesis/types/parameters.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export type RecordParameters = {};
export type IdentifyUserParameters = {};
8 changes: 8 additions & 0 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"import": "./lib-esm/analytics/pinpoint/index.js",
"require": "./lib/analytics/pinpoint/index.js"
},
"./analytics/kinesis": {
"types": "./lib-esm/analytics/kinesis/index.d.ts",
"import": "./lib-esm/analytics/kinesis/index.js",
"require": "./lib/analytics/kinesis/index.js"
},
"./storage": {
"types": "./lib-esm/storage/index.d.ts",
"import": "./lib-esm/storage/index.js",
Expand Down Expand Up @@ -100,6 +105,9 @@
"analytics/pinpoint": [
"./lib-esm/analytics/pinpoint/index.d.ts"
],
"analytics/kinesis": [
"./lib-esm/analytics/kinesis/index.d.ts"
],
"storage": [
"./lib-esm/storage/index.d.ts"
],
Expand Down
Loading

0 comments on commit 3a9d27a

Please sign in to comment.