@visa-check-r/integrations 0.0.99 → 0.0.101
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/index.cjs.js +31 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.esm.js +30 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -182,6 +182,13 @@ function gqlQueryStringBuilder(query, nestedValues) {
|
|
|
182
182
|
|
|
183
183
|
// src/services/user/schemas/user.schema.ts
|
|
184
184
|
var userSchema = {
|
|
185
|
+
listPartnerClients: (query) => `
|
|
186
|
+
query listPartnerClients($referenceCode: String!, $limit: Int!, $skip: Int!) {
|
|
187
|
+
listPartnerClients(referenceCode: $referenceCode, limit: $limit, skip: $skip) {
|
|
188
|
+
${query}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,
|
|
185
192
|
getPartnerMatrices: (query) => `
|
|
186
193
|
query getPartnerMatrices($partnerId: String!, $referenceCode: String!) {
|
|
187
194
|
getPartnerMatrices(partnerId: $partnerId, referenceCode: $referenceCode) {
|
|
@@ -394,9 +401,31 @@ var createUserResponseNestedFields = getUserResponseNestedFields;
|
|
|
394
401
|
var updateUserResponseFields = getUserResponseFields;
|
|
395
402
|
var updateUserResponseNestedFields = getUserResponseNestedFields;
|
|
396
403
|
var deleteUserResponseFields = ["userId"];
|
|
404
|
+
var listPartnerClientsResponseFields = [
|
|
405
|
+
"clients",
|
|
406
|
+
"total"
|
|
407
|
+
];
|
|
408
|
+
var listPartnerClientsResponseNestedFields = {
|
|
409
|
+
..._getUserResponseNestedFields,
|
|
410
|
+
clients: userQuery
|
|
411
|
+
};
|
|
397
412
|
|
|
398
413
|
// src/services/user/user.service.ts
|
|
399
414
|
var createUserService = (client) => ({
|
|
415
|
+
async listPartnerClients(input, fetchFields, option) {
|
|
416
|
+
var _a, _b, _c;
|
|
417
|
+
const res = await client.request(
|
|
418
|
+
userSchema.listPartnerClients(
|
|
419
|
+
gqlQueryStringBuilder(
|
|
420
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : listPartnerClientsResponseFields,
|
|
421
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : listPartnerClientsResponseNestedFields
|
|
422
|
+
)
|
|
423
|
+
),
|
|
424
|
+
input,
|
|
425
|
+
option
|
|
426
|
+
);
|
|
427
|
+
return (_c = res.data) == null ? void 0 : _c.listPartnerClients;
|
|
428
|
+
},
|
|
400
429
|
async getPartnerMatrices(input, fetchFields, option) {
|
|
401
430
|
var _a, _b, _c;
|
|
402
431
|
const res = await client.request(
|
|
@@ -3885,6 +3914,8 @@ exports.listChecklistItemResponse = listChecklistItemResponse;
|
|
|
3885
3914
|
exports.listChecklistItemResponseNestedFields = listChecklistItemResponseNestedFields;
|
|
3886
3915
|
exports.listConsultantAssignmentsResponseFields = listConsultantAssignmentsResponseFields;
|
|
3887
3916
|
exports.listConsultantAssignmentsResponseNestedFields = listConsultantAssignmentsResponseNestedFields;
|
|
3917
|
+
exports.listPartnerClientsResponseFields = listPartnerClientsResponseFields;
|
|
3918
|
+
exports.listPartnerClientsResponseNestedFields = listPartnerClientsResponseNestedFields;
|
|
3888
3919
|
exports.listReadinessScoreReviewsResponseFields = listReadinessScoreReviewsResponseFields;
|
|
3889
3920
|
exports.listReadinessScoreReviewsResponseNestedFields = listReadinessScoreReviewsResponseNestedFields;
|
|
3890
3921
|
exports.listUsersResponseFields = listUsersResponseFields;
|