@jsb188/graphql 1.1.7 → 1.1.10
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/cache/config.ts +14 -4
- package/cache/index.test.ts +319 -0
- package/cache/index.ts +522 -85
- package/client/index.ts +2 -2
- package/client/request.ts +48 -9
- package/deno.test.json +6 -0
- package/gql/fragments/accountFragments.ts +1 -0
- package/gql/fragments/aiChatFragments.ts +1 -0
- package/gql/fragments/dataTableFragments.ts +212 -0
- package/gql/fragments/emailFragments.ts +26 -0
- package/gql/fragments/inboundContactFragments.ts +15 -0
- package/gql/fragments/integrationFragments.ts +22 -0
- package/gql/fragments/logFragments.ts +40 -12
- package/gql/fragments/organizationFragments.ts +59 -24
- package/gql/fragments/productFragments.ts +0 -24
- package/gql/fragments/reportFragments.ts +52 -10
- package/gql/fragments/sheetFragments.ts +145 -0
- package/gql/fragments/storageFragments.ts +3 -1
- package/gql/fragments/workflowFragments.ts +43 -0
- package/gql/mutations/accountMutations.ts +24 -2
- package/gql/mutations/aiChatMutations.ts +28 -1
- package/gql/mutations/authMutations.ts +3 -3
- package/gql/mutations/billingMutations.ts +1 -1
- package/gql/mutations/dataTableMutations.ts +84 -0
- package/gql/mutations/inboundContactMutations.ts +24 -0
- package/gql/mutations/index.ts +12 -8
- package/gql/mutations/integrationMutations.ts +25 -0
- package/gql/mutations/logMutations.ts +15 -1
- package/gql/mutations/organizationMutations.ts +151 -2
- package/gql/mutations/sheetMutations.ts +168 -0
- package/gql/mutations/storageMutations.ts +1 -2
- package/gql/queries/aiChatQueries.ts +1 -1
- package/gql/queries/billingQueries.ts +1 -1
- package/gql/queries/dataTableQueries.ts +45 -0
- package/gql/queries/emailQueries.ts +44 -0
- package/gql/queries/inboundContactQueries.ts +40 -0
- package/gql/queries/index.ts +11 -6
- package/gql/queries/logQueries.ts +47 -20
- package/gql/queries/organizationQueries.ts +62 -8
- package/gql/queries/productQueries.ts +1 -40
- package/gql/queries/reportQueries.ts +81 -13
- package/gql/queries/sheetQueries.ts +72 -0
- package/gql/queries/workflowQueries.ts +30 -0
- package/hooks/index.ts +208 -58
- package/hooks/use-account-mtn.ts +52 -4
- package/hooks/use-aiChat-mtn.ts +62 -6
- package/hooks/use-aiChat-qry.ts +76 -24
- package/hooks/use-app-qry.ts +2 -2
- package/hooks/use-auth-mtn.ts +5 -5
- package/hooks/use-dataTable-mtn.ts +87 -0
- package/hooks/use-dataTable-qry.ts +172 -0
- package/hooks/use-email-qry.ts +112 -0
- package/hooks/use-inboundContact-mtn.ts +31 -0
- package/hooks/use-inboundContact-qry.ts +88 -0
- package/hooks/use-integration-mtn.ts +59 -0
- package/hooks/use-integration-qry.ts +15 -0
- package/hooks/use-log-mtn.ts +6 -6
- package/hooks/use-log-qry.ts +38 -35
- package/hooks/use-organization-mtn.ts +288 -16
- package/hooks/use-organization-qry.ts +71 -22
- package/hooks/use-product-qry.ts +4 -46
- package/hooks/use-report-qry.ts +94 -10
- package/hooks/use-sheet-mtn.ts +181 -0
- package/hooks/use-sheet-qry.ts +157 -0
- package/hooks/use-storage-mtn.ts +6 -5
- package/hooks/use-storage-qry.ts +1 -1
- package/hooks/use-workflow-qry.ts +72 -0
- package/package.json +23 -4
- package/sse.ts +2 -2
- package/tsconfig.json +12 -0
- package/types.d.ts +2 -1
- package/utils.ts +2 -4
- package/gql/fragments/actionFragments.ts +0 -16
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
export const reportFragment = `fragment reportFragment on Report {
|
|
3
2
|
id
|
|
4
3
|
organizationId
|
|
@@ -6,19 +5,18 @@ export const reportFragment = `fragment reportFragment on Report {
|
|
|
6
5
|
documentName
|
|
7
6
|
title
|
|
8
7
|
description
|
|
9
|
-
|
|
8
|
+
frequency
|
|
9
|
+
reportGroupId
|
|
10
|
+
groupName
|
|
11
|
+
groupShortName
|
|
10
12
|
period
|
|
11
|
-
|
|
13
|
+
summary
|
|
12
14
|
gridLayoutStyle
|
|
13
|
-
|
|
14
|
-
activityAt
|
|
15
15
|
}`;
|
|
16
16
|
|
|
17
17
|
export const reportSectionFragment = `fragment reportSectionFragment on ReportSection {
|
|
18
18
|
id
|
|
19
19
|
isGroupTitle
|
|
20
|
-
sectionKey
|
|
21
|
-
sectionName
|
|
22
20
|
title
|
|
23
21
|
description
|
|
24
22
|
requireFileUploads
|
|
@@ -33,16 +31,60 @@ export const reportRowDataFragment = `fragment reportRowDataFragment on ReportRo
|
|
|
33
31
|
|
|
34
32
|
export const reportColumnDataFragment = `fragment reportColumnDataFragment on ReportColumnData {
|
|
35
33
|
id
|
|
34
|
+
entityId
|
|
35
|
+
referenceIds
|
|
36
|
+
lineNumber
|
|
36
37
|
className
|
|
38
|
+
iconName
|
|
37
39
|
label
|
|
40
|
+
answer
|
|
38
41
|
text
|
|
42
|
+
shortText
|
|
43
|
+
note
|
|
44
|
+
warningIfNotChecked
|
|
45
|
+
warningNote
|
|
39
46
|
placeholder
|
|
40
47
|
checked
|
|
41
48
|
}`;
|
|
42
49
|
|
|
43
|
-
export const
|
|
50
|
+
export const reportGroupFragment = `fragment reportGroupFragment on ReportGroup {
|
|
51
|
+
id
|
|
52
|
+
name
|
|
53
|
+
shortName
|
|
54
|
+
layout {
|
|
55
|
+
columns
|
|
56
|
+
headers
|
|
57
|
+
gridLayoutStyle
|
|
58
|
+
}
|
|
59
|
+
lastSubmissionPeriod
|
|
60
|
+
lastSubmissionReportId
|
|
61
|
+
}`;
|
|
62
|
+
|
|
63
|
+
export const reportSubmissionFragment = `fragment reportSubmissionFragment on ReportSubmission {
|
|
44
64
|
id
|
|
65
|
+
reportSubmissionId
|
|
66
|
+
reportId
|
|
67
|
+
value
|
|
68
|
+
frequency
|
|
69
|
+
reportSubmissionIdEnc
|
|
70
|
+
|
|
45
71
|
organizationId
|
|
46
|
-
|
|
47
|
-
|
|
72
|
+
organizationIdEnc
|
|
73
|
+
organizationName
|
|
74
|
+
organizationOperation
|
|
75
|
+
|
|
76
|
+
childOrgId
|
|
77
|
+
childOrgIdEnc
|
|
78
|
+
childOrgName
|
|
79
|
+
childOrgOperation
|
|
80
|
+
|
|
81
|
+
location
|
|
82
|
+
period
|
|
83
|
+
status
|
|
84
|
+
reportGroupId
|
|
85
|
+
groupName
|
|
86
|
+
groupShortName
|
|
87
|
+
activityAt
|
|
88
|
+
createdAt
|
|
89
|
+
updatedAt
|
|
48
90
|
}`;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export const sheetFragment = `fragment sheetFragment on Sheet {
|
|
2
|
+
id
|
|
3
|
+
organizationId
|
|
4
|
+
|
|
5
|
+
name
|
|
6
|
+
title
|
|
7
|
+
description
|
|
8
|
+
position
|
|
9
|
+
active
|
|
10
|
+
|
|
11
|
+
design {
|
|
12
|
+
id
|
|
13
|
+
version
|
|
14
|
+
columns
|
|
15
|
+
rows
|
|
16
|
+
defaultCellStyle
|
|
17
|
+
defaultCellFormat
|
|
18
|
+
metadata
|
|
19
|
+
|
|
20
|
+
grid {
|
|
21
|
+
rowCount
|
|
22
|
+
columnCount
|
|
23
|
+
frozenRows
|
|
24
|
+
frozenColumns
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
namedRanges {
|
|
28
|
+
name
|
|
29
|
+
startRowIndex
|
|
30
|
+
startColumnIndex
|
|
31
|
+
endRowIndex
|
|
32
|
+
endColumnIndex
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
createdAt
|
|
37
|
+
updatedAt
|
|
38
|
+
}`;
|
|
39
|
+
|
|
40
|
+
export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
41
|
+
id
|
|
42
|
+
organizationId
|
|
43
|
+
sheetId
|
|
44
|
+
|
|
45
|
+
rowIndex
|
|
46
|
+
columnIndex
|
|
47
|
+
rawInput
|
|
48
|
+
value
|
|
49
|
+
textValue
|
|
50
|
+
numberValue
|
|
51
|
+
booleanValue
|
|
52
|
+
dateValue
|
|
53
|
+
datetimeValue
|
|
54
|
+
formula {
|
|
55
|
+
version
|
|
56
|
+
kind
|
|
57
|
+
text
|
|
58
|
+
dataTableName
|
|
59
|
+
rowIdentifier
|
|
60
|
+
cellKey
|
|
61
|
+
}
|
|
62
|
+
style
|
|
63
|
+
format
|
|
64
|
+
note
|
|
65
|
+
sourceType
|
|
66
|
+
regionId
|
|
67
|
+
region {
|
|
68
|
+
regionId
|
|
69
|
+
sourceRowId
|
|
70
|
+
sourceCellKey
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
createdAt
|
|
74
|
+
updatedAt
|
|
75
|
+
}`;
|
|
76
|
+
|
|
77
|
+
export const sheetRangeFragment = `fragment sheetRangeFragment on SheetRange {
|
|
78
|
+
id
|
|
79
|
+
organizationId
|
|
80
|
+
sheetId
|
|
81
|
+
|
|
82
|
+
startRowIndex
|
|
83
|
+
startColumnIndex
|
|
84
|
+
endRowIndex
|
|
85
|
+
endColumnIndex
|
|
86
|
+
position
|
|
87
|
+
style
|
|
88
|
+
format
|
|
89
|
+
metadata
|
|
90
|
+
active
|
|
91
|
+
|
|
92
|
+
createdAt
|
|
93
|
+
updatedAt
|
|
94
|
+
}`;
|
|
95
|
+
|
|
96
|
+
export const sheetRegionFragment = `fragment sheetRegionFragment on SheetRegion {
|
|
97
|
+
id
|
|
98
|
+
organizationId
|
|
99
|
+
sheetId
|
|
100
|
+
|
|
101
|
+
type
|
|
102
|
+
startRowIndex
|
|
103
|
+
startColumnIndex
|
|
104
|
+
active
|
|
105
|
+
|
|
106
|
+
source {
|
|
107
|
+
type
|
|
108
|
+
dataTableId
|
|
109
|
+
viewId
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
columns {
|
|
113
|
+
sourceCellKey
|
|
114
|
+
label
|
|
115
|
+
width
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
options {
|
|
119
|
+
conflictPolicy
|
|
120
|
+
includeHeaderRow
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
createdAt
|
|
124
|
+
updatedAt
|
|
125
|
+
}`;
|
|
126
|
+
|
|
127
|
+
export const sheetGridFragment = `fragment sheetGridFragment on SheetGrid {
|
|
128
|
+
id
|
|
129
|
+
|
|
130
|
+
viewport {
|
|
131
|
+
startRowIndex
|
|
132
|
+
startColumnIndex
|
|
133
|
+
rowCount
|
|
134
|
+
columnCount
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
rows {
|
|
138
|
+
rowIndex
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
pageInfo {
|
|
142
|
+
hasMoreRows
|
|
143
|
+
lastContentRowIndex
|
|
144
|
+
}
|
|
145
|
+
}`;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
export const storageFileFragment = `fragment storageFileFragment on StorageFile {
|
|
3
2
|
id
|
|
4
3
|
uri
|
|
@@ -8,4 +7,7 @@ export const storageFileFragment = `fragment storageFileFragment on StorageFile
|
|
|
8
7
|
name
|
|
9
8
|
description
|
|
10
9
|
aiNote
|
|
10
|
+
|
|
11
|
+
# client-side required fields
|
|
12
|
+
uploadStatus
|
|
11
13
|
}`;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
export const workflowFragment = `fragment workflowFragment on Workflow {
|
|
3
|
+
id
|
|
4
|
+
organizationId
|
|
5
|
+
reportId
|
|
6
|
+
|
|
7
|
+
logType
|
|
8
|
+
feature
|
|
9
|
+
|
|
10
|
+
title
|
|
11
|
+
|
|
12
|
+
steps {
|
|
13
|
+
iconName
|
|
14
|
+
label
|
|
15
|
+
value
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
schedule
|
|
19
|
+
scheduleInterval
|
|
20
|
+
active
|
|
21
|
+
|
|
22
|
+
startedAt
|
|
23
|
+
nextAt
|
|
24
|
+
|
|
25
|
+
createdAt
|
|
26
|
+
updatedAt
|
|
27
|
+
}`;
|
|
28
|
+
|
|
29
|
+
export const workflowRunFragment = `fragment workflowRunFragment on WorkflowRun {
|
|
30
|
+
id
|
|
31
|
+
workflowId
|
|
32
|
+
logId
|
|
33
|
+
|
|
34
|
+
runKey
|
|
35
|
+
iterations
|
|
36
|
+
progressReport
|
|
37
|
+
message
|
|
38
|
+
status
|
|
39
|
+
|
|
40
|
+
scheduledDate
|
|
41
|
+
followUpAt
|
|
42
|
+
activityAt
|
|
43
|
+
}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import { accountFragment } from '../fragments/accountFragments';
|
|
2
|
+
import { accountFragment } from '../fragments/accountFragments.ts';
|
|
3
3
|
|
|
4
4
|
export const editAccountMtn = gql`
|
|
5
5
|
mutation editAccount (
|
|
@@ -28,4 +28,26 @@ mutation requestChangeEmail (
|
|
|
28
28
|
emailAddress: $emailAddress
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
|
-
`;
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
export const requestChangePhoneMtn = gql`
|
|
34
|
+
mutation requestChangePhone (
|
|
35
|
+
$phone: String!
|
|
36
|
+
) {
|
|
37
|
+
requestChangePhone (
|
|
38
|
+
phone: $phone
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
export const changePhoneMtn = gql`
|
|
44
|
+
mutation changePhone (
|
|
45
|
+
$code: String!
|
|
46
|
+
$phone: String!
|
|
47
|
+
) {
|
|
48
|
+
changePhone (
|
|
49
|
+
code: $code
|
|
50
|
+
phone: $phone
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import { aiChatFragment, aiChatMessageFragment } from '../fragments/aiChatFragments';
|
|
2
|
+
import { aiChatFragment, aiChatMessageFragment } from '../fragments/aiChatFragments.ts';
|
|
3
3
|
|
|
4
4
|
export const startAIChatMtn = gql`
|
|
5
5
|
mutation startAIChat (
|
|
@@ -21,6 +21,23 @@ mutation startAIChat (
|
|
|
21
21
|
${aiChatFragment}
|
|
22
22
|
`;
|
|
23
23
|
|
|
24
|
+
export const editAIChatMtn = gql`
|
|
25
|
+
mutation editAIChat (
|
|
26
|
+
$aiChatId: GenericID!
|
|
27
|
+
$archived: Boolean!
|
|
28
|
+
) {
|
|
29
|
+
editAIChat (
|
|
30
|
+
aiChatId: $aiChatId
|
|
31
|
+
archived: $archived
|
|
32
|
+
) {
|
|
33
|
+
cursor
|
|
34
|
+
...aiChatFragment
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
${aiChatFragment}
|
|
39
|
+
`;
|
|
40
|
+
|
|
24
41
|
export const sendAIChatMessageMtn = gql`
|
|
25
42
|
mutation sendAIChatMessage (
|
|
26
43
|
$aiChatId: GenericID!
|
|
@@ -53,3 +70,13 @@ mutation stopAIChatMessage (
|
|
|
53
70
|
)
|
|
54
71
|
}
|
|
55
72
|
`;
|
|
73
|
+
|
|
74
|
+
export const deleteAIChatMtn = gql`
|
|
75
|
+
mutation deleteAIChat (
|
|
76
|
+
$aiChatId: GenericID!
|
|
77
|
+
) {
|
|
78
|
+
deleteAIChat (
|
|
79
|
+
aiChatId: $aiChatId
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import { accountAuthFragment } from '../fragments/accountAuthFragments';
|
|
3
|
-
import { emailFragment, phoneFragment } from '../fragments/otherFragments';
|
|
4
|
-
import { accountFragment } from '../fragments/accountFragments';
|
|
2
|
+
import { accountAuthFragment } from '../fragments/accountAuthFragments.ts';
|
|
3
|
+
import { emailFragment, phoneFragment } from '../fragments/otherFragments.ts';
|
|
4
|
+
import { accountFragment } from '../fragments/accountFragments.ts';
|
|
5
5
|
|
|
6
6
|
const authenticateResultText = `...accountAuthFragment
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import { platformProductPurchaseResultFragment } from '../fragments/billingFragments';
|
|
2
|
+
import { platformProductPurchaseResultFragment } from '../fragments/billingFragments.ts';
|
|
3
3
|
|
|
4
4
|
export const purchasePlatformProductMtn = gql`
|
|
5
5
|
mutation purchasePlatformProduct (
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { dataTableCellFragment, dataTableFragment, dataTableRowFragment } from '../fragments/dataTableFragments.ts';
|
|
3
|
+
|
|
4
|
+
export const editDataTableCellMtn = gql`
|
|
5
|
+
mutation editDataTableCell (
|
|
6
|
+
$organizationId: GenericID!
|
|
7
|
+
$dataTableId: GenericID!
|
|
8
|
+
$dataTableRowId: GenericID!
|
|
9
|
+
$cellKey: String!
|
|
10
|
+
$viewId: String
|
|
11
|
+
$viewCellKey: String
|
|
12
|
+
$value: String
|
|
13
|
+
$reference: DataTableCellReferenceInput
|
|
14
|
+
) {
|
|
15
|
+
editDataTableCell (
|
|
16
|
+
organizationId: $organizationId
|
|
17
|
+
dataTableId: $dataTableId
|
|
18
|
+
dataTableRowId: $dataTableRowId
|
|
19
|
+
cellKey: $cellKey
|
|
20
|
+
viewId: $viewId
|
|
21
|
+
viewCellKey: $viewCellKey
|
|
22
|
+
value: $value
|
|
23
|
+
reference: $reference
|
|
24
|
+
) {
|
|
25
|
+
...dataTableCellFragment
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${dataTableCellFragment}
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
export const editDataTableCellsMtn = gql`
|
|
33
|
+
mutation editDataTableCells (
|
|
34
|
+
$organizationId: GenericID!
|
|
35
|
+
$dataTableId: GenericID!
|
|
36
|
+
$cells: [DataTableCellEditInput!]!
|
|
37
|
+
) {
|
|
38
|
+
editDataTableCells (
|
|
39
|
+
organizationId: $organizationId
|
|
40
|
+
dataTableId: $dataTableId
|
|
41
|
+
cells: $cells
|
|
42
|
+
) {
|
|
43
|
+
...dataTableCellFragment
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
${dataTableCellFragment}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export const deleteDataTableRowMtn = gql`
|
|
51
|
+
mutation deleteDataTableRow (
|
|
52
|
+
$organizationId: GenericID!
|
|
53
|
+
$dataTableId: GenericID!
|
|
54
|
+
$dataTableRowId: GenericID!
|
|
55
|
+
) {
|
|
56
|
+
deleteDataTableRow (
|
|
57
|
+
organizationId: $organizationId
|
|
58
|
+
dataTableId: $dataTableId
|
|
59
|
+
dataTableRowId: $dataTableRowId
|
|
60
|
+
) {
|
|
61
|
+
...dataTableRowFragment
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${dataTableRowFragment}
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
export const editDataTableDesignMtn = gql`
|
|
69
|
+
mutation editDataTableDesign (
|
|
70
|
+
$organizationId: GenericID!
|
|
71
|
+
$dataTableId: GenericID!
|
|
72
|
+
$design: DataTableDesignPatchInput!
|
|
73
|
+
) {
|
|
74
|
+
editDataTableDesign (
|
|
75
|
+
organizationId: $organizationId
|
|
76
|
+
dataTableId: $dataTableId
|
|
77
|
+
design: $design
|
|
78
|
+
) {
|
|
79
|
+
...dataTableFragment
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
${dataTableFragment}
|
|
84
|
+
`;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { inboundContactFragment } from '../fragments/inboundContactFragments.ts';
|
|
3
|
+
|
|
4
|
+
export const editInboundContactMtn = gql`
|
|
5
|
+
mutation editInboundContact (
|
|
6
|
+
$organizationId: GenericID!
|
|
7
|
+
$inboundContactId: GenericID!
|
|
8
|
+
$associatedOrganizationIds: [GenericID]
|
|
9
|
+
$personName: String
|
|
10
|
+
$memory: String
|
|
11
|
+
) {
|
|
12
|
+
editInboundContact (
|
|
13
|
+
organizationId: $organizationId
|
|
14
|
+
inboundContactId: $inboundContactId
|
|
15
|
+
associatedOrganizationIds: $associatedOrganizationIds
|
|
16
|
+
personName: $personName
|
|
17
|
+
memory: $memory
|
|
18
|
+
) {
|
|
19
|
+
...inboundContactFragment
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
${inboundContactFragment}
|
|
24
|
+
`;
|
package/gql/mutations/index.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export * from './accountMutations';
|
|
2
|
-
export * from './aiChatMutations';
|
|
3
|
-
export * from './authMutations';
|
|
4
|
-
export * from './billingMutations';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
1
|
+
export * from './accountMutations.ts';
|
|
2
|
+
export * from './aiChatMutations.ts';
|
|
3
|
+
export * from './authMutations.ts';
|
|
4
|
+
export * from './billingMutations.ts';
|
|
5
|
+
export * from './integrationMutations.ts';
|
|
6
|
+
export * from './inboundContactMutations.ts';
|
|
7
|
+
export * from './logMutations.ts';
|
|
8
|
+
export * from './organizationMutations.ts';
|
|
9
|
+
export * from './dataTableMutations.ts';
|
|
10
|
+
export * from './sheetMutations.ts';
|
|
11
|
+
export * from './storageMutations.ts';
|
|
12
|
+
export * from './userAuthMutations.ts';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
export const createIntegrationAuthorizationUrlMtn = gql`
|
|
4
|
+
mutation createIntegrationAuthorizationUrl (
|
|
5
|
+
$organizationId: GenericID!
|
|
6
|
+
$provider: IntegrationProvider!
|
|
7
|
+
) {
|
|
8
|
+
createIntegrationAuthorizationUrl (
|
|
9
|
+
organizationId: $organizationId
|
|
10
|
+
provider: $provider
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export const disconnectIntegrationMtn = gql`
|
|
16
|
+
mutation disconnectIntegration (
|
|
17
|
+
$organizationId: GenericID!
|
|
18
|
+
$provider: IntegrationProvider!
|
|
19
|
+
) {
|
|
20
|
+
disconnectIntegration (
|
|
21
|
+
organizationId: $organizationId
|
|
22
|
+
provider: $provider
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
logEntryFragment,
|
|
4
|
+
logArableFragment,
|
|
5
|
+
logFarmersMarketFragment,
|
|
6
|
+
logGrowerNetworkFragment,
|
|
7
|
+
logLivestockFragment
|
|
8
|
+
} from '../fragments/logFragments.ts';
|
|
3
9
|
|
|
4
10
|
export const editLogEntryMtn = gql`
|
|
5
11
|
mutation editLogEntry (
|
|
@@ -7,8 +13,10 @@ mutation editLogEntry (
|
|
|
7
13
|
$logEntryId: GenericID!
|
|
8
14
|
$accountId: GenericID
|
|
9
15
|
$date: DateTime
|
|
16
|
+
$flagColor: String
|
|
10
17
|
|
|
11
18
|
$arableDetails: LogArableInput
|
|
19
|
+
$growerNetworkDetails: GrowerNetworkInput
|
|
12
20
|
$livestockDetails: LogLivestockInput
|
|
13
21
|
$farmersMarketDetails: LogFarmersMarketInput
|
|
14
22
|
) {
|
|
@@ -17,8 +25,10 @@ mutation editLogEntry (
|
|
|
17
25
|
logEntryId: $logEntryId
|
|
18
26
|
accountId: $accountId
|
|
19
27
|
date: $date
|
|
28
|
+
flagColor: $flagColor
|
|
20
29
|
|
|
21
30
|
arableDetails: $arableDetails
|
|
31
|
+
growerNetworkDetails: $growerNetworkDetails
|
|
22
32
|
livestockDetails: $livestockDetails
|
|
23
33
|
farmersMarketDetails: $farmersMarketDetails
|
|
24
34
|
) {
|
|
@@ -31,6 +41,9 @@ mutation editLogEntry (
|
|
|
31
41
|
...on LogFarmersMarket {
|
|
32
42
|
...logFarmersMarketFragment
|
|
33
43
|
}
|
|
44
|
+
...on LogGrowerNetwork {
|
|
45
|
+
...logGrowerNetworkFragment
|
|
46
|
+
}
|
|
34
47
|
...on LogLivestock {
|
|
35
48
|
...logLivestockFragment
|
|
36
49
|
}
|
|
@@ -41,6 +54,7 @@ mutation editLogEntry (
|
|
|
41
54
|
${logEntryFragment}
|
|
42
55
|
${logArableFragment}
|
|
43
56
|
${logFarmersMarketFragment}
|
|
57
|
+
${logGrowerNetworkFragment}
|
|
44
58
|
${logLivestockFragment}
|
|
45
59
|
`;
|
|
46
60
|
|