@powerhousedao/builder-profile 0.0.9 → 0.0.10
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 +13 -2
- package/dist/document-models/builder-profile/gen/document-schema.d.ts +83 -64
- 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 +14 -10
- 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/document-models/document-models.d.ts.map +1 -1
- package/dist/document-models/document-models.js +1 -3
- 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 +10 -2
- 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,YAkKpB,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
|
"""
|
|
@@ -115,7 +120,7 @@ export const schema = gql `
|
|
|
115
120
|
SECURITY_ENGINEERING
|
|
116
121
|
}
|
|
117
122
|
input BuilderProfile_RemoveSkillInput {
|
|
118
|
-
skill:
|
|
123
|
+
skill: BuilderSkillInput
|
|
119
124
|
}
|
|
120
125
|
|
|
121
126
|
input BuilderProfile_AddScopeInput {
|
|
@@ -132,7 +137,7 @@ export const schema = gql `
|
|
|
132
137
|
GOVERNANCE_SCOPE
|
|
133
138
|
}
|
|
134
139
|
input BuilderProfile_RemoveScopeInput {
|
|
135
|
-
scope:
|
|
140
|
+
scope: BuilderScopeInput
|
|
136
141
|
}
|
|
137
142
|
input BuilderProfile_AddLinkInput {
|
|
138
143
|
id: OID!
|
|
@@ -153,4 +158,7 @@ export const schema = gql `
|
|
|
153
158
|
input BuilderProfile_RemoveContributorInput {
|
|
154
159
|
contributorPHID: PHID!
|
|
155
160
|
}
|
|
161
|
+
input BuilderProfile_SetOperatorInput {
|
|
162
|
+
isOperator: Boolean!
|
|
163
|
+
}
|
|
156
164
|
`;
|
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.10",
|
|
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",
|