@powerhousedao/builder-profile 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-models/builder-profile/actions.d.ts +1 -0
- package/dist/document-models/builder-profile/actions.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/builders/actions.d.ts +6 -2
- package/dist/document-models/builder-profile/gen/builders/actions.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/builders/creators.d.ts +3 -2
- package/dist/document-models/builder-profile/gen/builders/creators.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/builders/creators.js +2 -1
- package/dist/document-models/builder-profile/gen/builders/operations.d.ts +2 -1
- package/dist/document-models/builder-profile/gen/builders/operations.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/document-model.js +16 -5
- package/dist/document-models/builder-profile/gen/document-schema.d.ts +19 -0
- package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/ph-factories.js +1 -0
- package/dist/document-models/builder-profile/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/reducer.js +5 -1
- package/dist/document-models/builder-profile/gen/schema/types.d.ts +4 -0
- package/dist/document-models/builder-profile/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/zod.d.ts +2 -1
- package/dist/document-models/builder-profile/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/zod.js +6 -0
- package/dist/document-models/builder-profile/gen/utils.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/utils.js +1 -0
- package/dist/document-models/builder-profile/src/reducers/builders.d.ts.map +1 -1
- package/dist/document-models/builder-profile/src/reducers/builders.js +3 -0
- package/dist/editors/builder-profile/editor.d.ts.map +1 -1
- package/dist/editors/builder-profile/editor.js +58 -5
- package/dist/style.css +809 -0
- package/dist/subgraphs/builder-profile/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/builder-profile/resolvers.js +12 -0
- package/dist/subgraphs/builder-profile/schema.d.ts.map +1 -1
- package/dist/subgraphs/builder-profile/schema.js +8 -34
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAuB/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAkUxB,CAAC"}
|
|
@@ -187,6 +187,18 @@ export const getResolvers = (subgraph) => {
|
|
|
187
187
|
}
|
|
188
188
|
return true;
|
|
189
189
|
},
|
|
190
|
+
BuilderProfile_setOperator: async (_, args) => {
|
|
191
|
+
const { docId, input } = args;
|
|
192
|
+
const doc = await reactor.getDocument(docId);
|
|
193
|
+
if (!doc) {
|
|
194
|
+
throw new Error("Document not found");
|
|
195
|
+
}
|
|
196
|
+
const result = await reactor.addAction(docId, actions.setOperator(input));
|
|
197
|
+
if (result.status !== "SUCCESS") {
|
|
198
|
+
throw new Error(result.error?.message ?? "Failed to setOperator");
|
|
199
|
+
}
|
|
200
|
+
return true;
|
|
201
|
+
},
|
|
190
202
|
},
|
|
191
203
|
};
|
|
192
204
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/builder-profile/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YAgIpB,CAAC"}
|
|
@@ -68,6 +68,11 @@ export const schema = gql `
|
|
|
68
68
|
docId: PHID
|
|
69
69
|
input: BuilderProfile_RemoveContributorInput
|
|
70
70
|
): Int
|
|
71
|
+
BuilderProfile_setOperator(
|
|
72
|
+
driveId: String
|
|
73
|
+
docId: PHID
|
|
74
|
+
input: BuilderProfile_SetOperatorInput
|
|
75
|
+
): Int
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
"""
|
|
@@ -85,35 +90,10 @@ export const schema = gql `
|
|
|
85
90
|
type: BuilderProfile_teamTypeInput
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
enum BuilderProfile_teamTypeInput {
|
|
89
|
-
INDIVIDUAL
|
|
90
|
-
TEAM
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
enum BuilderProfile_BuilderStatusInput {
|
|
94
|
-
ACTIVE
|
|
95
|
-
INACTIVE
|
|
96
|
-
ON_HOLD
|
|
97
|
-
COMPLETED
|
|
98
|
-
ARCHIVED
|
|
99
|
-
}
|
|
100
|
-
|
|
101
93
|
input BuilderProfile_AddSkillInput {
|
|
102
94
|
skill: BuilderProfile_BuilderSkillInput
|
|
103
95
|
}
|
|
104
96
|
|
|
105
|
-
enum BuilderProfile_BuilderSkillInput {
|
|
106
|
-
FRONTEND_DEVELOPMENT
|
|
107
|
-
BACKEND_DEVELOPMENT
|
|
108
|
-
FULL_STACK_DEVELOPMENT
|
|
109
|
-
DEVOPS_ENGINEERING
|
|
110
|
-
SMART_CONTRACT_DEVELOPMENT
|
|
111
|
-
UI_UX_DESIGN
|
|
112
|
-
TECHNICAL_WRITING
|
|
113
|
-
QA_TESTING
|
|
114
|
-
DATA_ENGINEERING
|
|
115
|
-
SECURITY_ENGINEERING
|
|
116
|
-
}
|
|
117
97
|
input BuilderProfile_RemoveSkillInput {
|
|
118
98
|
skill: BuilderProfile_BuilderSkillInput
|
|
119
99
|
}
|
|
@@ -122,15 +102,6 @@ export const schema = gql `
|
|
|
122
102
|
scope: BuilderProfile_BuilderScopeInput
|
|
123
103
|
}
|
|
124
104
|
|
|
125
|
-
enum BuilderProfile_BuilderScopeInput {
|
|
126
|
-
ACC
|
|
127
|
-
STA
|
|
128
|
-
SUP
|
|
129
|
-
STABILITY_SCOPE
|
|
130
|
-
SUPPORT_SCOPE
|
|
131
|
-
PROTOCOL_SCOPE
|
|
132
|
-
GOVERNANCE_SCOPE
|
|
133
|
-
}
|
|
134
105
|
input BuilderProfile_RemoveScopeInput {
|
|
135
106
|
scope: BuilderProfile_BuilderScopeInput
|
|
136
107
|
}
|
|
@@ -153,4 +124,7 @@ export const schema = gql `
|
|
|
153
124
|
input BuilderProfile_RemoveContributorInput {
|
|
154
125
|
contributorPHID: PHID!
|
|
155
126
|
}
|
|
127
|
+
input BuilderProfile_SetOperatorInput {
|
|
128
|
+
isOperator: Boolean!
|
|
129
|
+
}
|
|
156
130
|
`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/builder-profile",
|
|
3
3
|
"description": "Builder profile document model",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"@powerhousedao/common": "^5.1.0",
|
|
67
67
|
"@powerhousedao/design-system": "^5.1.0",
|
|
68
68
|
"@powerhousedao/document-engineering": "^1.40.0",
|
|
69
|
+
"@powerhousedao/vetra": "^5.1.0",
|
|
69
70
|
"@uiw/react-md-editor": "^4.0.11",
|
|
70
71
|
"document-model": "^5.1.0",
|
|
71
72
|
"error": "^10.4.0",
|