@quesmed/types-rn 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.
package/models/Job.d.ts CHANGED
@@ -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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.180",
3
+ "version": "2.6.182",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
  }