@transcend-io/cli 3.0.2 → 4.2.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.
Files changed (36) hide show
  1. package/build/codecs.d.ts +142 -4
  2. package/build/codecs.d.ts.map +1 -1
  3. package/build/codecs.js +51 -3
  4. package/build/codecs.js.map +1 -1
  5. package/build/graphql/gqls/dataSilo.d.ts +1 -0
  6. package/build/graphql/gqls/dataSilo.d.ts.map +1 -1
  7. package/build/graphql/gqls/dataSilo.js +48 -1
  8. package/build/graphql/gqls/dataSilo.js.map +1 -1
  9. package/build/graphql/gqls/index.d.ts +1 -0
  10. package/build/graphql/gqls/index.d.ts.map +1 -1
  11. package/build/graphql/gqls/index.js +1 -0
  12. package/build/graphql/gqls/index.js.map +1 -1
  13. package/build/graphql/gqls/template.d.ts +4 -0
  14. package/build/graphql/gqls/template.d.ts.map +1 -0
  15. package/build/graphql/gqls/template.js +29 -0
  16. package/build/graphql/gqls/template.js.map +1 -0
  17. package/build/graphql/index.d.ts +1 -0
  18. package/build/graphql/index.d.ts.map +1 -1
  19. package/build/graphql/index.js +1 -0
  20. package/build/graphql/index.js.map +1 -1
  21. package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
  22. package/build/graphql/pullTranscendConfiguration.js +28 -5
  23. package/build/graphql/pullTranscendConfiguration.js.map +1 -1
  24. package/build/graphql/syncConfigurationToTranscend.d.ts.map +1 -1
  25. package/build/graphql/syncConfigurationToTranscend.js +18 -1
  26. package/build/graphql/syncConfigurationToTranscend.js.map +1 -1
  27. package/build/graphql/syncDataSilos.d.ts +45 -2
  28. package/build/graphql/syncDataSilos.d.ts.map +1 -1
  29. package/build/graphql/syncDataSilos.js +23 -4
  30. package/build/graphql/syncDataSilos.js.map +1 -1
  31. package/build/graphql/syncTemplates.d.ts +24 -0
  32. package/build/graphql/syncTemplates.d.ts.map +1 -0
  33. package/build/graphql/syncTemplates.js +57 -0
  34. package/build/graphql/syncTemplates.js.map +1 -0
  35. package/build/tsbuildinfo +1 -1
  36. 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
  /**
@@ -340,6 +387,14 @@ export declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
340
387
  * for managing this data silo
341
388
  */
342
389
  owners: t.ArrayC<t.StringC>;
390
+ /**
391
+ * The names of teams within your Transcend instance that should be responsible
392
+ * for managing this data silo.
393
+ *
394
+ * @see: https://docs.transcend.io/docs/security/access-control#teams
395
+ * for more information about how to create and manage teams
396
+ */
397
+ teams: t.ArrayC<t.StringC>;
343
398
  /**
344
399
  * Specify this flag if the data silo is under development and should not be included
345
400
  * in production privacy request workflows. Will still sync metadata to app.transcend.io.
@@ -455,6 +510,41 @@ export declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
455
510
  }>>;
456
511
  }>]>>;
457
512
  }>]>>;
513
+ 'email-settings': t.PartialC<{
514
+ /** The email address of the user to notify when a promptAPerson integration */
515
+ 'notify-email-address': t.StringC;
516
+ /**
517
+ * The frequency with which we should be sending emails for this data silo, in milliseconds.
518
+ */
519
+ 'send-frequency': t.NumberC;
520
+ /**
521
+ * The type of emails to send for this data silo, i.e. send an email for each DSR, across all open DSRs,
522
+ * or per profile in a DSR.
523
+ */
524
+ 'send-type': t.KeyofC<{
525
+ PER_DSR: unknown;
526
+ PER_PROFILE: unknown;
527
+ CROSS_DSR: unknown;
528
+ }>;
529
+ /**
530
+ * Indicates whether prompt-a-vendor emails should include a list of identifiers
531
+ * in addition to a link to the bulk processing UI.
532
+ */
533
+ 'include-identifiers-attachment': t.BooleanC;
534
+ /**
535
+ * Indicates what kind of link to generate as part of the emails sent out for this Prompt-a-Vendor silo.
536
+ */
537
+ 'completion-link-type': t.KeyofC<{
538
+ LOGGED_IN_USER: unknown;
539
+ UNAUTHENTICATED_EXTERNAL_USER: unknown;
540
+ NO_LINK_MARK_DATAPOINT_AS_RESOLVED: unknown;
541
+ }>;
542
+ /**
543
+ * The frequency with which we should retry sending emails for this data silo, in milliseconds.
544
+ * Needs to be a string because the number can be larger than the MAX_INT
545
+ */
546
+ 'manual-work-retry-frequency': t.StringC;
547
+ }>;
458
548
  }>]>;
