@quesmed/types 2.6.158 → 2.6.160

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.
Files changed (51) hide show
  1. package/dist/cjs/models/Job.d.ts +191 -0
  2. package/dist/cjs/models/Job.js +132 -0
  3. package/dist/cjs/models/User.d.ts +2 -1
  4. package/dist/cjs/models/User.js +1 -0
  5. package/dist/cjs/models/index.d.ts +1 -0
  6. package/dist/cjs/models/index.js +1 -0
  7. package/dist/cjs/resolvers/constants.js +1 -1
  8. package/dist/cjs/resolvers/fragments/index.d.ts +1 -0
  9. package/dist/cjs/resolvers/fragments/index.js +1 -0
  10. package/dist/cjs/resolvers/fragments/job.d.ts +16 -0
  11. package/dist/cjs/resolvers/fragments/job.js +250 -0
  12. package/dist/cjs/resolvers/mutation/admin/index.d.ts +1 -0
  13. package/dist/cjs/resolvers/mutation/admin/index.js +1 -0
  14. package/dist/cjs/resolvers/mutation/admin/job.d.ts +104 -0
  15. package/dist/cjs/resolvers/mutation/admin/job.js +126 -0
  16. package/dist/cjs/resolvers/mutation/stripe.d.ts +3 -1
  17. package/dist/cjs/resolvers/mutation/stripe.js +2 -2
  18. package/dist/cjs/resolvers/mutation/validUserToken/user.d.ts +4 -0
  19. package/dist/cjs/resolvers/mutation/validUserToken/user.js +8 -0
  20. package/dist/cjs/resolvers/query/admin/dashboard.d.ts +1 -0
  21. package/dist/cjs/resolvers/query/admin/dashboard.js +1 -0
  22. package/dist/cjs/resolvers/query/admin/index.d.ts +1 -0
  23. package/dist/cjs/resolvers/query/admin/index.js +1 -0
  24. package/dist/cjs/resolvers/query/admin/job.d.ts +41 -0
  25. package/dist/cjs/resolvers/query/admin/job.js +62 -0
  26. package/dist/mjs/models/Job.d.ts +191 -0
  27. package/dist/mjs/models/Job.js +119 -0
  28. package/dist/mjs/models/User.d.ts +2 -1
  29. package/dist/mjs/models/User.js +1 -0
  30. package/dist/mjs/models/index.d.ts +1 -0
  31. package/dist/mjs/models/index.js +1 -0
  32. package/dist/mjs/resolvers/constants.js +1 -1
  33. package/dist/mjs/resolvers/fragments/index.d.ts +1 -0
  34. package/dist/mjs/resolvers/fragments/index.js +1 -0
  35. package/dist/mjs/resolvers/fragments/job.d.ts +16 -0
  36. package/dist/mjs/resolvers/fragments/job.js +247 -0
  37. package/dist/mjs/resolvers/mutation/admin/index.d.ts +1 -0
  38. package/dist/mjs/resolvers/mutation/admin/index.js +1 -0
  39. package/dist/mjs/resolvers/mutation/admin/job.d.ts +104 -0
  40. package/dist/mjs/resolvers/mutation/admin/job.js +123 -0
  41. package/dist/mjs/resolvers/mutation/stripe.d.ts +3 -1
  42. package/dist/mjs/resolvers/mutation/stripe.js +2 -2
  43. package/dist/mjs/resolvers/mutation/validUserToken/user.d.ts +4 -0
  44. package/dist/mjs/resolvers/mutation/validUserToken/user.js +8 -0
  45. package/dist/mjs/resolvers/query/admin/dashboard.d.ts +1 -0
  46. package/dist/mjs/resolvers/query/admin/dashboard.js +1 -0
  47. package/dist/mjs/resolvers/query/admin/index.d.ts +1 -0
  48. package/dist/mjs/resolvers/query/admin/index.js +1 -0
  49. package/dist/mjs/resolvers/query/admin/job.d.ts +41 -0
  50. package/dist/mjs/resolvers/query/admin/job.js +59 -0
  51. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
