@coast/service-common 1.0.7 → 1.0.8
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 +8 -6
- package/dist/lib/models/Constants.d.ts +0 -4
- package/dist/lib/models/Constants.js +0 -7
- package/dist/lib/models/coast-api/CoastApiModuleAsyncOptions.d.ts +0 -7
- package/dist/lib/models/coast-api/CoastApiModuleAsyncOptions.js +0 -2
- package/dist/lib/models/coast-api/CoastApiOptions.d.ts +0 -4
- package/dist/lib/models/coast-api/CoastApiOptions.js +0 -2
- package/dist/lib/models/coast-api/CoastApiRequests.d.ts +0 -70
- package/dist/lib/models/coast-api/CoastApiRequests.js +0 -254
- package/dist/lib/models/coast-api/WorkflowEntityGqlFields.d.ts +0 -3
- package/dist/lib/models/coast-api/WorkflowEntityGqlFields.js +0 -14
- package/dist/lib/models/coast-api/WorkflowTemplateGqlFields.d.ts +0 -3
- package/dist/lib/models/coast-api/WorkflowTemplateGqlFields.js +0 -129
- package/dist/lib/models/logger/LogLevel.d.ts +0 -8
- package/dist/lib/models/logger/LogLevel.js +0 -12
- package/dist/lib/models/logger/LoggerModuleAsyncOptions.d.ts +0 -7
- package/dist/lib/models/logger/LoggerModuleAsyncOptions.js +0 -2
- package/dist/lib/models/logger/LoggerOptions.d.ts +0 -5
- package/dist/lib/models/logger/LoggerOptions.js +0 -2
- package/dist/lib/modules/coast-api/CoastApiClient.d.ts +0 -46
- package/dist/lib/modules/coast-api/CoastApiClient.js +0 -124
- package/dist/lib/modules/coast-api/CoastApiClientGqlError.d.ts +0 -12
- package/dist/lib/modules/coast-api/CoastApiClientGqlError.js +0 -10
- package/dist/lib/modules/coast-api/CoastApiModule.d.ts +0 -6
- package/dist/lib/modules/coast-api/CoastApiModule.js +0 -42
- package/dist/lib/modules/logger/CoastLogger.d.ts +0 -8
- package/dist/lib/modules/logger/CoastLogger.js +0 -6
- package/dist/lib/modules/logger/LoggerModule.d.ts +0 -7
- package/dist/lib/modules/logger/LoggerModule.js +0 -56
- package/dist/lib/modules/logger/PinoLogger.d.ts +0 -13
- package/dist/lib/modules/logger/PinoLogger.js +0 -81
- package/dist/lib/modules/logger/SilentLogger.d.ts +0 -8
- package/dist/lib/modules/logger/SilentLogger.js +0 -22
- package/dist/lib/modules/trace/Trace.d.ts +0 -5
- package/dist/lib/modules/trace/Trace.js +0 -2
- package/dist/lib/modules/trace/TraceId.d.ts +0 -3
- package/dist/lib/modules/trace/TraceId.js +0 -6
- package/dist/lib/modules/trace/TraceInterceptor.d.ts +0 -8
- package/dist/lib/modules/trace/TraceInterceptor.js +0 -30
- package/dist/lib/modules/trace/TraceManager.d.ts +0 -9
- package/dist/lib/modules/trace/TraceManager.js +0 -40
- package/dist/lib/modules/trace/TraceModule.d.ts +0 -2
- package/dist/lib/modules/trace/TraceModule.js +0 -22
- package/dist/lib/modules/trace/Traceable.d.ts +0 -4
- package/dist/lib/modules/trace/Traceable.js +0 -2
- package/dist/lib/modules/utils/graphql/GqlRequestBody.d.ts +0 -8
- package/dist/lib/modules/utils/graphql/GqlRequestBody.js +0 -2
- package/dist/lib/modules/utils/graphql/GqlResponse.d.ts +0 -14
- package/dist/lib/modules/utils/graphql/GqlResponse.js +0 -2
- package/dist/lib/modules/utils/streams/Generators.d.ts +0 -5
- package/dist/lib/modules/utils/streams/Generators.js +0 -34
- package/dist/lib/modules/utils/streams/test/GeneratorsTest.d.ts +0 -1
- package/dist/lib/modules/utils/streams/test/GeneratorsTest.js +0 -49
- package/dist/test/ModuleTest.d.ts +0 -1
- package/dist/test/ModuleTest.js +0 -14
- package/dist/test/TestApp.d.ts +0 -2
- package/dist/test/TestApp.js +0 -14
- package/dist/test/TestModule.d.ts +0 -2
- package/dist/test/TestModule.js +0 -41
package/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coast/service-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Common service package",
|
|
5
|
-
"main": "./modules",
|
|
6
|
-
"types": "./modules",
|
|
7
5
|
"engines": {
|
|
8
6
|
"node": ">=20.0.0"
|
|
9
7
|
},
|
|
10
8
|
"exports": {
|
|
11
|
-
"./*":
|
|
9
|
+
"./*": {
|
|
10
|
+
"types": "./dist/lib/*.d.ts",
|
|
11
|
+
"import": "./dist/lib/*"
|
|
12
|
+
}
|
|
12
13
|
},
|
|
13
14
|
"typesVersions": {
|
|
14
15
|
"*": {
|
|
15
16
|
"*": [
|
|
16
|
-
"./dist/
|
|
17
|
+
"./dist/lib/*"
|
|
17
18
|
]
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
|
-
"dist",
|
|
22
|
+
"dist/lib",
|
|
23
|
+
"!*Test.*",
|
|
22
24
|
"README.md",
|
|
23
25
|
"LICENSE"
|
|
24
26
|
],
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, ModuleMetadata, OptionalFactoryDependency } from '@nestjs/common';
|
|
2
|
-
import { CoastApiOptions } from './CoastApiOptions';
|
|
3
|
-
export interface CoastApiModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
4
|
-
name?: string;
|
|
5
|
-
useFactory: (...args: any[]) => CoastApiOptions | Promise<CoastApiOptions>;
|
|
6
|
-
inject?: Array<InjectionToken | OptionalFactoryDependency>;
|
|
7
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { SamlUser } from '@coast/core-api-types/auth/SamlUser';
|
|
2
|
-
import { Card } from '@coast/core-api-types/card/Card';
|
|
3
|
-
import { UpdateCard } from '@coast/core-api-types/card/UpdateCard';
|
|
4
|
-
import { Channel } from '@coast/core-api-types/channel/Channel';
|
|
5
|
-
import { ListEntitiesFormData } from '@coast/core-api-types/export/ListEntitiesFormData';
|
|
6
|
-
import { ListEntitiesFormDataResult } from '@coast/core-api-types/export/ListEntitiesFormDataResult';
|
|
7
|
-
import { CreateUserV2 } from '@coast/core-api-types/user/CreateUserV2';
|
|
8
|
-
import { UpdateUser } from '@coast/core-api-types/user/UpdateUser';
|
|
9
|
-
import { User } from '@coast/core-api-types/user/User';
|
|
10
|
-
import { CreateWorkflowAutomationEvent } from '@coast/core-api-types/workflow-automation/CreateWorkflowAutomationEvent';
|
|
11
|
-
import { AggregateNumberStats } from '@coast/core-api-types/workflow-template/entities/AggregateNumberStats';
|
|
12
|
-
import { AggregateRelatedCardQuantity } from '@coast/core-api-types/workflow-template/entities/AggregateRelatedCardQuantity';
|
|
13
|
-
import { CreateEntityAuditTrailEvent } from '@coast/core-api-types/workflow-template/entities/audit-trail/CreateEntityAuditTrailEvent';
|
|
14
|
-
import { EntityAuditTrailEvent } from '@coast/core-api-types/workflow-template/entities/audit-trail/EntityAuditTrailEvent';
|
|
15
|
-
import { CreateWorkflowEntity } from '@coast/core-api-types/workflow-template/entities/CreateWorkflowEntity';
|
|
16
|
-
import { GetWorkflowEntityResult } from '@coast/core-api-types/workflow-template/entities/GetWorkflowEntityResult';
|
|
17
|
-
import { UpdateWorkflowEntity } from '@coast/core-api-types/workflow-template/entities/UpdateWorkflowEntity';
|
|
18
|
-
import { UpdateWorkflowTemplate } from '@coast/core-api-types/workflow-template/UpdateWorkflowTemplate';
|
|
19
|
-
import { WorkflowTemplate } from '@coast/core-api-types/workflow-template/WorkflowTemplate';
|
|
20
|
-
import { GqlRequestBody } from '../../modules/utils/graphql/GqlRequestBody';
|
|
21
|
-
export declare class CoastApiRequests {
|
|
22
|
-
static aggregateRelatedCardQuantityStats(filter: AggregateRelatedCardQuantity): GqlRequestBody<AggregateRelatedCardQuantity, {
|
|
23
|
-
aggregateRelatedCardQuantityStats: AggregateNumberStats;
|
|
24
|
-
}>;
|
|
25
|
-
static createEntityAuditTrailEvent(createEntityAuditTrailEvent: CreateEntityAuditTrailEvent): GqlRequestBody<CreateEntityAuditTrailEvent, {
|
|
26
|
-
createEntityAuditTrailEvent: EntityAuditTrailEvent;
|
|
27
|
-
}>;
|
|
28
|
-
static createUsers(createUsers: CreateUserV2[]): GqlRequestBody<CreateUserV2[], {
|
|
29
|
-
createUserV2: User[];
|
|
30
|
-
}>;
|
|
31
|
-
static createWorkflowAutomationEvent(createWorkflowAutomationEvent: CreateWorkflowAutomationEvent): GqlRequestBody<CreateWorkflowAutomationEvent, {
|
|
32
|
-
createWorkflowAutomationEvent: boolean;
|
|
33
|
-
}>;
|
|
34
|
-
static createWorkflowEntity(createWorkflowEntity: CreateWorkflowEntity): GqlRequestBody<CreateWorkflowEntity, {
|
|
35
|
-
createWorkflowEntity: GetWorkflowEntityResult;
|
|
36
|
-
}>;
|
|
37
|
-
static getCard(cardId: string): GqlRequestBody<string, {
|
|
38
|
-
getCard: Card;
|
|
39
|
-
}>;
|
|
40
|
-
static getChannel(channelId: number): GqlRequestBody<number, {
|
|
41
|
-
getChannel: Channel;
|
|
42
|
-
}>;
|
|
43
|
-
static getSamlUser(email: string, samlOrganizationId: string): GqlRequestBody<{
|
|
44
|
-
email: string;
|
|
45
|
-
samlOrganizationId: string;
|
|
46
|
-
}, {
|
|
47
|
-
getSamlUser: SamlUser;
|
|
48
|
-
}>;
|
|
49
|
-
static getWorkflowEntity(workflowEntityId: string): GqlRequestBody<string, {
|
|
50
|
-
getWorkflowEntity: GetWorkflowEntityResult;
|
|
51
|
-
}>;
|
|
52
|
-
static getWorkflowTemplate(workflowTemplateId: string): GqlRequestBody<string, {
|
|
53
|
-
getWorkflowTemplate: WorkflowTemplate;
|
|
54
|
-
}>;
|
|
55
|
-
static listWorkflowEntitiesFormData(filter: ListEntitiesFormData): GqlRequestBody<ListEntitiesFormData, {
|
|
56
|
-
listEntitiesFormData: ListEntitiesFormDataResult;
|
|
57
|
-
}>;
|
|
58
|
-
static updateCard(card: UpdateCard): GqlRequestBody<UpdateCard, {
|
|
59
|
-
updateCard: Card;
|
|
60
|
-
}>;
|
|
61
|
-
static updateUser(updateUser: UpdateUser): GqlRequestBody<UpdateUser, {
|
|
62
|
-
updateUserV2: User;
|
|
63
|
-
}>;
|
|
64
|
-
static updateWorkflowEntity(updateWorkflowEntity: UpdateWorkflowEntity): GqlRequestBody<UpdateWorkflowEntity, {
|
|
65
|
-
updateWorkflowEntity: GetWorkflowEntityResult;
|
|
66
|
-
}>;
|
|
67
|
-
static updateWorkflowTemplate(updateWorkflowTemplate: UpdateWorkflowTemplate): GqlRequestBody<UpdateWorkflowTemplate, {
|
|
68
|
-
updateWorkflowTemplate: WorkflowTemplate;
|
|
69
|
-
}>;
|
|
70
|
-
}
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CoastApiRequests = void 0;
|
|
4
|
-
const WorkflowEntityGqlFields_1 = require("./WorkflowEntityGqlFields");
|
|
5
|
-
const WorkflowTemplateGqlFields_1 = require("./WorkflowTemplateGqlFields");
|
|
6
|
-
class CoastApiRequests {
|
|
7
|
-
static aggregateRelatedCardQuantityStats(filter) {
|
|
8
|
-
return {
|
|
9
|
-
query: `
|
|
10
|
-
query ($input: AggregateRelatedCardQuantity!) {
|
|
11
|
-
aggregateRelatedCardQuantityStats(input: $input)
|
|
12
|
-
}
|
|
13
|
-
`,
|
|
14
|
-
variables: { input: filter },
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
static createEntityAuditTrailEvent(createEntityAuditTrailEvent) {
|
|
18
|
-
return {
|
|
19
|
-
query: `
|
|
20
|
-
mutation ($input: CreateEntityAuditTrailEvent!) {
|
|
21
|
-
createEntityAuditTrailEvent(input: $input) { id }
|
|
22
|
-
}
|
|
23
|
-
`,
|
|
24
|
-
variables: { input: createEntityAuditTrailEvent },
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
static createUsers(createUsers) {
|
|
28
|
-
return {
|
|
29
|
-
query: `
|
|
30
|
-
mutation ($input: [CreateUserV2!]!) {
|
|
31
|
-
createUsersV2(input: $input) {
|
|
32
|
-
id
|
|
33
|
-
firstName
|
|
34
|
-
lastName
|
|
35
|
-
email
|
|
36
|
-
phoneNumber
|
|
37
|
-
role
|
|
38
|
-
createdAt
|
|
39
|
-
updatedAt
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`,
|
|
43
|
-
variables: { input: createUsers },
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
static createWorkflowAutomationEvent(createWorkflowAutomationEvent) {
|
|
47
|
-
return {
|
|
48
|
-
query: `
|
|
49
|
-
mutation ($input: CreateWorkflowAutomationEvent!) {
|
|
50
|
-
createWorkflowAutomationEvent(input: $input)
|
|
51
|
-
}
|
|
52
|
-
`,
|
|
53
|
-
variables: { input: createWorkflowAutomationEvent },
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
static createWorkflowEntity(createWorkflowEntity) {
|
|
57
|
-
return {
|
|
58
|
-
query: `
|
|
59
|
-
mutation ($input: CreateWorkflowEntity!) {
|
|
60
|
-
createWorkflowEntity(input: $input) {
|
|
61
|
-
entity {
|
|
62
|
-
id
|
|
63
|
-
workflowTemplateId
|
|
64
|
-
fields
|
|
65
|
-
}
|
|
66
|
-
refs {
|
|
67
|
-
workflowEntityRefs {
|
|
68
|
-
id
|
|
69
|
-
}
|
|
70
|
-
personRefs {
|
|
71
|
-
id
|
|
72
|
-
}
|
|
73
|
-
workflowTemplateRefs {
|
|
74
|
-
id
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`,
|
|
80
|
-
variables: { input: createWorkflowEntity },
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
static getCard(cardId) {
|
|
84
|
-
return {
|
|
85
|
-
query: `
|
|
86
|
-
query ($id: UUID!) {
|
|
87
|
-
getCard(id: $id) {
|
|
88
|
-
id
|
|
89
|
-
fields
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
`,
|
|
93
|
-
variables: { id: cardId },
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
static getChannel(channelId) {
|
|
97
|
-
return {
|
|
98
|
-
query: `
|
|
99
|
-
query ($id: Int!) {
|
|
100
|
-
getChannel(id: $id) {
|
|
101
|
-
id
|
|
102
|
-
name
|
|
103
|
-
slug
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
`,
|
|
107
|
-
variables: { id: channelId },
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
static getSamlUser(email, samlOrganizationId) {
|
|
111
|
-
return {
|
|
112
|
-
query: `
|
|
113
|
-
query ($input: GetSamlUser!) {
|
|
114
|
-
getSamlUser(input: $input) {
|
|
115
|
-
id
|
|
116
|
-
email
|
|
117
|
-
businessId
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
`,
|
|
121
|
-
variables: { input: { email, samlOrganizationId } },
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
static getWorkflowEntity(workflowEntityId) {
|
|
125
|
-
return {
|
|
126
|
-
query: `
|
|
127
|
-
query ($id: UUID!) {
|
|
128
|
-
getWorkflowEntity(id: $id) {
|
|
129
|
-
${WorkflowEntityGqlFields_1.WorkflowEntityGqlFields.fields}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
`,
|
|
133
|
-
variables: { id: workflowEntityId },
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
static getWorkflowTemplate(workflowTemplateId) {
|
|
137
|
-
return {
|
|
138
|
-
query: `
|
|
139
|
-
query ($id: UUID!) {
|
|
140
|
-
getWorkflowTemplate(id: $id) {
|
|
141
|
-
components {
|
|
142
|
-
${WorkflowTemplateGqlFields_1.WorkflowTemplateGqlFields.componentFields}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
`,
|
|
147
|
-
variables: { id: workflowTemplateId },
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
static listWorkflowEntitiesFormData(filter) {
|
|
151
|
-
return {
|
|
152
|
-
query: `
|
|
153
|
-
query ($input: ListEntitiesFormData!) {
|
|
154
|
-
listEntitiesFormData(input: $input) {
|
|
155
|
-
hasMore
|
|
156
|
-
totalResults
|
|
157
|
-
exports {
|
|
158
|
-
type
|
|
159
|
-
title
|
|
160
|
-
targetFormat
|
|
161
|
-
data {
|
|
162
|
-
... on ComponentDataExport {
|
|
163
|
-
label
|
|
164
|
-
value
|
|
165
|
-
imageUrls
|
|
166
|
-
type
|
|
167
|
-
}
|
|
168
|
-
... on SubformDataExport {
|
|
169
|
-
type
|
|
170
|
-
title
|
|
171
|
-
businessName
|
|
172
|
-
data {
|
|
173
|
-
... on ComponentDataExport {
|
|
174
|
-
label
|
|
175
|
-
value
|
|
176
|
-
imageUrls
|
|
177
|
-
type
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
businessName
|
|
183
|
-
url
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
`,
|
|
188
|
-
variables: { input: filter },
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
static updateCard(card) {
|
|
192
|
-
return {
|
|
193
|
-
query: `
|
|
194
|
-
mutation ($input: UpdateCard!) {
|
|
195
|
-
updateCard(input: $input) {
|
|
196
|
-
id
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
`,
|
|
200
|
-
variables: { input: card },
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
static updateUser(updateUser) {
|
|
204
|
-
return {
|
|
205
|
-
query: `
|
|
206
|
-
mutation ($input: UpdateUser!) {
|
|
207
|
-
updateUserV2(input: $input) {
|
|
208
|
-
id
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
`,
|
|
212
|
-
variables: { input: updateUser },
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
static updateWorkflowEntity(updateWorkflowEntity) {
|
|
216
|
-
return {
|
|
217
|
-
query: `
|
|
218
|
-
mutation ($input: UpdateWorkflowEntity!) {
|
|
219
|
-
updateWorkflowEntity(input: $input) {
|
|
220
|
-
entity {
|
|
221
|
-
id
|
|
222
|
-
fields
|
|
223
|
-
}
|
|
224
|
-
refs {
|
|
225
|
-
workflowEntityRefs {
|
|
226
|
-
id
|
|
227
|
-
}
|
|
228
|
-
personRefs {
|
|
229
|
-
id
|
|
230
|
-
}
|
|
231
|
-
workflowTemplateRefs {
|
|
232
|
-
id
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
`,
|
|
238
|
-
variables: { input: updateWorkflowEntity },
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
static updateWorkflowTemplate(updateWorkflowTemplate) {
|
|
242
|
-
return {
|
|
243
|
-
query: `
|
|
244
|
-
mutation ($input: UpdateWorkflowTemplate!) {
|
|
245
|
-
updateWorkflowTemplate(input: $input) {
|
|
246
|
-
id
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
`,
|
|
250
|
-
variables: { input: updateWorkflowTemplate },
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
exports.CoastApiRequests = CoastApiRequests;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowEntityGqlFields = void 0;
|
|
4
|
-
const WorkflowTemplateGqlFields_1 = require("./WorkflowTemplateGqlFields");
|
|
5
|
-
exports.WorkflowEntityGqlFields = {
|
|
6
|
-
fields: `
|
|
7
|
-
entity { id workflowTemplateId fields }
|
|
8
|
-
refs {
|
|
9
|
-
workflowEntityRefs { id workflowTemplateId fields }
|
|
10
|
-
personRefs { id }
|
|
11
|
-
workflowTemplateRefs { id components { ${WorkflowTemplateGqlFields_1.WorkflowTemplateGqlFields.componentFields} } }
|
|
12
|
-
}
|
|
13
|
-
`,
|
|
14
|
-
};
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowTemplateGqlFields = void 0;
|
|
4
|
-
const inputComponentFields = [
|
|
5
|
-
'id',
|
|
6
|
-
'type',
|
|
7
|
-
'label',
|
|
8
|
-
'placeholder',
|
|
9
|
-
'readonly',
|
|
10
|
-
'required',
|
|
11
|
-
'isFilterable',
|
|
12
|
-
'isSortable',
|
|
13
|
-
'isServerManaged',
|
|
14
|
-
];
|
|
15
|
-
exports.WorkflowTemplateGqlFields = {
|
|
16
|
-
componentFields: `
|
|
17
|
-
... on AddressComponent {
|
|
18
|
-
${inputComponentFields.join(' ')}
|
|
19
|
-
}
|
|
20
|
-
... on AuditCheckboxComponent {
|
|
21
|
-
${inputComponentFields.join(' ')}
|
|
22
|
-
}
|
|
23
|
-
... on AuditTagComponent {
|
|
24
|
-
${inputComponentFields.join(' ')}
|
|
25
|
-
multiselect
|
|
26
|
-
options { label value archived }
|
|
27
|
-
}
|
|
28
|
-
... on AuditTextComponent {
|
|
29
|
-
${inputComponentFields.join(' ')}
|
|
30
|
-
maxlength
|
|
31
|
-
multiline
|
|
32
|
-
}
|
|
33
|
-
... on CombinedTagsComponent {
|
|
34
|
-
id
|
|
35
|
-
type
|
|
36
|
-
label
|
|
37
|
-
icon
|
|
38
|
-
locked
|
|
39
|
-
isServerManaged
|
|
40
|
-
componentIds
|
|
41
|
-
}
|
|
42
|
-
... on DateComponent {
|
|
43
|
-
${inputComponentFields.join(' ')}
|
|
44
|
-
}
|
|
45
|
-
... on EmailComponent {
|
|
46
|
-
${inputComponentFields.join(' ')}
|
|
47
|
-
default { value }
|
|
48
|
-
}
|
|
49
|
-
... on FileComponent {
|
|
50
|
-
${inputComponentFields.join(' ')}
|
|
51
|
-
acceptedContentTypes
|
|
52
|
-
}
|
|
53
|
-
... on GeolocationComponent {
|
|
54
|
-
${inputComponentFields.join(' ')}
|
|
55
|
-
}
|
|
56
|
-
... on InputButtonComponent {
|
|
57
|
-
id
|
|
58
|
-
type
|
|
59
|
-
locked
|
|
60
|
-
isServerManaged
|
|
61
|
-
buttonText
|
|
62
|
-
inputComponentId
|
|
63
|
-
}
|
|
64
|
-
... on NumberComponent {
|
|
65
|
-
${inputComponentFields.join(' ')}
|
|
66
|
-
format
|
|
67
|
-
}
|
|
68
|
-
... on PersonComponent {
|
|
69
|
-
${inputComponentFields.join(' ')}
|
|
70
|
-
default { token userIds }
|
|
71
|
-
}
|
|
72
|
-
... on RelatedCardComponent {
|
|
73
|
-
${inputComponentFields.join(' ')}
|
|
74
|
-
workflowTemplateId
|
|
75
|
-
default { cardIds }
|
|
76
|
-
listDefault {
|
|
77
|
-
sortByComponents { componentId direction }
|
|
78
|
-
filterByComponents {
|
|
79
|
-
componentId
|
|
80
|
-
value {
|
|
81
|
-
containsCurrentUser { value }
|
|
82
|
-
containsNumber { values }
|
|
83
|
-
containsString { values }
|
|
84
|
-
dateRange { before after }
|
|
85
|
-
dateTokenIs { value }
|
|
86
|
-
isEmpty { value }
|
|
87
|
-
numberIs { value }
|
|
88
|
-
stringWildcard { value }
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
omniSearchQuery
|
|
92
|
-
limit
|
|
93
|
-
offset
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
... on RelatedCardLookupComponent {
|
|
97
|
-
${inputComponentFields.join(' ')}
|
|
98
|
-
relatedCardComponentId
|
|
99
|
-
lookupWorkflowTemplateId
|
|
100
|
-
lookupComponentId
|
|
101
|
-
}
|
|
102
|
-
... on SignatureComponent {
|
|
103
|
-
${inputComponentFields.join(' ')}
|
|
104
|
-
}
|
|
105
|
-
... on StaticTextComponent {
|
|
106
|
-
id type text
|
|
107
|
-
}
|
|
108
|
-
... on SubformComponent {
|
|
109
|
-
${inputComponentFields.join(' ')}
|
|
110
|
-
workflowTemplateIds
|
|
111
|
-
default { workflowTemplateId }
|
|
112
|
-
}
|
|
113
|
-
... on TagComponent {
|
|
114
|
-
${inputComponentFields.join(' ')}
|
|
115
|
-
multiselect
|
|
116
|
-
options { label value archived }
|
|
117
|
-
default { value }
|
|
118
|
-
}
|
|
119
|
-
... on TextComponent {
|
|
120
|
-
${inputComponentFields.join(' ')}
|
|
121
|
-
maxlength
|
|
122
|
-
multiline
|
|
123
|
-
default { text }
|
|
124
|
-
}
|
|
125
|
-
... on TodoComponent {
|
|
126
|
-
${inputComponentFields.join(' ')}
|
|
127
|
-
}
|
|
128
|
-
`,
|
|
129
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogLevel = void 0;
|
|
4
|
-
var LogLevel;
|
|
5
|
-
(function (LogLevel) {
|
|
6
|
-
LogLevel["DEBUG"] = "debug";
|
|
7
|
-
LogLevel["ERROR"] = "error";
|
|
8
|
-
LogLevel["FATAL"] = "fatal";
|
|
9
|
-
LogLevel["INFO"] = "info";
|
|
10
|
-
LogLevel["SILENT"] = "silent";
|
|
11
|
-
LogLevel["WARN"] = "warn";
|
|
12
|
-
})(LogLevel || (exports.LogLevel = LogLevel = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, ModuleMetadata, OptionalFactoryDependency } from '@nestjs/common';
|
|
2
|
-
import { LoggerOptions } from './LoggerOptions';
|
|
3
|
-
export interface LoggerModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
4
|
-
name?: string;
|
|
5
|
-
useFactory: (...args: any[]) => LoggerOptions | Promise<LoggerOptions>;
|
|
6
|
-
inject?: Array<InjectionToken | OptionalFactoryDependency>;
|
|
7
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { SamlUser } from '@coast/core-api-types/auth/SamlUser';
|
|
2
|
-
import { AutomationId } from '@coast/core-api-types/automations/AutomationId';
|
|
3
|
-
import { BusinessId } from '@coast/core-api-types/business/BusinessId';
|
|
4
|
-
import { Card } from '@coast/core-api-types/card/Card';
|
|
5
|
-
import { UpdateCard } from '@coast/core-api-types/card/UpdateCard';
|
|
6
|
-
import { Channel } from '@coast/core-api-types/channel/Channel';
|
|
7
|
-
import { ListEntitiesFormData } from '@coast/core-api-types/export/ListEntitiesFormData';
|
|
8
|
-
import { ListEntitiesFormDataResult } from '@coast/core-api-types/export/ListEntitiesFormDataResult';
|
|
9
|
-
import { FileDetails } from '@coast/core-api-types/file-upload/FileDetails';
|
|
10
|
-
import { CreateUserV2 } from '@coast/core-api-types/user/CreateUserV2';
|
|
11
|
-
import { UpdateUser } from '@coast/core-api-types/user/UpdateUser';
|
|
12
|
-
import { User } from '@coast/core-api-types/user/User';
|
|
13
|
-
import { CreateWorkflowAutomationEvent } from '@coast/core-api-types/workflow-automation/CreateWorkflowAutomationEvent';
|
|
14
|
-
import { AggregateNumberStats } from '@coast/core-api-types/workflow-template/entities/AggregateNumberStats';
|
|
15
|
-
import { AggregateRelatedCardQuantity } from '@coast/core-api-types/workflow-template/entities/AggregateRelatedCardQuantity';
|
|
16
|
-
import { CreateEntityAuditTrailEvent } from '@coast/core-api-types/workflow-template/entities/audit-trail/CreateEntityAuditTrailEvent';
|
|
17
|
-
import { EntityAuditTrailEvent } from '@coast/core-api-types/workflow-template/entities/audit-trail/EntityAuditTrailEvent';
|
|
18
|
-
import { CreateWorkflowEntity } from '@coast/core-api-types/workflow-template/entities/CreateWorkflowEntity';
|
|
19
|
-
import { GetWorkflowEntityResult } from '@coast/core-api-types/workflow-template/entities/GetWorkflowEntityResult';
|
|
20
|
-
import { UpdateWorkflowEntity } from '@coast/core-api-types/workflow-template/entities/UpdateWorkflowEntity';
|
|
21
|
-
import { UpdateWorkflowTemplate } from '@coast/core-api-types/workflow-template/UpdateWorkflowTemplate';
|
|
22
|
-
import { WorkflowTemplate } from '@coast/core-api-types/workflow-template/WorkflowTemplate';
|
|
23
|
-
import { CoastApiOptions } from '../../models/coast-api/CoastApiOptions';
|
|
24
|
-
import { CoastLogger } from '../logger/CoastLogger';
|
|
25
|
-
export declare class CoastApiClient {
|
|
26
|
-
private readonly logger;
|
|
27
|
-
private readonly options;
|
|
28
|
-
constructor(logger: CoastLogger, options: CoastApiOptions);
|
|
29
|
-
aggregateRelatedCardQuantityStats(businessId: BusinessId, aggregate: AggregateRelatedCardQuantity): Promise<AggregateNumberStats>;
|
|
30
|
-
createEntityAuditTrailEvent(businessId: BusinessId, createEntityAuditTrailEvent: CreateEntityAuditTrailEvent): Promise<EntityAuditTrailEvent>;
|
|
31
|
-
createUsers(createUsers: CreateUserV2[], businessId: BusinessId): Promise<User[] | undefined>;
|
|
32
|
-
createWorkflowAutomationEvent(businessId: BusinessId, createWorkflowAutomationEvent: CreateWorkflowAutomationEvent): Promise<boolean>;
|
|
33
|
-
createWorkflowEntity(businessId: BusinessId, sourceAutomationId: AutomationId, createWorkflowEntity: CreateWorkflowEntity): Promise<GetWorkflowEntityResult>;
|
|
34
|
-
getCard(businessId: BusinessId, cardId: string): Promise<Card | null>;
|
|
35
|
-
getChannel(businessId: BusinessId, channelId: number): Promise<Channel>;
|
|
36
|
-
getFileDetails(): Promise<FileDetails>;
|
|
37
|
-
getSamlUser(businessId: BusinessId, email: string, samlOrganizationId: string): Promise<SamlUser>;
|
|
38
|
-
getWorkflowEntity(businessId: BusinessId, id: string): Promise<GetWorkflowEntityResult>;
|
|
39
|
-
getWorkflowTemplate(businessId: BusinessId, workflowTemplateId: string): Promise<WorkflowTemplate>;
|
|
40
|
-
listWorkflowEntitiesFormData(businessId: BusinessId, filter: ListEntitiesFormData): Promise<ListEntitiesFormDataResult>;
|
|
41
|
-
updateCard(businessId: BusinessId, updateCard: UpdateCard): Promise<Card>;
|
|
42
|
-
updateUser(businessId: BusinessId, updateUser: UpdateUser): Promise<User>;
|
|
43
|
-
updateWorkflowEntity(businessId: BusinessId, sourceAutomationId: AutomationId, updateWorkflowEntity: UpdateWorkflowEntity): Promise<GetWorkflowEntityResult>;
|
|
44
|
-
updateWorkflowTemplate(businessId: BusinessId, updateWorkflowTemplate: UpdateWorkflowTemplate): Promise<WorkflowTemplate>;
|
|
45
|
-
private execute;
|
|
46
|
-
}
|