@quesmed/types 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.
@@ -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
+ `;
@@ -1,5 +1,6 @@
1
1
  export * from './ai';
2
2
  export * from './algoliaSync';
3
+ export * from './assets';
3
4
  export * from './content';
4
5
  export * from './database';
5
6
  export * from './job';
@@ -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 { ELightGalleryType, FileData, IJob, IJobAsset, IJobChat, IJobMember, IJobRecord, IJobRemark, Id } from '../../../models';
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.CREATE_JOB_ASSETS = exports.REMOVE_JOB_ASSETS = 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;
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
- `;
@@ -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,19 @@
1
+ import { gql } from '@apollo/client';
2
+ import { JOB_ASSET_FRAGMENT } from '../../fragments';
3
+ export const REMOVE_JOB_ASSETS = gql `
4
+ mutation RemoveJobAssets($unlink: Boolean, $ids: [ID!]!) {
5
+ admin {
6
+ removeJobAssets(unlink: $unlink, ids: $ids)
7
+ }
8
+ }
9
+ `;
10
+ export const CREATE_JOB_ASSETS = gql `
11
+ ${JOB_ASSET_FRAGMENT}
12
+ mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
13
+ admin {
14
+ createJobAssets(inputs: $inputs) {
15
+ ...JobAsset
16
+ }
17
+ }
18
+ }
19
+ `;
@@ -1,5 +1,6 @@
1
1
  export * from './ai';
2
2
  export * from './algoliaSync';
3
+ export * from './assets';
3
4
  export * from './content';
4
5
  export * from './database';
5
6
  export * from './job';
@@ -1,5 +1,6 @@
1
1
  export * from './ai';
2
2
  export * from './algoliaSync';
3
+ export * from './assets';
3
4
  export * from './content';
4
5
  export * from './database';
5
6
  export * from './job';
@@ -1,4 +1,4 @@
1
- import { ELightGalleryType, FileData, IJob, IJobAsset, IJobChat, IJobMember, IJobRecord, IJobRemark, Id } from '../../../models';
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,5 +1,5 @@
1
1
  import { gql } from '@apollo/client';
2
- import { JOB_ASSET_FRAGMENT, JOB_REMARK_FRAGMENT, JOB_STATUS_FRAGMENT, LIST_JOB_FRAGMENT, } from '../../fragments';
2
+ import { JOB_REMARK_FRAGMENT, JOB_STATUS_FRAGMENT, LIST_JOB_FRAGMENT, } from '../../fragments';
3
3
  export const CREATE_JOB = gql `
4
4
  ${LIST_JOB_FRAGMENT}
5
5
  mutation CreateJob($input: CreateJobInput!) {
@@ -97,32 +97,3 @@ export const DELETE_JOB_CHATS = gql `
97
97
  }
98
98
  }
99
99
  `;
100
- export const REMOVE_JOB_ASSETS = gql `
101
- mutation RemoveJobAssets(
102
- $jobId: ID!
103
- $unlink: Boolean
104
- $ids: [ID!]!
105
- $recordId: ID
106
- $referenceId: ID
107
- ) {
108
- admin {
109
- removeJobAssets(
110
- jobId: $jobId
111
- unlink: $unlink
112
- ids: $ids
113
- recordId: $recordId
114
- referenceId: $referenceId
115
- )
116
- }
117
- }
118
- `;
119
- export const CREATE_JOB_ASSETS = gql `
120
- ${JOB_ASSET_FRAGMENT}
121
- mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
122
- admin {
123
- createJobAssets(inputs: $inputs) {
124
- ...JobAsset
125
- }
126
- }
127
- }
128
- `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.184",
3
+ "version": "2.6.185",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",