@ailaw/venus 1.108.0 → 1.110.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/dist/venus.es.js +42 -44
- package/package.json +1 -1
package/dist/venus.es.js
CHANGED
|
@@ -163,9 +163,6 @@ const meQuery = gql`
|
|
|
163
163
|
me {
|
|
164
164
|
id
|
|
165
165
|
lawFirmId
|
|
166
|
-
lawFirm {
|
|
167
|
-
licenseTags
|
|
168
|
-
}
|
|
169
166
|
}
|
|
170
167
|
}
|
|
171
168
|
`;
|
|
@@ -173,14 +170,7 @@ function useMe() {
|
|
|
173
170
|
const { result } = useQuery(meQuery, void 0, {
|
|
174
171
|
fetchPolicy: "cache-first"
|
|
175
172
|
});
|
|
176
|
-
return useResult(result
|
|
177
|
-
id: "",
|
|
178
|
-
lawFirmId: -1,
|
|
179
|
-
lawFirm: {
|
|
180
|
-
id: -1,
|
|
181
|
-
licenseTags: []
|
|
182
|
-
}
|
|
183
|
-
});
|
|
173
|
+
return useResult(result);
|
|
184
174
|
}
|
|
185
175
|
const profilesQuery = gql`
|
|
186
176
|
query ProfileSearch(
|
|
@@ -1449,6 +1439,28 @@ var n600 = createForm({
|
|
|
1449
1439
|
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1450
1440
|
}
|
|
1451
1441
|
});
|
|
1442
|
+
var eoir27 = createForm({
|
|
1443
|
+
displayName: "EOIR-27",
|
|
1444
|
+
roles: {
|
|
1445
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1446
|
+
Petitioner: [GlueRoleType.USERPROFILE],
|
|
1447
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1448
|
+
}
|
|
1449
|
+
});
|
|
1450
|
+
var eoir29 = createForm({
|
|
1451
|
+
displayName: "EOIR-29",
|
|
1452
|
+
roles: {
|
|
1453
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1454
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1457
|
+
var i526e = createForm({
|
|
1458
|
+
displayName: "I-526E",
|
|
1459
|
+
roles: {
|
|
1460
|
+
Beneficiary: [GlueRoleType.USERPROFILE],
|
|
1461
|
+
Preparer: [GlueRoleType.PREPARERPROFILE]
|
|
1462
|
+
}
|
|
1463
|
+
});
|
|
1452
1464
|
const formRecords = {
|
|
1453
1465
|
g28Company,
|
|
1454
1466
|
g28Person,
|
|
@@ -1522,7 +1534,10 @@ const formRecords = {
|
|
|
1522
1534
|
i102,
|
|
1523
1535
|
i212,
|
|
1524
1536
|
n400,
|
|
1525
|
-
n600
|
|
1537
|
+
n600,
|
|
1538
|
+
eoir27,
|
|
1539
|
+
eoir29,
|
|
1540
|
+
i526e
|
|
1526
1541
|
};
|
|
1527
1542
|
var index$2 = Object.values(formRecords);
|
|
1528
1543
|
const acceptableFormats = [
|
|
@@ -2254,33 +2269,25 @@ var TaskTablePure = /* @__PURE__ */ function() {
|
|
|
2254
2269
|
return __component__$5.exports;
|
|
2255
2270
|
}();
|
|
2256
2271
|
var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId, withGallery = true) => {
|
|
2257
|
-
var _a, _b, _c;
|
|
2258
2272
|
const startIndex = computed(() => (pagination.value.current - 1) * pagination.value.pageSize);
|
|
2259
2273
|
const endIndex = computed(() => startIndex.value + pagination.value.pageSize);
|
|
2260
2274
|
watch(() => conditions.value, () => {
|
|
2261
2275
|
pagination.value.current = 1;
|
|
2262
2276
|
pagination.value.total = 0;
|
|
2263
2277
|
});
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
startIndex: startIndex.value,
|
|
2278
|
-
endIndex: endIndex.value,
|
|
2279
|
-
lawFirmId
|
|
2280
|
-
};
|
|
2281
|
-
}, {
|
|
2282
|
-
enabled: !!((_c = (_b = (_a = me.value) == null ? void 0 : _a.lawFirm) == null ? void 0 : _b.licenseTags) == null ? void 0 : _c.length)
|
|
2283
|
-
});
|
|
2278
|
+
return useQuery(SearchTaskTemplatesQuery, () => ({
|
|
2279
|
+
query: {
|
|
2280
|
+
includeGallery: withGallery,
|
|
2281
|
+
keywords: conditions.value.keywords || "",
|
|
2282
|
+
isEmployee: conditions.value.isEmployee,
|
|
2283
|
+
taskTemplateId: conditions.value.taskTemplateId,
|
|
2284
|
+
sortBy: TaskTemplateSortBy.name,
|
|
2285
|
+
sortOrder: SortOrder.asc
|
|
2286
|
+
},
|
|
2287
|
+
startIndex: startIndex.value,
|
|
2288
|
+
endIndex: endIndex.value,
|
|
2289
|
+
lawFirmId
|
|
2290
|
+
}));
|
|
2284
2291
|
};
|
|
2285
2292
|
const taskTemplateFragment = gql`
|
|
2286
2293
|
fragment taskTemplate on TaskTemplate {
|
|
@@ -2700,13 +2707,11 @@ const CreateTaskTemplateMutation = gql`
|
|
|
2700
2707
|
$selfUserId: Int!
|
|
2701
2708
|
$selfLawFirmId: Int!
|
|
2702
2709
|
$taskTemplateObj: TaskTemplateInput!
|
|
2703
|
-
$tag: String!
|
|
2704
2710
|
) {
|
|
2705
2711
|
createTaskTemplate(
|
|
2706
2712
|
selfUserId: $selfUserId
|
|
2707
2713
|
selfLawFirmId: $selfLawFirmId
|
|
2708
2714
|
taskTemplateObj: $taskTemplateObj
|
|
2709
|
-
tag: $tag
|
|
2710
2715
|
) {
|
|
2711
2716
|
code
|
|
2712
2717
|
message
|
|
@@ -2864,7 +2869,6 @@ var __vue2_script$1 = defineComponent({
|
|
|
2864
2869
|
});
|
|
2865
2870
|
};
|
|
2866
2871
|
const _submit = async (record) => {
|
|
2867
|
-
record.tag = me.value.lawFirm.licenseTags[0];
|
|
2868
2872
|
const { newRecord, success, isUpdate } = await submit(record, updateTemplate, createTemplate);
|
|
2869
2873
|
if (success) {
|
|
2870
2874
|
writeQuery(record.taskTemplateId, newRecord, isUpdate);
|
|
@@ -2955,7 +2959,7 @@ var render$1 = function() {
|
|
|
2955
2959
|
var staticRenderFns$1 = [];
|
|
2956
2960
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2957
2961
|
const __cssModules$1 = {};
|
|
2958
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
2962
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "466cfa4a", null, null);
|
|
2959
2963
|
function __vue2_injectStyles$1(context) {
|
|
2960
2964
|
for (let o in __cssModules$1) {
|
|
2961
2965
|
this[o] = __cssModules$1[o];
|
|
@@ -2993,10 +2997,4 @@ function __vue2_injectStyles(context) {
|
|
|
2993
2997
|
var index = /* @__PURE__ */ function() {
|
|
2994
2998
|
return __component__.exports;
|
|
2995
2999
|
}();
|
|
2996
|
-
|
|
2997
|
-
ailaw: "Immigration",
|
|
2998
|
-
familyBase: "FamilyBase",
|
|
2999
|
-
familyCalifornia: "FamilyBase",
|
|
3000
|
-
familyTexas: "FamilyTexas"
|
|
3001
|
-
};
|
|
3002
|
-
export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, GlueRoleType, NewTask, portal as Portal, index$4 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, caseTemplateFilter, formRecords, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
|
|
3000
|
+
export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, GlueRoleType, NewTask, index$4 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, caseTemplateFilter, formRecords, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
|