459
549
  /** Type override */
460
550
  export declare type DataSiloInput = t.TypeOf<typeof DataSiloInput>;
@@ -466,6 +556,13 @@ export declare const TranscendInput: t.PartialC<{
466
556
  /** The display title of the enricher */
467
557
  title: t.StringC;
468
558
  }>>;
559
+ /**
560
+ * Email template definitions
561
+ */
562
+ templates: t.ArrayC<t.TypeC<{
563
+ /** The title of the template */
564
+ title: t.StringC;
565
+ }>>;
469
566
  /**
470
567
  * Enricher definitions
471
568
  */
@@ -517,8 +614,6 @@ export declare const TranscendInput: t.PartialC<{
517
614
  description: t.StringC;
518
615
  /** The webhook URL to notify for data privacy requests */
519
616
  url: t.StringC;
520
- /** The email address of the user to notify when a promptAPerson integration */
521
- 'notify-email-address': t.StringC;
522
617
  /** The title of the API key that will be used to respond to privacy requests */
523
618
  'api-key-title': t.StringC;
524
619
  /**
@@ -543,6 +638,14 @@ export declare const TranscendInput: t.PartialC<{
543
638
  * for managing this data silo
544
639
  */
545
640
  owners: t.ArrayC<t.StringC>;
641
+ /**
642
+ * The names of teams within your Transcend instance that should be responsible
643
+ * for managing this data silo.
644
+ *
645
+ * @see: https://docs.transcend.io/docs/security/access-control#teams
646
+ * for more information about how to create and manage teams
647
+ */
648
+ teams: t.ArrayC<t.StringC>;
546
649
  /**
547
650
  * Specify this flag if the data silo is under development and should not be included
548
651
  * in production privacy request workflows. Will still sync metadata to app.transcend.io.
@@ -658,6 +761,41 @@ export declare const TranscendInput: t.PartialC<{
658
761
  }>>;
659
762
  }>]>>;
660
763
  }>]>>;
764
+ 'email-settings': t.PartialC<{
765
+ /** The email address of the user to notify when a promptAPerson integration */
766
+ 'notify-email-address': t.StringC;
767
+ /**
768
+ * The frequency with which we should be sending emails for this data silo, in milliseconds.
769
+ */
770
+ 'send-frequency': t.NumberC;
771
+ /**
772
+ * The type of emails to send for this data silo, i.e. send an email for each DSR, across all open DSRs,
773
+ * or per profile in a DSR.
774
+ */
775
+ 'send-type': t.KeyofC<{
776
+ PER_DSR: unknown;
777
+ PER_PROFILE: unknown;
778
+ CROSS_DSR: unknown;
779
+ }>;
780
+ /**
781
+ * Indicates whether prompt-a-vendor emails should include a list of identifiers
782
+ * in addition to a link to the bulk processing UI.
783
+ */
784
+ 'include-identifiers-attachment': t.BooleanC;
785
+ /**
786
+ * Indicates what kind of link to generate as part of the emails sent out for this Prompt-a-Vendor silo.
787
+ */
788
+ 'completion-link-type': t.KeyofC<{
789
+ LOGGED_IN_USER: unknown;
790
+ UNAUTHENTICATED_EXTERNAL_USER: unknown;
791
+ NO_LINK_MARK_DATAPOINT_AS_RESOLVED: unknown;
792
+ }>;
793
+ /**
794
+ * The frequency with which we should retry sending emails for this data silo, in milliseconds.
795
+ * Needs to be a string because the number can be larger than the MAX_INT
796
+ */
797
+ 'manual-work-retry-frequency': t.StringC;
798
+ }>;
661
799
  }>]>>;
