@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
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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:
|
|
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(
|
|
105
|
+
mutation RemoveJobAssets(
|
|
106
|
+
$jobId: ID!
|
|
107
|
+
$unlink: Boolean
|
|
108
|
+
$ids: [ID!]!
|
|
109
|
+
$recordId: ID
|
|
110
|
+
$referenceId: ID
|
|
111
|
+
) {
|
|
106
112
|
admin {
|
|
107
|
-
removeJobAssets(
|
|
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:
|
|
117
|
-
$recordId: ID
|
|
128
|
+
$input: JobAssetInput!
|
|
118
129
|
$jobId: ID!
|
|
130
|
+
$recordId: ID
|
|
131
|
+
$referenceId: ID
|
|
119
132
|
) {
|
|
120
133
|
admin {
|
|
121
|
-
createJobAssets(
|
|
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
|
-
|
|
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(
|
|
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
|
}
|