Skip to content

Commit 18fa5fa

Browse files
authored
feat(specs): add analytics specs and client. (#36)
1 parent a4e750f commit 18fa5fa

File tree

105 files changed

+4307
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+4307
-56
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module.exports = {
3535
// there's a conflict when declaring `type` and `namespaces`, even with `ignoreDeclarationMerge`
3636
'no-redeclare': 0,
3737
'@typescript-eslint/no-redeclare': 0,
38+
// Some endpoints have A LOT of parameters
39+
'max-params': 0,
3840

3941
'@typescript-eslint/no-unused-vars': 2,
4042
'unused-imports/no-unused-imports-ts': 2,

.github/workflows/check.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Checking personalization specs
3030
run: yarn specs personalization
3131

32+
- name: Checking analytics specs
33+
run: yarn specs analytics
34+
3235
- name: Lint
3336
run: yamllint specs
3437

@@ -59,6 +62,12 @@ jobs:
5962
- name: Build personalization client
6063
run: yarn client:build-js:personalization
6164

65+
- name: Generate analytics client
66+
run: yarn generate javascript analytics
67+
68+
- name: Build analytics client
69+
run: yarn client:build-js:analytics
70+
6271
- name: Lint
6372
run: yarn lint
6473

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
.openapi-generator
4+
.env
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
git_push.sh
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This is the entrypoint for the package
2+
export * from './src/apis';
3+
export * from './model/models';
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* Error.
3+
*/
4+
export type ErrorBase = {
5+
message?: string;
6+
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { GetAverageClickPositionResponseDates } from './getAverageClickPositionResponseDates';
2+
3+
export type GetAverageClickPositionResponse = {
4+
/**
5+
* The average of all the click count event.
6+
*/
7+
average: number;
8+
/**
9+
* The number of click event.
10+
*/
11+
clickCount: number;
12+
/**
13+
* A list of average click position with their date.
14+
*/
15+
dates: GetAverageClickPositionResponseDates[];
16+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export type GetAverageClickPositionResponseDates = {
2+
/**
3+
* The average of all the click count event.
4+
*/
5+
average: number;
6+
/**
7+
* The number of click event.
8+
*/
9+
clickCount: number;
10+
/**
11+
* Date of the event.
12+
*/
13+
date: Date;
14+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { GetClickPositionsResponsePositions } from './getClickPositionsResponsePositions';
2+
3+
export type GetClickPositionsResponse = {
4+
/**
5+
* A list of the click positions with their click count.
6+
*/
7+
positions: GetClickPositionsResponsePositions[];
8+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export type GetClickPositionsResponsePositions = {
2+
/**
3+
* Range of positions with the following pattern: Positions from 1 to 10 included are displayed in separated groups. Positions from 11 to 20 included are grouped together. Positions from 21 and up are grouped together.
4+
*/
5+
position: number[];
6+
/**
7+
* The number of click event.
8+
*/
9+
clickCount: number;
10+
};

0 commit comments

Comments
 (0)