@coast/coast-api-client 2.0.177 → 2.0.179
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/dist/lib/coast-api/AutomationGqlFields.d.ts +3 -0
- package/dist/lib/coast-api/AutomationGqlFields.js +112 -0
- package/dist/lib/coast-api/AutomationGqlFields.js.map +1 -0
- package/dist/lib/coast-api/CoastApiClient.d.ts +16 -0
- package/dist/lib/coast-api/CoastApiClient.js +24 -0
- package/dist/lib/coast-api/CoastApiClient.js.map +1 -1
- package/dist/lib/coast-api/CoastApiRequests.d.ts +28 -0
- package/dist/lib/coast-api/CoastApiRequests.js +96 -0
- package/dist/lib/coast-api/CoastApiRequests.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutomationGqlFields = void 0;
|
|
4
|
+
const conditionFields = `
|
|
5
|
+
id
|
|
6
|
+
leftOperand {
|
|
7
|
+
... on ComponentOperand { type componentId }
|
|
8
|
+
... on NumberOperand { type numberValue }
|
|
9
|
+
... on StringOperand { type stringValue }
|
|
10
|
+
... on WorkflowEntityRefComponentOperand { type componentId refComponentId refWorkflowTemplateId }
|
|
11
|
+
}
|
|
12
|
+
comparisonOperator
|
|
13
|
+
rightOperand {
|
|
14
|
+
... on ComponentOperand { type componentId }
|
|
15
|
+
... on NumberOperand { type numberValue }
|
|
16
|
+
... on StringOperand { type stringValue }
|
|
17
|
+
... on WorkflowEntityRefComponentOperand { type componentId refComponentId refWorkflowTemplateId }
|
|
18
|
+
}
|
|
19
|
+
logicalOperator
|
|
20
|
+
`;
|
|
21
|
+
const staticDataFields = `
|
|
22
|
+
... on NumberComponentData { type numberComponentDataValue }
|
|
23
|
+
... on TextComponentData { type textComponentDataValue }
|
|
24
|
+
`;
|
|
25
|
+
const dynamicDataFields = `
|
|
26
|
+
... on ActionResultNumber { type actionId }
|
|
27
|
+
... on CurrentWorkflowEntity { type }
|
|
28
|
+
... on CurrentWorkflowEntityComponent { type componentId }
|
|
29
|
+
... on TimeTrackerDataAction { type dataAction }
|
|
30
|
+
... on RelatedWorkflowEntityComponent { type relatedCardComponentId targetComponentId }
|
|
31
|
+
`;
|
|
32
|
+
const dataFields = `
|
|
33
|
+
componentId
|
|
34
|
+
staticData { ${staticDataFields} }
|
|
35
|
+
dynamicData { ${dynamicDataFields} }
|
|
36
|
+
`;
|
|
37
|
+
const calculateValueActionSettings = `
|
|
38
|
+
type
|
|
39
|
+
leftOperand {
|
|
40
|
+
... on ActionResultNumberOperand { type actionId }
|
|
41
|
+
... on ComponentOperand { type componentId }
|
|
42
|
+
... on NumberOperand { type numberValue }
|
|
43
|
+
... on WorkflowEntityRefComponentOperand { type componentId refComponentId refWorkflowTemplateId }
|
|
44
|
+
}
|
|
45
|
+
operator
|
|
46
|
+
rightOperand {
|
|
47
|
+
... on ActionResultNumberOperand { type actionId }
|
|
48
|
+
... on ComponentOperand { type componentId }
|
|
49
|
+
... on NumberOperand { type numberValue }
|
|
50
|
+
... on WorkflowEntityRefComponentOperand { type componentId refComponentId refWorkflowTemplateId }
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
const sendEmailActionSettings = `
|
|
54
|
+
message recipientEmails recipientsFromEmailComponentIds
|
|
55
|
+
recipientsFromRelatedCardEmail { relatedCardComponentId emailComponentId }
|
|
56
|
+
subject type workflowTemplateId replyToCardComponentId
|
|
57
|
+
`;
|
|
58
|
+
const sendNotificationActionSettings = 'message recipientEmails recipientsFromEmailComponentIds subject type workflowTemplateId';
|
|
59
|
+
const sendPushNotificationActionSettings = 'message recipientUserIds recipientsFromPersonComponentIds title type workflowTemplateId';
|
|
60
|
+
const sendWebhookActionSettings = 'destinationUrl secretKey type';
|
|
61
|
+
const triggerRelatedCardAutomationActionSettings = 'type automationId relatedCardComponentId workflowTemplateId';
|
|
62
|
+
const updateRelatedCardQuantityActionSettings = `
|
|
63
|
+
type relatedCardComponentId workflowTemplateId
|
|
64
|
+
staticData { ${staticDataFields} }
|
|
65
|
+
dynamicData { ... on ActionResultNumber { type actionId } }
|
|
66
|
+
`;
|
|
67
|
+
const workflowEntityCreateActionSettings = `type workflowTemplateId fields { ${dataFields} }`;
|
|
68
|
+
const workflowEntityUpdateActionSettings = `
|
|
69
|
+
type
|
|
70
|
+
currentWorkflowEntityComponent { componentId }
|
|
71
|
+
workflowTemplateId
|
|
72
|
+
fields { ${dataFields} }
|
|
73
|
+
`;
|
|
74
|
+
const currentWorkflowEntityUpdateActionSettings = `type workflowTemplateId fields { ${dataFields} }`;
|
|
75
|
+
const externalFormLinkCreateActionSettings = `type workflowTemplateId viewTemplateId fields { ${dataFields} }`;
|
|
76
|
+
const referencedInQuantitySumActionSettings = `type summationAggregates {
|
|
77
|
+
componentId workflowTemplateId inverted
|
|
78
|
+
filterByComponents {
|
|
79
|
+
componentId
|
|
80
|
+
value {
|
|
81
|
+
stringWildcard { value __typename }
|
|
82
|
+
containsNumber { values negate __typename }
|
|
83
|
+
containsString { values negate __typename }
|
|
84
|
+
dateRange { before after __typename }
|
|
85
|
+
dateIs { operator relativeDate { duration timeUnit __typename } __typename }
|
|
86
|
+
dateTokenIs { value __typename }
|
|
87
|
+
numberIs { operator value __typename }
|
|
88
|
+
isEmpty { value __typename }
|
|
89
|
+
containsCurrentUser { value __typename }
|
|
90
|
+
__typename
|
|
91
|
+
}
|
|
92
|
+
__typename
|
|
93
|
+
}
|
|
94
|
+
}`;
|
|
95
|
+
const actionFields = `
|
|
96
|
+
... on CalculateValueAction { id type name settings { ${calculateValueActionSettings} } conditions { ${conditionFields} } }
|
|
97
|
+
... on SendEmailAction { id type name settings { ${sendEmailActionSettings} } conditions { ${conditionFields} } }
|
|
98
|
+
... on SendNotificationAction { id type name settings { ${sendNotificationActionSettings} } conditions { ${conditionFields} } }
|
|
99
|
+
... on SendPushNotificationAction { id type name settings { ${sendPushNotificationActionSettings} } conditions { ${conditionFields} } }
|
|
100
|
+
... on SendWebhookAction { id type name settings { ${sendWebhookActionSettings} } conditions { ${conditionFields} } }
|
|
101
|
+
... on WorkflowEntityCreateAction { id type name settings { ${workflowEntityCreateActionSettings} } conditions { ${conditionFields} } }
|
|
102
|
+
... on WorkflowEntityUpdateAction { id type name settings { ${workflowEntityUpdateActionSettings} } conditions { ${conditionFields} } }
|
|
103
|
+
... on ReferencedInQuantitySumAction { id type name settings { ${referencedInQuantitySumActionSettings} } conditions { ${conditionFields} } }
|
|
104
|
+
... on CurrentWorkflowEntityUpdateAction { id type name settings { ${currentWorkflowEntityUpdateActionSettings} } conditions { ${conditionFields} } }
|
|
105
|
+
... on TriggerRelatedCardAutomationAction { id type name settings { ${triggerRelatedCardAutomationActionSettings} } conditions { ${conditionFields} } }
|
|
106
|
+
... on UpdateRelatedCardQuantityAction { id type name settings { ${updateRelatedCardQuantityActionSettings} } conditions { ${conditionFields} } }
|
|
107
|
+
... on ExternalFormLinkCreateAction { id type name settings { ${externalFormLinkCreateActionSettings} } conditions { ${conditionFields} } }
|
|
108
|
+
`;
|
|
109
|
+
exports.AutomationGqlFields = {
|
|
110
|
+
fields: `id name trigger enabled suppressAutomationChain createdAt updatedAt actions { ${actionFields} } conditions { ${conditionFields} }`,
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=AutomationGqlFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutomationGqlFields.js","sourceRoot":"","sources":["../../../lib/coast-api/AutomationGqlFields.ts"],"names":[],"mappings":";;;AAAA,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;CAgBvB,CAAC;AAEF,MAAM,gBAAgB,GAAG;;;CAGxB,CAAC;AAEF,MAAM,iBAAiB,GAAG;;;;;;CAMzB,CAAC;AAEF,MAAM,UAAU,GAAG;;mBAEA,gBAAgB;oBACf,iBAAiB;CACpC,CAAC;AAEF,MAAM,4BAA4B,GAAG;;;;;;;;;;;;;;;CAepC,CAAC;AAEF,MAAM,uBAAuB,GAAG;;;;CAI/B,CAAC;AAEF,MAAM,8BAA8B,GAAG,yFAAyF,CAAC;AAEjI,MAAM,kCAAkC,GACpC,yFAAyF,CAAC;AAE9F,MAAM,yBAAyB,GAAG,+BAA+B,CAAC;AAElE,MAAM,0CAA0C,GAAG,6DAA6D,CAAC;AAEjH,MAAM,uCAAuC,GAAG;;mBAE7B,gBAAgB;;CAElC,CAAC;AAEF,MAAM,kCAAkC,GAAG,oCAAoC,UAAU,IAAI,CAAC;AAE9F,MAAM,kCAAkC,GAAG;;;;eAI5B,UAAU;CACxB,CAAC;AAEF,MAAM,yCAAyC,GAAG,oCAAoC,UAAU,IAAI,CAAC;AAErG,MAAM,oCAAoC,GAAG,mDAAmD,UAAU,IAAI,CAAC;AAE/G,MAAM,qCAAqC,GAAG;;;;;;;;;;;;;;;;;;EAkB5C,CAAC;AAEH,MAAM,YAAY,GAAG;4DACuC,4BAA4B,mBAAmB,eAAe;uDACnE,uBAAuB,mBAAmB,eAAe;8DAClD,8BAA8B,mBAAmB,eAAe;kEAC5D,kCAAkC,mBAAmB,eAAe;yDAC7E,yBAAyB,mBAAmB,eAAe;kEAClD,kCAAkC,mBAAmB,eAAe;kEACpE,kCAAkC,mBAAmB,eAAe;qEACjE,qCAAqC,mBAAmB,eAAe;yEACnE,yCAAyC,mBAAmB,eAAe;0EAC1E,0CAA0C,mBAAmB,eAAe;uEAC/E,uCAAuC,mBAAmB,eAAe;oEAC5E,oCAAoC,mBAAmB,eAAe;CACzI,CAAC;AAEW,QAAA,mBAAmB,GAAG;IAC/B,MAAM,EAAE,iFAAiF,YAAY,mBAAmB,eAAe,IAAI;CAC9I,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { OAuthUserResponse } from '@coast/core-api-types/auth/OAuthUserResponse';
|
|
2
2
|
import { SamlUser } from '@coast/core-api-types/auth/SamlUser';
|
|
3
|
+
import { Automation } from '@coast/core-api-types/automations/Automation';
|
|
4
|
+
import { CreateAutomationGraphQL } from '@coast/core-api-types/automations/CreateAutomationGraphQL';
|
|
5
|
+
import { UpdateAutomationGraphQL } from '@coast/core-api-types/automations/UpdateAutomationGraphQL';
|
|
3
6
|
import { ListBusinesses } from '@coast/core-api-types/business/ListBusinesses';
|
|
4
7
|
import { ListBusinessesResult } from '@coast/core-api-types/business/ListBusinessesResult';
|
|
5
8
|
import { Card } from '@coast/core-api-types/card/Card';
|
|
6
9
|
import { UpdateCard } from '@coast/core-api-types/card/UpdateCard';
|
|
7
10
|
import { Channel } from '@coast/core-api-types/channel/Channel';
|
|
11
|
+
import { CreateChannel } from '@coast/core-api-types/channel/CreateChannel';
|
|
8
12
|
import { ListEntitiesFormData } from '@coast/core-api-types/export/ListEntitiesFormData';
|
|
9
13
|
import { ListEntitiesFormDataResult } from '@coast/core-api-types/export/ListEntitiesFormDataResult';
|
|
10
14
|
import { CreateSharedCardLink } from '@coast/core-api-types/shared-link/CreateSharedCardLink';
|
|
@@ -12,7 +16,13 @@ import { SharedCardLink } from '@coast/core-api-types/shared-link/SharedCardLink
|
|
|
12
16
|
import { CreateUserV2 } from '@coast/core-api-types/user/CreateUserV2';
|
|
13
17
|
import { UpdateUser } from '@coast/core-api-types/user/UpdateUser';
|
|
14
18
|
import { User } from '@coast/core-api-types/user/User';
|
|
19
|
+
import { CreateViewTemplate } from '@coast/core-api-types/view-template/CreateViewTemplate';
|
|
20
|
+
import { ListViewTemplates } from '@coast/core-api-types/view-template/ListViewTemplates';
|
|
21
|
+
import { ListViewTemplatesResult } from '@coast/core-api-types/view-template/ListViewTemplatesResult';
|
|
22
|
+
import { ViewTemplate } from '@coast/core-api-types/view-template/ViewTemplate';
|
|
15
23
|
import { CreateWorkflowAutomationEvent } from '@coast/core-api-types/workflow-automation/CreateWorkflowAutomationEvent';
|
|
24
|
+
import { CreateWorkflowTemplateAutomationAssociation } from '@coast/core-api-types/workflow-automation/CreateWorkflowTemplateAutomationAssociation';
|
|
25
|
+
import { WorkflowTemplateAutomationAssociation } from '@coast/core-api-types/workflow-automation/WorkflowTemplateAutomationAssociation';
|
|
16
26
|
import { AggregateNumberStats } from '@coast/core-api-types/workflow-entity/AggregateNumberStats';
|
|
17
27
|
import { AggregateRelatedCardQuantityInput } from '@coast/core-api-types/workflow-entity/AggregateRelatedCardQuantityInput';
|
|
18
28
|
import { CreateEntityAuditTrailEvent } from '@coast/core-api-types/workflow-entity/audit-trail/CreateEntityAuditTrailEvent';
|
|
@@ -47,6 +57,9 @@ export declare class CoastApiClient {
|
|
|
47
57
|
createEntityAuditTrailEvent(coastCallOptions: CoastCallOptions, createEntityAuditTrailEvent: CreateEntityAuditTrailEvent): Promise<EntityAuditTrailEvent>;
|
|
48
58
|
createSharedCardLink: (coastCallOptions: CoastCallOptions, createSharedCardLink: CreateSharedCardLink) => Promise<SharedCardLink>;
|
|
49
59
|
createUsers(coastCallOptions: CoastCallOptions, createUsers: CreateUserV2[]): Promise<User[] | undefined>;
|
|
60
|
+
createAutomation(coastCallOptions: CoastCallOptions, input: CreateAutomationGraphQL): Promise<Automation>;
|
|
61
|
+
updateAutomation(coastCallOptions: CoastCallOptions, input: UpdateAutomationGraphQL): Promise<Automation>;
|
|
62
|
+
createWorkflowTemplateAutomationAssociation(coastCallOptions: CoastCallOptions, input: CreateWorkflowTemplateAutomationAssociation): Promise<WorkflowTemplateAutomationAssociation>;
|
|
50
63
|
createWorkflowAutomationEvent(coastCallOptions: CoastCallOptions, createWorkflowAutomationEvent: CreateWorkflowAutomationEvent): Promise<boolean>;
|
|
51
64
|
createWorkflowEntities(coastCallOptions: CoastCallOptions, createWorkflowEntities: CreateWorkflowEntities): Promise<GetWorkflowEntitiesResult>;
|
|
52
65
|
createRecurringEntities(coastCallOptions: CoastCallOptions, createRecurringEntities: CreateRecurringEntities): Promise<CreateRecurringEntitiesResult>;
|
|
@@ -57,6 +70,9 @@ export declare class CoastApiClient {
|
|
|
57
70
|
getOAuthUser(coastCallOptions: CoastCallOptions, email: string): Promise<OAuthUserResponse>;
|
|
58
71
|
getSamlUser(coastCallOptions: CoastCallOptions, email: string, samlOrganizationId: string): Promise<SamlUser>;
|
|
59
72
|
getWorkflowEntity(coastCallOptions: CoastCallOptions, id: string): Promise<GetWorkflowEntityResult | null>;
|
|
73
|
+
createChannel(coastCallOptions: CoastCallOptions, input: CreateChannel): Promise<Channel>;
|
|
74
|
+
createViewTemplate(coastCallOptions: CoastCallOptions, input: CreateViewTemplate): Promise<ViewTemplate>;
|
|
75
|
+
listViewTemplates(coastCallOptions: CoastCallOptions, input: ListViewTemplates): Promise<ListViewTemplatesResult>;
|
|
60
76
|
createWorkflowTemplate(coastCallOptions: CoastCallOptions, input: CreateWorkflowTemplate): Promise<WorkflowTemplate>;
|
|
61
77
|
getWorkflowTemplate(coastCallOptions: CoastCallOptions, workflowTemplateId: string): Promise<WorkflowTemplate>;
|
|
62
78
|
call<T, Y>(coastCallOptions: CoastCallOptions, query: GqlRequestBody<T, Y>): Promise<GqlResponse<Y>['body']['data']>;
|
|
@@ -43,6 +43,18 @@ class CoastApiClient {
|
|
|
43
43
|
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.createUsers(createUsers));
|
|
44
44
|
return response.body.data.createUserV2;
|
|
45
45
|
}
|
|
46
|
+
async createAutomation(coastCallOptions, input) {
|
|
47
|
+
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.createAutomation(input));
|
|
48
|
+
return response.body.data.createAutomation;
|
|
49
|
+
}
|
|
50
|
+
async updateAutomation(coastCallOptions, input) {
|
|
51
|
+
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.updateAutomation(input));
|
|
52
|
+
return response.body.data.updateAutomation;
|
|
53
|
+
}
|
|
54
|
+
async createWorkflowTemplateAutomationAssociation(coastCallOptions, input) {
|
|
55
|
+
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.createWorkflowTemplateAutomationAssociation(input));
|
|
56
|
+
return response.body.data.createWorkflowTemplateAutomationAssociation;
|
|
57
|
+
}
|
|
46
58
|
async createWorkflowAutomationEvent(coastCallOptions, createWorkflowAutomationEvent) {
|
|
47
59
|
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.createWorkflowAutomationEvent(createWorkflowAutomationEvent));
|
|
48
60
|
return response.body.data.createWorkflowAutomationEvent;
|
|
@@ -88,6 +100,18 @@ class CoastApiClient {
|
|
|
88
100
|
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.getWorkflowEntity(id));
|
|
89
101
|
return response.body.data.getWorkflowEntity;
|
|
90
102
|
}
|
|
103
|
+
async createChannel(coastCallOptions, input) {
|
|
104
|
+
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.createChannel(input));
|
|
105
|
+
return response.body.data.createChannelsV2[0];
|
|
106
|
+
}
|
|
107
|
+
async createViewTemplate(coastCallOptions, input) {
|
|
108
|
+
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.createViewTemplate(input));
|
|
109
|
+
return response.body.data.createViewTemplate;
|
|
110
|
+
}
|
|
111
|
+
async listViewTemplates(coastCallOptions, input) {
|
|
112
|
+
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.listViewTemplates(input));
|
|
113
|
+
return response.body.data.listViewTemplatesV2;
|
|
114
|
+
}
|
|
91
115
|
async createWorkflowTemplate(coastCallOptions, input) {
|
|
92
116
|
const response = await this.execute(coastCallOptions, CoastApiRequests_1.CoastApiRequests.createWorkflowTemplate(input));
|
|
93
117
|
return response.body.data.createWorkflowTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoastApiClient.js","sourceRoot":"","sources":["../../../lib/coast-api/CoastApiClient.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"CoastApiClient.js","sourceRoot":"","sources":["../../../lib/coast-api/CoastApiClient.ts"],"names":[],"mappings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AED,IAAI,CAAC,gBAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAC/B,OAAO,CAAC,GAAG,CAAC,uBAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACtF,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;QAEnD,IAAI,CAAC,gBAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,sBAAsB,EAAE,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAE9G,MAAM,IAAI,yCAAmB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChF,CAAC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { GetOAuthUser } from '@coast/core-api-types/auth/GetOAuthUser';
|
|
2
2
|
import { OAuthUserResponse } from '@coast/core-api-types/auth/OAuthUserResponse';
|
|
3
3
|
import { SamlUser } from '@coast/core-api-types/auth/SamlUser';
|
|
4
|
+
import { Automation } from '@coast/core-api-types/automations/Automation';
|
|
5
|
+
import { CreateAutomationGraphQL } from '@coast/core-api-types/automations/CreateAutomationGraphQL';
|
|
6
|
+
import { UpdateAutomationGraphQL } from '@coast/core-api-types/automations/UpdateAutomationGraphQL';
|
|
4
7
|
import { ListBusinesses } from '@coast/core-api-types/business/ListBusinesses';
|
|
5
8
|
import { ListBusinessesResult } from '@coast/core-api-types/business/ListBusinessesResult';
|
|
6
9
|
import { Card } from '@coast/core-api-types/card/Card';
|
|
7
10
|
import { UpdateCard } from '@coast/core-api-types/card/UpdateCard';
|
|
8
11
|
import { Channel } from '@coast/core-api-types/channel/Channel';
|
|
12
|
+
import { CreateChannel } from '@coast/core-api-types/channel/CreateChannel';
|
|
9
13
|
import { ListEntitiesFormData } from '@coast/core-api-types/export/ListEntitiesFormData';
|
|
10
14
|
import { ListEntitiesFormDataResult } from '@coast/core-api-types/export/ListEntitiesFormDataResult';
|
|
11
15
|
import { CreateFileOperation } from '@coast/core-api-types/file-operations/CreateFileOperation';
|
|
@@ -17,7 +21,13 @@ import { SharedCardLink } from '@coast/core-api-types/shared-link/SharedCardLink
|
|
|
17
21
|
import { CreateUserV2 } from '@coast/core-api-types/user/CreateUserV2';
|
|
18
22
|
import { UpdateUser } from '@coast/core-api-types/user/UpdateUser';
|
|
19
23
|
import { User } from '@coast/core-api-types/user/User';
|
|
24
|
+
import { CreateViewTemplate } from '@coast/core-api-types/view-template/CreateViewTemplate';
|
|
25
|
+
import { ListViewTemplates } from '@coast/core-api-types/view-template/ListViewTemplates';
|
|
26
|
+
import { ListViewTemplatesResult } from '@coast/core-api-types/view-template/ListViewTemplatesResult';
|
|
27
|
+
import { ViewTemplate } from '@coast/core-api-types/view-template/ViewTemplate';
|
|
20
28
|
import { CreateWorkflowAutomationEvent } from '@coast/core-api-types/workflow-automation/CreateWorkflowAutomationEvent';
|
|
29
|
+
import { CreateWorkflowTemplateAutomationAssociation } from '@coast/core-api-types/workflow-automation/CreateWorkflowTemplateAutomationAssociation';
|
|
30
|
+
import { WorkflowTemplateAutomationAssociation } from '@coast/core-api-types/workflow-automation/WorkflowTemplateAutomationAssociation';
|
|
21
31
|
import { AggregateNumberStats } from '@coast/core-api-types/workflow-entity/AggregateNumberStats';
|
|
22
32
|
import { AggregateRelatedCardQuantityInput } from '@coast/core-api-types/workflow-entity/AggregateRelatedCardQuantityInput';
|
|
23
33
|
import { CreateEntityAuditTrailEvent } from '@coast/core-api-types/workflow-entity/audit-trail/CreateEntityAuditTrailEvent';
|
|
@@ -57,6 +67,15 @@ export declare class CoastApiRequests {
|
|
|
57
67
|
static createWorkflowAutomationEvent(createWorkflowAutomationEvent: CreateWorkflowAutomationEvent): GqlRequestBody<CreateWorkflowAutomationEvent, {
|
|
58
68
|
createWorkflowAutomationEvent: boolean;
|
|
59
69
|
}>;
|
|
70
|
+
static createAutomation(input: CreateAutomationGraphQL): GqlRequestBody<CreateAutomationGraphQL, {
|
|
71
|
+
createAutomation: Automation;
|
|
72
|
+
}>;
|
|
73
|
+
static updateAutomation(input: UpdateAutomationGraphQL): GqlRequestBody<UpdateAutomationGraphQL, {
|
|
74
|
+
updateAutomation: Automation;
|
|
75
|
+
}>;
|
|
76
|
+
static createWorkflowTemplateAutomationAssociation(input: CreateWorkflowTemplateAutomationAssociation): GqlRequestBody<CreateWorkflowTemplateAutomationAssociation, {
|
|
77
|
+
createWorkflowTemplateAutomationAssociation: WorkflowTemplateAutomationAssociation;
|
|
78
|
+
}>;
|
|
60
79
|
static createWorkflowEntities(createWorkflowEntities: CreateWorkflowEntities): GqlRequestBody<CreateWorkflowEntities, {
|
|
61
80
|
createWorkflowEntities: GetWorkflowEntitiesResult;
|
|
62
81
|
}>;
|
|
@@ -121,6 +140,15 @@ export declare class CoastApiRequests {
|
|
|
121
140
|
static updateWorkflowEntity(updateWorkflowEntity: UpdateWorkflowEntity): GqlRequestBody<UpdateWorkflowEntity, {
|
|
122
141
|
updateWorkflowEntity: GetWorkflowEntityResult;
|
|
123
142
|
}>;
|
|
143
|
+
static createChannel(input: CreateChannel): GqlRequestBody<CreateChannel[], {
|
|
144
|
+
createChannelsV2: Channel[];
|
|
145
|
+
}>;
|
|
146
|
+
static createViewTemplate(input: CreateViewTemplate): GqlRequestBody<CreateViewTemplate, {
|
|
147
|
+
createViewTemplate: ViewTemplate;
|
|
148
|
+
}>;
|
|
149
|
+
static listViewTemplates(input: ListViewTemplates): GqlRequestBody<ListViewTemplates, {
|
|
150
|
+
listViewTemplatesV2: ListViewTemplatesResult;
|
|
151
|
+
}>;
|
|
124
152
|
static createWorkflowTemplate(input: CreateWorkflowTemplate): GqlRequestBody<CreateWorkflowTemplate, {
|
|
125
153
|
createWorkflowTemplate: WorkflowTemplate;
|
|
126
154
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CoastApiRequests = void 0;
|
|
4
|
+
const AutomationGqlFields_1 = require("./AutomationGqlFields");
|
|
4
5
|
const WorkflowEntitiesGqlFields_1 = require("./WorkflowEntitiesGqlFields");
|
|
5
6
|
const WorkflowEntityGqlFields_1 = require("./WorkflowEntityGqlFields");
|
|
6
7
|
const WorkflowTemplateGqlFields_1 = require("./WorkflowTemplateGqlFields");
|
|
@@ -75,6 +76,42 @@ class CoastApiRequests {
|
|
|
75
76
|
variables: { input: createWorkflowAutomationEvent },
|
|
76
77
|
};
|
|
77
78
|
}
|
|
79
|
+
static createAutomation(input) {
|
|
80
|
+
return {
|
|
81
|
+
query: `
|
|
82
|
+
mutation ($input: CreateAutomation!) {
|
|
83
|
+
createAutomation(input: $input) {
|
|
84
|
+
${AutomationGqlFields_1.AutomationGqlFields.fields}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`,
|
|
88
|
+
variables: { input },
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
static updateAutomation(input) {
|
|
92
|
+
return {
|
|
93
|
+
query: `
|
|
94
|
+
mutation ($input: UpdateAutomation!) {
|
|
95
|
+
updateAutomation(input: $input) {
|
|
96
|
+
${AutomationGqlFields_1.AutomationGqlFields.fields}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`,
|
|
100
|
+
variables: { input },
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static createWorkflowTemplateAutomationAssociation(input) {
|
|
104
|
+
return {
|
|
105
|
+
query: `
|
|
106
|
+
mutation ($input: CreateWorkflowTemplateAutomationAssociation!) {
|
|
107
|
+
createWorkflowTemplateAutomationAssociation(input: $input) {
|
|
108
|
+
automationId workflowTemplateId
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`,
|
|
112
|
+
variables: { input },
|
|
113
|
+
};
|
|
114
|
+
}
|
|
78
115
|
static createWorkflowEntities(createWorkflowEntities) {
|
|
79
116
|
return {
|
|
80
117
|
query: `
|
|
@@ -413,6 +450,65 @@ class CoastApiRequests {
|
|
|
413
450
|
variables: { input: updateWorkflowEntity },
|
|
414
451
|
};
|
|
415
452
|
}
|
|
453
|
+
static createChannel(input) {
|
|
454
|
+
return {
|
|
455
|
+
query: `
|
|
456
|
+
mutation ($input: [CreateChannel!]!) {
|
|
457
|
+
createChannelsV2(input: $input) {
|
|
458
|
+
id
|
|
459
|
+
name
|
|
460
|
+
slug
|
|
461
|
+
type
|
|
462
|
+
workflowTemplateId
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
`,
|
|
466
|
+
variables: { input: [input] },
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
static createViewTemplate(input) {
|
|
470
|
+
return {
|
|
471
|
+
query: `
|
|
472
|
+
mutation ($input: CreateViewTemplate!) {
|
|
473
|
+
createViewTemplate(input: $input) {
|
|
474
|
+
id
|
|
475
|
+
name
|
|
476
|
+
type
|
|
477
|
+
subtype
|
|
478
|
+
workflowTemplateId
|
|
479
|
+
calendarDateComponentId
|
|
480
|
+
groupByComponentId
|
|
481
|
+
customSortingEnabled
|
|
482
|
+
defaultHiddenComponents
|
|
483
|
+
defaultHiddenLabels
|
|
484
|
+
defaultReadonlyComponents
|
|
485
|
+
displayMessageThread
|
|
486
|
+
summarizeReadonlyTags
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
`,
|
|
490
|
+
variables: { input },
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
static listViewTemplates(input) {
|
|
494
|
+
return {
|
|
495
|
+
query: `
|
|
496
|
+
query ($input: ListViewTemplates!) {
|
|
497
|
+
listViewTemplatesV2(input: $input) {
|
|
498
|
+
hasMore
|
|
499
|
+
viewTemplates {
|
|
500
|
+
id
|
|
501
|
+
name
|
|
502
|
+
type
|
|
503
|
+
subtype
|
|
504
|
+
workflowTemplateId
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
`,
|
|
509
|
+
variables: { input },
|
|
510
|
+
};
|
|
511
|
+
}
|
|
416
512
|
static createWorkflowTemplate(input) {
|
|
417
513
|
return {
|
|
418
514
|
query: `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoastApiRequests.js","sourceRoot":"","sources":["../../../lib/coast-api/CoastApiRequests.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CoastApiRequests.js","sourceRoot":"","sources":["../../../lib/coast-api/CoastApiRequests.ts"],"names":[],"mappings":";;;AAsDA,+DAA4D;AAC5D,2EAAwE;AACxE,uEAAoE;AACpE,2EAAwE;AAExE;IACW,MAAM,CAAC,iCAAiC,CAC3C,MAAyC;QAEzC,OAAO;YACH,KAAK,EAAE;;;;;;aAMN;YACD,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SAC/B,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,2BAA2B,CACrC,2BAAwD;QAExD,OAAO;YACH,KAAK,EAAE;;;;aAIN;YACD,SAAS,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE;SACpD,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,oBAAoB,CAC9B,oBAA0C;QAE1C,OAAO;YACH,KAAK,EAAE;;;;;;;;;;;;;;aAcN;YACD,SAAS,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE;SAC7C,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,WAA2B;QACjD,OAAO;YACH,KAAK,EAAE;;;;;;;;;;;;aAYN;YACD,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;SACpC,CAAC;IACN,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