@quesmed/types-rn 2.6.234 → 2.6.236

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.
Files changed (33) hide show
  1. package/models/Blog.d.ts +2 -1
  2. package/models/Blog.js +1 -0
  3. package/models/Question.d.ts +1 -1
  4. package/package.json +1 -1
  5. package/resolvers/fragments/index.d.ts +0 -2
  6. package/resolvers/fragments/index.js +0 -2
  7. package/resolvers/mutation/admin/index.d.ts +0 -4
  8. package/resolvers/mutation/admin/index.js +0 -4
  9. package/resolvers/mutation/restricted/marksheet.js +85 -31
  10. package/resolvers/mutation/restricted/questionDiscussion.js +1 -1
  11. package/resolvers/mutation/restricted/users.d.ts +1 -0
  12. package/resolvers/mutation/restricted/users.js +20 -1
  13. package/resolvers/query/admin/index.d.ts +0 -2
  14. package/resolvers/query/admin/index.js +0 -2
  15. package/resolvers/query/restricted/marksheet.d.ts +6 -0
  16. package/resolvers/query/restricted/marksheet.js +22 -1
  17. package/utils/evaluateMark.js +1 -1
  18. package/resolvers/fragments/job.d.ts +0 -10
  19. package/resolvers/fragments/job.js +0 -191
  20. package/resolvers/fragments/record.d.ts +0 -10
  21. package/resolvers/fragments/record.js +0 -187
  22. package/resolvers/mutation/admin/assets.d.ts +0 -44
  23. package/resolvers/mutation/admin/assets.js +0 -39
  24. package/resolvers/mutation/admin/job.d.ts +0 -75
  25. package/resolvers/mutation/admin/job.js +0 -102
  26. package/resolvers/mutation/admin/question.d.ts +0 -41
  27. package/resolvers/mutation/admin/question.js +0 -34
  28. package/resolvers/mutation/admin/record.d.ts +0 -52
  29. package/resolvers/mutation/admin/record.js +0 -62
  30. package/resolvers/query/admin/job.d.ts +0 -46
  31. package/resolvers/query/admin/job.js +0 -56
  32. package/resolvers/query/admin/record.d.ts +0 -25
  33. package/resolvers/query/admin/record.js +0 -35
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_JOB_CHATS = exports.GET_JOB_REMARKS = exports.GET_JOBS = exports.GET_JOB = void 0;
4
- const client_1 = require("@apollo/client");
5
- const fragments_1 = require("../../fragments");
6
- exports.GET_JOB = (0, client_1.gql) `
7
- ${fragments_1.LIMITED_JOB_FRAGMENT}
8
- query GetJob($id: ID!) {
9
- admin {
10
- getJob(id: $id) {
11
- ...LimitedJob
12
- }
13
- }
14
- }
15
- `;
16
- exports.GET_JOBS = (0, client_1.gql) `
17
- ${fragments_1.LIST_JOB_FRAGMENT}
18
- query GetJobs($filter: JobsFilterInput, $page: Int!, $take: Int!) {
19
- admin {
20
- getJobs(filter: $filter, page: $page, take: $take) {
21
- results {
22
- ...Job
23
- }
24
- total
25
- counts {
26
- status
27
- count
28
- }
29
- }
30
- }
31
- }
32
- `;
33
- exports.GET_JOB_REMARKS = (0, client_1.gql) `
34
- ${fragments_1.JOB_REMARK_FRAGMENT}
35
- query GetJobRemarks($jobId: ID!) {
36
- admin {
37
- getJobRemarks(jobId: $jobId) {
38
- ...JobRemark
39
- }
40
- }
41
- }
42
- `;
43
- exports.GET_JOB_CHATS = (0, client_1.gql) `
44
- ${fragments_1.JOB_CHAT_FRAGMENT}
45
- query GetJobChats($jobId: ID!) {
46
- admin {
47
- getJobChats(jobId: $jobId) {
48
- chats {
49
- ...JobChat
50
- }
51
- date
52
- total
53
- }
54
- }
55
- }
56
- `;
@@ -1,25 +0,0 @@
1
- import { EJobAttemptType, IJob, IJobRecord, Id } from '../../../models';
2
- import { AdminData, graphqlNormalize } from '../../types';
3
- export declare const GET_JOB_RECORDS: import("@apollo/client").DocumentNode;
4
- export interface IJobRecordsFilter {
5
- attemptType: EJobAttemptType;
6
- }
7
- export type IGetJobRecordsVar = {
8
- jobId: IJob['id'];
9
- filter: IJobRecordsFilter;
10
- };
11
- export type IGetJobRecordsData = AdminData<(graphqlNormalize & IJobRecord)[], 'getJobRecords'>;
12
- export declare const GET_JOB_RECORD: import("@apollo/client").DocumentNode;
13
- export type IGetJobRecordVar = {
14
- id: IJobRecord['id'];
15
- };
16
- export type IGetJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'getJobRecord'>;
17
- export type IGetIdDetailsVar = {
18
- ids: Array<Id>;
19
- table: string;
20
- };
21
- export type IGetIdDetailsData = AdminData<Array<{
22
- id: Id;
23
- name: string;
24
- }>, 'getIdDetails'>;
25
- export declare const GET_ID_DETAILS: import("@apollo/client").DocumentNode;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_ID_DETAILS = exports.GET_JOB_RECORD = exports.GET_JOB_RECORDS = void 0;
4
- const client_1 = require("@apollo/client");
5
- const fragments_1 = require("../../fragments");
6
- exports.GET_JOB_RECORDS = (0, client_1.gql) `
7
- ${fragments_1.JOB_RECORD_FRAGMENT}
8
- query GetJobRecords($jobId: ID!) {
9
- admin {
10
- getJobRecords(jobId: $jobId) {
11
- ...JobRecord
12
- }
13
- }
14
- }
15
- `;
16
- exports.GET_JOB_RECORD = (0, client_1.gql) `
17
- ${fragments_1.JOB_RECORD_FRAGMENT}
18
- query GetJobRecord($id: ID!) {
19
- admin {
20
- getJobRecord(id: $id) {
21
- ...JobRecord
22
- }
23
- }
24
- }
25
- `;
26
- exports.GET_ID_DETAILS = (0, client_1.gql) `
27
- query GetIdDetails($ids: [ID!]!, $table: String!) {
28
- admin {
29
- getIdDetails(ids: $ids, table: $table) {
30
- id
31
- name
32
- }
33
- }
34
- }
35
- `;