@transcend-io/cli 8.31.1 → 8.32.4
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/README.md +121 -0
- package/dist/bin/bash-complete.cjs +1 -1
- package/dist/bin/cli.cjs +1 -1
- package/dist/bin/deprecated-command.cjs +2 -2
- package/dist/{chunk-M7OVJJGB.cjs → chunk-22KX2NM4.cjs} +4 -4
- package/dist/{chunk-M7OVJJGB.cjs.map → chunk-22KX2NM4.cjs.map} +1 -1
- package/dist/chunk-56QKBG2R.cjs +3001 -0
- package/dist/chunk-56QKBG2R.cjs.map +1 -0
- package/dist/chunk-6TKTYQIF.cjs +3 -0
- package/dist/chunk-6TKTYQIF.cjs.map +1 -0
- package/dist/{chunk-DIB7IOEX.cjs → chunk-BPOXNSPY.cjs} +2 -2
- package/dist/{chunk-DIB7IOEX.cjs.map → chunk-BPOXNSPY.cjs.map} +1 -1
- package/dist/chunk-CM7VJEOY.cjs +4 -0
- package/dist/{chunk-SKOTYI3A.cjs.map → chunk-CM7VJEOY.cjs.map} +1 -1
- package/dist/chunk-D3VRD5F5.cjs +2 -0
- package/dist/chunk-D3VRD5F5.cjs.map +1 -0
- package/dist/{chunk-XXFLFF7Q.cjs → chunk-DQCPGPXG.cjs} +2 -2
- package/dist/{chunk-XXFLFF7Q.cjs.map → chunk-DQCPGPXG.cjs.map} +1 -1
- package/dist/{chunk-MXT7N555.cjs → chunk-DYBVUGHH.cjs} +22 -22
- package/dist/chunk-DYBVUGHH.cjs.map +1 -0
- package/dist/chunk-IHUCIK5T.cjs +2 -0
- package/dist/{chunk-Q2RJZGYW.cjs.map → chunk-IHUCIK5T.cjs.map} +1 -1
- package/dist/{chunk-7H4ALAHC.cjs → chunk-LQUVB4MI.cjs} +4 -4
- package/dist/chunk-LQUVB4MI.cjs.map +1 -0
- package/dist/chunk-P5GD5LAK.cjs +2 -0
- package/dist/chunk-P5GD5LAK.cjs.map +1 -0
- package/dist/chunk-PGO2YKRX.cjs +12 -0
- package/dist/chunk-PGO2YKRX.cjs.map +1 -0
- package/dist/{chunk-ALOB5SWZ.cjs → chunk-VCPZG4FJ.cjs} +2 -2
- package/dist/{chunk-ALOB5SWZ.cjs.map → chunk-VCPZG4FJ.cjs.map} +1 -1
- package/dist/chunk-VUQAH7YK.cjs +12 -0
- package/dist/chunk-VUQAH7YK.cjs.map +1 -0
- package/dist/{impl-VXOHC45F.cjs → impl-2JA6BPE7.cjs} +2 -2
- package/dist/{impl-VXOHC45F.cjs.map → impl-2JA6BPE7.cjs.map} +1 -1
- package/dist/{impl-PKWSORXX.cjs → impl-4AI7T6RD.cjs} +2 -2
- package/dist/{impl-PKWSORXX.cjs.map → impl-4AI7T6RD.cjs.map} +1 -1
- package/dist/impl-4LAJNPQ4.cjs +16 -0
- package/dist/impl-4LAJNPQ4.cjs.map +1 -0
- package/dist/{impl-4CWCLU5Z.cjs → impl-4YFJOKCA.cjs} +2 -2
- package/dist/{impl-4CWCLU5Z.cjs.map → impl-4YFJOKCA.cjs.map} +1 -1
- package/dist/{impl-WMI46UXI.cjs → impl-5RX3NB6C.cjs} +2 -2
- package/dist/{impl-WMI46UXI.cjs.map → impl-5RX3NB6C.cjs.map} +1 -1
- package/dist/{impl-VUAC7AYF.cjs → impl-66CDS7IN.cjs} +2 -2
- package/dist/{impl-VUAC7AYF.cjs.map → impl-66CDS7IN.cjs.map} +1 -1
- package/dist/{impl-542SIWQ2.cjs → impl-ADPBEB3N.cjs} +2 -2
- package/dist/{impl-542SIWQ2.cjs.map → impl-ADPBEB3N.cjs.map} +1 -1
- package/dist/{impl-REKQO7ZI.cjs → impl-B6DTQRYV.cjs} +2 -2
- package/dist/{impl-REKQO7ZI.cjs.map → impl-B6DTQRYV.cjs.map} +1 -1
- package/dist/impl-BHA2L6BP.cjs +2 -0
- package/dist/{impl-V3MXFXZF.cjs.map → impl-BHA2L6BP.cjs.map} +1 -1
- package/dist/impl-BLGX7DMN.cjs +6 -0
- package/dist/impl-BLGX7DMN.cjs.map +1 -0
- package/dist/{impl-XJBUIDZP.cjs → impl-DA7AASRR.cjs} +2 -2
- package/dist/{impl-XJBUIDZP.cjs.map → impl-DA7AASRR.cjs.map} +1 -1
- package/dist/{impl-OQAP7YDW.cjs → impl-EXHOBCQW.cjs} +2 -2
- package/dist/{impl-OQAP7YDW.cjs.map → impl-EXHOBCQW.cjs.map} +1 -1
- package/dist/{impl-D2HENZNO.cjs → impl-FRWZLZ2V.cjs} +2 -2
- package/dist/{impl-D2HENZNO.cjs.map → impl-FRWZLZ2V.cjs.map} +1 -1
- package/dist/impl-GA6T4SCB.cjs +2 -0
- package/dist/impl-GA6T4SCB.cjs.map +1 -0
- package/dist/{impl-RD5UOJY6.cjs → impl-GG3S2VBT.cjs} +2 -2
- package/dist/{impl-RD5UOJY6.cjs.map → impl-GG3S2VBT.cjs.map} +1 -1
- package/dist/impl-GZNNNSYW.cjs +7 -0
- package/dist/{impl-BQNXMBQ4.cjs.map → impl-GZNNNSYW.cjs.map} +1 -1
- package/dist/{impl-5VMEZB7F.cjs → impl-IOS3QLTX.cjs} +2 -2
- package/dist/{impl-5VMEZB7F.cjs.map → impl-IOS3QLTX.cjs.map} +1 -1
- package/dist/{impl-PHBUSAGS.cjs → impl-IQGUF37H.cjs} +2 -2
- package/dist/{impl-PHBUSAGS.cjs.map → impl-IQGUF37H.cjs.map} +1 -1
- package/dist/impl-IZIXOMMN.cjs +2 -0
- package/dist/impl-IZIXOMMN.cjs.map +1 -0
- package/dist/{impl-VT3C6SP4.cjs → impl-J5PWNHKL.cjs} +2 -2
- package/dist/{impl-VT3C6SP4.cjs.map → impl-J5PWNHKL.cjs.map} +1 -1
- package/dist/impl-JI6COVDW.cjs +2 -0
- package/dist/{impl-SRI65ZIC.cjs.map → impl-JI6COVDW.cjs.map} +1 -1
- package/dist/{impl-XLL66FXK.cjs → impl-JY7YM3QH.cjs} +2 -2
- package/dist/{impl-XLL66FXK.cjs.map → impl-JY7YM3QH.cjs.map} +1 -1
- package/dist/{impl-YGVW4RTA.cjs → impl-LKX6OLE2.cjs} +2 -2
- package/dist/{impl-YGVW4RTA.cjs.map → impl-LKX6OLE2.cjs.map} +1 -1
- package/dist/impl-MRC5UI22.cjs +2 -0
- package/dist/impl-MRC5UI22.cjs.map +1 -0
- package/dist/{impl-KQYINEBI.cjs → impl-NW57RBBR.cjs} +2 -2
- package/dist/{impl-KQYINEBI.cjs.map → impl-NW57RBBR.cjs.map} +1 -1
- package/dist/impl-QOCEM2K5.cjs +2 -0
- package/dist/{impl-JSXYZHX4.cjs.map → impl-QOCEM2K5.cjs.map} +1 -1
- package/dist/{impl-K2D3GTZG.cjs → impl-QPLTL2SO.cjs} +2 -2
- package/dist/{impl-K2D3GTZG.cjs.map → impl-QPLTL2SO.cjs.map} +1 -1
- package/dist/impl-R35FW4U7.cjs +9 -0
- package/dist/impl-R35FW4U7.cjs.map +1 -0
- package/dist/{impl-6ANYWCOV.cjs → impl-RMPDHVAH.cjs} +2 -2
- package/dist/{impl-6ANYWCOV.cjs.map → impl-RMPDHVAH.cjs.map} +1 -1
- package/dist/{impl-JQVCW52V.cjs → impl-S64WVKSC.cjs} +2 -2
- package/dist/{impl-JQVCW52V.cjs.map → impl-S64WVKSC.cjs.map} +1 -1
- package/dist/{impl-55GTRVMZ.cjs → impl-SE32ARTN.cjs} +2 -2
- package/dist/{impl-55GTRVMZ.cjs.map → impl-SE32ARTN.cjs.map} +1 -1
- package/dist/{impl-PWYKAVK4.cjs → impl-SSBP4ONX.cjs} +2 -2
- package/dist/{impl-PWYKAVK4.cjs.map → impl-SSBP4ONX.cjs.map} +1 -1
- package/dist/{impl-T67PUM7X.cjs → impl-UA7V6YEM.cjs} +2 -2
- package/dist/{impl-T67PUM7X.cjs.map → impl-UA7V6YEM.cjs.map} +1 -1
- package/dist/{impl-NK42TN4C.cjs → impl-WTGAAEUZ.cjs} +2 -2
- package/dist/{impl-NK42TN4C.cjs.map → impl-WTGAAEUZ.cjs.map} +1 -1
- package/dist/{impl-Q3P6DGHG.cjs → impl-WVOFYJLG.cjs} +2 -2
- package/dist/{impl-Q3P6DGHG.cjs.map → impl-WVOFYJLG.cjs.map} +1 -1
- package/dist/{impl-TCR3Y3J2.cjs → impl-X23VUODX.cjs} +2 -2
- package/dist/{impl-TCR3Y3J2.cjs.map → impl-X23VUODX.cjs.map} +1 -1
- package/dist/{impl-KRJNBGJ6.cjs → impl-XU54KM62.cjs} +2 -2
- package/dist/{impl-KRJNBGJ6.cjs.map → impl-XU54KM62.cjs.map} +1 -1
- package/dist/{impl-A7XL5O4W.cjs → impl-XYHIS7X5.cjs} +2 -2
- package/dist/{impl-A7XL5O4W.cjs.map → impl-XYHIS7X5.cjs.map} +1 -1
- package/dist/{impl-VL3CJ2OT.cjs → impl-Y3MY5EKD.cjs} +2 -2
- package/dist/{impl-VL3CJ2OT.cjs.map → impl-Y3MY5EKD.cjs.map} +1 -1
- package/dist/impl-YIPC6MAR.cjs +6 -0
- package/dist/impl-YIPC6MAR.cjs.map +1 -0
- package/dist/{impl-JFYHXSOV.cjs → impl-Z54SB7SM.cjs} +2 -2
- package/dist/{impl-JFYHXSOV.cjs.map → impl-Z54SB7SM.cjs.map} +1 -1
- package/dist/{impl-GEEPG7OH.cjs → impl-ZTEP5CYM.cjs} +2 -2
- package/dist/{impl-GEEPG7OH.cjs.map → impl-ZTEP5CYM.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/package.json +2 -2
- package/dist/chunk-52MA7ZLS.cjs +0 -12
- package/dist/chunk-52MA7ZLS.cjs.map +0 -1
- package/dist/chunk-55B57ZAY.cjs +0 -3001
- package/dist/chunk-55B57ZAY.cjs.map +0 -1
- package/dist/chunk-7H4ALAHC.cjs.map +0 -1
- package/dist/chunk-G522ZIHS.cjs +0 -3
- package/dist/chunk-G522ZIHS.cjs.map +0 -1
- package/dist/chunk-HCEZRZHV.cjs +0 -12
- package/dist/chunk-HCEZRZHV.cjs.map +0 -1
- package/dist/chunk-M3Y6JH6I.cjs +0 -2
- package/dist/chunk-M3Y6JH6I.cjs.map +0 -1
- package/dist/chunk-MXT7N555.cjs.map +0 -1
- package/dist/chunk-NC6VWOMN.cjs +0 -2
- package/dist/chunk-NC6VWOMN.cjs.map +0 -1
- package/dist/chunk-Q2RJZGYW.cjs +0 -2
- package/dist/chunk-SKOTYI3A.cjs +0 -4
- package/dist/impl-BQNXMBQ4.cjs +0 -7
- package/dist/impl-CFYRFABZ.cjs +0 -9
- package/dist/impl-CFYRFABZ.cjs.map +0 -1
- package/dist/impl-JSXYZHX4.cjs +0 -2
- package/dist/impl-RI3WQFOE.cjs +0 -6
- package/dist/impl-RI3WQFOE.cjs.map +0 -1
- package/dist/impl-SRI65ZIC.cjs +0 -2
- package/dist/impl-U46BMUFL.cjs +0 -2
- package/dist/impl-U46BMUFL.cjs.map +0 -1
- package/dist/impl-UVQJ7HSK.cjs +0 -6
- package/dist/impl-UVQJ7HSK.cjs.map +0 -1
- package/dist/impl-V3MXFXZF.cjs +0 -2
- package/dist/impl-ZAKPYQ32.cjs +0 -2
- package/dist/impl-ZAKPYQ32.cjs.map +0 -1
- package/dist/impl-ZTYQ3IB5.cjs +0 -2
- package/dist/impl-ZTYQ3IB5.cjs.map +0 -1
|
@@ -0,0 +1,3001 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunkDQCPGPXGcjs = require('./chunk-DQCPGPXG.cjs');var _bluebird = require('bluebird'); var _bluebird2 = _interopRequireDefault(_bluebird);var{map:E,mapSeries:b}=_bluebird2.default;var _graphqlrequest = require('graphql-request');var $n=_graphqlrequest.gql`
|
|
2
|
+
query TranscendCliDataPoints(
|
|
3
|
+
$filterBy: DataPointFiltersInput
|
|
4
|
+
$first: Int!
|
|
5
|
+
$offset: Int!
|
|
6
|
+
) {
|
|
7
|
+
dataPoints(
|
|
8
|
+
filterBy: $filterBy
|
|
9
|
+
first: $first
|
|
10
|
+
offset: $offset
|
|
11
|
+
useMaster: false
|
|
12
|
+
orderBy: [
|
|
13
|
+
{ field: createdAt, direction: ASC }
|
|
14
|
+
{ field: name, direction: ASC }
|
|
15
|
+
]
|
|
16
|
+
) {
|
|
17
|
+
nodes {
|
|
18
|
+
id
|
|
19
|
+
title {
|
|
20
|
+
defaultMessage
|
|
21
|
+
}
|
|
22
|
+
description {
|
|
23
|
+
defaultMessage
|
|
24
|
+
}
|
|
25
|
+
owners {
|
|
26
|
+
email
|
|
27
|
+
}
|
|
28
|
+
teams {
|
|
29
|
+
name
|
|
30
|
+
}
|
|
31
|
+
name
|
|
32
|
+
path
|
|
33
|
+
actionSettings {
|
|
34
|
+
type
|
|
35
|
+
active
|
|
36
|
+
}
|
|
37
|
+
dataCollection {
|
|
38
|
+
title {
|
|
39
|
+
defaultMessage
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
dbIntegrationQueries {
|
|
43
|
+
query
|
|
44
|
+
suggestedQuery
|
|
45
|
+
requestType
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`,Ud= exports.d =_graphqlrequest.gql`
|
|
51
|
+
query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
|
|
52
|
+
dataPoints(filterBy: $filterBy, useMaster: false) {
|
|
53
|
+
totalCount
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,xn= exports.e =_graphqlrequest.gql`
|
|
57
|
+
query TranscendCliSubDataPoints(
|
|
58
|
+
$filterBy: SubDataPointFiltersInput
|
|
59
|
+
$first: Int!
|
|
60
|
+
$offset: Int!
|
|
61
|
+
) {
|
|
62
|
+
subDataPoints(
|
|
63
|
+
filterBy: $filterBy
|
|
64
|
+
first: $first
|
|
65
|
+
offset: $offset
|
|
66
|
+
useMaster: false
|
|
67
|
+
) {
|
|
68
|
+
nodes {
|
|
69
|
+
id
|
|
70
|
+
name
|
|
71
|
+
description
|
|
72
|
+
purposes {
|
|
73
|
+
name
|
|
74
|
+
purpose
|
|
75
|
+
}
|
|
76
|
+
categories {
|
|
77
|
+
name
|
|
78
|
+
category
|
|
79
|
+
}
|
|
80
|
+
accessRequestVisibilityEnabled
|
|
81
|
+
erasureRequestRedactionEnabled
|
|
82
|
+
attributeValues {
|
|
83
|
+
attributeKey {
|
|
84
|
+
name
|
|
85
|
+
}
|
|
86
|
+
name
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`,Bd= exports.f =_graphqlrequest.gql`
|
|
92
|
+
query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
|
|
93
|
+
subDataPoints(filterBy: $filterBy, useMaster: false) {
|
|
94
|
+
totalCount
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
`,Dn= exports.g =_graphqlrequest.gql`
|
|
98
|
+
query TranscendCliSubDataPointGuesses(
|
|
99
|
+
$filterBy: SubDataPointFiltersInput
|
|
100
|
+
$first: Int!
|
|
101
|
+
$offset: Int!
|
|
102
|
+
) {
|
|
103
|
+
subDataPoints(
|
|
104
|
+
filterBy: $filterBy
|
|
105
|
+
first: $first
|
|
106
|
+
offset: $offset
|
|
107
|
+
useMaster: false
|
|
108
|
+
) {
|
|
109
|
+
nodes {
|
|
110
|
+
id
|
|
111
|
+
name
|
|
112
|
+
description
|
|
113
|
+
purposes {
|
|
114
|
+
name
|
|
115
|
+
purpose
|
|
116
|
+
}
|
|
117
|
+
categories {
|
|
118
|
+
name
|
|
119
|
+
category
|
|
120
|
+
}
|
|
121
|
+
pendingCategoryGuesses {
|
|
122
|
+
category {
|
|
123
|
+
name
|
|
124
|
+
category
|
|
125
|
+
}
|
|
126
|
+
status
|
|
127
|
+
confidence
|
|
128
|
+
classifierVersion
|
|
129
|
+
}
|
|
130
|
+
accessRequestVisibilityEnabled
|
|
131
|
+
erasureRequestRedactionEnabled
|
|
132
|
+
attributeValues {
|
|
133
|
+
attributeKey {
|
|
134
|
+
name
|
|
135
|
+
}
|
|
136
|
+
name
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
`,qn= exports.h =_graphqlrequest.gql`
|
|
142
|
+
mutation TranscendCliUpdateOrCreateDataPoint(
|
|
143
|
+
$dataSiloId: ID!
|
|
144
|
+
$name: String!
|
|
145
|
+
$path: [String!]
|
|
146
|
+
$title: String
|
|
147
|
+
$description: String
|
|
148
|
+
$ownerIds: [ID!]
|
|
149
|
+
$ownerEmails: [String!]
|
|
150
|
+
$teamNames: [String!]
|
|
151
|
+
$teamIds: [ID!]
|
|
152
|
+
$dataCollectionTag: String
|
|
153
|
+
$querySuggestions: [DbIntegrationQuerySuggestionInput!]
|
|
154
|
+
$enabledActions: [RequestActionObjectResolver!]
|
|
155
|
+
$subDataPoints: [DataPointSubDataPointInput!]
|
|
156
|
+
) {
|
|
157
|
+
updateOrCreateDataPoint(
|
|
158
|
+
input: {
|
|
159
|
+
dataSiloId: $dataSiloId
|
|
160
|
+
name: $name
|
|
161
|
+
path: $path
|
|
162
|
+
title: $title
|
|
163
|
+
teamNames: $teamNames
|
|
164
|
+
ownerEmails: $ownerEmails
|
|
165
|
+
dataCollectionTag: $dataCollectionTag
|
|
166
|
+
description: $description
|
|
167
|
+
ownerIds: $ownerIds
|
|
168
|
+
teamIds: $teamIds
|
|
169
|
+
querySuggestions: $querySuggestions
|
|
170
|
+
enabledActions: $enabledActions
|
|
171
|
+
subDataPoints: $subDataPoints
|
|
172
|
+
}
|
|
173
|
+
) {
|
|
174
|
+
dataPoint {
|
|
175
|
+
id
|
|
176
|
+
name
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`,Qd= exports.i =_graphqlrequest.gql`
|
|
181
|
+
query TranscendCliDataPointCsvExport(
|
|
182
|
+
$filterBy: DataPointFiltersInput
|
|
183
|
+
$first: Int!
|
|
184
|
+
) {
|
|
185
|
+
dataPoints(filterBy: $filterBy, first: $first, useMaster: false) {
|
|
186
|
+
nodes {
|
|
187
|
+
id
|
|
188
|
+
title {
|
|
189
|
+
defaultMessage
|
|
190
|
+
}
|
|
191
|
+
description {
|
|
192
|
+
defaultMessage
|
|
193
|
+
}
|
|
194
|
+
owners {
|
|
195
|
+
email
|
|
196
|
+
}
|
|
197
|
+
teams {
|
|
198
|
+
name
|
|
199
|
+
}
|
|
200
|
+
name
|
|
201
|
+
path
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
`;var jd=_graphqlrequest.gql`
|
|
206
|
+
query TranscendCliEntryCount(
|
|
207
|
+
$filterBy: UnstructuredSubDataPointRecommendationsFilterInput
|
|
208
|
+
) {
|
|
209
|
+
unstructuredSubDataPointRecommendations(
|
|
210
|
+
filterBy: $filterBy
|
|
211
|
+
useMaster: false
|
|
212
|
+
) {
|
|
213
|
+
totalCount
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
`;var vn=_graphqlrequest.gql`
|
|
217
|
+
query TranscendCliDataSilos(
|
|
218
|
+
$filterBy: DataSiloFiltersInput!
|
|
219
|
+
$first: Int!
|
|
220
|
+
$offset: Int!
|
|
221
|
+
) {
|
|
222
|
+
dataSilos(
|
|
223
|
+
filterBy: $filterBy
|
|
224
|
+
first: $first
|
|
225
|
+
offset: $offset
|
|
226
|
+
orderBy: [
|
|
227
|
+
{ field: createdAt, direction: ASC }
|
|
228
|
+
{ field: title, direction: ASC }
|
|
229
|
+
]
|
|
230
|
+
useMaster: false
|
|
231
|
+
) {
|
|
232
|
+
nodes {
|
|
233
|
+
id
|
|
234
|
+
title
|
|
235
|
+
link
|
|
236
|
+
type
|
|
237
|
+
catalog {
|
|
238
|
+
hasAvcFunctionality
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
`,zd= exports.l =_graphqlrequest.gql`
|
|
244
|
+
query TranscendCliDataSiloExport(
|
|
245
|
+
$filterBy: DataSiloFiltersInput!
|
|
246
|
+
$first: Int!
|
|
247
|
+
) {
|
|
248
|
+
dataSilos(filterBy: $filterBy, first: $first, useMaster: false) {
|
|
249
|
+
nodes {
|
|
250
|
+
id
|
|
251
|
+
title
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
`,Ln= exports.m =_graphqlrequest.gql`
|
|
256
|
+
query TranscendCliDataSilosEnriched(
|
|
257
|
+
$filterBy: DataSiloFiltersInput!
|
|
258
|
+
$first: Int!
|
|
259
|
+
$offset: Int!
|
|
260
|
+
) {
|
|
261
|
+
dataSilos(
|
|
262
|
+
filterBy: $filterBy
|
|
263
|
+
first: $first
|
|
264
|
+
offset: $offset
|
|
265
|
+
orderBy: [
|
|
266
|
+
{ field: createdAt, direction: ASC }
|
|
267
|
+
{ field: title, direction: ASC }
|
|
268
|
+
]
|
|
269
|
+
useMaster: false
|
|
270
|
+
) {
|
|
271
|
+
nodes {
|
|
272
|
+
id
|
|
273
|
+
title
|
|
274
|
+
description
|
|
275
|
+
type
|
|
276
|
+
outerType
|
|
277
|
+
link
|
|
278
|
+
country
|
|
279
|
+
countrySubDivision
|
|
280
|
+
url
|
|
281
|
+
notifyEmailAddress
|
|
282
|
+
attributeValues {
|
|
283
|
+
attributeKey {
|
|
284
|
+
name
|
|
285
|
+
}
|
|
286
|
+
name
|
|
287
|
+
}
|
|
288
|
+
apiKeys {
|
|
289
|
+
title
|
|
290
|
+
}
|
|
291
|
+
subjectBlocklist {
|
|
292
|
+
type
|
|
293
|
+
}
|
|
294
|
+
identifiers {
|
|
295
|
+
name
|
|
296
|
+
isConnected
|
|
297
|
+
}
|
|
298
|
+
dependentDataSilos {
|
|
299
|
+
title
|
|
300
|
+
}
|
|
301
|
+
owners {
|
|
302
|
+
email
|
|
303
|
+
}
|
|
304
|
+
teams {
|
|
305
|
+
id
|
|
306
|
+
name
|
|
307
|
+
}
|
|
308
|
+
catalog {
|
|
309
|
+
hasAvcFunctionality
|
|
310
|
+
}
|
|
311
|
+
isLive
|
|
312
|
+
promptAVendorEmailSendFrequency
|
|
313
|
+
promptAVendorEmailSendType
|
|
314
|
+
promptAVendorEmailIncludeIdentifiersAttachment
|
|
315
|
+
promptAVendorEmailCompletionLinkType
|
|
316
|
+
manualWorkRetryFrequency
|
|
317
|
+
discoveredBy {
|
|
318
|
+
title
|
|
319
|
+
}
|
|
320
|
+
businessEntities {
|
|
321
|
+
title
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
`,Vr= exports.n =_graphqlrequest.gql`
|
|
327
|
+
mutation TranscendCliUpdateDataSilo($input: UpdateDataSilosInput!) {
|
|
328
|
+
updateDataSilos(input: $input) {
|
|
329
|
+
clientMutationId
|
|
330
|
+
dataSilos {
|
|
331
|
+
id
|
|
332
|
+
title
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
`,kn= exports.o =_graphqlrequest.gql`
|
|
337
|
+
mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
|
|
338
|
+
createDataSilos(input: $input) {
|
|
339
|
+
dataSilos {
|
|
340
|
+
id
|
|
341
|
+
title
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
`;var _n=_graphqlrequest.gql`
|
|
346
|
+
query TranscendCliEnrichers($title: String, $first: Int!, $offset: Int!) {
|
|
347
|
+
enrichers(
|
|
348
|
+
filterBy: { text: $title }
|
|
349
|
+
first: $first
|
|
350
|
+
offset: $offset
|
|
351
|
+
useMaster: false
|
|
352
|
+
orderBy: [
|
|
353
|
+
{ field: createdAt, direction: ASC }
|
|
354
|
+
{ field: title, direction: ASC }
|
|
355
|
+
]
|
|
356
|
+
) {
|
|
357
|
+
nodes {
|
|
358
|
+
id
|
|
359
|
+
title
|
|
360
|
+
url
|
|
361
|
+
type
|
|
362
|
+
expirationDuration
|
|
363
|
+
lookerQueryTitle
|
|
364
|
+
testRegex
|
|
365
|
+
transitionRequestStatus
|
|
366
|
+
phoneNumbers
|
|
367
|
+
regionList
|
|
368
|
+
inputIdentifier {
|
|
369
|
+
name
|
|
370
|
+
}
|
|
371
|
+
identifiers {
|
|
372
|
+
name
|
|
373
|
+
}
|
|
374
|
+
dataSubjects {
|
|
375
|
+
type
|
|
376
|
+
}
|
|
377
|
+
actions
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
`,On= exports.q =_graphqlrequest.gql`
|
|
382
|
+
query TranscendCliInitializer {
|
|
383
|
+
initializer {
|
|
384
|
+
id
|
|
385
|
+
identifiers {
|
|
386
|
+
name
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
`,Gn= exports.r =_graphqlrequest.gql`
|
|
391
|
+
mutation TranscendCliCreateEnricher($input: EnricherInput!) {
|
|
392
|
+
createEnricher(input: $input) {
|
|
393
|
+
clientMutationId
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
`,Nn= exports.s =_graphqlrequest.gql`
|
|
397
|
+
mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
|
|
398
|
+
updateEnricher(input: $input) {
|
|
399
|
+
clientMutationId
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
`;var Mn=_graphqlrequest.gql`
|
|
403
|
+
query TranscendCliCatalogs($first: Int!, $offset: Int!) {
|
|
404
|
+
catalogs(first: $first, offset: $offset, filterBy: {}, useMaster: false) {
|
|
405
|
+
nodes {
|
|
406
|
+
integrationName
|
|
407
|
+
title
|
|
408
|
+
hasApiFunctionality
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
`;var Fn=_graphqlrequest.gql`
|
|
413
|
+
query TranscendCliIdentifiers($first: Int!, $offset: Int!) {
|
|
414
|
+
identifiers(
|
|
415
|
+
first: $first
|
|
416
|
+
offset: $offset
|
|
417
|
+
useMaster: false
|
|
418
|
+
orderBy: [
|
|
419
|
+
{ field: createdAt, direction: ASC }
|
|
420
|
+
{ field: name, direction: ASC }
|
|
421
|
+
]
|
|
422
|
+
) {
|
|
423
|
+
nodes {
|
|
424
|
+
id
|
|
425
|
+
name
|
|
426
|
+
type
|
|
427
|
+
regex
|
|
428
|
+
selectOptions
|
|
429
|
+
privacyCenterVisibility
|
|
430
|
+
dataSubjects {
|
|
431
|
+
type
|
|
432
|
+
}
|
|
433
|
+
isRequiredInForm
|
|
434
|
+
placeholder
|
|
435
|
+
displayTitle {
|
|
436
|
+
defaultMessage
|
|
437
|
+
}
|
|
438
|
+
displayDescription {
|
|
439
|
+
defaultMessage
|
|
440
|
+
}
|
|
441
|
+
displayOrder
|
|
442
|
+
isUniqueOnPreferenceStore
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
`,Un= exports.v =_graphqlrequest.gql`
|
|
447
|
+
query TranscendCliNewIdentifierTypes {
|
|
448
|
+
newIdentifierTypes {
|
|
449
|
+
name
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
`,Bn= exports.w =_graphqlrequest.gql`
|
|
453
|
+
mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
|
|
454
|
+
createIdentifier(input: $input) {
|
|
455
|
+
identifier {
|
|
456
|
+
id
|
|
457
|
+
name
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
`,Qn= exports.x =_graphqlrequest.gql`
|
|
462
|
+
mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
|
|
463
|
+
updateIdentifier(input: $input) {
|
|
464
|
+
clientMutationId
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
`;var nr=_graphqlrequest.gql`
|
|
468
|
+
query TranscendCliDataSubjects {
|
|
469
|
+
internalSubjects {
|
|
470
|
+
id
|
|
471
|
+
title {
|
|
472
|
+
defaultMessage
|
|
473
|
+
}
|
|
474
|
+
active
|
|
475
|
+
type
|
|
476
|
+
adminDashboardDefaultSilentMode
|
|
477
|
+
actions {
|
|
478
|
+
type
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
`,Vn= exports.z =_graphqlrequest.gql`
|
|
483
|
+
mutation TranscendCliCreateDataSubject($type: String!) {
|
|
484
|
+
createSubject(input: { type: $type, title: $type, subjectClass: OTHER }) {
|
|
485
|
+
subject {
|
|
486
|
+
id
|
|
487
|
+
type
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
`,Kn= exports.A =_graphqlrequest.gql`
|
|
492
|
+
mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
|
|
493
|
+
updateSubject(input: $input) {
|
|
494
|
+
clientMutationId
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
`,jn= exports.B =_graphqlrequest.gql`
|
|
498
|
+
mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
|
|
499
|
+
toggleSubject(input: $input) {
|
|
500
|
+
clientMutationId
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
`;var Yn=_graphqlrequest.gql`
|
|
504
|
+
query TranscendCliRepositories(
|
|
505
|
+
$first: Int!
|
|
506
|
+
$offset: Int!
|
|
507
|
+
$input: RepositoryFiltersInput
|
|
508
|
+
) {
|
|
509
|
+
repositories(
|
|
510
|
+
first: $first
|
|
511
|
+
offset: $offset
|
|
512
|
+
filterBy: $input
|
|
513
|
+
orderBy: [
|
|
514
|
+
{ field: createdAt, direction: ASC }
|
|
515
|
+
{ field: name, direction: ASC }
|
|
516
|
+
]
|
|
517
|
+
) {
|
|
518
|
+
nodes {
|
|
519
|
+
id
|
|
520
|
+
name
|
|
521
|
+
description
|
|
522
|
+
url
|
|
523
|
+
teams {
|
|
524
|
+
id
|
|
525
|
+
name
|
|
526
|
+
}
|
|
527
|
+
owners {
|
|
528
|
+
id
|
|
529
|
+
email
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
`,Zn= exports.D =_graphqlrequest.gql`
|
|
535
|
+
mutation TranscendCliUpdateRepositories($input: UpdateRepositoriesInput!) {
|
|
536
|
+
updateRepositories(input: $input) {
|
|
537
|
+
clientMutationId
|
|
538
|
+
repositories {
|
|
539
|
+
id
|
|
540
|
+
name
|
|
541
|
+
url
|
|
542
|
+
teams {
|
|
543
|
+
id
|
|
544
|
+
name
|
|
545
|
+
}
|
|
546
|
+
owners {
|
|
547
|
+
id
|
|
548
|
+
email
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
`,zn= exports.E =_graphqlrequest.gql`
|
|
554
|
+
mutation TranscendCliCreateRepository($input: CreateRepositoryInput!) {
|
|
555
|
+
createRepository(input: $input) {
|
|
556
|
+
clientMutationId
|
|
557
|
+
repository {
|
|
558
|
+
id
|
|
559
|
+
name
|
|
560
|
+
url
|
|
561
|
+
teams {
|
|
562
|
+
id
|
|
563
|
+
name
|
|
564
|
+
}
|
|
565
|
+
owners {
|
|
566
|
+
id
|
|
567
|
+
email
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
`;var Wn=_graphqlrequest.gql`
|
|
573
|
+
query TranscendCliApiKeys($first: Int!, $offset: Int!, $titles: [String!]) {
|
|
574
|
+
apiKeys(
|
|
575
|
+
first: $first
|
|
576
|
+
offset: $offset
|
|
577
|
+
filterBy: { titles: $titles }
|
|
578
|
+
useMaster: false
|
|
579
|
+
orderBy: [
|
|
580
|
+
{ field: createdAt, direction: ASC }
|
|
581
|
+
{ field: title, direction: ASC }
|
|
582
|
+
]
|
|
583
|
+
) {
|
|
584
|
+
nodes {
|
|
585
|
+
id
|
|
586
|
+
title
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
`,Hn= exports.G =_graphqlrequest.gql`
|
|
591
|
+
mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
|
|
592
|
+
createApiKey(input: $input) {
|
|
593
|
+
apiKey {
|
|
594
|
+
id
|
|
595
|
+
apiKey
|
|
596
|
+
title
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
`,Jn= exports.H =_graphqlrequest.gql`
|
|
601
|
+
mutation TranscendCliDeleteApiKey($id: ID!) {
|
|
602
|
+
deleteApiKey(id: $id) {
|
|
603
|
+
clientMutationId
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
`;var Xn=_graphqlrequest.gql`
|
|
607
|
+
mutation TranscendCliCreatePreferenceAccessTokens(
|
|
608
|
+
$input: CreatePrivacyCenterAccessTokensInput!
|
|
609
|
+
) {
|
|
610
|
+
createPrivacyCenterAccessTokens(input: $input) {
|
|
611
|
+
nodes {
|
|
612
|
+
token
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
`;var to=_graphqlrequest.gql`
|
|
617
|
+
mutation AddSiloDiscoveryResults(
|
|
618
|
+
$pluginId: ID!
|
|
619
|
+
$rawResults: [SiloDiscoveryRawResultInput!]!
|
|
620
|
+
) {
|
|
621
|
+
addSiloDiscoveryResults(
|
|
622
|
+
input: { pluginId: $pluginId, rawResults: $rawResults }
|
|
623
|
+
) {
|
|
624
|
+
success
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
`,ro= exports.K =_graphqlrequest.gql`
|
|
628
|
+
query Plugins($dataSiloId: String!, $type: PluginType!) {
|
|
629
|
+
plugins(filterBy: { dataSiloId: $dataSiloId, type: $type, enabled: true }) {
|
|
630
|
+
plugins {
|
|
631
|
+
id
|
|
632
|
+
dataSilo {
|
|
633
|
+
type
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
totalCount
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
`;var no=_graphqlrequest.gql`
|
|
640
|
+
query TranscendCliTemplates($title: String, $first: Int!, $offset: Int!) {
|
|
641
|
+
templates(
|
|
642
|
+
filterBy: { text: $title }
|
|
643
|
+
first: $first
|
|
644
|
+
offset: $offset
|
|
645
|
+
useMaster: false
|
|
646
|
+
) {
|
|
647
|
+
nodes {
|
|
648
|
+
id
|
|
649
|
+
title
|
|
650
|
+
subject {
|
|
651
|
+
defaultMessage
|
|
652
|
+
}
|
|
653
|
+
template {
|
|
654
|
+
defaultMessage
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
`,oo= exports.M =_graphqlrequest.gql`
|
|
660
|
+
mutation TranscendCliCreateTemplate($title: String!) {
|
|
661
|
+
createTemplate(input: { title: $title, template: "", subject: $title }) {
|
|
662
|
+
clientMutationId
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
`;var so=_graphqlrequest.gql`
|
|
666
|
+
query TranscendCliOrganization {
|
|
667
|
+
organization {
|
|
668
|
+
sombra {
|
|
669
|
+
customerUrl
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
`;var ao=_graphqlrequest.gql`
|
|
674
|
+
query TranscendCliAttributeKeys($first: Int!, $offset: Int!) {
|
|
675
|
+
attributeKeys(
|
|
676
|
+
filterBy: { enabledOn: [request] }
|
|
677
|
+
first: $first
|
|
678
|
+
useMaster: false
|
|
679
|
+
offset: $offset
|
|
680
|
+
) {
|
|
681
|
+
nodes {
|
|
682
|
+
id
|
|
683
|
+
name
|
|
684
|
+
type
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
`;var po=_graphqlrequest.gql`
|
|
689
|
+
query TranscendCliSoftwareDevelopmentKits(
|
|
690
|
+
$first: Int!
|
|
691
|
+
$offset: Int!
|
|
692
|
+
$input: SoftwareDevelopmentKitFiltersInput
|
|
693
|
+
) {
|
|
694
|
+
softwareDevelopmentKits(
|
|
695
|
+
first: $first
|
|
696
|
+
offset: $offset
|
|
697
|
+
filterBy: $input
|
|
698
|
+
orderBy: [
|
|
699
|
+
{ field: createdAt, direction: ASC }
|
|
700
|
+
{ field: name, direction: ASC }
|
|
701
|
+
]
|
|
702
|
+
) {
|
|
703
|
+
nodes {
|
|
704
|
+
id
|
|
705
|
+
name
|
|
706
|
+
description
|
|
707
|
+
codePackageType
|
|
708
|
+
documentationLinks
|
|
709
|
+
repositoryUrl
|
|
710
|
+
teams {
|
|
711
|
+
id
|
|
712
|
+
name
|
|
713
|
+
}
|
|
714
|
+
owners {
|
|
715
|
+
id
|
|
716
|
+
email
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
`,lo= exports.Q =_graphqlrequest.gql`
|
|
722
|
+
mutation TranscendCliUpdateSoftwareDevelopmentKits(
|
|
723
|
+
$input: UpdateSoftwareDevelopmentKitsInput!
|
|
724
|
+
) {
|
|
725
|
+
updateSoftwareDevelopmentKits(input: $input) {
|
|
726
|
+
clientMutationId
|
|
727
|
+
softwareDevelopmentKits {
|
|
728
|
+
id
|
|
729
|
+
name
|
|
730
|
+
description
|
|
731
|
+
codePackageType
|
|
732
|
+
documentationLinks
|
|
733
|
+
repositoryUrl
|
|
734
|
+
teams {
|
|
735
|
+
id
|
|
736
|
+
name
|
|
737
|
+
}
|
|
738
|
+
owners {
|
|
739
|
+
id
|
|
740
|
+
email
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
`,co= exports.R =_graphqlrequest.gql`
|
|
746
|
+
mutation TranscendCliCreateSoftwareDevelopmentKit(
|
|
747
|
+
$input: CreateSoftwareDevelopmentKitInput!
|
|
748
|
+
) {
|
|
749
|
+
createSoftwareDevelopmentKit(input: $input) {
|
|
750
|
+
clientMutationId
|
|
751
|
+
softwareDevelopmentKit {
|
|
752
|
+
id
|
|
753
|
+
name
|
|
754
|
+
description
|
|
755
|
+
codePackageType
|
|
756
|
+
documentationLinks
|
|
757
|
+
repositoryUrl
|
|
758
|
+
teams {
|
|
759
|
+
id
|
|
760
|
+
name
|
|
761
|
+
}
|
|
762
|
+
owners {
|
|
763
|
+
id
|
|
764
|
+
email
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
`;var uo=_graphqlrequest.gql`
|
|
770
|
+
query TranscendCliCodePackages(
|
|
771
|
+
$first: Int!
|
|
772
|
+
$offset: Int!
|
|
773
|
+
$input: CodePackageFiltersInput
|
|
774
|
+
) {
|
|
775
|
+
codePackages(
|
|
776
|
+
first: $first
|
|
777
|
+
offset: $offset
|
|
778
|
+
filterBy: $input
|
|
779
|
+
orderBy: [
|
|
780
|
+
{ field: createdAt, direction: ASC }
|
|
781
|
+
{ field: name, direction: ASC }
|
|
782
|
+
]
|
|
783
|
+
) {
|
|
784
|
+
nodes {
|
|
785
|
+
id
|
|
786
|
+
name
|
|
787
|
+
description
|
|
788
|
+
type
|
|
789
|
+
relativePath
|
|
790
|
+
teams {
|
|
791
|
+
id
|
|
792
|
+
name
|
|
793
|
+
}
|
|
794
|
+
owners {
|
|
795
|
+
id
|
|
796
|
+
email
|
|
797
|
+
}
|
|
798
|
+
repository {
|
|
799
|
+
id
|
|
800
|
+
name
|
|
801
|
+
}
|
|
802
|
+
dataSilo {
|
|
803
|
+
id
|
|
804
|
+
title
|
|
805
|
+
type
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
`,mo= exports.T =_graphqlrequest.gql`
|
|
811
|
+
mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
|
|
812
|
+
updateCodePackages(input: $input) {
|
|
813
|
+
clientMutationId
|
|
814
|
+
codePackages {
|
|
815
|
+
id
|
|
816
|
+
name
|
|
817
|
+
description
|
|
818
|
+
type
|
|
819
|
+
relativePath
|
|
820
|
+
teams {
|
|
821
|
+
id
|
|
822
|
+
name
|
|
823
|
+
}
|
|
824
|
+
owners {
|
|
825
|
+
id
|
|
826
|
+
email
|
|
827
|
+
}
|
|
828
|
+
repository {
|
|
829
|
+
id
|
|
830
|
+
name
|
|
831
|
+
}
|
|
832
|
+
dataSilo {
|
|
833
|
+
id
|
|
834
|
+
title
|
|
835
|
+
type
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
`,fo= exports.U =_graphqlrequest.gql`
|
|
841
|
+
mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
|
|
842
|
+
createCodePackage(input: $input) {
|
|
843
|
+
clientMutationId
|
|
844
|
+
codePackage {
|
|
845
|
+
id
|
|
846
|
+
name
|
|
847
|
+
description
|
|
848
|
+
type
|
|
849
|
+
relativePath
|
|
850
|
+
teams {
|
|
851
|
+
id
|
|
852
|
+
name
|
|
853
|
+
}
|
|
854
|
+
owners {
|
|
855
|
+
id
|
|
856
|
+
email
|
|
857
|
+
}
|
|
858
|
+
repository {
|
|
859
|
+
id
|
|
860
|
+
name
|
|
861
|
+
}
|
|
862
|
+
dataSilo {
|
|
863
|
+
id
|
|
864
|
+
title
|
|
865
|
+
type
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
`;var go=_graphqlrequest.gql`
|
|
871
|
+
query TranscendCliPromptThreads(
|
|
872
|
+
$first: Int!
|
|
873
|
+
$offset: Int!
|
|
874
|
+
$filterBy: PromptThreadFiltersInput!
|
|
875
|
+
) {
|
|
876
|
+
promptThreads(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
877
|
+
nodes {
|
|
878
|
+
id
|
|
879
|
+
threadId
|
|
880
|
+
slackMessageTs
|
|
881
|
+
slackTeamId
|
|
882
|
+
slackChannelId
|
|
883
|
+
slackChannelName
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
`;var ho=_graphqlrequest.gql`
|
|
888
|
+
query TranscendCliFetchPolicies($url: String!) {
|
|
889
|
+
privacyCenterPolicies(lookup: { url: $url }) {
|
|
890
|
+
id
|
|
891
|
+
title {
|
|
892
|
+
defaultMessage
|
|
893
|
+
}
|
|
894
|
+
disableEffectiveOn
|
|
895
|
+
disabledLocales
|
|
896
|
+
versions {
|
|
897
|
+
effectiveOn
|
|
898
|
+
content {
|
|
899
|
+
defaultMessage
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
`,Co= exports.X =_graphqlrequest.gql`
|
|
905
|
+
mutation TranscendCliUpdatePolicies(
|
|
906
|
+
$policies: [PolicyInput!]!
|
|
907
|
+
$privacyCenterId: ID!
|
|
908
|
+
) {
|
|
909
|
+
updatePolicies(
|
|
910
|
+
input: {
|
|
911
|
+
privacyCenterId: $privacyCenterId
|
|
912
|
+
policies: $policies
|
|
913
|
+
skipPublish: true
|
|
914
|
+
}
|
|
915
|
+
) {
|
|
916
|
+
clientMutationId
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
`;var So=_graphqlrequest.gql`
|
|
920
|
+
query TranscendCliRequests(
|
|
921
|
+
$first: Int!
|
|
922
|
+
$offset: Int!
|
|
923
|
+
$filterBy: RequestFiltersInput!
|
|
924
|
+
) {
|
|
925
|
+
requests(
|
|
926
|
+
filterBy: $filterBy
|
|
927
|
+
first: $first
|
|
928
|
+
offset: $offset
|
|
929
|
+
orderBy: [
|
|
930
|
+
{ field: createdAt, direction: ASC }
|
|
931
|
+
{ field: id, direction: ASC }
|
|
932
|
+
]
|
|
933
|
+
useMaster: false
|
|
934
|
+
) {
|
|
935
|
+
nodes {
|
|
936
|
+
id
|
|
937
|
+
createdAt
|
|
938
|
+
email
|
|
939
|
+
link
|
|
940
|
+
status
|
|
941
|
+
details
|
|
942
|
+
isTest
|
|
943
|
+
locale
|
|
944
|
+
origin
|
|
945
|
+
isSilent
|
|
946
|
+
coreIdentifier
|
|
947
|
+
daysRemaining
|
|
948
|
+
type
|
|
949
|
+
subjectType
|
|
950
|
+
country
|
|
951
|
+
countrySubDivision
|
|
952
|
+
purpose {
|
|
953
|
+
title
|
|
954
|
+
name
|
|
955
|
+
consent
|
|
956
|
+
enrichedPreferences {
|
|
957
|
+
topic
|
|
958
|
+
selectValues {
|
|
959
|
+
id
|
|
960
|
+
name
|
|
961
|
+
preferenceOption {
|
|
962
|
+
id
|
|
963
|
+
slug
|
|
964
|
+
title {
|
|
965
|
+
defaultMessage
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
selectValue {
|
|
970
|
+
id
|
|
971
|
+
name
|
|
972
|
+
}
|
|
973
|
+
selectValue {
|
|
974
|
+
id
|
|
975
|
+
name
|
|
976
|
+
}
|
|
977
|
+
preferenceTopic {
|
|
978
|
+
title {
|
|
979
|
+
defaultMessage
|
|
980
|
+
}
|
|
981
|
+
id
|
|
982
|
+
slug
|
|
983
|
+
}
|
|
984
|
+
name
|
|
985
|
+
id
|
|
986
|
+
booleanValue
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
attributeValues {
|
|
990
|
+
id
|
|
991
|
+
name
|
|
992
|
+
attributeKey {
|
|
993
|
+
id
|
|
994
|
+
name
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
totalCount
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
`,or= exports.Z =_graphqlrequest.gql`
|
|
1002
|
+
mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
|
|
1003
|
+
approveRequest(input: $input) {
|
|
1004
|
+
request {
|
|
1005
|
+
id
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
`,Ao= exports._ =_graphqlrequest.gql`
|
|
1010
|
+
mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
|
|
1011
|
+
cancelRequest(input: $input) {
|
|
1012
|
+
request {
|
|
1013
|
+
id
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
`,It= exports.$ =_graphqlrequest.gql`
|
|
1018
|
+
mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
|
|
1019
|
+
updateRequest(input: $input) {
|
|
1020
|
+
request {
|
|
1021
|
+
id
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
`,Io= exports.aa =_graphqlrequest.gql`
|
|
1026
|
+
mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
|
|
1027
|
+
notifyAdditionalTime(input: $input) {
|
|
1028
|
+
clientMutationId
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
`;var Po=_graphqlrequest.gql`
|
|
1032
|
+
query TranscendCliFetchMessage {
|
|
1033
|
+
translatedMessages {
|
|
1034
|
+
id
|
|
1035
|
+
defaultMessage
|
|
1036
|
+
description
|
|
1037
|
+
targetReactIntlId
|
|
1038
|
+
translations {
|
|
1039
|
+
locale
|
|
1040
|
+
value
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
`,Eo= exports.ca =_graphqlrequest.gql`
|
|
1045
|
+
mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
|
|
1046
|
+
updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
|
|
1047
|
+
clientMutationId
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
`;var Ro=_graphqlrequest.gql`
|
|
1051
|
+
query TranscendCliRequestEnrichers(
|
|
1052
|
+
$first: Int!
|
|
1053
|
+
$offset: Int!
|
|
1054
|
+
$requestId: ID!
|
|
1055
|
+
) {
|
|
1056
|
+
requestEnrichers(
|
|
1057
|
+
input: { requestId: $requestId }
|
|
1058
|
+
first: $first
|
|
1059
|
+
offset: $offset
|
|
1060
|
+
useMaster: false
|
|
1061
|
+
orderBy: [
|
|
1062
|
+
{ field: createdAt, direction: ASC }
|
|
1063
|
+
{ field: title, direction: ASC, model: enricher }
|
|
1064
|
+
]
|
|
1065
|
+
) {
|
|
1066
|
+
nodes {
|
|
1067
|
+
id
|
|
1068
|
+
status
|
|
1069
|
+
enricher {
|
|
1070
|
+
id
|
|
1071
|
+
type
|
|
1072
|
+
title
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
totalCount
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
`,bo= exports.ea =_graphqlrequest.gql`
|
|
1079
|
+
mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
|
|
1080
|
+
retryRequestEnricher(id: $requestEnricherId) {
|
|
1081
|
+
requestEnricher {
|
|
1082
|
+
id
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
`,wo= exports.fa =_graphqlrequest.gql`
|
|
1087
|
+
mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
|
|
1088
|
+
skipRequestEnricher(id: $requestEnricherId) {
|
|
1089
|
+
requestEnricher {
|
|
1090
|
+
id
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
`;var Wr=`
|
|
1095
|
+
id
|
|
1096
|
+
title
|
|
1097
|
+
status
|
|
1098
|
+
index
|
|
1099
|
+
questions {
|
|
1100
|
+
id
|
|
1101
|
+
title
|
|
1102
|
+
index
|
|
1103
|
+
type
|
|
1104
|
+
subType
|
|
1105
|
+
placeholder
|
|
1106
|
+
description
|
|
1107
|
+
isRequired
|
|
1108
|
+
displayLogic
|
|
1109
|
+
riskLogic
|
|
1110
|
+
requireRiskEvaluation
|
|
1111
|
+
requireRiskMatrixEvaluation
|
|
1112
|
+
riskCategories {
|
|
1113
|
+
id
|
|
1114
|
+
title
|
|
1115
|
+
}
|
|
1116
|
+
riskFramework {
|
|
1117
|
+
id
|
|
1118
|
+
title
|
|
1119
|
+
description
|
|
1120
|
+
riskLevels {
|
|
1121
|
+
id
|
|
1122
|
+
title
|
|
1123
|
+
}
|
|
1124
|
+
riskCategories {
|
|
1125
|
+
id
|
|
1126
|
+
title
|
|
1127
|
+
}
|
|
1128
|
+
riskMatrixColumns {
|
|
1129
|
+
id
|
|
1130
|
+
title
|
|
1131
|
+
}
|
|
1132
|
+
riskMatrixRows {
|
|
1133
|
+
id
|
|
1134
|
+
title
|
|
1135
|
+
}
|
|
1136
|
+
riskMatrix {
|
|
1137
|
+
id
|
|
1138
|
+
title
|
|
1139
|
+
}
|
|
1140
|
+
creator {
|
|
1141
|
+
id
|
|
1142
|
+
email
|
|
1143
|
+
name
|
|
1144
|
+
}
|
|
1145
|
+
riskMatrixRowTitle
|
|
1146
|
+
riskMatrixColumnTitle
|
|
1147
|
+
}
|
|
1148
|
+
riskLevel {
|
|
1149
|
+
id
|
|
1150
|
+
title
|
|
1151
|
+
}
|
|
1152
|
+
reviewerRiskLevel {
|
|
1153
|
+
id
|
|
1154
|
+
title
|
|
1155
|
+
}
|
|
1156
|
+
riskLevelFromRiskMatrix {
|
|
1157
|
+
id
|
|
1158
|
+
title
|
|
1159
|
+
}
|
|
1160
|
+
answerOptions {
|
|
1161
|
+
id
|
|
1162
|
+
index
|
|
1163
|
+
value
|
|
1164
|
+
}
|
|
1165
|
+
selectedAnswers {
|
|
1166
|
+
... on AssessmentAnswerInterface {
|
|
1167
|
+
id
|
|
1168
|
+
index
|
|
1169
|
+
value
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
respondent {
|
|
1173
|
+
id
|
|
1174
|
+
email
|
|
1175
|
+
name
|
|
1176
|
+
}
|
|
1177
|
+
attributeKey {
|
|
1178
|
+
name
|
|
1179
|
+
}
|
|
1180
|
+
externalRespondentEmail
|
|
1181
|
+
comments {
|
|
1182
|
+
id
|
|
1183
|
+
content
|
|
1184
|
+
createdAt
|
|
1185
|
+
updatedAt
|
|
1186
|
+
author {
|
|
1187
|
+
id
|
|
1188
|
+
email
|
|
1189
|
+
name
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
allowedMimeTypes
|
|
1193
|
+
updatedAt
|
|
1194
|
+
referenceId
|
|
1195
|
+
previousSubmissions {
|
|
1196
|
+
id
|
|
1197
|
+
updatedAt
|
|
1198
|
+
assessmentQuestionId
|
|
1199
|
+
answers {
|
|
1200
|
+
... on AssessmentAnswerInterface {
|
|
1201
|
+
id
|
|
1202
|
+
index
|
|
1203
|
+
value
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
allowSelectOther
|
|
1208
|
+
syncModel
|
|
1209
|
+
syncColumn
|
|
1210
|
+
syncRowIds
|
|
1211
|
+
syncOverride
|
|
1212
|
+
}
|
|
1213
|
+
assignees {
|
|
1214
|
+
id
|
|
1215
|
+
email
|
|
1216
|
+
name
|
|
1217
|
+
}
|
|
1218
|
+
externalAssignees {
|
|
1219
|
+
id
|
|
1220
|
+
email
|
|
1221
|
+
}
|
|
1222
|
+
isReviewed
|
|
1223
|
+
`,xo= exports.ha =_graphqlrequest.gql`
|
|
1224
|
+
query TranscendCliAssessments(
|
|
1225
|
+
$first: Int!
|
|
1226
|
+
$offset: Int!
|
|
1227
|
+
$filterBy: AssessmentFormFiltersInput
|
|
1228
|
+
) {
|
|
1229
|
+
assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
1230
|
+
nodes {
|
|
1231
|
+
id
|
|
1232
|
+
creator {
|
|
1233
|
+
id
|
|
1234
|
+
email
|
|
1235
|
+
name
|
|
1236
|
+
}
|
|
1237
|
+
lastEditor {
|
|
1238
|
+
id
|
|
1239
|
+
email
|
|
1240
|
+
name
|
|
1241
|
+
}
|
|
1242
|
+
title
|
|
1243
|
+
description
|
|
1244
|
+
status
|
|
1245
|
+
assignees {
|
|
1246
|
+
id
|
|
1247
|
+
email
|
|
1248
|
+
name
|
|
1249
|
+
}
|
|
1250
|
+
externalAssignees {
|
|
1251
|
+
id
|
|
1252
|
+
email
|
|
1253
|
+
}
|
|
1254
|
+
reviewers {
|
|
1255
|
+
id
|
|
1256
|
+
email
|
|
1257
|
+
name
|
|
1258
|
+
}
|
|
1259
|
+
isLocked
|
|
1260
|
+
isArchived
|
|
1261
|
+
isExternallyCreated
|
|
1262
|
+
dueDate
|
|
1263
|
+
createdAt
|
|
1264
|
+
updatedAt
|
|
1265
|
+
assignedAt
|
|
1266
|
+
submittedAt
|
|
1267
|
+
approvedAt
|
|
1268
|
+
rejectedAt
|
|
1269
|
+
titleIsInternal
|
|
1270
|
+
retentionSchedule {
|
|
1271
|
+
id
|
|
1272
|
+
type
|
|
1273
|
+
durationDays
|
|
1274
|
+
operation
|
|
1275
|
+
}
|
|
1276
|
+
attributeValues {
|
|
1277
|
+
name
|
|
1278
|
+
attributeKey {
|
|
1279
|
+
name
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
sections {
|
|
1283
|
+
${Wr}
|
|
1284
|
+
}
|
|
1285
|
+
assessmentGroup {
|
|
1286
|
+
id
|
|
1287
|
+
title
|
|
1288
|
+
description
|
|
1289
|
+
}
|
|
1290
|
+
resources {
|
|
1291
|
+
resourceType
|
|
1292
|
+
... on AttributeBusinessEntityResource {
|
|
1293
|
+
id
|
|
1294
|
+
title
|
|
1295
|
+
}
|
|
1296
|
+
... on AttributeDataSiloResource {
|
|
1297
|
+
id
|
|
1298
|
+
title
|
|
1299
|
+
}
|
|
1300
|
+
... on AttributeDataSubCategoryResource {
|
|
1301
|
+
id
|
|
1302
|
+
name
|
|
1303
|
+
category
|
|
1304
|
+
}
|
|
1305
|
+
... on AttributeSubDataPointResource {
|
|
1306
|
+
id
|
|
1307
|
+
name
|
|
1308
|
+
}
|
|
1309
|
+
... on AttributeProcessingPurposeSubCategoryResource {
|
|
1310
|
+
id
|
|
1311
|
+
name
|
|
1312
|
+
purpose
|
|
1313
|
+
}
|
|
1314
|
+
... on AttributeRequestResource {
|
|
1315
|
+
id
|
|
1316
|
+
type
|
|
1317
|
+
}
|
|
1318
|
+
... on AttributeVendorResource {
|
|
1319
|
+
id
|
|
1320
|
+
title
|
|
1321
|
+
}
|
|
1322
|
+
... on AttributePromptResource {
|
|
1323
|
+
id
|
|
1324
|
+
title
|
|
1325
|
+
}
|
|
1326
|
+
... on AttributePromptRunResource {
|
|
1327
|
+
id
|
|
1328
|
+
title
|
|
1329
|
+
}
|
|
1330
|
+
... on AttributePromptGroupResource {
|
|
1331
|
+
id
|
|
1332
|
+
title
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
syncedRows {
|
|
1336
|
+
resourceType
|
|
1337
|
+
... on AttributeBusinessEntityResource {
|
|
1338
|
+
id
|
|
1339
|
+
title
|
|
1340
|
+
}
|
|
1341
|
+
... on AttributeDataSiloResource {
|
|
1342
|
+
id
|
|
1343
|
+
title
|
|
1344
|
+
}
|
|
1345
|
+
... on AttributeDataSubCategoryResource {
|
|
1346
|
+
id
|
|
1347
|
+
name
|
|
1348
|
+
category
|
|
1349
|
+
}
|
|
1350
|
+
... on AttributeSubDataPointResource {
|
|
1351
|
+
id
|
|
1352
|
+
name
|
|
1353
|
+
}
|
|
1354
|
+
... on AttributeProcessingPurposeSubCategoryResource {
|
|
1355
|
+
id
|
|
1356
|
+
name
|
|
1357
|
+
purpose
|
|
1358
|
+
}
|
|
1359
|
+
... on AttributeVendorResource {
|
|
1360
|
+
id
|
|
1361
|
+
title
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
`,_f= exports.ia =_graphqlrequest.gql`
|
|
1368
|
+
mutation TranscendCliImportOneTrustAssessmentForms(
|
|
1369
|
+
$input: ImportOnetrustAssessmentsInput!
|
|
1370
|
+
) {
|
|
1371
|
+
importOneTrustAssessmentForms(input: $input) {
|
|
1372
|
+
assessmentForms {
|
|
1373
|
+
id
|
|
1374
|
+
title
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
`;var Do=_graphqlrequest.gql`
|
|
1379
|
+
query TranscendCliPurposes(
|
|
1380
|
+
$first: Int!
|
|
1381
|
+
$offset: Int!
|
|
1382
|
+
$filterBy: TrackingPurposeFiltersInput
|
|
1383
|
+
$input: TrackingPurposeInput!
|
|
1384
|
+
) {
|
|
1385
|
+
purposes(
|
|
1386
|
+
first: $first
|
|
1387
|
+
offset: $offset
|
|
1388
|
+
filterBy: $filterBy
|
|
1389
|
+
input: $input
|
|
1390
|
+
) {
|
|
1391
|
+
nodes {
|
|
1392
|
+
id
|
|
1393
|
+
name
|
|
1394
|
+
description
|
|
1395
|
+
defaultConsent
|
|
1396
|
+
trackingType
|
|
1397
|
+
configurable
|
|
1398
|
+
essential
|
|
1399
|
+
showInConsentManager
|
|
1400
|
+
isActive
|
|
1401
|
+
displayOrder
|
|
1402
|
+
optOutSignals
|
|
1403
|
+
deletedAt
|
|
1404
|
+
authLevel
|
|
1405
|
+
showInPrivacyCenter
|
|
1406
|
+
title
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
`;var qo=_graphqlrequest.gql`
|
|
1411
|
+
query TranscendCliPreferenceTopics(
|
|
1412
|
+
$first: Int!
|
|
1413
|
+
$offset: Int!
|
|
1414
|
+
$filterBy: PreferenceTopicFilterInput
|
|
1415
|
+
) {
|
|
1416
|
+
preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
1417
|
+
nodes {
|
|
1418
|
+
id
|
|
1419
|
+
slug
|
|
1420
|
+
type
|
|
1421
|
+
title {
|
|
1422
|
+
id
|
|
1423
|
+
defaultMessage
|
|
1424
|
+
}
|
|
1425
|
+
showInPrivacyCenter
|
|
1426
|
+
displayDescription {
|
|
1427
|
+
id
|
|
1428
|
+
defaultMessage
|
|
1429
|
+
}
|
|
1430
|
+
defaultConfiguration
|
|
1431
|
+
preferenceOptionValues {
|
|
1432
|
+
slug
|
|
1433
|
+
title {
|
|
1434
|
+
id
|
|
1435
|
+
defaultMessage
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
purpose {
|
|
1439
|
+
trackingType
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
`;var vo=_graphqlrequest.gql`
|
|
1445
|
+
query TranscendCliAssessmentTemplates(
|
|
1446
|
+
$first: Int!
|
|
1447
|
+
$offset: Int!
|
|
1448
|
+
$filterBy: AssessmentFormTemplateFiltersInput
|
|
1449
|
+
) {
|
|
1450
|
+
assessmentFormTemplates(
|
|
1451
|
+
first: $first
|
|
1452
|
+
offset: $offset
|
|
1453
|
+
filterBy: $filterBy
|
|
1454
|
+
) {
|
|
1455
|
+
nodes {
|
|
1456
|
+
id
|
|
1457
|
+
creator {
|
|
1458
|
+
id
|
|
1459
|
+
email
|
|
1460
|
+
name
|
|
1461
|
+
}
|
|
1462
|
+
lastEditor {
|
|
1463
|
+
id
|
|
1464
|
+
email
|
|
1465
|
+
name
|
|
1466
|
+
}
|
|
1467
|
+
title
|
|
1468
|
+
description
|
|
1469
|
+
status
|
|
1470
|
+
source
|
|
1471
|
+
parentId
|
|
1472
|
+
isLocked
|
|
1473
|
+
isArchived
|
|
1474
|
+
createdAt
|
|
1475
|
+
updatedAt
|
|
1476
|
+
retentionSchedule {
|
|
1477
|
+
id
|
|
1478
|
+
type
|
|
1479
|
+
durationDays
|
|
1480
|
+
operation
|
|
1481
|
+
createdAt
|
|
1482
|
+
updatedAt
|
|
1483
|
+
}
|
|
1484
|
+
assessmentEmailSet {
|
|
1485
|
+
id
|
|
1486
|
+
title
|
|
1487
|
+
description
|
|
1488
|
+
isDefault
|
|
1489
|
+
templates {
|
|
1490
|
+
id
|
|
1491
|
+
title
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
sections {
|
|
1495
|
+
${Wr}
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
`;var Lo=_graphqlrequest.gql`
|
|
1501
|
+
query TranscendCliPrompts(
|
|
1502
|
+
$first: Int!
|
|
1503
|
+
$offset: Int!
|
|
1504
|
+
$filterBy: PromptFiltersInput
|
|
1505
|
+
) {
|
|
1506
|
+
prompts(
|
|
1507
|
+
first: $first
|
|
1508
|
+
orderBy: [{ field: title, direction: ASC }]
|
|
1509
|
+
offset: $offset
|
|
1510
|
+
filterBy: $filterBy
|
|
1511
|
+
) {
|
|
1512
|
+
nodes {
|
|
1513
|
+
id
|
|
1514
|
+
title
|
|
1515
|
+
status
|
|
1516
|
+
content
|
|
1517
|
+
temperature
|
|
1518
|
+
topP
|
|
1519
|
+
maxTokensToSample
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
`,ko= exports.na =_graphqlrequest.gql`
|
|
1524
|
+
query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
|
|
1525
|
+
promptPartials(first: $first, offset: $offset) {
|
|
1526
|
+
nodes {
|
|
1527
|
+
id
|
|
1528
|
+
title
|
|
1529
|
+
content
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
`,_o= exports.oa =_graphqlrequest.gql`
|
|
1534
|
+
query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
|
|
1535
|
+
promptGroups(
|
|
1536
|
+
first: $first
|
|
1537
|
+
|
|
1538
|
+
offset: $offset
|
|
1539
|
+
) {
|
|
1540
|
+
nodes {
|
|
1541
|
+
id
|
|
1542
|
+
title
|
|
1543
|
+
description
|
|
1544
|
+
prompts {
|
|
1545
|
+
title
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
`,Oo= exports.pa =_graphqlrequest.gql`
|
|
1551
|
+
query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
|
|
1552
|
+
promptsWithVariables(input: $input) {
|
|
1553
|
+
prompts {
|
|
1554
|
+
id
|
|
1555
|
+
title
|
|
1556
|
+
content
|
|
1557
|
+
status
|
|
1558
|
+
temperature
|
|
1559
|
+
topP
|
|
1560
|
+
maxTokensToSample
|
|
1561
|
+
responseFormat
|
|
1562
|
+
}
|
|
1563
|
+
promptPartials {
|
|
1564
|
+
id
|
|
1565
|
+
title
|
|
1566
|
+
content
|
|
1567
|
+
slug
|
|
1568
|
+
}
|
|
1569
|
+
calculatedVariables {
|
|
1570
|
+
data
|
|
1571
|
+
name
|
|
1572
|
+
}
|
|
1573
|
+
runtimeVariables {
|
|
1574
|
+
name
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
`,Go= exports.qa =_graphqlrequest.gql`
|
|
1579
|
+
mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
|
|
1580
|
+
updatePrompts(input: $input) {
|
|
1581
|
+
clientMutationId
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
`,No= exports.ra =_graphqlrequest.gql`
|
|
1585
|
+
mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
|
|
1586
|
+
createPrompt(input: $input) {
|
|
1587
|
+
clientMutationId
|
|
1588
|
+
prompt {
|
|
1589
|
+
id
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
`,Mo= exports.sa =_graphqlrequest.gql`
|
|
1594
|
+
mutation TranscendCliUpdatePromptPartials(
|
|
1595
|
+
$input: UpdatePromptPartialsInput!
|
|
1596
|
+
) {
|
|
1597
|
+
updatePromptPartials(input: $input) {
|
|
1598
|
+
clientMutationId
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
`,Fo= exports.ta =_graphqlrequest.gql`
|
|
1602
|
+
mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
|
|
1603
|
+
createPromptPartial(input: $input) {
|
|
1604
|
+
clientMutationId
|
|
1605
|
+
promptPartial {
|
|
1606
|
+
id
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
`,Uo= exports.ua =_graphqlrequest.gql`
|
|
1611
|
+
mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
|
|
1612
|
+
updatePromptGroups(input: $input) {
|
|
1613
|
+
clientMutationId
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
`,Bo= exports.va =_graphqlrequest.gql`
|
|
1617
|
+
mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
|
|
1618
|
+
createPromptGroup(input: $input) {
|
|
1619
|
+
clientMutationId
|
|
1620
|
+
promptGroup {
|
|
1621
|
+
id
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
`;var Hr=_graphqlrequest.gql`
|
|
1626
|
+
query TranscendCliRequestDataSilos(
|
|
1627
|
+
$first: Int!
|
|
1628
|
+
$offset: Int!
|
|
1629
|
+
$filterBy: RequestDataSiloFiltersInput!
|
|
1630
|
+
) {
|
|
1631
|
+
requestDataSilos(
|
|
1632
|
+
filterBy: $filterBy
|
|
1633
|
+
first: $first
|
|
1634
|
+
offset: $offset
|
|
1635
|
+
useMaster: false
|
|
1636
|
+
orderBy: [
|
|
1637
|
+
{ field: createdAt, direction: DESC }
|
|
1638
|
+
{ field: title, direction: ASC, model: dataSilo }
|
|
1639
|
+
]
|
|
1640
|
+
) {
|
|
1641
|
+
nodes {
|
|
1642
|
+
id
|
|
1643
|
+
}
|
|
1644
|
+
totalCount
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
`,Qo= exports.xa =_graphqlrequest.gql`
|
|
1648
|
+
mutation TranscendCliMarkRequestDataSiloCompleted(
|
|
1649
|
+
$requestDataSiloId: ID!
|
|
1650
|
+
$status: UpdateRequestDataSiloStatus!
|
|
1651
|
+
) {
|
|
1652
|
+
changeRequestDataSiloStatus(
|
|
1653
|
+
input: { id: $requestDataSiloId, status: $status }
|
|
1654
|
+
) {
|
|
1655
|
+
requestDataSilo {
|
|
1656
|
+
id
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
`,Vo= exports.ya =_graphqlrequest.gql`
|
|
1661
|
+
mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
|
|
1662
|
+
retryRequestDataSilo(id: $requestDataSiloId) {
|
|
1663
|
+
requestDataSilo {
|
|
1664
|
+
id
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
`,Ko= exports.za =_graphqlrequest.gql`
|
|
1669
|
+
query TranscendCliListReducedRequestsForDataSiloCount(
|
|
1670
|
+
$input: BulkCompletionReducedRequestInput!
|
|
1671
|
+
) {
|
|
1672
|
+
listReducedRequestsForDataSilo(input: $input) {
|
|
1673
|
+
totalCount
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
`;var jo=_graphqlrequest.gql`
|
|
1677
|
+
query TranscendCliTeams(
|
|
1678
|
+
$first: Int!
|
|
1679
|
+
$offset: Int!
|
|
1680
|
+
$input: TeamFiltersInput
|
|
1681
|
+
) {
|
|
1682
|
+
teams(
|
|
1683
|
+
first: $first
|
|
1684
|
+
offset: $offset
|
|
1685
|
+
filterBy: $input
|
|
1686
|
+
orderBy: [
|
|
1687
|
+
{ field: createdAt, direction: ASC }
|
|
1688
|
+
{ field: name, direction: ASC }
|
|
1689
|
+
]
|
|
1690
|
+
) {
|
|
1691
|
+
nodes {
|
|
1692
|
+
id
|
|
1693
|
+
name
|
|
1694
|
+
description
|
|
1695
|
+
ssoDepartment
|
|
1696
|
+
ssoGroup
|
|
1697
|
+
ssoTitle
|
|
1698
|
+
users {
|
|
1699
|
+
id
|
|
1700
|
+
email
|
|
1701
|
+
name
|
|
1702
|
+
}
|
|
1703
|
+
scopes {
|
|
1704
|
+
id
|
|
1705
|
+
name
|
|
1706
|
+
title
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
`,Yo= exports.Ba =_graphqlrequest.gql`
|
|
1712
|
+
mutation TranscendCliCreateTeam($input: TeamInput!) {
|
|
1713
|
+
createTeam(input: $input) {
|
|
1714
|
+
team {
|
|
1715
|
+
id
|
|
1716
|
+
name
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
`,Zo= exports.Ca =_graphqlrequest.gql`
|
|
1721
|
+
mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
|
|
1722
|
+
updateTeam(input: $input) {
|
|
1723
|
+
team {
|
|
1724
|
+
id
|
|
1725
|
+
name
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
`;var Wo=_graphqlrequest.gql`
|
|
1730
|
+
mutation TranscendCliRemoveRequestIdentifiers(
|
|
1731
|
+
$input: RemoveRequestIdentifiersInput!
|
|
1732
|
+
) {
|
|
1733
|
+
removeRequestIdentifiers(input: $input) {
|
|
1734
|
+
count
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
`,Ho= exports.Ea =_graphqlrequest.gql`
|
|
1738
|
+
query TranscendCliRequestIdentifiers(
|
|
1739
|
+
$first: Int!
|
|
1740
|
+
$offset: Int!
|
|
1741
|
+
$requestIds: [ID!]!
|
|
1742
|
+
) {
|
|
1743
|
+
requestIdentifiers(
|
|
1744
|
+
input: { requestIds: $requestIds }
|
|
1745
|
+
first: $first
|
|
1746
|
+
offset: $offset
|
|
1747
|
+
useMaster: false
|
|
1748
|
+
orderBy: [
|
|
1749
|
+
{ field: createdAt, direction: ASC }
|
|
1750
|
+
{ field: name, direction: ASC }
|
|
1751
|
+
]
|
|
1752
|
+
) {
|
|
1753
|
+
nodes {
|
|
1754
|
+
id
|
|
1755
|
+
name
|
|
1756
|
+
isVerifiedAtLeastOnce
|
|
1757
|
+
}
|
|
1758
|
+
totalCount
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
`;var Jo=_graphqlrequest.gql`
|
|
1762
|
+
query TranscendCliUsers(
|
|
1763
|
+
$first: Int!
|
|
1764
|
+
$offset: Int!
|
|
1765
|
+
$input: UserFiltersInput
|
|
1766
|
+
) {
|
|
1767
|
+
users(
|
|
1768
|
+
first: $first
|
|
1769
|
+
offset: $offset
|
|
1770
|
+
filterBy: $input
|
|
1771
|
+
orderBy: [
|
|
1772
|
+
{ field: createdAt, direction: ASC }
|
|
1773
|
+
{ field: name, direction: ASC }
|
|
1774
|
+
]
|
|
1775
|
+
) {
|
|
1776
|
+
nodes {
|
|
1777
|
+
id
|
|
1778
|
+
name
|
|
1779
|
+
email
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
`;var tg=_graphqlrequest.gql`
|
|
1784
|
+
query TranscendCliRequestFiles(
|
|
1785
|
+
$first: Int!
|
|
1786
|
+
$offset: Int!
|
|
1787
|
+
$filterBy: RequestFileFiltersInput!
|
|
1788
|
+
) {
|
|
1789
|
+
requestFiles(
|
|
1790
|
+
filterBy: $filterBy
|
|
1791
|
+
first: $first
|
|
1792
|
+
offset: $offset
|
|
1793
|
+
orderBy: [
|
|
1794
|
+
{ field: createdAt, direction: ASC }
|
|
1795
|
+
{ field: id, direction: ASC }
|
|
1796
|
+
]
|
|
1797
|
+
) {
|
|
1798
|
+
nodes {
|
|
1799
|
+
remoteId
|
|
1800
|
+
fileName
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
`,es= exports.Ha =_graphqlrequest.gql`
|
|
1805
|
+
query TranscendCliBulkRequestFiles(
|
|
1806
|
+
$filterBy: BulkRequestFilesFiltersInput!
|
|
1807
|
+
$first: Int!
|
|
1808
|
+
$after: String
|
|
1809
|
+
) {
|
|
1810
|
+
bulkRequestFiles(filterBy: $filterBy, first: $first, after: $after) {
|
|
1811
|
+
nodes {
|
|
1812
|
+
remoteId
|
|
1813
|
+
fileName
|
|
1814
|
+
}
|
|
1815
|
+
pageInfo {
|
|
1816
|
+
hasNextPage
|
|
1817
|
+
endCursor
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
`;var rs=_graphqlrequest.gql`
|
|
1822
|
+
mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
|
|
1823
|
+
reportPromptRun(input: $input) {
|
|
1824
|
+
clientMutationId
|
|
1825
|
+
promptRun {
|
|
1826
|
+
id
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
`,is= exports.Ja =_graphqlrequest.gql`
|
|
1831
|
+
mutation TranscendCliAddMessagesToPromptRun(
|
|
1832
|
+
$input: AddMessagesToPromptRunInput!
|
|
1833
|
+
) {
|
|
1834
|
+
addMessagesToPromptRun(input: $input) {
|
|
1835
|
+
clientMutationId
|
|
1836
|
+
promptRun {
|
|
1837
|
+
id
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
`;var ns=_graphqlrequest.gql`
|
|
1842
|
+
query TranscendCliGlobalActionItemCollectionss(
|
|
1843
|
+
$filterBy: GlobalActionItemCollectionFiltersInput!
|
|
1844
|
+
) {
|
|
1845
|
+
globalActionItemCollections(filterBy: $filterBy) {
|
|
1846
|
+
nodes {
|
|
1847
|
+
id
|
|
1848
|
+
title
|
|
1849
|
+
description
|
|
1850
|
+
hidden
|
|
1851
|
+
productLine
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
`,os= exports.La =_graphqlrequest.gql`
|
|
1856
|
+
mutation TranscendCliCreateActionItemCollection(
|
|
1857
|
+
$input: CreateActionItemCollectionInput!
|
|
1858
|
+
) {
|
|
1859
|
+
createActionItemCollection(input: $input) {
|
|
1860
|
+
created {
|
|
1861
|
+
id
|
|
1862
|
+
title
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
`,ss= exports.Ma =_graphqlrequest.gql`
|
|
1867
|
+
mutation TranscendCliUpdateActionItemCollection(
|
|
1868
|
+
$input: UpdateActionItemCollectionInput!
|
|
1869
|
+
) {
|
|
1870
|
+
updateActionItemCollection(input: $input) {
|
|
1871
|
+
clientMutationId
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
`;var as=_graphqlrequest.gql`
|
|
1875
|
+
query TranscendCliAttributes($first: Int!, $offset: Int!) {
|
|
1876
|
+
attributeKeys(first: $first, offset: $offset, useMaster: false) {
|
|
1877
|
+
nodes {
|
|
1878
|
+
id
|
|
1879
|
+
isCustom
|
|
1880
|
+
description
|
|
1881
|
+
enabledOn
|
|
1882
|
+
name
|
|
1883
|
+
type
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
`,ps= exports.Oa =_graphqlrequest.gql`
|
|
1888
|
+
mutation TranscendCliCreateAttributeValues(
|
|
1889
|
+
$input: [CreateAttributeValuesInput!]!
|
|
1890
|
+
) {
|
|
1891
|
+
createAttributeValues(input: $input) {
|
|
1892
|
+
clientMutationId
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
`,ls= exports.Pa =_graphqlrequest.gql`
|
|
1896
|
+
mutation TranscendCliUpdateAttributeValues(
|
|
1897
|
+
$input: [UpdateAttributeValueInput!]!
|
|
1898
|
+
) {
|
|
1899
|
+
updateAttributeValues(input: $input) {
|
|
1900
|
+
clientMutationId
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
`,cs= exports.Qa =_graphqlrequest.gql`
|
|
1904
|
+
mutation TranscendCliDeleteAttributeValue($id: ID!) {
|
|
1905
|
+
deleteAttributeValue(id: $id) {
|
|
1906
|
+
clientMutationId
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
`,us= exports.Ra =_graphqlrequest.gql`
|
|
1910
|
+
query TranscendCliAttributeValues(
|
|
1911
|
+
$first: Int!
|
|
1912
|
+
$offset: Int!
|
|
1913
|
+
$attributeKeyId: ID!
|
|
1914
|
+
) {
|
|
1915
|
+
attributeValues(
|
|
1916
|
+
first: $first
|
|
1917
|
+
offset: $offset
|
|
1918
|
+
useMaster: false
|
|
1919
|
+
filterBy: { attributeKeys: [$attributeKeyId] }
|
|
1920
|
+
) {
|
|
1921
|
+
nodes {
|
|
1922
|
+
id
|
|
1923
|
+
name
|
|
1924
|
+
description
|
|
1925
|
+
color
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
`,ms= exports.Sa =_graphqlrequest.gql`
|
|
1930
|
+
mutation TranscendCliCreateAttribute(
|
|
1931
|
+
$name: String!
|
|
1932
|
+
$type: AttributeKeyType!
|
|
1933
|
+
$description: String
|
|
1934
|
+
$enabledOn: [AttributeSupportedResourceType!]
|
|
1935
|
+
) {
|
|
1936
|
+
createAttributeKey(
|
|
1937
|
+
input: {
|
|
1938
|
+
name: $name
|
|
1939
|
+
type: $type
|
|
1940
|
+
description: $description
|
|
1941
|
+
enabledOn: $enabledOn
|
|
1942
|
+
}
|
|
1943
|
+
) {
|
|
1944
|
+
clientMutationId
|
|
1945
|
+
attributeKey {
|
|
1946
|
+
id
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
`,ds= exports.Ta =_graphqlrequest.gql`
|
|
1951
|
+
mutation TranscendCliCreateAttribute(
|
|
1952
|
+
$attributeKeyId: ID!
|
|
1953
|
+
$description: String
|
|
1954
|
+
$enabledOn: [AttributeSupportedResourceType!]
|
|
1955
|
+
) {
|
|
1956
|
+
updateAttributeKey(
|
|
1957
|
+
input: {
|
|
1958
|
+
id: $attributeKeyId
|
|
1959
|
+
description: $description
|
|
1960
|
+
enabledOn: $enabledOn
|
|
1961
|
+
}
|
|
1962
|
+
) {
|
|
1963
|
+
clientMutationId
|
|
1964
|
+
attributeKey {
|
|
1965
|
+
id
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
`,fs= exports.Ua =_graphqlrequest.gql`
|
|
1970
|
+
mutation TranscendCliSetResourceAttributes(
|
|
1971
|
+
$input: SetResourceAttributesInput!
|
|
1972
|
+
) {
|
|
1973
|
+
setResourceAttributes(input: $input) {
|
|
1974
|
+
clientMutationId
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
`;var gs=_graphqlrequest.gql`
|
|
1978
|
+
query TranscendCliExperiences($first: Int!, $offset: Int!) {
|
|
1979
|
+
experiences(first: $first, offset: $offset, useMaster: false) {
|
|
1980
|
+
nodes {
|
|
1981
|
+
id
|
|
1982
|
+
name
|
|
1983
|
+
displayName
|
|
1984
|
+
regions {
|
|
1985
|
+
countrySubDivision
|
|
1986
|
+
country
|
|
1987
|
+
}
|
|
1988
|
+
operator
|
|
1989
|
+
displayPriority
|
|
1990
|
+
onConsentExpiry
|
|
1991
|
+
consentExpiry
|
|
1992
|
+
viewState
|
|
1993
|
+
purposes {
|
|
1994
|
+
name
|
|
1995
|
+
trackingType
|
|
1996
|
+
}
|
|
1997
|
+
optedOutPurposes {
|
|
1998
|
+
name
|
|
1999
|
+
trackingType
|
|
2000
|
+
}
|
|
2001
|
+
browserLanguages
|
|
2002
|
+
browserTimeZones
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
`,ys= exports.Wa =_graphqlrequest.gql`
|
|
2007
|
+
query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
|
|
2008
|
+
consentPartitions(first: $first, offset: $offset) {
|
|
2009
|
+
nodes {
|
|
2010
|
+
id
|
|
2011
|
+
name
|
|
2012
|
+
partition
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
`,hs= exports.Xa =_graphqlrequest.gql`
|
|
2017
|
+
mutation TranscendCliCreateDataFlows(
|
|
2018
|
+
$dataFlows: [DataFlowInput!]!
|
|
2019
|
+
$airgapBundleId: ID!
|
|
2020
|
+
$classifyService: Boolean
|
|
2021
|
+
) {
|
|
2022
|
+
createDataFlows(
|
|
2023
|
+
input: {
|
|
2024
|
+
airgapBundleId: $airgapBundleId
|
|
2025
|
+
dataFlows: $dataFlows
|
|
2026
|
+
classifyService: $classifyService
|
|
2027
|
+
}
|
|
2028
|
+
) {
|
|
2029
|
+
dataFlows {
|
|
2030
|
+
id
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
`,Cs= exports.Ya =_graphqlrequest.gql`
|
|
2035
|
+
mutation TranscendCliUpdateDataFlows(
|
|
2036
|
+
$airgapBundleId: ID!
|
|
2037
|
+
$dataFlows: [UpdateDataFlowInput!]!
|
|
2038
|
+
$classifyService: Boolean
|
|
2039
|
+
) {
|
|
2040
|
+
updateDataFlows(
|
|
2041
|
+
input: {
|
|
2042
|
+
airgapBundleId: $airgapBundleId
|
|
2043
|
+
dataFlows: $dataFlows
|
|
2044
|
+
classifyService: $classifyService
|
|
2045
|
+
}
|
|
2046
|
+
) {
|
|
2047
|
+
dataFlows {
|
|
2048
|
+
id
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
`,Ss= exports.Za =_graphqlrequest.gql`
|
|
2053
|
+
mutation TranscendCliUpdateOrCreateCookies(
|
|
2054
|
+
$cookies: [UpdateOrCreateCookieInput!]!
|
|
2055
|
+
$airgapBundleId: ID!
|
|
2056
|
+
) {
|
|
2057
|
+
updateOrCreateCookies(
|
|
2058
|
+
input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
|
|
2059
|
+
) {
|
|
2060
|
+
clientMutationId
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
`,As= exports._a =_graphqlrequest.gql`
|
|
2064
|
+
query TranscendCliDataFlows(
|
|
2065
|
+
$first: Int!
|
|
2066
|
+
$airgapBundleId: ID!
|
|
2067
|
+
$offset: Int!
|
|
2068
|
+
$status: ConsentTrackerStatus
|
|
2069
|
+
$showZeroActivity: Boolean
|
|
2070
|
+
) {
|
|
2071
|
+
dataFlows(
|
|
2072
|
+
first: $first
|
|
2073
|
+
offset: $offset
|
|
2074
|
+
filterBy: { status: $status, showZeroActivity: $showZeroActivity }
|
|
2075
|
+
input: { airgapBundleId: $airgapBundleId }
|
|
2076
|
+
orderBy: [
|
|
2077
|
+
{ field: createdAt, direction: ASC }
|
|
2078
|
+
{ field: value, direction: ASC }
|
|
2079
|
+
]
|
|
2080
|
+
useMaster: false
|
|
2081
|
+
) {
|
|
2082
|
+
nodes {
|
|
2083
|
+
id
|
|
2084
|
+
value
|
|
2085
|
+
type
|
|
2086
|
+
description
|
|
2087
|
+
trackingType
|
|
2088
|
+
service {
|
|
2089
|
+
integrationName
|
|
2090
|
+
}
|
|
2091
|
+
source
|
|
2092
|
+
status
|
|
2093
|
+
owners {
|
|
2094
|
+
email
|
|
2095
|
+
}
|
|
2096
|
+
teams {
|
|
2097
|
+
name
|
|
2098
|
+
}
|
|
2099
|
+
attributeValues {
|
|
2100
|
+
name
|
|
2101
|
+
attributeKey {
|
|
2102
|
+
name
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
`,Is= exports.$a =_graphqlrequest.gql`
|
|
2109
|
+
query TranscendCliCookies(
|
|
2110
|
+
$first: Int!
|
|
2111
|
+
$offset: Int!
|
|
2112
|
+
$airgapBundleId: ID!
|
|
2113
|
+
$status: ConsentTrackerStatus
|
|
2114
|
+
) {
|
|
2115
|
+
cookies(
|
|
2116
|
+
first: $first
|
|
2117
|
+
offset: $offset
|
|
2118
|
+
filterBy: { status: $status }
|
|
2119
|
+
input: { airgapBundleId: $airgapBundleId }
|
|
2120
|
+
orderBy: [
|
|
2121
|
+
{ field: createdAt, direction: ASC }
|
|
2122
|
+
{ field: name, direction: ASC }
|
|
2123
|
+
]
|
|
2124
|
+
useMaster: false
|
|
2125
|
+
) {
|
|
2126
|
+
nodes {
|
|
2127
|
+
id
|
|
2128
|
+
name
|
|
2129
|
+
isRegex
|
|
2130
|
+
description
|
|
2131
|
+
trackingPurposes
|
|
2132
|
+
service {
|
|
2133
|
+
integrationName
|
|
2134
|
+
}
|
|
2135
|
+
source
|
|
2136
|
+
status
|
|
2137
|
+
owners {
|
|
2138
|
+
email
|
|
2139
|
+
}
|
|
2140
|
+
teams {
|
|
2141
|
+
name
|
|
2142
|
+
}
|
|
2143
|
+
attributeValues {
|
|
2144
|
+
name
|
|
2145
|
+
attributeKey {
|
|
2146
|
+
name
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
`,Ts= exports.ab =_graphqlrequest.gql`
|
|
2153
|
+
query TranscendCliFetchConsentManagerId {
|
|
2154
|
+
consentManager {
|
|
2155
|
+
consentManager {
|
|
2156
|
+
id
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
`,Ps= exports.bb =_graphqlrequest.gql`
|
|
2161
|
+
query TranscendCliFetchConsentManager {
|
|
2162
|
+
consentManager {
|
|
2163
|
+
consentManager {
|
|
2164
|
+
id
|
|
2165
|
+
bundleURL
|
|
2166
|
+
testBundleURL
|
|
2167
|
+
configuration {
|
|
2168
|
+
domains
|
|
2169
|
+
consentPrecedence
|
|
2170
|
+
unknownRequestPolicy
|
|
2171
|
+
unknownCookiePolicy
|
|
2172
|
+
syncEndpoint
|
|
2173
|
+
telemetryPartitioning
|
|
2174
|
+
signedIabAgreement
|
|
2175
|
+
syncGroups
|
|
2176
|
+
partition
|
|
2177
|
+
}
|
|
2178
|
+
partition {
|
|
2179
|
+
partition
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
`,Es= exports.cb =_graphqlrequest.gql`
|
|
2185
|
+
query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
|
|
2186
|
+
consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
|
|
2187
|
+
theme {
|
|
2188
|
+
primaryColor
|
|
2189
|
+
fontColor
|
|
2190
|
+
privacyPolicy
|
|
2191
|
+
prompt
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
`,Rs= exports.db =_graphqlrequest.gql`
|
|
2196
|
+
mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
|
|
2197
|
+
createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
|
|
2198
|
+
consentManager {
|
|
2199
|
+
id
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
`,bs= exports.eb =_graphqlrequest.gql`
|
|
2204
|
+
mutation TranscendCliUpdateConsentManager(
|
|
2205
|
+
$airgapBundleId: ID!
|
|
2206
|
+
$version: String!
|
|
2207
|
+
) {
|
|
2208
|
+
updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
|
|
2209
|
+
clientMutationId
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
`,ws= exports.fb =_graphqlrequest.gql`
|
|
2213
|
+
mutation TranscendCliUpdateConsentManagerToLatest(
|
|
2214
|
+
$airgapBundleId: ID!
|
|
2215
|
+
$bundleType: ConsentBundleType!
|
|
2216
|
+
) {
|
|
2217
|
+
updateConsentManagerToLatestVersion(
|
|
2218
|
+
id: $airgapBundleId
|
|
2219
|
+
input: { bundleType: $bundleType }
|
|
2220
|
+
) {
|
|
2221
|
+
clientMutationId
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
`,$s= exports.gb =_graphqlrequest.gql`
|
|
2225
|
+
mutation TranscendCliDeployConsentManager(
|
|
2226
|
+
$airgapBundleId: ID!
|
|
2227
|
+
$bundleType: ConsentBundleType!
|
|
2228
|
+
) {
|
|
2229
|
+
deployConsentManagerBundle(
|
|
2230
|
+
id: $airgapBundleId
|
|
2231
|
+
input: { bundleType: $bundleType }
|
|
2232
|
+
) {
|
|
2233
|
+
clientMutationId
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
`,xs= exports.hb =_graphqlrequest.gql`
|
|
2237
|
+
mutation TranscendCliUpdateConsentManagerDomains(
|
|
2238
|
+
$airgapBundleId: ID!
|
|
2239
|
+
$domains: [String!]!
|
|
2240
|
+
) {
|
|
2241
|
+
updateConsentManagerDomains(
|
|
2242
|
+
input: { id: $airgapBundleId, domains: $domains }
|
|
2243
|
+
) {
|
|
2244
|
+
clientMutationId
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
`,Ds= exports.ib =_graphqlrequest.gql`
|
|
2248
|
+
mutation TranscendCliUpdateConsentManagerPartition(
|
|
2249
|
+
$airgapBundleId: ID!
|
|
2250
|
+
$partitionId: ID!
|
|
2251
|
+
) {
|
|
2252
|
+
updateConsentManagerPartition(
|
|
2253
|
+
input: { id: $airgapBundleId, partitionId: $partitionId }
|
|
2254
|
+
) {
|
|
2255
|
+
clientMutationId
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
`,qs= exports.jb =_graphqlrequest.gql`
|
|
2259
|
+
mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
|
|
2260
|
+
updateLoadOptions(input: $input) {
|
|
2261
|
+
clientMutationId
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
`,vs= exports.kb =_graphqlrequest.gql`
|
|
2265
|
+
mutation TranscendCliToggleUnknownRequestPolicy(
|
|
2266
|
+
$input: ToggleUnknownRequestPolicyInput!
|
|
2267
|
+
) {
|
|
2268
|
+
toggleUnknownRequestPolicy(input: $input) {
|
|
2269
|
+
clientMutationId
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
`,Ls= exports.lb =_graphqlrequest.gql`
|
|
2273
|
+
mutation TranscendCliToggleUnknownCookiePolicy(
|
|
2274
|
+
$input: ToggleUnknownCookiePolicyInput!
|
|
2275
|
+
) {
|
|
2276
|
+
toggleUnknownCookiePolicy(input: $input) {
|
|
2277
|
+
clientMutationId
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
`,ks= exports.mb =_graphqlrequest.gql`
|
|
2281
|
+
mutation TranscendCliToggleTelemetryPartitionStrategy(
|
|
2282
|
+
$input: ToggleTelemetryPartitionStrategyInput!
|
|
2283
|
+
) {
|
|
2284
|
+
toggleTelemetryPartitioning(input: $input) {
|
|
2285
|
+
clientMutationId
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
`,_s= exports.nb =_graphqlrequest.gql`
|
|
2289
|
+
mutation TranscendCliToggleConsentPrecedence(
|
|
2290
|
+
$input: ToggleConsentPrecedenceInput!
|
|
2291
|
+
) {
|
|
2292
|
+
toggleConsentPrecedence(input: $input) {
|
|
2293
|
+
clientMutationId
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
`,Os= exports.ob =_graphqlrequest.gql`
|
|
2297
|
+
mutation TranscendCliUpdateConsentManagerTheme(
|
|
2298
|
+
$input: UpdateConsentManagerThemeInput!
|
|
2299
|
+
) {
|
|
2300
|
+
updateConsentManagerTheme(input: $input) {
|
|
2301
|
+
clientMutationId
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
`,Gs= exports.pb =_graphqlrequest.gql`
|
|
2305
|
+
mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
|
|
2306
|
+
updateExperience(input: $input) {
|
|
2307
|
+
clientMutationId
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
`,Ns= exports.qb =_graphqlrequest.gql`
|
|
2311
|
+
mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
|
|
2312
|
+
createExperience(input: $input) {
|
|
2313
|
+
clientMutationId
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
`,Ms= exports.rb =_graphqlrequest.gql`
|
|
2317
|
+
mutation TranscendCliCreateConsentPartition(
|
|
2318
|
+
$input: CreateConsentPartitionInput!
|
|
2319
|
+
) {
|
|
2320
|
+
createConsentPartition(input: $input) {
|
|
2321
|
+
clientMutationId
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
`;var Fs=_graphqlrequest.gql`
|
|
2325
|
+
query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
|
|
2326
|
+
analyticsData(input: $input) {
|
|
2327
|
+
series {
|
|
2328
|
+
name
|
|
2329
|
+
points {
|
|
2330
|
+
key
|
|
2331
|
+
value
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
`;var Us=_graphqlrequest.gql`
|
|
2337
|
+
query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
|
|
2338
|
+
businessEntities(
|
|
2339
|
+
first: $first
|
|
2340
|
+
offset: $offset
|
|
2341
|
+
orderBy: [
|
|
2342
|
+
{ field: createdAt, direction: ASC }
|
|
2343
|
+
{ field: title, direction: ASC }
|
|
2344
|
+
]
|
|
2345
|
+
useMaster: false
|
|
2346
|
+
) {
|
|
2347
|
+
nodes {
|
|
2348
|
+
id
|
|
2349
|
+
title
|
|
2350
|
+
description
|
|
2351
|
+
dataProtectionOfficerName
|
|
2352
|
+
dataProtectionOfficerEmail
|
|
2353
|
+
address
|
|
2354
|
+
headquarterCountry
|
|
2355
|
+
headquarterSubDivision
|
|
2356
|
+
attributeValues {
|
|
2357
|
+
name
|
|
2358
|
+
attributeKey {
|
|
2359
|
+
name
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
`,Bs= exports.ub =_graphqlrequest.gql`
|
|
2366
|
+
mutation TranscendCliCreateBusinessEntity(
|
|
2367
|
+
$input: CreateBusinessEntityInput!
|
|
2368
|
+
) {
|
|
2369
|
+
createBusinessEntity(input: $input) {
|
|
2370
|
+
businessEntity {
|
|
2371
|
+
id
|
|
2372
|
+
title
|
|
2373
|
+
description
|
|
2374
|
+
dataProtectionOfficerName
|
|
2375
|
+
dataProtectionOfficerEmail
|
|
2376
|
+
address
|
|
2377
|
+
headquarterCountry
|
|
2378
|
+
headquarterSubDivision
|
|
2379
|
+
attributeValues {
|
|
2380
|
+
name
|
|
2381
|
+
attributeKey {
|
|
2382
|
+
name
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
`,Qs= exports.vb =_graphqlrequest.gql`
|
|
2389
|
+
mutation TranscendCliUpdateBusinessEntities(
|
|
2390
|
+
$input: [UpdateBusinessEntityInput!]!
|
|
2391
|
+
) {
|
|
2392
|
+
updateBusinessEntities(input: { businessEntities: $input }) {
|
|
2393
|
+
clientMutationId
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
`;var Ks=_graphqlrequest.gql`
|
|
2397
|
+
query TranscendCliActions($first: Int!, $offset: Int!) {
|
|
2398
|
+
actions(
|
|
2399
|
+
first: $first
|
|
2400
|
+
offset: $offset
|
|
2401
|
+
useMaster: false
|
|
2402
|
+
orderBy: [{ field: type, direction: ASC }]
|
|
2403
|
+
) {
|
|
2404
|
+
nodes {
|
|
2405
|
+
id
|
|
2406
|
+
type
|
|
2407
|
+
skipSecondaryIfNoFiles
|
|
2408
|
+
skipDownloadableStep
|
|
2409
|
+
requiresReview
|
|
2410
|
+
regionList
|
|
2411
|
+
regionDetectionMethod
|
|
2412
|
+
waitingPeriod
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
`,js= exports.xb =_graphqlrequest.gql`
|
|
2417
|
+
mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
|
|
2418
|
+
updateAction(input: $input) {
|
|
2419
|
+
clientMutationId
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
`;var Ys=_graphqlrequest.gql`
|
|
2423
|
+
query TranscendCliGlobalActionItems(
|
|
2424
|
+
$first: Int!
|
|
2425
|
+
$offset: Int!
|
|
2426
|
+
$filterBy: GlobalActionItemFiltersInput!
|
|
2427
|
+
) {
|
|
2428
|
+
globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
2429
|
+
nodes {
|
|
2430
|
+
ids
|
|
2431
|
+
count
|
|
2432
|
+
teams {
|
|
2433
|
+
id
|
|
2434
|
+
name
|
|
2435
|
+
}
|
|
2436
|
+
customerExperienceActionItemIds
|
|
2437
|
+
users {
|
|
2438
|
+
id
|
|
2439
|
+
email
|
|
2440
|
+
}
|
|
2441
|
+
collections {
|
|
2442
|
+
title
|
|
2443
|
+
id
|
|
2444
|
+
}
|
|
2445
|
+
dueDate
|
|
2446
|
+
priority
|
|
2447
|
+
titles
|
|
2448
|
+
resolved
|
|
2449
|
+
notes
|
|
2450
|
+
links
|
|
2451
|
+
type
|
|
2452
|
+
additionalContexts {
|
|
2453
|
+
iconOverride
|
|
2454
|
+
requestId
|
|
2455
|
+
dataSiloId
|
|
2456
|
+
requestType
|
|
2457
|
+
latestAirgapVersion
|
|
2458
|
+
parentTitle
|
|
2459
|
+
}
|
|
2460
|
+
attributeValues {
|
|
2461
|
+
name
|
|
2462
|
+
attributeKey {
|
|
2463
|
+
name
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
`,Zs= exports.zb =_graphqlrequest.gql`
|
|
2470
|
+
mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
|
|
2471
|
+
updateActionItems(input: $input) {
|
|
2472
|
+
clientMutationId
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
`,zs= exports.Ab =_graphqlrequest.gql`
|
|
2476
|
+
mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
|
|
2477
|
+
createActionItems(input: $input) {
|
|
2478
|
+
clientMutationId
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
`;var Ws=_graphqlrequest.gql`
|
|
2482
|
+
query TranscendCliFetchPrivacyCenterId($url: String!) {
|
|
2483
|
+
privacyCenter(lookup: { url: $url }) {
|
|
2484
|
+
id
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
`,Hs= exports.Cb =_graphqlrequest.gql`
|
|
2488
|
+
query TranscendCliDeployedPrivacyCenterUrl {
|
|
2489
|
+
organization {
|
|
2490
|
+
deployedPrivacyCenterUrl
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
`,Js= exports.Db =_graphqlrequest.gql`
|
|
2494
|
+
query TranscendCliFetchPrivacyCenters($url: String!) {
|
|
2495
|
+
privacyCenter(lookup: { url: $url }) {
|
|
2496
|
+
id
|
|
2497
|
+
url
|
|
2498
|
+
isDisabled
|
|
2499
|
+
showPrivacyRequestButton
|
|
2500
|
+
showPolicies
|
|
2501
|
+
showTrackingTechnologies
|
|
2502
|
+
showCookies
|
|
2503
|
+
showDataFlows
|
|
2504
|
+
showConsentManager
|
|
2505
|
+
showManageYourPrivacy
|
|
2506
|
+
showMarketingPreferences
|
|
2507
|
+
locales
|
|
2508
|
+
defaultLocale
|
|
2509
|
+
preferBrowserDefaultLocale
|
|
2510
|
+
supportEmail
|
|
2511
|
+
replyToEmail
|
|
2512
|
+
useNoReplyEmailAddress
|
|
2513
|
+
useCustomEmailDomain
|
|
2514
|
+
transformAccessReportJsonToCsv
|
|
2515
|
+
themeStr
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
`,Xs= exports.Eb =_graphqlrequest.gql`
|
|
2519
|
+
mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
|
|
2520
|
+
updatePrivacyCenter(input: $input) {
|
|
2521
|
+
clientMutationId
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
`;var ii=_graphqlrequest.gql`
|
|
2525
|
+
mutation TranscendCliDetermineLoginMethod($email: String!) {
|
|
2526
|
+
determineLoginMethod(input: { email: $email }) {
|
|
2527
|
+
loginMethod {
|
|
2528
|
+
email
|
|
2529
|
+
sombraPublicKey
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
`,ea= exports.Gb =_graphqlrequest.gql`
|
|
2534
|
+
mutation TranscendCliLogin(
|
|
2535
|
+
$email: String!
|
|
2536
|
+
$password: String!
|
|
2537
|
+
$publicKey: String!
|
|
2538
|
+
) {
|
|
2539
|
+
login(
|
|
2540
|
+
input: { email: $email, password: $password }
|
|
2541
|
+
publicKey: $publicKey
|
|
2542
|
+
) {
|
|
2543
|
+
user {
|
|
2544
|
+
roles {
|
|
2545
|
+
id
|
|
2546
|
+
organization {
|
|
2547
|
+
name
|
|
2548
|
+
id
|
|
2549
|
+
uri
|
|
2550
|
+
parentOrganizationId
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
`,ta= exports.Hb =_graphqlrequest.gql`
|
|
2557
|
+
mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
|
|
2558
|
+
assumeRole(id: $id, publicKey: $publicKey) {
|
|
2559
|
+
clientMutationId
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
`;var Eg=_graphqlrequest.gql`
|
|
2563
|
+
query TranscendCliLargeLanguageModels(
|
|
2564
|
+
$first: Int!
|
|
2565
|
+
$offset: Int!
|
|
2566
|
+
$filterBy: LargeLanguageModelFiltersInput
|
|
2567
|
+
) {
|
|
2568
|
+
largeLanguageModels(
|
|
2569
|
+
first: $first
|
|
2570
|
+
orderBy: [
|
|
2571
|
+
{ field: name, direction: ASC }
|
|
2572
|
+
{ field: client, direction: ASC }
|
|
2573
|
+
{ field: isTranscendHosted, direction: ASC }
|
|
2574
|
+
]
|
|
2575
|
+
offset: $offset
|
|
2576
|
+
filterBy: $filterBy
|
|
2577
|
+
) {
|
|
2578
|
+
nodes {
|
|
2579
|
+
id
|
|
2580
|
+
name
|
|
2581
|
+
client
|
|
2582
|
+
isTranscendHosted
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
`;var ra=_graphqlrequest.gql`
|
|
2587
|
+
query TranscendCliAgents(
|
|
2588
|
+
$first: Int!
|
|
2589
|
+
$offset: Int!
|
|
2590
|
+
$filterBy: AgentFiltersInput
|
|
2591
|
+
) {
|
|
2592
|
+
agents(
|
|
2593
|
+
first: $first
|
|
2594
|
+
offset: $offset
|
|
2595
|
+
filterBy: $filterBy
|
|
2596
|
+
orderBy: [
|
|
2597
|
+
{ field: createdAt, direction: ASC }
|
|
2598
|
+
{ field: name, direction: ASC }
|
|
2599
|
+
]
|
|
2600
|
+
) {
|
|
2601
|
+
nodes {
|
|
2602
|
+
id
|
|
2603
|
+
name
|
|
2604
|
+
agentId
|
|
2605
|
+
instructions
|
|
2606
|
+
description
|
|
2607
|
+
codeInterpreterEnabled
|
|
2608
|
+
retrievalEnabled
|
|
2609
|
+
prompt {
|
|
2610
|
+
title
|
|
2611
|
+
}
|
|
2612
|
+
largeLanguageModel {
|
|
2613
|
+
name
|
|
2614
|
+
client
|
|
2615
|
+
}
|
|
2616
|
+
teams {
|
|
2617
|
+
name
|
|
2618
|
+
}
|
|
2619
|
+
owners {
|
|
2620
|
+
email
|
|
2621
|
+
}
|
|
2622
|
+
agentFunctions {
|
|
2623
|
+
name
|
|
2624
|
+
}
|
|
2625
|
+
agentFiles {
|
|
2626
|
+
name
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
`,ia= exports.Kb =_graphqlrequest.gql`
|
|
2632
|
+
mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
|
|
2633
|
+
createAgent(input: $input) {
|
|
2634
|
+
agent {
|
|
2635
|
+
id
|
|
2636
|
+
name
|
|
2637
|
+
agentId
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
`,na= exports.Lb =_graphqlrequest.gql`
|
|
2642
|
+
mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
|
|
2643
|
+
updateAgents(input: $input) {
|
|
2644
|
+
clientMutationId
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
`;var oa=_graphqlrequest.gql`
|
|
2648
|
+
query TranscendCliAgentFiles(
|
|
2649
|
+
$first: Int!
|
|
2650
|
+
$offset: Int!
|
|
2651
|
+
$filterBy: AgentFileFiltersInput
|
|
2652
|
+
) {
|
|
2653
|
+
agentFiles(
|
|
2654
|
+
first: $first
|
|
2655
|
+
offset: $offset
|
|
2656
|
+
filterBy: $filterBy
|
|
2657
|
+
orderBy: [
|
|
2658
|
+
{ field: createdAt, direction: ASC }
|
|
2659
|
+
{ field: name, direction: ASC }
|
|
2660
|
+
]
|
|
2661
|
+
) {
|
|
2662
|
+
nodes {
|
|
2663
|
+
id
|
|
2664
|
+
name
|
|
2665
|
+
description
|
|
2666
|
+
fileId
|
|
2667
|
+
size
|
|
2668
|
+
purpose
|
|
2669
|
+
initialFileName
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
`,sa= exports.Nb =_graphqlrequest.gql`
|
|
2674
|
+
mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
|
|
2675
|
+
createAgentFile(input: $input) {
|
|
2676
|
+
agentFile {
|
|
2677
|
+
id
|
|
2678
|
+
name
|
|
2679
|
+
fileId
|
|
2680
|
+
initialFileName
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
`,aa= exports.Ob =_graphqlrequest.gql`
|
|
2685
|
+
mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
|
|
2686
|
+
updateAgentFiles(input: $input) {
|
|
2687
|
+
clientMutationId
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
`;var pa=_graphqlrequest.gql`
|
|
2691
|
+
query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
|
|
2692
|
+
agentFunctions(
|
|
2693
|
+
first: $first
|
|
2694
|
+
offset: $offset
|
|
2695
|
+
orderBy: [
|
|
2696
|
+
{ field: createdAt, direction: ASC }
|
|
2697
|
+
{ field: name, direction: ASC }
|
|
2698
|
+
]
|
|
2699
|
+
) {
|
|
2700
|
+
nodes {
|
|
2701
|
+
id
|
|
2702
|
+
name
|
|
2703
|
+
description
|
|
2704
|
+
parameters
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
`,la= exports.Qb =_graphqlrequest.gql`
|
|
2709
|
+
mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
|
|
2710
|
+
createAgentFunction(input: $input) {
|
|
2711
|
+
agentFunction {
|
|
2712
|
+
id
|
|
2713
|
+
name
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
`,ca= exports.Rb =_graphqlrequest.gql`
|
|
2718
|
+
mutation TranscendCliUpdateAgentFunctions(
|
|
2719
|
+
$input: UpdateAgentFunctionsInput!
|
|
2720
|
+
) {
|
|
2721
|
+
updateAgentFunctions(input: $input) {
|
|
2722
|
+
clientMutationId
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
`;var ua=_graphqlrequest.gql`
|
|
2726
|
+
query TranscendCliVendors($first: Int!, $offset: Int!) {
|
|
2727
|
+
vendors(
|
|
2728
|
+
first: $first
|
|
2729
|
+
offset: $offset
|
|
2730
|
+
useMaster: false
|
|
2731
|
+
isExportCsv: true
|
|
2732
|
+
orderBy: [
|
|
2733
|
+
{ field: createdAt, direction: ASC }
|
|
2734
|
+
{ field: title, direction: ASC }
|
|
2735
|
+
]
|
|
2736
|
+
) {
|
|
2737
|
+
nodes {
|
|
2738
|
+
id
|
|
2739
|
+
title
|
|
2740
|
+
description
|
|
2741
|
+
dataProcessingAgreementLink
|
|
2742
|
+
contactName
|
|
2743
|
+
contactEmail
|
|
2744
|
+
contactPhone
|
|
2745
|
+
address
|
|
2746
|
+
headquarterCountry
|
|
2747
|
+
headquarterSubDivision
|
|
2748
|
+
websiteUrl
|
|
2749
|
+
businessEntity {
|
|
2750
|
+
title
|
|
2751
|
+
}
|
|
2752
|
+
teams {
|
|
2753
|
+
name
|
|
2754
|
+
}
|
|
2755
|
+
owners {
|
|
2756
|
+
email
|
|
2757
|
+
}
|
|
2758
|
+
attributeValues {
|
|
2759
|
+
attributeKey {
|
|
2760
|
+
name
|
|
2761
|
+
}
|
|
2762
|
+
name
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
`,ma= exports.Tb =_graphqlrequest.gql`
|
|
2768
|
+
mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
|
|
2769
|
+
createVendor(input: $input) {
|
|
2770
|
+
vendor {
|
|
2771
|
+
id
|
|
2772
|
+
title
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
`,da= exports.Ub =_graphqlrequest.gql`
|
|
2777
|
+
mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
|
|
2778
|
+
updateVendors(input: $input) {
|
|
2779
|
+
clientMutationId
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
`;var fa=_graphqlrequest.gql`
|
|
2783
|
+
query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
|
|
2784
|
+
dataSubCategories(
|
|
2785
|
+
first: $first
|
|
2786
|
+
offset: $offset
|
|
2787
|
+
isExportCsv: true
|
|
2788
|
+
useMaster: false
|
|
2789
|
+
) {
|
|
2790
|
+
nodes {
|
|
2791
|
+
id
|
|
2792
|
+
name
|
|
2793
|
+
category
|
|
2794
|
+
description
|
|
2795
|
+
regex
|
|
2796
|
+
teams {
|
|
2797
|
+
name
|
|
2798
|
+
}
|
|
2799
|
+
owners {
|
|
2800
|
+
email
|
|
2801
|
+
}
|
|
2802
|
+
attributeValues {
|
|
2803
|
+
attributeKey {
|
|
2804
|
+
name
|
|
2805
|
+
}
|
|
2806
|
+
name
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
`,ga= exports.Wb =_graphqlrequest.gql`
|
|
2812
|
+
mutation TranscendCliCreateDataSubCategory(
|
|
2813
|
+
$input: CreateDataInventorySubCategoryInput!
|
|
2814
|
+
) {
|
|
2815
|
+
createDataSubCategory(input: $input) {
|
|
2816
|
+
dataSubCategory {
|
|
2817
|
+
id
|
|
2818
|
+
name
|
|
2819
|
+
category
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
`,ya= exports.Xb =_graphqlrequest.gql`
|
|
2824
|
+
mutation TranscendCliUpdateDataSubCategories(
|
|
2825
|
+
$input: UpdateDataSubCategoriesInput!
|
|
2826
|
+
) {
|
|
2827
|
+
updateDataSubCategories(input: $input) {
|
|
2828
|
+
clientMutationId
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
`;var ha=_graphqlrequest.gql`
|
|
2832
|
+
query TranscendCliProcessingPurposeSubCategories(
|
|
2833
|
+
$first: Int!
|
|
2834
|
+
$offset: Int!
|
|
2835
|
+
) {
|
|
2836
|
+
processingPurposeSubCategories(
|
|
2837
|
+
first: $first
|
|
2838
|
+
offset: $offset
|
|
2839
|
+
isExportCsv: true
|
|
2840
|
+
useMaster: false
|
|
2841
|
+
) {
|
|
2842
|
+
nodes {
|
|
2843
|
+
id
|
|
2844
|
+
name
|
|
2845
|
+
purpose
|
|
2846
|
+
description
|
|
2847
|
+
teams {
|
|
2848
|
+
name
|
|
2849
|
+
}
|
|
2850
|
+
owners {
|
|
2851
|
+
email
|
|
2852
|
+
}
|
|
2853
|
+
attributeValues {
|
|
2854
|
+
attributeKey {
|
|
2855
|
+
name
|
|
2856
|
+
}
|
|
2857
|
+
name
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
`,Ca= exports.Zb =_graphqlrequest.gql`
|
|
2863
|
+
mutation TranscendCliCreateProcessingPurposeSubCategory(
|
|
2864
|
+
$input: CreateProcessingPurposeCategoryInput!
|
|
2865
|
+
) {
|
|
2866
|
+
createProcessingPurposeSubCategory(input: $input) {
|
|
2867
|
+
processingPurposeSubCategory {
|
|
2868
|
+
id
|
|
2869
|
+
name
|
|
2870
|
+
purpose
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
`,Sa= exports._b =_graphqlrequest.gql`
|
|
2875
|
+
mutation TranscendCliUpdateProcessingPurposeSubCategories(
|
|
2876
|
+
$input: UpdateProcessingPurposeSubCategoriesInput!
|
|
2877
|
+
) {
|
|
2878
|
+
updateProcessingPurposeSubCategories(input: $input) {
|
|
2879
|
+
clientMutationId
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
`;var Aa=_graphqlrequest.gql`
|
|
2883
|
+
query TranscendCliProcessingActivities($first: Int!, $offset: Int!) {
|
|
2884
|
+
processingActivities(first: $first, offset: $offset, useMaster: false) {
|
|
2885
|
+
nodes {
|
|
2886
|
+
id
|
|
2887
|
+
title
|
|
2888
|
+
description
|
|
2889
|
+
securityMeasureDetails
|
|
2890
|
+
controllerships
|
|
2891
|
+
storageRegions {
|
|
2892
|
+
countrySubDivision
|
|
2893
|
+
country
|
|
2894
|
+
}
|
|
2895
|
+
transferRegions {
|
|
2896
|
+
countrySubDivision
|
|
2897
|
+
country
|
|
2898
|
+
}
|
|
2899
|
+
retentionType
|
|
2900
|
+
retentionPeriod
|
|
2901
|
+
dataProtectionImpactAssessmentLink
|
|
2902
|
+
dataProtectionImpactAssessmentStatus
|
|
2903
|
+
attributeValues {
|
|
2904
|
+
name
|
|
2905
|
+
attributeKey {
|
|
2906
|
+
name
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
dataSilos {
|
|
2910
|
+
title
|
|
2911
|
+
}
|
|
2912
|
+
dataSubjects {
|
|
2913
|
+
type
|
|
2914
|
+
}
|
|
2915
|
+
teams {
|
|
2916
|
+
name
|
|
2917
|
+
}
|
|
2918
|
+
owners {
|
|
2919
|
+
email
|
|
2920
|
+
}
|
|
2921
|
+
processingPurposeSubCategories {
|
|
2922
|
+
name
|
|
2923
|
+
purpose
|
|
2924
|
+
}
|
|
2925
|
+
dataSubCategories {
|
|
2926
|
+
name
|
|
2927
|
+
category
|
|
2928
|
+
}
|
|
2929
|
+
saaSCategories {
|
|
2930
|
+
title
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
`,Ia= exports.ac =_graphqlrequest.gql`
|
|
2936
|
+
mutation TranscendCliCreateProcessingActivity(
|
|
2937
|
+
$input: CreateProcessingActivityInput!
|
|
2938
|
+
) {
|
|
2939
|
+
createProcessingActivity(input: $input) {
|
|
2940
|
+
processingActivity {
|
|
2941
|
+
id
|
|
2942
|
+
title
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
`,Ta= exports.bc =_graphqlrequest.gql`
|
|
2947
|
+
mutation TranscendCliUpdateProcessingActivities(
|
|
2948
|
+
$input: UpdateProcessingActivitiesInput!
|
|
2949
|
+
) {
|
|
2950
|
+
updateProcessingActivities(input: $input) {
|
|
2951
|
+
clientMutationId
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
`;var Pa=_graphqlrequest.gql`
|
|
2955
|
+
query TranscendSombraVersion {
|
|
2956
|
+
organization {
|
|
2957
|
+
sombra {
|
|
2958
|
+
version
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
}
|
|
2962
|
+
`;var Ea=_graphqlrequest.gql`
|
|
2963
|
+
query TranscendCliSiloDiscoveryResults($first: Int!, $offset: Int!) {
|
|
2964
|
+
siloDiscoveryResults(first: $first, offset: $offset) {
|
|
2965
|
+
nodes {
|
|
2966
|
+
title
|
|
2967
|
+
resourceId
|
|
2968
|
+
country
|
|
2969
|
+
countrySubDivision
|
|
2970
|
+
plaintextContext
|
|
2971
|
+
status
|
|
2972
|
+
containsSensitiveData
|
|
2973
|
+
suggestedCatalog {
|
|
2974
|
+
title
|
|
2975
|
+
}
|
|
2976
|
+
plugin {
|
|
2977
|
+
dataSilo {
|
|
2978
|
+
title
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
`;var _typeutils = require('@transcend-io/type-utils');var _internationalization = require('@transcend-io/internationalization');var _privacytypes = require('@transcend-io/privacy-types');var _iots = require('io-ts'); var L = _interopRequireWildcard(_iots); var gt = _interopRequireWildcard(_iots); var ka = _interopRequireWildcard(_iots); var et = _interopRequireWildcard(_iots); var P = _interopRequireWildcard(_iots); var j = _interopRequireWildcard(_iots); var $e = _interopRequireWildcard(_iots); var le = _interopRequireWildcard(_iots); var q = _interopRequireWildcard(_iots); var ne = _interopRequireWildcard(_iots); var Xt = _interopRequireWildcard(_iots); var ze = _interopRequireWildcard(_iots); var Rl = _interopRequireWildcard(_iots);var z="[NONE]",jt= exports.fc ="[APPLY VALUE TO ALL ROWS]",ui= exports.gc ="<blank>",pr= exports.hc =["email","coreIdentifier"],Tt= exports.ic =(m=>(m.Email="email",m.CoreIdentifier="coreIdentifier",m.RequestType="requestType",m.SubjectType="subjectType",m.Locale="locale",m.Country="country",m.CountrySubDivision="countrySubDivision",m.RequestStatus="requestStatus",m.CreatedAt="createdAt",m.DataSiloIds="dataSiloIds",m))(Tt||{}),Ra= exports.jc ={email:!1,coreIdentifier:!0,requestType:!0,subjectType:!0,requestStatus:!1,createdAt:!1,dataSiloIds:!1,locale:!1,country:!1,countrySubDivision:!1},ba= exports.kc ={requestType:!0,subjectType:!0},wa= exports.lc =L.type({columnNames:L.partial(_typeutils.applyEnum.call(void 0, Tt,()=>L.string)),identifierNames:L.record(L.string,L.string),attributeNames:L.record(L.string,L.string),requestTypeToRequestAction:L.record(L.string,_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)),subjectTypeToSubjectName:L.record(L.string,L.string),languageToLocale:L.record(L.string,_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY)),regionToCountry:L.record(L.string,_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,[z]:z})),regionToCountrySubDivision:L.record(L.string,_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountrySubdivisionCode,[z]:z})),statusToRequestStatus:L.record(L.string,_typeutils.valuesOf.call(void 0, {..._privacytypes.CompletedRequestStatus,[z]:z}))}),lr= exports.mc =L.type({id:L.string,link:L.string,rowIndex:L.number,coreIdentifier:L.string,attemptedAt:L.string}),$a= exports.nc =L.type({failingRequests:L.array(L.record(L.string,L.any)),successfulRequests:L.array(lr),duplicateRequests:L.array(L.type({rowIndex:L.number,coreIdentifier:L.string,attemptedAt:L.string}))});var _inquirer = require('inquirer'); var _inquirer2 = _interopRequireDefault(_inquirer);var _fuzzysearch = require('fuzzysearch'); var _fuzzysearch2 = _interopRequireDefault(_fuzzysearch);function Pt(t,e){return _fuzzysearch2.default.call(void 0, t.toLowerCase(),e.toLowerCase())||_fuzzysearch2.default.call(void 0, e.toLowerCase(),t.toLowerCase())}function Et(t,e,r,n){let i=t.filter(s=>Pt(e.toLowerCase(),s.toLowerCase()));return[...i,new _inquirer2.default.Separator,...r?[]:[z],...n?[jt]:[],...t.filter(s=>!i.includes(s))]}var _inquirerautocompleteprompt = require('inquirer-autocomplete-prompt'); var _inquirerautocompleteprompt2 = _interopRequireDefault(_inquirerautocompleteprompt);async function ft(t,e,r){_inquirer2.default.registerPrompt("autocomplete",_inquirerautocompleteprompt2.default);let n=t.map(s=>s||"<blank>").filter(s=>!r[s]);if(n.length===0)return r;let i=await _inquirer2.default.prompt(n.map(s=>({name:s,message:`Map value of: ${s}`,type:"autocomplete",default:e.find(o=>Pt(s,o)),source:(o,p)=>p?e.filter(c=>typeof c=="string"&&Pt(p,c)):e})));return{...r,..._typeutils.apply.call(void 0, i,s=>typeof s=="string"?s:Object.values(s)[0])}}function mi(t){return t.split(",").map(e=>e.trim()).filter(e=>e)}var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var va=gt.type({key:gt.string,values:gt.array(gt.string)});function La(t){let e=t.map(r=>{let[n,i]=r.trim().split(":");if(!i)throw new Error("Expected attributes in key:value1;value2,key2:value3;value4");let s=i.split(";");return{key:n,values:s}});return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Attributes to apply to all requests:")),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(JSON.stringify(e,null,2))),e}var _sync = require('csv-parse/sync');var _fs = require('fs');function _a(t,e,r={columns:!0}){let n=_sync.parse.call(void 0, _fs.readFileSync.call(void 0, t,"utf-8"),r);return _typeutils.decodeCodec.call(void 0, ka.array(e),n).map(o=>Object.entries(o).reduce((p,[c,u])=>Object.assign(p,{[c.replace(/[^a-z_.+\-A-Z -~]/g,"")]:u}),{}))}function Xe(t,e){return _chunkDQCPGPXGcjs.j.call(void 0, t.map(r=>r[e]||"").flat())}async function Ga(t){let e=_chunkDQCPGPXGcjs.j.call(void 0, t.map(i=>Object.keys(i)).flat()),r=t,n=!0;for(;n;){let{filterColumnName:i}=await _inquirer2.default.prompt([{name:"filterColumnName",message:`If you need to filter the list of requests to import, choose the column to filter on. Currently ${r.length} rows.`,type:"list",default:e,choices:[z,...e]}]);if(n=z!==i,n){let s=Xe(r,i),{valuesToKeep:o}=await _inquirer2.default.prompt([{name:"valuesToKeep",message:"Keep rows matching this value",type:"checkbox",default:e,choices:s}]);r=r.filter(p=>o.includes(p[i]))}}return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Importing ${r.length} requests`)),r}function Nc(t,e){return new (0, _graphqlrequest.GraphQLClient)(`${t}/graphql`,{headers:{...e,version:_chunkDQCPGPXGcjs.m}})}function W(t,e){return Nc(t,{Authorization:`Bearer ${e}`})}var _got = require('got'); var _got2 = _interopRequireDefault(_got);async function st(t,e,r){let n=W(t,e),{organization:i}=await l(n,so),{customerUrl:s}=i.sombra;if(["https://sombra-reverse-tunnel.transcend.io","https://sombra-reverse-tunnel.us.transcend.io"].includes(s))throw new Error("It looks like your Sombra customer ingress URL has not been set up. Please follow the instructions here to configure networking for Sombra: https://docs.transcend.io/docs/articles/sombra/deploying/customizing-sombra/networking");let o=process.env.SOMBRA_URL||s;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Using sombra: ${o}`)),_got2.default.extend({prefixUrl:o,headers:{Authorization:`Bearer ${e}`,...r?{"X-Sombra-Authorization":`Bearer ${r}`}:{}}})}function Lh(t){return _got2.default.extend({prefixUrl:t})}async function Gh(t,{id:e,bundleType:r}){await l(t,$s,{airgapBundleId:e,bundleType:r})}async function Nh(t,{id:e,bundleType:r}){await l(t,ws,{airgapBundleId:e,bundleType:r})}async function Qh(t,e){let r=await l(t,ro,{dataSiloId:e,type:"DATA_SILO_DISCOVERY"}),{plugins:n,totalCount:i}=r.plugins;return i===0&&(_chunkZUNVPK23cjs.a.error("No active data silo plugins found for this data silo."),process.exit(1)),n[0]}var di=20;async function cr(t,e={}){let r=[],n=0,i=!1;do{let{globalActionItems:{nodes:s}}=await l(t,Ys,{first:di,offset:n,filterBy:{...e,...e.startDueDate?{startDueDate:e.startDueDate.toISOString()}:{},...e.endDueDate?{endDueDate:e.endDueDate.toISOString()}:{}}});r.push(...s.map(o=>({...o,id:o.ids[0],title:o.titles[0],notes:o.notes[0],link:o.links[0]}))),n+=di,i=s.length===di}while(i);return r}var fi=20;async function ur(t){let e=[],r=0,n=!1;do{let{actions:{nodes:i}}=await l(t,Ks,{first:fi,offset:r});e.push(...i),r+=fi,n=i.length===fi}while(n);return e.sort((i,s)=>i.type.localeCompare(s.type))}var gi=20;async function mr(t,e={}){let r=[],n=0,i=!1;do{let{agentFiles:{nodes:s}}=await l(t,oa,{first:gi,offset:n,filterBy:e});r.push(...s),n+=gi,i=s.length===gi}while(i);return r.sort((s,o)=>s.name.localeCompare(o.name))}var yi=20;async function dr(t){let e=[],r=0,n=!1;do{let{agentFunctions:{nodes:i}}=await l(t,pa,{first:yi,offset:r});e.push(...i.map(s=>({...s,parameters:JSON.parse(s.parameters)}))),r+=yi,n=i.length===yi}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var hi=20;async function fr(t,e={}){let r=[],n=0,i=!1;do{let{agents:{nodes:s}}=await l(t,ra,{first:hi,offset:n,filterBy:e});r.push(...s),n+=hi,i=s.length===hi}while(i);return r.sort((s,o)=>s.name.localeCompare(o.name))}var Ci=20;async function Na(t){let e=[],r=0,n=!1;do{let{assessmentForms:{nodes:i}}=await l(t,xo,{first:Ci,offset:r});e.push(...i),r+=Ci,n=i.length===Ci}while(n);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Si=20;async function Ma(t){let e=[],r=0,n=!1;do{let{assessmentFormTemplates:{nodes:i}}=await l(t,vo,{first:Si,offset:r});e.push(...i),r+=Si,n=i.length===Si}while(n);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Bc=50;async function Qc(t,e){let{createPrivacyCenterAccessTokens:{nodes:r}}=await l(t,Xn,{input:{records:e}});return r.map(n=>n.token)}async function yC(t,e,r,n=10){let i=0;r&&r(0);let s=[];return await E(_chunkDQCPGPXGcjs.b.call(void 0, e,Bc),async o=>{let c=(await Qc(t,o.map(({index:u,...m})=>m))).map((u,m)=>({input:o[m],accessToken:u}));s.push(...c),i+=o.length,r&&r(i)},{concurrency:n}),s}var Ai=20;async function Fa(t){let e=[],r=0,n=!1;do{let{attributeKeys:{nodes:i}}=await l(t,ao,{first:Ai,offset:r});e.push(...i),r+=Ai,n=i.length===Ai}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var Rt=100;async function Vc(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching all attribute values for ${e}...`));let r=[],n=0,i=!1;do{let{attributeValues:{nodes:s}}=await l(t,us,{first:Rt,offset:n,attributeKeyId:e});r.push(...s),n+=Rt,i=s.length===Rt}while(i);return r.sort((s,o)=>s.name.localeCompare(o.name))}var Kc=[_privacytypes.AttributeKeyType.MultiSelect,_privacytypes.AttributeKeyType.SingleSelect];async function bt(t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching all attributes..."));let e=[],r=0,n=!1;do{let{attributeKeys:{nodes:i}}=await l(t,as,{first:Rt,offset:r});e.push(...await Promise.all(i.map(async s=>({...s,values:Kc.includes(s.type)?await Vc(t,s.id):[]})))),r+=Rt,n=i.length===Rt}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var Ii=20;async function gr(t){let e=[],r=0,n=!1;do{let{businessEntities:{nodes:i}}=await l(t,Us,{first:Ii,offset:r});e.push(...i),r+=Ii,n=i.length===Ii}while(n);return e.sort((i,s)=>i.title.localeCompare(s.title))}async function Qa(t){let{consentManager:{consentManager:e}}=await l(t,Ps);return e}async function ve(t,e){let{consentManager:{consentManager:r}}=await l(t,Ts,{},{},e);return r.id}var Ti=50;async function yr(t){let e=[],r=0,n=!1;do{let{experiences:{nodes:i}}=await l(t,gs,{first:Ti,offset:r});e.push(...i),r+=Ti,n=i.length===Ti}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var jc=(r=>(r.Hourly="1h",r.Daily="1d",r))(jc||{});async function LC(t,e){let{analyticsData:{series:r}}=await l(t,Fs,{input:e});return r}async function Va(t,e){let{consentManagerTheme:{theme:r}}=await l(t,Es,{airgapBundleId:e});return r}var Pi=20;async function Ei(t,e=_privacytypes.ConsentTrackerStatus.Live){let r=[],n=0,i=await ve(t),s=!1;do{let{cookies:{nodes:o}}=await l(t,Is,{first:Pi,offset:n,airgapBundleId:i,status:e});r.push(...o),n+=Pi,s=o.length===Pi}while(s);return r.sort((o,p)=>o.name.localeCompare(p.name))}var Ri=20;async function hr(t){let e=[],r=0,n=!1;do{let{dataSubCategories:{nodes:i}}=await l(t,fa,{first:Ri,offset:r});e.push(...i),r+=Ri,n=i.length===Ri}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var bi=20;async function wt(t,e=_privacytypes.ConsentTrackerStatus.Live){let r=[],n=0,i=await ve(t),s=!1;do{let{dataFlows:{nodes:o}}=await l(t,As,{first:bi,offset:n,airgapBundleId:i,status:e,...e===_privacytypes.ConsentTrackerStatus.NeedsReview?{showZeroActivity:!0}:{}});r.push(...o),n+=bi,s=o.length===bi}while(s);return r.sort((o,p)=>o.value.localeCompare(p.value))}async function ja(t){let{translatedMessages:e}=await l(t,Po,{});return e}async function Yt(t){let{organization:e}=await l(t,Hs);return e.deployedPrivacyCenterUrl}async function $t(t,e){let r=e;r||(r=await Yt(t));let{privacyCenter:n}=await l(t,Ws,{url:r});return n.id}async function Cr(t){let e=await Yt(t),{privacyCenterPolicies:r}=await l(t,ho,{url:e});return r.sort((n,i)=>n.title.defaultMessage.localeCompare(i.title.defaultMessage))}function _e(t){let e=[];return t.map(r=>{let n=e.find(i=>i.key===r.attributeKey.name);return n===void 0?(n={key:r.attributeKey.name,values:[r.name]},e.push(n)):n.values.push(r.name),e}),e}var wi=20;async function Ya(t){let e=[],r=0,n=!1;do{let{preferenceTopics:{nodes:i}}=await l(t,qo,{first:wi,offset:r});e.push(...i),r+=wi,n=i.length===wi}while(n);return e.sort((i,s)=>`${i.slug}:${i.purpose.trackingType}`.localeCompare(`${s.slug}:${s.purpose.trackingType}`))}async function Za(t){let e=await Yt(t),{privacyCenter:{themeStr:r,...n}}=await l(t,Js,{url:e});return[{...n,theme:JSON.parse(r)}]}var $i=20;async function Sr(t){let e=[],r=0,n=!1;do{let{processingActivities:{nodes:i}}=await l(t,Aa,{first:$i,offset:r});e.push(...i),r+=$i,n=i.length===$i}while(n);return e.sort((i,s)=>i.title.localeCompare(s.title))}var xi=20;async function Ar(t){let e=[],r=0,n=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await l(t,ha,{first:xi,offset:r});e.push(...i),r+=xi,n=i.length===xi}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var Di=20;async function Ir(t,{includeDeleted:e=!1}={}){let r=[],n=0,i=!1;do{let{purposes:{nodes:s}}=await l(t,Do,{first:Di,offset:n,input:{includeDeleted:e}});r.push(...s),n+=Di,i=s.length===Di}while(i);return r.sort((s,o)=>s.trackingType.localeCompare(o.trackingType))}async function za(t){let[e,r]=await Promise.all([Ir(t),Ya(t)]);return e.map(n=>{let i=r.filter(s=>s.purpose.trackingType===n.trackingType);return{...n,topics:i}})}var qi=50;async function Tr(t,{requestId:e}){let r=[],n=0,i=!1;do{let{requestEnrichers:{nodes:s}}=await l(t,Ro,{first:qi,offset:n,requestId:e});r.push(...s),n+=qi,i=s.length===qi}while(i);return r}var vi=50;async function Wa(t,{requestId:e}){let r=[],n=0,i=!1;do{let{requestIdentifiers:{nodes:s}}=await l(t,Ho,{first:vi,offset:n,requestIds:[e]});r.push(...s),n+=vi,i=s.length===vi}while(i);return r}var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);var Ha="7.180.0",Jc=et.type({id:et.string,name:et.string,value:et.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.IdentifierType)}),Li=50,Xc= exports.md =et.type({identifiers:et.array(Jc)});async function Pr(t,e,{requestId:r}){let n=[],i=0,s=!1,{organization:{sombra:{version:o}}}=await l(t,Pa);if(o&&_semver2.default.lt(o,Ha))throw new Error(`Please upgrade Sombra to ${Ha} or greater to use this command.`);do{let p;try{p=await e.post("v1/request-identifiers",{json:{first:Li,offset:i,requestId:r}}).json()}catch(u){throw new Error(`Failed to fetch request identifiers: ${_optionalChain([u, 'optionalAccess', _2 => _2.response, 'optionalAccess', _3 => _3.body])||_optionalChain([u, 'optionalAccess', _4 => _4.message])}`)}let{identifiers:c}=_typeutils.decodeCodec.call(void 0, Xc,p);n.push(...c),i+=Li,s=c.length===Li}while(s);return n}var _cliprogress = require('cli-progress'); var _cliprogress2 = _interopRequireDefault(_cliprogress);var su=P.type({title:P.string,name:P.string,consent:P.boolean,enrichedPreferences:P.array(P.type({topic:P.string,selectValues:P.array(P.type({id:P.string,name:P.string,preferenceOption:P.type({id:P.string,slug:P.string,title:P.type({defaultMessage:P.string})})})),selectValue:P.type({id:P.string,name:P.string}),preferenceTopic:P.type({title:P.type({defaultMessage:P.string}),id:P.string,slug:P.string}),name:P.string,id:P.string,booleanValue:P.boolean}))}),zS= exports.pd =P.intersection([P.type({id:P.string,createdAt:P.string,email:P.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction),link:P.string,isSilent:P.boolean,origin:_typeutils.valuesOf.call(void 0, _privacytypes.RequestOrigin),isTest:P.boolean,coreIdentifier:P.string,details:P.string,locale:_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY),status:_typeutils.valuesOf.call(void 0, _privacytypes.RequestStatus),subjectType:P.string,country:P.union([P.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode)]),countrySubDivision:P.union([P.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)]),attributeValues:P.array(P.type({id:P.string,attributeKey:P.type({name:P.string,id:P.string}),name:P.string}))}),P.partial({daysRemaining:P.union([P.null,P.number]),purpose:su})]),Rr=50;async function ue(t,{actions:e=[],statuses:r=[],origins:n=[],text:i,createdAtBefore:s,createdAtAfter:o,isTest:p,isSilent:c,isClosed:u,requestIds:m=[]}={}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching requests..."));let d=new Date().getTime(),f=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),g=[],y=0,S=!1;do{let{requests:{nodes:C,totalCount:N}}=await l(t,So,{first:Rr,offset:y,filterBy:{text:i,type:e.length>0?e:void 0,status:r.length>0?r:void 0,origin:n.length>0?n:void 0,isTest:p,isSilent:c,isClosed:u,createdAtBefore:s?s.toISOString():void 0,createdAtAfter:o?o.toISOString():void 0}});y===0&&N>Rr&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${N} requests`)),f.start(N,0)),g.push(...C),y+=Rr,f.update(y),S=C.length===Rr}while(S);f.stop();let I=new Date().getTime()-d;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${g.length} request in "${I/1e3}" seconds.`));let _=g;return m&&m.length>0&&(_=_.filter(C=>m.includes(C.id)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Filtered down to ${_.length} requests based on ${m.length} provided IDs.`))),_}var ki=20;async function br(t){let e=[],r=0,n=!1;do{let{teams:{nodes:i}}=await l(t,jo,{first:ki,offset:r});e.push(...i),r+=ki,n=i.length===ki}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var _i=20;async function rA(t){let e=[],r=0,n=!1;do{let{users:{nodes:i}}=await l(t,Jo,{first:_i,offset:r});e.push(...i),r+=_i,n=i.length===_i}while(n);return e.sort((i,s)=>i.email.localeCompare(s.email))}var Oi=20;async function wr(t){let e=[],r=0,n=!1;do{let{vendors:{nodes:i}}=await l(t,ua,{first:Oi,offset:r});e.push(...i),r+=Oi,n=i.length===Oi}while(n);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Gi=20,au="https://app.transcend.io/infrastructure/api-keys";async function pu(t,e){let r=[],n=0,i=!1;do{let{apiKeys:{nodes:s}}=await l(t,Wn,{first:Gi,offset:n,titles:e});r.push(...s),n+=Gi,i=s.length===Gi}while(i);return r.sort((s,o)=>s.title.localeCompare(o.title))}async function $r({"api-keys":t=[],"data-silos":e=[]},r,n=!1){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${n?"all":t.length} API keys...`));let i=t.map(({title:m})=>m),s=_chunkDQCPGPXGcjs.j.call(void 0, e.map(m=>m["api-key-title"]).filter(m=>!!m)),o=[...s,...i],p=await pu(r,n?void 0:[...s,...i]),c=_chunkDQCPGPXGcjs.e.call(void 0, p,"title"),u=_chunkDQCPGPXGcjs.c.call(void 0, o,p.map(({title:m})=>m));return u.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to find API keys "${u.join('", "')}"! Make sure these API keys are created at: ${au}`)),process.exit(1)),c}var Ni=100;async function lu(t){let e=[],r=0,n=!1;do{let{catalogs:{nodes:i}}=await l(t,Mn,{first:Ni,offset:r});e.push(...i),r+=Ni,n=i.length===Ni}while(n);return e.sort((i,s)=>i.integrationName.localeCompare(s.integrationName))}async function gA(t){let e=await lu(t),r=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.title}),{}),n=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.hasApiFunctionality}),{});return{catalogs:e,serviceToTitle:r,serviceToSupportedIntegration:n}}async function Zt(t){let{internalSubjects:e}=await l(t,nr);return e}async function ep({"data-silos":t=[],"data-subjects":e=[],"processing-activities":r=[],enrichers:n=[]},i,s=!1){let o=_chunkDQCPGPXGcjs.j.call(void 0, [..._chunkDQCPGPXGcjs.a.call(void 0, t.map(m=>m["data-subjects"]||[])||[]),..._chunkDQCPGPXGcjs.a.call(void 0, _nullishCoalesce(r.map(({dataSubjectTypes:m})=>_nullishCoalesce(m, () => ([]))), () => ([]))),..._chunkDQCPGPXGcjs.a.call(void 0, n.map(m=>m["data-subjects"]||[])||[]),...e.map(m=>m.type)]);if(o.length===0&&!s)return{};let p=await Zt(i),c=_chunkDQCPGPXGcjs.e.call(void 0, p,"type"),u=_chunkDQCPGPXGcjs.c.call(void 0, o,p.map(({type:m})=>m));return u.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${u.length} new data subjects...`)),await b(u,async m=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating data subject ${m}...`));let{createSubject:d}=await l(i,Vn,{type:m,skipPublish:!0});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created data subject ${m}!`)),c[m]=d.subject})),c}function tp(t,e){return t.forEach(r=>{if(!e[r])throw new Error(`Expected to find data subject definition: ${r}`)}),Object.values(e).filter(r=>!t.includes(r.type)).map(({id:r})=>r)}function rp(t,e){return t.forEach(r=>{if(!e[r])throw new Error(`Expected to find data subject definition: ${r}`)}),Object.values(e).filter(r=>!t.includes(r.type)).map(({type:r})=>r)}var Ui=20;async function Bi(t){let e=[],r=0,n=!1;do{let{identifiers:{nodes:i}}=await l(t,Fn,{first:Ui,offset:r});e.push(...i),r+=Ui,n=i.length===Ui}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function ip({enrichers:t=[],"data-silos":e=[],identifiers:r=[]},n,i=!1){let s=await Bi(n),o=_chunkDQCPGPXGcjs.e.call(void 0, s,"name"),p=_chunkDQCPGPXGcjs.j.call(void 0, [..._chunkDQCPGPXGcjs.a.call(void 0, t.map(u=>[u["input-identifier"],...u["output-identifiers"]])),..._chunkDQCPGPXGcjs.a.call(void 0, e.map(u=>u["identity-keys"])),...r.map(({name:u})=>u)]).filter(u=>!!u),c=_chunkDQCPGPXGcjs.c.call(void 0, p,s.map(({name:u})=>u));if(c.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${c.length} new identifiers...`));let{newIdentifierTypes:u}=await l(n,Un),m=u.map(({name:d})=>d);await b(c,async d=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating identifier ${d}...`));let{createIdentifier:f}=await l(n,Bn,{input:{name:d,type:m.includes(d)?d:"custom",skipPublish:i}});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created identifier ${d}!`)),o[d]=f.identifier})}return o}var Qi=20;async function xr(t){let e=[],r=0,n=!1;do{let{promptGroups:{nodes:i}}=await l(t,_o,{first:Qi,offset:r});e.push(...i),r+=Qi,n=i.length===Qi}while(n);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Vi=20;async function Dr(t){let e=[],r=0,n=!1;do{let{promptPartials:{nodes:i}}=await l(t,ko,{first:Vi,offset:r});e.push(...i),r+=Vi,n=i.length===Vi}while(n);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Ki=20;async function Dt(t,{text:e,titles:r=[],ids:n=[]}={}){let i=[],s=0,o=!1;do{let{prompts:{nodes:p}}=await l(t,Lo,{first:Ki,offset:s,filterBy:{...e?{text:e}:{},...r.length>0?{title:r}:{},...n.length>0?{id:n}:{}}});i.push(...p),s+=Ki,o=p.length===Ki}while(o);return i.sort((p,c)=>p.title.localeCompare(c.title))}async function MA(t,{promptTitles:e=[],promptIds:r=[]}={}){let{promptsWithVariables:n}=await l(t,Oo,{input:{...e.length>0?{promptTitles:e}:{},...r.length>0?{promptIds:r}:{}}});return n}var ji=20;async function QA(t,e){let r=[],n=0,i=!1;do{let{promptThreads:{nodes:s}}=await l(t,go,{first:ji,offset:n,filterBy:e});r.push(...s),n+=ji,i=s.length===ji}while(i);return r.sort((s,o)=>s.threadId.localeCompare(o.threadId))}async function np(t,{requestId:e,dataSiloId:r,requestStatuses:n,statuses:i}){let{requestDataSilos:{totalCount:s}}=await l(t,Hr,{first:1,offset:0,filterBy:{dataSiloId:r,requestId:e,status:i,requestStatus:n}});return s}var Yi=100;async function Zi(t,{requestId:e,dataSiloId:r,requestStatuses:n,statuses:i,limit:s,onProgress:o}){let p=[],c=0,u=!1;do{let{requestDataSilos:{nodes:m}}=await l(t,Hr,{first:Yi,offset:c,filterBy:{dataSiloId:r,requestId:e,status:i,requestStatus:n}});p.push(...m),c+=Yi,u=m.length===Yi,_optionalChain([o, 'optionalCall', _5 => _5(m.length)])}while(u&&(!s||c<s));return p}async function op(t,{requestId:e,dataSiloId:r}){let n=await Zi(t,{requestId:e,dataSiloId:r});if(n.length!==1)throw new Error(`Failed to find RequestDataSilo with requestId:${e},dataSiloId:${r}`);return n[0]}async function WA(t,{dataSiloId:e}){let{listReducedRequestsForDataSilo:{totalCount:r}}=await l(t,Ko,{input:{dataSiloId:e,isResolved:!1}});return r}async function eI(t,e,r){let n=[],i=null,s=!1;do{let o=await l(t,es,{filterBy:{...r},first:e,after:_nullishCoalesce(i, () => (void 0))}),{bulkRequestFiles:{nodes:p,pageInfo:c}}=o;n.push(...p),s=c.hasNextPage,i=c.endCursor}while(s);return n.sort((o,p)=>o.remoteId.localeCompare(p.remoteId))}async function nI(t,{email:e,password:r}){let{determineLoginMethod:{loginMethod:n}}=await l(t,ii,{email:e}),i=await t.rawRequest(ea,{email:e,password:r,publicKey:n.sombraPublicKey}),{login:{user:s}}=i.data,o=i.headers.get("set-cookie");if(!o||!o.includes("laravel"))throw new Error("Failed to get login cookie in response");return{roles:s.roles,loginCookie:o}}async function oI(t,{email:e,roleId:r}){let{determineLoginMethod:{loginMethod:n}}=await l(t,ii,{email:e,userId:r});await t.rawRequest(ta,{id:r,publicKey:n.sombraPublicKey})}async function lI(t,e){let{createApiKey:{apiKey:r}}=await l(t,Hn,{input:e});return r}async function cI(t,e){await l(t,Jn,{id:e})}var du=j.type({dependsOnQuestionReferenceId:j.string,comparisonOperator:j.union([j.literal(_privacytypes.ComparisonOperator.IsEqualTo),j.literal(_privacytypes.ComparisonOperator.IsNotEqualTo),j.literal(_privacytypes.ComparisonOperator.IsOneOf),j.literal(_privacytypes.ComparisonOperator.IsNotOneOf),j.literal(_privacytypes.ComparisonOperator.Contains)]),comparisonOperands:j.array(j.string)}),fu= exports.Rd =j.type({dependsOnQuestionReferenceId:j.string,comparisonOperator:j.union([j.literal(_privacytypes.ComparisonOperator.IsNotShown),j.literal(_privacytypes.ComparisonOperator.IsShown)])}),ap= exports.Sd =j.union([du,fu]),gu= exports.Td =j.recursion("AssessmentNestedRule",t=>j.intersection([j.type({logicOperator:_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),j.partial({rules:j.array(ap),nestedRules:j.array(t)})])),yu= exports.Ud =j.partial({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction),rule:ap,nestedRule:gu});function zi(t){return _typeutils.decodeCodec.call(void 0, yu,t)}var Au=$e.intersection([$e.partial({riskAssignment:$e.partial({riskLevelId:$e.string,riskMatrixRowId:$e.string,riskMatrixColumnId:$e.string})}),$e.type({comparisonOperands:$e.array($e.string),comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)})]);function Wi(t){return _typeutils.decodeCodec.call(void 0, Au,t)}var Hi=20;async function lp(t,{titles:e,pageSize:r,ids:n=[],gql:i=vn,integrationNames:s=[]}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${n.length===0?"all":n.length} Data Silos...`));let o=[],p=0,c=!1;do{let{dataSilos:{nodes:u}}=await l(t,i,{filterBy:{ids:n.length>0?n:void 0,type:s.length>0?s:void 0,titles:e},first:r,offset:p});o.push(...u),p+=r,c=u.length===r}while(c);return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Found a total of ${o.length} data silo${n.length>0?` matching IDs ${n.join(",")}`:""}s${s.length>0?` matching integrationNames ${s.join(",")}`:""}`)),o.sort((u,m)=>u.title.localeCompare(m.title))}async function Tu(t,e,{debug:r,includeGuessedCategories:n,pageSize:i}){let s=[],o=0,p=!1;do try{r&&_chunkZUNVPK23cjs.a.log(_colors2.default.magenta(`Pulling in subdatapoints for offset ${o}`));let{subDataPoints:{nodes:c}}=await l(t,n?Dn:xn,{first:i,filterBy:{dataPoints:[e]},offset:o});s.push(...c),o+=i,p=c.length===i,r&&_chunkZUNVPK23cjs.a.log(_colors2.default.green(`Pulled in subdatapoints for offset ${o} for dataPointId=${e}`))}catch(c){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for offset ${o} for dataPointId=${e}`)),c}while(p);return _chunkDQCPGPXGcjs.g.call(void 0, s,"name")}async function Pu(t,e,{debug:r,pageSize:n,skipSubDatapoints:i,includeGuessedCategories:s}){let o=[],p=0,c=!1;do{r&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching datapoints with offset: ${p}`));let{dataPoints:{nodes:u}}=await l(t,$n,{first:n,filterBy:{dataSilos:[e]},offset:p});r&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetched ${u.length} datapoints at offset: ${p}`)),i||(await E(u,async m=>{try{r&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching subdatapoints for ${m.name} for datapoint offset ${p}`));let d=await Tu(t,m.id,{pageSize:1e3,debug:r,includeGuessedCategories:s});o.push({...m,subDataPoints:d.sort((f,g)=>f.name.localeCompare(g.name))}),r&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched subdatapoints for ${m.name}`))}catch(d){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for ${m.name} datapoint offset ${p}`)),d}},{concurrency:5}),r&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Fetched all subdatapoints for page of datapoints at offset: ${p}`))),p+=n,c=u.length===n}while(c);return o.sort((u,m)=>u.name.localeCompare(m.name))}async function cp(t,{ids:e,pageSize:r,titles:n,debug:i,skipDatapoints:s,skipSubDatapoints:o,includeGuessedCategories:p,integrationNames:c}){let u=[],m=await lp(t,{titles:n,ids:e,integrationNames:c,pageSize:r,gql:Ln});return s||await b(m,async(d,f)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[${f+1}/${m.length}] Fetching data silo - ${d.title}`));let g=await Pu(t,d.id,{debug:i,pageSize:r,skipSubDatapoints:o,includeGuessedCategories:p});i&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[${f+1}/${m.length}] Successfully fetched datapoint for - ${d.title}`)),u.push([d,g])}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched all ${m.length} data silo configurations`)),u}async function up(t,e,{pageSize:r,dataSubjectsByName:n,apiKeysByTitle:i}){let s=!1,o=new Date().getTime();_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" data silos...`));let p=await lp(e,{titles:t.map(({title:I})=>I),pageSize:r}),c=_chunkDQCPGPXGcjs.e.call(void 0, p,"title"),u=t.filter(({title:I})=>!c[I]);if(u.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" data silos that did not exist...`));let I=_chunkDQCPGPXGcjs.b.call(void 0, u,Hi);await b(I,async _=>{let{createDataSilos:{dataSilos:C}}=await l(e,kn,{input:_.map(N=>({name:N["outer-type"]||N.integrationName,title:N.title,country:N.country,countrySubDivision:N.countrySubDivision}))});C.forEach(N=>{c[N.title]=N})}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${u.length}" data silos!`))}let m=_chunkDQCPGPXGcjs.b.call(void 0, t,Hi);await b(m,async(I,_)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${_+1}/${m.length}] Syncing "${I.length}" data silos`)),await l(e,Vr,{input:{dataSilos:I.map(C=>({id:c[C.title].id,country:C.country,countrySubDivision:C.countrySubDivision,url:C.url,headers:C.headers,description:C.description,identifiers:C["identity-keys"],isLive:!C.disabled,ownerEmails:C.owners,teamNames:C.teams,dependedOnDataSiloTitles:C["deletion-dependencies"]?void 0:[],apiKeyId:C["api-key-title"]?i[C["api-key-title"]].id:void 0,dataSubjectBlockListIds:C["data-subjects"]?tp(C["data-subjects"],n):void 0,attributes:C.attributes,businessEntityTitles:C.businessEntityTitles,notifyEmailAddress:_optionalChain([C, 'access', _6 => _6["email-settings"], 'optionalAccess', _7 => _7["notify-email-address"]]),promptAVendorEmailSendFrequency:_optionalChain([C, 'access', _8 => _8["email-settings"], 'optionalAccess', _9 => _9["send-frequency"]]),promptAVendorEmailSendType:_optionalChain([C, 'access', _10 => _10["email-settings"], 'optionalAccess', _11 => _11["send-type"]]),promptAVendorEmailIncludeIdentifiersAttachment:_optionalChain([C, 'access', _12 => _12["email-settings"], 'optionalAccess', _13 => _13["include-identifiers-attachment"]]),promptAVendorEmailCompletionLinkType:_optionalChain([C, 'access', _14 => _14["email-settings"], 'optionalAccess', _15 => _15["completion-link-type"]]),manualWorkRetryFrequency:_optionalChain([C, 'access', _16 => _16["email-settings"], 'optionalAccess', _17 => _17["manual-work-retry-frequency"]])}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${_+1}/${m.length}] Synced "${I.length}" data silos!`))});let d=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),f=t.filter(({datapoints:I=[]})=>I.length>0),g=t.map(({datapoints:I=[]})=>I.length).reduce((I,_)=>I+_,0);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${g}" datapoints from "${f.length}" data silos...`)),d.start(g,0);let y=0;await E(f,async({datapoints:I,title:_})=>{I&&await b(I,async C=>{let N=C.fields?C.fields.map(({key:ee,description:fe,categories:me,purposes:te,attributes:Te,...Pe})=>({name:ee,description:fe,categories:me?me.map(ce=>({...ce,name:ce.name||"Other"})):void 0,purposes:te?te.map(ce=>({...ce,name:ce.name||"Other"})):void 0,attributes:Te,accessRequestVisibilityEnabled:Pe["access-request-visibility-enabled"],erasureRequestRedactionEnabled:Pe["erasure-request-redaction-enabled"]})):void 0,X={dataSiloId:c[_].id,path:C.path,name:C.key,title:C.title,description:C.description,...C.owners?{ownerEmails:C.owners}:{},...C.teams?{teamNames:C.teams}:{},...C["data-collection-tag"]?{dataCollectionTag:C["data-collection-tag"]}:{},querySuggestions:C["privacy-action-queries"]?Object.entries(C["privacy-action-queries"]).map(([ee,fe])=>({requestType:ee,suggestedQuery:fe})):void 0,enabledActions:C["privacy-actions"]||[],subDataPoints:N},Y=(X.subDataPoints||[]).map(({name:ee})=>ee),pe=Y.filter((ee,fe)=>Y.indexOf(ee)!==fe);if(pe.length>0)_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
|
|
2985
|
+
Cannot update datapoint "${C.key}" as it has duplicate sub-datapoints with the same name:
|
|
2986
|
+
${pe.join(`
|
|
2987
|
+
`)}`)),s=!0;else try{await l(e,qn,X)}catch(ee){_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
|
|
2988
|
+
Failed to update datapoint "${C.key}" for data silo "${_}"! -
|
|
2989
|
+
${ee.message}`)),s=!0}y+=1,d.update(y)})},{concurrency:10}),d.stop();let w=new Date().getTime()-o;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" data silos and "${g}" datapoints in "${w/1e3}" seconds!`)),{success:!s,dataSiloTitleToId:_typeutils.apply.call(void 0, c,({id:I})=>I)}}async function mp(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data silo dependencies...`));let n=_chunkDQCPGPXGcjs.b.call(void 0, e,Hi);return await b(n,async(i,s)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${s}/${i.length}] Updating "${i.length}" data silos...`));try{await l(t,Vr,{input:{dataSilos:i.map(([o,p])=>({id:o,dependedOnDataSiloTitles:p}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${s+1}/${i.length}] Synced "${i.length}" data silos!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`[Batch ${s+1}/${i.length}] Failed to update "${i.length}" silos! - ${o.message}`))}}),!r}var Ji=20;async function Xi(t,e){let r=[],n=0,i=!1;do{let{enrichers:{nodes:s}}=await l(t,_n,{first:Ji,offset:n,title:e});r.push(...s),n+=Ji,i=s.length===Ji}while(i);return r.sort((s,o)=>s.title.localeCompare(o.title))}async function fp(t,{enricher:e,identifierByName:r,dataSubjectsByName:n}){let s=(await Xi(t,e.title)).find(({title:u})=>u===e.title),o=_optionalChain([e, 'access', _18 => _18["data-subjects"], 'optionalAccess', _19 => _19.map, 'call', _20 => _20(u=>{let m=n[u];if(!m)throw new Error(`Failed to find a data subject with name: ${u}`);return m.id})]),p=e["input-identifier"],c=e["privacy-actions"]||Object.values(_privacytypes.RequestAction);s?await l(t,Nn,{input:{id:s.id,title:e.title,url:e.url,headers:e.headers,testRegex:e.testRegex,lookerQueryTitle:e.lookerQueryTitle,expirationDuration:typeof e.expirationDuration=="number"?e.expirationDuration.toString():void 0,transitionRequestStatus:e.transitionRequestStatus,phoneNumbers:e.phoneNumbers,regionList:e.regionList,dataSubjectIds:o,description:e.description||"",inputIdentifier:p?r[p].id:void 0,identifiers:e["output-identifiers"].map(u=>r[u].id),...s.type===_privacytypes.EnricherType.Sombra?{}:{actions:c}}}):p&&await l(t,Gn,{input:{title:e.title,url:e.url,type:e.type||_privacytypes.EnricherType.Server,headers:e.headers,testRegex:e.testRegex,lookerQueryTitle:e.lookerQueryTitle,expirationDuration:typeof e.expirationDuration=="number"?e.expirationDuration.toString():void 0,transitionRequestStatus:e.transitionRequestStatus,phoneNumbers:e.phoneNumbers,dataSubjectIds:o,regionList:e.regionList,description:e.description||"",inputIdentifier:r[p].id,identifiers:e["output-identifiers"].map(u=>r[u].id),actions:c}})}var en=20;async function ht(t,e){let r=[],n=0,i=!1;do{let{templates:{nodes:s}}=await l(t,no,{first:en,offset:n,title:e});r.push(...s),n+=en,i=s.length===en}while(i);return r.sort((s,o)=>s.title.localeCompare(o.title))}async function gp(t,e){(await ht(e,t.title)).find(({title:i})=>i===t.title)||await l(e,oo,{title:t.title})}function tn(t){return t.map(({country:e,countrySubDivision:r})=>({country:e,...r?{countrySubDivision:r}:{}}))}async function qt(t,e={}){let{globalActionItemCollections:{nodes:r}}=await l(t,ns,{filterBy:{...e}});return r}var rn=50;async function zt(t){let e=[],r=0,n=!1;do{let{consentPartitions:{nodes:i}}=await l(t,ys,{first:rn,offset:r});e.push(...i),r+=rn,n=i.length===rn}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function hp(t,e){let r=await ve(t),n=!1,i=await zt(t),s=_chunkDQCPGPXGcjs.c.call(void 0, e.map(({name:o})=>o),i.map(({name:o})=>o));return await b(s,async o=>{try{await l(t,Ms,{input:{id:r,name:o}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent partition: ${o}!`))}catch(p){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to create consent partition: ${o}! - ${p.message}`)),n=!0}}),!n}var nn=30;async function Cp(t){let e=[],r=0,n=!1;do{let{siloDiscoveryResults:{nodes:i}}=await l(t,Ea,{first:nn,offset:r,input:{},filterBy:{}}),s=i.map(o=>o.title===null&&_optionalChain([o, 'access', _21 => _21.suggestedCatalog, 'optionalAccess', _22 => _22.title])?{...o,title:o.suggestedCatalog.title}:o);e.push(...s),r+=nn,n=i.length===nn}while(n);return e}var $u=["dataSilos","enrichers","templates","apiKeys"];async function QT(t,{dataSiloIds:e,integrationNames:r,debug:n,resources:i=$u,pageSize:s,skipDatapoints:o,includeGuessedCategories:p,skipSubDatapoints:c,trackerStatuses:u=Object.values(_privacytypes.ConsentTrackerStatus)}){if(e.length>0&&r.length>0)throw new Error("Only 1 of integrationNames OR dataSiloIds can be provided");_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching data with page size ${s}...`));let[m,d,f,g,y,S,w,I,_,C,N,X,Y,pe,ee,fe,me,te,Te,Pe,ce,ge,xe,Oe,We,Ie,se,de,be,A,M,ye,he,In]=await Promise.all([i.includes("dataSilos")||i.includes("dataSubjects")?Zt(t):[],i.includes("apiKeys")?$r({},t,!0):[],i.includes("dataSilos")?cp(t,{ids:e,integrationNames:r,pageSize:s,debug:n,includeGuessedCategories:p,skipDatapoints:o,skipSubDatapoints:c}):[],i.includes("enrichers")?Xi(t):[],i.includes("dataFlows")?[...u.includes(_privacytypes.ConsentTrackerStatus.Live)?await wt(t,_privacytypes.ConsentTrackerStatus.Live):[],...u.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await wt(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],i.includes("cookies")?[...u.includes(_privacytypes.ConsentTrackerStatus.Live)?await Ei(t,_privacytypes.ConsentTrackerStatus.Live):[],...u.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await Ei(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],i.includes("customFields")?bt(t):[],i.includes("templates")?ht(t):[],i.includes("identifiers")?Bi(t):[],i.includes("actions")?ur(t):[],i.includes("businessEntities")?gr(t):[],i.includes("processingActivities")?Sr(t):[],i.includes("consentManager")?Qa(t):void 0,i.includes("consentManager")?yr(t):[],i.includes("prompts")?Dt(t):[],i.includes("promptPartials")?Dr(t):[],i.includes("promptGroups")?xr(t):[],i.includes("agents")?fr(t):[],i.includes("agentFunctions")?dr(t):[],i.includes("agentFiles")?mr(t):[],i.includes("vendors")?wr(t):[],i.includes("dataCategories")?hr(t):[],i.includes("processingPurposes")?Ar(t):[],i.includes("actionItems")?cr(t,{type:[_privacytypes.ActionItemCode.Onboarding]}):[],i.includes("actionItemCollections")?qt(t):[],i.includes("teams")?br(t):[],i.includes("policies")?Cr(t):[],i.includes("privacyCenters")?Za(t):[],i.includes("messages")?ja(t):[],i.includes("partitions")?zt(t):[],i.includes("assessments")?Na(t):[],i.includes("assessmentTemplates")?Ma(t):[],i.includes("purposes")?za(t):[],i.includes("systemDiscovery")?Cp(t):[]]),Ut=i.includes("consentManager")&&Y?await Va(t,Y.id):void 0,U={},Zl=_chunkDQCPGPXGcjs.a.call(void 0, f.map(([{apiKeys:h}])=>h.map(({title:T})=>T))),Tn=Object.values(d).filter(({title:h})=>i.includes("apiKeys")?!0:Zl.includes(h));if(Tn.length>0&&i.includes("apiKeys")&&(U["api-keys"]=Tn.map(({title:h})=>({title:h}))),A.length>0&&i.includes("partitions")&&(U.partitions=A.map(({name:h,partition:T})=>({name:h,partition:T}))),Y&&i.includes("consentManager")&&(U["consent-manager"]={bundleUrls:{TEST:Y.testBundleURL,PRODUCTION:Y.bundleURL},domains:Y.configuration.domains||void 0,partition:Y.configuration.partition||void 0,consentPrecedence:Y.configuration.consentPrecedence||void 0,unknownRequestPolicy:Y.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:Y.configuration.unknownCookiePolicy||void 0,syncEndpoint:Y.configuration.syncEndpoint||void 0,telemetryPartitioning:Y.configuration.telemetryPartitioning||void 0,signedIabAgreement:Y.configuration.signedIabAgreement||void 0,syncGroups:Y.configuration.syncGroups||void 0,theme:Ut?{primaryColor:Ut.primaryColor||void 0,fontColor:Ut.fontColor||void 0,privacyPolicy:Ut.privacyPolicy||void 0,prompt:Ut.prompt}:void 0,experiences:pe.map(h=>({name:h.name,displayName:h.displayName||void 0,regions:h.regions.map(T=>({countrySubDivision:T.countrySubDivision||void 0,country:T.country||void 0})),onConsentExpiry:h.onConsentExpiry,consentExpiry:h.consentExpiry,operator:h.operator,displayPriority:h.displayPriority,viewState:h.viewState,purposes:h.purposes.map(T=>({trackingType:T.trackingType})),optedOutPurposes:h.optedOutPurposes.map(T=>({trackingType:T.trackingType})),browserLanguages:h.browserLanguages,browserTimeZones:h.browserTimeZones}))}),M.length>0&&i.includes("assessments")&&(U.assessments=M.map(({title:h,assessmentGroup:T,sections:$,creator:x,description:D,status:v,assignees:k,externalAssignees:G,reviewers:V,isLocked:K,isArchived:re,isExternallyCreated:Z,dueDate:B,createdAt:Ce,assignedAt:Ge,submittedAt:Fe,approvedAt:Ue,rejectedAt:Be,titleIsInternal:ae,retentionSchedule:we,attributeValues:He,resources:Bt,syncedRows:lt})=>({title:h,group:T.title,sections:$.map(({title:Ee,status:Qe,questions:De,assignees:O,isReviewed:F,externalAssignees:Se})=>({title:Ee,status:Qe,questions:De.map(({title:ct,type:Ur,subType:qe,placeholder:Le,description:ut,isRequired:zl,referenceId:Wl,displayLogic:Pn,riskLogic:Hl,riskCategories:Jl,riskFramework:Xl,answerOptions:ec,selectedAnswers:tc,allowedMimeTypes:rc,allowSelectOther:ic,syncModel:nc,syncColumn:oc,attributeKey:sc,requireRiskEvaluation:ac,requireRiskMatrixEvaluation:pc})=>{let Ne=Pn?zi(Pn):void 0;return{title:ct,type:Ur,"sub-type":qe,placeholder:Le,description:ut,"is-required":zl,"reference-id":Wl,"display-logic":Ne&&Object.keys(Ne).length>0?{action:Ne.action,rule:Ne.rule?{"depends-on-question-reference-id":Ne.rule.dependsOnQuestionReferenceId,"comparison-operator":Ne.rule.comparisonOperator,"comparison-operands":"comparisonOperands"in Ne.rule?Ne.rule.comparisonOperands:void 0}:void 0,"nested-rule":Ne.nestedRule?{"logic-operator":Ne.nestedRule.logicOperator,rules:(Ne.nestedRule.rules||[]).map(ke=>({"depends-on-question-reference-id":ke.dependsOnQuestionReferenceId,"comparison-operator":ke.comparisonOperator,"comparison-operands":"comparisonOperands"in ke?ke.comparisonOperands:void 0}))}:void 0}:void 0,"risk-logic":Hl.map(ke=>{let Br=Wi(ke);return{"risk-level":_optionalChain([Br, 'access', _23 => _23.riskAssignment, 'optionalAccess', _24 => _24.riskLevelId]),"comparison-operands":Br.comparisonOperands,"comparison-operator":Br.comparisonOperator}}),"risk-categories":Jl.map(({title:ke})=>ke),"risk-framework":_optionalChain([Xl, 'optionalAccess', _25 => _25.title]),"answer-options":ec.map(({value:ke})=>({value:ke})),"selected-answers":tc.map(({value:ke})=>ke),"allowed-mime-types":rc,"allow-select-other":ic,"sync-model":nc||void 0,"sync-column":oc||void 0,"attribute-key":_optionalChain([sc, 'optionalAccess', _26 => _26.name]),"require-risk-evaluation":ac,"require-risk-matrix-evaluation":pc}}),assignees:O.map(({email:ct})=>ct),"external-assignees":Se.map(({email:ct})=>ct),"is-reviewed":F})),creator:_optionalChain([x, 'optionalAccess', _27 => _27.email]),description:D,status:v,assignees:k.map(({email:Ee})=>Ee),"external-assignees":G.map(({email:Ee})=>Ee),reviewers:V.map(({email:Ee})=>Ee),locked:K,archived:re,external:Z,"title-is-internal":ae,"due-date":B||void 0,"created-at":Ce||void 0,"assigned-at":Ge||void 0,"submitted-at":Fe||void 0,"approved-at":Ue||void 0,"rejected-at":Be||void 0,"retention-schedule":we?{type:we.type,"duration-days":we.durationDays,operand:we.operation}:void 0,attributes:He!==void 0&&He.length>0?_e(He):void 0,resources:Bt.map(({resourceType:Ee,title:Qe,name:De,category:O,type:F,purpose:Se})=>({type:Ee,title:O?`${O} - ${De}`:Se?`${Se} - ${De}`:Qe||De||F||""})),rows:lt.map(({resourceType:Ee,title:Qe,name:De,category:O,type:F,purpose:Se})=>({type:Ee,title:O?`${O} - ${De}`:Se?`${Se} - ${De}`:Qe||De||F||""}))}))),ye.length>0&&i.includes("assessmentTemplates")&&(U["assessment-templates"]=ye.map(({title:h,description:T,sections:$,status:x,source:D,creator:v,isLocked:k,isArchived:G,createdAt:V,retentionSchedule:K})=>({title:h,description:T,sections:$.map(({title:re,questions:Z})=>({title:re,questions:Z.map(({title:B,type:Ce,subType:Ge,placeholder:Fe,description:Ue,isRequired:Be,referenceId:ae,displayLogic:we,riskLogic:He,riskCategories:Bt,riskFramework:lt,answerOptions:Ee,allowedMimeTypes:Qe,allowSelectOther:De,syncModel:O,syncColumn:F,attributeKey:Se,requireRiskEvaluation:ct,requireRiskMatrixEvaluation:Ur})=>{let qe=we?zi(we):void 0;return{title:B,type:Ce,"sub-type":Ge,placeholder:Fe,description:Ue,"is-required":Be,"reference-id":ae,"display-logic":qe&&Object.keys(qe).length>0?{action:qe.action,rule:qe.rule?{"depends-on-question-reference-id":qe.rule.dependsOnQuestionReferenceId,"comparison-operator":qe.rule.comparisonOperator,"comparison-operands":"comparisonOperands"in qe.rule?qe.rule.comparisonOperands:void 0}:void 0,"nested-rule":qe.nestedRule?{"logic-operator":qe.nestedRule.logicOperator,rules:(qe.nestedRule.rules||[]).map(Le=>({"depends-on-question-reference-id":Le.dependsOnQuestionReferenceId,"comparison-operator":Le.comparisonOperator,"comparison-operands":"comparisonOperands"in Le?Le.comparisonOperands:void 0}))}:void 0}:void 0,"risk-logic":He.map(Le=>{let ut=Wi(Le);return{"risk-level":_optionalChain([ut, 'access', _28 => _28.riskAssignment, 'optionalAccess', _29 => _29.riskLevelId]),"risk-matrix-row":_optionalChain([ut, 'access', _30 => _30.riskAssignment, 'optionalAccess', _31 => _31.riskMatrixRowId]),"risk-matrix-column":_optionalChain([ut, 'access', _32 => _32.riskAssignment, 'optionalAccess', _33 => _33.riskMatrixColumnId]),"comparison-operands":ut.comparisonOperands,"comparison-operator":ut.comparisonOperator}}),"risk-categories":Bt.map(({title:Le})=>Le),"risk-framework":_optionalChain([lt, 'optionalAccess', _34 => _34.title]),"answer-options":Ee.map(({value:Le})=>({value:Le})),"allowed-mime-types":Qe,"allow-select-other":De,"sync-model":O||void 0,"sync-column":F||void 0,"attribute-key":_optionalChain([Se, 'optionalAccess', _35 => _35.name]),"require-risk-evaluation":ct,"require-risk-matrix-evaluation":Ur}})})),status:x,source:D,creator:_optionalChain([v, 'optionalAccess', _36 => _36.email]),locked:k,archived:G,"created-at":V||void 0,"retention-schedule":K?{type:K.type,"duration-days":K.durationDays,operand:K.operation}:void 0}))),In.length>0&&i.includes("systemDiscovery")&&(U["system-discovery"]=In.map(({title:h,resourceId:T,suggestedCatalog:{title:$},plugin:{dataSilo:{title:x}},country:D,countrySubDivision:v,plaintextContext:k,containsSensitiveData:G,status:V})=>({title:h,resourceId:T,suggestedCatalog:$,plugin:x,country:D||void 0,countrySubDivision:v||void 0,plaintextContext:k,containsSensitiveData:G,status:V}))),ee.length>0&&i.includes("prompts")&&(U.prompts=ee.map(({title:h,content:T})=>({title:h,content:T}))),fe.length>0&&i.includes("promptPartials")&&(U["prompt-partials"]=fe.map(({title:h,content:T})=>({title:h,content:T}))),me.length>0&&i.includes("promptGroups")&&(U["prompt-groups"]=me.map(({title:h,description:T,prompts:$})=>({title:h,description:T,prompts:$.map(({title:x})=>x)}))),Ie.length>0&&i.includes("teams")&&(U.teams=Ie.map(({name:h,description:T,ssoDepartment:$,ssoGroup:x,ssoTitle:D,users:v,scopes:k})=>({name:h,description:T,"sso-department":$||void 0,"sso-group":x||void 0,"sso-title":D||void 0,users:v.map(({email:G})=>G),scopes:k.map(({name:G})=>G)}))),m.length>0&&i.includes("dataSubjects")&&(U["data-subjects"]=m.map(({type:h,title:T,active:$,adminDashboardDefaultSilentMode:x,actions:D})=>({type:h,title:_optionalChain([T, 'optionalAccess', _37 => _37.defaultMessage]),active:$,adminDashboardDefaultSilentMode:x,actions:D.map(({type:v})=>v)}))),se.length>0&&(U.policies=se.map(({title:h,versions:T,disabledLocales:$})=>({title:_optionalChain([h, 'optionalAccess', _38 => _38.defaultMessage]),content:_optionalChain([T, 'optionalAccess', _39 => _39[0], 'optionalAccess', _40 => _40.content, 'optionalAccess', _41 => _41.defaultMessage]),disabledLocales:$}))),be.length>0&&(U.messages=be.map(({id:h,defaultMessage:T,targetReactIntlId:$,description:x,translations:D})=>({id:h,defaultMessage:T,description:x,targetReactIntlId:$||void 0,translations:D.reduce((v,{locale:k,value:G})=>Object.assign(v,{[k]:G}),{})}))),de.length>0){let h=de[0];U["privacy-center"]={isDisabled:h.isDisabled,showPrivacyRequestButton:h.showPrivacyRequestButton,showPolicies:h.showPolicies,showTrackingTechnologies:h.showTrackingTechnologies,showCookies:h.showCookies,showDataFlows:h.showDataFlows,showConsentManager:h.showConsentManager,showManageYourPrivacy:h.showManageYourPrivacy,showMarketingPreferences:h.showMarketingPreferences,locales:h.locales,defaultLocale:h.defaultLocale,preferBrowserDefaultLocale:h.preferBrowserDefaultLocale,supportEmail:h.supportEmail||void 0,replyToEmail:h.replyToEmail||void 0,useNoReplyEmailAddress:h.useNoReplyEmailAddress,useCustomEmailDomain:h.useCustomEmailDomain,transformAccessReportJsonToCsv:h.transformAccessReportJsonToCsv,theme:h.theme}}if(N.length>0&&i.includes("businessEntities")&&(U["business-entities"]=N.map(({title:h,description:T,address:$,headquarterCountry:x,headquarterSubDivision:D,dataProtectionOfficerName:v,dataProtectionOfficerEmail:k,attributeValues:G})=>({title:h,description:T||void 0,address:$||void 0,headquarterCountry:x||void 0,headquarterSubDivision:D||void 0,dataProtectionOfficerName:v||void 0,dataProtectionOfficerEmail:k||void 0,attributes:G!==void 0&&G.length>0?_e(G):void 0}))),X.length>0&&i.includes("processingActivities")&&(U["processing-activities"]=X.map(({title:h,description:T,securityMeasureDetails:$,controllerships:x,storageRegions:D,transferRegions:v,retentionType:k,retentionPeriod:G,dataProtectionImpactAssessmentLink:V,dataProtectionImpactAssessmentStatus:K,attributeValues:re,dataSilos:Z,dataSubjects:B,teams:Ce,owners:Ge,processingPurposeSubCategories:Fe,dataSubCategories:Ue,saaSCategories:Be})=>({title:h,description:T,securityMeasureDetails:_nullishCoalesce($, () => (void 0)),controllerships:x.length>0?x:void 0,storageRegions:D.length>0?tn(D):void 0,transferRegions:v.length>0?tn(v):void 0,retentionType:k,retentionPeriod:k===_privacytypes.RetentionType.StatedPeriod?G:void 0,dataProtectionImpactAssessmentLink:_nullishCoalesce(V, () => (void 0)),dataProtectionImpactAssessmentStatus:K,attributes:re!==void 0&&re.length>0?_e(re):void 0,dataSiloTitles:Z.length>0?Z.map(({title:ae})=>ae):void 0,dataSubjectTypes:B.length>0?B.map(({type:ae})=>ae):void 0,teamNames:Ce.length>0?Ce.map(({name:ae})=>ae):void 0,ownerEmails:Ge.length>0?Ge.map(({email:ae})=>ae):void 0,processingSubPurposes:Fe.length>0?Fe.map(({name:ae,purpose:we})=>({purpose:we,...ae?{name:ae}:{}})):void 0,dataSubCategories:Ue.length>0?Ue.map(({name:ae,category:we})=>({category:we,...ae?{name:ae}:{}})):void 0,saaSCategories:Be.length>0?Be.map(({title:ae})=>ae):void 0}))),C.length>0&&i.includes("actions")&&(U.actions=C.map(({type:h,skipSecondaryIfNoFiles:T,skipDownloadableStep:$,requiresReview:x,regionList:D,regionDetectionMethod:v,waitingPeriod:k})=>({type:h,...h===_privacytypes.RequestAction.Erasure?{skipSecondaryIfNoFiles:T,skipDownloadableStep:$}:{},requiresReview:x,waitingPeriod:k,regionDetectionMethod:v,regionList:D.length>0?D:void 0}))),_.length>0&&i.includes("identifiers")&&(U.identifiers=_.map(({name:h,type:T,regex:$,selectOptions:x,privacyCenterVisibility:D,isRequiredInForm:v,placeholder:k,displayTitle:G,dataSubjects:V,displayDescription:K,displayOrder:re,isUniqueOnPreferenceStore:Z})=>({name:h,type:T,regex:$,selectOptions:x.length>0?x:void 0,privacyCenterVisibility:D.length>0?D:void 0,isRequiredInForm:v,placeholder:k||void 0,dataSubjects:V.length>0?V.map(({type:B})=>B):void 0,displayTitle:_optionalChain([G, 'optionalAccess', _42 => _42.defaultMessage]),displayDescription:_optionalChain([K, 'optionalAccess', _43 => _43.defaultMessage]),displayOrder:re,isUniqueOnPreferenceStore:Z}))),te.length>0&&i.includes("agents")&&(U.agents=te.map(({name:h,agentId:T,description:$,instructions:x,codeInterpreterEnabled:D,retrievalEnabled:v,prompt:k,largeLanguageModel:G,teams:V,owners:K,agentFunctions:re,agentFiles:Z})=>({name:h,agentId:T,description:$||void 0,instructions:x,codeInterpreterEnabled:D,retrievalEnabled:v,prompt:_optionalChain([k, 'optionalAccess', _44 => _44.title]),"large-language-model":{name:G.name,client:G.client},teams:V&&V.length>0?V.map(({name:B})=>B):void 0,owners:K&&K.length>0?K.map(({email:B})=>B):void 0,"agent-functions":re&&re.length>0?re.map(({name:B})=>B):void 0,"agent-files":Z&&Z.length>0?Z.map(({name:B})=>B):void 0}))),Oe.length>0&&i.includes("actionItems")&&(U["action-items"]=Oe.map(({teams:h,users:T,customerExperienceActionItemIds:[$],dueDate:x,priority:D,resolved:v,collections:k,notes:G,link:V,title:K,type:re,attributeValues:Z})=>({teams:h.map(({name:B})=>B),users:T.map(({email:B})=>B),dueDate:x||void 0,title:K,notes:G,customerExperienceActionItemId:$,collections:k.map(({title:B})=>B),link:V,priority:D||void 0,resolved:v,type:re,attributes:Z!==void 0&&Z.length>0?_e(Z):void 0}))),We.length>0&&i.includes("actionItemCollections")&&(U["action-item-collections"]=We.map(({title:h,description:T,hidden:$,productLine:x})=>({title:h,description:T||void 0,hidden:$,productLine:x}))),Te.length>0&&i.includes("agentFunctions")&&(U["agent-functions"]=Te.map(({name:h,description:T,parameters:$})=>({name:h,description:T,parameters:JSON.stringify($)}))),Pe.length>0&&i.includes("agentFiles")&&(U["agent-files"]=Pe.map(({name:h,description:T,fileId:$,size:x,purpose:D})=>({name:h,description:T,fileId:$,size:x,purpose:D}))),ce.length>0&&i.includes("vendors")&&(U.vendors=ce.map(({title:h,description:T,dataProcessingAgreementLink:$,contactName:x,contactPhone:D,address:v,headquarterCountry:k,headquarterSubDivision:G,websiteUrl:V,businessEntity:K,teams:re,owners:Z,attributeValues:B})=>({title:h,description:T||void 0,dataProcessingAgreementLink:$||void 0,contactName:x||void 0,contactPhone:D||void 0,address:v||void 0,headquarterCountry:k||void 0,headquarterSubDivision:G||void 0,websiteUrl:V||void 0,businessEntity:_optionalChain([K, 'optionalAccess', _45 => _45.title]),teams:re&&re.length>0?re.map(({name:Ce})=>Ce):void 0,owners:Z&&Z.length>0?Z.map(({email:Ce})=>Ce):void 0,attributes:B!==void 0&&B.length>0?_e(B):void 0}))),ge.length>0&&i.includes("dataCategories")&&(U["data-categories"]=ge.map(({name:h,category:T,description:$,regex:x,owners:D,teams:v,attributeValues:k})=>({name:h,category:T,description:$||void 0,regex:x||void 0,owners:D&&D.length>0?D.map(({email:G})=>G):void 0,teams:v&&v.length>0?v.map(({name:G})=>G):void 0,attributes:k!==void 0&&k.length>0?_e(k):void 0}))),xe.length>0&&i.includes("processingPurposes")&&(U["processing-purposes"]=xe.map(({name:h,purpose:T,description:$,owners:x,teams:D,attributeValues:v})=>({name:h,purpose:T,description:$||void 0,owners:x&&x.length>0?x.map(({email:k})=>k):void 0,teams:D&&D.length>0?D.map(({name:k})=>k):void 0,attributes:v!==void 0&&v.length>0?_e(v):void 0}))),y.length>0&&i.includes("dataFlows")&&(U["data-flows"]=y.map(({value:h,type:T,description:$,trackingType:x,service:D,status:v,owners:k,teams:G,attributeValues:V})=>({value:h,type:T,description:$||void 0,trackingPurposes:x,status:v,service:_optionalChain([D, 'optionalAccess', _46 => _46.integrationName]),owners:k.map(({email:K})=>K),teams:G.map(({name:K})=>K),attributes:V!==void 0&&V.length>0?_e(V):void 0}))),S.length>0&&i.includes("cookies")&&(U.cookies=S.map(({name:h,isRegex:T,description:$,trackingPurposes:x,service:D,status:v,owners:k,teams:G,attributeValues:V})=>({name:h,isRegex:T,description:$||void 0,trackingPurposes:x,status:v,service:_optionalChain([D, 'optionalAccess', _47 => _47.integrationName]),owners:k.map(({email:K})=>K),teams:G.map(({name:K})=>K),attributes:V!==void 0&&V.length>0?_e(V):void 0}))),w.length>0&&i.includes("customFields")&&(U.attributes=w.map(({description:h,name:T,type:$,values:x,enabledOn:D=[]})=>({description:h||void 0,resources:D,name:T,type:$,values:x.map(({name:v,color:k,description:G})=>({name:v,color:k||void 0,description:G}))}))),he.length>0&&(U.purposes=he.map(({name:h,description:T,trackingType:$,defaultConsent:x,configurable:D,showInConsentManager:v,isActive:k,displayOrder:G,optOutSignals:V,authLevel:K,topics:re,showInPrivacyCenter:Z,title:B})=>({name:h,title:B,description:T||void 0,trackingType:$,"default-consent":x,configurable:D,"show-in-consent-manager":v,"show-in-privacy-center":Z,"is-active":k,"display-order":G,"opt-out-signals":V.length>0?V:void 0,"auth-level":K||void 0,"preference-topics":re.map(({title:Ce,type:Ge,displayDescription:Fe,defaultConfiguration:Ue,showInPrivacyCenter:Be,preferenceOptionValues:ae})=>({title:Ce.defaultMessage,type:Ge,description:Fe.defaultMessage,"default-configuration":Ue,"show-in-privacy-center":Be,...ae.length>0?{options:ae.map(({title:we,slug:He})=>({title:we.defaultMessage,slug:He}))}:{}}))}))),e.length===0&&I.length>0&&i.includes("templates")&&(U.templates=I.map(({title:h})=>({title:h}))),g.length>0&&i.includes("enrichers")&&(U.enrichers=g.map(({title:h,url:T,type:$,inputIdentifier:x,identifiers:D,actions:v,testRegex:k,dataSubjects:G,expirationDuration:V,lookerQueryTitle:K,transitionRequestStatus:re,phoneNumbers:Z,regionList:B})=>({title:h,url:T||void 0,type:$,"input-identifier":_optionalChain([x, 'optionalAccess', _48 => _48.name]),"output-identifiers":D.map(({name:Ce})=>Ce),"privacy-actions":Object.values(_privacytypes.RequestAction).length===v.length?void 0:v,testRegex:k||void 0,lookerQueryTitle:K||void 0,expirationDuration:parseInt(V,10),transitionRequestStatus:re||void 0,phoneNumbers:Z&&Z.length>0?Z:void 0,regionList:B&&B.length>0?B:void 0,"data-subjects":G.map(({type:Ce})=>Ce)}))),f.length>0&&i.includes("dataSilos")){let h=_chunkDQCPGPXGcjs.e.call(void 0, m,"type");U["data-silos"]=f.map(([{title:T,description:$,url:x,type:D,outerType:v,apiKeys:k,notifyEmailAddress:G,identifiers:V,dependentDataSilos:K,owners:re,country:Z,countrySubDivision:B,teams:Ce,subjectBlocklist:Ge,isLive:Fe,promptAVendorEmailSendFrequency:Ue,promptAVendorEmailSendType:Be,promptAVendorEmailIncludeIdentifiersAttachment:ae,promptAVendorEmailCompletionLinkType:we,manualWorkRetryFrequency:He,catalog:Bt,attributeValues:lt,discoveredBy:Ee,businessEntities:Qe},De])=>({title:T,description:$,integrationName:D,"outer-type":v||void 0,url:x||void 0,"api-key-title":_optionalChain([k, 'access', _49 => _49[0], 'optionalAccess', _50 => _50.title]),"identity-keys":V.filter(({isConnected:O})=>O).map(({name:O})=>O),...K.length>0?{"deletion-dependencies":K.map(({title:O})=>O)}:{},...re.length>0?{owners:re.map(({email:O})=>O)}:{},...Ce.length>0?{teams:Ce.map(({name:O})=>O)}:{},...Ee.length>0?{discoveredBy:Ee.map(({title:O})=>O)}:{},...Qe.length>0?{businessEntities:Qe.map(({title:O})=>O)}:{},country:Z||void 0,countrySubDivision:B||void 0,disabled:!Fe,"data-subjects":Ge.length>0?rp(Ge.map(({type:O})=>O),h):void 0,...Bt.hasAvcFunctionality?{"email-settings":{"notify-email-address":G||void 0,"send-frequency":Ue,"send-type":Be,"include-identifiers-attachment":ae,"completion-link-type":we,"manual-work-retry-frequency":He}}:{},attributes:lt!==void 0&<.length>0?_e(lt):void 0,datapoints:De.map(O=>({key:O.name,title:_optionalChain([O, 'access', _51 => _51.title, 'optionalAccess', _52 => _52.defaultMessage]),description:_optionalChain([O, 'access', _53 => _53.description, 'optionalAccess', _54 => _54.defaultMessage]),owners:O.owners.map(({email:F})=>F),teams:O.teams.map(({name:F})=>F),...O.path.length>0?{path:O.path}:{},..._optionalChain([O, 'access', _55 => _55.dataCollection, 'optionalAccess', _56 => _56.title])?{"data-collection-tag":O.dataCollection.title.defaultMessage}:{},...O.dbIntegrationQueries.length>0?{"privacy-action-queries":_chunkDQCPGPXGcjs.f.call(void 0, _chunkDQCPGPXGcjs.e.call(void 0, O.dbIntegrationQueries,"requestType"),F=>F.suggestedQuery||F.query||void 0)}:{},...O.subDataPoints.length>0?{fields:O.subDataPoints.map(F=>({key:F.name,description:F.description,purposes:F.purposes,categories:F.categories,...p&&F.pendingCategoryGuesses?{"guessed-categories":F.pendingCategoryGuesses.filter(Se=>Se.status==="PENDING").map(Se=>({category:{name:Se.category.name,category:Se.category.category},status:Se.status,confidence:Se.confidence,classifierVersion:Se.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":F.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":F.erasureRequestRedactionEnabled,attributes:F.attributeValues!==void 0&&F.attributeValues.length>0?_e(F.attributeValues):void 0})).sort((F,Se)=>F.key.localeCompare(Se.key))}:{},"privacy-actions":O.actionSettings.filter(({active:F})=>F).map(({type:F})=>F)})).sort((O,F)=>[..._nullishCoalesce(O.path, () => ([])),O.key].join(".").localeCompare([..._nullishCoalesce(F.path, () => ([])),F.key].join(".")))}))}return U}async function YT(t,e){let{reportPromptRun:{promptRun:r}}=await l(t,rs,{input:{...e,promptRunMessages:e.promptRunMessages.map(({content:n,...i})=>({...i,message:n}))}});return r.id}async function Ap(t,e){await l(t,bo,{requestEnricherId:e})}async function eP(t,e){await l(t,fs,{input:e})}var qu=[...Object.values(_privacytypes.IsoCountryCode),...Object.values(_privacytypes.IsoCountrySubdivisionCode)];async function Ip(t,{action:e,actionId:r,skipPublish:n=!1}){await l(t,js,{input:{id:r,skipSecondaryIfNoFiles:e.skipSecondaryIfNoFiles,skipDownloadableStep:e.skipDownloadableStep,requiresReview:e.requiresReview,waitingPeriod:e.waitingPeriod,skipPublish:n,regionList:e.regionBlockList?_chunkDQCPGPXGcjs.c.call(void 0, qu,e.regionBlockList):e.regionList,regionDetectionMethod:e.regionDetectionMethod}})}async function vu(t,e){let r={title:e.title,description:e.description||"",hidden:e.hidden||!1,productLine:e.productLine},{createActionItemCollection:n}=await l(t,os,{input:r});return n.created}async function Lu(t,e,r){await l(t,ss,{input:{id:r,title:e.title,description:e.description,hidden:e.hidden,productLine:e.productLine}})}async function Tp(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" action item collections...`));let n=await qt(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"title"),s=e.filter(p=>!i[p.title]);await b(s,async p=>{try{await vu(t,p),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created action item collection "${p.title}"!`))}catch(c){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action item collection "${p.title}"! - ${c.message}`))}});let o=e.map(p=>[p,_optionalChain([i, 'access', _57 => _57[p.title], 'optionalAccess', _58 => _58.id])]).filter(p=>!!p[1]);return await b(o,async([p,c])=>{try{await Lu(t,p,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item collection "${p.title}"!`))}catch(u){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item collection "${p.title}"! - ${u.message}`))}}),!r}async function ku(t,e,r,n={}){let i=_chunkDQCPGPXGcjs.b.call(void 0, e,100);await b(i,async s=>{await l(t,zs,{input:s.map(o=>({title:o.title,type:o.type,priorityOverride:o.priority,dueDate:o.dueDate,customerExperienceActionItemId:o.customerExperienceActionItemId,resolved:o.resolved,notes:o.notes,link:o.link,assigneesUserEmails:o.users,assigneesTeamNames:o.teams,...o.attributes?{}:{},collectionIds:o.collections.map(p=>r[p].id)}))})})}async function _u(t,e,r,n={}){let i=s=>{let o=n[s];if(!o)throw new Error(`Attribute key "${s}" does not exist!`);return o.id};await l(t,Zs,{input:{ids:[r],title:e.title,priorityOverride:e.priority,dueDate:e.dueDate,resolved:e.resolved,customerExperienceActionItemId:e.customerExperienceActionItemId,notes:e.notes,link:e.link,assigneesUserEmails:e.users,assigneesTeamNames:e.teams,...e.attributes?{attributes:e.attributes.map(({key:s,values:o})=>({attributeKeyId:i(s),attributeValueNames:o}))}:{}}})}function Ou({title:t,collections:e}){return`${t}-${e.map(r=>r.title).sort().join("-")}`}function Pp({title:t,collections:e}){return`${t}-${e.sort().join("-")}`}async function Ep(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" actionItems...`));let n=e.some(y=>y.attributes&&y.attributes.length>0),[i,s,o]=await Promise.all([cr(t),qt(t),n?bt(t):[]]),p=_chunkDQCPGPXGcjs.e.call(void 0, s,"title"),c=_chunkDQCPGPXGcjs.e.call(void 0, i,Ou),u=_chunkDQCPGPXGcjs.e.call(void 0, o,"name"),m=_chunkDQCPGPXGcjs.e.call(void 0, i.filter(y=>!!y.customerExperienceActionItemIds),({customerExperienceActionItemIds:y})=>y[0]),d=_chunkDQCPGPXGcjs.j.call(void 0, e.map(y=>y.collections).flat()).filter(y=>!p[y]);if(d.length>0)return _chunkZUNVPK23cjs.a.info(_colors2.default.red(`Missing action item collections: "${d.join('", "')}" - please create them first!`)),!1;let f=e.filter(y=>!c[Pp(y)]&&!m[y.customerExperienceActionItemId]);if(f.length>0)try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${f.length}" actionItems...`)),await ku(t,f,p,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${f.length}" actionItems!`))}catch(y){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action items! - ${y.message}`))}let g=e.map(y=>[y,_optionalChain([c, 'access', _59 => _59[Pp(y)], 'optionalAccess', _60 => _60.id])||_optionalChain([m, 'access', _61 => _61[y.customerExperienceActionItemId], 'optionalAccess', _62 => _62.id])]).filter(y=>!!y[1]);return await b(g,async([y,S])=>{try{await _u(t,y,S,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item "${y.title}"!`))}catch(w){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item "${y.title}"! - ${w.message}`))}}),!r}async function Gu(t,e){let r={name:e.name,description:e.description,fileId:e.fileId,size:e.size,purpose:e.purpose,fileUploadedAt:new Date,agentIds:[]},{createAgentFile:n}=await l(t,sa,{input:r});return n.agentFile}async function Nu(t,e){await l(t,aa,{input:{agentFiles:e.map(([r,n])=>({id:n,name:r.name,description:r.description,fileId:r.fileId,size:r.size,purpose:r.purpose}))}})}async function Rp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent files...`));let r=!1,n=await mr(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"name"),s=e.filter(o=>!i[o.name]);await b(s,async o=>{try{let p=await Gu(t,o);i[p.name]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent file "${o.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent file "${o.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" agent files!`)),await Nu(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent files!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent files! - ${o.message}`))}return!r}async function Mu(t,e){let r={name:e.name,description:e.description,parameters:e.parameters,agentIds:[]},{createAgentFunction:n}=await l(t,la,{input:r});return n.agentFunction}async function Fu(t,e){await l(t,ca,{input:{agentFunctions:e.map(([r,n])=>({id:n,name:r.name,description:r.description,parameters:r.parameters}))}})}async function bp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent functions...`));let r=!1,n=await dr(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"name"),s=e.filter(o=>!i[o.name]);await b(s,async o=>{try{let p=await Mu(t,o);i[p.name]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent function "${o.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent function "${o.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" agent functions!`)),await Fu(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent functions!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent functions! - ${o.message}`))}return!r}async function Uu(t,e){let r={name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled,promptTitle:e.prompt,largeLanguageModelName:e["large-language-model"].name,largeLanguageModelClient:e["large-language-model"].client},{createAgent:n}=await l(t,ia,{input:r});return n.agent}async function Bu(t,e){await l(t,na,{input:{agents:e.map(([r,n])=>({id:n,name:r.name,description:r.description,codeInterpreterEnabled:r.codeInterpreterEnabled,retrievalEnabled:r.retrievalEnabled}))}})}async function wp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agents...`));let r=!1,n=await fr(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"name"),s=e.filter(o=>!i[o.name]);await b(s,async o=>{try{let p=await Uu(t,o);i[p.name]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent "${o.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent "${o.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" agents!`)),await Bu(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agents!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agents ! - ${o.message}`))}return!r}async function $p(t,e,{existingAttribute:r,deleteExtraAttributeValues:n}){let i={name:e.name,enabledOn:e.resources},s;if(r)await l(t,ds,{attributeKeyId:r.id,description:r.isCustom?e.description:void 0,...i}),s=r.id;else{let{createAttributeKey:{attributeKey:m}}=await l(t,ms,{type:e.type,description:e.description,...i});s=m.id}let o=_chunkDQCPGPXGcjs.e.call(void 0, _optionalChain([r, 'optionalAccess', _63 => _63.values])||[],"name"),{existingValues:p=[],newValues:c=[]}=_chunkDQCPGPXGcjs.d.call(void 0, e.values||[],m=>o[m.name]?"existingValues":"newValues"),u=_chunkDQCPGPXGcjs.c.call(void 0, (_optionalChain([r, 'optionalAccess', _64 => _64.values])||[]).map(({name:m})=>m),(e.values||[]).map(({name:m})=>m));c.length>0&&(await l(t,ps,{input:c.map(({name:m,...d})=>({name:m,attributeKeyId:s,...d}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created ${c.length} attribute values`))),p.length>0&&(await l(t,ls,{input:p.map(({name:m,...d})=>({id:o[m].id,name:m,description:o[m].description,color:o[m].color,...d,attributeKeyId:s}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Updated ${p.length} attribute values`))),u.length>0&&n&&(await E(u,async m=>{await l(t,cs,{id:o[m].id})},{concurrency:10}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Deleted ${u.length} attribute values`)))}async function Qu(t,e){let r={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProtectionOfficerName:e.dataProtectionOfficerName,dataProtectionOfficerEmail:e.dataProtectionOfficerEmail,attributes:e.attributes,teamNames:e.teams,ownerEmails:e.owners},{createBusinessEntity:n}=await l(t,Bs,{input:r});return n.businessEntity}async function Vu(t,e){let r=_chunkDQCPGPXGcjs.b.call(void 0, e,100);await b(r,async n=>{await l(t,Qs,{input:n.map(([i,s])=>({id:s,title:i.title,description:i.description,address:i.address,headquarterCountry:i.headquarterCountry,headquarterSubDivision:i.headquarterSubDivision,dataProtectionOfficerName:i.dataProtectionOfficerName,dataProtectionOfficerEmail:i.dataProtectionOfficerEmail,attributes:i.attributes,teamNames:i.teams,ownerEmails:i.owners}))})})}async function xp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" business entities...`));let r=!1,n=await gr(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"title"),s=e.filter(o=>!i[o.title]);await b(s,async o=>{try{let p=await Qu(t,o);i[p.title]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced business entity "${o.title}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync business entity "${o.title}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" business entities!`)),await Vu(t,e.map(o=>[o,i[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" business entities!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" business entities ! - ${o.message}`))}return!r}var sn=20;async function Dp(t){let e=[],r=0,n=!1;do{let{codePackages:{nodes:i}}=await l(t,uo,{first:sn,offset:r});e.push(...i),r+=sn,n=i.length===sn}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var an=20;async function qp(t){let e=[],r=0,n=!1;do{let{softwareDevelopmentKits:{nodes:i}}=await l(t,po,{first:an,offset:r});e.push(...i),r+=an,n=i.length===an}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var Ku=100;async function ju(t,e){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:r}}=await l(t,co,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created software development kit "${e.name}"!`)),r}async function Yu(t,e){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:r}}=await l(t,lo,{input:{softwareDevelopmentKits:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} software development kits!`)),r}async function vp(t,e,r=20){let n=!1,i=[];_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing software development kits..."));let s=await qp(t),o=_chunkDQCPGPXGcjs.e.call(void 0, s,({name:d,codePackageType:f})=>JSON.stringify({name:d,codePackageType:f})),p=e.map(d=>[d,_optionalChain([o, 'access', _65 => _65[JSON.stringify({name:d.name,codePackageType:d.codePackageType})], 'optionalAccess', _66 => _66.id])]),c=p.filter(([,d])=>!d).map(([d])=>d);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new software development kits...`)),await E(c,async d=>{let f=await ju(t,d);i.push(f)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${c.length} software development kits!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create software development kits! - ${d.message}`))}let u=p.filter(d=>!!d[1]),m=_chunkDQCPGPXGcjs.b.call(void 0, u,Ku);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" software development kits...`)),await b(m,async d=>{try{let f=await Yu(t,d.map(([{codePackageType:g,...y},S])=>({...y,id:S})));i.push(...f),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.length}" software development kits!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update software development kits! - ${f.message}`))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" software development kits!`))}),{softwareDevelopmentKits:i,success:!n}}var pn=20;async function Lp(t){let e=[],r=0,n=!1;do{let{repositories:{nodes:i}}=await l(t,Yn,{first:pn,offset:r});e.push(...i),r+=pn,n=i.length===pn}while(n);return e.sort((i,s)=>i.name.localeCompare(s.name))}var Zu=100;async function zu(t,e){let{createRepository:{repository:r}}=await l(t,zn,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created repository "${e.name}"!`)),r}async function Wu(t,e){let{updateRepositories:{repositories:r}}=await l(t,Zn,{input:{repositories:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} repositories!`)),r}async function kp(t,e,r=20){let n=!1,i=[],s=await Lp(t),o=_chunkDQCPGPXGcjs.e.call(void 0, s,"name"),p=e.map(d=>[d,_optionalChain([o, 'access', _67 => _67[d.name], 'optionalAccess', _68 => _68.id])]),c=p.filter(([,d])=>!d).map(([d])=>d);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new repositories...`)),await E(c,async d=>{let f=await zu(t,d);i.push(f)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${c.length} repositories!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create repositories! - ${d.message}`))}let u=p.filter(d=>!!d[1]),m=_chunkDQCPGPXGcjs.b.call(void 0, u,Zu);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" repositories...`)),await b(m,async d=>{try{let f=await Wu(t,d.map(([g,y])=>({...g,id:y})));i.push(...f),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.length}" repositories!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update repositories! - ${f.message}`))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" repositories!`))}),{repositories:i,success:!n}}var Hu=100,Ot="%%%%";async function Ju(t,e){let{createCodePackage:{codePackage:r}}=await l(t,fo,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created code package "${e.name}"!`)),r}async function Xu(t,e){let{updateCodePackages:{codePackages:r}}=await l(t,mo,{input:{codePackages:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} code packages!`)),r}async function tR(t,e,r=20){let n=!1,[i,{softwareDevelopmentKits:s}]=await Promise.all([Dp(t),vp(t,_chunkDQCPGPXGcjs.k.call(void 0, e.map(({type:f,softwareDevelopmentKits:g=[]})=>g.map(({name:y})=>({name:y,codePackageType:f}))).flat(),({name:f,codePackageType:g})=>`${f}${Ot}${g}`),r),kp(t,_chunkDQCPGPXGcjs.k.call(void 0, e,"repositoryName").map(({repositoryName:f})=>({name:f,url:`https://github.com/${f}`})))]),o=_chunkDQCPGPXGcjs.e.call(void 0, s,({name:f,codePackageType:g})=>`${f}${Ot}${g}`),p=_chunkDQCPGPXGcjs.e.call(void 0, i,({name:f,type:g})=>`${f}${Ot}${g}`),c=e.map(f=>[f,_optionalChain([p, 'access', _69 => _69[`${f.name}${Ot}${f.type}`], 'optionalAccess', _70 => _70.id])]),u=c.filter(([,f])=>!f).map(([f])=>f);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new code packages...`)),await E(u,async({softwareDevelopmentKits:f,...g})=>{await Ju(t,{...g,...f?{softwareDevelopmentKitIds:_chunkDQCPGPXGcjs.j.call(void 0, f.map(({name:y})=>{let S=o[`${y}${Ot}${g.type}`];if(!S)throw new Error(`Failed to find SDK with name: "${y}"`);return S.id}))}:{}})},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.length} code packages!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create code packages! - ${f.message}`))}let m=c.filter(f=>!!f[1]);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${m.length}" code packages...`));let d=_chunkDQCPGPXGcjs.b.call(void 0, m,Hu);return await b(d,async f=>{try{await Xu(t,f.map(([{softwareDevelopmentKits:g,repositoryName:y,...S},w])=>({...S,...g?{softwareDevelopmentKitIds:_chunkDQCPGPXGcjs.j.call(void 0, g.map(({name:I})=>{let _=o[`${I}${Ot}${S.type}`];if(!_)throw new Error(`Failed to find SDK with name: "${I}"`);return _.id}))}:{},id:w}))),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${f.length}" code packages!`))}catch(g){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update code packages! - ${g.message}`))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" code packages!`)),!n}async function _p(t,{identifier:e,dataSubjectsByName:r,identifierId:n,skipPublish:i=!1}){await l(t,Qn,{input:{id:n,selectOptions:e.selectOptions,isRequiredInForm:e.isRequiredInForm,regex:e.regex,placeholder:e.placeholder,displayTitle:e.displayTitle,displayDescription:e.displayDescription,displayOrder:e.displayOrder,isUniqueOnPreferenceStore:e.isUniqueOnPreferenceStore,privacyCenterVisibility:e.privacyCenterVisibility,dataSubjectIds:e.dataSubjects?e.dataSubjects.map(s=>r[s].id):void 0,skipPublish:i}})}var em=100;async function tm(t,e){let r=await ve(t);await b(_chunkDQCPGPXGcjs.b.call(void 0, e,em),async n=>{await l(t,Ss,{airgapBundleId:r,cookies:n.map(i=>({name:i.name,trackingPurposes:i.trackingPurposes&&i.trackingPurposes.length>0?i.trackingPurposes:void 0,description:i.description,service:i.service,status:i.status,attributes:i.attributes,isRegex:i.isRegex}))})})}async function Op(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" cookies...`));let n=e.filter(i=>e.filter(s=>i.name===s.name&&i.isRegex===s.isRegex).length>1);if(n.length>0)throw new Error(`Failed to upload cookies as there were non-unique entries found: ${n.map(({name:i})=>i).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new cookies...`)),await tm(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} cookies!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create cookies! - ${i.message}`))}return!r}async function rm(t,e){let r={name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users},{createTeam:n}=await l(t,Yo,{input:r});return n.team}async function im(t,e,r){let{updateTeam:n}=await l(t,Zo,{input:{id:r,name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users}});return n.team}async function Gp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" teams...`));let r=!1,n=await br(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"name"),s=e.filter(p=>!i[p.name]),o=e.filter(p=>!!i[p.name]);return await b(s,async p=>{try{let c=await rm(t,p);i[c.name]=c,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created team "${p.name}"!`))}catch(c){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${p.name}"! - ${c.message}`))}}),await b(o,async p=>{try{let c=await im(t,p,i[p.name].id);i[c.name]=c,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated team "${p.name}"!`))}catch(c){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${p.name}"! - ${c.message}`))}}),!r}async function Np(t,{dataSubject:e,dataSubjectId:r,skipPublish:n=!1}){await l(t,Kn,{input:{id:r,title:e.title,adminDashboardDefaultSilentMode:e.adminDashboardDefaultSilentMode,actions:e.actions,skipPublish:n&&typeof e.active>"u"}}),typeof e.active=="boolean"&&await l(t,jn,{input:{id:r,active:e.active,skipPublish:n}})}async function nm(t,e){let{createPrompt:{prompt:r}}=await l(t,No,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt "${e.title}"!`)),r.id}async function om(t,e){await l(t,Go,{input:{prompts:e.map(([r,n])=>({...r,id:n}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompts!`))}async function Mp(t,e,r=20){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompts...`));let i=await Dt(t),s=_chunkDQCPGPXGcjs.e.call(void 0, i,"title"),o=e.map(u=>[u,_optionalChain([s, 'access', _71 => _71[u.title], 'optionalAccess', _72 => _72.id])]),p=o.filter(([,u])=>!u).map(([u])=>u);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${p.length}" new prompts...`)),await E(p,async u=>{await nm(t,u)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${p.length} prompts!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompts! - ${u.message}`))}let c=o.filter(u=>!!u[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" prompts...`)),await om(t,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${c.length}" prompts!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompts! - ${u.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" prompts!`)),!n}var sm=100;async function am(t,e){let r=await $t(t);await b(_chunkDQCPGPXGcjs.b.call(void 0, e,sm),async n=>{await l(t,Co,{privacyCenterId:r,policies:n.map(([i,s])=>({id:s,title:i.title,disableEffectiveOn:i.disableEffectiveOn,disabledLocales:i.disabledLocales,...i.effectiveOn||i.content?{version:{...i.effectiveOn?{effectiveOn:i.effectiveOn}:{},...i.content?{content:{defaultMessage:i.content}}:{}}}:{}}))})})}async function Fp(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" policies...`));let n=e.filter(o=>e.filter(p=>o.title===p.title).length>1);if(n.length>0)throw new Error(`Failed to upload policies as there were non-unique entries found: ${n.map(({title:o})=>o).join(",")}`);let i=await Cr(t),s=_chunkDQCPGPXGcjs.e.call(void 0, i,({title:o})=>o.defaultMessage);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new policies...`)),await am(t,e.map(o=>[o,_optionalChain([s, 'access', _73 => _73[o.title], 'optionalAccess', _74 => _74.id])])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} policies!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create policies! - ${o.message}`))}return!r}var pm=100;async function lm(t,e){await b(_chunkDQCPGPXGcjs.b.call(void 0, e,pm),async r=>{await l(t,Eo,{messages:r.map(n=>({...n.id.includes(".")?{}:{id:n.id},defaultMessage:n.defaultMessage,targetReactIntlId:n.targetReactIntlId,translations:n.translations?Object.entries(n.translations).map(([i,s])=>({locale:i,value:s})):void 0}))})})}async function Up(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" messages...`));let n=e.filter(i=>e.filter(s=>i.id===s.id).length>1);if(n.length>0)throw new Error(`Failed to upload messages as there were non-unique entries found: ${n.map(({id:i})=>i).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new messages...`)),await lm(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} messages!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create messages! - ${i.message}`))}return!r}async function Bp(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing privacy center..."));let n=await $t(t);try{await l(t,Xs,{input:{privacyCenterId:n,transformAccessReportJsonToCsv:e.transformAccessReportJsonToCsv,useCustomEmailDomain:e.useCustomEmailDomain,useNoReplyEmailAddress:e.useNoReplyEmailAddress,replyToEmail:e.replyToEmail,supportEmail:e.supportEmail,preferBrowserDefaultLocale:e.preferBrowserDefaultLocale,defaultLocale:e.defaultLocale,locales:e.locales,showMarketingPreferences:e.showMarketingPreferences,showManageYourPrivacy:e.showManageYourPrivacy,showPolicies:e.showPolicies,showConsentManager:e.showConsentManager,showDataFlows:e.showDataFlows,showCookies:e.showCookies,showTrackingTechnologies:e.showTrackingTechnologies,showPrivacyRequestButton:e.showPrivacyRequestButton,isDisabled:e.isDisabled,...e.theme?{colorPalette:e.theme.colors,componentStyles:e.theme.componentStyles,textStyles:e.theme.textStyles}:{}}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green("Successfully synced privacy center!"))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create privacy center! - ${i.message}`))}return!r}var _airgapjstypes = require('@transcend-io/airgap.js-types');var Vp="https://app.transcend.io/consent-manager/regional-experiences/purposes";async function mm(t,e){let r=await yr(t),n=_chunkDQCPGPXGcjs.e.call(void 0, r,"name"),i=await Ir(t),s=_chunkDQCPGPXGcjs.e.call(void 0, i,"trackingType");await E(e,async(o,p)=>{let c=_optionalChain([o, 'access', _75 => _75.purposes, 'optionalAccess', _76 => _76.map, 'call', _77 => _77((d,f)=>{let g=s[d.trackingType];if(!g)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${p}].purposes[${f}]: ${d.trackingType}. See list of valid purposes ${Vp}`);return g.id})]),u=_optionalChain([o, 'access', _78 => _78.optedOutPurposes, 'optionalAccess', _79 => _79.map, 'call', _80 => _80((d,f)=>{let g=s[d.trackingType];if(!g)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${p}].optedOutPurposes[${f}]: ${d.trackingType}. See list of valid purposes ${Vp}`);return g.id})]),m=n[o.name];m?(await l(t,Gs,{input:{id:m.id,name:o.displayName,regions:o.regions,operator:o.operator,onConsentExpiry:o.onConsentExpiry,consentExpiry:o.consentExpiry,displayPriority:o.displayPriority!==m.displayPriority?o.displayPriority:void 0,viewState:o.viewState,purposes:c,optedOutPurposes:u,browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced consent experience "${o.name}"!`))):(await l(t,Ns,{input:{name:o.name,displayName:o.displayName,regions:o.regions,operator:o.operator,onConsentExpiry:o.onConsentExpiry||_airgapjstypes.OnConsentExpiry.Prompt,consentExpiry:o.consentExpiry,displayPriority:o.displayPriority,viewState:o.viewState||_airgapjstypes.InitialViewState.Hidden,purposes:c||[],optedOutPurposes:u||[],browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent experience "${o.name}"!`)))},{concurrency:10})}async function Kp(t,e){let r;try{r=await ve(t,1)}catch(n){if(n.message.includes("AirgapBundle not found")){let i=await $t(t),{createConsentManager:s}=await l(t,Rs,{domains:e.domains,privacyCenterId:i});r=s.consentManager.id}else throw n}if(e.domains&&await l(t,xs,{domains:e.domains,airgapBundleId:r}),e.partition){let i=(await zt(t)).find(s=>s.name===e.partition);if(!i)throw new Error(`Partition "${e.partition}" not found. Please create the partition first.`);await l(t,Ds,{partitionId:i.id,airgapBundleId:r})}e.version&&await l(t,bs,{airgapBundleId:r,version:e.version}),e.signedIabAgreement&&await l(t,qs,{input:{id:r,...e.signedIabAgreement?{signedIabAgreement:e.signedIabAgreement}:{}}}),e.unknownRequestPolicy&&await l(t,vs,{input:{id:r,unknownRequestPolicy:e.unknownRequestPolicy}}),e.unknownRequestPolicy&&await l(t,Ls,{input:{id:r,unknownCookiePolicy:e.unknownCookiePolicy}}),e.telemetryPartitioning&&await l(t,ks,{input:{id:r,strategy:e.telemetryPartitioning}}),e.consentPrecedence&&await l(t,_s,{input:{id:r,consentPrecedence:e.consentPrecedence}}),e.experiences&&await mm(t,e.experiences),e.theme&&await l(t,Os,{input:{airgapBundleId:r,...e.theme}})}var Yp=100;async function dm(t,e,r=!1){let n=await ve(t);await b(_chunkDQCPGPXGcjs.b.call(void 0, e,Yp),async i=>{await l(t,Cs,{airgapBundleId:n,dataFlows:i.map(([s,o])=>({id:o,value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),classifyService:r})})}async function fm(t,e,r=!1){let n=await ve(t);await b(_chunkDQCPGPXGcjs.b.call(void 0, e,Yp),async i=>{await l(t,hs,{airgapBundleId:n,dataFlows:i.map(s=>({value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),dropMatchingDataFlowsInTriage:!0,classifyService:r})})}async function Zp(t,e,r){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data flows...`));let i=e.filter(d=>e.filter(f=>d.value===f.value&&d.type===f.type).length>1);if(i.length>0)throw new Error(`Failed to upload data flows as there were non-unique entries found: ${i.map(({value:d})=>d).join(",")}`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching data flows..."));let[s,o]=await Promise.all([wt(t,_privacytypes.ConsentTrackerStatus.Live),wt(t,_privacytypes.ConsentTrackerStatus.NeedsReview)]),p=[...s,...o],c=e.map(d=>[d,_optionalChain([p, 'access', _81 => _81.find, 'call', _82 => _82(f=>d.value===f.value&&d.type===f.type), 'optionalAccess', _83 => _83.id])]),u=c.filter(([,d])=>!d).map(([d])=>d);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new data flows...`)),await fm(t,u,r),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.length} data flows!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create data flows! - ${d.message}`))}let m=c.filter(d=>!!d[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${m.length}" data flows...`)),await dm(t,m,r),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${m.length}" data flows!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create data flows! - ${d.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" data flows!`)),!n}async function gm(t,e){let{createPromptPartial:{promptPartial:r}}=await l(t,Fo,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt partial "${e.title}"!`)),r.id}async function ym(t,e){await l(t,Mo,{input:{promptPartials:e.map(([r,n])=>({...r,id:n}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt partials!`))}async function zp(t,e,r=20){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt partials...`));let i=await Dr(t),s=_chunkDQCPGPXGcjs.e.call(void 0, i,"title"),o=e.map(u=>[u,_optionalChain([s, 'access', _84 => _84[u.title], 'optionalAccess', _85 => _85.id])]),p=o.filter(([,u])=>!u).map(([u])=>u);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${p.length}" new prompt partials...`)),await E(p,async u=>{await gm(t,u)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${p.length} prompt partials!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt partials! - ${u.message}`))}let c=o.filter(u=>!!u[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" prompt partials...`)),await ym(t,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${c.length}" prompt partials!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt partials! - ${u.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" prompt partials!`)),!n}async function hm(t,e){let{createPromptGroup:{promptGroup:r}}=await l(t,Bo,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt group "${e.title}"!`)),r.id}async function Cm(t,e){await l(t,Uo,{input:{promptGroups:e.map(([r,n])=>({...r,id:n}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt groups!`))}async function Wp(t,e,r=20){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt groups...`));let i=await xr(t),s=await Dt(t),o=_chunkDQCPGPXGcjs.e.call(void 0, s,"title"),p=_chunkDQCPGPXGcjs.e.call(void 0, i,"title"),c=e.map(d=>[d,_optionalChain([p, 'access', _86 => _86[d.title], 'optionalAccess', _87 => _87.id])]),u=c.filter(([,d])=>!d).map(([d])=>d);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new prompt groups...`)),await E(u,async d=>{await hm(t,{...d,promptIds:d.prompts.map(f=>{let g=o[f];if(!g)throw new Error(`Failed to find prompt with title: "${f}"`);return g.id})})},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.length} prompt groups!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt groups! - ${d.message}`))}let m=c.filter(d=>!!d[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${m.length}" prompt groups...`)),await Cm(t,m.map(([{prompts:d,...f},g])=>[{...f,promptIds:d.map(y=>{let S=o[y];if(!S)throw new Error(`Failed to find prompt with title: "${y}"`);return S.id})},g])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${m.length}" prompt groups!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt groups! - ${d.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" prompt groups!`)),!n}async function Sm(t,e){let r={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProcessingAgreementLink:e.dataProcessingAgreementLink,contactName:e.contactName,contactPhone:e.contactPhone,websiteUrl:e.websiteUrl},{createVendor:n}=await l(t,ma,{input:r});return n.vendor}async function Am(t,e){await l(t,da,{input:{vendors:e.map(([r,n])=>({id:n,title:r.title,description:r.description,address:r.address,headquarterCountry:r.headquarterCountry,headquarterSubDivision:r.headquarterSubDivision,dataProcessingAgreementLink:r.dataProcessingAgreementLink,contactName:r.contactName,contactPhone:r.contactPhone,websiteUrl:r.websiteUrl,attributes:r.attributes}))}})}async function Hp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" vendors...`));let r=!1,n=await wr(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"title"),s=e.filter(o=>!i[o.title]);await b(s,async o=>{try{let p=await Sm(t,o);i[p.title]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced vendor "${o.title}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync vendor "${o.title}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" vendors!`)),await Am(t,e.map(o=>[o,i[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" vendors!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" vendors ! - ${o.message}`))}return!r}async function Im(t,e){let r={name:e.name,category:e.category,description:e.description},{createDataCategory:n}=await l(t,ga,{input:r});return n.dataCategory}async function Tm(t,e){await l(t,ya,{input:{dataSubCategories:e.map(([r,n])=>({id:n,description:r.description,attributes:r.attributes}))}})}async function Jp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data categories...`));let r=!1,n=await hr(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,({name:o,category:p})=>`${o}:${p}`),s=e.filter(o=>!i[`${o.name}:${o.category}`]);await b(s,async o=>{try{let p=await Im(t,o);i[`${p.name}:${p.category}`]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data category "${o.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data category "${o.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" data categories!`)),await Tm(t,e.map(o=>[o,i[`${o.name}:${o.category}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" data categories!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" data categories ! - ${o.message}`))}return!r}async function Pm(t,e){let r={name:e.name,purpose:e.purpose,description:e.description},{createProcessingPurposeSubCategory:n}=await l(t,Ca,{input:r});return n.processingPurposeSubCategory}async function Em(t,e){await l(t,Sa,{input:{processingPurposeSubCategories:e.map(([r,n])=>({id:n,description:r.description,attributes:r.attributes}))}})}async function Xp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" processing purposes...`));let r=!1,n=await Ar(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,({name:o,purpose:p})=>`${o}:${p}`),s=e.filter(o=>!i[`${o.name}:${o.purpose}`]);await b(s,async o=>{try{let p=await Pm(t,o);i[`${p.name}:${p.purpose}`]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced processing purpose "${o.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync processing purpose "${o.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" processing purposes!`)),await Em(t,e.map(o=>[o,i[`${o.name}:${o.purpose}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" processing purposes!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" processing purposes ! - ${o.message}`))}return!r}async function Rm(t,e){let r={title:e.title,description:e.description},{createProcessingActivity:n}=await l(t,Ia,{input:r});return n.processingActivity}async function bm(t,e){let r=e.filter(([,n])=>n===void 0).map(([{title:n}])=>n);if(r.length>0)throw new Error(`The following ${r.length} processing activities do not exist and thus can't be updated: "${r.join('", "')}"`);await l(t,Ta,{input:{processingActivities:e.map(([{processingSubPurposes:n,dataSubCategories:i,saaSCategories:s,...o},p])=>({dataSubCategoryInputs:_optionalChain([i, 'optionalAccess', _88 => _88.map, 'call', _89 => _89(({category:c,name:u})=>({category:c,name:_nullishCoalesce(u, () => (""))}))]),processingPurposeSubCategoryInputs:_optionalChain([n, 'optionalAccess', _90 => _90.map, 'call', _91 => _91(({purpose:c,name:u})=>({purpose:c,name:_nullishCoalesce(u, () => ("Other"))}))]),saaSCategoryTitles:s,...o,id:p}))}})}async function el(t,e){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" processing activities...`));let n=await Sr(t),i=_chunkDQCPGPXGcjs.e.call(void 0, n,"title"),s=e.filter(o=>!i[o.title]);s.length>0&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${s.length}" new processing activities...`)),await b(s,async o=>{try{let p=await Rm(t,o);i[p.title]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created processing activity "${o.title}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create processing activity "${o.title}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" processing activities!`)),await bm(t,e.map(o=>[o,_optionalChain([i, 'access', _92 => _92[o.title], 'optionalAccess', _93 => _93.id])])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" processingActivities!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" processingActivities! - ${o.message}`))}return!r}var Ft=10;async function s$(t,e,{pageSize:r=50,publishToPrivacyCenter:n=!0,classifyService:i=!1,deleteExtraAttributeValues:s=!1}){let o=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching data with page size ${r}...`));let{templates:p,attributes:c,actions:u,identifiers:m,"data-subjects":d,"business-entities":f,enrichers:g,cookies:y,"consent-manager":S,"data-silos":w,"data-flows":I,prompts:_,"prompt-groups":C,"prompt-partials":N,agents:X,"agent-functions":Y,"agent-files":pe,vendors:ee,"data-categories":fe,"processing-activities":me,"processing-purposes":te,"action-items":Te,"action-item-collections":Pe,teams:ce,"privacy-center":ge,messages:xe,policies:Oe,partitions:We}=t,[Ie,se,de]=await Promise.all([g||m?ip(t,e,!n):{},w||d||g||me?ep(t,e):{},w&&w.map(A=>A["api-key-title"]||[]).reduce((A,M)=>A+M.length,0)>0?$r(t,e):{}]);if(S){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing consent manager..."));try{await Kp(e,S),_chunkZUNVPK23cjs.a.info(_colors2.default.green("Successfully synced consent manager!"))}catch(A){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync consent manager! - ${A.message}`))}}if(_){let A=await Mp(e,_);o=o||!A}if(N){let A=await zp(e,N);o=o||!A}if(C){let A=await Wp(e,C);o=o||!A}if(ce){let A=await Gp(e,ce);o=o||!A}if(p&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${p.length}" email templates...`)),await E(p,async A=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing template "${A.title}"...`));try{await gp(A,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced template "${A.title}"!`))}catch(M){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync template "${A.title}"! - ${M.message}`))}},{concurrency:Ft}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${p.length}" email templates!`))),f){let A=await xp(e,f);o=o||!A}if(ee){let A=await Hp(e,ee);o=o||!A}if(fe){let A=await Jp(e,fe);o=o||!A}if(te){let A=await Xp(e,te);o=o||!A}if(We){let A=await hp(e,We);o=o||!A}if(X){let A=await wp(e,X);o=o||!A}if(Y){let A=await bp(e,Y);o=o||!A}if(pe){let A=await Rp(e,pe);o=o||!A}if(y){let A=await Op(e,y);o=o||!A}if(Pe){let A=await Tp(e,Pe);o=o||!A}if(c){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${c.length}" attributes...`));let A=await bt(e);await E(c,async M=>{let ye=A.find(he=>he.name===M.name);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing attribute "${M.name}"...`));try{await $p(e,M,{existingAttribute:ye,deleteExtraAttributeValues:s}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced attribute "${M.name}"!`))}catch(he){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync attribute "${M.name}"! - ${he.message}`))}},{concurrency:Ft}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${c.length}" attributes!`))}if(Te){let A=await Ep(e,Te);o=o||!A}if(g&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${g.length}" enrichers...`)),await E(g,async A=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing enricher "${A.title}"...`));try{await fp(e,{enricher:A,identifierByName:Ie,dataSubjectsByName:se}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced enricher "${A.title}"!`))}catch(M){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync enricher "${A.title}"! - ${M.message}`))}},{concurrency:Ft}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${g.length}" enrichers!`))),m&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${m.length}" identifiers...`)),await E(m,async A=>{let M=Ie[A.name];if(!M)throw new Error(`Failed to find identifier with name: ${A.type}. Should have been auto-created by cli.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing identifier "${A.type}"...`));try{await _p(e,{identifier:A,dataSubjectsByName:se,identifierId:M.id,skipPublish:!n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced identifier "${A.type}"!`))}catch(ye){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync identifier "${A.type}"! - ${ye.message}`))}},{concurrency:Ft}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${m.length}" identifiers!`))),u){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${u.length}" actions...`));let A=await ur(e);await E(u,async M=>{let ye=A.find(he=>he.type===M.type);if(!ye)throw new Error(`Failed to find action with type: ${M.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing action "${M.type}"...`));try{await Ip(e,{action:M,actionId:ye.id,skipPublish:!n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action "${M.type}"!`))}catch(he){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action "${M.type}"! - ${he.message}`))}},{concurrency:Ft}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${u.length}" actions!`))}if(d){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${d.length}" data subjects...`));let A=await Zt(e);await E(d,async M=>{let ye=A.find(he=>he.type===M.type);if(!ye)throw new Error(`Failed to find data subject with type: ${M.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing data subject "${M.type}"...`));try{await Np(e,{dataSubject:M,dataSubjectId:ye.id,skipPublish:!n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data subject "${M.type}"!`))}catch(he){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data subject "${M.type}"! - ${he.message}`))}},{concurrency:Ft}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${d.length}" data subjects!`))}if(I){let A=await Zp(e,I,i);o=o||!A}if(ge){let A=await Bp(e,ge);o=o||!A}if(xe){let A=await Up(e,xe);o=o||!A}if(Oe){let A=await Fp(e,Oe);o=o||!A}let be=[];if(w){let{success:A,dataSiloTitleToId:M}=await up(w,e,{dataSubjectsByName:se,apiKeysByTitle:de,pageSize:r});_optionalChain([w, 'optionalAccess', _94 => _94.forEach, 'call', _95 => _95(ye=>{ye["deletion-dependencies"]&&be.push([M[ye.title],ye["deletion-dependencies"]])})]),o=o||!A}if(be.length>0&&await mp(e,be),me){let A=await el(e,me);o=o||!A}return o}var wm=1e3;async function m$(t,e,r){let n=_chunkDQCPGPXGcjs.b.call(void 0, r,wm);await b(n,async i=>{await l(t,to,{pluginId:e,rawResults:i})})}async function sD({requestActions:t,auth:e,requestIds:r,statuses:n=[_privacytypes.RequestStatus.Compiling,_privacytypes.RequestStatus.RequestMade,_privacytypes.RequestStatus.Delayed,_privacytypes.RequestStatus.Approving,_privacytypes.RequestStatus.Secondary,_privacytypes.RequestStatus.Enriching,_privacytypes.RequestStatus.Waiting,_privacytypes.RequestStatus.SecondaryApproving],createdAtAfter:i,createdAtBefore:s,concurrency:o=100,transcendUrl:p=_chunkDQCPGPXGcjs.r}){let c=W(p,e),u=new Date().getTime(),m=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),d=await ue(c,{actions:t,statuses:n,createdAtBefore:s,createdAtAfter:i,isSilent:!1,requestIds:r});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Marking "${d.length}" as silent mode.`));let f=0;m.start(d.length,0),await E(d,async S=>{await l(c,It,{input:{id:S.id,isSilent:!0}}),f+=1,m.update(f)},{concurrency:o}),m.stop();let y=new Date().getTime()-u;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully marked ${f} requests as silent mode in "${y/1e3}" seconds!`)),d.length}async function il(t,e){let r=_typeutils.getValues.call(void 0, Tt).filter(i=>!e.getValue("columnNames",i)),n=r.length===0?{}:await _inquirer2.default.prompt(r.map(i=>{let s=_chunkDQCPGPXGcjs.h.call(void 0, i.replace("ColumnName","")),o=Et(t,s,Ra[i],!!ba[i]);return{name:i,message:`Choose the column that will be used to map in the field: ${s}`,type:"list",default:o[0],choices:o}}));return await Promise.all(_typeutils.getEntries.call(void 0, n).map(([i,s])=>e.setValue(s,"columnNames",i))),n}async function nl(t,e,{state:r,columnNameMap:n}){let i=S=>r.getValue("columnNames",S)||n[S],{internalSubjects:s}=await l(t,nr);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Determining mapping of columns for request action"));let o=await ft(Xe(e,i("requestType")),Object.values(_privacytypes.RequestAction),r.getValue("requestTypeToRequestAction"));await r.setValue(o,"requestTypeToRequestAction"),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Determining mapping of columns for subject"));let p=await ft(Xe(e,i("subjectType")),s.map(({type:S})=>S),r.getValue("subjectTypeToSubjectName"));await r.setValue(p,"subjectTypeToSubjectName"),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Determining mapping of columns for locale"));let c=await ft(Xe(e,i("locale")),Object.values(_internationalization.LOCALE_KEY),r.getValue("languageToLocale"));await r.setValue(c,"languageToLocale"),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Determining mapping of columns for request status")),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Determining mapping of columns for request status"));let u=i("requestStatus"),m=u===z?{}:await ft(Xe(e,u),[...Object.values(_privacytypes.CompletedRequestStatus),z],r.getValue("statusToRequestStatus"));await r.setValue(m,"statusToRequestStatus"),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Determining mapping of columns for country"));let d=i("country"),f=d===z?{}:await ft(Xe(e,d),[...Object.values(_privacytypes.IsoCountryCode),z],r.getValue("regionToCountry"));await r.setValue(f,"regionToCountry"),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Determining mapping of columns for country sub division"));let g=i("countrySubDivision"),y=g===z?{}:await ft(Xe(e,g),[...Object.values(_privacytypes.IsoCountrySubdivisionCode),z],r.getValue("regionToCountrySubDivision"));await r.setValue(y,"regionToCountrySubDivision")}var _iotstypes = require('io-ts-types');var Qm=le.record(le.string,le.array(le.intersection([le.type({value:le.string}),le.partial({name:le.string})]))),_D= exports.vf =le.intersection([le.type({email:le.string,attestedExtraIdentifiers:Qm,coreIdentifier:le.string,requestType:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction),subjectType:le.string}),le.partial({country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),attributes:le.array(va),status:_typeutils.valuesOf.call(void 0, _privacytypes.CompletedRequestStatus),createdAt:_iotstypes.DateFromISOString,dataSiloIds:le.array(le.string),locale:_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY)})]);function Vm(t,e,r){if(e===_privacytypes.IdentifierType.Email)return t.toLowerCase();if(e===_privacytypes.IdentifierType.Phone){let n=t.replace(_privacytypes.NORMALIZE_PHONE_NUMBER,"").replace(/[()]/g,"").replace(/[–]/g,"").replace(/[:]/g,"").replace(/[]/g,"").replace(/[A-Za-z]/g,"");return n?n.startsWith("+")?n:`+${r}${n}`:""}return t}function ol(t,e,{columnNameMap:r,identifierNameMap:n,attributeNameMap:i,requestAttributeKeys:s,defaultPhoneCountryCode:o="1"}){let p=c=>e.getValue("columnNames",c)||r[c];return t.map(c=>{let u={};Object.entries(n).filter(([,g])=>g!==z).forEach(([g,y])=>{let S=Object.values(_privacytypes.IdentifierType).includes(g)?g:_privacytypes.IdentifierType.Custom,w=c[y];if(w){let I=Vm(w,S,o);I&&(u[S]||(u[S]=[]),u[S].push({value:I,name:g}))}});let m=[];Object.entries(i).filter(([,g])=>g!==z).forEach(([g,y])=>{let S=c[y];if(S){let w=_optionalChain([s, 'access', _96 => _96.find, 'call', _97 => _97(I=>I.name===g), 'optionalAccess', _98 => _98.type])==="MULTI_SELECT";m.push({values:w?mi(S):S,key:g})}});let d=p("requestType"),f=p("subjectType");return[c,{email:c[p("email")],attestedExtraIdentifiers:u,attributes:m,coreIdentifier:c[p("coreIdentifier")],requestType:d===jt?e.getValue("requestTypeToRequestAction",ui):e.getValue("requestTypeToRequestAction",c[d]),subjectType:f===jt?e.getValue("subjectTypeToSubjectName",ui):e.getValue("subjectTypeToSubjectName",c[f]),...p("locale")!==z&&c[p("locale")]?{locale:e.getValue("languageToLocale",c[p("locale")])}:{},...p("country")!==z&&c[p("country")]?{country:e.getValue("regionToCountry",c[p("country")])}:{},...p("countrySubDivision")!==z&&c[p("countrySubDivision")]?{countrySubDivision:e.getValue("regionToCountrySubDivision",c[p("countrySubDivision")])}:{},...p("requestStatus")!==z&&e.getValue("statusToRequestStatus",c[p("requestStatus")])!==z&&c[p("requestStatus")]?{status:e.getValue("statusToRequestStatus",c[p("requestStatus")])}:{},...p("createdAt")!==z&&c[p("createdAt")]?{createdAt:new Date(c[p("createdAt")])}:{},...p("dataSiloIds")!==z&&c[p("dataSiloIds")]?{dataSiloIds:mi(c[p("dataSiloIds")])}:{}}]})}var _path = require('path');var pl=q.type({defaultMessage:q.string,id:q.string}),Zm= exports.zf =q.type({downloadKey:q.string,error:q.union([q.null,q.string]),mimetype:q.string,size:q.string,fileName:q.string,dataPoint:q.type({id:q.string,title:q.union([pl,q.null]),description:q.union([pl,q.null]),name:q.string,slug:q.string,encryption:q.union([_typeutils.valuesOf.call(void 0, _privacytypes.TableEncryptionType),q.null]),dataSilo:q.type({id:q.string,title:q.string,description:q.string,type:q.string,outerType:q.union([q.string,q.null])}),path:q.array(q.string)})}),zm= exports.Af =q.type({nodes:q.array(Zm),totalCount:q.number,_links:q.partial({next:q.union([q.string,q.null]),previous:q.union([q.string,q.null])})});async function ll(t,{sombra:e,concurrency:r=5,limit:n=100}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Pulling file metadata for ${t.length} requests`));let i=new Date().getTime(),s=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),o=0;s.start(t.length,0);let p=await E(t,async m=>{let d=[],f=!0,g=0;for(;f;){let y;try{let S=await e.get(`v1/data-subject-request/${m.id}/download-keys`,{searchParams:{limit:n,offset:g}}).json();y=_typeutils.decodeCodec.call(void 0, zm,S),d.push(...y.nodes),g+=n,f=!!y._links.next&&y.nodes.length===n}catch(S){throw new Error(`Received an error from server: ${_optionalChain([S, 'optionalAccess', _99 => _99.response, 'optionalAccess', _100 => _100.body])||_optionalChain([S, 'optionalAccess', _101 => _101.message])}`)}}return o+=1,s.update(o),[m,d]},{concurrency:r});s.stop();let u=new Date().getTime()-i;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully downloaded file metadata ${t.length} requests in "${u/1e3}" seconds!`)),p}async function cl(t,{requestId:e,sombra:r,onFileDownloaded:n,concurrency:i=20}){await E(t,async s=>{try{await r.get("v1/files",{searchParams:{downloadKey:s.downloadKey}}).buffer().then(o=>n(s,o))}catch(o){if(_optionalChain([o, 'optionalAccess', _102 => _102.response, 'optionalAccess', _103 => _103.body, 'optionalAccess', _104 => _104.includes, 'call', _105 => _105("fileMetadata#verify")])){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to pull file for: ${s.fileName} (request:${e}) - JWT expired. This likely means that the file is no longer available. Try restarting the request from scratch in Transcend Admin Dashboard. Skipping the download of this file.`));return}throw new Error(`Received an error from server: ${_optionalChain([o, 'optionalAccess', _106 => _106.response, 'optionalAccess', _107 => _107.body])||_optionalChain([o, 'optionalAccess', _108 => _108.message])}`)}},{concurrency:i})}async function oq({auth:t,folderPath:e,requestIds:r,createdAtBefore:n,sombraAuth:i,createdAtAfter:s,statuses:o=[_privacytypes.RequestStatus.Approving,_privacytypes.RequestStatus.Downloadable],concurrency:p=5,transcendUrl:c=_chunkDQCPGPXGcjs.r,approveAfterDownload:u=!1}){let m=W(c,t),d=await st(c,t,i);_fs.existsSync.call(void 0, e)||_fs.mkdirSync.call(void 0, e);let f=await ue(m,{actions:[_privacytypes.RequestAction.Access],createdAtBefore:n,createdAtAfter:s,statuses:o,requestIds:r}),g=await ll(f,{sombra:d,concurrency:p}),y=new Date().getTime(),S=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),w=0,I=0;S.start(f.length,0),await E(g,async([N,X])=>{let Y=_path.join.call(void 0, e,N.id);_fs.existsSync.call(void 0, Y)||_fs.mkdirSync.call(void 0, Y),await cl(X,{sombra:d,requestId:N.id,onFileDownloaded:(pe,ee)=>{let fe=_path.join.call(void 0, Y,pe.fileName),me=_path.dirname.call(void 0, fe);_fs.existsSync.call(void 0, me)||_fs.mkdirSync.call(void 0, me,{recursive:!0}),_fs.writeFileSync.call(void 0, fe,ee)}}),u&&N.status===_privacytypes.RequestStatus.Approving&&(await l(m,or,{input:{requestId:N.id}}),I+=1),w+=1,S.update(w)},{concurrency:p}),S.stop();let C=new Date().getTime()-y;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully downloaded ${w} requests in "${C/1e3}" seconds!`)),I>0&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Approved ${I} requests in Transcend.`)),f.length}var dn=ne.type({id:ne.string,link:ne.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.RequestStatus),type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction),subjectType:ne.string,email:ne.union([ne.null,ne.string]),coreIdentifier:ne.string,isSilent:ne.boolean,isTest:ne.boolean,country:ne.union([ne.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode)]),countrySubDivision:ne.union([ne.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)]),attributeValues:ne.array(ne.type({attributeKey:ne.type({name:ne.string}),name:ne.string}))});async function fl(t,e,{details:r="",isTest:n=!1,emailIsVerified:i=!0,skipSendingReceipt:s=!1,isSilent:o=!0,additionalAttributes:p=[]}={}){let c=[...p];(e.attributes||[]).forEach(d=>{let f=c.find(g=>g.key===d.key);f?(f.values.push(...d.values),f.values=_chunkDQCPGPXGcjs.j.call(void 0, f.values)):c.push(d)});let u;try{u=await t.post("v1/data-subject-request",{json:{type:e.requestType,subject:{coreIdentifier:e.coreIdentifier,email:e.email,emailIsVerified:i,attestedExtraIdentifiers:e.attestedExtraIdentifiers},subjectType:e.subjectType,isSilent:o,isTest:n,skipSendingReceipt:s,...e.locale?{locale:e.locale}:{},details:r,attributes:c,...e.country||e.countrySubDivision?{region:{...e.country?{country:e.country}:e.countrySubDivision?{country:e.countrySubDivision.split("-")[0]}:{},...e.countrySubDivision?{countrySubDivision:e.countrySubDivision}:{}}}:{},...e.createdAt?{createdAt:e.createdAt}:{},...e.dataSiloIds?{dataSiloIds:e.dataSiloIds}:{},...e.status?{completedRequestStatus:e.status}:{}}}).json()}catch(d){throw new Error(`Received an error from server: ${_optionalChain([d, 'optionalAccess', _109 => _109.response, 'optionalAccess', _110 => _110.body])||_optionalChain([d, 'optionalAccess', _111 => _111.message])}`)}let{request:m}=_typeutils.decodeCodec.call(void 0, ne.type({request:dn}),u);return m}async function Aq({requestActions:t,requestOrigins:e,auth:r,silentModeBefore:n,createdAtAfter:i,createdAtBefore:s,concurrency:o=50,transcendUrl:p=_chunkDQCPGPXGcjs.r}){let c=W(p,r),u=new Date().getTime(),m=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),d=await ue(c,{actions:t,statuses:[_privacytypes.RequestStatus.Approving],createdAtAfter:i,origins:e,createdAtBefore:s});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Approving "${d.length}" requests.`));let f=0,g=0;m.start(d.length,0),await E(d,async w=>{n&&new Date(n)>new Date(w.createdAt)&&await l(c,It,{input:{id:w.id,isSilent:!0}});try{await l(c,or,{input:{requestId:w.id}})}catch(I){I.message.includes("Request must be in an approving state,")&&(g+=1)}f+=1,m.update(f)},{concurrency:o}),m.stop();let S=new Date().getTime()-u;return g>0&&_chunkZUNVPK23cjs.a.info(_colors2.default.yellow(`${g} requests were skipped.`)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully approved ${f} requests in "${S/1e3}" seconds!`)),d.length}async function xq({requestActions:t=Object.values(_privacytypes.RequestAction),auth:e,requestIds:r,createdAtBefore:n,days:i=45,daysLeft:s=10,createdAtAfter:o,emailTemplate:p="Additional Time Needed",concurrency:c=100,transcendUrl:u=_chunkDQCPGPXGcjs.r}){let m=W(u,e),d=new Date().getTime(),f=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),y=(await ht(m,p)).find(C=>C.title===p);if(!y)throw new Error(`Failed to find a template with title: "${p}"`);let S=await ue(m,{actions:t,createdAtBefore:n,createdAtAfter:o,isSilent:!1,isClosed:!1,requestIds:r});S=S.filter(C=>typeof C.daysRemaining=="number"&&C.daysRemaining<s),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Notifying "${S.length}" that more time is needed.`));let w=0;f.start(S.length,0),await E(S,async C=>{await l(m,Io,{input:{requestId:C.id,template:y.template.defaultMessage,subject:y.subject.defaultMessage,additionalTime:i}}),w+=1,f.update(w)},{concurrency:c}),f.stop();let _=new Date().getTime()-d;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully marked ${w} requests as silent mode in "${_/1e3}" seconds!`)),S.length}async function Cl(t,e,r){let{initializer:n}=await l(t,On),i=n.identifiers.filter(({name:o})=>!r.getValue("identifierNames",o)&&!pr.includes(o)),s=i.length===0?{}:await _inquirer2.default.prompt(i.map(({name:o})=>{let p=Et(e,o,!1);return{name:o,message:`Choose the column that will be used to map in the identifier: ${o}`,type:"list",default:p[0],choices:p}}));return await Promise.all(Object.entries(s).map(([o,p])=>r.setValue(p,"identifierNames",o))),{...r.getValue("identifierNames"),...s}}async function Yq({requestActions:t,cancellationTitle:e,auth:r,requestIds:n,silentModeBefore:i,createdAtBefore:s,createdAtAfter:o,statuses:p=[_privacytypes.RequestStatus.Compiling,_privacytypes.RequestStatus.RequestMade,_privacytypes.RequestStatus.Delayed,_privacytypes.RequestStatus.Approving,_privacytypes.RequestStatus.Secondary,_privacytypes.RequestStatus.Enriching,_privacytypes.RequestStatus.Waiting,_privacytypes.RequestStatus.SecondaryApproving],concurrency:c=50,transcendUrl:u=_chunkDQCPGPXGcjs.r}){let m=W(u,r),d=new Date().getTime(),f=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),g;if(e){let C=(await ht(m,e)).find(N=>N.title===e);if(!C)throw new Error(`Failed to find a template with title: "${e}"`);g=C}let y=await ue(m,{actions:t,createdAtBefore:s,createdAtAfter:o,statuses:p,requestIds:n});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Canceling "${y.length}" requests${g?` Using template: ${g.title}`:""}.`));let S=0;f.start(y.length,0),await E(y,async _=>{i&&new Date(i)>new Date(_.createdAt)&&await l(m,It,{input:{id:_.id,isSilent:!0}}),await l(m,Ao,{input:{requestId:_.id,...g?{subject:`Re: ${g.subject.defaultMessage}`,template:g.template.defaultMessage}:{}}}),S+=1,f.update(S)},{concurrency:c}),f.stop();let I=new Date().getTime()-d;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully canceled ${S} requests in "${I/1e3}" seconds!`)),y.length}async function Il(t,e,r,n){let i=n.filter(({name:o})=>!r.getValue("attributeNames",o)),s=i.length===0?{}:await _inquirer2.default.prompt(i.map(({name:o})=>{let p=Et(e,o,!1);return{name:o,message:`Choose the column that will be used to map in the attribute: ${o}`,type:"list",default:p[0],choices:p}}));return await Promise.all(Object.entries(s).map(([o,p])=>r.setValue(p,"attributeNames",o))),{...r.getValue("attributeNames"),...s}}var Tl=/{\\"message\\":\\"(.+?)\\",/;function Or(t){return Tl.test(t)?Tl.exec(t)[1]:null}var _persistedstate = require('@transcend-io/persisted-state');async function Sv({cacheFilepath:t,requestReceiptFolder:e,file:r,auth:n,sombraAuth:i,concurrency:s=100,defaultPhoneCountryCode:o="1",transcendUrl:p=_chunkDQCPGPXGcjs.r,attributes:c=[],emailIsVerified:u=!0,skipFilterStep:m=!1,skipSendingReceipt:d=!0,isTest:f=!1,isSilent:g=!0,debug:y=!1,dryRun:S=!1}){let w=new Date().getTime(),I=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),_=La(c),C=new (0, _persistedstate.PersistedState)(t,wa,{columnNames:{},requestTypeToRequestAction:{},subjectTypeToSubjectName:{},languageToLocale:{},statusToRequestStatus:{},identifierNames:{},attributeNames:{},regionToCountrySubDivision:{},regionToCountry:{}}),N=_path.join.call(void 0, e,`tr-request-upload-${new Date().toISOString()}-${r.split("/").pop()}`.replace(".csv",".json")),X=new (0, _persistedstate.PersistedState)(N,$a,{successfulRequests:[],duplicateRequests:[],failingRequests:[]}),Y=await st(p,n,i),pe=_a(r,Xt.record(Xt.string,Xt.string)),ee=_chunkDQCPGPXGcjs.j.call(void 0, pe.map(Ie=>Object.keys(Ie)).flat());if(pe.length===0)throw new Error("No Requests found in list! Ensure the first row of the CSV is a header and the rest are requests.");if(y){let Ie=pe[0];_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`First request: ${JSON.stringify(Ie,null,2)}`))}let fe=m?pe:await Ga(pe),me=W(p,n),te=await Fa(me),Te=await il(ee,C),Pe=await Cl(me,ee,C),ce=await Il(me,ee,C,te);await nl(me,fe,{state:C,columnNameMap:Te});let ge=ol(fe,C,{defaultPhoneCountryCode:o,columnNameMap:Te,identifierNameMap:Pe,attributeNameMap:ce,requestAttributeKeys:te});y||I.start(ge.length,0);let xe=0;await E(ge,async([Ie,se],de)=>{let be=y?`email:${se.email} | coreIdentifier:${se.coreIdentifier}`:`row:${de.toString()}`;if(y&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[${de+1}/${ge.length}] Importing: ${JSON.stringify(se,null,2)}`)),S){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Bailing out on dry run because dryRun is set"));return}try{let A=await fl(Y,se,{details:`Uploaded by Transcend Cli: "tr-request-upload" : ${JSON.stringify(Ie,null,2)}`,isTest:f,emailIsVerified:u,skipSendingReceipt:d,isSilent:g,additionalAttributes:_});y&&(_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[${de+1}/${ge.length}] Successfully submitted the test data subject request: "${be}"`)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[${de+1}/${ge.length}] View it at: "${A.link}"`)));let M=X.getValue("successfulRequests");M.push({id:A.id,link:A.link,rowIndex:de,coreIdentifier:A.coreIdentifier,attemptedAt:new Date().toISOString()}),await X.setValue(M,"successfulRequests")}catch(A){let M=`${A.message} - ${JSON.stringify(_optionalChain([A, 'access', _112 => _112.response, 'optionalAccess', _113 => _113.body]),null,2)}`,ye=Or(M);if(ye==="Client error: You have already made this request."){y&&_chunkZUNVPK23cjs.a.info(_colors2.default.yellow(`[${de+1}/${ge.length}] Skipping request as it is a duplicate`));let he=X.getValue("duplicateRequests");he.push({coreIdentifier:se.coreIdentifier,rowIndex:de,attemptedAt:new Date().toISOString()}),await X.setValue(he,"duplicateRequests")}else{let he=X.getValue("failingRequests");he.push({...se,rowIndex:de,error:ye||M,attemptedAt:new Date().toISOString()}),await X.setValue(he,"failingRequests"),y&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(ye||M)),_chunkZUNVPK23cjs.a.error(_colors2.default.red(`[${de+1}/${ge.length}] Failed to submit request for: "${be}"`)))}}xe+=1,y||I.update(xe)},{concurrency:s}),I.stop();let We=new Date().getTime()-w;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed upload in "${We/1e3}" seconds.`)),X.getValue("duplicateRequests").length>0&&_chunkZUNVPK23cjs.a.info(_colors2.default.yellow(`Encountered "${X.getValue("duplicateRequests").length}" duplicate requests. See "${N}" to review the core identifiers for these requests.`)),X.getValue("failingRequests").length>0&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Encountered "${X.getValue("failingRequests").length}" errors. See "${N}" to review the error messages and inputs.`)),process.exit(1))}async function bl(t,e,{sendEmailReceipt:r=!1,skipWaitingPeriod:n=!1,emailIsVerified:i=!0,requestIdentifiers:s=[]}={}){let o=await t.post("v1/data-subject-request",{json:{type:e.type,subject:{coreIdentifier:e.coreIdentifier,email:e.email,emailIsVerified:i,...s.length>0?{attestedExtraIdentifiers:_typeutils.apply.call(void 0, _chunkDQCPGPXGcjs.d.call(void 0, s.filter(c=>!(c.name==="email"&&c.value===e.email)&&!pr.includes(c.name)).map(c=>({...c,type:Object.values(_privacytypes.IdentifierType).includes(c.name)?c.name:_privacytypes.IdentifierType.Custom})),"type"),(c,u)=>c.map(({name:m,value:d})=>({...u===_privacytypes.IdentifierType.Custom?{name:m}:{},value:d})))}:{}},requestId:e.id,subjectType:e.subjectType,isSilent:e.isSilent,isTest:e.isTest,locale:e.locale,skipWaitingPeriod:n,createdAt:e.createdAt,details:`Restarted by Transcend cli: "tr-request-restart" - ${e.details}`,skipSendingReceipt:!r}}).json(),{request:p}=_typeutils.decodeCodec.call(void 0, Rl.type({request:dn}),o);return p}var gd=ze.intersection([lr,ze.type({error:ze.string})]),yd=ze.type({restartedRequests:ze.array(lr),failingRequests:ze.array(gd)});async function Mv({requestReceiptFolder:t,auth:e,sombraAuth:r,requestActions:n,requestStatuses:i,createdAtBefore:s,createdAtAfter:o,transcendUrl:p=_chunkDQCPGPXGcjs.r,requestIds:c=[],createdAt:u=new Date,silentModeBefore:m,sendEmailReceipt:d=!1,emailIsVerified:f=!0,copyIdentifiers:g=!1,skipWaitingPeriod:y=!1,concurrency:S=20}){let w=new Date().getTime(),I=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),_=_path.join.call(void 0, t,`tr-request-restart-${new Date().toISOString()}.json`),C=new (0, _persistedstate.PersistedState)(_,yd,{restartedRequests:[],failingRequests:[]}),N=await st(p,e,r),X=W(p,e),pe=(await ue(X,{requestIds:c,actions:n,statuses:i,createdAtBefore:s,createdAtAfter:o})).filter(te=>new Date(te.createdAt)<u);if(_chunkZUNVPK23cjs.a.info(`Found ${pe.length} requests to restart`),g&&_chunkZUNVPK23cjs.a.info("copyIdentifiers detected - All Identifiers will be copied."),d&&_chunkZUNVPK23cjs.a.info("sendEmailReceipt detected - Email receipts will be sent."),y&&_chunkZUNVPK23cjs.a.info("skipWaitingPeriod detected - Waiting period will be skipped."),c.length>0&&c.length!==pe.length){let te=_chunkDQCPGPXGcjs.c.call(void 0, c,pe.map(({id:Te})=>Te));te.length>0&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to find the following requests by ID: ${te.join(",")}.`)),process.exit(1))}let ee=0;I.start(pe.length,0),await E(pe,async(te,Te)=>{try{let Pe=g?await Pr(X,N,{requestId:te.id}):[],ce=await bl(N,{...te,isSilent:m&&new Date(te.createdAt)<m?!0:te.isSilent},{requestIdentifiers:Pe,skipWaitingPeriod:y,sendEmailReceipt:d,emailIsVerified:f}),ge=C.getValue("restartedRequests");ge.push({id:ce.id,link:ce.link,rowIndex:Te,coreIdentifier:ce.coreIdentifier,attemptedAt:new Date().toISOString()}),await C.setValue(ge,"restartedRequests")}catch(Pe){let ce=`${Pe.message} - ${JSON.stringify(_optionalChain([Pe, 'access', _114 => _114.response, 'optionalAccess', _115 => _115.body]),null,2)}`,ge=Or(ce),xe=C.getValue("failingRequests");xe.push({id:te.id,link:te.link,rowIndex:Te,coreIdentifier:te.coreIdentifier,attemptedAt:new Date().toISOString(),error:ge||ce}),await C.setValue(xe,"failingRequests")}ee+=1,I.update(ee)},{concurrency:S}),I.stop();let me=new Date().getTime()-w;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed restarting of requests in "${me/1e3}" seconds.`)),C.getValue("failingRequests").length>0&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Encountered "${C.getValue("failingRequests").length}" errors. See "${_path.resolve.call(void 0, _)}" to review the error messages and inputs.`)),process.exit(1))}async function Zv({enricherIds:t,auth:e,concurrency:r=100,transcendUrl:n=_chunkDQCPGPXGcjs.r}){let i=W(n,e),s=new Date().getTime(),o=await ue(i,{statuses:[_privacytypes.RequestStatus.Enriching]});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Processing enricher: "${t.join(",")}" fetched "${o.length}" in enriching status.`));let p=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),c=0;p.start(o.length,0);let u=0;await E(o,async f=>{let y=(await Tr(i,{requestId:f.id})).filter(S=>t.includes(S.enricher.id)&&![_privacytypes.RequestEnricherStatus.Resolved,_privacytypes.RequestEnricherStatus.Skipped].includes(S.status));y.length>0&&await b(y,async S=>{try{await l(i,wo,{requestEnricherId:S.id}),u+=1}catch(w){if(!w.message.includes("Client error: Cannot skip Request enricher because it has already completed"))throw w}}),c+=1,p.update(c)},{concurrency:r}),p.stop();let d=new Date().getTime()-s;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully skipped "${u}" for "${o.length}" requests in "${d/1e3}" seconds!`)),o.length}async function oL({auth:t,requestActions:e=[],createdAtBefore:r,createdAtAfter:n,transcendUrl:i=_chunkDQCPGPXGcjs.r,requestEnricherStatuses:s=Object.values(_privacytypes.RequestEnricherStatus),requestIds:o=[],enricherId:p,concurrency:c=20}){let u=new Date().getTime(),m=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),d=W(i,t);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching requests to restart..."));let f=await ue(d,{actions:e,statuses:[_privacytypes.RequestStatus.Enriching],createdAtBefore:r,createdAtAfter:n,requestIds:o}),g=0;if(o.length>0&&o.length!==f.length){let I=_chunkDQCPGPXGcjs.c.call(void 0, o,f.map(({id:_})=>_));I.length>0&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to find the following requests by ID: ${I.join(",")}.`)),process.exit(1))}let y=0;m.start(f.length,0),await E(f,async I=>{let C=(await Tr(d,{requestId:I.id})).filter(N=>N.enricher.id===p&&s.includes(N.status));await E(C,async N=>{await Ap(d,N.id),g+=1}),y+=1,m.update(y)},{concurrency:c}),m.stop();let w=new Date().getTime()-u;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed restarting of ${f.length} requests and ${g} enrichers in "${w/1e3}" seconds.`))}async function gL({requestActions:t,dataSiloId:e,auth:r,concurrency:n=20,transcendUrl:i=_chunkDQCPGPXGcjs.r}){let s=W(i,r),o=new Date().getTime(),p=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),c=await ue(s,{actions:t,statuses:[_privacytypes.RequestStatus.Compiling,_privacytypes.RequestStatus.Approving]});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Retrying requests for Data Silo: "${e}", restarting "${c.length}" requests.`));let u=0,m=0;p.start(c.length,0),await E(c,async g=>{try{let y=await op(s,{requestId:g.id,dataSiloId:e});await l(s,Vo,{requestDataSiloId:y.id})}catch(y){if(!y.message.includes("Failed to find RequestDataSilo"))throw y;m+=1}u+=1,p.update(u)},{concurrency:n}),p.stop();let f=new Date().getTime()-o;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully notified Transcend in "${f/1e3}" seconds for ${u} requests, ${m} requests were skipped because data silo was not attached to the request!`)),c.length}async function RL({auth:t,sombraAuth:e,actions:r=[],statuses:n=[],identifierSearch:i,pageLimit:s=100,transcendUrl:o=_chunkDQCPGPXGcjs.r,createdAtBefore:p,skipRequestIdentifiers:c=!1,createdAtAfter:u,isTest:m}){let d=W(o,t),f=await st(o,t,e),g="";p&&(g+=` before ${p.toISOString()}`),u&&(g+=`${g?", and":""} after ${u.toISOString()}`),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`${r.length>0?`Pulling requests of type "${r.join('" , "')}"`:"Pulling all requests"}${g}`));let y=await ue(d,{actions:r,text:i,statuses:n,createdAtBefore:p,createdAtAfter:u,isTest:m}),S=c?y.map(I=>({...I,requestIdentifiers:[]})):await E(y,async I=>{let _=await Pr(d,f,{requestId:I.id});return{...I,requestIdentifiers:_}},{concurrency:s});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Pulled ${S.length} requests`));let w=S.map(({attributeValues:I,requestIdentifiers:_,id:C,email:N,type:X,status:Y,subjectType:pe,details:ee,createdAt:fe,country:me,locale:te,origin:Te,countrySubDivision:Pe,isSilent:ce,isTest:ge,coreIdentifier:xe,purpose:Oe,...We})=>({"Request ID":C,"Created At":fe,Email:N,"Core Identifier":xe,"Request Type":X,"Data Subject Type":pe,Status:Y,Country:me,"Country Sub Division":Pe,Details:ee,Origin:Te,"Silent Mode":ce,"Is Test Request":ge,Language:te,"Purpose Trigger Name":_optionalChain([Oe, 'optionalAccess', _116 => _116.title])||_optionalChain([Oe, 'optionalAccess', _117 => _117.name])||"","Purpose Trigger Value":_optionalChain([Oe, 'optionalAccess', _118 => _118.consent, 'optionalAccess', _119 => _119.toString, 'call', _120 => _120()])||"",...(_optionalChain([Oe, 'optionalAccess', _121 => _121.enrichedPreferences])||[]).reduce((Ie,se)=>{let de=_optionalChain([se, 'access', _122 => _122.preferenceTopic, 'optionalAccess', _123 => _123.title, 'access', _124 => _124.defaultMessage])||se.name;return de?{...Ie,[de]:se.selectValues?se.selectValues.map(be=>be.name).join(";"):_optionalChain([se, 'access', _125 => _125.selectValue, 'optionalAccess', _126 => _126.name])||se.booleanValue}:Ie},{}),...We,...Object.entries(_chunkDQCPGPXGcjs.d.call(void 0, I,"attributeKey.name")).reduce((Ie,[se,de])=>Object.assign(Ie,{[se]:de.map(({name:be})=>be).join(",")}),{}),...Object.entries(_chunkDQCPGPXGcjs.d.call(void 0, _,"name")).reduce((Ie,[se,de])=>Object.assign(Ie,{[se]:de.map(({value:be})=>be).join(",")}),{})}));return{requestsWithRequestIdentifiers:S,requestsFormattedForCsv:w}}async function kL({dataSiloId:t,auth:e,concurrency:r=50,maxUploadPerChunk:n=5e4,status:i="SKIPPED",transcendUrl:s=_chunkDQCPGPXGcjs.r,requestStatuses:o=[_privacytypes.RequestStatus.Compiling,_privacytypes.RequestStatus.Secondary]}){let p=W(s,e),c=new Date().getTime(),u=await np(p,{dataSiloId:t,requestStatuses:o});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Marking ${u} request data silos as completed`));let m=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),d=0;for(m.start(u,0);d<u;){let y=await Zi(p,{dataSiloId:t,requestStatuses:o,limit:n,onProgress:S=>{d+=S/2,m.update(d)}});await E(y,async S=>{try{await l(p,Qo,{requestDataSiloId:S.id,status:i})}catch(w){if(!w.message.includes("Client error: Request must be active:"))throw w}d+=.5,m.update(d)},{concurrency:r})}m.stop();let g=new Date().getTime()-c;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully skipped "${u}" requests in "${g/1e3}" seconds!`)),u}async function VL({requestActions:t,identifierNames:e,auth:r,concurrency:n=20,transcendUrl:i=_chunkDQCPGPXGcjs.r}){let s=W(i,r),o=new Date().getTime(),p=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),c=await ue(s,{actions:t,statuses:[_privacytypes.RequestStatus.Enriching]});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetched requests in preflight/enriching state."));let u=0,m=0;p.start(c.length,0),await E(c,async g=>{let S=(await Wa(s,{requestId:g.id})).filter(({isVerifiedAtLeastOnce:w,name:I})=>w===!1&&e.includes(I)).map(({id:w})=>w);S.length>0&&(await l(s,Wo,{input:{requestId:g.id,requestIdentifierIds:S}}),m+=S.length),u+=1,p.update(u)},{concurrency:n}),p.stop();let f=new Date().getTime()-o;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully cleared out unverified identifiers "${f/1e3}" seconds for ${u} requests, ${m} identifiers were cleared out!`)),c.length}async function wk({message:t}){let{response:e}=await _inquirer2.default.prompt([{name:"response",message:t,type:"confirm"}]);return e}async function $k({message:t}){let{response:e}=await _inquirer2.default.prompt([{name:"response",message:t,type:"text",validate:r=>r.trim().length>0}]);return e}async function xk({defaultValue:t,values:e,message:r}){_inquirer2.default.registerPrompt("autocomplete",_inquirerautocompleteprompt2.default);let{response:n}=await _inquirer2.default.prompt([{name:"response",message:r,type:"autocomplete",default:t,source:(i,s)=>s?e.filter(o=>typeof o=="string"&&Pt(s,o)):e}]);return n}function qk(t){let e=t.split(",").filter(n=>!!n),r={};return e.forEach(n=>{let[i,s]=n.split(":");if(!i||!s)throw new Error(`Invalid variable: ${n}. Expected format: key:value`);r[i]=s}),r}function Ul(t){let e=t;return _nullishCoalesce(_optionalChain([e, 'optionalAccess', _127 => _127.response, 'optionalAccess', _128 => _128.statusCode]), () => (_optionalChain([e, 'optionalAccess', _129 => _129.response, 'optionalAccess', _130 => _130.status])))}function Bl(t){let e=t,r=_optionalChain([e, 'optionalAccess', _131 => _131.response, 'optionalAccess', _132 => _132.body])||_optionalChain([e, 'optionalAccess', _133 => _133.message])||"Unknown error";try{let n=JSON.parse(r),i=n.errors||_optionalChain([n, 'access', _134 => _134.error, 'optionalAccess', _135 => _135.errors])||[_optionalChain([n, 'access', _136 => _136.error, 'optionalAccess', _137 => _137.message])||n.error];r=(Array.isArray(i)?i:[i]).filter(Boolean).join(", ")}catch (e2){}return r}function Nr(t){return new Promise(e=>{setTimeout(()=>e(t),t)})}function Ok(t){let e=Math.floor(t.length/2);return[t.slice(0,e),t.slice(e)]}async function Uk(t,e,r){let n=0;for(;;)try{return await t()}catch(i){n+=1;let s=Ul(i),o=Bl(i);if(!(n<=e.maxAttempts&&e.shouldRetry(s,o)))throw i;r(`Retrying after status=${s} attempt=${n}/${e.maxAttempts} \u2014 ${o}`),await Nr(e.delayMs)}}function Qk(t,e){return Object.entries(t).reduce((r,[n,i],s)=>(r[n]=s<e?i:!0,r),{})}var Ql= (_class =class{constructor() { _class.prototype.__init.call(this); }__init() {this.buckets=[]}add(e){let r=Date.now();this.buckets.push({t:r,n:e});let n=r-12e4;for(;this.buckets.length&&this.buckets[0].t<n;)this.buckets.shift()}rate(e){let n=Date.now()-e,i=0;for(let s=this.buckets.length-1;s>=0;s-=1){let o=this.buckets[s];if(o.t<n)break;i+=o.n}return i/(e/1e3)}}, _class);function Yk(t){try{return t?_fs.readFileSync.call(void 0, t,"utf8"):""}catch (e3){return""}}function Xk(t,e){t||(_chunkZUNVPK23cjs.a.error(_colors2.default.red("A --directory must be provided.")),e.process.exit(1));let r=[];try{r=_fs.readdirSync.call(void 0, t).filter(i=>i.endsWith(".parquet")).map(i=>_path.join.call(void 0, t,i)).filter(i=>{try{return _fs.statSync.call(void 0, i).isFile()}catch (e4){return!1}})}catch(n){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to read directory: ${t}`)),_chunkZUNVPK23cjs.a.error(_colors2.default.red(n.message)),e.process.exit(1)}return r.length===0&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`No Parquet files found in directory: ${t}`)),e.process.exit(1)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Found: ${r.join(", ")} parquet files`)),r}var _nodeapi = require('@duckdb/node-api');async function s_(t){let{filePath:e,outputDir:r,clearOutputDir:n,onProgress:i}=t,s=r||_path.dirname.call(void 0, e),{name:o}=_path.parse.call(void 0, e),p=_path.join.call(void 0, s,`${o}.csv`);if(_fs.mkdirSync.call(void 0, s,{recursive:!0}),n&&_fs.existsSync.call(void 0, p))try{_fs.rmSync.call(void 0, p,{force:!0})}catch(m){_chunkZUNVPK23cjs.a.warn(_colors2.default.yellow(`Could not remove existing output file ${p}: ${m.message}`))}let c=await _nodeapi.DuckDBInstance.create(":memory:"),u=await c.connect();try{await Ld(u,"PRAGMA temp_directory='';");let m=f=>`'${f.replace(/'/g,"''")}'`,d=`
|
|
2990
|
+
COPY (SELECT * FROM read_parquet(${m(e)}))
|
|
2991
|
+
TO ${m(p)}
|
|
2992
|
+
(HEADER, DELIMITER ',', QUOTE '"', ESCAPE '"', NULL '');
|
|
2993
|
+
`;await Kl(u,d),_optionalChain([i, 'optionalCall', _138 => _138(0,void 0)]),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Wrote CSV \u2192 ${p}`))}finally{await Cn(u),await Cn(c)}}async function Kl(t,e){let r=await t.run(e);await Cn(r)}async function Ld(t,e){try{await Kl(t,e)}catch (e5){}}async function Cn(t){if(!(!t||typeof t.dispose!="function"))try{await t.dispose()}catch (e6){}}var p_=864e5,l_= exports.ig =36e5,c_= exports.jg =3e5,u_= exports.kg =t=>Math.max(1,Math.min(50,_nullishCoalesce(t, () => (50)))),m_= exports.lg =t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())),d_= exports.mg =t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours())),f_= exports.ng =(t,e)=>new Date(t.getTime()+e),g_= exports.og =(t,e)=>new Date(t.getTime()+e*864e5);var _fastcsv = require('fast-csv'); var Mr = _interopRequireWildcard(_fastcsv);function Fr(t){return t.includes('"')||t.includes(",")||t.includes(`
|
|
2994
|
+
`)?`"${t.replace(/"/g,'""')}"`:t}function C_(t,e,r){let n=[];n.push(r),n.push(...e.map(s=>Object.values(s)));let i=n.map(s=>s.map(Fr).join(",")).join(`
|
|
2995
|
+
`);_fs.writeFileSync.call(void 0, t,i)}function S_(t,e){if(!e||e.length===0){_fs.writeFileSync.call(void 0, t,"");return}let r=e.map(Fr).join(",");_fs.writeFileSync.call(void 0, t,`${r}
|
|
2996
|
+
`)}function A_(t,e,r){if(!e.length)return;let n=e.map(i=>r.map(o=>{let p=i[o];return p==null?"":String(p)}).map(Fr).join(","));_fs.appendFileSync.call(void 0, t,`${n.join(`
|
|
2997
|
+
`)}
|
|
2998
|
+
`)}function I_(t,e){let n=e.map(i=>Object.values(i)).map(i=>i.map(Fr).join(",")).join(`
|
|
2999
|
+
`);_fs.appendFileSync.call(void 0, t,`
|
|
3000
|
+
${n}`)}async function T_(t,e,r=!0){let n=_fs.createWriteStream.call(void 0, t);await new Promise((i,s)=>{try{let o=Mr.write(e,{headers:r,objectMode:!0}).on("error",s);n.on("error",s),n.on("finish",()=>i()),o.pipe(n)}catch(o){s(o)}})}function P_(t){let e=t.lastIndexOf(".");return{baseName:e!==-1?t.substring(0,e):t,extension:e!==-1?t.substring(e):".csv"}}function kd(t,e){let r={};for(let n of e)r[n]=t[n];return r}function _d(t){return new Promise(e=>{t.once("drain",e)})}async function E_(t,e,r=!0){let n;Array.isArray(r)?n=r:r===!0?n=e.length>0?Object.keys(e[0]):[]:n=!1;let i=_fs.createWriteStream.call(void 0, t),s=Mr.format({headers:n||void 0,objectMode:!0}),o=s.pipe(i),p=new Promise((c,u)=>{o.on("finish",()=>c()),o.on("error",u),s.on("error",u),i.on("error",u)});for(let c of e){let u=n?kd(c,n):c;s.write(u)||await _d(s)}return s.end(),await p,[t]}var Od=4,Gd=["syntax error","got invalid value","Client error","cannot affect row a second time","GRAPHQL_VALIDATION_FAILED"];async function l(t,e,r,n,i=Od){let s=0;for(;;)try{return await t.request(e,r,n)}catch(o){if(o.message.includes("API key is invalid")&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red("API key is invalid. Please ensure that the key provided to `transcendAuth` has the proper scope and is not expired, and that `transcendUrl` corresponds to the correct backend for your organization.")),process.exit(1)),Gd.some(p=>o.message.includes(p)))throw o;if(o.message.startsWith("Client error: Too many requests")){let p=_optionalChain([o, 'access', _139 => _139.response, 'access', _140 => _140.headers, 'optionalAccess', _141 => _141.get, 'call', _142 => _142("x-ratelimit-reset")]),c=p?new Date(p).getTime()-new Date().getTime()+100:1e3*10;_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`DETECTED RATE LIMIT: ${o.message}. Sleeping for ${c}ms`)),await Nr(c)}if(s>=i)throw o;s+=1,_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`Retrying failed request (${s} / ${i}): ${o.message}`))}}async function z_(t,{promptRunId:e,promptRunMessages:r=[],...n}){let{addMessagesToPromptRun:{promptRun:i}}=await l(t,is,{input:{...n,...e,promptRunMessages:r.map(({content:s,...o})=>({...o,message:s}))}});return i.id}exports.a = E; exports.b = b; exports.c = $n; exports.d = Ud; exports.e = xn; exports.f = Bd; exports.g = Dn; exports.h = qn; exports.i = Qd; exports.j = jd; exports.k = vn; exports.l = zd; exports.m = Ln; exports.n = Vr; exports.o = kn; exports.p = _n; exports.q = On; exports.r = Gn; exports.s = Nn; exports.t = Mn; exports.u = Fn; exports.v = Un; exports.w = Bn; exports.x = Qn; exports.y = nr; exports.z = Vn; exports.A = Kn; exports.B = jn; exports.C = Yn; exports.D = Zn; exports.E = zn; exports.F = Wn; exports.G = Hn; exports.H = Jn; exports.I = Xn; exports.J = to; exports.K = ro; exports.L = no; exports.M = oo; exports.N = so; exports.O = ao; exports.P = po; exports.Q = lo; exports.R = co; exports.S = uo; exports.T = mo; exports.U = fo; exports.V = go; exports.W = ho; exports.X = Co; exports.Y = So; exports.Z = or; exports._ = Ao; exports.$ = It; exports.aa = Io; exports.ba = Po; exports.ca = Eo; exports.da = Ro; exports.ea = bo; exports.fa = wo; exports.ga = Wr; exports.ha = xo; exports.ia = _f; exports.ja = Do; exports.ka = qo; exports.la = vo; exports.ma = Lo; exports.na = ko; exports.oa = _o; exports.pa = Oo; exports.qa = Go; exports.ra = No; exports.sa = Mo; exports.ta = Fo; exports.ua = Uo; exports.va = Bo; exports.wa = Hr; exports.xa = Qo; exports.ya = Vo; exports.za = Ko; exports.Aa = jo; exports.Ba = Yo; exports.Ca = Zo; exports.Da = Wo; exports.Ea = Ho; exports.Fa = Jo; exports.Ga = tg; exports.Ha = es; exports.Ia = rs; exports.Ja = is; exports.Ka = ns; exports.La = os; exports.Ma = ss; exports.Na = as; exports.Oa = ps; exports.Pa = ls; exports.Qa = cs; exports.Ra = us; exports.Sa = ms; exports.Ta = ds; exports.Ua = fs; exports.Va = gs; exports.Wa = ys; exports.Xa = hs; exports.Ya = Cs; exports.Za = Ss; exports._a = As; exports.$a = Is; exports.ab = Ts; exports.bb = Ps; exports.cb = Es; exports.db = Rs; exports.eb = bs; exports.fb = ws; exports.gb = $s; exports.hb = xs; exports.ib = Ds; exports.jb = qs; exports.kb = vs; exports.lb = Ls; exports.mb = ks; exports.nb = _s; exports.ob = Os; exports.pb = Gs; exports.qb = Ns; exports.rb = Ms; exports.sb = Fs; exports.tb = Us; exports.ub = Bs; exports.vb = Qs; exports.wb = Ks; exports.xb = js; exports.yb = Ys; exports.zb = Zs; exports.Ab = zs; exports.Bb = Ws; exports.Cb = Hs; exports.Db = Js; exports.Eb = Xs; exports.Fb = ii; exports.Gb = ea; exports.Hb = ta; exports.Ib = Eg; exports.Jb = ra; exports.Kb = ia; exports.Lb = na; exports.Mb = oa; exports.Nb = sa; exports.Ob = aa; exports.Pb = pa; exports.Qb = la; exports.Rb = ca; exports.Sb = ua; exports.Tb = ma; exports.Ub = da; exports.Vb = fa; exports.Wb = ga; exports.Xb = ya; exports.Yb = ha; exports.Zb = Ca; exports._b = Sa; exports.$b = Aa; exports.ac = Ia; exports.bc = Ta; exports.cc = Pa; exports.dc = Ea; exports.ec = z; exports.fc = jt; exports.gc = ui; exports.hc = pr; exports.ic = Tt; exports.jc = Ra; exports.kc = ba; exports.lc = wa; exports.mc = lr; exports.nc = $a; exports.oc = Pt; exports.pc = Et; exports.qc = ft; exports.rc = mi; exports.sc = va; exports.tc = La; exports.uc = _a; exports.vc = Xe; exports.wc = Ga; exports.xc = z_; exports.yc = Nc; exports.zc = W; exports.Ac = st; exports.Bc = Lh; exports.Cc = Gh; exports.Dc = Nh; exports.Ec = Qh; exports.Fc = cr; exports.Gc = ur; exports.Hc = mr; exports.Ic = dr; exports.Jc = fr; exports.Kc = Na; exports.Lc = Ma; exports.Mc = yC; exports.Nc = Fa; exports.Oc = Vc; exports.Pc = Kc; exports.Qc = bt; exports.Rc = gr; exports.Sc = Qa; exports.Tc = ve; exports.Uc = yr; exports.Vc = jc; exports.Wc = LC; exports.Xc = Va; exports.Yc = Ei; exports.Zc = hr; exports._c = wt; exports.$c = ja; exports.ad = Yt; exports.bd = $t; exports.cd = Cr; exports.dd = _e; exports.ed = Ya; exports.fd = Za; exports.gd = Sr; exports.hd = Ar; exports.id = Ir; exports.jd = za; exports.kd = Tr; exports.ld = Wa; exports.md = Xc; exports.nd = Pr; exports.od = su; exports.pd = zS; exports.qd = ue; exports.rd = br; exports.sd = rA; exports.td = wr; exports.ud = pu; exports.vd = $r; exports.wd = lu; exports.xd = gA; exports.yd = Zt; exports.zd = ep; exports.Ad = tp; exports.Bd = rp; exports.Cd = xr; exports.Dd = Dr; exports.Ed = Dt; exports.Fd = MA; exports.Gd = QA; exports.Hd = np; exports.Id = Zi; exports.Jd = op; exports.Kd = WA; exports.Ld = eI; exports.Md = nI; exports.Nd = oI; exports.Od = lI; exports.Pd = cI; exports.Qd = du; exports.Rd = fu; exports.Sd = ap; exports.Td = gu; exports.Ud = yu; exports.Vd = zi; exports.Wd = Au; exports.Xd = Wi; exports.Yd = lp; exports.Zd = Tu; exports._d = Pu; exports.$d = cp; exports.ae = up; exports.be = mp; exports.ce = Xi; exports.de = fp; exports.ee = ht; exports.fe = gp; exports.ge = zt; exports.he = hp; exports.ie = Cp; exports.je = $u; exports.ke = QT; exports.le = YT; exports.me = Ap; exports.ne = eP; exports.oe = Ip; exports.pe = vu; exports.qe = Lu; exports.re = Tp; exports.se = ku; exports.te = _u; exports.ue = Ep; exports.ve = Gu; exports.we = Nu; exports.xe = Rp; exports.ye = Mu; exports.ze = Fu; exports.Ae = bp; exports.Be = Uu; exports.Ce = Bu; exports.De = wp; exports.Ee = $p; exports.Fe = Qu; exports.Ge = Vu; exports.He = xp; exports.Ie = ju; exports.Je = Yu; exports.Ke = vp; exports.Le = zu; exports.Me = Wu; exports.Ne = kp; exports.Oe = Ju; exports.Pe = Xu; exports.Qe = tR; exports.Re = mm; exports.Se = Kp; exports.Te = tm; exports.Ue = Op; exports.Ve = Im; exports.We = Tm; exports.Xe = Jp; exports.Ye = dm; exports.Ze = fm; exports._e = Zp; exports.$e = Np; exports.af = _p; exports.bf = lm; exports.cf = Up; exports.df = am; exports.ef = Fp; exports.ff = Bp; exports.gf = el; exports.hf = Pm; exports.if = Em; exports.jf = Xp; exports.kf = nm; exports.lf = om; exports.mf = Mp; exports.nf = Sm; exports.of = Am; exports.pf = Hp; exports.qf = m$; exports.rf = sD; exports.sf = il; exports.tf = nl; exports.uf = Qm; exports.vf = _D; exports.wf = Vm; exports.xf = ol; exports.yf = pl; exports.zf = Zm; exports.Af = zm; exports.Bf = ll; exports.Cf = cl; exports.Df = oq; exports.Ef = dn; exports.Ff = fl; exports.Gf = Aq; exports.Hf = xq; exports.If = Cl; exports.Jf = Yq; exports.Kf = Il; exports.Lf = Or; exports.Mf = Sv; exports.Nf = bl; exports.Of = Mv; exports.Pf = Zv; exports.Qf = oL; exports.Rf = gL; exports.Sf = RL; exports.Tf = kL; exports.Uf = VL; exports.Vf = wk; exports.Wf = $k; exports.Xf = xk; exports.Yf = qk; exports.Zf = Ul; exports._f = Bl; exports.$f = Nr; exports.ag = Ok; exports.bg = Uk; exports.cg = Qk; exports.dg = Ql; exports.eg = Yk; exports.fg = Xk; exports.gg = s_; exports.hg = p_; exports.ig = l_; exports.jg = c_; exports.kg = u_; exports.lg = m_; exports.mg = d_; exports.ng = f_; exports.og = g_; exports.pg = C_; exports.qg = S_; exports.rg = A_; exports.sg = I_; exports.tg = T_; exports.ug = P_; exports.vg = E_; exports.wg = l; exports.xg = Bi; exports.yg = ip; exports.zg = s$;
|
|
3001
|
+
//# sourceMappingURL=chunk-56QKBG2R.cjs.map
|