@visa-check-r/integrations 0.0.83 → 0.0.84

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 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
+ getPartnerMatrices: (query) => `
186
+ query getPartnerMatrices($partnerId: String!){
187
+ getPartnerMatrices(partnerId: $partnerId) {
188
+ ${query}
189
+ }
190
+ }
191
+ `,
185
192
  getUserTypeStatusCount: (query) => `
186
193
  query getUserTypeStatusCount($userType: UserTypeEnum!){
187
194
  getUserTypeStatusCount(userType: $userType) {
@@ -243,6 +250,13 @@ var userSchema = {
243
250
  };
244
251
 
245
252
  // src/services/user/user.entity.ts
253
+ var partnerMatricesQuery = [
254
+ "approvedApplications",
255
+ "rejectedApplications",
256
+ "submittedApplications",
257
+ "totalApplications",
258
+ "totalClients"
259
+ ];
246
260
  var userTypeStatusCountQuery = [
247
261
  "active",
248
262
  "inactive",
@@ -331,6 +345,10 @@ var userQuery = [
331
345
  ];
332
346
 
333
347
  // src/services/user/types/user.type.ts
348
+ var getPartnerMatricesResponseFields = ["partnerMatrices"];
349
+ var getPartnerMatricesResponseNestedFields = {
350
+ partnerMatrices: partnerMatricesQuery
351
+ };
334
352
  var getUserTypeStatusCountResponse = [
335
353
  "userTypeStatusCount"
336
354
  ];
@@ -370,6 +388,20 @@ var deleteUserResponseFields = ["userId"];
370
388
 
371
389
  // src/services/user/user.service.ts
372
390
  var createUserService = (client) => ({
391
+ async getPartnerMatrices(input, fetchFields, option) {
392
+ var _a, _b, _c;
393
+ const res = await client.request(
394
+ userSchema.getPartnerMatrices(
395
+ gqlQueryStringBuilder(
396
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getPartnerMatricesResponseFields,
397
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getPartnerMatricesResponseNestedFields
398
+ )
399
+ ),
400
+ input,
401
+ option
402
+ );
403
+ return (_c = res.data) == null ? void 0 : _c.getPartnerMatrices;
404
+ },
373
405
  async getUserTypeStatusCount(input, fetchFields, option) {
374
406
  var _a, _b, _c;
375
407
  const res = await client.request(
@@ -3648,6 +3680,8 @@ exports.getGeneratedSOPResponse = getGeneratedSOPResponse;
3648
3680
  exports.getGeneratedSOPResponseNestedFields = getGeneratedSOPResponseNestedFields;
3649
3681
  exports.getJobResponse = getJobResponse;
3650
3682
  exports.getJobResponseNestedFields = getJobResponseNestedFields;
3683
+ exports.getPartnerMatricesResponseFields = getPartnerMatricesResponseFields;
3684
+ exports.getPartnerMatricesResponseNestedFields = getPartnerMatricesResponseNestedFields;
3651
3685
  exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
3652
3686
  exports.getReadinessScoreReviewResponseNestedFields = getReadinessScoreReviewResponseNestedFields;
3653
3687
  exports.getSOPReviewResponseFields = getSOPReviewResponseFields;