Skip to content

Commit

Permalink
Merge pull request #20 from desci-labs/m0ar/integration-lib
Browse files Browse the repository at this point in the history
Basic integration lib
  • Loading branch information
m0ar authored Dec 6, 2023
2 parents 473455f + 8d3cfc3 commit d2d29b8
Show file tree
Hide file tree
Showing 21 changed files with 1,967 additions and 1,395 deletions.
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

0 comments on commit d2d29b8

Please sign in to comment.