662
800
  }>;
663
801
  /** Type override */
@@ -1 +1 @@
1
- {"version":3,"file":"codecs.d.ts","sourceRoot":"","sources":["../src/codecs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAS3B;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;IACtB,wCAAwC;;EAExC,CAAC;AAEH,oB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AkOjE;;OAEG;;QA7ED,yCAAyC;;QAEzC;;;WAGG;;;QAIH,uCAAuC;;QAEvC,0DAA0D;;QAE1D,gFAAgF;;QAEhF;;;;WAIG;;QAEH;;;WAGG;;QAEH;;;;WAIG;;QAEH;;;WAGG;;QAEH;;;;;;WAMG;;QAEH;;;WAGG;;QAEH;;;WAGG;;YAjIH,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;;;;EAkGH,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
  /**
@@ -203,6 +238,14 @@ exports.DataSiloInput = t.intersection([
203
238
  * for managing this data silo
204
239
  */
205
240
  owners: t.array(t.string),
241
+ /**
242
+ * The names of teams within your Transcend instance that should be responsible
243
+ * for managing this data silo.
244
+ *
245
+ * @see: https://docs.transcend.io/docs/security/access-control#teams
246
+ * for more information about how to create and manage teams
247
+ */
248
+ teams: t.array(t.string),
206
249
  /**
207
250
  * Specify this flag if the data silo is under development and should not be included
208
251
  * in production privacy request workflows. Will still sync metadata to app.transcend.io.
@@ -213,6 +256,7 @@ exports.DataSiloInput = t.intersection([
213
256
  * for further details.
214
257
  */
215
258
  datapoints: t.array(exports.DatapointInput),
259
+ 'email-settings': exports.PromptAVendorEmailSettings,
216
260
  }),
217
261
  ]);
