@simpleview/sv-auth-client 6.13.1 → 6.17.0
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/package.json +1 -1
- package/src/Oauth2Express.js +1 -0
- package/src/prefixes/AuthPrefix.js +6 -21
package/package.json
CHANGED
package/src/Oauth2Express.js
CHANGED
|
@@ -115,19 +115,22 @@ class AuthPrefix {
|
|
|
115
115
|
return returnData;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
async accounts_camber_sync({ fields, context }) {
|
|
118
|
+
async accounts_camber_sync({ input, fields, context }) {
|
|
119
119
|
context = context || this._graphServer.context;
|
|
120
120
|
|
|
121
121
|
const result = await query({
|
|
122
122
|
query : `
|
|
123
|
-
mutation {
|
|
123
|
+
mutation($input: auth_accounts_camber_sync_input) {
|
|
124
124
|
auth {
|
|
125
|
-
accounts_camber_sync {
|
|
125
|
+
accounts_camber_sync(input: $input) {
|
|
126
126
|
${fields}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
`,
|
|
131
|
+
variables : {
|
|
132
|
+
input
|
|
133
|
+
},
|
|
131
134
|
url : this._graphUrl,
|
|
132
135
|
token : context.token
|
|
133
136
|
});
|
|
@@ -166,24 +169,6 @@ class AuthPrefix {
|
|
|
166
169
|
return returnData;
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
async accounts_email_setup({ fields, context = this._graphServer.context }) {
|
|
170
|
-
return query({
|
|
171
|
-
query : `
|
|
172
|
-
mutation {
|
|
173
|
-
auth {
|
|
174
|
-
accounts_email_setup {
|
|
175
|
-
${fields}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
`,
|
|
180
|
-
url : this._graphUrl,
|
|
181
|
-
token : context.token,
|
|
182
|
-
key : "auth.accounts_email_setup",
|
|
183
|
-
clean : true
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
|
|
187
172
|
async oauth_clients(...args) {
|
|
188
173
|
return this._oauthClients.find(...args);
|
|
189
174
|
}
|