@quesmed/types 2.6.180 → 2.6.182

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.
@@ -243,6 +243,7 @@ export interface IJob {
243
243
  remarkCount: number;
244
244
  resolvedCount: number;
245
245
  memberCount: number;
246
+ assetCount: number;
246
247
  chatCount: number;
247
248
  publishedCount: number;
248
249
  remarks: IJobRemark[];
@@ -116,6 +116,7 @@ exports.LIST_JOB_FRAGMENT = (0, client_1.gql) `
116
116
  resolvedCount
117
117
  remarkCount
118
118
  memberCount
119
+ assetCount
119
120
  chatCount
120
121
  createdByUser {
121
122
  ...JobUser
@@ -75,12 +75,14 @@ export type IDeleteJobChatsData = AdminData<boolean, 'deleteJobChats'>;
75
75
  export declare const REMOVE_JOB_ASSETS: import("@apollo/client").DocumentNode;
76
76
  export type IRemoveJobAssetsVar = {
77
77
  jobId: IJobAsset['jobId'];
78
- recordId?: IJobRecord['id'] | null;
78
+ unlink?: boolean | null;
79
79
  ids: IJobAsset['id'][];
80
+ recordId?: IJobRecord['id'] | null;
81
+ referenceId?: IJobRecord['referenceId'] | null;
80
82
  };
81
83
  export type IRemoveJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'removeJobAssets'>;
82
84
  export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
83
- export interface IJobRecordAssetInput {
85
+ export interface IJobAssetInput {
84
86
  file: File | FileData;
85
87
  jobId: IJob['id'];
86
88
  recordId?: IJobRecord['id'] | null;
@@ -93,8 +95,9 @@ export interface IJobRecordAssetInput {
93
95
  index: number;
94
96
  }
95
97
  export type ICreateJobAssetsVar = {
96
- input: IJobRecordAssetInput;
98
+ input: IJobAssetInput;
97
99
  recordId?: IJobRecord['id'] | null;
100
+ referenceId?: IJobRecord['referenceId'] | null;
98
101
  jobId: IJob['id'];
99
102
  };
100
103
  export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
@@ -102,9 +102,21 @@ exports.DELETE_JOB_CHATS = (0, client_1.gql) `
102
102
  `;
103
103
  exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
104
104
  ${fragments_1.JOB_ASSET_FRAGMENT}
105
- mutation RemoveJobAssets($jobId: ID!, $recordId: ID, $ids: [ID!]!) {
105
+ mutation RemoveJobAssets(
106
+ $jobId: ID!
107
+ $unlink: Boolean
108
+ $ids: [ID!]!
109
+ $recordId: ID
110
+ $referenceId: ID
111
+ ) {
106
112
  admin {
107
- removeJobAssets(jobId: $jobId, recordId: $recordId, ids: $ids) {
113
+ removeJobAssets(
114
+ jobId: $jobId
115
+ unlink: $unlink
116
+ ids: $ids
117
+ recordId: $recordId
118
+ referenceId: $referenceId
119
+ ) {
108
120
  ...JobAsset
109
121
  }
110
122
  }
@@ -113,12 +125,18 @@ exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
113
125
  exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
114
126
  ${fragments_1.JOB_ASSET_FRAGMENT}
115
127
  mutation CreateJobAssets(
116
- $input: JobRecordAssetInput!
117
- $recordId: ID
128
+ $input: JobAssetInput!
118
129
  $jobId: ID!
130
+ $recordId: ID
131
+ $referenceId: ID
119
132
  ) {
120
133
  admin {
121
- createJobAssets(input: $input, recordId: $recordId, jobId: $jobId) {
134
+ createJobAssets(
135
+ input: $input
136
+ jobId: $jobId
137
+ recordId: $recordId
138
+ referenceId: $referenceId
139
+ ) {
122
140
  ...JobAsset
123
141
  }
124
142
  }
@@ -36,7 +36,8 @@ export type IUpdateJobRecordVar = {
36
36
  } | {
37
37
  mockTest: Partial<IJobRecordMockTest>;
38
38
  } | null;
39
- assetIds?: IJobAsset['id'][] | null;
39
+ createdAssetIds?: IJobAsset['id'][] | null;
40
+ deletedAssetIds?: IJobAsset['id'][] | null;
40
41
  };
41
42
  export type IUpdateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'updateJobRecord'>;
42
43
  export declare const DUPLICATE_JOB_RECORD: import("@apollo/client").DocumentNode;
@@ -26,9 +26,17 @@ exports.UPDATE_JOB_RECORD = (0, client_1.gql) `
26
26
  $id: ID!
27
27
  $referenceId: ID
28
28
  $input: JobRecordDataInput!
29
+ $createdAssetIds: [ID!]
30
+ $deletedAssetIds: [ID!]
29
31
  ) {
30
32
  admin {
31
- updateJobRecord(id: $id, referenceId: $referenceId, input: $input) {
33
+ updateJobRecord(
34
+ id: $id
35
+ referenceId: $referenceId
36
+ input: $input
37
+ createdAssetIds: $createdAssetIds
38
+ deletedAssetIds: $deletedAssetIds
39
+ ) {
32
40
  ...JobRecord
33
41
  }
34
42
  }
@@ -243,6 +243,7 @@ export interface IJob {
243
243
  remarkCount: number;
244
244
  resolvedCount: number;
245
245
  memberCount: number;
246
+ assetCount: number;
246
247
  chatCount: number;
247
248
  publishedCount: number;
248
249
  remarks: IJobRemark[];
@@ -113,6 +113,7 @@ export const LIST_JOB_FRAGMENT = gql `
113
113
  resolvedCount
114
114
  remarkCount
115
115
  memberCount
116
+ assetCount
116
117
  chatCount
117
118
  createdByUser {
118
119
  ...JobUser
@@ -75,12 +75,14 @@ export type IDeleteJobChatsData = AdminData<boolean, 'deleteJobChats'>;
75
75
  export declare const REMOVE_JOB_ASSETS: import("@apollo/client").DocumentNode;
76
76
  export type IRemoveJobAssetsVar = {
77
77
  jobId: IJobAsset['jobId'];
78
- recordId?: IJobRecord['id'] | null;
78
+ unlink?: boolean | null;
79
79
  ids: IJobAsset['id'][];
80
+ recordId?: IJobRecord['id'] | null;
81
+ referenceId?: IJobRecord['referenceId'] | null;
80
82
  };
81
83
  export type IRemoveJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'removeJobAssets'>;
82
84
  export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
83
- export interface IJobRecordAssetInput {
85
+ export interface IJobAssetInput {
84
86
  file: File | FileData;
85
87
  jobId: IJob['id'];
86
88
  recordId?: IJobRecord['id'] | null;
@@ -93,8 +95,9 @@ export interface IJobRecordAssetInput {
93
95
  index: number;
94
96
  }
95
97
  export type ICreateJobAssetsVar = {
96
- input: IJobRecordAssetInput;
98
+ input: IJobAssetInput;
97
99
  recordId?: IJobRecord['id'] | null;
100
+ referenceId?: IJobRecord['referenceId'] | null;
98
101
  jobId: IJob['id'];
99
102
  };
100
103
  export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
@@ -99,9 +99,21 @@ export const DELETE_JOB_CHATS = gql `
99
99
  `;
100
100
  export const REMOVE_JOB_ASSETS = gql `
101
101
  ${JOB_ASSET_FRAGMENT}
102
- mutation RemoveJobAssets($jobId: ID!, $recordId: ID, $ids: [ID!]!) {
102
+ mutation RemoveJobAssets(
103
+ $jobId: ID!
104
+ $unlink: Boolean
105
+ $ids: [ID!]!
106
+ $recordId: ID
107
+ $referenceId: ID
108
+ ) {
103
109
  admin {
104
- removeJobAssets(jobId: $jobId, recordId: $recordId, ids: $ids) {
110
+ removeJobAssets(
111
+ jobId: $jobId
112
+ unlink: $unlink
113
+ ids: $ids
114
+ recordId: $recordId
115
+ referenceId: $referenceId
116
+ ) {
105
117
  ...JobAsset
106
118
  }
107
119
  }
@@ -110,12 +122,18 @@ export const REMOVE_JOB_ASSETS = gql `
110
122
  export const CREATE_JOB_ASSETS = gql `
111
123
  ${JOB_ASSET_FRAGMENT}
112
124
  mutation CreateJobAssets(
113
- $input: JobRecordAssetInput!
114
- $recordId: ID
125
+ $input: JobAssetInput!
115
126
  $jobId: ID!
127
+ $recordId: ID
128
+ $referenceId: ID
116
129
  ) {
117
130
  admin {
118
- createJobAssets(input: $input, recordId: $recordId, jobId: $jobId) {
131
+ createJobAssets(
132
+ input: $input
133
+ jobId: $jobId
134
+ recordId: $recordId
135
+ referenceId: $referenceId
136
+ ) {
119
137
  ...JobAsset
120
138
  }
121
139
  }
@@ -36,7 +36,8 @@ export type IUpdateJobRecordVar = {
36
36
  } | {
37
37
  mockTest: Partial<IJobRecordMockTest>;
38
38
  } | null;
39
- assetIds?: IJobAsset['id'][] | null;
39
+ createdAssetIds?: IJobAsset['id'][] | null;
40
+ deletedAssetIds?: IJobAsset['id'][] | null;
40
41
  };
41
42
  export type IUpdateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'updateJobRecord'>;
42
43
  export declare const DUPLICATE_JOB_RECORD: import("@apollo/client").DocumentNode;
@@ -23,9 +23,17 @@ export const UPDATE_JOB_RECORD = gql `
23
23
  $id: ID!
24
24
  $referenceId: ID
25
25
  $input: JobRecordDataInput!
26
+ $createdAssetIds: [ID!]
27
+ $deletedAssetIds: [ID!]
26
28
  ) {
27
29
  admin {
28
- updateJobRecord(id: $id, referenceId: $referenceId, input: $input) {
30
+ updateJobRecord(
31
+ id: $id
32
+ referenceId: $referenceId
33
+ input: $input
34
+ createdAssetIds: $createdAssetIds
35
+ deletedAssetIds: $deletedAssetIds
36
+ ) {
29
37
  ...JobRecord
30
38
  }
31
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.180",
3
+ "version": "2.6.182",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",