@quesmed/types-rn 2.6.182 → 2.6.184

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
@@ -103,7 +103,7 @@ export interface IJobAsset {
103
103
  picture: IPicture;
104
104
  index: number;
105
105
  type: ELightGalleryType;
106
- choiceIdx: number | null;
106
+ choiceLabel: string | null;
107
107
  createdAt: Date | number;
108
108
  }
109
109
  export interface IJobRecordQuestion {
@@ -187,6 +187,7 @@ export interface IJobRecord {
187
187
  assets: IJobAsset[];
188
188
  metricsSummary: IJobRecordMetricsSummary | null;
189
189
  choiceSummary: IJobRecordChoiceSummary[] | null;
190
+ referenceCount: number;
190
191
  }
191
192
  export interface IJobMetaData {
192
193
  productId: EProductType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.182",
3
+ "version": "2.6.184",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -89,7 +89,7 @@ exports.JOB_ASSETS_FRAGMENT = (0, client_1.gql) `
89
89
  recordId
90
90
  index
91
91
  type
92
- choiceIdx
92
+ choiceLabel
93
93
  createdAt
94
94
  picture {
95
95
  id
@@ -37,7 +37,7 @@ exports.JOB_ASSET_FRAGMENT = (0, client_1.gql) `
37
37
  pictureId
38
38
  index
39
39
  type
40
- choiceIdx
40
+ choiceLabel
41
41
  createdAt
42
42
  picture {
43
43
  id
@@ -160,6 +160,7 @@ exports.JOB_RECORD_FRAGMENT = (0, client_1.gql) `
160
160
  jobId
161
161
  index
162
162
  referenceId
163
+ referenceCount
163
164
  data {
164
165
  ... on JobRecordQuestion {
165
166
  ...JobRecordQuestion
@@ -80,7 +80,7 @@ export type IRemoveJobAssetsVar = {
80
80
  recordId?: IJobRecord['id'] | null;
81
81
  referenceId?: IJobRecord['referenceId'] | null;
82
82
  };
83
- export type IRemoveJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'removeJobAssets'>;
83
+ export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
84
84
  export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
85
85
  export interface IJobAssetInput {
86
86
  file: File | FileData;
@@ -91,13 +91,10 @@ export interface IJobAssetInput {
91
91
  topicId?: Id;
92
92
  sensitive: boolean;
93
93
  type: ELightGalleryType;
94
- choiceIdx?: number | null;
94
+ choiceLabel?: string | null;
95
95
  index: number;
96
96
  }
97
97
  export type ICreateJobAssetsVar = {
98
- input: IJobAssetInput;
99
- recordId?: IJobRecord['id'] | null;
100
- referenceId?: IJobRecord['referenceId'] | null;
101
- jobId: IJob['id'];
98
+ inputs: IJobAssetInput[];
102
99
  };
103
100
  export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
@@ -101,7 +101,6 @@ exports.DELETE_JOB_CHATS = (0, client_1.gql) `
101
101
  }
102
102
  `;
103
103
  exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
104
- ${fragments_1.JOB_ASSET_FRAGMENT}
105
104
  mutation RemoveJobAssets(
106
105
  $jobId: ID!
107
106
  $unlink: Boolean
@@ -116,27 +115,15 @@ exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
116
115
  ids: $ids
117
116
  recordId: $recordId
118
117
  referenceId: $referenceId
119
- ) {
120
- ...JobAsset
121
- }
118
+ )
122
119
  }
123
120
  }
124
121
  `;
125
122
  exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
126
123
  ${fragments_1.JOB_ASSET_FRAGMENT}
127
- mutation CreateJobAssets(
128
- $input: JobAssetInput!
129
- $jobId: ID!
130
- $recordId: ID
131
- $referenceId: ID
132
- ) {
124
+ mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
133
125
  admin {
134
- createJobAssets(
135
- input: $input
136
- jobId: $jobId
137
- recordId: $recordId
138
- referenceId: $referenceId
139
- ) {
126
+ createJobAssets(inputs: $inputs) {
140
127
  ...JobAsset
141
128
  }
142
129
  }
@@ -26,7 +26,6 @@ export type IDeleteJobRecordData = AdminData<boolean, 'deleteJobRecord'>;
26
26
  export declare const UPDATE_JOB_RECORD: import("@apollo/client").DocumentNode;
27
27
  export type IUpdateJobRecordVar = {
28
28
  id: IJobRecord['id'];
29
- referenceId?: IJobRecord['referenceId'];
30
29
  input: {
31
30
  question: Partial<IJobRecordQuestion>;
32
31
  } | {
@@ -24,7 +24,6 @@ exports.UPDATE_JOB_RECORD = (0, client_1.gql) `
24
24
  ${fragments_1.JOB_RECORD_FRAGMENT}
25
25
  mutation UpdateJobRecord(
26
26
  $id: ID!
27
- $referenceId: ID
28
27
  $input: JobRecordDataInput!
29
28
  $createdAssetIds: [ID!]
30
29
  $deletedAssetIds: [ID!]
@@ -32,7 +31,6 @@ exports.UPDATE_JOB_RECORD = (0, client_1.gql) `
32
31
  admin {
33
32
  updateJobRecord(
34
33
  id: $id
35
- referenceId: $referenceId
36
34
  input: $input
37
35
  createdAssetIds: $createdAssetIds
38
36
  deletedAssetIds: $deletedAssetIds