Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic integration lib #20

Merged
merged 10 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/__generated__/*
dist
8 changes: 5 additions & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ module.exports = {
plugins: [
'@typescript-eslint',
'prettier',
'eslint-plugin-tsdoc'
],
root: true,
rules: {
"prettier/prettier": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" }]
'prettier/prettier': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { 'varsIgnorePattern': '^_' }],
'tsdoc/syntax': 'warn'
}
};
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
node_modules
keyfile
base-composite.json
.next
admin_seed.txt
local-data
src/__generated__/*
composedb.config.json
test.config.json
dist
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.6.1
v20.8.1
2 changes: 1 addition & 1 deletion composites/1-claim.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Claim
)
@createIndex(fields: [{ path: "title" }])
@createIndex(fields: [{ path: "badge" }]) {
maintainer: DID! @documentAccount
owner: DID! @documentAccount
version: CommitID! @documentVersion
title: String! @string(maxLength: 100)
description: String! @string(maxLength: 1000)
Expand Down
3 changes: 1 addition & 2 deletions composites/2-attestation.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ type Claim @loadModel(id: "$CLAIM_ID") {
type Attestation
@createModel(accountRelation: LIST, description: "General attestation")
@createIndex(fields: [{ path: "revoked" }])
@createIndex(fields: [{ path: "targetID" }])
@createIndex(fields: [{ path: "targetVersion" }])
@createIndex(fields: [{ path: "claimVersion" }]) {
source: DID! @documentAccount
owner: DID! @documentAccount
version: CommitID! @documentVersion
# 1. Any type of document, shown with relation on reciever end but cannot use
# @documentRelation without specifying the target type before interfaces land
Expand Down
Loading