1
  import { RootData } from './../types';
2
2
  export declare const CUSTOMER_PORTAL: import("@apollo/client").DocumentNode;
3
- export type ICustomerPortalVar = null;
3
+ export type ICustomerPortalVar = {
4
+ returnUrl?: string;
5
+ };
4
6
  export type ICustomerPortalData = RootData<string, 'customerPortal'>;
5
7
  export interface IStripeLineItem {
6
8
  price: string;
@@ -1,7 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
2
  export const CUSTOMER_PORTAL = gql `
3
- mutation CustomerPortal {
4
- customerPortal
3
+ mutation CustomerPortal($returnUrl: String) {
4
+ customerPortal(returnUrl: $returnUrl)
5
5
  }
6
6
  `;
7
7
  export const STRIPE_HOMEPAGE_CHECKOUT_SESSION = gql `
@@ -2,6 +2,8 @@ export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/c
2
2
  export interface ICreateNewSubscriptionCheckoutSessionVar {
3
3
  priceId: string;
4
4
  additionalPriceId?: string;
5
+ successUrl?: string;
6
+ cancelUrl?: string;
5
7
  }
6
8
  export type ICreateNewSubscriptionCheckoutSessionData = {
7
9
  validUserToken: {
@@ -12,6 +14,8 @@ export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client
12
14
  export interface ICreateNewOneOffCheckoutSessionVar {
13
15
  priceId: string;
14
16
  additionalPriceId?: string;
17
+ successUrl?: string;
18
+ cancelUrl?: string;
15
19
  }
16
20
  export type ICreateNewOneOffCheckoutSessionData = {
17
21
  validUserToken: {
@@ -3,11 +3,15 @@ export const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = gql `
3
3
  mutation CreateNewSubscriptionCheckoutSession(
4
4
  $priceId: String!
5
5
  $additionalPriceId: String
6
+ $successUrl: String
7
+ $cancelUrl: String
6
8
  ) {
7
9
  validUserToken {
8
10
  createNewSubscriptionCheckoutSession(
9
11
  priceId: $priceId
10
12
  additionalPriceId: $additionalPriceId
13
+ successUrl: $successUrl
14
+ cancelUrl: $cancelUrl
11
15
  )
12
16
  }
13
17
  }
@@ -16,11 +20,15 @@ export const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = gql `
16
20
  mutation CreateNewOneOffCheckoutSession(
17
21
  $priceId: String!
18
22
  $additionalPriceId: String
23
+ $successUrl: String
24
+ $cancelUrl: String
19
25
  ) {
20
26
  validUserToken {
21
27
  createNewOneOffCheckoutSession(
22
28
  priceId: $priceId
23
29
  additionalPriceId: $additionalPriceId
30
+ successUrl: $successUrl
31
+ cancelUrl: $cancelUrl
24
32
  )
25
33
  }
26
34
  }
@@ -196,6 +196,7 @@ export type IDropdownOptionsVar = {
196
196
  export type IDropdownOptionsData = AdminData<Array<{
197
197
  key: string;
198
198
  value: string | number;
199
+ description: string | null;
199
200
  metaData: {
200
201
  key: string;
201
202
  value: string;
@@ -360,6 +360,7 @@ export const DROPDOWN_OPTIONS = gql `
360
360
  dropdownOptions(force: $force, search: $search, table: $table) {
361
361
  key
362
362
  value
363
+ description
363
364
  metaData {
364
365
  key
365
366
  value
@@ -1,4 +1,5 @@
1
1
  export * from './dashboard';
2
2
  export * from './database';
3
3
  export * from './getUserToken';
4
+ export * from './job';
4
5
  export * from './question';
@@ -1,4 +1,5 @@
1
1
  export * from './dashboard';
2
2
  export * from './database';
3
3
  export * from './getUserToken';
4
+ export * from './job';
4
5
  export * from './question';
@@ -0,0 +1,41 @@
1
+ import { EJobStatus, IJob, IJobRecord, IJobRemark } from '../../../models';
2
+ import { AdminData } from '../../types';
3
+ export declare const GET_JOB: import("@apollo/client").DocumentNode;
4
+ export type IGetJobVar = {
5
+ id: IJob['id'];
6
+ };
7
+ export type IGetJobData = AdminData<IJob, 'getJob'>;
8
+ export declare const GET_JOBS: import("@apollo/client").DocumentNode;
9
+ export type IGetJobsVar = {
10
+ filter: {
11
+ status?: IJob['status'];
12
+ type?: IJob['type'];
13
+ priority?: IJob['priority'];
14
+ searchText?: string;
15
+ };
16
+ page: number;
17
+ take: number;
18
+ };
19
+ export type IGetJobsData = AdminData<{
20
+ results: IJob[];
21
+ total: number;
22
+ counts: Array<{
23
+ status: EJobStatus;
24
+ count: number;
25
+ }>;
26
+ }, 'getJobs'>;
27
+ export declare const GET_JOB_REMARKS: import("@apollo/client").DocumentNode;
28
+ export type IGetJobRemarksVar = {
29
+ jobId: IJob['id'];
30
+ };
31
+ export type IGetJobRemarksData = AdminData<IJobRemark[], 'getJobRemarks'>;
32
+ export declare const GET_JOB_RECORDS: import("@apollo/client").DocumentNode;
33
+ export type IGetJobRecordsVar = {
34
+ jobId: IJob['id'];
35
+ };
36
+ export type IGetJobRecordsData = AdminData<IJobRecord[], 'getJobRecords'>;
37
+ export declare const GET_JOB_RECORD: import("@apollo/client").DocumentNode;
38
+ export type IGetJobRecordVar = {
39
+ id: IJobRecord['id'];
40
+ };
41
+ export type IGetJobRecordData = AdminData<IJobRecord, 'getJobRecord'>;
@@ -0,0 +1,59 @@
1
+ import { gql } from '@apollo/client';
2
+ import { JOB_RECORD_FRAGMENT, JOB_REMARK_FRAGMENT, LIMITED_JOB_FRAGMENT, LIST_JOB_FRAGMENT, } from '../../fragments';
3
+ export const GET_JOB = gql `
4
+ ${LIMITED_JOB_FRAGMENT}
5
+ query GetJob($id: ID!) {
6
+ admin {
7
+ getJob(id: $id) {
8
+ ...LimitedJob
9
+ }
10
+ }
11
+ }
12
+ `;
13
+ export const GET_JOBS = gql `
14
+ ${LIST_JOB_FRAGMENT}
15
+ query GetJobs($filter: JobsFilterInput, $page: Int!, $take: Int!) {
16
+ admin {
17
+ getJobs(filter: $filter, page: $page, take: $take) {
18
+ results {
19
+ ...Job
20
+ }
21
+ total
22
+ counts {
23
+ status
24
+ count
25
+ }
26
+ }
27
+ }
28
+ }
29
+ `;
30
+ export const GET_JOB_REMARKS = gql `
31
+ ${JOB_REMARK_FRAGMENT}
32
+ query GetJobRemarks($jobId: ID!) {
33
+ admin {
34
+ getJobRemarks(jobId: $jobId) {
35
+ ...JobRemark
36
+ }
37
+ }
38
+ }
39
+ `;
40
+ export const GET_JOB_RECORDS = gql `
41
+ ${JOB_RECORD_FRAGMENT}
42
+ query GetJobRecords($jobId: ID!) {
43
+ admin {
44
+ getJobRecords(jobId: $jobId) {
45
+ ...JobRecord
46
+ }
47
+ }
48
+ }
49
+ `;
50
+ export const GET_JOB_RECORD = gql `
51
+ ${JOB_RECORD_FRAGMENT}
52
+ query GetJobRecord($id: ID!) {
53
+ admin {
54
+ getJobRecord(id: $id) {
55
+ ...JobRecord
56
+ }
57
+ }
58
+ }
59
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.158",
3
+ "version": "2.6.160",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",