-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,249 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build and test | ||
on: [push, pull_request] | ||
env: | ||
CI: true | ||
jobs: | ||
build: | ||
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node: [20] | ||
os: [ubuntu-latest, macOS-latest] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node ${{ matrix.node }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install pnpm | ||
id: pnpm-install | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies and build | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Lint | ||
run: pnpm run lint | ||
|
||
- name: Test | ||
run: pnpm run test:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,129 @@ | ||
// This is an auto-generated file, do not edit manually | ||
import type { RuntimeCompositeDefinition } from '@composedb/types' | ||
export const definition: RuntimeCompositeDefinition = {"models":{"GenericPointAllocation":{"interface":true,"implements":[],"id":"kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4","accountRelation":{"type":"none"}},"MultiplePoints":{"interface":false,"implements":["kjzl6hvfrbw6ca7buvthejhv7vqr85vmpsepzj0mc6665y2zarvjbuvtm3v4kah","kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4"],"id":"kjzl6hvfrbw6c9fmjjdsbuxnewf0yhvco3dn5mihiogeso6i1csdbw2fq8oeijy","accountRelation":{"type":"list"}},"MultiplePointsAllocation":{"interface":true,"implements":["kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4"],"id":"kjzl6hvfrbw6ca7buvthejhv7vqr85vmpsepzj0mc6665y2zarvjbuvtm3v4kah","accountRelation":{"type":"none"}},"PointsAggregation":{"interface":true,"implements":[],"id":"kjzl6hvfrbw6cb6393dpd8blke5w8r7pvbl4449mxetuibcav3oab8fnxmys6d6","accountRelation":{"type":"none"}},"SinglePoint":{"interface":false,"implements":["kjzl6hvfrbw6c7ilzfpjw96drd04jadb0aybiklk70ys2imxp5mjbjmgkecgddf","kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4"],"id":"kjzl6hvfrbw6c9332q9di7qfshxczet94w2tzeubvkbkk9vtuwmya6s9f1bvx9p","accountRelation":{"type":"list"}},"SinglePointAllocation":{"interface":true,"implements":["kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4"],"id":"kjzl6hvfrbw6c7ilzfpjw96drd04jadb0aybiklk70ys2imxp5mjbjmgkecgddf","accountRelation":{"type":"none"}},"TotalPoints":{"interface":false,"implements":["kjzl6hvfrbw6cb6393dpd8blke5w8r7pvbl4449mxetuibcav3oab8fnxmys6d6"],"id":"kjzl6hvfrbw6c5be4exsm7nkkksnqatki8bceyvbgtmcu2bu5vign23b7x4emlb","accountRelation":{"type":"set","fields":["recipient"]}}},"objects":{"GenericPointAllocation":{"recipient":{"type":"did","required":true,"immutable":false},"issuer":{"type":"view","viewType":"documentAccount"}},"MultiplePoints":{"points":{"type":"integer","required":true,"immutable":false},"recipient":{"type":"did","required":true,"immutable":false},"issuer":{"type":"view","viewType":"documentAccount"}},"MultiplePointsAllocation":{"points":{"type":"integer","required":true,"immutable":false},"recipient":{"type":"did","required":true,"immutable":false},"issuer":{"type":"view","viewType":"documentAccount"}},"PointsAggregation":{"date":{"type":"datetime","required":true,"immutable":false},"points":{"type":"integer","required":true,"immutable":false},"recipient":{"type":"did","required":true,"immutable":false},"issuer":{"type":"view","viewType":"documentAccount"}},"SinglePoint":{"recipient":{"type":"did","required":true,"immutable":false},"issuer":{"type":"view","viewType":"documentAccount"}},"SinglePointAllocation":{"recipient":{"type":"did","required":true,"immutable":false},"issuer":{"type":"view","viewType":"documentAccount"}},"TotalPoints":{"date":{"type":"datetime","required":true,"immutable":false},"points":{"type":"integer","required":true,"immutable":false},"recipient":{"type":"did","required":true,"immutable":true},"issuer":{"type":"view","viewType":"documentAccount"}}},"enums":{},"accountData":{"genericPointAllocationList":{"type":"connection","name":"GenericPointAllocation"},"multiplePointsAllocationList":{"type":"connection","name":"MultiplePointsAllocation"},"multiplePointsList":{"type":"connection","name":"MultiplePoints"},"pointsAggregationList":{"type":"connection","name":"PointsAggregation"},"recipientOfGenericPointAllocationList":{"type":"account","name":"GenericPointAllocation","property":"recipient"},"recipientOfMultiplePointsAllocationList":{"type":"account","name":"MultiplePointsAllocation","property":"recipient"},"recipientOfMultiplePointsList":{"type":"account","name":"MultiplePoints","property":"recipient"},"recipientOfPointsAggregationList":{"type":"account","name":"PointsAggregation","property":"recipient"},"recipientOfSinglePointAllocationList":{"type":"account","name":"SinglePointAllocation","property":"recipient"},"recipientOfSinglePointList":{"type":"account","name":"SinglePoint","property":"recipient"},"recipientOfTotalPoints":{"type":"account-set","name":"TotalPoints","property":"recipient"},"recipientOfTotalPointsList":{"type":"account","name":"TotalPoints","property":"recipient"},"singlePointAllocationList":{"type":"connection","name":"SinglePointAllocation"},"singlePointList":{"type":"connection","name":"SinglePoint"},"totalPoints":{"type":"set","name":"TotalPoints"},"totalPointsList":{"type":"connection","name":"TotalPoints"}}} | ||
export const definition: RuntimeCompositeDefinition = { | ||
models: { | ||
GenericPointAllocation: { | ||
interface: true, | ||
implements: [], | ||
id: 'kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4', | ||
accountRelation: { type: 'none' }, | ||
}, | ||
MultiplePoints: { | ||
interface: false, | ||
implements: [ | ||
'kjzl6hvfrbw6ca7buvthejhv7vqr85vmpsepzj0mc6665y2zarvjbuvtm3v4kah', | ||
'kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4', | ||
], | ||
id: 'kjzl6hvfrbw6c9fmjjdsbuxnewf0yhvco3dn5mihiogeso6i1csdbw2fq8oeijy', | ||
accountRelation: { type: 'list' }, | ||
}, | ||
MultiplePointsAllocation: { | ||
interface: true, | ||
implements: ['kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4'], | ||
id: 'kjzl6hvfrbw6ca7buvthejhv7vqr85vmpsepzj0mc6665y2zarvjbuvtm3v4kah', | ||
accountRelation: { type: 'none' }, | ||
}, | ||
PointsAggregation: { | ||
interface: true, | ||
implements: [], | ||
id: 'kjzl6hvfrbw6cb6393dpd8blke5w8r7pvbl4449mxetuibcav3oab8fnxmys6d6', | ||
accountRelation: { type: 'none' }, | ||
}, | ||
SinglePoint: { | ||
interface: false, | ||
implements: [ | ||
'kjzl6hvfrbw6c7ilzfpjw96drd04jadb0aybiklk70ys2imxp5mjbjmgkecgddf', | ||
'kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4', | ||
], | ||
id: 'kjzl6hvfrbw6c9332q9di7qfshxczet94w2tzeubvkbkk9vtuwmya6s9f1bvx9p', | ||
accountRelation: { type: 'list' }, | ||
}, | ||
SinglePointAllocation: { | ||
interface: true, | ||
implements: ['kjzl6hvfrbw6c6m3n64vb2h4n8nxq9jjfb7sf7a9y893spm1pjd0enrsdlyphg4'], | ||
id: 'kjzl6hvfrbw6c7ilzfpjw96drd04jadb0aybiklk70ys2imxp5mjbjmgkecgddf', | ||
accountRelation: { type: 'none' }, | ||
}, | ||
TotalPoints: { | ||
interface: false, | ||
implements: ['kjzl6hvfrbw6cb6393dpd8blke5w8r7pvbl4449mxetuibcav3oab8fnxmys6d6'], | ||
id: 'kjzl6hvfrbw6c5be4exsm7nkkksnqatki8bceyvbgtmcu2bu5vign23b7x4emlb', | ||
accountRelation: { type: 'set', fields: ['recipient'] }, | ||
}, | ||
}, | ||
objects: { | ||
GenericPointAllocation: { | ||
recipient: { type: 'did', required: true, immutable: false }, | ||
issuer: { type: 'view', viewType: 'documentAccount' }, | ||
}, | ||
MultiplePoints: { | ||
points: { type: 'integer', required: true, immutable: false }, | ||
recipient: { type: 'did', required: true, immutable: false }, | ||
issuer: { type: 'view', viewType: 'documentAccount' }, | ||
}, | ||
MultiplePointsAllocation: { | ||
points: { type: 'integer', required: true, immutable: false }, | ||
recipient: { type: 'did', required: true, immutable: false }, | ||
issuer: { type: 'view', viewType: 'documentAccount' }, | ||
}, | ||
PointsAggregation: { | ||
date: { type: 'datetime', required: true, immutable: false }, | ||
points: { type: 'integer', required: true, immutable: false }, | ||
recipient: { type: 'did', required: true, immutable: false }, | ||
issuer: { type: 'view', viewType: 'documentAccount' }, | ||
}, | ||
SinglePoint: { | ||
recipient: { type: 'did', required: true, immutable: false }, | ||
issuer: { type: 'view', viewType: 'documentAccount' }, | ||
}, | ||
SinglePointAllocation: { | ||
recipient: { type: 'did', required: true, immutable: false }, | ||
issuer: { type: 'view', viewType: 'documentAccount' }, | ||
}, | ||
TotalPoints: { | ||
date: { type: 'datetime', required: true, immutable: false }, | ||
points: { type: 'integer', required: true, immutable: false }, | ||
recipient: { type: 'did', required: true, immutable: true }, | ||
issuer: { type: 'view', viewType: 'documentAccount' }, | ||
}, | ||
}, | ||
enums: {}, | ||
accountData: { | ||
genericPointAllocationList: { type: 'connection', name: 'GenericPointAllocation' }, | ||
multiplePointsAllocationList: { type: 'connection', name: 'MultiplePointsAllocation' }, | ||
multiplePointsList: { type: 'connection', name: 'MultiplePoints' }, | ||
pointsAggregationList: { type: 'connection', name: 'PointsAggregation' }, | ||
recipientOfGenericPointAllocationList: { | ||
type: 'account', | ||
name: 'GenericPointAllocation', | ||
property: 'recipient', | ||
}, | ||
recipientOfMultiplePointsAllocationList: { | ||
type: 'account', | ||
name: 'MultiplePointsAllocation', | ||
property: 'recipient', | ||
}, | ||
recipientOfMultiplePointsList: { | ||
type: 'account', | ||
name: 'MultiplePoints', | ||
property: 'recipient', | ||
}, | ||
recipientOfPointsAggregationList: { | ||
type: 'account', | ||
name: 'PointsAggregation', | ||
property: 'recipient', | ||
}, | ||
recipientOfSinglePointAllocationList: { | ||
type: 'account', | ||
name: 'SinglePointAllocation', | ||
property: 'recipient', | ||
}, | ||
recipientOfSinglePointList: { type: 'account', name: 'SinglePoint', property: 'recipient' }, | ||
recipientOfTotalPoints: { type: 'account-set', name: 'TotalPoints', property: 'recipient' }, | ||
recipientOfTotalPointsList: { type: 'account', name: 'TotalPoints', property: 'recipient' }, | ||
singlePointAllocationList: { type: 'connection', name: 'SinglePointAllocation' }, | ||
singlePointList: { type: 'connection', name: 'SinglePoint' }, | ||
totalPoints: { type: 'set', name: 'TotalPoints' }, | ||
totalPointsList: { type: 'connection', name: 'TotalPoints' }, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.