@visa-check-r/integrations 0.0.120 → 0.0.122

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
@@ -1698,6 +1698,7 @@ var questionQuery = [
1698
1698
  "helperText",
1699
1699
  "answerType",
1700
1700
  "options",
1701
+ "optionHelp",
1701
1702
  "isRequired",
1702
1703
  "parentId",
1703
1704
  "parentAnswer",
@@ -2252,7 +2253,8 @@ var sopReviewQuery = [
2252
2253
  "visaProfileId",
2253
2254
  "isValidSOP",
2254
2255
  "documentType",
2255
- "visaType"
2256
+ "visaType",
2257
+ "topic"
2256
2258
  ];
2257
2259
  var documentReviewQuery = [
2258
2260
  "title",
@@ -4329,8 +4331,8 @@ var createAIServerService = (client) => {
4329
4331
  async startDraft(input, option) {
4330
4332
  var _a;
4331
4333
  const res = await client.request(
4332
- `mutation startDraft($visaProfileId: String, $documentType: String!, $fromUpload: Boolean, $visaProfileChecklistItemId: String, $visaType: String) {
4333
- startDraft(visaProfileId: $visaProfileId, documentType: $documentType, fromUpload: $fromUpload, visaProfileChecklistItemId: $visaProfileChecklistItemId, visaType: $visaType) {
4334
+ `mutation startDraft($visaProfileId: String, $documentType: String!, $fromUpload: Boolean, $visaProfileChecklistItemId: String, $visaType: String, $topic: String) {
4335
+ startDraft(visaProfileId: $visaProfileId, documentType: $documentType, fromUpload: $fromUpload, visaProfileChecklistItemId: $visaProfileChecklistItemId, visaType: $visaType, topic: $topic) {
4334
4336
  aiServerAuth { url accessToken runId }
4335
4337
  }
4336
4338
  }`,
@@ -4343,7 +4345,7 @@ var createAIServerService = (client) => {
4343
4345
  async finishDraft(input, option) {
4344
4346
  var _a, _b;
4345
4347
  const res = await client.request(
4346
- `mutation finishDraft($runId: String!, $result: String!) { finishDraft(runId: $runId, result: $result) { draft { id visaProfileId visaProfileChecklistItemId documentType visaType generatedSop reviewedAt createdAt } } }`,
4348
+ `mutation finishDraft($runId: String!, $result: String!) { finishDraft(runId: $runId, result: $result) { draft { id visaProfileId visaProfileChecklistItemId documentType topic visaType generatedSop reviewedAt createdAt } } }`,
4347
4349
  input,
4348
4350
  option
4349
4351
  );
@@ -4353,17 +4355,27 @@ var createAIServerService = (client) => {
4353
4355
  async listMyDrafts(option) {
4354
4356
  var _a, _b, _c;
4355
4357
  const res = await client.request(
4356
- `query listMyDrafts { listMyDrafts { drafts { id documentType visaType generatedSop createdAt } } }`,
4358
+ `query listMyDrafts { listMyDrafts { drafts { id documentType topic visaType generatedSop createdAt } } }`,
4357
4359
  {},
4358
4360
  option
4359
4361
  );
4360
4362
  return (_c = (_b = (_a = res.data) == null ? void 0 : _a.listMyDrafts) == null ? void 0 : _b.drafts) != null ? _c : [];
4361
4363
  },
4362
- /** Moves a draft onto a visa profile, replacing that profile's draft of the same kind. */
4364
+ /** A visa profile's SOP and LOEs (one LOE per topic), newest first. */
4365
+ async listProfileDrafts(visaProfileId, option) {
4366
+ var _a, _b, _c;
4367
+ const res = await client.request(
4368
+ `query listProfileDrafts($visaProfileId: String!) { listProfileDrafts(visaProfileId: $visaProfileId) { drafts { id visaProfileId documentType topic visaType generatedSop reviewedAt createdAt } } }`,
4369
+ { visaProfileId },
4370
+ option
4371
+ );
4372
+ return (_c = (_b = (_a = res.data) == null ? void 0 : _a.listProfileDrafts) == null ? void 0 : _b.drafts) != null ? _c : [];
4373
+ },
4374
+ /** Moves a draft onto a visa profile, replacing that profile's draft of the same kind (and, for an LOE, topic). */
4363
4375
  async attachDraft(input, option) {
4364
4376
  var _a, _b;
4365
4377
  const res = await client.request(
4366
- `mutation attachDraft($draftId: String!, $visaProfileId: String!) { attachDraft(draftId: $draftId, visaProfileId: $visaProfileId) { draft { id visaProfileId documentType } } }`,
4378
+ `mutation attachDraft($draftId: String!, $visaProfileId: String!) { attachDraft(draftId: $draftId, visaProfileId: $visaProfileId) { draft { id visaProfileId documentType topic } } }`,
4367
4379
  input,
4368
4380
  option
4369
4381
  );