@visa-check-r/integrations 0.0.117 → 0.0.118

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
@@ -342,7 +342,13 @@ var userSettingQuery = [
342
342
  "userSettingDocReviewFeedback",
343
343
  "userSettingNewMessageFromClient",
344
344
  "userSettingNewMessageFromConsultant",
345
- "userSettingSubmissionConfirmation"
345
+ "userSettingSubmissionConfirmation",
346
+ "userSettingReadinessCheckReady",
347
+ "userSettingDocumentReminder",
348
+ "userSettingSopLoeReady",
349
+ "userSettingRefusalAnalysisReady",
350
+ "userSettingPartnerActivity",
351
+ "userSettingLowCredit"
346
352
  ];
347
353
  var userCreditQuery = [
348
354
  "amount",
@@ -4455,6 +4461,26 @@ var createPartnerLinkService = (client) => ({
4455
4461
  }
4456
4462
  });
4457
4463
 
4464
+ // src/services/school/index.ts
4465
+ var SCHOOL = "id dliNumber name province city campus sector gradPrograms pgwp";
4466
+ var createSchoolService = (client) => ({
4467
+ async searchSchools(input = {}, option) {
4468
+ var _a;
4469
+ const res = await client.request(
4470
+ `query searchSchools($search: String, $limit: Int) { searchSchools(search: $search, limit: $limit) { schools { ${SCHOOL} } total } }`,
4471
+ input,
4472
+ option
4473
+ );
4474
+ return (_a = res.data) == null ? void 0 : _a.searchSchools;
4475
+ },
4476
+ /** Admin only: download IRCC's list again and replace the stored one. */
4477
+ async syncSchools(option) {
4478
+ var _a;
4479
+ const res = await client.request(`mutation syncSchools { syncSchools { total syncedAt } }`, {}, option);
4480
+ return (_a = res.data) == null ? void 0 : _a.syncSchools;
4481
+ }
4482
+ });
4483
+
4458
4484
  // src/services/help/index.ts
4459
4485
  var ARTICLE = "id title description content";
4460
4486
  var createHelpService = (client) => ({
@@ -4574,6 +4600,7 @@ exports.createReadinessScoreReviewService = createReadinessScoreReviewService;
4574
4600
  exports.createSOPReviewResponseFields = createSOPReviewResponseFields;
4575
4601
  exports.createSOPReviewResponseNestedFields = createSOPReviewResponseNestedFields;
4576
4602
  exports.createSOPReviewService = createSOPReviewService;
4603
+ exports.createSchoolService = createSchoolService;
4577
4604
  exports.createServiceCreditCostService = createServiceCreditCostService;
4578
4605
  exports.createSubscriptionService = createSubscriptionService;
4579
4606
  exports.createTransport = createTransport;