@quesmed/types-rn 2.6.184 → 2.6.185
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/package.json +1 -1
- package/resolvers/mutation/admin/assets.d.ts +26 -0
- package/resolvers/mutation/admin/assets.js +22 -0
- package/resolvers/mutation/admin/index.d.ts +1 -0
- package/resolvers/mutation/admin/index.js +1 -0
- package/resolvers/mutation/admin/job.d.ts +1 -27
- package/resolvers/mutation/admin/job.js +1 -30
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ELightGalleryType, FileData, IJob, IJobAsset, IJobRecord, Id } from '../../../models';
|
|
2
|
+
import { AdminData, graphqlNormalize } from '../../types';
|
|
3
|
+
export declare const REMOVE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
4
|
+
export type IRemoveJobAssetsVar = {
|
|
5
|
+
unlink?: boolean | null;
|
|
6
|
+
ids: IJobAsset['id'][];
|
|
7
|
+
};
|
|
8
|
+
export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
|
|
9
|
+
export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
10
|
+
export interface IJobAssetInput {
|
|
11
|
+
file: File | FileData;
|
|
12
|
+
jobId: IJob['id'];
|
|
13
|
+
recordId?: IJobRecord['id'] | null;
|
|
14
|
+
caption?: string | null;
|
|
15
|
+
name: string;
|
|
16
|
+
topicId?: Id;
|
|
17
|
+
sensitive: boolean;
|
|
18
|
+
overlay?: boolean;
|
|
19
|
+
type: ELightGalleryType;
|
|
20
|
+
choiceLabel?: string | null;
|
|
21
|
+
index: number;
|
|
22
|
+
}
|
|
23
|
+
export type ICreateJobAssetsVar = {
|
|
24
|
+
inputs: IJobAssetInput[];
|
|
25
|
+
};
|
|
26
|
+
export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CREATE_JOB_ASSETS = exports.REMOVE_JOB_ASSETS = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const fragments_1 = require("../../fragments");
|
|
6
|
+
exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
|
|
7
|
+
mutation RemoveJobAssets($unlink: Boolean, $ids: [ID!]!) {
|
|
8
|
+
admin {
|
|
9
|
+
removeJobAssets(unlink: $unlink, ids: $ids)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
|
|
14
|
+
${fragments_1.JOB_ASSET_FRAGMENT}
|
|
15
|
+
mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
|
|
16
|
+
admin {
|
|
17
|
+
createJobAssets(inputs: $inputs) {
|
|
18
|
+
...JobAsset
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai"), exports);
|
|
18
18
|
__exportStar(require("./algoliaSync"), exports);
|
|
19
|
+
__exportStar(require("./assets"), exports);
|
|
19
20
|
__exportStar(require("./content"), exports);
|
|
20
21
|
__exportStar(require("./database"), exports);
|
|
21
22
|
__exportStar(require("./job"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IJob, IJobChat, IJobMember, IJobRemark } from '../../../models';
|
|
2
2
|
import { AdminData, graphqlNormalize } from '../../types';
|
|
3
3
|
export declare const CREATE_JOB: import("@apollo/client").DocumentNode;
|
|
4
4
|
export type ICreateJobInput = {
|
|
@@ -72,29 +72,3 @@ export type IDeleteJobChatsVar = {
|
|
|
72
72
|
jobId: IJobChat['jobId'];
|
|
73
73
|
};
|
|
74
74
|
export type IDeleteJobChatsData = AdminData<boolean, 'deleteJobChats'>;
|
|
75
|
-
export declare const REMOVE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
76
|
-
export type IRemoveJobAssetsVar = {
|
|
77
|
-
jobId: IJobAsset['jobId'];
|
|
78
|
-
unlink?: boolean | null;
|
|
79
|
-
ids: IJobAsset['id'][];
|
|
80
|
-
recordId?: IJobRecord['id'] | null;
|
|
81
|
-
referenceId?: IJobRecord['referenceId'] | null;
|
|
82
|
-
};
|
|
83
|
-
export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
|
|
84
|
-
export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
85
|
-
export interface IJobAssetInput {
|
|
86
|
-
file: File | FileData;
|
|
87
|
-
jobId: IJob['id'];
|
|
88
|
-
recordId?: IJobRecord['id'] | null;
|
|
89
|
-
caption?: string | null;
|
|
90
|
-
name: string;
|
|
91
|
-
topicId?: Id;
|
|
92
|
-
sensitive: boolean;
|
|
93
|
-
type: ELightGalleryType;
|
|
94
|
-
choiceLabel?: string | null;
|
|
95
|
-
index: number;
|
|
96
|
-
}
|
|
97
|
-
export type ICreateJobAssetsVar = {
|
|
98
|
-
inputs: IJobAssetInput[];
|
|
99
|
-
};
|
|
100
|
-
export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DELETE_JOB_CHATS = exports.DELETE_JOB_CHAT = exports.CREATE_JOB_CHAT = exports.DELETE_JOB_REMARK = exports.UPDATE_JOB_REMARK = exports.CREATE_JOB_REMARK = exports.DELETE_JOB = exports.UPDATE_JOB_STATUS = exports.DUPLICATE_JOB = exports.UPDATE_JOB = exports.CREATE_JOB = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../../fragments");
|
|
6
6
|
exports.CREATE_JOB = (0, client_1.gql) `
|
|
@@ -100,32 +100,3 @@ exports.DELETE_JOB_CHATS = (0, client_1.gql) `
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
`;
|
|
103
|
-
exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
|
|
104
|
-
mutation RemoveJobAssets(
|
|
105
|
-
$jobId: ID!
|
|
106
|
-
$unlink: Boolean
|
|
107
|
-
$ids: [ID!]!
|
|
108
|
-
$recordId: ID
|
|
109
|
-
$referenceId: ID
|
|
110
|
-
) {
|
|
111
|
-
admin {
|
|
112
|
-
removeJobAssets(
|
|
113
|
-
jobId: $jobId
|
|
114
|
-
unlink: $unlink
|
|
115
|
-
ids: $ids
|
|
116
|
-
recordId: $recordId
|
|
117
|
-
referenceId: $referenceId
|
|
118
|
-
)
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
`;
|
|
122
|
-
exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
|
|
123
|
-
${fragments_1.JOB_ASSET_FRAGMENT}
|
|
124
|
-
mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
|
|
125
|
-
admin {
|
|
126
|
-
createJobAssets(inputs: $inputs) {
|
|
127
|
-
...JobAsset
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
`;
|