218
262
  exports.TranscendInput = t.partial({
@@ -220,6 +264,10 @@ exports.TranscendInput = t.partial({
220
264
  * API key definitions
221
265
  */
222
266
  'api-keys': t.array(exports.ApiKeyInput),
267
+ /**
268
+ * Email template definitions
269
+ */
270
+ templates: t.array(exports.TemplateInput),
223
271
  /**
224
272
  * Enricher definitions
225
273
  */
@@ -1 +1 @@
1
- {"version":3,"file":"codecs.js","sourceRoot":"","sources":["../src/codecs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yDAA+D;AAC/D,+DAKqC;AAErC;;;;;;;GAOG;AACU,QAAA,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;IAChC,wCAAwC;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM;CAChB,CAAC,CAAC;AAKH;;;;;;;;;;;GAWG;AACU,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,CAAC,CAAC,IAAI,CAAC;QACL,wCAAwC;QACxC,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,8BAA8B;QAC9B,GAAG,EAAE,CAAC,CAAC,MAAM;QACb;;;;WAIG;QACH,kBAAkB,E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AM;KAC1B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,uCAAuC;QACvC,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,0DAA0D;QAC1D,GAAG,EAAE,CAAC,CAAC,MAAM;QACb,gFAAgF;QAChF,eAAe,EAAE,CAAC,CAAC,MAAM;QACzB;;;;WAIG;QACH,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAClC;;;WAGG;QACH,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAClC;;;;WAIG;QACH,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAC1C;;;WAGG;QACH,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACzB;;;;;;WAMG;QACH,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACxB;;;WAGG;QACH,QAAQ,EAAE,CAAC,CAAC,OAAO;QACnB;;;WAGG;QACH,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAc,CAAC;QACnC,gBAAgB,EAAE,kCAA0B;KAC7C,CAAC;CACH,CAAC,CAAC;AAKU,QAAA,cAAc,GAAG,CAAC,CAAC,OAAO,CAAC;IACtC;;OAEG;IACH,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"}
@@ -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,QAoBtB,CAAC;AAEF,eAAO,MAAM,SAAS,QA4BrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAgC5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAoC5B,CAAC"}
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,QAwCrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAkC5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAyC5B,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,19 @@ exports.DATA_SILO = (0, graphql_request_1.gql) `
48
51
  owners {
49
52
  email
50
53
  }
54
+ teams {
55
+ id
56
+ name
57
+ }
58
+ catalog {
59
+ hasAvcFunctionality
60
+ }
51
61
  isLive
62
+ promptAVendorEmailSendFrequency
63
+ promptAVendorEmailSendType
64
+ promptAVendorEmailIncludeIdentifiersAttachment
65
+ promptAVendorEmailCompletionLinkType
66
+ manualWorkRetryFrequency
52
67
  }
53
68
  }
54
69
  `;
@@ -64,6 +79,7 @@ exports.UPDATE_DATA_SILO = (0, graphql_request_1.gql) `
64
79
  $dataSubjectBlockListIds: [ID!]
65
80
  $dependedOnDataSiloTitles: [String!]
66
81
  $ownerEmails: [String!]
82
+ $teamNames: [String!]
67
83
  $apiKeyId: ID
68
84
  ) {
69
85
  updateDataSilo(
@@ -78,6 +94,7 @@ exports.UPDATE_DATA_SILO = (0, graphql_request_1.gql) `
78
94
  dataSubjectBlockListIds: $dataSubjectBlockListIds
79
95
  dependedOnDataSiloTitles: $dependedOnDataSiloTitles
80
96
  ownerEmails: $ownerEmails
97
+ teamNames: $teamNames
81
98
  apiKeyId: $apiKeyId
82
99
  }
83
100
  ) {
@@ -97,6 +114,7 @@ exports.CREATE_DATA_SILO = (0, graphql_request_1.gql) `
97
114
  $dataSubjectBlockListIds: [ID!]
98
115
  $dependedOnDataSiloTitles: [String!]
99
116
  $ownerEmails: [String!]
117
+ $teamNames: [String!]
100
118
  $apiKeyId: ID
101
119
  ) {
102
120
  connectDataSilo(
@@ -112,13 +130,42 @@ exports.CREATE_DATA_SILO = (0, graphql_request_1.gql) `
112
130
  dependedOnDataSiloTitles: $dependedOnDataSiloTitles
113
131
  ownerEmails: $ownerEmails
114
132
  apiKeyId: $apiKeyId
133
+ teamNames: $teamNames
115
134
  }
116
135
  ) {
117
136
  dataSilo {
118
137
  id
119
138
  title
120
139
  type
140
+ catalog {
141
+ hasAvcFunctionality
142
+ }
143
+ }
144
+ }
145
+ }
146
+ `;
147
+ exports.UPDATE_PROMPT_A_VENDOR_SETTINGS = (0, graphql_request_1.gql) `
148
+ mutation UpdatePromptAVendorEmailSendSettings(
149
+ $dataSiloId: ID!
150
+ $notifyEmailAddress: String
151
+ $promptAVendorEmailSendFrequency: Int
152
+ $promptAVendorEmailSendType: PromptAVendorEmailSendType
153
+ $promptAVendorEmailIncludeIdentifiersAttachment: Boolean
154
+ $promptAVendorEmailCompletionLinkType: PromptAVendorEmailCompletionLinkType
155
+ $manualWorkRetryFrequency: String
156
+ ) {
157
+ updatePromptAVendorEmailSendSettings(
158
+ input: {
159
+ dataSiloId: $dataSiloId
160
+ notifyEmailAddress: $notifyEmailAddress
161
+ promptAVendorEmailSendFrequency: $promptAVendorEmailSendFrequency
162
+ promptAVendorEmailSendType: $promptAVendorEmailSendType
163
+ promptAVendorEmailIncludeIdentifiersAttachment: $promptAVendorEmailIncludeIdentifiersAttachment
164
+ promptAVendorEmailCompletionLinkType: $promptAVendorEmailCompletionLinkType
165
+ manualWorkRetryFrequency: $manualWorkRetryFrequency
121
166
  }
167
+ ) {
168
+ clientMutationId
122
169
  }
123
170
  }
124
171
  `;
@@ -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;;;;;;;;;;;;;;;;;;;;CAoB5B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B3B,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgClC,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoClC,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC3B,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkClC,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyClC,CAAC;AAEW,QAAA,+BAA+B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBjD,CAAC"}
@@ -5,4 +5,5 @@ export * from './identifier';
5
5
  export * from './dataSubject';
6
6
  export * from './apiKey';
7
7
  export * from './siloDiscovery';
8
+ export * from './template';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ export declare const TEMPLATES: string;
2
+ export declare const CREATE_TEMPLATE: string;
3
+ export declare const UPDATE_TEMPLATE: string;
4
+ //# sourceMappingURL=template.d.ts.map
@@ -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"}
@@ -7,4 +7,5 @@ export * from './syncConfigurationToTranscend';
7
7
  export * from './syncDataSilos';
8
8
  export * from './syncEnrichers';
9
9
  export * from './uploadSiloDiscoveryResults';
10
+ export * from './syncTemplates';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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;AAYhD;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,cAAc,CAAC,CA0HzB"}
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,CA2JzB"}
@@ -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, teams, subjectBlocklist, isLive, promptAVendorEmailSendFrequency, promptAVendorEmailSendType, promptAVendorEmailIncludeIdentifiersAttachment, promptAVendorEmailCompletionLinkType, manualWorkRetryFrequency, catalog, }, dataPoints,]) => {
57
62
  var _a;
58
63
  return ({
59
64
  title,
@@ -64,13 +69,31 @@ 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
- 'deletion-dependencies': dependentDataSilos.map(({ title }) => title),
69
- owners: owners.map(({ email }) => email),
72
+ ...(dependentDataSilos.length > 0
73
+ ? {
74
+ 'deletion-dependencies': dependentDataSilos.map(({ title }) => title),
75
+ }
76
+ : {}),
77
+ ...(owners.length > 0
78
+ ? { owners: owners.map(({ email }) => email) }
79
+ : {}),
80
+ ...(teams.length > 0 ? { teams: teams.map(({ name }) => name) } : {}),
70
81
  disabled: !isLive,
71
82
  'data-subjects': subjectBlocklist.length > 0
72
83
  ? (0, fetchDataSubjects_1.convertToDataSubjectAllowlist)(subjectBlocklist.map(({ type }) => type), dataSubjects)
73
84
  : undefined,
85
+ ...(catalog.hasAvcFunctionality
86
+ ? {
87
+ 'email-settings': {
88
+ 'notify-email-address': notifyEmailAddress || undefined,
89
+ 'send-frequency': promptAVendorEmailSendFrequency,
90
+ 'send-type': promptAVendorEmailSendType,
91
+ 'include-identifiers-attachment': promptAVendorEmailIncludeIdentifiersAttachment,
92
+ 'completion-link-type': promptAVendorEmailCompletionLinkType,
93
+ 'manual-work-retry-frequency': manualWorkRetryFrequency,
94
+ },
95
+ }
96
+ : {}),
74
97
  datapoints: dataPoints.map((dataPoint) => ({
75
98
  title: dataPoint.title.defaultMessage,
76
99
  description: dataPoint.description.defaultMessage,