@transcend-io/cli 3.0.1 → 4.1.0
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/build/codecs.d.ts +126 -4
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +43 -3
- package/build/codecs.js.map +1 -1
- package/build/graphql/gqls/dataPoint.d.ts.map +1 -1
- package/build/graphql/gqls/dataPoint.js +0 -4
- package/build/graphql/gqls/dataPoint.js.map +1 -1
- package/build/graphql/gqls/dataSilo.d.ts +1 -0
- package/build/graphql/gqls/dataSilo.d.ts.map +1 -1
- package/build/graphql/gqls/dataSilo.js +40 -1
- package/build/graphql/gqls/dataSilo.js.map +1 -1
- package/build/graphql/gqls/index.d.ts +1 -0
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +1 -0
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/gqls/template.d.ts +4 -0
- package/build/graphql/gqls/template.d.ts.map +1 -0
- package/build/graphql/gqls/template.js +29 -0
- package/build/graphql/gqls/template.js.map +1 -0
- package/build/graphql/index.d.ts +1 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +1 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +19 -3
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.d.ts.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.js +18 -1
- package/build/graphql/syncConfigurationToTranscend.js.map +1 -1
- package/build/graphql/syncDataSilos.d.ts +40 -2
- package/build/graphql/syncDataSilos.d.ts.map +1 -1
- package/build/graphql/syncDataSilos.js +21 -4
- package/build/graphql/syncDataSilos.js.map +1 -1
- package/build/graphql/syncTemplates.d.ts +24 -0
- package/build/graphql/syncTemplates.d.ts.map +1 -0
- package/build/graphql/syncTemplates.js +57 -0
- package/build/graphql/syncTemplates.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -2
package/build/codecs.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import * as t from 'io-ts';
|
|
2
|
+
/**
|
|
3
|
+
* Input to define email templates that can be used to communicate to end-users
|
|
4
|
+
* about the status of their requests
|
|
5
|
+
*
|
|
6
|
+
* @see https://docs.transcend.io/docs/privacy-requests/configuring-requests/email-templates
|
|
7
|
+
*/
|
|
8
|
+
export declare const TemplateInput: t.TypeC<{
|
|
9
|
+
/** The title of the template */
|
|
10
|
+
title: t.StringC;
|
|
11
|
+
}>;
|
|
12
|
+
/** Type override */
|
|
13
|
+
export declare type TemplateInput = t.TypeOf<typeof TemplateInput>;
|
|
2
14
|
/**
|
|
3
15
|
* Input to define API keys that may be shared across data silos
|
|
4
16
|
* in the data map. When creating new data silos through the yaml
|
|
@@ -293,6 +305,43 @@ export declare const DatapointInput: t.IntersectionC<[t.TypeC<{
|
|
|
293
305
|
}>]>;
|
|
294
306
|
/** Type override */
|
|
295
307
|
export declare type DatapointInput = t.TypeOf<typeof DatapointInput>;
|
|
308
|
+
export declare const PromptAVendorEmailSettings: t.PartialC<{
|
|
309
|
+
/** The email address of the user to notify when a promptAPerson integration */
|
|
310
|
+
'notify-email-address': t.StringC;
|
|
311
|
+
/**
|
|
312
|
+
* The frequency with which we should be sending emails for this data silo, in milliseconds.
|
|
313
|
+
*/
|
|
314
|
+
'send-frequency': t.NumberC;
|
|
315
|
+
/**
|
|
316
|
+
* The type of emails to send for this data silo, i.e. send an email for each DSR, across all open DSRs,
|
|
317
|
+
* or per profile in a DSR.
|
|
318
|
+
*/
|
|
319
|
+
'send-type': t.KeyofC<{
|
|
320
|
+
PER_DSR: unknown;
|
|
321
|
+
PER_PROFILE: unknown;
|
|
322
|
+
CROSS_DSR: unknown;
|
|
323
|
+
}>;
|
|
324
|
+
/**
|
|
325
|
+
* Indicates whether prompt-a-vendor emails should include a list of identifiers
|
|
326
|
+
* in addition to a link to the bulk processing UI.
|
|
327
|
+
*/
|
|
328
|
+
'include-identifiers-attachment': t.BooleanC;
|
|
329
|
+
/**
|
|
330
|
+
* Indicates what kind of link to generate as part of the emails sent out for this Prompt-a-Vendor silo.
|
|
331
|
+
*/
|
|
332
|
+
'completion-link-type': t.KeyofC<{
|
|
333
|
+
LOGGED_IN_USER: unknown;
|
|
334
|
+
UNAUTHENTICATED_EXTERNAL_USER: unknown;
|
|
335
|
+
NO_LINK_MARK_DATAPOINT_AS_RESOLVED: unknown;
|
|
336
|
+
}>;
|
|
337
|
+
/**
|
|
338
|
+
* The frequency with which we should retry sending emails for this data silo, in milliseconds.
|
|
339
|
+
* Needs to be a string because the number can be larger than the MAX_INT
|
|
340
|
+
*/
|
|
341
|
+
'manual-work-retry-frequency': t.StringC;
|
|
342
|
+
}>;
|
|
343
|
+
/** Type override */
|
|
344
|
+
export declare type PromptAVendorEmailSettings = t.TypeOf<typeof PromptAVendorEmailSettings>;
|
|
296
345
|
/**
|
|
297
346
|
* Input to define a data silo
|
|
298
347
|
*
|
|
@@ -314,8 +363,6 @@ export declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
|
|
|
314
363
|
description: t.StringC;
|
|
315
364
|
/** The webhook URL to notify for data privacy requests */
|
|
316
365
|
url: t.StringC;
|
|
317
|
-
/** The email address of the user to notify when a promptAPerson integration */
|
|
318
|
-
'notify-email-address': t.StringC;
|
|
319
366
|
/** The title of the API key that will be used to respond to privacy requests */
|
|
320
367
|
'api-key-title': t.StringC;
|
|
321
368
|
/**
|
|
@@ -455,6 +502,41 @@ export declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
|
|
|
455
502
|
}>>;
|
|
456
503
|
}>]>>;
|
|
457
504
|
}>]>>;
|
|
505
|
+
'email-settings': t.PartialC<{
|
|
506
|
+
/** The email address of the user to notify when a promptAPerson integration */
|
|
507
|
+
'notify-email-address': t.StringC;
|
|
508
|
+
/**
|
|
509
|
+
* The frequency with which we should be sending emails for this data silo, in milliseconds.
|
|
510
|
+
*/
|
|
511
|
+
'send-frequency': t.NumberC;
|
|
512
|
+
/**
|
|
513
|
+
* The type of emails to send for this data silo, i.e. send an email for each DSR, across all open DSRs,
|
|
514
|
+
* or per profile in a DSR.
|
|
515
|
+
*/
|
|
516
|
+
'send-type': t.KeyofC<{
|
|
517
|
+
PER_DSR: unknown;
|
|
518
|
+
PER_PROFILE: unknown;
|
|
519
|
+
CROSS_DSR: unknown;
|
|
520
|
+
}>;
|
|
521
|
+
/**
|
|
522
|
+
* Indicates whether prompt-a-vendor emails should include a list of identifiers
|
|
523
|
+
* in addition to a link to the bulk processing UI.
|
|
524
|
+
*/
|
|
525
|
+
'include-identifiers-attachment': t.BooleanC;
|
|
526
|
+
/**
|
|
527
|
+
* Indicates what kind of link to generate as part of the emails sent out for this Prompt-a-Vendor silo.
|
|
528
|
+
*/
|
|
529
|
+
'completion-link-type': t.KeyofC<{
|
|
530
|
+
LOGGED_IN_USER: unknown;
|
|
531
|
+
UNAUTHENTICATED_EXTERNAL_USER: unknown;
|
|
532
|
+
NO_LINK_MARK_DATAPOINT_AS_RESOLVED: unknown;
|
|
533
|
+
}>;
|
|
534
|
+
/**
|
|
535
|
+
* The frequency with which we should retry sending emails for this data silo, in milliseconds.
|
|
536
|
+
* Needs to be a string because the number can be larger than the MAX_INT
|
|
537
|
+
*/
|
|
538
|
+
'manual-work-retry-frequency': t.StringC;
|
|
539
|
+
}>;
|
|
458
540
|
}>]>;
|
|
459
541
|
/** Type override */
|
|
460
542
|
export declare type DataSiloInput = t.TypeOf<typeof DataSiloInput>;
|
|
@@ -466,6 +548,13 @@ export declare const TranscendInput: t.PartialC<{
|
|
|
466
548
|
/** The display title of the enricher */
|
|
467
549
|
title: t.StringC;
|
|
468
550
|
}>>;
|
|
551
|
+
/**
|
|
552
|
+
* Email template definitions
|
|
553
|
+
*/
|
|
554
|
+
templates: t.ArrayC<t.TypeC<{
|
|
555
|
+
/** The title of the template */
|
|
556
|
+
title: t.StringC;
|
|
557
|
+
}>>;
|
|
469
558
|
/**
|
|
470
559
|
* Enricher definitions
|
|
471
560
|
*/
|
|
@@ -517,8 +606,6 @@ export declare const TranscendInput: t.PartialC<{
|
|
|
517
606
|
description: t.StringC;
|
|
518
607
|
/** The webhook URL to notify for data privacy requests */
|
|
519
608
|
url: t.StringC;
|
|
520
|
-
/** The email address of the user to notify when a promptAPerson integration */
|
|
521
|
-
'notify-email-address': t.StringC;
|
|
522
609
|
/** The title of the API key that will be used to respond to privacy requests */
|
|
523
610
|
'api-key-title': t.StringC;
|
|
524
611
|
/**
|
|
@@ -658,6 +745,41 @@ export declare const TranscendInput: t.PartialC<{
|
|
|
658
745
|
}>>;
|
|
659
746
|
}>]>>;
|
|
660
747
|
}>]>>;
|
|
748
|
+
'email-settings': t.PartialC<{
|
|
749
|
+
/** The email address of the user to notify when a promptAPerson integration */
|
|
750
|
+
'notify-email-address': t.StringC;
|
|
751
|
+
/**
|
|
752
|
+
* The frequency with which we should be sending emails for this data silo, in milliseconds.
|
|
753
|
+
*/
|
|
754
|
+
'send-frequency': t.NumberC;
|
|
755
|
+
/**
|
|
756
|
+
* The type of emails to send for this data silo, i.e. send an email for each DSR, across all open DSRs,
|
|
757
|
+
* or per profile in a DSR.
|
|
758
|
+
*/
|
|
759
|
+
'send-type': t.KeyofC<{
|
|
760
|
+
PER_DSR: unknown;
|
|
761
|
+
PER_PROFILE: unknown;
|
|
762
|
+
CROSS_DSR: unknown;
|
|
763
|
+
}>;
|
|
764
|
+
/**
|
|
765
|
+
* Indicates whether prompt-a-vendor emails should include a list of identifiers
|
|
766
|
+
* in addition to a link to the bulk processing UI.
|
|
767
|
+
*/
|
|
768
|
+
'include-identifiers-attachment': t.BooleanC;
|
|
769
|
+
/**
|
|
770
|
+
* Indicates what kind of link to generate as part of the emails sent out for this Prompt-a-Vendor silo.
|
|
771
|
+
*/
|
|
772
|
+
'completion-link-type': t.KeyofC<{
|
|
773
|
+
LOGGED_IN_USER: unknown;
|
|
774
|
+
UNAUTHENTICATED_EXTERNAL_USER: unknown;
|
|
775
|
+
NO_LINK_MARK_DATAPOINT_AS_RESOLVED: unknown;
|
|
776
|
+
}>;
|
|
777
|
+
/**
|
|
778
|
+
* The frequency with which we should retry sending emails for this data silo, in milliseconds.
|
|
779
|
+
* Needs to be a string because the number can be larger than the MAX_INT
|
|
780
|
+
*/
|
|
781
|
+
'manual-work-retry-frequency': t.StringC;
|
|
782
|
+
}>;
|
|
661
783
|
}>]>>;
|
|
662
784
|
}>;
|
|
663
785
|
/** Type override */
|
package/build/codecs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs.d.ts","sourceRoot":"","sources":["../src/codecs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"codecs.d.ts","sourceRoot":"","sources":["../src/codecs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAW3B;;;;;GAKG;AACH,eAAO,MAAM,aAAa;IACxB,gCAAgC;;EAEhC,CAAC;AAEH,oBAAoB;AACpB,oBAAY,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAE3D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;IACtB,wCAAwC;;EAExC,CAAC;AAEH,oBAAoB;AACpB,oBAAY,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa;IAEtB,wCAAwC;;IAExC,8BAA8B;;IAE9B;;;;OAIG;;IAEH;;;OAGG;;;IAIH,0DAA0D;;IAE1D,+DAA+D;;;;;;;;;;;;IAGjE,CAAC;AAEH,oBAAoB;AACpB,oBAAY,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAE3D;;GAEG;AACH,eAAO,M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AE1D,gFAAgF;;QAEhF;;;;WAIG;;QAEH;;;WAGG;;QAEH;;;;WAIG;;QAEH;;;WAGG;;QAEH;;;WAGG;;QAEH;;;WAGG;;YAzHH,wCAAwC;;YAExC,gFAAgF;;;YAIhF,0DAA0D;;YAE1D;;;;eAIG;;;;;;;;;;;;YAIH;;;;eAIG;;;;;;;;;;;;YAEH;;;eAGG;;gBA5DH,6EAA6E;;;gBAI7E,qCAAqC;;gBAErC,+BAA+B;;gBAE/B;;;;mBAIG;;oBAxCL,yBAAyB;;;;;;;;;;;;;;;;oBAEzB,iEAAiE;;;gBAwC/D;;;;mBAIG;;oBAjCL,0BAA0B;;;;;;;;;;;;;;;;;;oBAE1B,8CAA8C;;;;;;YAkF9C,+EAA+E;;YAE/E;;eAEG;;YAEH;;;eAGG;;;;;;YAEH;;;eAGG;;YAEH;;eAEG;;;;;;YAEH;;;eAGG;;;;EA0FH,CAAC;AAEH,oBAAoB;AACpB,oBAAY,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/build/codecs.js
CHANGED
|
@@ -19,10 +19,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.TranscendInput = exports.DataSiloInput = exports.DatapointInput = exports.FieldInput = exports.DataCategoryInput = exports.ProcessingPurposeInput = exports.EnricherInput = exports.ApiKeyInput = void 0;
|
|
22
|
+
exports.TranscendInput = exports.DataSiloInput = exports.PromptAVendorEmailSettings = exports.DatapointInput = exports.FieldInput = exports.DataCategoryInput = exports.ProcessingPurposeInput = exports.EnricherInput = exports.ApiKeyInput = exports.TemplateInput = void 0;
|
|
23
23
|
const t = __importStar(require("io-ts"));
|
|
24
24
|
const type_utils_1 = require("@transcend-io/type-utils");
|
|
25
25
|
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
26
|
+
/**
|
|
27
|
+
* Input to define email templates that can be used to communicate to end-users
|
|
28
|
+
* about the status of their requests
|
|
29
|
+
*
|
|
30
|
+
* @see https://docs.transcend.io/docs/privacy-requests/configuring-requests/email-templates
|
|
31
|
+
*/
|
|
32
|
+
exports.TemplateInput = t.type({
|
|
33
|
+
/** The title of the template */
|
|
34
|
+
title: t.string,
|
|
35
|
+
});
|
|
26
36
|
/**
|
|
27
37
|
* Input to define API keys that may be shared across data silos
|
|
28
38
|
* in the data map. When creating new data silos through the yaml
|
|
@@ -154,6 +164,33 @@ exports.DatapointInput = t.intersection([
|
|
|
154
164
|
fields: t.array(exports.FieldInput),
|
|
155
165
|
}),
|
|
156
166
|
]);
|
|
167
|
+
exports.PromptAVendorEmailSettings = t.partial({
|
|
168
|
+
/** The email address of the user to notify when a promptAPerson integration */
|
|
169
|
+
'notify-email-address': t.string,
|
|
170
|
+
/**
|
|
171
|
+
* The frequency with which we should be sending emails for this data silo, in milliseconds.
|
|
172
|
+
*/
|
|
173
|
+
'send-frequency': t.number,
|
|
174
|
+
/**
|
|
175
|
+
* The type of emails to send for this data silo, i.e. send an email for each DSR, across all open DSRs,
|
|
176
|
+
* or per profile in a DSR.
|
|
177
|
+
*/
|
|
178
|
+
'send-type': (0, type_utils_1.valuesOf)(privacy_types_1.PromptAVendorEmailSendType),
|
|
179
|
+
/**
|
|
180
|
+
* Indicates whether prompt-a-vendor emails should include a list of identifiers
|
|
181
|
+
* in addition to a link to the bulk processing UI.
|
|
182
|
+
*/
|
|
183
|
+
'include-identifiers-attachment': t.boolean,
|
|
184
|
+
/**
|
|
185
|
+
* Indicates what kind of link to generate as part of the emails sent out for this Prompt-a-Vendor silo.
|
|
186
|
+
*/
|
|
187
|
+
'completion-link-type': (0, type_utils_1.valuesOf)(privacy_types_1.PromptAVendorEmailCompletionLinkType),
|
|
188
|
+
/**
|
|
189
|
+
* The frequency with which we should retry sending emails for this data silo, in milliseconds.
|
|
190
|
+
* Needs to be a string because the number can be larger than the MAX_INT
|
|
191
|
+
*/
|
|
192
|
+
'manual-work-retry-frequency': t.string,
|
|
193
|
+
});
|
|
157
194
|
/**
|
|
158
195
|
* Input to define a data silo
|
|
159
196
|
*
|
|
@@ -177,8 +214,6 @@ exports.DataSiloInput = t.intersection([
|
|
|
177
214
|
description: t.string,
|
|
178
215
|
/** The webhook URL to notify for data privacy requests */
|
|
179
216
|
url: t.string,
|
|
180
|
-
/** The email address of the user to notify when a promptAPerson integration */
|
|
181
|
-
'notify-email-address': t.string,
|
|
182
217
|
/** The title of the API key that will be used to respond to privacy requests */
|
|
183
218
|
'api-key-title': t.string,
|
|
184
219
|
/**
|
|
@@ -213,6 +248,7 @@ exports.DataSiloInput = t.intersection([
|
|
|
213
248
|
* for further details.
|
|
214
249
|
*/
|
|
215
250
|
datapoints: t.array(exports.DatapointInput),
|
|
251
|
+
'email-settings': exports.PromptAVendorEmailSettings,
|
|
216
252
|
}),
|
|
217
253
|
]);
|
|
218
254
|
exports.TranscendInput = t.partial({
|
|
@@ -220,6 +256,10 @@ exports.TranscendInput = t.partial({
|
|
|
220
256
|
* API key definitions
|
|
221
257
|
*/
|
|
222
258
|
'api-keys': t.array(exports.ApiKeyInput),
|
|
259
|
+
/**
|
|
260
|
+
* Email template definitions
|
|
261
|
+
*/
|
|
262
|
+
templates: t.array(exports.TemplateInput),
|
|
223
263
|
/**
|
|
224
264
|
* Enricher definitions
|
|
225
265
|
*/
|
package/build/codecs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs.js","sourceRoot":"","sources":["../src/codecs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yDAA+D;AAC/D,+
|
|
1
|
+
{"version":3,"file":"codecs.js","sourceRoot":"","sources":["../src/codecs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yDAA+D;AAC/D,+DAOqC;AAErC;;;;;GAKG;AACU,QAAA,aAAa,GAAG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UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAW,CAAC;IAChC;;OAEG;IACH,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAa,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAa,CAAC;IACjC;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAa,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataPoint.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/dataPoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QA6BvB,CAAC;AAEF,eAAO,MAAM,eAAe,QA2B3B,CAAC;AAEF,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"dataPoint.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/dataPoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QA6BvB,CAAC;AAEF,eAAO,MAAM,eAAe,QA2B3B,CAAC;AAEF,eAAO,MAAM,2BAA2B,QA2BvC,CAAC"}
|
|
@@ -66,8 +66,6 @@ exports.UPDATE_OR_CREATE_DATA_POINT = (0, graphql_request_1.gql) `
|
|
|
66
66
|
$name: String!
|
|
67
67
|
$title: String
|
|
68
68
|
$description: String
|
|
69
|
-
$category: DataCategoryType
|
|
70
|
-
$purpose: ProcessingPurpose
|
|
71
69
|
$querySuggestions: [DbIntegrationQuerySuggestionInput!]
|
|
72
70
|
$enabledActions: [RequestActionObjectResolver!]
|
|
73
71
|
$subDataPoints: [DataPointSubDataPointInput!]
|
|
@@ -79,8 +77,6 @@ exports.UPDATE_OR_CREATE_DATA_POINT = (0, graphql_request_1.gql) `
|
|
|
79
77
|
title: $title
|
|
80
78
|
description: $description
|
|
81
79
|
querySuggestions: $querySuggestions
|
|
82
|
-
category: $category
|
|
83
|
-
purpose: $purpose
|
|
84
80
|
enabledActions: $enabledActions
|
|
85
81
|
subDataPoints: $subDataPoints
|
|
86
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataPoint.js","sourceRoot":"","sources":["../../../src/graphql/gqls/dataPoint.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,WAAW,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B7B,CAAC;AAEW,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BjC,CAAC;AAEW,QAAA,2BAA2B,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"dataPoint.js","sourceRoot":"","sources":["../../../src/graphql/gqls/dataPoint.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,WAAW,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B7B,CAAC;AAEW,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BjC,CAAC;AAEW,QAAA,2BAA2B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B7C,CAAC"}
|
|
@@ -2,4 +2,5 @@ export declare const DATA_SILOS: string;
|
|
|
2
2
|
export declare const DATA_SILO: string;
|
|
3
3
|
export declare const UPDATE_DATA_SILO: string;
|
|
4
4
|
export declare const CREATE_DATA_SILO: string;
|
|
5
|
+
export declare const UPDATE_PROMPT_A_VENDOR_SETTINGS: string;
|
|
5
6
|
//# sourceMappingURL=dataSilo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSilo.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/dataSilo.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"dataSilo.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/dataSilo.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAuBtB,CAAC;AAEF,eAAO,MAAM,SAAS,QAoCrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAgC5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAuC5B,CAAC;AAEF,eAAO,MAAM,+BAA+B,QAwB3C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CREATE_DATA_SILO = exports.UPDATE_DATA_SILO = exports.DATA_SILO = exports.DATA_SILOS = void 0;
|
|
3
|
+
exports.UPDATE_PROMPT_A_VENDOR_SETTINGS = exports.CREATE_DATA_SILO = exports.UPDATE_DATA_SILO = exports.DATA_SILO = exports.DATA_SILOS = void 0;
|
|
4
4
|
const graphql_request_1 = require("graphql-request");
|
|
5
5
|
exports.DATA_SILOS = (0, graphql_request_1.gql) `
|
|
6
6
|
query SchemaSyncDataSilos(
|
|
@@ -19,6 +19,9 @@ exports.DATA_SILOS = (0, graphql_request_1.gql) `
|
|
|
19
19
|
title
|
|
20
20
|
link
|
|
21
21
|
type
|
|
22
|
+
catalog {
|
|
23
|
+
hasAvcFunctionality
|
|
24
|
+
}
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -48,7 +51,15 @@ exports.DATA_SILO = (0, graphql_request_1.gql) `
|
|
|
48
51
|
owners {
|
|
49
52
|
email
|
|
50
53
|
}
|
|
54
|
+
catalog {
|
|
55
|
+
hasAvcFunctionality
|
|
56
|
+
}
|
|
51
57
|
isLive
|
|
58
|
+
promptAVendorEmailSendFrequency
|
|
59
|
+
promptAVendorEmailSendType
|
|
60
|
+
promptAVendorEmailIncludeIdentifiersAttachment
|
|
61
|
+
promptAVendorEmailCompletionLinkType
|
|
62
|
+
manualWorkRetryFrequency
|
|
52
63
|
}
|
|
53
64
|
}
|
|
54
65
|
`;
|
|
@@ -118,8 +129,36 @@ exports.CREATE_DATA_SILO = (0, graphql_request_1.gql) `
|
|
|
118
129
|
id
|
|
119
130
|
title
|
|
120
131
|
type
|
|
132
|
+
catalog {
|
|
133
|
+
hasAvcFunctionality
|
|
134
|
+
}
|
|
121
135
|
}
|
|
122
136
|
}
|
|
123
137
|
}
|
|
124
138
|
`;
|
|
139
|
+
exports.UPDATE_PROMPT_A_VENDOR_SETTINGS = (0, graphql_request_1.gql) `
|
|
140
|
+
mutation UpdatePromptAVendorEmailSendSettings(
|
|
141
|
+
$dataSiloId: ID!
|
|
142
|
+
$notifyEmailAddress: String
|
|
143
|
+
$promptAVendorEmailSendFrequency: Int
|
|
144
|
+
$promptAVendorEmailSendType: PromptAVendorEmailSendType
|
|
145
|
+
$promptAVendorEmailIncludeIdentifiersAttachment: Boolean
|
|
146
|
+
$promptAVendorEmailCompletionLinkType: PromptAVendorEmailCompletionLinkType
|
|
147
|
+
$manualWorkRetryFrequency: String
|
|
148
|
+
) {
|
|
149
|
+
updatePromptAVendorEmailSendSettings(
|
|
150
|
+
input: {
|
|
151
|
+
dataSiloId: $dataSiloId
|
|
152
|
+
notifyEmailAddress: $notifyEmailAddress
|
|
153
|
+
promptAVendorEmailSendFrequency: $promptAVendorEmailSendFrequency
|
|
154
|
+
promptAVendorEmailSendType: $promptAVendorEmailSendType
|
|
155
|
+
promptAVendorEmailIncludeIdentifiersAttachment: $promptAVendorEmailIncludeIdentifiersAttachment
|
|
156
|
+
promptAVendorEmailCompletionLinkType: $promptAVendorEmailCompletionLinkType
|
|
157
|
+
manualWorkRetryFrequency: $manualWorkRetryFrequency
|
|
158
|
+
}
|
|
159
|
+
) {
|
|
160
|
+
clientMutationId
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
`;
|
|
125
164
|
//# sourceMappingURL=dataSilo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSilo.js","sourceRoot":"","sources":["../../../src/graphql/gqls/dataSilo.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"dataSilo.js","sourceRoot":"","sources":["../../../src/graphql/gqls/dataSilo.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;CAuB5B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3B,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgClC,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuClC,CAAC;AAEW,QAAA,+BAA+B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
|
|
@@ -17,4 +17,5 @@ __exportStar(require("./identifier"), exports);
|
|
|
17
17
|
__exportStar(require("./dataSubject"), exports);
|
|
18
18
|
__exportStar(require("./apiKey"), exports);
|
|
19
19
|
__exportStar(require("./siloDiscovery"), exports);
|
|
20
|
+
__exportStar(require("./template"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,kDAAgC;AAChC,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/template.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QASrB,CAAC;AAEF,eAAO,MAAM,eAAe,QAM3B,CAAC;AAEF,eAAO,MAAM,eAAe,QAM3B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_TEMPLATE = exports.CREATE_TEMPLATE = exports.TEMPLATES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
exports.TEMPLATES = (0, graphql_request_1.gql) `
|
|
6
|
+
query SchemaSyncTemplates($title: String, $first: Int!, $offset: Int!) {
|
|
7
|
+
templates(filterBy: { text: $title }, first: $first, offset: $offset) {
|
|
8
|
+
nodes {
|
|
9
|
+
id
|
|
10
|
+
title
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
exports.CREATE_TEMPLATE = (0, graphql_request_1.gql) `
|
|
16
|
+
mutation SchemaSyncCreateTemplate($title: String!) {
|
|
17
|
+
createTemplate(input: { title: $title, template: "", subject: $title }) {
|
|
18
|
+
clientMutationId
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
exports.UPDATE_TEMPLATE = (0, graphql_request_1.gql) `
|
|
23
|
+
mutation SchemaSyncUpdateTemplate($id: ID!, $title: String!) {
|
|
24
|
+
updateTemplate(input: { id: $id, title: $title }) {
|
|
25
|
+
clientMutationId
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
//# sourceMappingURL=template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/graphql/gqls/template.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,SAAS,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CAS3B,CAAC;AAEW,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;CAMjC,CAAC;AAEW,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;CAMjC,CAAC"}
|
package/build/graphql/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC"}
|
package/build/graphql/index.js
CHANGED
|
@@ -19,4 +19,5 @@ __exportStar(require("./syncConfigurationToTranscend"), exports);
|
|
|
19
19
|
__exportStar(require("./syncDataSilos"), exports);
|
|
20
20
|
__exportStar(require("./syncEnrichers"), exports);
|
|
21
21
|
__exportStar(require("./uploadSiloDiscoveryResults"), exports);
|
|
22
|
+
__exportStar(require("./syncTemplates"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA6C;AAC7C,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,iEAA+C;AAC/C,kDAAgC;AAChC,kDAAgC;AAChC,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA6C;AAC7C,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,iEAA+C;AAC/C,kDAAgC;AAChC,kDAAgC;AAChC,+DAA6C;AAC7C,kDAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pullTranscendConfiguration.d.ts","sourceRoot":"","sources":["../../src/graphql/pullTranscendConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAIf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"pullTranscendConfiguration.d.ts","sourceRoot":"","sources":["../../src/graphql/pullTranscendConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAIf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAahD;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,cAAc,CAAC,CAiJzB"}
|
|
@@ -11,6 +11,7 @@ const syncDataSilos_1 = require("./syncDataSilos");
|
|
|
11
11
|
const fetchDataSubjects_1 = require("./fetchDataSubjects");
|
|
12
12
|
const fetchApiKeys_1 = require("./fetchApiKeys");
|
|
13
13
|
const syncEnrichers_1 = require("./syncEnrichers");
|
|
14
|
+
const _1 = require(".");
|
|
14
15
|
/**
|
|
15
16
|
* Pull a yaml configuration from Transcend
|
|
16
17
|
*
|
|
@@ -19,7 +20,7 @@ const syncEnrichers_1 = require("./syncEnrichers");
|
|
|
19
20
|
* @returns The configuration
|
|
20
21
|
*/
|
|
21
22
|
async function pullTranscendConfiguration(client, dataSiloIds) {
|
|
22
|
-
const [dataSubjects, apiKeyTitleMap, dataSilos, enrichers] = await Promise.all([
|
|
23
|
+
const [dataSubjects, apiKeyTitleMap, dataSilos, enrichers, templates] = await Promise.all([
|
|
23
24
|
// Grab all data subjects in the organization
|
|
24
25
|
(0, fetchDataSubjects_1.fetchDataSubjects)({}, client, true),
|
|
25
26
|
// Grab API keys
|
|
@@ -28,6 +29,8 @@ async function pullTranscendConfiguration(client, dataSiloIds) {
|
|
|
28
29
|
(0, syncDataSilos_1.fetchEnrichedDataSilos)(client, { ids: dataSiloIds }),
|
|
29
30
|
// Fetch enrichers
|
|
30
31
|
(0, syncEnrichers_1.fetchAllEnrichers)(client),
|
|
32
|
+
// Fetch email templates
|
|
33
|
+
(0, _1.fetchAllTemplates)(client),
|
|
31
34
|
]);
|
|
32
35
|
const result = {};
|
|
33
36
|
// Save API keys
|
|
@@ -40,6 +43,8 @@ async function pullTranscendConfiguration(client, dataSiloIds) {
|
|
|
40
43
|
title,
|
|
41
44
|
}));
|
|
42
45
|
}
|
|
46
|
+
// save email templates
|
|
47
|
+
result.templates = templates.map(({ title }) => ({ title }));
|
|
43
48
|
// Save enrichers
|
|
44
49
|
if (enrichers.length > 0 && dataSiloIds.length === 0) {
|
|
45
50
|
result.enrichers = enrichers
|
|
@@ -53,7 +58,7 @@ async function pullTranscendConfiguration(client, dataSiloIds) {
|
|
|
53
58
|
}));
|
|
54
59
|
}
|
|
55
60
|
// Save data silos
|
|
56
|
-
result['data-silos'] = dataSilos.map(([{ title, description, url, type, apiKeys, notifyEmailAddress, identifiers, dependentDataSilos, owners, subjectBlocklist, isLive, }, dataPoints,]) => {
|
|
61
|
+
result['data-silos'] = dataSilos.map(([{ title, description, url, type, apiKeys, notifyEmailAddress, identifiers, dependentDataSilos, owners, subjectBlocklist, isLive, promptAVendorEmailSendFrequency, promptAVendorEmailSendType, promptAVendorEmailIncludeIdentifiersAttachment, promptAVendorEmailCompletionLinkType, manualWorkRetryFrequency, catalog, }, dataPoints,]) => {
|
|
57
62
|
var _a;
|
|
58
63
|
return ({
|
|
59
64
|
title,
|
|
@@ -64,13 +69,24 @@ async function pullTranscendConfiguration(client, dataSiloIds) {
|
|
|
64
69
|
'identity-keys': identifiers
|
|
65
70
|
.filter(({ isConnected }) => isConnected)
|
|
66
71
|
.map(({ name }) => name),
|
|
67
|
-
'notify-email-address': notifyEmailAddress || undefined,
|
|
68
72
|
'deletion-dependencies': dependentDataSilos.map(({ title }) => title),
|
|
69
73
|
owners: owners.map(({ email }) => email),
|
|
70
74
|
disabled: !isLive,
|
|
71
75
|
'data-subjects': subjectBlocklist.length > 0
|
|
72
76
|
? (0, fetchDataSubjects_1.convertToDataSubjectAllowlist)(subjectBlocklist.map(({ type }) => type), dataSubjects)
|
|
73
77
|
: undefined,
|
|
78
|
+
...(catalog.hasAvcFunctionality
|
|
79
|
+
? {
|
|
80
|
+
'email-settings': {
|
|
81
|
+
'notify-email-address': notifyEmailAddress || undefined,
|
|
82
|
+
'send-frequency': promptAVendorEmailSendFrequency,
|
|
83
|
+
'send-type': promptAVendorEmailSendType,
|
|
84
|
+
'include-identifiers-attachment': promptAVendorEmailIncludeIdentifiersAttachment,
|
|
85
|
+
'completion-link-type': promptAVendorEmailCompletionLinkType,
|
|
86
|
+
'manual-work-retry-frequency': manualWorkRetryFrequency,
|
|
87
|
+
},
|
|
88
|
+
}
|
|
89
|
+
: {}),
|
|
74
90
|
datapoints: dataPoints.map((dataPoint) => ({
|
|
75
91
|
title: dataPoint.title.defaultMessage,
|
|
76
92
|
description: dataPoint.description.defaultMessage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pullTranscendConfiguration.js","sourceRoot":"","sources":["../../src/graphql/pullTranscendConfiguration.ts"],"names":[],"mappings":";;;;;;AAOA,6DAAqC;AACrC,yDAAiC;AACjC,iEAAyC;AACzC,mDAAyD;AACzD,2DAG6B;AAC7B,iDAA8C;AAC9C,mDAAoD;
|
|
1
|
+
{"version":3,"file":"pullTranscendConfiguration.js","sourceRoot":"","sources":["../../src/graphql/pullTranscendConfiguration.ts"],"names":[],"mappings":";;;;;;AAOA,6DAAqC;AACrC,yDAAiC;AACjC,iEAAyC;AACzC,mDAAyD;AACzD,2DAG6B;AAC7B,iDAA8C;AAC9C,mDAAoD;AACpD,wBAAsC;AAEtC;;;;;;GAMG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAqB,EACrB,WAAqB;IAErB,MAAM,CAAC,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,GACnE,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,6CAA6C;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;4BACvC,wBAAwB,CAAC,KAAK,CACjC;qBACF;oBACH,CAAC,CAAC,EAAE,CAAC;gBACP,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC;oBACpC,CAAC,CAAC;wBACE,MAAM,EAAE,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;4BAC9C,GAAG,EAAE,KAAK,CAAC,IAAI;4BACf,WAAW,EAAE,KAAK,CAAC,WAAW;4BAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;4BACxB,UAAU,EAAE,KAAK,CAAC,UAAU;yBAC7B,CAAC,CAAC;qBACJ;oBACH,CAAC,CAAC,EAAE,CAAC;gBACP,iBAAiB,EAAE,SAAS,CAAC,cAAc;qBACxC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC;qBAC9B,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC;aAC3B,CAAC,CAAC;SACJ,CAAC,CAAA;KAAA,CACH,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AApJD,gEAoJC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncConfigurationToTranscend.d.ts","sourceRoot":"","sources":["../../src/graphql/syncConfigurationToTranscend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"syncConfigurationToTranscend.d.ts","sourceRoot":"","sources":["../../src/graphql/syncConfigurationToTranscend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAYhD;;;;;;GAMG;AACH,wBAAsB,4BAA4B,CAChD,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,OAAO,CAAC,CAqIlB"}
|
|
@@ -13,6 +13,7 @@ const syncDataSilos_1 = require("./syncDataSilos");
|
|
|
13
13
|
const fetchDataSubjects_1 = require("./fetchDataSubjects");
|
|
14
14
|
const fetchApiKeys_1 = require("./fetchApiKeys");
|
|
15
15
|
const gqls_1 = require("./gqls");
|
|
16
|
+
const _1 = require(".");
|
|
16
17
|
/**
|
|
17
18
|
* Sync the yaml input back to Transcend using the GraphQL APIs
|
|
18
19
|
*
|
|
@@ -30,7 +31,23 @@ async function syncConfigurationToTranscend(input, client) {
|
|
|
30
31
|
// Grab API keys
|
|
31
32
|
(0, fetchApiKeys_1.fetchApiKeys)(input, client),
|
|
32
33
|
]);
|
|
33
|
-
const { enrichers, 'data-silos': dataSilos } = input;
|
|
34
|
+
const { templates, enrichers, 'data-silos': dataSilos } = input;
|
|
35
|
+
// Sync email templates
|
|
36
|
+
if (templates) {
|
|
37
|
+
logger_1.logger.info(colors_1.default.magenta(`Syncing "${templates.length}" email templates...`));
|
|
38
|
+
await (0, bluebird_1.mapSeries)(templates, async (template) => {
|
|
39
|
+
logger_1.logger.info(colors_1.default.magenta(`Syncing template "${template.title}"...`));
|
|
40
|
+
try {
|
|
41
|
+
await (0, _1.syncTemplate)(template, client);
|
|
42
|
+
logger_1.logger.info(colors_1.default.green(`Successfully synced template "${template.title}"!`));
|
|
43
|
+
}
|
|
44
|
+
catch (err) {
|
|
45
|
+
encounteredError = true;
|
|
46
|
+
logger_1.logger.info(colors_1.default.red(`Failed to sync template "${template.title}"! - ${err.message}`));
|
|
47
|
+
}
|
|
48
|
+
logger_1.logger.info(colors_1.default.green(`Synced "${templates.length}" templates!`));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
34
51
|
// Sync enrichers
|
|
35
52
|
if (enrichers) {
|
|
36
53
|
logger_1.logger.info(colors_1.default.magenta(`Syncing "${enrichers.length}" enrichers...`));
|