@quesmed/types-rn 2.6.181 → 2.6.183

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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.181",
3
+ "version": "2.6.183",
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
@@ -78,10 +78,11 @@ export type IRemoveJobAssetsVar = {
78
78
  unlink?: boolean | null;
79
79
  ids: IJobAsset['id'][];
80
80
  recordId?: IJobRecord['id'] | null;
81
+ referenceId?: IJobRecord['referenceId'] | null;
81
82
  };
82
83
  export type IRemoveJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'removeJobAssets'>;
83
84
  export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
84
- export interface IJobRecordAssetInput {
85
+ export interface IJobAssetInput {
85
86
  file: File | FileData;
86
87
  jobId: IJob['id'];
87
88
  recordId?: IJobRecord['id'] | null;
@@ -90,12 +91,13 @@ export interface IJobRecordAssetInput {
90
91
  topicId?: Id;
91
92
  sensitive: boolean;
92
93
  type: ELightGalleryType;
93
- choiceIdx?: number | null;
94
+ choiceLabel?: string | null;
94
95
  index: number;
95
96
  }
96
97
  export type ICreateJobAssetsVar = {
97
- input: IJobRecordAssetInput;
98
+ input: IJobAssetInput;
98
99
  recordId?: IJobRecord['id'] | null;
100
+ referenceId?: IJobRecord['referenceId'] | null;
99
101
  jobId: IJob['id'];
100
102
  };
101
103
  export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
@@ -107,6 +107,7 @@ exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
107
107
  $unlink: Boolean
108
108
  $ids: [ID!]!
109
109
  $recordId: ID
110
+ $referenceId: ID
110
111
  ) {
111
112
  admin {
112
113
  removeJobAssets(
@@ -114,6 +115,7 @@ exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
114
115
  unlink: $unlink
115
116
  ids: $ids
116
117
  recordId: $recordId
118
+ referenceId: $referenceId
117
119
  ) {
118
120
  ...JobAsset
119
121
  }
@@ -123,12 +125,18 @@ exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
123
125
  exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
124
126
  ${fragments_1.JOB_ASSET_FRAGMENT}
125
127
  mutation CreateJobAssets(
126
- $input: JobRecordAssetInput!
127
- $recordId: ID
128
+ $input: JobAssetInput!
128
129
  $jobId: ID!
130
+ $recordId: ID
131
+ $referenceId: ID
129
132
  ) {
130
133
  admin {
131
- createJobAssets(input: $input, recordId: $recordId, jobId: $jobId) {
134
+ createJobAssets(
135
+ input: $input
136
+ jobId: $jobId
137
+ recordId: $recordId
138
+ referenceId: $referenceId
139
+ ) {
132
140
  ...JobAsset
133
141
  }
134
142
  }