@transcend-io/cli 8.0.1 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/bash-complete.cjs +1 -1
- package/dist/bin/cli.cjs +1 -1
- package/dist/bin/deprecated-command.cjs +2 -2
- package/dist/{chunk-WRJVOXRS.cjs → chunk-3PX3HVEO.cjs} +2 -2
- package/dist/{chunk-WRJVOXRS.cjs.map → chunk-3PX3HVEO.cjs.map} +1 -1
- package/dist/{chunk-DBYKJZEA.cjs → chunk-44J2TVZU.cjs} +2 -2
- package/dist/{chunk-DBYKJZEA.cjs.map → chunk-44J2TVZU.cjs.map} +1 -1
- package/dist/chunk-7UL54E7X.cjs +2 -0
- package/dist/{chunk-MBB6OD4E.cjs.map → chunk-7UL54E7X.cjs.map} +1 -1
- package/dist/chunk-A4OQQVQT.cjs +3 -0
- package/dist/chunk-A4OQQVQT.cjs.map +1 -0
- package/dist/chunk-BPX6MSMC.cjs +2 -0
- package/dist/chunk-BPX6MSMC.cjs.map +1 -0
- package/dist/{chunk-7NYZMFPT.cjs → chunk-FNBADTTI.cjs} +19 -19
- package/dist/{chunk-7NYZMFPT.cjs.map → chunk-FNBADTTI.cjs.map} +1 -1
- package/dist/{chunk-56TB3NTQ.cjs → chunk-N7QF44VW.cjs} +2 -2
- package/dist/{chunk-56TB3NTQ.cjs.map → chunk-N7QF44VW.cjs.map} +1 -1
- package/dist/chunk-PQTI6C4Q.cjs +12 -0
- package/dist/chunk-PQTI6C4Q.cjs.map +1 -0
- package/dist/chunk-UONUI4AB.cjs +2920 -0
- package/dist/chunk-UONUI4AB.cjs.map +1 -0
- package/dist/chunk-W3S3ULXN.cjs +2 -0
- package/dist/chunk-W3S3ULXN.cjs.map +1 -0
- package/dist/{chunk-KS2REJYA.cjs → chunk-XARKMCNP.cjs} +4 -4
- package/dist/chunk-XARKMCNP.cjs.map +1 -0
- package/dist/{chunk-6IHSPKMP.cjs → chunk-XPKFB4IL.cjs} +2 -2
- package/dist/{chunk-6IHSPKMP.cjs.map → chunk-XPKFB4IL.cjs.map} +1 -1
- package/dist/{chunk-WLUTU3MY.cjs → chunk-YKZKPWDF.cjs} +2 -2
- package/dist/{chunk-WLUTU3MY.cjs.map → chunk-YKZKPWDF.cjs.map} +1 -1
- package/dist/chunk-YMXQXAUZ.cjs +2 -0
- package/dist/{chunk-PSRKLYGK.cjs.map → chunk-YMXQXAUZ.cjs.map} +1 -1
- package/dist/{chunk-PNSZQIYV.cjs → chunk-YP2PMUM5.cjs} +2 -2
- package/dist/{chunk-PNSZQIYV.cjs.map → chunk-YP2PMUM5.cjs.map} +1 -1
- package/dist/{impl-57LDSC2M.cjs → impl-2BXBJZII.cjs} +2 -2
- package/dist/{impl-57LDSC2M.cjs.map → impl-2BXBJZII.cjs.map} +1 -1
- package/dist/{impl-RGYCC7MP.cjs → impl-2SHN3CZX.cjs} +2 -2
- package/dist/{impl-RGYCC7MP.cjs.map → impl-2SHN3CZX.cjs.map} +1 -1
- package/dist/{impl-5KEI5AJG.cjs → impl-334G4VTL.cjs} +2 -2
- package/dist/{impl-5KEI5AJG.cjs.map → impl-334G4VTL.cjs.map} +1 -1
- package/dist/{impl-RXVSZRCO.cjs → impl-37NGCBEQ.cjs} +2 -2
- package/dist/{impl-RXVSZRCO.cjs.map → impl-37NGCBEQ.cjs.map} +1 -1
- package/dist/{impl-AHLMRZNM.cjs → impl-5IS3UVQQ.cjs} +2 -2
- package/dist/{impl-AHLMRZNM.cjs.map → impl-5IS3UVQQ.cjs.map} +1 -1
- package/dist/{impl-UMRC5P5T.cjs → impl-5IZQDLG7.cjs} +2 -2
- package/dist/{impl-UMRC5P5T.cjs.map → impl-5IZQDLG7.cjs.map} +1 -1
- package/dist/impl-7MIPQI3E.cjs +2 -0
- package/dist/impl-7MIPQI3E.cjs.map +1 -0
- package/dist/impl-AJMAFFJG.cjs +2 -0
- package/dist/{impl-FP3D5M5B.cjs.map → impl-AJMAFFJG.cjs.map} +1 -1
- package/dist/{impl-XW7JECCZ.cjs → impl-BL64FHKY.cjs} +2 -2
- package/dist/{impl-XW7JECCZ.cjs.map → impl-BL64FHKY.cjs.map} +1 -1
- package/dist/{impl-QJJNBKJR.cjs → impl-BXNGIHN2.cjs} +2 -2
- package/dist/{impl-QJJNBKJR.cjs.map → impl-BXNGIHN2.cjs.map} +1 -1
- package/dist/impl-DDHHIRXW.cjs +12 -0
- package/dist/impl-DDHHIRXW.cjs.map +1 -0
- package/dist/impl-DFDEITPV.cjs +7 -0
- package/dist/impl-DFDEITPV.cjs.map +1 -0
- package/dist/{impl-TJP4ZLHS.cjs → impl-DZSW2V2J.cjs} +2 -2
- package/dist/{impl-TJP4ZLHS.cjs.map → impl-DZSW2V2J.cjs.map} +1 -1
- package/dist/impl-FC7ICRDM.cjs +2 -0
- package/dist/{impl-YUYWOPRG.cjs.map → impl-FC7ICRDM.cjs.map} +1 -1
- package/dist/{impl-T4BXYX2K.cjs → impl-G2MAA4QD.cjs} +2 -2
- package/dist/{impl-T4BXYX2K.cjs.map → impl-G2MAA4QD.cjs.map} +1 -1
- package/dist/{impl-GP2DMI4O.cjs → impl-GIZXIRD5.cjs} +2 -2
- package/dist/{impl-GP2DMI4O.cjs.map → impl-GIZXIRD5.cjs.map} +1 -1
- package/dist/{impl-UG3FWG22.cjs → impl-H3RZXUMP.cjs} +2 -2
- package/dist/{impl-UG3FWG22.cjs.map → impl-H3RZXUMP.cjs.map} +1 -1
- package/dist/impl-HG3PK5DG.cjs +2 -0
- package/dist/{impl-HVKSG236.cjs.map → impl-HG3PK5DG.cjs.map} +1 -1
- package/dist/impl-IAZCCRHG.cjs +2 -0
- package/dist/{impl-GPTJLZHD.cjs.map → impl-IAZCCRHG.cjs.map} +1 -1
- package/dist/{impl-LZUXHWDU.cjs → impl-K3VBUCUB.cjs} +2 -2
- package/dist/{impl-LZUXHWDU.cjs.map → impl-K3VBUCUB.cjs.map} +1 -1
- package/dist/impl-KMLDAWB5.cjs +6 -0
- package/dist/impl-KMLDAWB5.cjs.map +1 -0
- package/dist/impl-LDJGDZNJ.cjs +2 -0
- package/dist/impl-LDJGDZNJ.cjs.map +1 -0
- package/dist/impl-LLCE3XUF.cjs +6 -0
- package/dist/impl-LLCE3XUF.cjs.map +1 -0
- package/dist/{impl-G24XCV65.cjs → impl-MVGWE3OY.cjs} +2 -2
- package/dist/{impl-G24XCV65.cjs.map → impl-MVGWE3OY.cjs.map} +1 -1
- package/dist/{impl-PAXESZFC.cjs → impl-N56GZUUE.cjs} +2 -2
- package/dist/{impl-PAXESZFC.cjs.map → impl-N56GZUUE.cjs.map} +1 -1
- package/dist/{impl-HQLA253Z.cjs → impl-NRVKZ6QP.cjs} +2 -2
- package/dist/{impl-HQLA253Z.cjs.map → impl-NRVKZ6QP.cjs.map} +1 -1
- package/dist/{impl-L2XUXKHL.cjs → impl-O7M62JQO.cjs} +2 -2
- package/dist/{impl-L2XUXKHL.cjs.map → impl-O7M62JQO.cjs.map} +1 -1
- package/dist/{impl-SW44TCHM.cjs → impl-OXCKKL3L.cjs} +2 -2
- package/dist/{impl-SW44TCHM.cjs.map → impl-OXCKKL3L.cjs.map} +1 -1
- package/dist/{impl-JUUYZHGL.cjs → impl-OYQLTGBY.cjs} +2 -2
- package/dist/{impl-JUUYZHGL.cjs.map → impl-OYQLTGBY.cjs.map} +1 -1
- package/dist/{impl-TLDBJN7P.cjs → impl-PNDNQD25.cjs} +2 -2
- package/dist/{impl-TLDBJN7P.cjs.map → impl-PNDNQD25.cjs.map} +1 -1
- package/dist/{impl-4VCIYJCG.cjs → impl-Q2JAFPV5.cjs} +2 -2
- package/dist/{impl-4VCIYJCG.cjs.map → impl-Q2JAFPV5.cjs.map} +1 -1
- package/dist/{impl-W6OLYSNF.cjs → impl-Q6LOHZB6.cjs} +2 -2
- package/dist/{impl-W6OLYSNF.cjs.map → impl-Q6LOHZB6.cjs.map} +1 -1
- package/dist/{impl-AHNQLAH5.cjs → impl-QS77O4PW.cjs} +2 -2
- package/dist/{impl-AHNQLAH5.cjs.map → impl-QS77O4PW.cjs.map} +1 -1
- package/dist/{impl-MLEPL5MZ.cjs → impl-TC6DE6BU.cjs} +5 -5
- package/dist/impl-TC6DE6BU.cjs.map +1 -0
- package/dist/{impl-RPRRJOI3.cjs → impl-W6WGF5YD.cjs} +2 -2
- package/dist/{impl-RPRRJOI3.cjs.map → impl-W6WGF5YD.cjs.map} +1 -1
- package/dist/{impl-C53IQ5HC.cjs → impl-WHZWURMO.cjs} +2 -2
- package/dist/{impl-C53IQ5HC.cjs.map → impl-WHZWURMO.cjs.map} +1 -1
- package/dist/{impl-WSRMGN2H.cjs → impl-WWQBCKZV.cjs} +2 -2
- package/dist/{impl-WSRMGN2H.cjs.map → impl-WWQBCKZV.cjs.map} +1 -1
- package/dist/{impl-IKTY3PZ3.cjs → impl-XWRII7ET.cjs} +2 -2
- package/dist/{impl-IKTY3PZ3.cjs.map → impl-XWRII7ET.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 +4 -2
- package/dist/chunk-7G4SCKPN.cjs +0 -2
- package/dist/chunk-7G4SCKPN.cjs.map +0 -1
- package/dist/chunk-AMO6I4AO.cjs +0 -2
- package/dist/chunk-AMO6I4AO.cjs.map +0 -1
- package/dist/chunk-JMBVOY56.cjs +0 -3
- package/dist/chunk-JMBVOY56.cjs.map +0 -1
- package/dist/chunk-KS2REJYA.cjs.map +0 -1
- package/dist/chunk-MBB6OD4E.cjs +0 -2
- package/dist/chunk-PSRKLYGK.cjs +0 -2
- package/dist/chunk-PTQHBKJU.cjs +0 -12
- package/dist/chunk-PTQHBKJU.cjs.map +0 -1
- package/dist/chunk-UPUHHIXZ.cjs +0 -2920
- package/dist/chunk-UPUHHIXZ.cjs.map +0 -1
- package/dist/impl-5BNP4JYG.cjs +0 -2
- package/dist/impl-5BNP4JYG.cjs.map +0 -1
- package/dist/impl-5MGEJPTO.cjs +0 -12
- package/dist/impl-5MGEJPTO.cjs.map +0 -1
- package/dist/impl-DSRH7IN2.cjs +0 -2
- package/dist/impl-DSRH7IN2.cjs.map +0 -1
- package/dist/impl-FP3D5M5B.cjs +0 -2
- package/dist/impl-GPTJLZHD.cjs +0 -2
- package/dist/impl-HVKSG236.cjs +0 -2
- package/dist/impl-IVDJEVS4.cjs +0 -6
- package/dist/impl-IVDJEVS4.cjs.map +0 -1
- package/dist/impl-MLEPL5MZ.cjs.map +0 -1
- package/dist/impl-QW6NAOEK.cjs +0 -7
- package/dist/impl-QW6NAOEK.cjs.map +0 -1
- package/dist/impl-VF3LT3IJ.cjs +0 -6
- package/dist/impl-VF3LT3IJ.cjs.map +0 -1
- package/dist/impl-YUYWOPRG.cjs +0 -2
|
@@ -0,0 +1,2920 @@
|
|
|
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 _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk44J2TVZUcjs = require('./chunk-44J2TVZU.cjs');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
|
+
`,Ec= exports.b =_graphqlrequest.gql`
|
|
51
|
+
query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
|
|
52
|
+
dataPoints(filterBy: $filterBy, useMaster: false) {
|
|
53
|
+
totalCount
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,wn= exports.c =_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
|
+
`,Rc= exports.d =_graphqlrequest.gql`
|
|
92
|
+
query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
|
|
93
|
+
subDataPoints(filterBy: $filterBy, useMaster: false) {
|
|
94
|
+
totalCount
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
`,bn= exports.e =_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
|
+
`,xn= exports.f =_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
|
+
`,$c= exports.g =_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 xc=_graphqlrequest.gql`
|
|
206
|
+
query TranscendCliEntryCount(
|
|
207
|
+
$filterBy: UnstructuredSubDataPointRecommendationsFilterInput
|
|
208
|
+
) {
|
|
209
|
+
unstructuredSubDataPointRecommendations(
|
|
210
|
+
filterBy: $filterBy
|
|
211
|
+
useMaster: false
|
|
212
|
+
) {
|
|
213
|
+
totalCount
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
`;var Dn=_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
|
+
`,kc= exports.j =_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.k =_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
|
+
`,ni= exports.l =_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.m =_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
|
+
`,vc= exports.o =_graphqlrequest.gql`
|
|
382
|
+
query TranscendCliInitializer {
|
|
383
|
+
initializer {
|
|
384
|
+
id
|
|
385
|
+
identifiers {
|
|
386
|
+
name
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
`,Gn= exports.p =_graphqlrequest.gql`
|
|
391
|
+
mutation TranscendCliCreateEnricher($input: EnricherInput!) {
|
|
392
|
+
createEnricher(input: $input) {
|
|
393
|
+
clientMutationId
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
`,vn= exports.q =_graphqlrequest.gql`
|
|
397
|
+
mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
|
|
398
|
+
updateEnricher(input: $input) {
|
|
399
|
+
clientMutationId
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
`;var qn=_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 On=_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
|
+
`,Nn= exports.t =_graphqlrequest.gql`
|
|
447
|
+
query TranscendCliNewIdentifierTypes {
|
|
448
|
+
newIdentifierTypes {
|
|
449
|
+
name
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
`,Mn= exports.u =_graphqlrequest.gql`
|
|
453
|
+
mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
|
|
454
|
+
createIdentifier(input: $input) {
|
|
455
|
+
identifier {
|
|
456
|
+
id
|
|
457
|
+
name
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
`,Un= exports.v =_graphqlrequest.gql`
|
|
462
|
+
mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
|
|
463
|
+
updateIdentifier(input: $input) {
|
|
464
|
+
clientMutationId
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
`;var Fn=_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
|
+
`,Qn= exports.x =_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
|
+
`,Bn= exports.y =_graphqlrequest.gql`
|
|
492
|
+
mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
|
|
493
|
+
updateSubject(input: $input) {
|
|
494
|
+
clientMutationId
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
`,Kn= exports.z =_graphqlrequest.gql`
|
|
498
|
+
mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
|
|
499
|
+
toggleSubject(input: $input) {
|
|
500
|
+
clientMutationId
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
`;var Vn=_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
|
+
`,jn= exports.B =_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
|
+
`,Yn= exports.C =_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 Zn=_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.E =_graphqlrequest.gql`
|
|
591
|
+
mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
|
|
592
|
+
createApiKey(input: $input) {
|
|
593
|
+
apiKey {
|
|
594
|
+
id
|
|
595
|
+
apiKey
|
|
596
|
+
title
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
`,Wn= exports.F =_graphqlrequest.gql`
|
|
601
|
+
mutation TranscendCliDeleteApiKey($id: ID!) {
|
|
602
|
+
deleteApiKey(id: $id) {
|
|
603
|
+
clientMutationId
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
`;var Jn=_graphqlrequest.gql`
|
|
607
|
+
mutation AddSiloDiscoveryResults(
|
|
608
|
+
$pluginId: ID!
|
|
609
|
+
$rawResults: [SiloDiscoveryRawResultInput!]!
|
|
610
|
+
) {
|
|
611
|
+
addSiloDiscoveryResults(
|
|
612
|
+
input: { pluginId: $pluginId, rawResults: $rawResults }
|
|
613
|
+
) {
|
|
614
|
+
success
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
`,Xn= exports.H =_graphqlrequest.gql`
|
|
618
|
+
query Plugins($dataSiloId: String!, $type: PluginType!) {
|
|
619
|
+
plugins(filterBy: { dataSiloId: $dataSiloId, type: $type, enabled: true }) {
|
|
620
|
+
plugins {
|
|
621
|
+
id
|
|
622
|
+
dataSilo {
|
|
623
|
+
type
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
totalCount
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
`;var tr=_graphqlrequest.gql`
|
|
630
|
+
query TranscendCliTemplates($title: String, $first: Int!, $offset: Int!) {
|
|
631
|
+
templates(
|
|
632
|
+
filterBy: { text: $title }
|
|
633
|
+
first: $first
|
|
634
|
+
offset: $offset
|
|
635
|
+
useMaster: false
|
|
636
|
+
) {
|
|
637
|
+
nodes {
|
|
638
|
+
id
|
|
639
|
+
title
|
|
640
|
+
subject {
|
|
641
|
+
defaultMessage
|
|
642
|
+
}
|
|
643
|
+
template {
|
|
644
|
+
defaultMessage
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
`,ir= exports.J =_graphqlrequest.gql`
|
|
650
|
+
mutation TranscendCliCreateTemplate($title: String!) {
|
|
651
|
+
createTemplate(input: { title: $title, template: "", subject: $title }) {
|
|
652
|
+
clientMutationId
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
`;var nr=_graphqlrequest.gql`
|
|
656
|
+
query TranscendCliOrganization {
|
|
657
|
+
organization {
|
|
658
|
+
sombra {
|
|
659
|
+
customerUrl
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
`;var rr=_graphqlrequest.gql`
|
|
664
|
+
query TranscendCliAttributeKeys($first: Int!, $offset: Int!) {
|
|
665
|
+
attributeKeys(
|
|
666
|
+
filterBy: { enabledOn: [request] }
|
|
667
|
+
first: $first
|
|
668
|
+
useMaster: false
|
|
669
|
+
offset: $offset
|
|
670
|
+
) {
|
|
671
|
+
nodes {
|
|
672
|
+
id
|
|
673
|
+
name
|
|
674
|
+
type
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
`;var or=_graphqlrequest.gql`
|
|
679
|
+
query TranscendCliSoftwareDevelopmentKits(
|
|
680
|
+
$first: Int!
|
|
681
|
+
$offset: Int!
|
|
682
|
+
$input: SoftwareDevelopmentKitFiltersInput
|
|
683
|
+
) {
|
|
684
|
+
softwareDevelopmentKits(
|
|
685
|
+
first: $first
|
|
686
|
+
offset: $offset
|
|
687
|
+
filterBy: $input
|
|
688
|
+
orderBy: [
|
|
689
|
+
{ field: createdAt, direction: ASC }
|
|
690
|
+
{ field: name, direction: ASC }
|
|
691
|
+
]
|
|
692
|
+
) {
|
|
693
|
+
nodes {
|
|
694
|
+
id
|
|
695
|
+
name
|
|
696
|
+
description
|
|
697
|
+
codePackageType
|
|
698
|
+
documentationLinks
|
|
699
|
+
repositoryUrl
|
|
700
|
+
teams {
|
|
701
|
+
id
|
|
702
|
+
name
|
|
703
|
+
}
|
|
704
|
+
owners {
|
|
705
|
+
id
|
|
706
|
+
email
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
`,sr= exports.N =_graphqlrequest.gql`
|
|
712
|
+
mutation TranscendCliUpdateSoftwareDevelopmentKits(
|
|
713
|
+
$input: UpdateSoftwareDevelopmentKitsInput!
|
|
714
|
+
) {
|
|
715
|
+
updateSoftwareDevelopmentKits(input: $input) {
|
|
716
|
+
clientMutationId
|
|
717
|
+
softwareDevelopmentKits {
|
|
718
|
+
id
|
|
719
|
+
name
|
|
720
|
+
description
|
|
721
|
+
codePackageType
|
|
722
|
+
documentationLinks
|
|
723
|
+
repositoryUrl
|
|
724
|
+
teams {
|
|
725
|
+
id
|
|
726
|
+
name
|
|
727
|
+
}
|
|
728
|
+
owners {
|
|
729
|
+
id
|
|
730
|
+
email
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
`,ar= exports.O =_graphqlrequest.gql`
|
|
736
|
+
mutation TranscendCliCreateSoftwareDevelopmentKit(
|
|
737
|
+
$input: CreateSoftwareDevelopmentKitInput!
|
|
738
|
+
) {
|
|
739
|
+
createSoftwareDevelopmentKit(input: $input) {
|
|
740
|
+
clientMutationId
|
|
741
|
+
softwareDevelopmentKit {
|
|
742
|
+
id
|
|
743
|
+
name
|
|
744
|
+
description
|
|
745
|
+
codePackageType
|
|
746
|
+
documentationLinks
|
|
747
|
+
repositoryUrl
|
|
748
|
+
teams {
|
|
749
|
+
id
|
|
750
|
+
name
|
|
751
|
+
}
|
|
752
|
+
owners {
|
|
753
|
+
id
|
|
754
|
+
email
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
`;var pr=_graphqlrequest.gql`
|
|
760
|
+
query TranscendCliCodePackages(
|
|
761
|
+
$first: Int!
|
|
762
|
+
$offset: Int!
|
|
763
|
+
$input: CodePackageFiltersInput
|
|
764
|
+
) {
|
|
765
|
+
codePackages(
|
|
766
|
+
first: $first
|
|
767
|
+
offset: $offset
|
|
768
|
+
filterBy: $input
|
|
769
|
+
orderBy: [
|
|
770
|
+
{ field: createdAt, direction: ASC }
|
|
771
|
+
{ field: name, direction: ASC }
|
|
772
|
+
]
|
|
773
|
+
) {
|
|
774
|
+
nodes {
|
|
775
|
+
id
|
|
776
|
+
name
|
|
777
|
+
description
|
|
778
|
+
type
|
|
779
|
+
relativePath
|
|
780
|
+
teams {
|
|
781
|
+
id
|
|
782
|
+
name
|
|
783
|
+
}
|
|
784
|
+
owners {
|
|
785
|
+
id
|
|
786
|
+
email
|
|
787
|
+
}
|
|
788
|
+
repository {
|
|
789
|
+
id
|
|
790
|
+
name
|
|
791
|
+
}
|
|
792
|
+
dataSilo {
|
|
793
|
+
id
|
|
794
|
+
title
|
|
795
|
+
type
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
`,lr= exports.Q =_graphqlrequest.gql`
|
|
801
|
+
mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
|
|
802
|
+
updateCodePackages(input: $input) {
|
|
803
|
+
clientMutationId
|
|
804
|
+
codePackages {
|
|
805
|
+
id
|
|
806
|
+
name
|
|
807
|
+
description
|
|
808
|
+
type
|
|
809
|
+
relativePath
|
|
810
|
+
teams {
|
|
811
|
+
id
|
|
812
|
+
name
|
|
813
|
+
}
|
|
814
|
+
owners {
|
|
815
|
+
id
|
|
816
|
+
email
|
|
817
|
+
}
|
|
818
|
+
repository {
|
|
819
|
+
id
|
|
820
|
+
name
|
|
821
|
+
}
|
|
822
|
+
dataSilo {
|
|
823
|
+
id
|
|
824
|
+
title
|
|
825
|
+
type
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
`,cr= exports.R =_graphqlrequest.gql`
|
|
831
|
+
mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
|
|
832
|
+
createCodePackage(input: $input) {
|
|
833
|
+
clientMutationId
|
|
834
|
+
codePackage {
|
|
835
|
+
id
|
|
836
|
+
name
|
|
837
|
+
description
|
|
838
|
+
type
|
|
839
|
+
relativePath
|
|
840
|
+
teams {
|
|
841
|
+
id
|
|
842
|
+
name
|
|
843
|
+
}
|
|
844
|
+
owners {
|
|
845
|
+
id
|
|
846
|
+
email
|
|
847
|
+
}
|
|
848
|
+
repository {
|
|
849
|
+
id
|
|
850
|
+
name
|
|
851
|
+
}
|
|
852
|
+
dataSilo {
|
|
853
|
+
id
|
|
854
|
+
title
|
|
855
|
+
type
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
`;var mr=_graphqlrequest.gql`
|
|
861
|
+
query TranscendCliPromptThreads(
|
|
862
|
+
$first: Int!
|
|
863
|
+
$offset: Int!
|
|
864
|
+
$filterBy: PromptThreadFiltersInput!
|
|
865
|
+
) {
|
|
866
|
+
promptThreads(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
867
|
+
nodes {
|
|
868
|
+
id
|
|
869
|
+
threadId
|
|
870
|
+
slackMessageTs
|
|
871
|
+
slackTeamId
|
|
872
|
+
slackChannelId
|
|
873
|
+
slackChannelName
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
`;var dr=_graphqlrequest.gql`
|
|
878
|
+
query TranscendCliFetchPolicies($url: String!) {
|
|
879
|
+
privacyCenterPolicies(lookup: { url: $url }) {
|
|
880
|
+
id
|
|
881
|
+
title {
|
|
882
|
+
defaultMessage
|
|
883
|
+
}
|
|
884
|
+
disableEffectiveOn
|
|
885
|
+
disabledLocales
|
|
886
|
+
versions {
|
|
887
|
+
effectiveOn
|
|
888
|
+
content {
|
|
889
|
+
defaultMessage
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
`,fr= exports.U =_graphqlrequest.gql`
|
|
895
|
+
mutation TranscendCliUpdatePolicies(
|
|
896
|
+
$policies: [PolicyInput!]!
|
|
897
|
+
$privacyCenterId: ID!
|
|
898
|
+
) {
|
|
899
|
+
updatePolicies(
|
|
900
|
+
input: {
|
|
901
|
+
privacyCenterId: $privacyCenterId
|
|
902
|
+
policies: $policies
|
|
903
|
+
skipPublish: true
|
|
904
|
+
}
|
|
905
|
+
) {
|
|
906
|
+
clientMutationId
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
`;var gr=_graphqlrequest.gql`
|
|
910
|
+
query TranscendCliRequests(
|
|
911
|
+
$first: Int!
|
|
912
|
+
$offset: Int!
|
|
913
|
+
$filterBy: RequestFiltersInput!
|
|
914
|
+
) {
|
|
915
|
+
requests(
|
|
916
|
+
filterBy: $filterBy
|
|
917
|
+
first: $first
|
|
918
|
+
offset: $offset
|
|
919
|
+
orderBy: [
|
|
920
|
+
{ field: createdAt, direction: ASC }
|
|
921
|
+
{ field: id, direction: ASC }
|
|
922
|
+
]
|
|
923
|
+
useMaster: false
|
|
924
|
+
) {
|
|
925
|
+
nodes {
|
|
926
|
+
id
|
|
927
|
+
createdAt
|
|
928
|
+
email
|
|
929
|
+
link
|
|
930
|
+
status
|
|
931
|
+
details
|
|
932
|
+
isTest
|
|
933
|
+
locale
|
|
934
|
+
origin
|
|
935
|
+
isSilent
|
|
936
|
+
coreIdentifier
|
|
937
|
+
daysRemaining
|
|
938
|
+
type
|
|
939
|
+
subjectType
|
|
940
|
+
country
|
|
941
|
+
countrySubDivision
|
|
942
|
+
attributeValues {
|
|
943
|
+
id
|
|
944
|
+
name
|
|
945
|
+
attributeKey {
|
|
946
|
+
id
|
|
947
|
+
name
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
totalCount
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
`,cm= exports.W =_graphqlrequest.gql`
|
|
955
|
+
mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
|
|
956
|
+
approveRequest(input: $input) {
|
|
957
|
+
request {
|
|
958
|
+
id
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
`,mm= exports.X =_graphqlrequest.gql`
|
|
963
|
+
mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
|
|
964
|
+
cancelRequest(input: $input) {
|
|
965
|
+
request {
|
|
966
|
+
id
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
`,um= exports.Y =_graphqlrequest.gql`
|
|
971
|
+
mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
|
|
972
|
+
updateRequest(input: $input) {
|
|
973
|
+
request {
|
|
974
|
+
id
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
`,dm= exports.Z =_graphqlrequest.gql`
|
|
979
|
+
mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
|
|
980
|
+
notifyAdditionalTime(input: $input) {
|
|
981
|
+
clientMutationId
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
`;var Cr=_graphqlrequest.gql`
|
|
985
|
+
query TranscendCliFetchMessage {
|
|
986
|
+
translatedMessages {
|
|
987
|
+
id
|
|
988
|
+
defaultMessage
|
|
989
|
+
targetReactIntlId
|
|
990
|
+
translations {
|
|
991
|
+
locale
|
|
992
|
+
value
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
`,hr= exports.$ =_graphqlrequest.gql`
|
|
997
|
+
mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
|
|
998
|
+
updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
|
|
999
|
+
clientMutationId
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
`;var Ir=_graphqlrequest.gql`
|
|
1003
|
+
query TranscendCliRequestEnrichers(
|
|
1004
|
+
$first: Int!
|
|
1005
|
+
$offset: Int!
|
|
1006
|
+
$requestId: ID!
|
|
1007
|
+
) {
|
|
1008
|
+
requestEnrichers(
|
|
1009
|
+
input: { requestId: $requestId }
|
|
1010
|
+
first: $first
|
|
1011
|
+
offset: $offset
|
|
1012
|
+
useMaster: false
|
|
1013
|
+
orderBy: [
|
|
1014
|
+
{ field: createdAt, direction: ASC }
|
|
1015
|
+
{ field: title, direction: ASC, model: enricher }
|
|
1016
|
+
]
|
|
1017
|
+
) {
|
|
1018
|
+
nodes {
|
|
1019
|
+
id
|
|
1020
|
+
status
|
|
1021
|
+
enricher {
|
|
1022
|
+
id
|
|
1023
|
+
type
|
|
1024
|
+
title
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
totalCount
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
`,Ar= exports.ba =_graphqlrequest.gql`
|
|
1031
|
+
mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
|
|
1032
|
+
retryRequestEnricher(id: $requestEnricherId) {
|
|
1033
|
+
requestEnricher {
|
|
1034
|
+
id
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
`,hm= exports.ca =_graphqlrequest.gql`
|
|
1039
|
+
mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
|
|
1040
|
+
skipRequestEnricher(id: $requestEnricherId) {
|
|
1041
|
+
requestEnricher {
|
|
1042
|
+
id
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
`;var li=`
|
|
1047
|
+
id
|
|
1048
|
+
title
|
|
1049
|
+
status
|
|
1050
|
+
index
|
|
1051
|
+
questions {
|
|
1052
|
+
id
|
|
1053
|
+
title
|
|
1054
|
+
index
|
|
1055
|
+
type
|
|
1056
|
+
subType
|
|
1057
|
+
placeholder
|
|
1058
|
+
description
|
|
1059
|
+
isRequired
|
|
1060
|
+
displayLogic
|
|
1061
|
+
riskLogic
|
|
1062
|
+
requireRiskEvaluation
|
|
1063
|
+
requireRiskMatrixEvaluation
|
|
1064
|
+
riskCategories {
|
|
1065
|
+
id
|
|
1066
|
+
title
|
|
1067
|
+
}
|
|
1068
|
+
riskFramework {
|
|
1069
|
+
id
|
|
1070
|
+
title
|
|
1071
|
+
description
|
|
1072
|
+
riskLevels {
|
|
1073
|
+
id
|
|
1074
|
+
title
|
|
1075
|
+
}
|
|
1076
|
+
riskCategories {
|
|
1077
|
+
id
|
|
1078
|
+
title
|
|
1079
|
+
}
|
|
1080
|
+
riskMatrixColumns {
|
|
1081
|
+
id
|
|
1082
|
+
title
|
|
1083
|
+
}
|
|
1084
|
+
riskMatrixRows {
|
|
1085
|
+
id
|
|
1086
|
+
title
|
|
1087
|
+
}
|
|
1088
|
+
riskMatrix {
|
|
1089
|
+
id
|
|
1090
|
+
title
|
|
1091
|
+
}
|
|
1092
|
+
creator {
|
|
1093
|
+
id
|
|
1094
|
+
email
|
|
1095
|
+
name
|
|
1096
|
+
}
|
|
1097
|
+
riskMatrixRowTitle
|
|
1098
|
+
riskMatrixColumnTitle
|
|
1099
|
+
}
|
|
1100
|
+
riskLevel {
|
|
1101
|
+
id
|
|
1102
|
+
title
|
|
1103
|
+
}
|
|
1104
|
+
reviewerRiskLevel {
|
|
1105
|
+
id
|
|
1106
|
+
title
|
|
1107
|
+
}
|
|
1108
|
+
riskLevelFromRiskMatrix {
|
|
1109
|
+
id
|
|
1110
|
+
title
|
|
1111
|
+
}
|
|
1112
|
+
answerOptions {
|
|
1113
|
+
id
|
|
1114
|
+
index
|
|
1115
|
+
value
|
|
1116
|
+
}
|
|
1117
|
+
selectedAnswers {
|
|
1118
|
+
... on AssessmentAnswerInterface {
|
|
1119
|
+
id
|
|
1120
|
+
index
|
|
1121
|
+
value
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
respondent {
|
|
1125
|
+
id
|
|
1126
|
+
email
|
|
1127
|
+
name
|
|
1128
|
+
}
|
|
1129
|
+
attributeKey {
|
|
1130
|
+
name
|
|
1131
|
+
}
|
|
1132
|
+
externalRespondentEmail
|
|
1133
|
+
comments {
|
|
1134
|
+
id
|
|
1135
|
+
content
|
|
1136
|
+
createdAt
|
|
1137
|
+
updatedAt
|
|
1138
|
+
author {
|
|
1139
|
+
id
|
|
1140
|
+
email
|
|
1141
|
+
name
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
allowedMimeTypes
|
|
1145
|
+
updatedAt
|
|
1146
|
+
referenceId
|
|
1147
|
+
previousSubmissions {
|
|
1148
|
+
id
|
|
1149
|
+
updatedAt
|
|
1150
|
+
assessmentQuestionId
|
|
1151
|
+
answers {
|
|
1152
|
+
... on AssessmentAnswerInterface {
|
|
1153
|
+
id
|
|
1154
|
+
index
|
|
1155
|
+
value
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
allowSelectOther
|
|
1160
|
+
syncModel
|
|
1161
|
+
syncColumn
|
|
1162
|
+
syncRowIds
|
|
1163
|
+
syncOverride
|
|
1164
|
+
}
|
|
1165
|
+
assignees {
|
|
1166
|
+
id
|
|
1167
|
+
email
|
|
1168
|
+
name
|
|
1169
|
+
}
|
|
1170
|
+
externalAssignees {
|
|
1171
|
+
id
|
|
1172
|
+
email
|
|
1173
|
+
}
|
|
1174
|
+
isReviewed
|
|
1175
|
+
`,Sr= exports.ea =_graphqlrequest.gql`
|
|
1176
|
+
query TranscendCliAssessments(
|
|
1177
|
+
$first: Int!
|
|
1178
|
+
$offset: Int!
|
|
1179
|
+
$filterBy: AssessmentFormFiltersInput
|
|
1180
|
+
) {
|
|
1181
|
+
assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
1182
|
+
nodes {
|
|
1183
|
+
id
|
|
1184
|
+
creator {
|
|
1185
|
+
id
|
|
1186
|
+
email
|
|
1187
|
+
name
|
|
1188
|
+
}
|
|
1189
|
+
lastEditor {
|
|
1190
|
+
id
|
|
1191
|
+
email
|
|
1192
|
+
name
|
|
1193
|
+
}
|
|
1194
|
+
title
|
|
1195
|
+
description
|
|
1196
|
+
status
|
|
1197
|
+
assignees {
|
|
1198
|
+
id
|
|
1199
|
+
email
|
|
1200
|
+
name
|
|
1201
|
+
}
|
|
1202
|
+
externalAssignees {
|
|
1203
|
+
id
|
|
1204
|
+
email
|
|
1205
|
+
}
|
|
1206
|
+
reviewers {
|
|
1207
|
+
id
|
|
1208
|
+
email
|
|
1209
|
+
name
|
|
1210
|
+
}
|
|
1211
|
+
isLocked
|
|
1212
|
+
isArchived
|
|
1213
|
+
isExternallyCreated
|
|
1214
|
+
dueDate
|
|
1215
|
+
createdAt
|
|
1216
|
+
updatedAt
|
|
1217
|
+
assignedAt
|
|
1218
|
+
submittedAt
|
|
1219
|
+
approvedAt
|
|
1220
|
+
rejectedAt
|
|
1221
|
+
titleIsInternal
|
|
1222
|
+
retentionSchedule {
|
|
1223
|
+
id
|
|
1224
|
+
type
|
|
1225
|
+
durationDays
|
|
1226
|
+
operation
|
|
1227
|
+
}
|
|
1228
|
+
attributeValues {
|
|
1229
|
+
name
|
|
1230
|
+
attributeKey {
|
|
1231
|
+
name
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
sections {
|
|
1235
|
+
${li}
|
|
1236
|
+
}
|
|
1237
|
+
assessmentGroup {
|
|
1238
|
+
id
|
|
1239
|
+
title
|
|
1240
|
+
description
|
|
1241
|
+
}
|
|
1242
|
+
resources {
|
|
1243
|
+
resourceType
|
|
1244
|
+
... on AttributeBusinessEntityResource {
|
|
1245
|
+
id
|
|
1246
|
+
title
|
|
1247
|
+
}
|
|
1248
|
+
... on AttributeDataSiloResource {
|
|
1249
|
+
id
|
|
1250
|
+
title
|
|
1251
|
+
}
|
|
1252
|
+
... on AttributeDataSubCategoryResource {
|
|
1253
|
+
id
|
|
1254
|
+
name
|
|
1255
|
+
category
|
|
1256
|
+
}
|
|
1257
|
+
... on AttributeSubDataPointResource {
|
|
1258
|
+
id
|
|
1259
|
+
name
|
|
1260
|
+
}
|
|
1261
|
+
... on AttributeProcessingPurposeSubCategoryResource {
|
|
1262
|
+
id
|
|
1263
|
+
name
|
|
1264
|
+
purpose
|
|
1265
|
+
}
|
|
1266
|
+
... on AttributeRequestResource {
|
|
1267
|
+
id
|
|
1268
|
+
type
|
|
1269
|
+
}
|
|
1270
|
+
... on AttributeVendorResource {
|
|
1271
|
+
id
|
|
1272
|
+
title
|
|
1273
|
+
}
|
|
1274
|
+
... on AttributePromptResource {
|
|
1275
|
+
id
|
|
1276
|
+
title
|
|
1277
|
+
}
|
|
1278
|
+
... on AttributePromptRunResource {
|
|
1279
|
+
id
|
|
1280
|
+
title
|
|
1281
|
+
}
|
|
1282
|
+
... on AttributePromptGroupResource {
|
|
1283
|
+
id
|
|
1284
|
+
title
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
syncedRows {
|
|
1288
|
+
resourceType
|
|
1289
|
+
... on AttributeBusinessEntityResource {
|
|
1290
|
+
id
|
|
1291
|
+
title
|
|
1292
|
+
}
|
|
1293
|
+
... on AttributeDataSiloResource {
|
|
1294
|
+
id
|
|
1295
|
+
title
|
|
1296
|
+
}
|
|
1297
|
+
... on AttributeDataSubCategoryResource {
|
|
1298
|
+
id
|
|
1299
|
+
name
|
|
1300
|
+
category
|
|
1301
|
+
}
|
|
1302
|
+
... on AttributeSubDataPointResource {
|
|
1303
|
+
id
|
|
1304
|
+
name
|
|
1305
|
+
}
|
|
1306
|
+
... on AttributeProcessingPurposeSubCategoryResource {
|
|
1307
|
+
id
|
|
1308
|
+
name
|
|
1309
|
+
purpose
|
|
1310
|
+
}
|
|
1311
|
+
... on AttributeVendorResource {
|
|
1312
|
+
id
|
|
1313
|
+
title
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
`,Pm= exports.fa =_graphqlrequest.gql`
|
|
1320
|
+
mutation TranscendCliImportOneTrustAssessmentForms(
|
|
1321
|
+
$input: ImportOnetrustAssessmentsInput!
|
|
1322
|
+
) {
|
|
1323
|
+
importOneTrustAssessmentForms(input: $input) {
|
|
1324
|
+
assessmentForms {
|
|
1325
|
+
id
|
|
1326
|
+
title
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
`;var Tr=_graphqlrequest.gql`
|
|
1331
|
+
query TranscendCliPurposes(
|
|
1332
|
+
$first: Int!
|
|
1333
|
+
$offset: Int!
|
|
1334
|
+
$filterBy: TrackingPurposeFiltersInput
|
|
1335
|
+
$input: TrackingPurposeInput!
|
|
1336
|
+
) {
|
|
1337
|
+
purposes(
|
|
1338
|
+
first: $first
|
|
1339
|
+
offset: $offset
|
|
1340
|
+
filterBy: $filterBy
|
|
1341
|
+
input: $input
|
|
1342
|
+
) {
|
|
1343
|
+
nodes {
|
|
1344
|
+
id
|
|
1345
|
+
name
|
|
1346
|
+
description
|
|
1347
|
+
defaultConsent
|
|
1348
|
+
trackingType
|
|
1349
|
+
configurable
|
|
1350
|
+
essential
|
|
1351
|
+
showInConsentManager
|
|
1352
|
+
isActive
|
|
1353
|
+
displayOrder
|
|
1354
|
+
optOutSignals
|
|
1355
|
+
deletedAt
|
|
1356
|
+
authLevel
|
|
1357
|
+
showInPrivacyCenter
|
|
1358
|
+
title
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
`;var Er=_graphqlrequest.gql`
|
|
1363
|
+
query TranscendCliPreferenceTopics(
|
|
1364
|
+
$first: Int!
|
|
1365
|
+
$offset: Int!
|
|
1366
|
+
$filterBy: PreferenceTopicFilterInput
|
|
1367
|
+
) {
|
|
1368
|
+
preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
1369
|
+
nodes {
|
|
1370
|
+
id
|
|
1371
|
+
slug
|
|
1372
|
+
type
|
|
1373
|
+
title {
|
|
1374
|
+
id
|
|
1375
|
+
defaultMessage
|
|
1376
|
+
}
|
|
1377
|
+
showInPrivacyCenter
|
|
1378
|
+
displayDescription {
|
|
1379
|
+
id
|
|
1380
|
+
defaultMessage
|
|
1381
|
+
}
|
|
1382
|
+
defaultConfiguration
|
|
1383
|
+
preferenceOptionValues {
|
|
1384
|
+
slug
|
|
1385
|
+
title {
|
|
1386
|
+
id
|
|
1387
|
+
defaultMessage
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
purpose {
|
|
1391
|
+
trackingType
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
`;var Rr=_graphqlrequest.gql`
|
|
1397
|
+
query TranscendCliAssessmentTemplates(
|
|
1398
|
+
$first: Int!
|
|
1399
|
+
$offset: Int!
|
|
1400
|
+
$filterBy: AssessmentFormTemplateFiltersInput
|
|
1401
|
+
) {
|
|
1402
|
+
assessmentFormTemplates(
|
|
1403
|
+
first: $first
|
|
1404
|
+
offset: $offset
|
|
1405
|
+
filterBy: $filterBy
|
|
1406
|
+
) {
|
|
1407
|
+
nodes {
|
|
1408
|
+
id
|
|
1409
|
+
creator {
|
|
1410
|
+
id
|
|
1411
|
+
email
|
|
1412
|
+
name
|
|
1413
|
+
}
|
|
1414
|
+
lastEditor {
|
|
1415
|
+
id
|
|
1416
|
+
email
|
|
1417
|
+
name
|
|
1418
|
+
}
|
|
1419
|
+
title
|
|
1420
|
+
description
|
|
1421
|
+
status
|
|
1422
|
+
source
|
|
1423
|
+
parentId
|
|
1424
|
+
isLocked
|
|
1425
|
+
isArchived
|
|
1426
|
+
createdAt
|
|
1427
|
+
updatedAt
|
|
1428
|
+
retentionSchedule {
|
|
1429
|
+
id
|
|
1430
|
+
type
|
|
1431
|
+
durationDays
|
|
1432
|
+
operation
|
|
1433
|
+
createdAt
|
|
1434
|
+
updatedAt
|
|
1435
|
+
}
|
|
1436
|
+
assessmentEmailSet {
|
|
1437
|
+
id
|
|
1438
|
+
title
|
|
1439
|
+
description
|
|
1440
|
+
isDefault
|
|
1441
|
+
templates {
|
|
1442
|
+
id
|
|
1443
|
+
title
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
sections {
|
|
1447
|
+
${li}
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
`;var $r=_graphqlrequest.gql`
|
|
1453
|
+
query TranscendCliPrompts(
|
|
1454
|
+
$first: Int!
|
|
1455
|
+
$offset: Int!
|
|
1456
|
+
$filterBy: PromptFiltersInput
|
|
1457
|
+
) {
|
|
1458
|
+
prompts(
|
|
1459
|
+
first: $first
|
|
1460
|
+
orderBy: [{ field: title, direction: ASC }]
|
|
1461
|
+
offset: $offset
|
|
1462
|
+
filterBy: $filterBy
|
|
1463
|
+
) {
|
|
1464
|
+
nodes {
|
|
1465
|
+
id
|
|
1466
|
+
title
|
|
1467
|
+
status
|
|
1468
|
+
content
|
|
1469
|
+
temperature
|
|
1470
|
+
topP
|
|
1471
|
+
maxTokensToSample
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
`,wr= exports.ka =_graphqlrequest.gql`
|
|
1476
|
+
query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
|
|
1477
|
+
promptPartials(first: $first, offset: $offset) {
|
|
1478
|
+
nodes {
|
|
1479
|
+
id
|
|
1480
|
+
title
|
|
1481
|
+
content
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
`,br= exports.la =_graphqlrequest.gql`
|
|
1486
|
+
query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
|
|
1487
|
+
promptGroups(
|
|
1488
|
+
first: $first
|
|
1489
|
+
|
|
1490
|
+
offset: $offset
|
|
1491
|
+
) {
|
|
1492
|
+
nodes {
|
|
1493
|
+
id
|
|
1494
|
+
title
|
|
1495
|
+
description
|
|
1496
|
+
prompts {
|
|
1497
|
+
title
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
`,xr= exports.ma =_graphqlrequest.gql`
|
|
1503
|
+
query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
|
|
1504
|
+
promptsWithVariables(input: $input) {
|
|
1505
|
+
prompts {
|
|
1506
|
+
id
|
|
1507
|
+
title
|
|
1508
|
+
content
|
|
1509
|
+
status
|
|
1510
|
+
temperature
|
|
1511
|
+
topP
|
|
1512
|
+
maxTokensToSample
|
|
1513
|
+
responseFormat
|
|
1514
|
+
}
|
|
1515
|
+
promptPartials {
|
|
1516
|
+
id
|
|
1517
|
+
title
|
|
1518
|
+
content
|
|
1519
|
+
slug
|
|
1520
|
+
}
|
|
1521
|
+
calculatedVariables {
|
|
1522
|
+
data
|
|
1523
|
+
name
|
|
1524
|
+
}
|
|
1525
|
+
runtimeVariables {
|
|
1526
|
+
name
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
`,Dr= exports.na =_graphqlrequest.gql`
|
|
1531
|
+
mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
|
|
1532
|
+
updatePrompts(input: $input) {
|
|
1533
|
+
clientMutationId
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
`,Lr= exports.oa =_graphqlrequest.gql`
|
|
1537
|
+
mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
|
|
1538
|
+
createPrompt(input: $input) {
|
|
1539
|
+
clientMutationId
|
|
1540
|
+
prompt {
|
|
1541
|
+
id
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
`,kr= exports.pa =_graphqlrequest.gql`
|
|
1546
|
+
mutation TranscendCliUpdatePromptPartials(
|
|
1547
|
+
$input: UpdatePromptPartialsInput!
|
|
1548
|
+
) {
|
|
1549
|
+
updatePromptPartials(input: $input) {
|
|
1550
|
+
clientMutationId
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
`,_r= exports.qa =_graphqlrequest.gql`
|
|
1554
|
+
mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
|
|
1555
|
+
createPromptPartial(input: $input) {
|
|
1556
|
+
clientMutationId
|
|
1557
|
+
promptPartial {
|
|
1558
|
+
id
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
`,Gr= exports.ra =_graphqlrequest.gql`
|
|
1563
|
+
mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
|
|
1564
|
+
updatePromptGroups(input: $input) {
|
|
1565
|
+
clientMutationId
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
`,vr= exports.sa =_graphqlrequest.gql`
|
|
1569
|
+
mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
|
|
1570
|
+
createPromptGroup(input: $input) {
|
|
1571
|
+
clientMutationId
|
|
1572
|
+
promptGroup {
|
|
1573
|
+
id
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
`;var qr=_graphqlrequest.gql`
|
|
1578
|
+
query TranscendCliRequestDataSilos(
|
|
1579
|
+
$first: Int!
|
|
1580
|
+
$offset: Int!
|
|
1581
|
+
$filterBy: RequestDataSiloFiltersInput!
|
|
1582
|
+
) {
|
|
1583
|
+
requestDataSilos(
|
|
1584
|
+
filterBy: $filterBy
|
|
1585
|
+
first: $first
|
|
1586
|
+
offset: $offset
|
|
1587
|
+
useMaster: false
|
|
1588
|
+
orderBy: [
|
|
1589
|
+
{ field: createdAt, direction: DESC }
|
|
1590
|
+
{ field: title, direction: ASC, model: dataSilo }
|
|
1591
|
+
]
|
|
1592
|
+
) {
|
|
1593
|
+
nodes {
|
|
1594
|
+
id
|
|
1595
|
+
}
|
|
1596
|
+
totalCount
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
`,_m= exports.ua =_graphqlrequest.gql`
|
|
1600
|
+
mutation TranscendCliMarkRequestDataSiloCompleted(
|
|
1601
|
+
$requestDataSiloId: ID!
|
|
1602
|
+
$status: UpdateRequestDataSiloStatus!
|
|
1603
|
+
) {
|
|
1604
|
+
changeRequestDataSiloStatus(
|
|
1605
|
+
input: { id: $requestDataSiloId, status: $status }
|
|
1606
|
+
) {
|
|
1607
|
+
requestDataSilo {
|
|
1608
|
+
id
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
`,Gm= exports.va =_graphqlrequest.gql`
|
|
1613
|
+
mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
|
|
1614
|
+
retryRequestDataSilo(id: $requestDataSiloId) {
|
|
1615
|
+
requestDataSilo {
|
|
1616
|
+
id
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
`,Or= exports.wa =_graphqlrequest.gql`
|
|
1621
|
+
query TranscendCliListReducedRequestsForDataSiloCount(
|
|
1622
|
+
$input: BulkCompletionReducedRequestInput!
|
|
1623
|
+
) {
|
|
1624
|
+
listReducedRequestsForDataSilo(input: $input) {
|
|
1625
|
+
totalCount
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
`;var Nr=_graphqlrequest.gql`
|
|
1629
|
+
query TranscendCliTeams(
|
|
1630
|
+
$first: Int!
|
|
1631
|
+
$offset: Int!
|
|
1632
|
+
$input: TeamFiltersInput
|
|
1633
|
+
) {
|
|
1634
|
+
teams(
|
|
1635
|
+
first: $first
|
|
1636
|
+
offset: $offset
|
|
1637
|
+
filterBy: $input
|
|
1638
|
+
orderBy: [
|
|
1639
|
+
{ field: createdAt, direction: ASC }
|
|
1640
|
+
{ field: name, direction: ASC }
|
|
1641
|
+
]
|
|
1642
|
+
) {
|
|
1643
|
+
nodes {
|
|
1644
|
+
id
|
|
1645
|
+
name
|
|
1646
|
+
description
|
|
1647
|
+
ssoDepartment
|
|
1648
|
+
ssoGroup
|
|
1649
|
+
ssoTitle
|
|
1650
|
+
users {
|
|
1651
|
+
id
|
|
1652
|
+
email
|
|
1653
|
+
name
|
|
1654
|
+
}
|
|
1655
|
+
scopes {
|
|
1656
|
+
id
|
|
1657
|
+
name
|
|
1658
|
+
title
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
`,Mr= exports.ya =_graphqlrequest.gql`
|
|
1664
|
+
mutation TranscendCliCreateTeam($input: TeamInput!) {
|
|
1665
|
+
createTeam(input: $input) {
|
|
1666
|
+
team {
|
|
1667
|
+
id
|
|
1668
|
+
name
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
`,Ur= exports.za =_graphqlrequest.gql`
|
|
1673
|
+
mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
|
|
1674
|
+
updateTeam(input: $input) {
|
|
1675
|
+
team {
|
|
1676
|
+
id
|
|
1677
|
+
name
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
`;var Mm=_graphqlrequest.gql`
|
|
1682
|
+
mutation TranscendCliRemoveRequestIdentifiers(
|
|
1683
|
+
$input: RemoveRequestIdentifiersInput!
|
|
1684
|
+
) {
|
|
1685
|
+
removeRequestIdentifiers(input: $input) {
|
|
1686
|
+
count
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
`,Qr= exports.Ba =_graphqlrequest.gql`
|
|
1690
|
+
query TranscendCliRequestIdentifiers(
|
|
1691
|
+
$first: Int!
|
|
1692
|
+
$offset: Int!
|
|
1693
|
+
$requestIds: [ID!]!
|
|
1694
|
+
) {
|
|
1695
|
+
requestIdentifiers(
|
|
1696
|
+
input: { requestIds: $requestIds }
|
|
1697
|
+
first: $first
|
|
1698
|
+
offset: $offset
|
|
1699
|
+
useMaster: false
|
|
1700
|
+
orderBy: [
|
|
1701
|
+
{ field: createdAt, direction: ASC }
|
|
1702
|
+
{ field: name, direction: ASC }
|
|
1703
|
+
]
|
|
1704
|
+
) {
|
|
1705
|
+
nodes {
|
|
1706
|
+
id
|
|
1707
|
+
name
|
|
1708
|
+
isVerifiedAtLeastOnce
|
|
1709
|
+
}
|
|
1710
|
+
totalCount
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
`;var Br=_graphqlrequest.gql`
|
|
1714
|
+
query TranscendCliUsers(
|
|
1715
|
+
$first: Int!
|
|
1716
|
+
$offset: Int!
|
|
1717
|
+
$input: UserFiltersInput
|
|
1718
|
+
) {
|
|
1719
|
+
users(
|
|
1720
|
+
first: $first
|
|
1721
|
+
offset: $offset
|
|
1722
|
+
filterBy: $input
|
|
1723
|
+
orderBy: [
|
|
1724
|
+
{ field: createdAt, direction: ASC }
|
|
1725
|
+
{ field: name, direction: ASC }
|
|
1726
|
+
]
|
|
1727
|
+
) {
|
|
1728
|
+
nodes {
|
|
1729
|
+
id
|
|
1730
|
+
name
|
|
1731
|
+
email
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
`;var Km=_graphqlrequest.gql`
|
|
1736
|
+
query TranscendCliRequestFiles(
|
|
1737
|
+
$first: Int!
|
|
1738
|
+
$offset: Int!
|
|
1739
|
+
$filterBy: RequestFileFiltersInput!
|
|
1740
|
+
) {
|
|
1741
|
+
requestFiles(
|
|
1742
|
+
filterBy: $filterBy
|
|
1743
|
+
first: $first
|
|
1744
|
+
offset: $offset
|
|
1745
|
+
orderBy: [
|
|
1746
|
+
{ field: createdAt, direction: ASC }
|
|
1747
|
+
{ field: id, direction: ASC }
|
|
1748
|
+
]
|
|
1749
|
+
) {
|
|
1750
|
+
nodes {
|
|
1751
|
+
remoteId
|
|
1752
|
+
fileName
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
`,Vr= exports.Ea =_graphqlrequest.gql`
|
|
1757
|
+
query TranscendCliBulkRequestFiles(
|
|
1758
|
+
$filterBy: BulkRequestFilesFiltersInput!
|
|
1759
|
+
$first: Int!
|
|
1760
|
+
$after: String
|
|
1761
|
+
) {
|
|
1762
|
+
bulkRequestFiles(filterBy: $filterBy, first: $first, after: $after) {
|
|
1763
|
+
nodes {
|
|
1764
|
+
remoteId
|
|
1765
|
+
fileName
|
|
1766
|
+
}
|
|
1767
|
+
pageInfo {
|
|
1768
|
+
hasNextPage
|
|
1769
|
+
endCursor
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
`;var Yr=_graphqlrequest.gql`
|
|
1774
|
+
mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
|
|
1775
|
+
reportPromptRun(input: $input) {
|
|
1776
|
+
clientMutationId
|
|
1777
|
+
promptRun {
|
|
1778
|
+
id
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
`,Zr= exports.Ga =_graphqlrequest.gql`
|
|
1783
|
+
mutation TranscendCliAddMessagesToPromptRun(
|
|
1784
|
+
$input: AddMessagesToPromptRunInput!
|
|
1785
|
+
) {
|
|
1786
|
+
addMessagesToPromptRun(input: $input) {
|
|
1787
|
+
clientMutationId
|
|
1788
|
+
promptRun {
|
|
1789
|
+
id
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
`;var Hr=_graphqlrequest.gql`
|
|
1794
|
+
query TranscendCliGlobalActionItemCollectionss(
|
|
1795
|
+
$filterBy: GlobalActionItemCollectionFiltersInput!
|
|
1796
|
+
) {
|
|
1797
|
+
globalActionItemCollections(filterBy: $filterBy) {
|
|
1798
|
+
nodes {
|
|
1799
|
+
id
|
|
1800
|
+
title
|
|
1801
|
+
description
|
|
1802
|
+
hidden
|
|
1803
|
+
productLine
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
`,Wr= exports.Ia =_graphqlrequest.gql`
|
|
1808
|
+
mutation TranscendCliCreateActionItemCollection(
|
|
1809
|
+
$input: CreateActionItemCollectionInput!
|
|
1810
|
+
) {
|
|
1811
|
+
createActionItemCollection(input: $input) {
|
|
1812
|
+
created {
|
|
1813
|
+
id
|
|
1814
|
+
title
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
`,zr= exports.Ja =_graphqlrequest.gql`
|
|
1819
|
+
mutation TranscendCliUpdateActionItemCollection(
|
|
1820
|
+
$input: UpdateActionItemCollectionInput!
|
|
1821
|
+
) {
|
|
1822
|
+
updateActionItemCollection(input: $input) {
|
|
1823
|
+
clientMutationId
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
`;var Jr=_graphqlrequest.gql`
|
|
1827
|
+
query TranscendCliAttributes($first: Int!, $offset: Int!) {
|
|
1828
|
+
attributeKeys(first: $first, offset: $offset, useMaster: false) {
|
|
1829
|
+
nodes {
|
|
1830
|
+
id
|
|
1831
|
+
isCustom
|
|
1832
|
+
description
|
|
1833
|
+
enabledOn
|
|
1834
|
+
name
|
|
1835
|
+
type
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
`,Xr= exports.La =_graphqlrequest.gql`
|
|
1840
|
+
mutation TranscendCliCreateAttributeValues(
|
|
1841
|
+
$input: [CreateAttributeValuesInput!]!
|
|
1842
|
+
) {
|
|
1843
|
+
createAttributeValues(input: $input) {
|
|
1844
|
+
clientMutationId
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
`,eo= exports.Ma =_graphqlrequest.gql`
|
|
1848
|
+
mutation TranscendCliUpdateAttributeValues(
|
|
1849
|
+
$input: [UpdateAttributeValueInput!]!
|
|
1850
|
+
) {
|
|
1851
|
+
updateAttributeValues(input: $input) {
|
|
1852
|
+
clientMutationId
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
`,to= exports.Na =_graphqlrequest.gql`
|
|
1856
|
+
mutation TranscendCliDeleteAttributeValue($id: ID!) {
|
|
1857
|
+
deleteAttributeValue(id: $id) {
|
|
1858
|
+
clientMutationId
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
`,io= exports.Oa =_graphqlrequest.gql`
|
|
1862
|
+
query TranscendCliAttributeValues(
|
|
1863
|
+
$first: Int!
|
|
1864
|
+
$offset: Int!
|
|
1865
|
+
$attributeKeyId: ID!
|
|
1866
|
+
) {
|
|
1867
|
+
attributeValues(
|
|
1868
|
+
first: $first
|
|
1869
|
+
offset: $offset
|
|
1870
|
+
useMaster: false
|
|
1871
|
+
filterBy: { attributeKeys: [$attributeKeyId] }
|
|
1872
|
+
) {
|
|
1873
|
+
nodes {
|
|
1874
|
+
id
|
|
1875
|
+
name
|
|
1876
|
+
description
|
|
1877
|
+
color
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
`,no= exports.Pa =_graphqlrequest.gql`
|
|
1882
|
+
mutation TranscendCliCreateAttribute(
|
|
1883
|
+
$name: String!
|
|
1884
|
+
$type: AttributeKeyType!
|
|
1885
|
+
$description: String
|
|
1886
|
+
$enabledOn: [AttributeSupportedResourceType!]
|
|
1887
|
+
) {
|
|
1888
|
+
createAttributeKey(
|
|
1889
|
+
input: {
|
|
1890
|
+
name: $name
|
|
1891
|
+
type: $type
|
|
1892
|
+
description: $description
|
|
1893
|
+
enabledOn: $enabledOn
|
|
1894
|
+
}
|
|
1895
|
+
) {
|
|
1896
|
+
clientMutationId
|
|
1897
|
+
attributeKey {
|
|
1898
|
+
id
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
`,ro= exports.Qa =_graphqlrequest.gql`
|
|
1903
|
+
mutation TranscendCliCreateAttribute(
|
|
1904
|
+
$attributeKeyId: ID!
|
|
1905
|
+
$description: String
|
|
1906
|
+
$enabledOn: [AttributeSupportedResourceType!]
|
|
1907
|
+
) {
|
|
1908
|
+
updateAttributeKey(
|
|
1909
|
+
input: {
|
|
1910
|
+
id: $attributeKeyId
|
|
1911
|
+
description: $description
|
|
1912
|
+
enabledOn: $enabledOn
|
|
1913
|
+
}
|
|
1914
|
+
) {
|
|
1915
|
+
clientMutationId
|
|
1916
|
+
attributeKey {
|
|
1917
|
+
id
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
`,oo= exports.Ra =_graphqlrequest.gql`
|
|
1922
|
+
mutation TranscendCliSetResourceAttributes(
|
|
1923
|
+
$input: SetResourceAttributesInput!
|
|
1924
|
+
) {
|
|
1925
|
+
setResourceAttributes(input: $input) {
|
|
1926
|
+
clientMutationId
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
`;var so=_graphqlrequest.gql`
|
|
1930
|
+
query TranscendCliExperiences($first: Int!, $offset: Int!) {
|
|
1931
|
+
experiences(first: $first, offset: $offset, useMaster: false) {
|
|
1932
|
+
nodes {
|
|
1933
|
+
id
|
|
1934
|
+
name
|
|
1935
|
+
displayName
|
|
1936
|
+
regions {
|
|
1937
|
+
countrySubDivision
|
|
1938
|
+
country
|
|
1939
|
+
}
|
|
1940
|
+
operator
|
|
1941
|
+
displayPriority
|
|
1942
|
+
onConsentExpiry
|
|
1943
|
+
consentExpiry
|
|
1944
|
+
viewState
|
|
1945
|
+
purposes {
|
|
1946
|
+
name
|
|
1947
|
+
trackingType
|
|
1948
|
+
}
|
|
1949
|
+
optedOutPurposes {
|
|
1950
|
+
name
|
|
1951
|
+
trackingType
|
|
1952
|
+
}
|
|
1953
|
+
browserLanguages
|
|
1954
|
+
browserTimeZones
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
`,ao= exports.Ta =_graphqlrequest.gql`
|
|
1959
|
+
query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
|
|
1960
|
+
consentPartitions(first: $first, offset: $offset) {
|
|
1961
|
+
nodes {
|
|
1962
|
+
id
|
|
1963
|
+
name
|
|
1964
|
+
partition
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
`,po= exports.Ua =_graphqlrequest.gql`
|
|
1969
|
+
mutation TranscendCliCreateDataFlows(
|
|
1970
|
+
$dataFlows: [DataFlowInput!]!
|
|
1971
|
+
$airgapBundleId: ID!
|
|
1972
|
+
$classifyService: Boolean
|
|
1973
|
+
) {
|
|
1974
|
+
createDataFlows(
|
|
1975
|
+
input: {
|
|
1976
|
+
airgapBundleId: $airgapBundleId
|
|
1977
|
+
dataFlows: $dataFlows
|
|
1978
|
+
classifyService: $classifyService
|
|
1979
|
+
}
|
|
1980
|
+
) {
|
|
1981
|
+
dataFlows {
|
|
1982
|
+
id
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
`,lo= exports.Va =_graphqlrequest.gql`
|
|
1987
|
+
mutation TranscendCliUpdateDataFlows(
|
|
1988
|
+
$airgapBundleId: ID!
|
|
1989
|
+
$dataFlows: [UpdateDataFlowInput!]!
|
|
1990
|
+
$classifyService: Boolean
|
|
1991
|
+
) {
|
|
1992
|
+
updateDataFlows(
|
|
1993
|
+
input: {
|
|
1994
|
+
airgapBundleId: $airgapBundleId
|
|
1995
|
+
dataFlows: $dataFlows
|
|
1996
|
+
classifyService: $classifyService
|
|
1997
|
+
}
|
|
1998
|
+
) {
|
|
1999
|
+
dataFlows {
|
|
2000
|
+
id
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
`,co= exports.Wa =_graphqlrequest.gql`
|
|
2005
|
+
mutation TranscendCliUpdateOrCreateCookies(
|
|
2006
|
+
$cookies: [UpdateOrCreateCookieInput!]!
|
|
2007
|
+
$airgapBundleId: ID!
|
|
2008
|
+
) {
|
|
2009
|
+
updateOrCreateCookies(
|
|
2010
|
+
input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
|
|
2011
|
+
) {
|
|
2012
|
+
clientMutationId
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
`,mo= exports.Xa =_graphqlrequest.gql`
|
|
2016
|
+
query TranscendCliDataFlows(
|
|
2017
|
+
$first: Int!
|
|
2018
|
+
$airgapBundleId: ID!
|
|
2019
|
+
$offset: Int!
|
|
2020
|
+
$status: ConsentTrackerStatus
|
|
2021
|
+
$showZeroActivity: Boolean
|
|
2022
|
+
) {
|
|
2023
|
+
dataFlows(
|
|
2024
|
+
first: $first
|
|
2025
|
+
offset: $offset
|
|
2026
|
+
filterBy: { status: $status, showZeroActivity: $showZeroActivity }
|
|
2027
|
+
input: { airgapBundleId: $airgapBundleId }
|
|
2028
|
+
orderBy: [
|
|
2029
|
+
{ field: createdAt, direction: ASC }
|
|
2030
|
+
{ field: value, direction: ASC }
|
|
2031
|
+
]
|
|
2032
|
+
useMaster: false
|
|
2033
|
+
) {
|
|
2034
|
+
nodes {
|
|
2035
|
+
id
|
|
2036
|
+
value
|
|
2037
|
+
type
|
|
2038
|
+
description
|
|
2039
|
+
trackingType
|
|
2040
|
+
service {
|
|
2041
|
+
integrationName
|
|
2042
|
+
}
|
|
2043
|
+
source
|
|
2044
|
+
status
|
|
2045
|
+
owners {
|
|
2046
|
+
email
|
|
2047
|
+
}
|
|
2048
|
+
teams {
|
|
2049
|
+
name
|
|
2050
|
+
}
|
|
2051
|
+
attributeValues {
|
|
2052
|
+
name
|
|
2053
|
+
attributeKey {
|
|
2054
|
+
name
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
`,uo= exports.Ya =_graphqlrequest.gql`
|
|
2061
|
+
query TranscendCliCookies(
|
|
2062
|
+
$first: Int!
|
|
2063
|
+
$offset: Int!
|
|
2064
|
+
$airgapBundleId: ID!
|
|
2065
|
+
$status: ConsentTrackerStatus
|
|
2066
|
+
) {
|
|
2067
|
+
cookies(
|
|
2068
|
+
first: $first
|
|
2069
|
+
offset: $offset
|
|
2070
|
+
filterBy: { status: $status }
|
|
2071
|
+
input: { airgapBundleId: $airgapBundleId }
|
|
2072
|
+
orderBy: [
|
|
2073
|
+
{ field: createdAt, direction: ASC }
|
|
2074
|
+
{ field: name, direction: ASC }
|
|
2075
|
+
]
|
|
2076
|
+
useMaster: false
|
|
2077
|
+
) {
|
|
2078
|
+
nodes {
|
|
2079
|
+
id
|
|
2080
|
+
name
|
|
2081
|
+
isRegex
|
|
2082
|
+
description
|
|
2083
|
+
trackingPurposes
|
|
2084
|
+
service {
|
|
2085
|
+
integrationName
|
|
2086
|
+
}
|
|
2087
|
+
source
|
|
2088
|
+
status
|
|
2089
|
+
owners {
|
|
2090
|
+
email
|
|
2091
|
+
}
|
|
2092
|
+
teams {
|
|
2093
|
+
name
|
|
2094
|
+
}
|
|
2095
|
+
attributeValues {
|
|
2096
|
+
name
|
|
2097
|
+
attributeKey {
|
|
2098
|
+
name
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
`,fo= exports.Za =_graphqlrequest.gql`
|
|
2105
|
+
query TranscendCliFetchConsentManagerId {
|
|
2106
|
+
consentManager {
|
|
2107
|
+
consentManager {
|
|
2108
|
+
id
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
`,go= exports._a =_graphqlrequest.gql`
|
|
2113
|
+
query TranscendCliFetchConsentManager {
|
|
2114
|
+
consentManager {
|
|
2115
|
+
consentManager {
|
|
2116
|
+
id
|
|
2117
|
+
bundleURL
|
|
2118
|
+
testBundleURL
|
|
2119
|
+
configuration {
|
|
2120
|
+
domains
|
|
2121
|
+
consentPrecedence
|
|
2122
|
+
unknownRequestPolicy
|
|
2123
|
+
unknownCookiePolicy
|
|
2124
|
+
syncEndpoint
|
|
2125
|
+
telemetryPartitioning
|
|
2126
|
+
signedIabAgreement
|
|
2127
|
+
syncGroups
|
|
2128
|
+
partition
|
|
2129
|
+
}
|
|
2130
|
+
partition {
|
|
2131
|
+
partition
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
`,yo= exports.$a =_graphqlrequest.gql`
|
|
2137
|
+
query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
|
|
2138
|
+
consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
|
|
2139
|
+
theme {
|
|
2140
|
+
primaryColor
|
|
2141
|
+
fontColor
|
|
2142
|
+
privacyPolicy
|
|
2143
|
+
prompt
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
`,Co= exports.ab =_graphqlrequest.gql`
|
|
2148
|
+
mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
|
|
2149
|
+
createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
|
|
2150
|
+
consentManager {
|
|
2151
|
+
id
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
`,ho= exports.bb =_graphqlrequest.gql`
|
|
2156
|
+
mutation TranscendCliUpdateConsentManager(
|
|
2157
|
+
$airgapBundleId: ID!
|
|
2158
|
+
$version: String!
|
|
2159
|
+
) {
|
|
2160
|
+
updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
|
|
2161
|
+
clientMutationId
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
`,Io= exports.cb =_graphqlrequest.gql`
|
|
2165
|
+
mutation TranscendCliUpdateConsentManagerToLatest(
|
|
2166
|
+
$airgapBundleId: ID!
|
|
2167
|
+
$bundleType: ConsentBundleType!
|
|
2168
|
+
) {
|
|
2169
|
+
updateConsentManagerToLatestVersion(
|
|
2170
|
+
id: $airgapBundleId
|
|
2171
|
+
input: { bundleType: $bundleType }
|
|
2172
|
+
) {
|
|
2173
|
+
clientMutationId
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
`,Ao= exports.db =_graphqlrequest.gql`
|
|
2177
|
+
mutation TranscendCliDeployConsentManager(
|
|
2178
|
+
$airgapBundleId: ID!
|
|
2179
|
+
$bundleType: ConsentBundleType!
|
|
2180
|
+
) {
|
|
2181
|
+
deployConsentManagerBundle(
|
|
2182
|
+
id: $airgapBundleId
|
|
2183
|
+
input: { bundleType: $bundleType }
|
|
2184
|
+
) {
|
|
2185
|
+
clientMutationId
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
`,Po= exports.eb =_graphqlrequest.gql`
|
|
2189
|
+
mutation TranscendCliUpdateConsentManagerDomains(
|
|
2190
|
+
$airgapBundleId: ID!
|
|
2191
|
+
$domains: [String!]!
|
|
2192
|
+
) {
|
|
2193
|
+
updateConsentManagerDomains(
|
|
2194
|
+
input: { id: $airgapBundleId, domains: $domains }
|
|
2195
|
+
) {
|
|
2196
|
+
clientMutationId
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
`,So= exports.fb =_graphqlrequest.gql`
|
|
2200
|
+
mutation TranscendCliUpdateConsentManagerPartition(
|
|
2201
|
+
$airgapBundleId: ID!
|
|
2202
|
+
$partitionId: ID!
|
|
2203
|
+
) {
|
|
2204
|
+
updateConsentManagerPartition(
|
|
2205
|
+
input: { id: $airgapBundleId, partitionId: $partitionId }
|
|
2206
|
+
) {
|
|
2207
|
+
clientMutationId
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
`,To= exports.gb =_graphqlrequest.gql`
|
|
2211
|
+
mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
|
|
2212
|
+
updateLoadOptions(input: $input) {
|
|
2213
|
+
clientMutationId
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
`,Eo= exports.hb =_graphqlrequest.gql`
|
|
2217
|
+
mutation TranscendCliToggleUnknownRequestPolicy(
|
|
2218
|
+
$input: ToggleUnknownRequestPolicyInput!
|
|
2219
|
+
) {
|
|
2220
|
+
toggleUnknownRequestPolicy(input: $input) {
|
|
2221
|
+
clientMutationId
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
`,Ro= exports.ib =_graphqlrequest.gql`
|
|
2225
|
+
mutation TranscendCliToggleUnknownCookiePolicy(
|
|
2226
|
+
$input: ToggleUnknownCookiePolicyInput!
|
|
2227
|
+
) {
|
|
2228
|
+
toggleUnknownCookiePolicy(input: $input) {
|
|
2229
|
+
clientMutationId
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
`,$o= exports.jb =_graphqlrequest.gql`
|
|
2233
|
+
mutation TranscendCliToggleTelemetryPartitionStrategy(
|
|
2234
|
+
$input: ToggleTelemetryPartitionStrategyInput!
|
|
2235
|
+
) {
|
|
2236
|
+
toggleTelemetryPartitioning(input: $input) {
|
|
2237
|
+
clientMutationId
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
`,wo= exports.kb =_graphqlrequest.gql`
|
|
2241
|
+
mutation TranscendCliToggleConsentPrecedence(
|
|
2242
|
+
$input: ToggleConsentPrecedenceInput!
|
|
2243
|
+
) {
|
|
2244
|
+
toggleConsentPrecedence(input: $input) {
|
|
2245
|
+
clientMutationId
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
`,bo= exports.lb =_graphqlrequest.gql`
|
|
2249
|
+
mutation TranscendCliUpdateConsentManagerTheme(
|
|
2250
|
+
$input: UpdateConsentManagerThemeInput!
|
|
2251
|
+
) {
|
|
2252
|
+
updateConsentManagerTheme(input: $input) {
|
|
2253
|
+
clientMutationId
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
`,xo= exports.mb =_graphqlrequest.gql`
|
|
2257
|
+
mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
|
|
2258
|
+
updateExperience(input: $input) {
|
|
2259
|
+
clientMutationId
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
`,Do= exports.nb =_graphqlrequest.gql`
|
|
2263
|
+
mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
|
|
2264
|
+
createExperience(input: $input) {
|
|
2265
|
+
clientMutationId
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
`,Lo= exports.ob =_graphqlrequest.gql`
|
|
2269
|
+
mutation TranscendCliCreateConsentPartition(
|
|
2270
|
+
$input: CreateConsentPartitionInput!
|
|
2271
|
+
) {
|
|
2272
|
+
createConsentPartition(input: $input) {
|
|
2273
|
+
clientMutationId
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
`;var ko=_graphqlrequest.gql`
|
|
2277
|
+
query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
|
|
2278
|
+
analyticsData(input: $input) {
|
|
2279
|
+
series {
|
|
2280
|
+
name
|
|
2281
|
+
points {
|
|
2282
|
+
key
|
|
2283
|
+
value
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
`;var _o=_graphqlrequest.gql`
|
|
2289
|
+
query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
|
|
2290
|
+
businessEntities(
|
|
2291
|
+
first: $first
|
|
2292
|
+
offset: $offset
|
|
2293
|
+
orderBy: [
|
|
2294
|
+
{ field: createdAt, direction: ASC }
|
|
2295
|
+
{ field: title, direction: ASC }
|
|
2296
|
+
]
|
|
2297
|
+
useMaster: false
|
|
2298
|
+
) {
|
|
2299
|
+
nodes {
|
|
2300
|
+
id
|
|
2301
|
+
title
|
|
2302
|
+
description
|
|
2303
|
+
dataProtectionOfficerName
|
|
2304
|
+
dataProtectionOfficerEmail
|
|
2305
|
+
address
|
|
2306
|
+
headquarterCountry
|
|
2307
|
+
headquarterSubDivision
|
|
2308
|
+
attributeValues {
|
|
2309
|
+
name
|
|
2310
|
+
attributeKey {
|
|
2311
|
+
name
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
`,Go= exports.rb =_graphqlrequest.gql`
|
|
2318
|
+
mutation TranscendCliCreateBusinessEntity(
|
|
2319
|
+
$input: CreateBusinessEntityInput!
|
|
2320
|
+
) {
|
|
2321
|
+
createBusinessEntity(input: $input) {
|
|
2322
|
+
businessEntity {
|
|
2323
|
+
id
|
|
2324
|
+
title
|
|
2325
|
+
description
|
|
2326
|
+
dataProtectionOfficerName
|
|
2327
|
+
dataProtectionOfficerEmail
|
|
2328
|
+
address
|
|
2329
|
+
headquarterCountry
|
|
2330
|
+
headquarterSubDivision
|
|
2331
|
+
attributeValues {
|
|
2332
|
+
name
|
|
2333
|
+
attributeKey {
|
|
2334
|
+
name
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
`,vo= exports.sb =_graphqlrequest.gql`
|
|
2341
|
+
mutation TranscendCliUpdateBusinessEntities(
|
|
2342
|
+
$input: [UpdateBusinessEntityInput!]!
|
|
2343
|
+
) {
|
|
2344
|
+
updateBusinessEntities(input: { businessEntities: $input }) {
|
|
2345
|
+
clientMutationId
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
`;var Oo=_graphqlrequest.gql`
|
|
2349
|
+
query TranscendCliActions($first: Int!, $offset: Int!) {
|
|
2350
|
+
actions(
|
|
2351
|
+
first: $first
|
|
2352
|
+
offset: $offset
|
|
2353
|
+
useMaster: false
|
|
2354
|
+
orderBy: [{ field: type, direction: ASC }]
|
|
2355
|
+
) {
|
|
2356
|
+
nodes {
|
|
2357
|
+
id
|
|
2358
|
+
type
|
|
2359
|
+
skipSecondaryIfNoFiles
|
|
2360
|
+
skipDownloadableStep
|
|
2361
|
+
requiresReview
|
|
2362
|
+
regionList
|
|
2363
|
+
regionDetectionMethod
|
|
2364
|
+
waitingPeriod
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
`,No= exports.ub =_graphqlrequest.gql`
|
|
2369
|
+
mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
|
|
2370
|
+
updateAction(input: $input) {
|
|
2371
|
+
clientMutationId
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
`;var Mo=_graphqlrequest.gql`
|
|
2375
|
+
query TranscendCliGlobalActionItems(
|
|
2376
|
+
$first: Int!
|
|
2377
|
+
$offset: Int!
|
|
2378
|
+
$filterBy: GlobalActionItemFiltersInput!
|
|
2379
|
+
) {
|
|
2380
|
+
globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
|
|
2381
|
+
nodes {
|
|
2382
|
+
ids
|
|
2383
|
+
count
|
|
2384
|
+
teams {
|
|
2385
|
+
id
|
|
2386
|
+
name
|
|
2387
|
+
}
|
|
2388
|
+
customerExperienceActionItemIds
|
|
2389
|
+
users {
|
|
2390
|
+
id
|
|
2391
|
+
email
|
|
2392
|
+
}
|
|
2393
|
+
collections {
|
|
2394
|
+
title
|
|
2395
|
+
id
|
|
2396
|
+
}
|
|
2397
|
+
dueDate
|
|
2398
|
+
priority
|
|
2399
|
+
titles
|
|
2400
|
+
resolved
|
|
2401
|
+
notes
|
|
2402
|
+
links
|
|
2403
|
+
type
|
|
2404
|
+
additionalContexts {
|
|
2405
|
+
iconOverride
|
|
2406
|
+
requestId
|
|
2407
|
+
dataSiloId
|
|
2408
|
+
requestType
|
|
2409
|
+
latestAirgapVersion
|
|
2410
|
+
parentTitle
|
|
2411
|
+
}
|
|
2412
|
+
attributeValues {
|
|
2413
|
+
name
|
|
2414
|
+
attributeKey {
|
|
2415
|
+
name
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
`,Uo= exports.wb =_graphqlrequest.gql`
|
|
2422
|
+
mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
|
|
2423
|
+
updateActionItems(input: $input) {
|
|
2424
|
+
clientMutationId
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
`,Fo= exports.xb =_graphqlrequest.gql`
|
|
2428
|
+
mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
|
|
2429
|
+
createActionItems(input: $input) {
|
|
2430
|
+
clientMutationId
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
`;var Qo=_graphqlrequest.gql`
|
|
2434
|
+
query TranscendCliFetchPrivacyCenterId($url: String!) {
|
|
2435
|
+
privacyCenter(lookup: { url: $url }) {
|
|
2436
|
+
id
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
`,Bo= exports.zb =_graphqlrequest.gql`
|
|
2440
|
+
query TranscendCliDeployedPrivacyCenterUrl {
|
|
2441
|
+
organization {
|
|
2442
|
+
deployedPrivacyCenterUrl
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
`,Ko= exports.Ab =_graphqlrequest.gql`
|
|
2446
|
+
query TranscendCliFetchPrivacyCenters($url: String!) {
|
|
2447
|
+
privacyCenter(lookup: { url: $url }) {
|
|
2448
|
+
id
|
|
2449
|
+
url
|
|
2450
|
+
isDisabled
|
|
2451
|
+
showPrivacyRequestButton
|
|
2452
|
+
showPolicies
|
|
2453
|
+
showTrackingTechnologies
|
|
2454
|
+
showCookies
|
|
2455
|
+
showDataFlows
|
|
2456
|
+
showConsentManager
|
|
2457
|
+
showManageYourPrivacy
|
|
2458
|
+
showMarketingPreferences
|
|
2459
|
+
locales
|
|
2460
|
+
defaultLocale
|
|
2461
|
+
preferBrowserDefaultLocale
|
|
2462
|
+
supportEmail
|
|
2463
|
+
replyToEmail
|
|
2464
|
+
useNoReplyEmailAddress
|
|
2465
|
+
useCustomEmailDomain
|
|
2466
|
+
transformAccessReportJsonToCsv
|
|
2467
|
+
themeStr
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
`,Vo= exports.Bb =_graphqlrequest.gql`
|
|
2471
|
+
mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
|
|
2472
|
+
updatePrivacyCenter(input: $input) {
|
|
2473
|
+
clientMutationId
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
`;var gi=_graphqlrequest.gql`
|
|
2477
|
+
mutation TranscendCliDetermineLoginMethod($email: String!) {
|
|
2478
|
+
determineLoginMethod(input: { email: $email }) {
|
|
2479
|
+
loginMethod {
|
|
2480
|
+
email
|
|
2481
|
+
sombraPublicKey
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
`,jo= exports.Db =_graphqlrequest.gql`
|
|
2486
|
+
mutation TranscendCliLogin(
|
|
2487
|
+
$email: String!
|
|
2488
|
+
$password: String!
|
|
2489
|
+
$publicKey: String!
|
|
2490
|
+
) {
|
|
2491
|
+
login(
|
|
2492
|
+
input: { email: $email, password: $password }
|
|
2493
|
+
publicKey: $publicKey
|
|
2494
|
+
) {
|
|
2495
|
+
user {
|
|
2496
|
+
roles {
|
|
2497
|
+
id
|
|
2498
|
+
organization {
|
|
2499
|
+
name
|
|
2500
|
+
id
|
|
2501
|
+
uri
|
|
2502
|
+
parentOrganizationId
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
`,Yo= exports.Eb =_graphqlrequest.gql`
|
|
2509
|
+
mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
|
|
2510
|
+
assumeRole(id: $id, publicKey: $publicKey) {
|
|
2511
|
+
clientMutationId
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
`;var du=_graphqlrequest.gql`
|
|
2515
|
+
query TranscendCliLargeLanguageModels(
|
|
2516
|
+
$first: Int!
|
|
2517
|
+
$offset: Int!
|
|
2518
|
+
$filterBy: LargeLanguageModelFiltersInput
|
|
2519
|
+
) {
|
|
2520
|
+
largeLanguageModels(
|
|
2521
|
+
first: $first
|
|
2522
|
+
orderBy: [
|
|
2523
|
+
{ field: name, direction: ASC }
|
|
2524
|
+
{ field: client, direction: ASC }
|
|
2525
|
+
{ field: isTranscendHosted, direction: ASC }
|
|
2526
|
+
]
|
|
2527
|
+
offset: $offset
|
|
2528
|
+
filterBy: $filterBy
|
|
2529
|
+
) {
|
|
2530
|
+
nodes {
|
|
2531
|
+
id
|
|
2532
|
+
name
|
|
2533
|
+
client
|
|
2534
|
+
isTranscendHosted
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
`;var Zo=_graphqlrequest.gql`
|
|
2539
|
+
query TranscendCliAgents(
|
|
2540
|
+
$first: Int!
|
|
2541
|
+
$offset: Int!
|
|
2542
|
+
$filterBy: AgentFiltersInput
|
|
2543
|
+
) {
|
|
2544
|
+
agents(
|
|
2545
|
+
first: $first
|
|
2546
|
+
offset: $offset
|
|
2547
|
+
filterBy: $filterBy
|
|
2548
|
+
orderBy: [
|
|
2549
|
+
{ field: createdAt, direction: ASC }
|
|
2550
|
+
{ field: name, direction: ASC }
|
|
2551
|
+
]
|
|
2552
|
+
) {
|
|
2553
|
+
nodes {
|
|
2554
|
+
id
|
|
2555
|
+
name
|
|
2556
|
+
agentId
|
|
2557
|
+
instructions
|
|
2558
|
+
description
|
|
2559
|
+
codeInterpreterEnabled
|
|
2560
|
+
retrievalEnabled
|
|
2561
|
+
prompt {
|
|
2562
|
+
title
|
|
2563
|
+
}
|
|
2564
|
+
largeLanguageModel {
|
|
2565
|
+
name
|
|
2566
|
+
client
|
|
2567
|
+
}
|
|
2568
|
+
teams {
|
|
2569
|
+
name
|
|
2570
|
+
}
|
|
2571
|
+
owners {
|
|
2572
|
+
email
|
|
2573
|
+
}
|
|
2574
|
+
agentFunctions {
|
|
2575
|
+
name
|
|
2576
|
+
}
|
|
2577
|
+
agentFiles {
|
|
2578
|
+
name
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
`,Ho= exports.Hb =_graphqlrequest.gql`
|
|
2584
|
+
mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
|
|
2585
|
+
createAgent(input: $input) {
|
|
2586
|
+
agent {
|
|
2587
|
+
id
|
|
2588
|
+
name
|
|
2589
|
+
agentId
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
`,Wo= exports.Ib =_graphqlrequest.gql`
|
|
2594
|
+
mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
|
|
2595
|
+
updateAgents(input: $input) {
|
|
2596
|
+
clientMutationId
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
`;var zo=_graphqlrequest.gql`
|
|
2600
|
+
query TranscendCliAgentFiles(
|
|
2601
|
+
$first: Int!
|
|
2602
|
+
$offset: Int!
|
|
2603
|
+
$filterBy: AgentFileFiltersInput
|
|
2604
|
+
) {
|
|
2605
|
+
agentFiles(
|
|
2606
|
+
first: $first
|
|
2607
|
+
offset: $offset
|
|
2608
|
+
filterBy: $filterBy
|
|
2609
|
+
orderBy: [
|
|
2610
|
+
{ field: createdAt, direction: ASC }
|
|
2611
|
+
{ field: name, direction: ASC }
|
|
2612
|
+
]
|
|
2613
|
+
) {
|
|
2614
|
+
nodes {
|
|
2615
|
+
id
|
|
2616
|
+
name
|
|
2617
|
+
description
|
|
2618
|
+
fileId
|
|
2619
|
+
size
|
|
2620
|
+
purpose
|
|
2621
|
+
initialFileName
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
`,Jo= exports.Kb =_graphqlrequest.gql`
|
|
2626
|
+
mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
|
|
2627
|
+
createAgentFile(input: $input) {
|
|
2628
|
+
agentFile {
|
|
2629
|
+
id
|
|
2630
|
+
name
|
|
2631
|
+
fileId
|
|
2632
|
+
initialFileName
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
`,Xo= exports.Lb =_graphqlrequest.gql`
|
|
2637
|
+
mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
|
|
2638
|
+
updateAgentFiles(input: $input) {
|
|
2639
|
+
clientMutationId
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
`;var es=_graphqlrequest.gql`
|
|
2643
|
+
query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
|
|
2644
|
+
agentFunctions(
|
|
2645
|
+
first: $first
|
|
2646
|
+
offset: $offset
|
|
2647
|
+
orderBy: [
|
|
2648
|
+
{ field: createdAt, direction: ASC }
|
|
2649
|
+
{ field: name, direction: ASC }
|
|
2650
|
+
]
|
|
2651
|
+
) {
|
|
2652
|
+
nodes {
|
|
2653
|
+
id
|
|
2654
|
+
name
|
|
2655
|
+
description
|
|
2656
|
+
parameters
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
`,ts= exports.Nb =_graphqlrequest.gql`
|
|
2661
|
+
mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
|
|
2662
|
+
createAgentFunction(input: $input) {
|
|
2663
|
+
agentFunction {
|
|
2664
|
+
id
|
|
2665
|
+
name
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
`,is= exports.Ob =_graphqlrequest.gql`
|
|
2670
|
+
mutation TranscendCliUpdateAgentFunctions(
|
|
2671
|
+
$input: UpdateAgentFunctionsInput!
|
|
2672
|
+
) {
|
|
2673
|
+
updateAgentFunctions(input: $input) {
|
|
2674
|
+
clientMutationId
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
`;var ns=_graphqlrequest.gql`
|
|
2678
|
+
query TranscendCliVendors($first: Int!, $offset: Int!) {
|
|
2679
|
+
vendors(
|
|
2680
|
+
first: $first
|
|
2681
|
+
offset: $offset
|
|
2682
|
+
useMaster: false
|
|
2683
|
+
isExportCsv: true
|
|
2684
|
+
orderBy: [
|
|
2685
|
+
{ field: createdAt, direction: ASC }
|
|
2686
|
+
{ field: title, direction: ASC }
|
|
2687
|
+
]
|
|
2688
|
+
) {
|
|
2689
|
+
nodes {
|
|
2690
|
+
id
|
|
2691
|
+
title
|
|
2692
|
+
description
|
|
2693
|
+
dataProcessingAgreementLink
|
|
2694
|
+
contactName
|
|
2695
|
+
contactEmail
|
|
2696
|
+
contactPhone
|
|
2697
|
+
address
|
|
2698
|
+
headquarterCountry
|
|
2699
|
+
headquarterSubDivision
|
|
2700
|
+
websiteUrl
|
|
2701
|
+
businessEntity {
|
|
2702
|
+
title
|
|
2703
|
+
}
|
|
2704
|
+
teams {
|
|
2705
|
+
name
|
|
2706
|
+
}
|
|
2707
|
+
owners {
|
|
2708
|
+
email
|
|
2709
|
+
}
|
|
2710
|
+
attributeValues {
|
|
2711
|
+
attributeKey {
|
|
2712
|
+
name
|
|
2713
|
+
}
|
|
2714
|
+
name
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
`,rs= exports.Qb =_graphqlrequest.gql`
|
|
2720
|
+
mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
|
|
2721
|
+
createVendor(input: $input) {
|
|
2722
|
+
vendor {
|
|
2723
|
+
id
|
|
2724
|
+
title
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
`,os= exports.Rb =_graphqlrequest.gql`
|
|
2729
|
+
mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
|
|
2730
|
+
updateVendors(input: $input) {
|
|
2731
|
+
clientMutationId
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
`;var ss=_graphqlrequest.gql`
|
|
2735
|
+
query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
|
|
2736
|
+
dataSubCategories(
|
|
2737
|
+
first: $first
|
|
2738
|
+
offset: $offset
|
|
2739
|
+
isExportCsv: true
|
|
2740
|
+
useMaster: false
|
|
2741
|
+
) {
|
|
2742
|
+
nodes {
|
|
2743
|
+
id
|
|
2744
|
+
name
|
|
2745
|
+
category
|
|
2746
|
+
description
|
|
2747
|
+
regex
|
|
2748
|
+
teams {
|
|
2749
|
+
name
|
|
2750
|
+
}
|
|
2751
|
+
owners {
|
|
2752
|
+
email
|
|
2753
|
+
}
|
|
2754
|
+
attributeValues {
|
|
2755
|
+
attributeKey {
|
|
2756
|
+
name
|
|
2757
|
+
}
|
|
2758
|
+
name
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
`,as= exports.Tb =_graphqlrequest.gql`
|
|
2764
|
+
mutation TranscendCliCreateDataSubCategory(
|
|
2765
|
+
$input: CreateDataInventorySubCategoryInput!
|
|
2766
|
+
) {
|
|
2767
|
+
createDataSubCategory(input: $input) {
|
|
2768
|
+
dataSubCategory {
|
|
2769
|
+
id
|
|
2770
|
+
name
|
|
2771
|
+
category
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
`,ps= exports.Ub =_graphqlrequest.gql`
|
|
2776
|
+
mutation TranscendCliUpdateDataSubCategories(
|
|
2777
|
+
$input: UpdateDataSubCategoriesInput!
|
|
2778
|
+
) {
|
|
2779
|
+
updateDataSubCategories(input: $input) {
|
|
2780
|
+
clientMutationId
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
`;var ls=_graphqlrequest.gql`
|
|
2784
|
+
query TranscendCliProcessingPurposeSubCategories(
|
|
2785
|
+
$first: Int!
|
|
2786
|
+
$offset: Int!
|
|
2787
|
+
) {
|
|
2788
|
+
processingPurposeSubCategories(
|
|
2789
|
+
first: $first
|
|
2790
|
+
offset: $offset
|
|
2791
|
+
isExportCsv: true
|
|
2792
|
+
useMaster: false
|
|
2793
|
+
) {
|
|
2794
|
+
nodes {
|
|
2795
|
+
id
|
|
2796
|
+
name
|
|
2797
|
+
purpose
|
|
2798
|
+
description
|
|
2799
|
+
teams {
|
|
2800
|
+
name
|
|
2801
|
+
}
|
|
2802
|
+
owners {
|
|
2803
|
+
email
|
|
2804
|
+
}
|
|
2805
|
+
attributeValues {
|
|
2806
|
+
attributeKey {
|
|
2807
|
+
name
|
|
2808
|
+
}
|
|
2809
|
+
name
|
|
2810
|
+
}
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
`,cs= exports.Wb =_graphqlrequest.gql`
|
|
2815
|
+
mutation TranscendCliCreateProcessingPurposeSubCategory(
|
|
2816
|
+
$input: CreateProcessingPurposeCategoryInput!
|
|
2817
|
+
) {
|
|
2818
|
+
createProcessingPurposeSubCategory(input: $input) {
|
|
2819
|
+
processingPurposeSubCategory {
|
|
2820
|
+
id
|
|
2821
|
+
name
|
|
2822
|
+
purpose
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
`,ms= exports.Xb =_graphqlrequest.gql`
|
|
2827
|
+
mutation TranscendCliUpdateProcessingPurposeSubCategories(
|
|
2828
|
+
$input: UpdateProcessingPurposeSubCategoriesInput!
|
|
2829
|
+
) {
|
|
2830
|
+
updateProcessingPurposeSubCategories(input: $input) {
|
|
2831
|
+
clientMutationId
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
`;var us=_graphqlrequest.gql`
|
|
2835
|
+
query TranscendCliProcessingActivities($first: Int!, $offset: Int!) {
|
|
2836
|
+
processingActivities(first: $first, offset: $offset, useMaster: false) {
|
|
2837
|
+
nodes {
|
|
2838
|
+
id
|
|
2839
|
+
title
|
|
2840
|
+
description
|
|
2841
|
+
securityMeasureDetails
|
|
2842
|
+
controllerships
|
|
2843
|
+
storageRegions {
|
|
2844
|
+
countrySubDivision
|
|
2845
|
+
country
|
|
2846
|
+
}
|
|
2847
|
+
transferRegions {
|
|
2848
|
+
countrySubDivision
|
|
2849
|
+
country
|
|
2850
|
+
}
|
|
2851
|
+
retentionType
|
|
2852
|
+
retentionPeriod
|
|
2853
|
+
dataProtectionImpactAssessmentLink
|
|
2854
|
+
dataProtectionImpactAssessmentStatus
|
|
2855
|
+
attributeValues {
|
|
2856
|
+
name
|
|
2857
|
+
attributeKey {
|
|
2858
|
+
name
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
dataSilos {
|
|
2862
|
+
title
|
|
2863
|
+
}
|
|
2864
|
+
dataSubjects {
|
|
2865
|
+
type
|
|
2866
|
+
}
|
|
2867
|
+
teams {
|
|
2868
|
+
name
|
|
2869
|
+
}
|
|
2870
|
+
owners {
|
|
2871
|
+
email
|
|
2872
|
+
}
|
|
2873
|
+
processingPurposeSubCategories {
|
|
2874
|
+
name
|
|
2875
|
+
purpose
|
|
2876
|
+
}
|
|
2877
|
+
dataSubCategories {
|
|
2878
|
+
name
|
|
2879
|
+
category
|
|
2880
|
+
}
|
|
2881
|
+
saaSCategories {
|
|
2882
|
+
title
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
`,ds= exports.Zb =_graphqlrequest.gql`
|
|
2888
|
+
mutation TranscendCliCreateProcessingActivity(
|
|
2889
|
+
$input: CreateProcessingActivityInput!
|
|
2890
|
+
) {
|
|
2891
|
+
createProcessingActivity(input: $input) {
|
|
2892
|
+
processingActivity {
|
|
2893
|
+
id
|
|
2894
|
+
title
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
`,fs= exports._b =_graphqlrequest.gql`
|
|
2899
|
+
mutation TranscendCliUpdateProcessingActivities(
|
|
2900
|
+
$input: UpdateProcessingActivitiesInput!
|
|
2901
|
+
) {
|
|
2902
|
+
updateProcessingActivities(input: $input) {
|
|
2903
|
+
clientMutationId
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
`;var gs=_graphqlrequest.gql`
|
|
2907
|
+
query TranscendSombraVersion {
|
|
2908
|
+
organization {
|
|
2909
|
+
sombra {
|
|
2910
|
+
version
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
`;var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var pp=4;function lp(t){return new Promise(e=>{setTimeout(()=>e(t),t)})}var cp=["syntax error","got invalid value","Client error","cannot affect row a second time","GRAPHQL_VALIDATION_FAILED"];async function p(t,e,i,r,n=pp){let s=0;for(;;)try{return await t.request(e,i,r)}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)),cp.some(l=>o.message.includes(l)))throw o;if(o.message.startsWith("Client error: Too many requests")){let l=_optionalChain([o, 'access', _2 => _2.response, 'access', _3 => _3.headers, 'optionalAccess', _4 => _4.get, 'call', _5 => _5("x-ratelimit-reset")]),u=l?new Date(l).getTime()-new Date().getTime()+100:1e3*10;_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`DETECTED RATE LIMIT: ${o.message}. Sleeping for ${u}ms`)),await lp(u)}if(s>=n)throw o;s+=1,_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`REQUEST FAILED: ${o.message}. Retrying ${s}/${n}...`))}}var _bluebird = require('bluebird');var Ri=20;async function $i(t){let e=[],i=0,r=!1;do{let{identifiers:{nodes:n}}=await p(t,On,{first:Ri,offset:i});e.push(...n),i+=Ri,r=n.length===Ri}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}async function ys({enrichers:t=[],"data-silos":e=[],identifiers:i=[]},r,n=!1){let s=await $i(r),o=_chunk44J2TVZUcjs.e.call(void 0, s,"name"),l=_chunk44J2TVZUcjs.j.call(void 0, [..._chunk44J2TVZUcjs.a.call(void 0, t.map(c=>[c["input-identifier"],...c["output-identifiers"]])),..._chunk44J2TVZUcjs.a.call(void 0, e.map(c=>c["identity-keys"])),...i.map(({name:c})=>c)]).filter(c=>!!c),u=_chunk44J2TVZUcjs.c.call(void 0, l,s.map(({name:c})=>c));if(u.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${u.length} new identifiers...`));let{newIdentifierTypes:c}=await p(r,Nn),d=c.map(({name:m})=>m);await _bluebird.mapSeries.call(void 0, u,async m=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating identifier ${m}...`));let{createIdentifier:g}=await p(r,Mn,{input:{name:m,type:d.includes(m)?m:"custom",skipPublish:n}});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created identifier ${m}!`)),o[m]=g.identifier})}return o}async function Cs(t,{identifier:e,dataSubjectsByName:i,identifierId:r,skipPublish:n=!1}){await p(t,Un,{input:{id:r,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=>i[s].id):void 0,skipPublish:n}})}var _privacytypes = require('@transcend-io/privacy-types');var wi=20;async function bi(t,e){let i=[],r=0,n=!1;do{let{enrichers:{nodes:s}}=await p(t,_n,{first:wi,offset:r,title:e});i.push(...s),r+=wi,n=s.length===wi}while(n);return i.sort((s,o)=>s.title.localeCompare(o.title))}async function Is(t,{enricher:e,identifierByName:i,dataSubjectsByName:r}){let s=(await bi(t,e.title)).find(({title:c})=>c===e.title),o=_optionalChain([e, 'access', _6 => _6["data-subjects"], 'optionalAccess', _7 => _7.map, 'call', _8 => _8(c=>{let d=r[c];if(!d)throw new Error(`Failed to find a data subject with name: ${c}`);return d.id})]),l=e["input-identifier"],u=e["privacy-actions"]||Object.values(_privacytypes.RequestAction);s?await p(t,vn,{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:l?i[l].id:void 0,identifiers:e["output-identifiers"].map(c=>i[c].id),...s.type===_privacytypes.EnricherType.Sombra?{}:{actions:u}}}):l&&await p(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:i[l].id,identifiers:e["output-identifiers"].map(c=>i[c].id),actions:u}})}async function As(t,e,{existingAttribute:i,deleteExtraAttributeValues:r}){let n={name:e.name,enabledOn:e.resources},s;if(i)await p(t,ro,{attributeKeyId:i.id,description:i.isCustom?e.description:void 0,...n}),s=i.id;else{let{createAttributeKey:{attributeKey:d}}=await p(t,no,{type:e.type,description:e.description,...n});s=d.id}let o=_chunk44J2TVZUcjs.e.call(void 0, _optionalChain([i, 'optionalAccess', _9 => _9.values])||[],"name"),{existingValues:l=[],newValues:u=[]}=_chunk44J2TVZUcjs.d.call(void 0, e.values||[],d=>o[d.name]?"existingValues":"newValues"),c=_chunk44J2TVZUcjs.c.call(void 0, (_optionalChain([i, 'optionalAccess', _10 => _10.values])||[]).map(({name:d})=>d),(e.values||[]).map(({name:d})=>d));u.length>0&&(await p(t,Xr,{input:u.map(({name:d,...m})=>({name:d,attributeKeyId:s,...m}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created ${u.length} attribute values`))),l.length>0&&(await p(t,eo,{input:l.map(({name:d,...m})=>({id:o[d].id,name:d,description:o[d].description,color:o[d].color,...m,attributeKeyId:s}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Updated ${l.length} attribute values`))),c.length>0&&r&&(await _bluebird.map.call(void 0, c,async d=>{await p(t,to,{id:o[d].id})},{concurrency:10}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Deleted ${c.length} attribute values`)))}async function It(t){let{internalSubjects:e}=await p(t,Fn);return e}async function Ps({"data-silos":t=[],"data-subjects":e=[],"processing-activities":i=[],enrichers:r=[]},n,s=!1){let o=_chunk44J2TVZUcjs.j.call(void 0, [..._chunk44J2TVZUcjs.a.call(void 0, t.map(d=>d["data-subjects"]||[])||[]),..._chunk44J2TVZUcjs.a.call(void 0, _nullishCoalesce(i.map(({dataSubjectTypes:d})=>_nullishCoalesce(d, () => ([]))), () => ([]))),..._chunk44J2TVZUcjs.a.call(void 0, r.map(d=>d["data-subjects"]||[])||[]),...e.map(d=>d.type)]);if(o.length===0&&!s)return{};let l=await It(n),u=_chunk44J2TVZUcjs.e.call(void 0, l,"type"),c=_chunk44J2TVZUcjs.c.call(void 0, o,l.map(({type:d})=>d));return c.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${c.length} new data subjects...`)),await _bluebird.mapSeries.call(void 0, c,async d=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating data subject ${d}...`));let{createSubject:m}=await p(n,Qn,{type:d,skipPublish:!0});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created data subject ${d}!`)),u[d]=m.subject})),u}function Ss(t,e){return t.forEach(i=>{if(!e[i])throw new Error(`Expected to find data subject definition: ${i}`)}),Object.values(e).filter(i=>!t.includes(i.type)).map(({id:i})=>i)}function Ts(t,e){return t.forEach(i=>{if(!e[i])throw new Error(`Expected to find data subject definition: ${i}`)}),Object.values(e).filter(i=>!t.includes(i.type)).map(({type:i})=>i)}var _cliprogress = require('cli-progress'); var _cliprogress2 = _interopRequireDefault(_cliprogress);var _typeutils = require('@transcend-io/type-utils');var Li=20;async function $s(t,{titles:e,pageSize:i,ids:r=[],gql:n=Dn,integrationNames:s=[]}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${r.length===0?"all":r.length} Data Silos...`));let o=[],l=0,u=!1;do{let{dataSilos:{nodes:c}}=await p(t,n,{filterBy:{ids:r.length>0?r:void 0,type:s.length>0?s:void 0,titles:e},first:i,offset:l});o.push(...c),l+=i,u=c.length===i}while(u);return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Found a total of ${o.length} data silo${r.length>0?` matching IDs ${r.join(",")}`:""}s${s.length>0?` matching integrationNames ${s.join(",")}`:""}`)),o.sort((c,d)=>c.title.localeCompare(d.title))}async function yp(t,e,{debug:i,includeGuessedCategories:r,pageSize:n}){let s=[],o=0,l=!1;do try{i&&_chunkZUNVPK23cjs.a.log(_colors2.default.magenta(`Pulling in subdatapoints for offset ${o}`));let{subDataPoints:{nodes:u}}=await p(t,r?bn:wn,{first:n,filterBy:{dataPoints:[e]},offset:o});s.push(...u),o+=n,l=u.length===n,i&&_chunkZUNVPK23cjs.a.log(_colors2.default.green(`Pulled in subdatapoints for offset ${o} for dataPointId=${e}`))}catch(u){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for offset ${o} for dataPointId=${e}`)),u}while(l);return _chunk44J2TVZUcjs.g.call(void 0, s,"name")}async function Cp(t,e,{debug:i,pageSize:r,skipSubDatapoints:n,includeGuessedCategories:s}){let o=[],l=0,u=!1;do{i&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching datapoints with offset: ${l}`));let{dataPoints:{nodes:c}}=await p(t,$n,{first:r,filterBy:{dataSilos:[e]},offset:l});i&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetched ${c.length} datapoints at offset: ${l}`)),n||(await _bluebird.map.call(void 0, c,async d=>{try{i&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching subdatapoints for ${d.name} for datapoint offset ${l}`));let m=await yp(t,d.id,{pageSize:1e3,debug:i,includeGuessedCategories:s});o.push({...d,subDataPoints:m.sort((g,I)=>g.name.localeCompare(I.name))}),i&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched subdatapoints for ${d.name}`))}catch(m){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for ${d.name} datapoint offset ${l}`)),m}},{concurrency:5}),i&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Fetched all subdatapoints for page of datapoints at offset: ${l}`))),l+=r,u=c.length===r}while(u);return o.sort((c,d)=>c.name.localeCompare(d.name))}async function ws(t,{ids:e,pageSize:i,titles:r,debug:n,skipDatapoints:s,skipSubDatapoints:o,includeGuessedCategories:l,integrationNames:u}){let c=[],d=await $s(t,{titles:r,ids:e,integrationNames:u,pageSize:i,gql:Ln});return s||await _bluebird.mapSeries.call(void 0, d,async(m,g)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[${g+1}/${d.length}] Fetching data silo - ${m.title}`));let I=await Cp(t,m.id,{debug:n,pageSize:i,skipSubDatapoints:o,includeGuessedCategories:l});n&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[${g+1}/${d.length}] Successfully fetched datapoint for - ${m.title}`)),c.push([m,I])}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched all ${d.length} data silo configurations`)),c}async function bs(t,e,{pageSize:i,dataSubjectsByName:r,apiKeysByTitle:n}){let s=!1,o=new Date().getTime();_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" data silos...`));let l=await $s(e,{titles:t.map(({title:q})=>q),pageSize:i}),u=_chunk44J2TVZUcjs.e.call(void 0, l,"title"),c=t.filter(({title:q})=>!u[q]);if(c.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" data silos that did not exist...`));let q=_chunk44J2TVZUcjs.b.call(void 0, c,Li);await _bluebird.mapSeries.call(void 0, q,async K=>{let{createDataSilos:{dataSilos:P}}=await p(e,kn,{input:K.map(j=>({name:j["outer-type"]||j.integrationName,title:j.title,country:j.country,countrySubDivision:j.countrySubDivision}))});P.forEach(j=>{u[j.title]=j})}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${c.length}" data silos!`))}let d=_chunk44J2TVZUcjs.b.call(void 0, t,Li);await _bluebird.mapSeries.call(void 0, d,async(q,K)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${K+1}/${d.length}] Syncing "${q.length}" data silos`)),await p(e,ni,{input:{dataSilos:q.map(P=>({id:u[P.title].id,country:P.country,countrySubDivision:P.countrySubDivision,url:P.url,headers:P.headers,description:P.description,identifiers:P["identity-keys"],isLive:!P.disabled,ownerEmails:P.owners,teamNames:P.teams,dependedOnDataSiloTitles:P["deletion-dependencies"]?void 0:[],apiKeyId:P["api-key-title"]?n[P["api-key-title"]].id:void 0,dataSubjectBlockListIds:P["data-subjects"]?Ss(P["data-subjects"],r):void 0,attributes:P.attributes,businessEntityTitles:P.businessEntityTitles,notifyEmailAddress:_optionalChain([P, 'access', _11 => _11["email-settings"], 'optionalAccess', _12 => _12["notify-email-address"]]),promptAVendorEmailSendFrequency:_optionalChain([P, 'access', _13 => _13["email-settings"], 'optionalAccess', _14 => _14["send-frequency"]]),promptAVendorEmailSendType:_optionalChain([P, 'access', _15 => _15["email-settings"], 'optionalAccess', _16 => _16["send-type"]]),promptAVendorEmailIncludeIdentifiersAttachment:_optionalChain([P, 'access', _17 => _17["email-settings"], 'optionalAccess', _18 => _18["include-identifiers-attachment"]]),promptAVendorEmailCompletionLinkType:_optionalChain([P, 'access', _19 => _19["email-settings"], 'optionalAccess', _20 => _20["completion-link-type"]]),manualWorkRetryFrequency:_optionalChain([P, 'access', _21 => _21["email-settings"], 'optionalAccess', _22 => _22["manual-work-retry-frequency"]])}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${K+1}/${d.length}] Synced "${q.length}" data silos!`))});let m=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),g=t.filter(({datapoints:q=[]})=>q.length>0),I=t.map(({datapoints:q=[]})=>q.length).reduce((q,K)=>q+K,0);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${I}" datapoints from "${g.length}" data silos...`)),m.start(I,0);let A=0;await _bluebird.map.call(void 0, g,async({datapoints:q,title:K})=>{q&&await _bluebird.mapSeries.call(void 0, q,async P=>{let j=P.fields?P.fields.map(({key:ee,description:le,categories:Re,purposes:Ge,attributes:Ne,...ve})=>({name:ee,description:le,categories:Re?Re.map(ce=>({...ce,name:ce.name||"Other"})):void 0,purposes:Ge?Ge.map(ce=>({...ce,name:ce.name||"Other"})):void 0,attributes:Ne,accessRequestVisibilityEnabled:ve["access-request-visibility-enabled"],erasureRequestRedactionEnabled:ve["erasure-request-redaction-enabled"]})):void 0,_e={dataSiloId:u[K].id,path:P.path,name:P.key,title:P.title,description:P.description,...P.owners?{ownerEmails:P.owners}:{},...P.teams?{teamNames:P.teams}:{},...P["data-collection-tag"]?{dataCollectionTag:P["data-collection-tag"]}:{},querySuggestions:P["privacy-action-queries"]?Object.entries(P["privacy-action-queries"]).map(([ee,le])=>({requestType:ee,suggestedQuery:le})):void 0,enabledActions:P["privacy-actions"]||[],subDataPoints:j},Y=(_e.subDataPoints||[]).map(({name:ee})=>ee),Oe=Y.filter((ee,le)=>Y.indexOf(ee)!==le);if(Oe.length>0)_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
|
|
2915
|
+
Cannot update datapoint "${P.key}" as it has duplicate sub-datapoints with the same name:
|
|
2916
|
+
${Oe.join(`
|
|
2917
|
+
`)}`)),s=!0;else try{await p(e,xn,_e)}catch(ee){_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
|
|
2918
|
+
Failed to update datapoint "${P.key}" for data silo "${K}"! -
|
|
2919
|
+
${ee.message}`)),s=!0}A+=1,m.update(A)})},{concurrency:10}),m.stop();let z=new Date().getTime()-o;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" data silos and "${I}" datapoints in "${z/1e3}" seconds!`)),{success:!s,dataSiloTitleToId:_typeutils.apply.call(void 0, u,({id:q})=>q)}}async function xs(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data silo dependencies...`));let r=_chunk44J2TVZUcjs.b.call(void 0, e,Li);return await _bluebird.mapSeries.call(void 0, r,async(n,s)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${s}/${n.length}] Updating "${n.length}" data silos...`));try{await p(t,ni,{input:{dataSilos:n.map(([o,l])=>({id:o,dependedOnDataSiloTitles:l}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${s+1}/${n.length}] Synced "${n.length}" data silos!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`[Batch ${s+1}/${n.length}] Failed to update "${n.length}" silos! - ${o.message}`))}}),!i}async function Ds(t){let{consentManager:{consentManager:e}}=await p(t,go);return e}async function oe(t,e){let{consentManager:{consentManager:i}}=await p(t,fo,{},{},e);return i.id}var ki=50;async function Lt(t){let e=[],i=0,r=!1;do{let{experiences:{nodes:n}}=await p(t,so,{first:ki,offset:i});e.push(...n),i+=ki,r=n.length===ki}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}var hp=(i=>(i.Hourly="1h",i.Daily="1d",i))(hp||{});async function Sf(t,e){let{analyticsData:{series:i}}=await p(t,ko,{input:e});return i}async function Ls(t,e){let{consentManagerTheme:{theme:i}}=await p(t,yo,{airgapBundleId:e});return i}var Ap=100;async function Pp(t,e){let i=await oe(t);await _bluebird.mapSeries.call(void 0, _chunk44J2TVZUcjs.b.call(void 0, e,Ap),async r=>{await p(t,co,{airgapBundleId:i,cookies:r.map(n=>({name:n.name,trackingPurposes:n.trackingPurposes&&n.trackingPurposes.length>0?n.trackingPurposes:void 0,description:n.description,service:n.service,status:n.status,attributes:n.attributes,isRegex:n.isRegex}))})})}async function ks(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" cookies...`));let r=e.filter(n=>e.filter(s=>n.name===s.name&&n.isRegex===s.isRegex).length>1);if(r.length>0)throw new Error(`Failed to upload cookies as there were non-unique entries found: ${r.map(({name:n})=>n).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new cookies...`)),await Pp(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} cookies!`))}catch(n){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create cookies! - ${n.message}`))}return!i}var _i=20;async function _t(t){let e=[],i=0,r=!1;do{let{teams:{nodes:n}}=await p(t,Nr,{first:_i,offset:i});e.push(...n),i+=_i,r=n.length===_i}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}async function _s(t,{dataSubject:e,dataSubjectId:i,skipPublish:r=!1}){await p(t,Bn,{input:{id:i,title:e.title,adminDashboardDefaultSilentMode:e.adminDashboardDefaultSilentMode,actions:e.actions,skipPublish:r&&typeof e.active>"u"}}),typeof e.active=="boolean"&&await p(t,Kn,{input:{id:i,active:e.active,skipPublish:r}})}var Gi=20,Sp="https://app.transcend.io/infrastructure/api-keys";async function Tp(t,e){let i=[],r=0,n=!1;do{let{apiKeys:{nodes:s}}=await p(t,Zn,{first:Gi,offset:r,titles:e});i.push(...s),r+=Gi,n=s.length===Gi}while(n);return i.sort((s,o)=>s.title.localeCompare(o.title))}async function Gt({"api-keys":t=[],"data-silos":e=[]},i,r=!1){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${r?"all":t.length} API keys...`));let n=t.map(({title:d})=>d),s=_chunk44J2TVZUcjs.j.call(void 0, e.map(d=>d["api-key-title"]).filter(d=>!!d)),o=[...s,...n],l=await Tp(i,r?void 0:[...s,...n]),u=_chunk44J2TVZUcjs.e.call(void 0, l,"title"),c=_chunk44J2TVZUcjs.c.call(void 0, o,l.map(({title:d})=>d));return c.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to find API keys "${c.join('", "')}"! Make sure these API keys are created at: ${Sp}`)),process.exit(1)),u}var vi=20;async function Ye(t,{text:e,titles:i=[],ids:r=[]}={}){let n=[],s=0,o=!1;do{let{prompts:{nodes:l}}=await p(t,$r,{first:vi,offset:s,filterBy:{...e?{text:e}:{},...i.length>0?{title:i}:{},...r.length>0?{id:r}:{}}});n.push(...l),s+=vi,o=l.length===vi}while(o);return n.sort((l,u)=>l.title.localeCompare(u.title))}async function jf(t,{promptTitles:e=[],promptIds:i=[]}={}){let{promptsWithVariables:r}=await p(t,xr,{input:{...e.length>0?{promptTitles:e}:{},...i.length>0?{promptIds:i}:{}}});return r}async function Rp(t,e){let{createPrompt:{prompt:i}}=await p(t,Lr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt "${e.title}"!`)),i.id}async function $p(t,e){await p(t,Dr,{input:{prompts:e.map(([i,r])=>({...i,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompts!`))}async function vs(t,e,i=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompts...`));let n=await Ye(t),s=_chunk44J2TVZUcjs.e.call(void 0, n,"title"),o=e.map(c=>[c,_optionalChain([s, 'access', _23 => _23[c.title], 'optionalAccess', _24 => _24.id])]),l=o.filter(([,c])=>!c).map(([c])=>c);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" new prompts...`)),await _bluebird.map.call(void 0, l,async c=>{await Rp(t,c)},{concurrency:i}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${l.length} prompts!`))}catch(c){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompts! - ${c.message}`))}let u=o.filter(c=>!!c[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" prompts...`)),await $p(t,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.length}" prompts!`))}catch(c){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompts! - ${c.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" prompts!`)),!r}async function Pt(t){let{organization:e}=await p(t,Bo);return e.deployedPrivacyCenterUrl}async function Ze(t,e){let i=e;i||(i=await Pt(t));let{privacyCenter:r}=await p(t,Qo,{url:i});return r.id}async function vt(t){let e=await Pt(t),{privacyCenterPolicies:i}=await p(t,dr,{url:e});return i.sort((r,n)=>r.title.defaultMessage.localeCompare(n.title.defaultMessage))}var bp=100;async function xp(t,e){let i=await Ze(t);await _bluebird.mapSeries.call(void 0, _chunk44J2TVZUcjs.b.call(void 0, e,bp),async r=>{await p(t,fr,{privacyCenterId:i,policies:r.map(([n,s])=>({id:s,title:n.title,disableEffectiveOn:n.disableEffectiveOn,disabledLocales:n.disabledLocales,...n.effectiveOn||n.content?{version:{...n.effectiveOn?{effectiveOn:n.effectiveOn}:{},...n.content?{content:{defaultMessage:n.content}}:{}}}:{}}))})})}async function qs(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" policies...`));let r=e.filter(o=>e.filter(l=>o.title===l.title).length>1);if(r.length>0)throw new Error(`Failed to upload policies as there were non-unique entries found: ${r.map(({title:o})=>o).join(",")}`);let n=await vt(t),s=_chunk44J2TVZUcjs.e.call(void 0, n,({title:o})=>o.defaultMessage);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new policies...`)),await xp(t,e.map(o=>[o,_optionalChain([s, 'access', _25 => _25[o.title], 'optionalAccess', _26 => _26.id])])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} policies!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create policies! - ${o.message}`))}return!i}var Lp=100;async function kp(t,e){await _bluebird.mapSeries.call(void 0, _chunk44J2TVZUcjs.b.call(void 0, e,Lp),async i=>{await p(t,hr,{messages:i.map(r=>({...r.id.includes(".")?{}:{id:r.id},defaultMessage:r.defaultMessage,targetReactIntlId:r.targetReactIntlId,translations:r.translations?Object.entries(r.translations).map(([n,s])=>({locale:n,value:s})):void 0}))})})}async function Os(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" messages...`));let r=e.filter(n=>e.filter(s=>n.id===s.id).length>1);if(r.length>0)throw new Error(`Failed to upload messages as there were non-unique entries found: ${r.map(({id:n})=>n).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new messages...`)),await kp(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} messages!`))}catch(n){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create messages! - ${n.message}`))}return!i}async function Ns(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing privacy center..."));let r=await Ze(t);try{await p(t,Vo,{input:{privacyCenterId:r,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(n){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create privacy center! - ${n.message}`))}return!i}var Oi=50;async function St(t){let e=[],i=0,r=!1;do{let{consentPartitions:{nodes:n}}=await p(t,ao,{first:Oi,offset:i});e.push(...n),i+=Oi,r=n.length===Oi}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}async function Us(t,e){let i=await oe(t),r=!1,n=await St(t),s=_chunk44J2TVZUcjs.c.call(void 0, e.map(({name:o})=>o),n.map(({name:o})=>o));return await _bluebird.mapSeries.call(void 0, s,async o=>{try{await p(t,Lo,{input:{id:i,name:o}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent partition: ${o}!`))}catch(l){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to create consent partition: ${o}! - ${l.message}`)),r=!0}}),!r}var Ni=20;async function Nt(t,{includeDeleted:e=!1}={}){let i=[],r=0,n=!1;do{let{purposes:{nodes:s}}=await p(t,Tr,{first:Ni,offset:r,input:{includeDeleted:e}});i.push(...s),r+=Ni,n=s.length===Ni}while(n);return i.sort((s,o)=>s.trackingType.localeCompare(o.trackingType))}var _airgapjstypes = require('@transcend-io/airgap.js-types');var Qs="https://app.transcend.io/consent-manager/regional-experiences/purposes";async function Op(t,e){let i=await Lt(t),r=_chunk44J2TVZUcjs.e.call(void 0, i,"name"),n=await Nt(t),s=_chunk44J2TVZUcjs.e.call(void 0, n,"trackingType");await _bluebird.map.call(void 0, e,async(o,l)=>{let u=_optionalChain([o, 'access', _27 => _27.purposes, 'optionalAccess', _28 => _28.map, 'call', _29 => _29((m,g)=>{let I=s[m.trackingType];if(!I)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${l}].purposes[${g}]: ${m.trackingType}. See list of valid purposes ${Qs}`);return I.id})]),c=_optionalChain([o, 'access', _30 => _30.optedOutPurposes, 'optionalAccess', _31 => _31.map, 'call', _32 => _32((m,g)=>{let I=s[m.trackingType];if(!I)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${l}].optedOutPurposes[${g}]: ${m.trackingType}. See list of valid purposes ${Qs}`);return I.id})]),d=r[o.name];d?(await p(t,xo,{input:{id:d.id,name:o.displayName,regions:o.regions,operator:o.operator,onConsentExpiry:o.onConsentExpiry,consentExpiry:o.consentExpiry,displayPriority:o.displayPriority!==d.displayPriority?o.displayPriority:void 0,viewState:o.viewState,purposes:u,optedOutPurposes:c,browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced consent experience "${o.name}"!`))):(await p(t,Do,{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:u||[],optedOutPurposes:c||[],browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent experience "${o.name}"!`)))},{concurrency:10})}async function Bs(t,e){let i;try{i=await oe(t,1)}catch(r){if(r.message.includes("AirgapBundle not found")){let n=await Ze(t),{createConsentManager:s}=await p(t,Co,{domains:e.domains,privacyCenterId:n});i=s.consentManager.id}else throw r}if(e.domains&&await p(t,Po,{domains:e.domains,airgapBundleId:i}),e.partition){let n=(await St(t)).find(s=>s.name===e.partition);if(!n)throw new Error(`Partition "${e.partition}" not found. Please create the partition first.`);await p(t,So,{partitionId:n.id,airgapBundleId:i})}e.version&&await p(t,ho,{airgapBundleId:i,version:e.version}),e.signedIabAgreement&&await p(t,To,{input:{id:i,...e.signedIabAgreement?{signedIabAgreement:e.signedIabAgreement}:{}}}),e.unknownRequestPolicy&&await p(t,Eo,{input:{id:i,unknownRequestPolicy:e.unknownRequestPolicy}}),e.unknownRequestPolicy&&await p(t,Ro,{input:{id:i,unknownCookiePolicy:e.unknownCookiePolicy}}),e.telemetryPartitioning&&await p(t,$o,{input:{id:i,strategy:e.telemetryPartitioning}}),e.consentPrecedence&&await p(t,wo,{input:{id:i,consentPrecedence:e.consentPrecedence}}),e.experiences&&await Op(t,e.experiences),e.theme&&await p(t,bo,{input:{airgapBundleId:i,...e.theme}})}var He=100;async function Np(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching all attribute values for ${e}...`));let i=[],r=0,n=!1;do{let{attributeValues:{nodes:s}}=await p(t,io,{first:He,offset:r,attributeKeyId:e});i.push(...s),r+=He,n=s.length===He}while(n);return i.sort((s,o)=>s.name.localeCompare(o.name))}var Mp=[_privacytypes.AttributeKeyType.MultiSelect,_privacytypes.AttributeKeyType.SingleSelect];async function We(t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching all attributes..."));let e=[],i=0,r=!1;do{let{attributeKeys:{nodes:n}}=await p(t,Jr,{first:He,offset:i});e.push(...await Promise.all(n.map(async s=>({...s,values:Mp.includes(s.type)?await Np(t,s.id):[]})))),i+=He,r=n.length===He}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}var Mi=20;async function Mt(t){let e=[],i=0,r=!1;do{let{businessEntities:{nodes:n}}=await p(t,_o,{first:Mi,offset:i});e.push(...n),i+=Mi,r=n.length===Mi}while(r);return e.sort((n,s)=>n.title.localeCompare(s.title))}async function Up(t,e){let i={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:r}=await p(t,Go,{input:i});return r.businessEntity}async function Fp(t,e){let i=_chunk44J2TVZUcjs.b.call(void 0, e,100);await _bluebird.mapSeries.call(void 0, i,async r=>{await p(t,vo,{input:r.map(([n,s])=>({id:s,title:n.title,description:n.description,address:n.address,headquarterCountry:n.headquarterCountry,headquarterSubDivision:n.headquarterSubDivision,dataProtectionOfficerName:n.dataProtectionOfficerName,dataProtectionOfficerEmail:n.dataProtectionOfficerEmail,attributes:n.attributes,teamNames:n.teams,ownerEmails:n.owners}))})})}async function Ys(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" business entities...`));let i=!1,r=await Mt(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"title"),s=e.filter(o=>!n[o.title]);await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await Up(t,o);n[l.title]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced business entity "${o.title}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync business entity "${o.title}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" business entities!`)),await Fp(t,e.map(o=>[o,n[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" business entities!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" business entities ! - ${o.message}`))}return!i}var Ui=20;async function Je(t,e=_privacytypes.ConsentTrackerStatus.Live){let i=[],r=0,n=await oe(t),s=!1;do{let{dataFlows:{nodes:o}}=await p(t,mo,{first:Ui,offset:r,airgapBundleId:n,status:e,...e===_privacytypes.ConsentTrackerStatus.NeedsReview?{showZeroActivity:!0}:{}});i.push(...o),r+=Ui,s=o.length===Ui}while(s);return i.sort((o,l)=>o.value.localeCompare(l.value))}var zs=100;async function Qp(t,e,i=!1){let r=await oe(t);await _bluebird.mapSeries.call(void 0, _chunk44J2TVZUcjs.b.call(void 0, e,zs),async n=>{await p(t,lo,{airgapBundleId:r,dataFlows:n.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:i})})}async function Bp(t,e,i=!1){let r=await oe(t);await _bluebird.mapSeries.call(void 0, _chunk44J2TVZUcjs.b.call(void 0, e,zs),async n=>{await p(t,po,{airgapBundleId:r,dataFlows:n.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:i})})}async function Js(t,e,i){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data flows...`));let n=e.filter(m=>e.filter(g=>m.value===g.value&&m.type===g.type).length>1);if(n.length>0)throw new Error(`Failed to upload data flows as there were non-unique entries found: ${n.map(({value:m})=>m).join(",")}`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching data flows..."));let[s,o]=await Promise.all([Je(t,_privacytypes.ConsentTrackerStatus.Live),Je(t,_privacytypes.ConsentTrackerStatus.NeedsReview)]),l=[...s,...o],u=e.map(m=>[m,_optionalChain([l, 'access', _33 => _33.find, 'call', _34 => _34(g=>m.value===g.value&&m.type===g.type), 'optionalAccess', _35 => _35.id])]),c=u.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new data flows...`)),await Bp(t,c,i),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${c.length} data flows!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create data flows! - ${m.message}`))}let d=u.filter(m=>!!m[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" data flows...`)),await Qp(t,d,i),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${d.length}" data flows!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create data flows! - ${m.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" data flows!`)),!r}var jp=[...Object.values(_privacytypes.IsoCountryCode),...Object.values(_privacytypes.IsoCountrySubdivisionCode)];async function Xs(t,{action:e,actionId:i,skipPublish:r=!1}){await p(t,No,{input:{id:i,skipSecondaryIfNoFiles:e.skipSecondaryIfNoFiles,skipDownloadableStep:e.skipDownloadableStep,requiresReview:e.requiresReview,waitingPeriod:e.waitingPeriod,skipPublish:r,regionList:e.regionBlockList?_chunk44J2TVZUcjs.c.call(void 0, jp,e.regionBlockList):e.regionList,regionDetectionMethod:e.regionDetectionMethod}})}var Fi=20;async function Qi(t,e){let i=[],r=0,n=!1;do{let{templates:{nodes:s}}=await p(t,tr,{first:Fi,offset:r,title:e});i.push(...s),r+=Fi,n=s.length===Fi}while(n);return i.sort((s,o)=>s.title.localeCompare(o.title))}async function ea(t,e){(await Qi(e,t.title)).find(({title:n})=>n===t.title)||await p(e,ir,{title:t.title})}var Bi=20;async function Ut(t){let e=[],i=0,r=!1;do{let{actions:{nodes:n}}=await p(t,Oo,{first:Bi,offset:i});e.push(...n),i+=Bi,r=n.length===Bi}while(r);return e.sort((n,s)=>n.type.localeCompare(s.type))}var Ki=20;async function Ft(t){let e=[],i=0,r=!1;do{let{promptPartials:{nodes:n}}=await p(t,wr,{first:Ki,offset:i});e.push(...n),i+=Ki,r=n.length===Ki}while(r);return e.sort((n,s)=>n.title.localeCompare(s.title))}var Vi=20;async function Qt(t){let e=[],i=0,r=!1;do{let{promptGroups:{nodes:n}}=await p(t,br,{first:Vi,offset:i});e.push(...n),i+=Vi,r=n.length===Vi}while(r);return e.sort((n,s)=>n.title.localeCompare(s.title))}var ji=20;async function Bt(t,e={}){let i=[],r=0,n=!1;do{let{agents:{nodes:s}}=await p(t,Zo,{first:ji,offset:r,filterBy:e});i.push(...s),r+=ji,n=s.length===ji}while(n);return i.sort((s,o)=>s.name.localeCompare(o.name))}async function Zp(t,e){let i={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:r}=await p(t,Ho,{input:i});return r.agent}async function Hp(t,e){await p(t,Wo,{input:{agents:e.map(([i,r])=>({id:r,name:i.name,description:i.description,codeInterpreterEnabled:i.codeInterpreterEnabled,retrievalEnabled:i.retrievalEnabled}))}})}async function ta(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agents...`));let i=!1,r=await Bt(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"name"),s=e.filter(o=>!n[o.name]);await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await Zp(t,o);n[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent "${o.name}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent "${o.name}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" agents!`)),await Hp(t,e.map(o=>[o,n[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agents!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agents ! - ${o.message}`))}return!i}async function et(t,e={}){let{globalActionItemCollections:{nodes:i}}=await p(t,Hr,{filterBy:{...e}});return i}async function Wp(t,e){let i={title:e.title,description:e.description||"",hidden:e.hidden||!1,productLine:e.productLine},{createActionItemCollection:r}=await p(t,Wr,{input:i});return r.created}async function zp(t,e,i){await p(t,zr,{input:{id:i,title:e.title,description:e.description,hidden:e.hidden,productLine:e.productLine}})}async function na(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" action item collections...`));let r=await et(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"title"),s=e.filter(l=>!n[l.title]);await _bluebird.mapSeries.call(void 0, s,async l=>{try{await Wp(t,l),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created action item collection "${l.title}"!`))}catch(u){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action item collection "${l.title}"! - ${u.message}`))}});let o=e.map(l=>[l,_optionalChain([n, 'access', _36 => _36[l.title], 'optionalAccess', _37 => _37.id])]).filter(l=>!!l[1]);return await _bluebird.mapSeries.call(void 0, o,async([l,u])=>{try{await zp(t,l,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item collection "${l.title}"!`))}catch(c){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item collection "${l.title}"! - ${c.message}`))}}),!i}var Yi=20;async function Kt(t,e={}){let i=[],r=0,n=!1;do{let{globalActionItems:{nodes:s}}=await p(t,Mo,{first:Yi,offset:r,filterBy:{...e,...e.startDueDate?{startDueDate:e.startDueDate.toISOString()}:{},...e.endDueDate?{endDueDate:e.endDueDate.toISOString()}:{}}});i.push(...s.map(o=>({...o,id:o.ids[0],title:o.titles[0],notes:o.notes[0],link:o.links[0]}))),r+=Yi,n=s.length===Yi}while(n);return i}async function Jp(t,e,i,r={}){let n=_chunk44J2TVZUcjs.b.call(void 0, e,100);await _bluebird.mapSeries.call(void 0, n,async s=>{await p(t,Fo,{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(l=>i[l].id)}))})})}async function Xp(t,e,i,r={}){let n=s=>{let o=r[s];if(!o)throw new Error(`Attribute key "${s}" does not exist!`);return o.id};await p(t,Uo,{input:{ids:[i],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:n(s),attributeValueNames:o}))}:{}}})}function el({title:t,collections:e}){return`${t}-${e.map(i=>i.title).sort().join("-")}`}function ra({title:t,collections:e}){return`${t}-${e.sort().join("-")}`}async function sa(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" actionItems...`));let r=e.some(A=>A.attributes&&A.attributes.length>0),[n,s,o]=await Promise.all([Kt(t),et(t),r?We(t):[]]),l=_chunk44J2TVZUcjs.e.call(void 0, s,"title"),u=_chunk44J2TVZUcjs.e.call(void 0, n,el),c=_chunk44J2TVZUcjs.e.call(void 0, o,"name"),d=_chunk44J2TVZUcjs.e.call(void 0, n.filter(A=>!!A.customerExperienceActionItemIds),({customerExperienceActionItemIds:A})=>A[0]),m=_chunk44J2TVZUcjs.j.call(void 0, e.map(A=>A.collections).flat()).filter(A=>!l[A]);if(m.length>0)return _chunkZUNVPK23cjs.a.info(_colors2.default.red(`Missing action item collections: "${m.join('", "')}" - please create them first!`)),!1;let g=e.filter(A=>!u[ra(A)]&&!d[A.customerExperienceActionItemId]);if(g.length>0)try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${g.length}" actionItems...`)),await Jp(t,g,l,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${g.length}" actionItems!`))}catch(A){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action items! - ${A.message}`))}let I=e.map(A=>[A,_optionalChain([u, 'access', _38 => _38[ra(A)], 'optionalAccess', _39 => _39.id])||_optionalChain([d, 'access', _40 => _40[A.customerExperienceActionItemId], 'optionalAccess', _41 => _41.id])]).filter(A=>!!A[1]);return await _bluebird.mapSeries.call(void 0, I,async([A,V])=>{try{await Xp(t,A,V,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item "${A.title}"!`))}catch(z){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item "${A.title}"! - ${z.message}`))}}),!i}var Zi=20;async function Vt(t){let e=[],i=0,r=!1;do{let{agentFunctions:{nodes:n}}=await p(t,es,{first:Zi,offset:i});e.push(...n.map(s=>({...s,parameters:JSON.parse(s.parameters)}))),i+=Zi,r=n.length===Zi}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}async function il(t,e){let i={name:e.name,description:e.description,parameters:e.parameters,agentIds:[]},{createAgentFunction:r}=await p(t,ts,{input:i});return r.agentFunction}async function nl(t,e){await p(t,is,{input:{agentFunctions:e.map(([i,r])=>({id:r,name:i.name,description:i.description,parameters:i.parameters}))}})}async function aa(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent functions...`));let i=!1,r=await Vt(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"name"),s=e.filter(o=>!n[o.name]);await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await il(t,o);n[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent function "${o.name}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent function "${o.name}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" agent functions!`)),await nl(t,e.map(o=>[o,n[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent functions!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent functions! - ${o.message}`))}return!i}var Hi=20;async function jt(t,e={}){let i=[],r=0,n=!1;do{let{agentFiles:{nodes:s}}=await p(t,zo,{first:Hi,offset:r,filterBy:e});i.push(...s),r+=Hi,n=s.length===Hi}while(n);return i.sort((s,o)=>s.name.localeCompare(o.name))}async function ol(t,e){let i={name:e.name,description:e.description,fileId:e.fileId,size:e.size,purpose:e.purpose,fileUploadedAt:new Date,agentIds:[]},{createAgentFile:r}=await p(t,Jo,{input:i});return r.agentFile}async function sl(t,e){await p(t,Xo,{input:{agentFiles:e.map(([i,r])=>({id:r,name:i.name,description:i.description,fileId:i.fileId,size:i.size,purpose:i.purpose}))}})}async function pa(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent files...`));let i=!1,r=await jt(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"name"),s=e.filter(o=>!n[o.name]);await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await ol(t,o);n[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent file "${o.name}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent file "${o.name}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" agent files!`)),await sl(t,e.map(o=>[o,n[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent files!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent files! - ${o.message}`))}return!i}var Wi=20;async function Yt(t){let e=[],i=0,r=!1;do{let{vendors:{nodes:n}}=await p(t,ns,{first:Wi,offset:i});e.push(...n),i+=Wi,r=n.length===Wi}while(r);return e.sort((n,s)=>n.title.localeCompare(s.title))}async function pl(t,e){let i={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:r}=await p(t,rs,{input:i});return r.vendor}async function ll(t,e){await p(t,os,{input:{vendors:e.map(([i,r])=>({id:r,title:i.title,description:i.description,address:i.address,headquarterCountry:i.headquarterCountry,headquarterSubDivision:i.headquarterSubDivision,dataProcessingAgreementLink:i.dataProcessingAgreementLink,contactName:i.contactName,contactPhone:i.contactPhone,websiteUrl:i.websiteUrl,attributes:i.attributes}))}})}async function la(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" vendors...`));let i=!1,r=await Yt(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"title"),s=e.filter(o=>!n[o.title]);await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await pl(t,o);n[l.title]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced vendor "${o.title}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync vendor "${o.title}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" vendors!`)),await ll(t,e.map(o=>[o,n[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" vendors!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" vendors ! - ${o.message}`))}return!i}var zi=20;async function Zt(t){let e=[],i=0,r=!1;do{let{dataSubCategories:{nodes:n}}=await p(t,ss,{first:zi,offset:i});e.push(...n),i+=zi,r=n.length===zi}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}async function ml(t,e){let i={name:e.name,category:e.category,description:e.description},{createDataCategory:r}=await p(t,as,{input:i});return r.dataCategory}async function ul(t,e){await p(t,ps,{input:{dataSubCategories:e.map(([i,r])=>({id:r,description:i.description,attributes:i.attributes}))}})}async function ca(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data categories...`));let i=!1,r=await Zt(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,({name:o,category:l})=>`${o}:${l}`),s=e.filter(o=>!n[`${o.name}:${o.category}`]);await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await ml(t,o);n[`${l.name}:${l.category}`]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data category "${o.name}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data category "${o.name}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" data categories!`)),await ul(t,e.map(o=>[o,n[`${o.name}:${o.category}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" data categories!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" data categories ! - ${o.message}`))}return!i}var Ji=20;async function Ht(t){let e=[],i=0,r=!1;do{let{processingPurposeSubCategories:{nodes:n}}=await p(t,ls,{first:Ji,offset:i});e.push(...n),i+=Ji,r=n.length===Ji}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}async function fl(t,e){let i={name:e.name,purpose:e.purpose,description:e.description},{createProcessingPurposeSubCategory:r}=await p(t,cs,{input:i});return r.processingPurposeSubCategory}async function gl(t,e){await p(t,ms,{input:{processingPurposeSubCategories:e.map(([i,r])=>({id:r,description:i.description,attributes:i.attributes}))}})}async function ma(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" processing purposes...`));let i=!1,r=await Ht(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,({name:o,purpose:l})=>`${o}:${l}`),s=e.filter(o=>!n[`${o.name}:${o.purpose}`]);await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await fl(t,o);n[`${l.name}:${l.purpose}`]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced processing purpose "${o.name}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync processing purpose "${o.name}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" processing purposes!`)),await gl(t,e.map(o=>[o,n[`${o.name}:${o.purpose}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" processing purposes!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" processing purposes ! - ${o.message}`))}return!i}var Xi=20;async function Wt(t){let e=[],i=0,r=!1;do{let{processingActivities:{nodes:n}}=await p(t,us,{first:Xi,offset:i});e.push(...n),i+=Xi,r=n.length===Xi}while(r);return e.sort((n,s)=>n.title.localeCompare(s.title))}async function Cl(t,e){let i={title:e.title,description:e.description},{createProcessingActivity:r}=await p(t,ds,{input:i});return r.processingActivity}async function hl(t,e){let i=e.filter(([,r])=>r===void 0).map(([{title:r}])=>r);if(i.length>0)throw new Error(`The following ${i.length} processing activities do not exist and thus can't be updated: "${i.join('", "')}"`);await p(t,fs,{input:{processingActivities:e.map(([{processingSubPurposes:r,dataSubCategories:n,saaSCategories:s,...o},l])=>({dataSubCategoryInputs:_optionalChain([n, 'optionalAccess', _42 => _42.map, 'call', _43 => _43(({category:u,name:c})=>({category:u,name:_nullishCoalesce(c, () => (""))}))]),processingPurposeSubCategoryInputs:_optionalChain([r, 'optionalAccess', _44 => _44.map, 'call', _45 => _45(({purpose:u,name:c})=>({purpose:u,name:_nullishCoalesce(c, () => ("Other"))}))]),saaSCategoryTitles:s,...o,id:l}))}})}async function ua(t,e){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" processing activities...`));let r=await Wt(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"title"),s=e.filter(o=>!n[o.title]);s.length>0&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${s.length}" new processing activities...`)),await _bluebird.mapSeries.call(void 0, s,async o=>{try{let l=await Cl(t,o);n[l.title]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created processing activity "${o.title}"!`))}catch(l){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create processing activity "${o.title}"! - ${l.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${e.length}" processing activities!`)),await hl(t,e.map(o=>[o,_optionalChain([n, 'access', _46 => _46[o.title], 'optionalAccess', _47 => _47.id])])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" processingActivities!`))}catch(o){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" processingActivities! - ${o.message}`))}return!i}async function Il(t,e){let i={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:r}=await p(t,Mr,{input:i});return r.team}async function Al(t,e,i){let{updateTeam:r}=await p(t,Ur,{input:{id:i,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 r.team}async function fa(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" teams...`));let i=!1,r=await _t(t),n=_chunk44J2TVZUcjs.e.call(void 0, r,"name"),s=e.filter(l=>!n[l.name]),o=e.filter(l=>!!n[l.name]);return await _bluebird.mapSeries.call(void 0, s,async l=>{try{let u=await Il(t,l);n[u.name]=u,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created team "${l.name}"!`))}catch(u){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),await _bluebird.mapSeries.call(void 0, o,async l=>{try{let u=await Al(t,l,n[l.name].id);n[u.name]=u,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated team "${l.name}"!`))}catch(u){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),!i}async function Sl(t,e){let{createPromptPartial:{promptPartial:i}}=await p(t,_r,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt partial "${e.title}"!`)),i.id}async function Tl(t,e){await p(t,kr,{input:{promptPartials:e.map(([i,r])=>({...i,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt partials!`))}async function ga(t,e,i=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt partials...`));let n=await Ft(t),s=_chunk44J2TVZUcjs.e.call(void 0, n,"title"),o=e.map(c=>[c,_optionalChain([s, 'access', _48 => _48[c.title], 'optionalAccess', _49 => _49.id])]),l=o.filter(([,c])=>!c).map(([c])=>c);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" new prompt partials...`)),await _bluebird.map.call(void 0, l,async c=>{await Sl(t,c)},{concurrency:i}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${l.length} prompt partials!`))}catch(c){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt partials! - ${c.message}`))}let u=o.filter(c=>!!c[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" prompt partials...`)),await Tl(t,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.length}" prompt partials!`))}catch(c){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt partials! - ${c.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" prompt partials!`)),!r}async function Rl(t,e){let{createPromptGroup:{promptGroup:i}}=await p(t,vr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt group "${e.title}"!`)),i.id}async function $l(t,e){await p(t,Gr,{input:{promptGroups:e.map(([i,r])=>({...i,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt groups!`))}async function ya(t,e,i=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt groups...`));let n=await Qt(t),s=await Ye(t),o=_chunk44J2TVZUcjs.e.call(void 0, s,"title"),l=_chunk44J2TVZUcjs.e.call(void 0, n,"title"),u=e.map(m=>[m,_optionalChain([l, 'access', _50 => _50[m.title], 'optionalAccess', _51 => _51.id])]),c=u.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new prompt groups...`)),await _bluebird.map.call(void 0, c,async m=>{await Rl(t,{...m,promptIds:m.prompts.map(g=>{let I=o[g];if(!I)throw new Error(`Failed to find prompt with title: "${g}"`);return I.id})})},{concurrency:i}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${c.length} prompt groups!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt groups! - ${m.message}`))}let d=u.filter(m=>!!m[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" prompt groups...`)),await $l(t,d.map(([{prompts:m,...g},I])=>[{...g,promptIds:m.map(A=>{let V=o[A];if(!V)throw new Error(`Failed to find prompt with title: "${A}"`);return V.id})},I])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${d.length}" prompt groups!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt groups! - ${m.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" prompt groups!`)),!r}var at=10;async function uA(t,e,{pageSize:i=50,publishToPrivacyCenter:r=!0,classifyService:n=!1,deleteExtraAttributeValues:s=!1}){let o=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching data with page size ${i}...`));let{templates:l,attributes:u,actions:c,identifiers:d,"data-subjects":m,"business-entities":g,enrichers:I,cookies:A,"consent-manager":V,"data-silos":z,"data-flows":q,prompts:K,"prompt-groups":P,"prompt-partials":j,agents:_e,"agent-functions":Y,"agent-files":Oe,vendors:ee,"data-categories":le,"processing-activities":Re,"processing-purposes":Ge,"action-items":Ne,"action-item-collections":ve,teams:ce,"privacy-center":ct,messages:mt,policies:ut,partitions:dt}=t,[ft,Ve,Rt]=await Promise.all([I||d?ys(t,e,!r):{},z||m||I||Re?Ps(t,e):{},z&&z.map(y=>y["api-key-title"]||[]).reduce((y,_)=>y+_.length,0)>0?Gt(t,e):{}]);if(V){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing consent manager..."));try{await Bs(e,V),_chunkZUNVPK23cjs.a.info(_colors2.default.green("Successfully synced consent manager!"))}catch(y){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync consent manager! - ${y.message}`))}}if(K){let y=await vs(e,K);o=o||!y}if(j){let y=await ga(e,j);o=o||!y}if(P){let y=await ya(e,P);o=o||!y}if(ce){let y=await fa(e,ce);o=o||!y}if(l&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${l.length}" email templates...`)),await _bluebird.map.call(void 0, l,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing template "${y.title}"...`));try{await ea(y,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced template "${y.title}"!`))}catch(_){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync template "${y.title}"! - ${_.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${l.length}" email templates!`))),g){let y=await Ys(e,g);o=o||!y}if(ee){let y=await la(e,ee);o=o||!y}if(le){let y=await ca(e,le);o=o||!y}if(Ge){let y=await ma(e,Ge);o=o||!y}if(dt){let y=await Us(e,dt);o=o||!y}if(_e){let y=await ta(e,_e);o=o||!y}if(Y){let y=await aa(e,Y);o=o||!y}if(Oe){let y=await pa(e,Oe);o=o||!y}if(A){let y=await ks(e,A);o=o||!y}if(ve){let y=await na(e,ve);o=o||!y}if(u){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${u.length}" attributes...`));let y=await We(e);await _bluebird.map.call(void 0, u,async _=>{let J=y.find(ie=>ie.name===_.name);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing attribute "${_.name}"...`));try{await As(e,_,{existingAttribute:J,deleteExtraAttributeValues:s}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced attribute "${_.name}"!`))}catch(ie){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync attribute "${_.name}"! - ${ie.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${u.length}" attributes!`))}if(Ne){let y=await sa(e,Ne);o=o||!y}if(I&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${I.length}" enrichers...`)),await _bluebird.map.call(void 0, I,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing enricher "${y.title}"...`));try{await Is(e,{enricher:y,identifierByName:ft,dataSubjectsByName:Ve}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced enricher "${y.title}"!`))}catch(_){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync enricher "${y.title}"! - ${_.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${I.length}" enrichers!`))),d&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${d.length}" identifiers...`)),await _bluebird.map.call(void 0, d,async y=>{let _=ft[y.name];if(!_)throw new Error(`Failed to find identifier with name: ${y.type}. Should have been auto-created by cli.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing identifier "${y.type}"...`));try{await Cs(e,{identifier:y,dataSubjectsByName:Ve,identifierId:_.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced identifier "${y.type}"!`))}catch(J){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync identifier "${y.type}"! - ${J.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${d.length}" identifiers!`))),c){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${c.length}" actions...`));let y=await Ut(e);await _bluebird.map.call(void 0, c,async _=>{let J=y.find(ie=>ie.type===_.type);if(!J)throw new Error(`Failed to find action with type: ${_.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing action "${_.type}"...`));try{await Xs(e,{action:_,actionId:J.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action "${_.type}"!`))}catch(ie){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action "${_.type}"! - ${ie.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${c.length}" actions!`))}if(m){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${m.length}" data subjects...`));let y=await It(e);await _bluebird.map.call(void 0, m,async _=>{let J=y.find(ie=>ie.type===_.type);if(!J)throw new Error(`Failed to find data subject with type: ${_.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing data subject "${_.type}"...`));try{await _s(e,{dataSubject:_,dataSubjectId:J.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data subject "${_.type}"!`))}catch(ie){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data subject "${_.type}"! - ${ie.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${m.length}" data subjects!`))}if(q){let y=await Js(e,q,n);o=o||!y}if(ct){let y=await Ns(e,ct);o=o||!y}if(mt){let y=await Os(e,mt);o=o||!y}if(ut){let y=await qs(e,ut);o=o||!y}let je=[];if(z){let{success:y,dataSiloTitleToId:_}=await bs(z,e,{dataSubjectsByName:Ve,apiKeysByTitle:Rt,pageSize:i});_optionalChain([z, 'optionalAccess', _52 => _52.forEach, 'call', _53 => _53(J=>{J["deletion-dependencies"]&&je.push([_[J.title],J["deletion-dependencies"]])})]),o=o||!y}if(je.length>0&&await xs(e,je),Re){let y=await ua(e,Re);o=o||!y}return o}async function yA(t,{promptRunId:e,promptRunMessages:i=[],...r}){let{addMessagesToPromptRun:{promptRun:n}}=await p(t,Zr,{input:{...r,...e,promptRunMessages:i.map(({content:s,...o})=>({...o,message:s}))}});return n.id}function bl(t,e){return new (0, _graphqlrequest.GraphQLClient)(`${t}/graphql`,{headers:{...e,version:_chunk44J2TVZUcjs.m}})}function Ca(t,e){return bl(t,{Authorization:`Bearer ${e}`})}var _got = require('got'); var _got2 = _interopRequireDefault(_got);async function $A(t,e,i){let r=Ca(t,e),{organization:n}=await p(r,nr),{customerUrl:s}=n.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");return _got2.default.extend({prefixUrl:s,headers:{Authorization:`Bearer ${e}`,...i?{"X-Sombra-Authorization":`Bearer ${i}`}:{}}})}function DA(t){return _got2.default.extend({prefixUrl:t})}async function GA(t,{id:e,bundleType:i}){await p(t,Ao,{airgapBundleId:e,bundleType:i})}async function vA(t,{id:e,bundleType:i}){await p(t,Io,{airgapBundleId:e,bundleType:i})}async function UA(t,e){let i=await p(t,Xn,{dataSiloId:e,type:"DATA_SILO_DISCOVERY"}),{plugins:r,totalCount:n}=i.plugins;return n===0&&(_chunkZUNVPK23cjs.a.error("No active data silo plugins found for this data silo."),process.exit(1)),r[0]}var en=20;async function ha(t){let e=[],i=0,r=!1;do{let{assessmentForms:{nodes:n}}=await p(t,Sr,{first:en,offset:i});e.push(...n),i+=en,r=n.length===en}while(r);return e.sort((n,s)=>n.title.localeCompare(s.title))}var tn=20;async function Ia(t){let e=[],i=0,r=!1;do{let{assessmentFormTemplates:{nodes:n}}=await p(t,Rr,{first:tn,offset:i});e.push(...n),i+=tn,r=n.length===tn}while(r);return e.sort((n,s)=>n.title.localeCompare(s.title))}var nn=20;async function WA(t){let e=[],i=0,r=!1;do{let{attributeKeys:{nodes:n}}=await p(t,rr,{first:nn,offset:i});e.push(...n),i+=nn,r=n.length===nn}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}var rn=20;async function on(t,e=_privacytypes.ConsentTrackerStatus.Live){let i=[],r=0,n=await oe(t),s=!1;do{let{cookies:{nodes:o}}=await p(t,uo,{first:rn,offset:r,airgapBundleId:n,status:e});i.push(...o),r+=rn,s=o.length===rn}while(s);return i.sort((o,l)=>o.name.localeCompare(l.name))}async function Aa(t){let{translatedMessages:e}=await p(t,Cr,{});return e}var sn=20;async function Pa(t){let e=[],i=0,r=!1;do{let{preferenceTopics:{nodes:n}}=await p(t,Er,{first:sn,offset:i});e.push(...n),i+=sn,r=n.length===sn}while(r);return e.sort((n,s)=>`${n.slug}:${n.purpose.trackingType}`.localeCompare(`${s.slug}:${s.purpose.trackingType}`))}async function Sa(t){let e=await Pt(t),{privacyCenter:{themeStr:i,...r}}=await p(t,Ko,{url:e});return[{...r,theme:JSON.parse(i)}]}async function Ta(t){let[e,i]=await Promise.all([Nt(t),Pa(t)]);return e.map(r=>{let n=i.filter(s=>s.purpose.trackingType===r.trackingType);return{...r,topics:n}})}var an=50;async function PP(t,{requestId:e}){let i=[],r=0,n=!1;do{let{requestEnrichers:{nodes:s}}=await p(t,Ir,{first:an,offset:r,requestId:e});i.push(...s),r+=an,n=s.length===an}while(n);return i}var pn=50;async function RP(t,{requestId:e}){let i=[],r=0,n=!1;do{let{requestIdentifiers:{nodes:s}}=await p(t,Qr,{first:pn,offset:r,requestIds:[e]});i.push(...s),r+=pn,n=s.length===pn}while(n);return i}var _iots = require('io-ts'); var xe = _interopRequireWildcard(_iots); var D = _interopRequireWildcard(_iots); var W = _interopRequireWildcard(_iots); var ne = _interopRequireWildcard(_iots);var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);var Ea="7.180",ql=xe.type({id:xe.string,name:xe.string,value:xe.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.IdentifierType)}),ln=50,Ol= exports.ie =xe.type({identifiers:xe.array(ql)});async function kP(t,e,{requestId:i}){let r=[],n=0,s=!1,{organization:{sombra:{version:o}}}=await p(t,gs);if(o&&_semver2.default.lt(o,Ea))throw new Error(`Please upgrade Sombra to ${Ea} or greater to use this command.`);do{let l;try{l=await e.post("v1/request-identifiers",{json:{first:ln,offset:n,requestId:i}}).json()}catch(c){throw new Error(`Failed to fetch request identifiers: ${_optionalChain([c, 'optionalAccess', _54 => _54.response, 'optionalAccess', _55 => _55.body])||_optionalChain([c, 'optionalAccess', _56 => _56.message])}`)}let{identifiers:u}=_typeutils.decodeCodec.call(void 0, Ol,l);r.push(...u),n+=ln,s=u.length===ln}while(s);return r}var _internationalization = require('@transcend-io/internationalization');var QP=D.intersection([D.type({id:D.string,createdAt:D.string,email:D.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction),link:D.string,isSilent:D.boolean,origin:_typeutils.valuesOf.call(void 0, _privacytypes.RequestOrigin),isTest:D.boolean,coreIdentifier:D.string,details:D.string,locale:_typeutils.valuesOf.call(void 0, _internationalization.LanguageKey),status:_typeutils.valuesOf.call(void 0, _privacytypes.RequestStatus),subjectType:D.string,country:D.union([D.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode)]),countrySubDivision:D.union([D.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)]),attributeValues:D.array(D.type({id:D.string,attributeKey:D.type({name:D.string,id:D.string}),name:D.string}))}),D.partial({daysRemaining:D.union([D.null,D.number])})]),Jt=50;async function BP(t,{actions:e=[],statuses:i=[],origins:r=[],text:n,createdAtBefore:s,createdAtAfter:o,isTest:l,isSilent:u,isClosed:c,requestIds:d=[]}={}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching requests..."));let m=new Date().getTime(),g=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),I=[],A=0,V=!1;do{let{requests:{nodes:P,totalCount:j}}=await p(t,gr,{first:Jt,offset:A,filterBy:{text:n,type:e.length>0?e:void 0,status:i.length>0?i:void 0,origin:r.length>0?r:void 0,isTest:l,isSilent:u,isClosed:c,createdAtBefore:s?s.toISOString():void 0,createdAtAfter:o?o.toISOString():void 0}});A===0&&j>Jt&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${j} requests`)),g.start(j,0)),I.push(...P),A+=Jt,g.update(A),V=P.length===Jt}while(V);g.stop();let q=new Date().getTime()-m;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${I.length} request in "${q/1e3}" seconds.`));let K=I;return d&&d.length>0&&(K=K.filter(P=>d.includes(P.id)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Filtered down to ${K.length} requests based on ${d.length} provided IDs.`))),K}var cn=20;async function YP(t){let e=[],i=0,r=!1;do{let{users:{nodes:n}}=await p(t,Br,{first:cn,offset:i});e.push(...n),i+=cn,r=n.length===cn}while(r);return e.sort((n,s)=>n.email.localeCompare(s.email))}var mn=100;async function Kl(t){let e=[],i=0,r=!1;do{let{catalogs:{nodes:n}}=await p(t,qn,{first:mn,offset:i});e.push(...n),i+=mn,r=n.length===mn}while(r);return e.sort((n,s)=>n.integrationName.localeCompare(s.integrationName))}async function zP(t){let e=await Kl(t),i=e.reduce((n,s)=>Object.assign(n,{[s.integrationName]:s.title}),{}),r=e.reduce((n,s)=>Object.assign(n,{[s.integrationName]:s.hasApiFunctionality}),{});return{catalogs:e,serviceToTitle:i,serviceToSupportedIntegration:r}}var un=20;async function tS(t,e){let i=[],r=0,n=!1;do{let{promptThreads:{nodes:s}}=await p(t,mr,{first:un,offset:r,filterBy:e});i.push(...s),r+=un,n=s.length===un}while(n);return i.sort((s,o)=>s.threadId.localeCompare(o.threadId))}var Xt=100;async function Vl(t,{requestId:e,dataSiloId:i,requestStatuses:r,statuses:n,skipLog:s=!1}){let o=new Date().getTime(),l=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),u=[],c=0,d=!1;do{let{requestDataSilos:{nodes:I,totalCount:A}}=await p(t,qr,{first:Xt,offset:c,filterBy:{dataSiloId:i,requestId:e,status:n,requestStatus:r}});u.push(...I),c===0&&A>Xt&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${A} requests`)),l.start(A,0)),c+=Xt,d=I.length===Xt,l.update(c)}while(d);l.stop();let g=new Date().getTime()-o;return s||_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${u.length} request data silos in "${g/1e3}" seconds.`)),u}async function pS(t,{requestId:e,dataSiloId:i}){let r=await Vl(t,{requestId:e,dataSiloId:i,skipLog:!0});if(r.length!==1)throw new Error(`Failed to find RequestDataSilo with requestId:${e},dataSiloId:${i}`);return r[0]}async function uS(t,{dataSiloId:e}){let{listReducedRequestsForDataSilo:{totalCount:i}}=await p(t,Or,{input:{dataSiloId:e,isResolved:!1}});return i}async function yS(t,e,i){let r=[],n=null,s=!1;do{let o=await p(t,Vr,{filterBy:{...i},first:e,after:_nullishCoalesce(n, () => (void 0))}),{bulkRequestFiles:{nodes:l,pageInfo:u}}=o;r.push(...l),s=u.hasNextPage,n=u.endCursor}while(s);return r.sort((o,l)=>o.remoteId.localeCompare(l.remoteId))}async function AS(t,{email:e,password:i}){let{determineLoginMethod:{loginMethod:r}}=await p(t,gi,{email:e}),n=await t.rawRequest(jo,{email:e,password:i,publicKey:r.sombraPublicKey}),{login:{user:s}}=n.data,o=n.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 PS(t,{email:e,roleId:i}){let{determineLoginMethod:{loginMethod:r}}=await p(t,gi,{email:e,userId:i});await t.rawRequest(Yo,{id:i,publicKey:r.sombraPublicKey})}async function RS(t,e){let{createApiKey:{apiKey:i}}=await p(t,Hn,{input:e});return i}async function $S(t,e){await p(t,Wn,{id:e})}var ba=W.type({dependsOnQuestionReferenceId:W.string,comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator),comparisonOperands:W.array(W.string)}),Wl= exports.ze =W.recursion("AssessmentNestedRule",t=>W.intersection([W.type({logicOperator:_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),W.partial({rules:W.array(ba),nestedRules:W.array(t)})])),zl= exports.Ae =W.partial({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction),rule:ba,nestedRule:Wl});function fn(t){return _typeutils.decodeCodec.call(void 0, zl,t)}var tc=ne.intersection([ne.partial({riskAssignment:ne.partial({riskLevelId:ne.string,riskMatrixRowId:ne.string,riskMatrixColumnId:ne.string})}),ne.type({comparisonOperands:ne.array(ne.string),comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)})]);function gn(t){return _typeutils.decodeCodec.call(void 0, tc,t)}function pe(t){let e=[];return t.map(i=>{let r=e.find(n=>n.key===i.attributeKey.name);return r===void 0?(r={key:i.attributeKey.name,values:[i.name]},e.push(r)):r.values.push(i.name),e}),e}function yn(t){return t.map(({country:e,countrySubDivision:i})=>({country:e,...i?{countrySubDivision:i}:{}}))}var oc=["dataSilos","enrichers","templates","apiKeys"];async function RT(t,{dataSiloIds:e,integrationNames:i,debug:r,resources:n=oc,pageSize:s,skipDatapoints:o,includeGuessedCategories:l,skipSubDatapoints:u,trackerStatuses:c=Object.values(_privacytypes.ConsentTrackerStatus)}){if(e.length>0&&i.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[d,m,g,I,A,V,z,q,K,P,j,_e,Y,Oe,ee,le,Re,Ge,Ne,ve,ce,ct,mt,ut,dt,ft,Ve,Rt,je,y,_,J,ie]=await Promise.all([n.includes("dataSilos")||n.includes("dataSubjects")?It(t):[],n.includes("apiKeys")?Gt({},t,!0):[],n.includes("dataSilos")?ws(t,{ids:e,integrationNames:i,pageSize:s,debug:r,includeGuessedCategories:l,skipDatapoints:o,skipSubDatapoints:u}):[],n.includes("enrichers")?bi(t):[],n.includes("dataFlows")?[...c.includes(_privacytypes.ConsentTrackerStatus.Live)?await Je(t,_privacytypes.ConsentTrackerStatus.Live):[],...c.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await Je(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],n.includes("cookies")?[...c.includes(_privacytypes.ConsentTrackerStatus.Live)?await on(t,_privacytypes.ConsentTrackerStatus.Live):[],...c.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await on(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],n.includes("customFields")?We(t):[],n.includes("templates")?Qi(t):[],n.includes("identifiers")?$i(t):[],n.includes("actions")?Ut(t):[],n.includes("businessEntities")?Mt(t):[],n.includes("processingActivities")?Wt(t):[],n.includes("consentManager")?Ds(t):void 0,n.includes("consentManager")?Lt(t):[],n.includes("prompts")?Ye(t):[],n.includes("promptPartials")?Ft(t):[],n.includes("promptGroups")?Qt(t):[],n.includes("agents")?Bt(t):[],n.includes("agentFunctions")?Vt(t):[],n.includes("agentFiles")?jt(t):[],n.includes("vendors")?Yt(t):[],n.includes("dataCategories")?Zt(t):[],n.includes("processingPurposes")?Ht(t):[],n.includes("actionItems")?Kt(t,{type:[_privacytypes.ActionItemCode.Onboarding]}):[],n.includes("actionItemCollections")?et(t):[],n.includes("teams")?_t(t):[],n.includes("policies")?vt(t):[],n.includes("privacyCenters")?Sa(t):[],n.includes("messages")?Aa(t):[],n.includes("partitions")?St(t):[],n.includes("assessments")?ha(t):[],n.includes("assessmentTemplates")?Ia(t):[],n.includes("purposes")?Ta(t):[]]),gt=n.includes("consentManager")&&Y?await Ls(t,Y.id):void 0,G={},va=_chunk44J2TVZUcjs.a.call(void 0, g.map(([{apiKeys:f}])=>f.map(({title:C})=>C))),An=Object.values(m).filter(({title:f})=>n.includes("apiKeys")?!0:va.includes(f));if(An.length>0&&n.includes("apiKeys")&&(G["api-keys"]=An.map(({title:f})=>({title:f}))),y.length>0&&n.includes("partitions")&&(G.partitions=y.map(({name:f,partition:C})=>({name:f,partition:C}))),Y&&n.includes("consentManager")&&(G["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:gt?{primaryColor:gt.primaryColor||void 0,fontColor:gt.fontColor||void 0,privacyPolicy:gt.privacyPolicy||void 0,prompt:gt.prompt}:void 0,experiences:Oe.map(f=>({name:f.name,displayName:f.displayName||void 0,regions:f.regions.map(C=>({countrySubDivision:C.countrySubDivision||void 0,country:C.country||void 0})),onConsentExpiry:f.onConsentExpiry,consentExpiry:f.consentExpiry,operator:f.operator,displayPriority:f.displayPriority,viewState:f.viewState,purposes:f.purposes.map(C=>({trackingType:C.trackingType})),optedOutPurposes:f.optedOutPurposes.map(C=>({trackingType:C.trackingType})),browserLanguages:f.browserLanguages,browserTimeZones:f.browserTimeZones}))}),_.length>0&&n.includes("assessments")&&(G.assessments=_.map(({title:f,assessmentGroup:C,sections:S,creator:T,description:E,status:R,assignees:w,externalAssignees:b,reviewers:O,isLocked:v,isArchived:U,isExternallyCreated:N,dueDate:L,createdAt:Z,assignedAt:me,submittedAt:ge,approvedAt:ye,rejectedAt:Ce,titleIsInternal:B,retentionSchedule:te,attributeValues:$e,resources:yt,syncedRows:Me})=>({title:f,group:C.title,sections:S.map(({title:X,status:he,questions:re,assignees:$,isReviewed:x,externalAssignees:H})=>({title:X,status:he,questions:re.map(({title:Ue,type:ei,subType:se,placeholder:ue,description:Fe,isRequired:qa,referenceId:Oa,displayLogic:Pn,riskLogic:Na,riskCategories:Ma,riskFramework:Ua,answerOptions:Fa,selectedAnswers:Qa,allowedMimeTypes:Ba,allowSelectOther:Ka,syncModel:Va,syncColumn:ja,attributeKey:Ya,requireRiskEvaluation:Za,requireRiskMatrixEvaluation:Ha})=>{let Ie=Pn?fn(Pn):void 0;return{title:Ue,type:ei,"sub-type":se,placeholder:ue,description:Fe,"is-required":qa,"reference-id":Oa,"display-logic":Ie&&Object.keys(Ie).length>0?{action:Ie.action,rule:Ie.rule?{"depends-on-question-reference-id":Ie.rule.dependsOnQuestionReferenceId,"comparison-operator":Ie.rule.comparisonOperator,"comparison-operands":Ie.rule.comparisonOperands}:void 0,"nested-rule":Ie.nestedRule?{"logic-operator":Ie.nestedRule.logicOperator,rules:(Ie.nestedRule.rules||[]).map(de=>({"depends-on-question-reference-id":de.dependsOnQuestionReferenceId,"comparison-operator":de.comparisonOperator,"comparison-operands":de.comparisonOperands}))}:void 0}:void 0,"risk-logic":Na.map(de=>{let ti=gn(de);return{"risk-level":_optionalChain([ti, 'access', _57 => _57.riskAssignment, 'optionalAccess', _58 => _58.riskLevelId]),"comparison-operands":ti.comparisonOperands,"comparison-operator":ti.comparisonOperator}}),"risk-categories":Ma.map(({title:de})=>de),"risk-framework":_optionalChain([Ua, 'optionalAccess', _59 => _59.title]),"answer-options":Fa.map(({value:de})=>({value:de})),"selected-answers":Qa.map(({value:de})=>de),"allowed-mime-types":Ba,"allow-select-other":Ka,"sync-model":Va||void 0,"sync-column":ja||void 0,"attribute-key":_optionalChain([Ya, 'optionalAccess', _60 => _60.name]),"require-risk-evaluation":Za,"require-risk-matrix-evaluation":Ha}}),assignees:$.map(({email:Ue})=>Ue),"external-assignees":H.map(({email:Ue})=>Ue),"is-reviewed":x})),creator:_optionalChain([T, 'optionalAccess', _61 => _61.email]),description:E,status:R,assignees:w.map(({email:X})=>X),"external-assignees":b.map(({email:X})=>X),reviewers:O.map(({email:X})=>X),locked:v,archived:U,external:N,"title-is-internal":B,"due-date":L||void 0,"created-at":Z||void 0,"assigned-at":me||void 0,"submitted-at":ge||void 0,"approved-at":ye||void 0,"rejected-at":Ce||void 0,"retention-schedule":te?{type:te.type,"duration-days":te.durationDays,operand:te.operation}:void 0,attributes:$e!==void 0&&$e.length>0?pe($e):void 0,resources:yt.map(({resourceType:X,title:he,name:re,category:$,type:x,purpose:H})=>({type:X,title:$?`${$} - ${re}`:H?`${H} - ${re}`:he||re||x||""})),rows:Me.map(({resourceType:X,title:he,name:re,category:$,type:x,purpose:H})=>({type:X,title:$?`${$} - ${re}`:H?`${H} - ${re}`:he||re||x||""}))}))),J.length>0&&n.includes("assessmentTemplates")&&(G["assessment-templates"]=J.map(({title:f,description:C,sections:S,status:T,source:E,creator:R,isLocked:w,isArchived:b,createdAt:O,retentionSchedule:v})=>({title:f,description:C,sections:S.map(({title:U,questions:N})=>({title:U,questions:N.map(({title:L,type:Z,subType:me,placeholder:ge,description:ye,isRequired:Ce,referenceId:B,displayLogic:te,riskLogic:$e,riskCategories:yt,riskFramework:Me,answerOptions:X,allowedMimeTypes:he,allowSelectOther:re,syncModel:$,syncColumn:x,attributeKey:H,requireRiskEvaluation:Ue,requireRiskMatrixEvaluation:ei})=>{let se=te?fn(te):void 0;return{title:L,type:Z,"sub-type":me,placeholder:ge,description:ye,"is-required":Ce,"reference-id":B,"display-logic":se&&Object.keys(se).length>0?{action:se.action,rule:se.rule?{"depends-on-question-reference-id":se.rule.dependsOnQuestionReferenceId,"comparison-operator":se.rule.comparisonOperator,"comparison-operands":se.rule.comparisonOperands}:void 0,"nested-rule":se.nestedRule?{"logic-operator":se.nestedRule.logicOperator,rules:(se.nestedRule.rules||[]).map(ue=>({"depends-on-question-reference-id":ue.dependsOnQuestionReferenceId,"comparison-operator":ue.comparisonOperator,"comparison-operands":ue.comparisonOperands}))}:void 0}:void 0,"risk-logic":$e.map(ue=>{let Fe=gn(ue);return{"risk-level":_optionalChain([Fe, 'access', _62 => _62.riskAssignment, 'optionalAccess', _63 => _63.riskLevelId]),"risk-matrix-row":_optionalChain([Fe, 'access', _64 => _64.riskAssignment, 'optionalAccess', _65 => _65.riskMatrixRowId]),"risk-matrix-column":_optionalChain([Fe, 'access', _66 => _66.riskAssignment, 'optionalAccess', _67 => _67.riskMatrixColumnId]),"comparison-operands":Fe.comparisonOperands,"comparison-operator":Fe.comparisonOperator}}),"risk-categories":yt.map(({title:ue})=>ue),"risk-framework":_optionalChain([Me, 'optionalAccess', _68 => _68.title]),"answer-options":X.map(({value:ue})=>({value:ue})),"allowed-mime-types":he,"allow-select-other":re,"sync-model":$||void 0,"sync-column":x||void 0,"attribute-key":_optionalChain([H, 'optionalAccess', _69 => _69.name]),"require-risk-evaluation":Ue,"require-risk-matrix-evaluation":ei}})})),status:T,source:E,creator:_optionalChain([R, 'optionalAccess', _70 => _70.email]),locked:w,archived:b,"created-at":O||void 0,"retention-schedule":v?{type:v.type,"duration-days":v.durationDays,operand:v.operation}:void 0}))),ee.length>0&&n.includes("prompts")&&(G.prompts=ee.map(({title:f,content:C})=>({title:f,content:C}))),le.length>0&&n.includes("promptPartials")&&(G["prompt-partials"]=le.map(({title:f,content:C})=>({title:f,content:C}))),Re.length>0&&n.includes("promptGroups")&&(G["prompt-groups"]=Re.map(({title:f,description:C,prompts:S})=>({title:f,description:C,prompts:S.map(({title:T})=>T)}))),ft.length>0&&n.includes("teams")&&(G.teams=ft.map(({name:f,description:C,ssoDepartment:S,ssoGroup:T,ssoTitle:E,users:R,scopes:w})=>({name:f,description:C,"sso-department":S||void 0,"sso-group":T||void 0,"sso-title":E||void 0,users:R.map(({email:b})=>b),scopes:w.map(({name:b})=>b)}))),d.length>0&&n.includes("dataSubjects")&&(G["data-subjects"]=d.map(({type:f,title:C,active:S,adminDashboardDefaultSilentMode:T,actions:E})=>({type:f,title:_optionalChain([C, 'optionalAccess', _71 => _71.defaultMessage]),active:S,adminDashboardDefaultSilentMode:T,actions:E.map(({type:R})=>R)}))),Ve.length>0&&(G.policies=Ve.map(({title:f,versions:C,disabledLocales:S})=>({title:_optionalChain([f, 'optionalAccess', _72 => _72.defaultMessage]),content:_optionalChain([C, 'optionalAccess', _73 => _73[0], 'optionalAccess', _74 => _74.content, 'optionalAccess', _75 => _75.defaultMessage]),disabledLocales:S}))),je.length>0&&(G.messages=je.map(({id:f,defaultMessage:C,targetReactIntlId:S,translations:T})=>({id:f,defaultMessage:C,targetReactIntlId:S||void 0,translations:T.reduce((E,{locale:R,value:w})=>Object.assign(E,{[R]:w}),{})}))),Rt.length>0){let f=Rt[0];G["privacy-center"]={isDisabled:f.isDisabled,showPrivacyRequestButton:f.showPrivacyRequestButton,showPolicies:f.showPolicies,showTrackingTechnologies:f.showTrackingTechnologies,showCookies:f.showCookies,showDataFlows:f.showDataFlows,showConsentManager:f.showConsentManager,showManageYourPrivacy:f.showManageYourPrivacy,showMarketingPreferences:f.showMarketingPreferences,locales:f.locales,defaultLocale:f.defaultLocale,preferBrowserDefaultLocale:f.preferBrowserDefaultLocale,supportEmail:f.supportEmail||void 0,replyToEmail:f.replyToEmail||void 0,useNoReplyEmailAddress:f.useNoReplyEmailAddress,useCustomEmailDomain:f.useCustomEmailDomain,transformAccessReportJsonToCsv:f.transformAccessReportJsonToCsv,theme:f.theme}}if(j.length>0&&n.includes("businessEntities")&&(G["business-entities"]=j.map(({title:f,description:C,address:S,headquarterCountry:T,headquarterSubDivision:E,dataProtectionOfficerName:R,dataProtectionOfficerEmail:w,attributeValues:b})=>({title:f,description:C||void 0,address:S||void 0,headquarterCountry:T||void 0,headquarterSubDivision:E||void 0,dataProtectionOfficerName:R||void 0,dataProtectionOfficerEmail:w||void 0,attributes:b!==void 0&&b.length>0?pe(b):void 0}))),_e.length>0&&n.includes("processingActivities")&&(G["processing-activities"]=_e.map(({title:f,description:C,securityMeasureDetails:S,controllerships:T,storageRegions:E,transferRegions:R,retentionType:w,retentionPeriod:b,dataProtectionImpactAssessmentLink:O,dataProtectionImpactAssessmentStatus:v,attributeValues:U,dataSilos:N,dataSubjects:L,teams:Z,owners:me,processingPurposeSubCategories:ge,dataSubCategories:ye,saaSCategories:Ce})=>({title:f,description:C,securityMeasureDetails:_nullishCoalesce(S, () => (void 0)),controllerships:T.length>0?T:void 0,storageRegions:E.length>0?yn(E):void 0,transferRegions:R.length>0?yn(R):void 0,retentionType:w,retentionPeriod:w===_privacytypes.RetentionType.StatedPeriod?b:void 0,dataProtectionImpactAssessmentLink:_nullishCoalesce(O, () => (void 0)),dataProtectionImpactAssessmentStatus:v,attributes:U!==void 0&&U.length>0?pe(U):void 0,dataSiloTitles:N.length>0?N.map(({title:B})=>B):void 0,dataSubjectTypes:L.length>0?L.map(({type:B})=>B):void 0,teamNames:Z.length>0?Z.map(({name:B})=>B):void 0,ownerEmails:me.length>0?me.map(({email:B})=>B):void 0,processingSubPurposes:ge.length>0?ge.map(({name:B,purpose:te})=>({purpose:te,...B?{name:B}:{}})):void 0,dataSubCategories:ye.length>0?ye.map(({name:B,category:te})=>({category:te,...B?{name:B}:{}})):void 0,saaSCategories:Ce.length>0?Ce.map(({title:B})=>B):void 0}))),P.length>0&&n.includes("actions")&&(G.actions=P.map(({type:f,skipSecondaryIfNoFiles:C,skipDownloadableStep:S,requiresReview:T,regionList:E,regionDetectionMethod:R,waitingPeriod:w})=>({type:f,...f===_privacytypes.RequestAction.Erasure?{skipSecondaryIfNoFiles:C,skipDownloadableStep:S}:{},requiresReview:T,waitingPeriod:w,regionDetectionMethod:R,regionList:E.length>0?E:void 0}))),K.length>0&&n.includes("identifiers")&&(G.identifiers=K.map(({name:f,type:C,regex:S,selectOptions:T,privacyCenterVisibility:E,isRequiredInForm:R,placeholder:w,displayTitle:b,dataSubjects:O,displayDescription:v,displayOrder:U,isUniqueOnPreferenceStore:N})=>({name:f,type:C,regex:S,selectOptions:T.length>0?T:void 0,privacyCenterVisibility:E.length>0?E:void 0,isRequiredInForm:R,placeholder:w||void 0,dataSubjects:O.length>0?O.map(({type:L})=>L):void 0,displayTitle:_optionalChain([b, 'optionalAccess', _76 => _76.defaultMessage]),displayDescription:_optionalChain([v, 'optionalAccess', _77 => _77.defaultMessage]),displayOrder:U,isUniqueOnPreferenceStore:N}))),Ge.length>0&&n.includes("agents")&&(G.agents=Ge.map(({name:f,agentId:C,description:S,instructions:T,codeInterpreterEnabled:E,retrievalEnabled:R,prompt:w,largeLanguageModel:b,teams:O,owners:v,agentFunctions:U,agentFiles:N})=>({name:f,agentId:C,description:S||void 0,instructions:T,codeInterpreterEnabled:E,retrievalEnabled:R,prompt:_optionalChain([w, 'optionalAccess', _78 => _78.title]),"large-language-model":{name:b.name,client:b.client},teams:O&&O.length>0?O.map(({name:L})=>L):void 0,owners:v&&v.length>0?v.map(({email:L})=>L):void 0,"agent-functions":U&&U.length>0?U.map(({name:L})=>L):void 0,"agent-files":N&&N.length>0?N.map(({name:L})=>L):void 0}))),ut.length>0&&n.includes("actionItems")&&(G["action-items"]=ut.map(({teams:f,users:C,customerExperienceActionItemIds:[S],dueDate:T,priority:E,resolved:R,collections:w,notes:b,link:O,title:v,type:U,attributeValues:N})=>({teams:f.map(({name:L})=>L),users:C.map(({email:L})=>L),dueDate:T||void 0,title:v,notes:b,customerExperienceActionItemId:S,collections:w.map(({title:L})=>L),link:O,priority:E||void 0,resolved:R,type:U,attributes:N!==void 0&&N.length>0?pe(N):void 0}))),dt.length>0&&n.includes("actionItemCollections")&&(G["action-item-collections"]=dt.map(({title:f,description:C,hidden:S,productLine:T})=>({title:f,description:C||void 0,hidden:S,productLine:T}))),Ne.length>0&&n.includes("agentFunctions")&&(G["agent-functions"]=Ne.map(({name:f,description:C,parameters:S})=>({name:f,description:C,parameters:JSON.stringify(S)}))),ve.length>0&&n.includes("agentFiles")&&(G["agent-files"]=ve.map(({name:f,description:C,fileId:S,size:T,purpose:E})=>({name:f,description:C,fileId:S,size:T,purpose:E}))),ce.length>0&&n.includes("vendors")&&(G.vendors=ce.map(({title:f,description:C,dataProcessingAgreementLink:S,contactName:T,contactPhone:E,address:R,headquarterCountry:w,headquarterSubDivision:b,websiteUrl:O,businessEntity:v,teams:U,owners:N,attributeValues:L})=>({title:f,description:C||void 0,dataProcessingAgreementLink:S||void 0,contactName:T||void 0,contactPhone:E||void 0,address:R||void 0,headquarterCountry:w||void 0,headquarterSubDivision:b||void 0,websiteUrl:O||void 0,businessEntity:_optionalChain([v, 'optionalAccess', _79 => _79.title]),teams:U&&U.length>0?U.map(({name:Z})=>Z):void 0,owners:N&&N.length>0?N.map(({email:Z})=>Z):void 0,attributes:L!==void 0&&L.length>0?pe(L):void 0}))),ct.length>0&&n.includes("dataCategories")&&(G["data-categories"]=ct.map(({name:f,category:C,description:S,regex:T,owners:E,teams:R,attributeValues:w})=>({name:f,category:C,description:S||void 0,regex:T||void 0,owners:E&&E.length>0?E.map(({email:b})=>b):void 0,teams:R&&R.length>0?R.map(({name:b})=>b):void 0,attributes:w!==void 0&&w.length>0?pe(w):void 0}))),mt.length>0&&n.includes("processingPurposes")&&(G["processing-purposes"]=mt.map(({name:f,purpose:C,description:S,owners:T,teams:E,attributeValues:R})=>({name:f,purpose:C,description:S||void 0,owners:T&&T.length>0?T.map(({email:w})=>w):void 0,teams:E&&E.length>0?E.map(({name:w})=>w):void 0,attributes:R!==void 0&&R.length>0?pe(R):void 0}))),A.length>0&&n.includes("dataFlows")&&(G["data-flows"]=A.map(({value:f,type:C,description:S,trackingType:T,service:E,status:R,owners:w,teams:b,attributeValues:O})=>({value:f,type:C,description:S||void 0,trackingPurposes:T,status:R,service:_optionalChain([E, 'optionalAccess', _80 => _80.integrationName]),owners:w.map(({email:v})=>v),teams:b.map(({name:v})=>v),attributes:O!==void 0&&O.length>0?pe(O):void 0}))),V.length>0&&n.includes("cookies")&&(G.cookies=V.map(({name:f,isRegex:C,description:S,trackingPurposes:T,service:E,status:R,owners:w,teams:b,attributeValues:O})=>({name:f,isRegex:C,description:S||void 0,trackingPurposes:T,status:R,service:_optionalChain([E, 'optionalAccess', _81 => _81.integrationName]),owners:w.map(({email:v})=>v),teams:b.map(({name:v})=>v),attributes:O!==void 0&&O.length>0?pe(O):void 0}))),z.length>0&&n.includes("customFields")&&(G.attributes=z.map(({description:f,name:C,type:S,values:T,enabledOn:E=[]})=>({description:f||void 0,resources:E,name:C,type:S,values:T.map(({name:R,color:w,description:b})=>({name:R,color:w||void 0,description:b}))}))),ie.length>0&&(G.purposes=ie.map(({name:f,description:C,trackingType:S,defaultConsent:T,configurable:E,showInConsentManager:R,isActive:w,displayOrder:b,optOutSignals:O,authLevel:v,topics:U,showInPrivacyCenter:N,title:L})=>({name:f,title:L,description:C||void 0,trackingType:S,"default-consent":T,configurable:E,"show-in-consent-manager":R,"show-in-privacy-center":N,"is-active":w,"display-order":b,"opt-out-signals":O.length>0?O:void 0,"auth-level":v||void 0,"preference-topics":U.map(({title:Z,type:me,displayDescription:ge,defaultConfiguration:ye,showInPrivacyCenter:Ce,preferenceOptionValues:B})=>({title:Z.defaultMessage,type:me,description:ge.defaultMessage,"default-configuration":ye,"show-in-privacy-center":Ce,...B.length>0?{options:B.map(({title:te,slug:$e})=>({title:te.defaultMessage,slug:$e}))}:{}}))}))),e.length===0&&q.length>0&&n.includes("templates")&&(G.templates=q.map(({title:f})=>({title:f}))),I.length>0&&n.includes("enrichers")&&(G.enrichers=I.map(({title:f,url:C,type:S,inputIdentifier:T,identifiers:E,actions:R,testRegex:w,dataSubjects:b,expirationDuration:O,lookerQueryTitle:v,transitionRequestStatus:U,phoneNumbers:N,regionList:L})=>({title:f,url:C||void 0,type:S,"input-identifier":_optionalChain([T, 'optionalAccess', _82 => _82.name]),"output-identifiers":E.map(({name:Z})=>Z),"privacy-actions":Object.values(_privacytypes.RequestAction).length===R.length?void 0:R,testRegex:w||void 0,lookerQueryTitle:v||void 0,expirationDuration:parseInt(O,10),transitionRequestStatus:U||void 0,phoneNumbers:N&&N.length>0?N:void 0,regionList:L&&L.length>0?L:void 0,"data-subjects":b.map(({type:Z})=>Z)}))),g.length>0&&n.includes("dataSilos")){let f=_chunk44J2TVZUcjs.e.call(void 0, d,"type");G["data-silos"]=g.map(([{title:C,description:S,url:T,type:E,outerType:R,apiKeys:w,notifyEmailAddress:b,identifiers:O,dependentDataSilos:v,owners:U,country:N,countrySubDivision:L,teams:Z,subjectBlocklist:me,isLive:ge,promptAVendorEmailSendFrequency:ye,promptAVendorEmailSendType:Ce,promptAVendorEmailIncludeIdentifiersAttachment:B,promptAVendorEmailCompletionLinkType:te,manualWorkRetryFrequency:$e,catalog:yt,attributeValues:Me,discoveredBy:X,businessEntities:he},re])=>({title:C,description:S,integrationName:E,"outer-type":R||void 0,url:T||void 0,"api-key-title":_optionalChain([w, 'access', _83 => _83[0], 'optionalAccess', _84 => _84.title]),"identity-keys":O.filter(({isConnected:$})=>$).map(({name:$})=>$),...v.length>0?{"deletion-dependencies":v.map(({title:$})=>$)}:{},...U.length>0?{owners:U.map(({email:$})=>$)}:{},...Z.length>0?{teams:Z.map(({name:$})=>$)}:{},...X.length>0?{discoveredBy:X.map(({title:$})=>$)}:{},...he.length>0?{businessEntities:he.map(({title:$})=>$)}:{},country:N||void 0,countrySubDivision:L||void 0,disabled:!ge,"data-subjects":me.length>0?Ts(me.map(({type:$})=>$),f):void 0,...yt.hasAvcFunctionality?{"email-settings":{"notify-email-address":b||void 0,"send-frequency":ye,"send-type":Ce,"include-identifiers-attachment":B,"completion-link-type":te,"manual-work-retry-frequency":$e}}:{},attributes:Me!==void 0&&Me.length>0?pe(Me):void 0,datapoints:re.map($=>({key:$.name,title:_optionalChain([$, 'access', _85 => _85.title, 'optionalAccess', _86 => _86.defaultMessage]),description:_optionalChain([$, 'access', _87 => _87.description, 'optionalAccess', _88 => _88.defaultMessage]),owners:$.owners.map(({email:x})=>x),teams:$.teams.map(({name:x})=>x),...$.path.length>0?{path:$.path}:{},..._optionalChain([$, 'access', _89 => _89.dataCollection, 'optionalAccess', _90 => _90.title])?{"data-collection-tag":$.dataCollection.title.defaultMessage}:{},...$.dbIntegrationQueries.length>0?{"privacy-action-queries":_chunk44J2TVZUcjs.f.call(void 0, _chunk44J2TVZUcjs.e.call(void 0, $.dbIntegrationQueries,"requestType"),x=>x.suggestedQuery||x.query||void 0)}:{},...$.subDataPoints.length>0?{fields:$.subDataPoints.map(x=>({key:x.name,description:x.description,purposes:x.purposes,categories:x.categories,...l&&x.pendingCategoryGuesses?{"guessed-categories":x.pendingCategoryGuesses.filter(H=>H.status==="PENDING").map(H=>({category:{name:H.category.name,category:H.category.category},status:H.status,confidence:H.confidence,classifierVersion:H.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":x.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":x.erasureRequestRedactionEnabled,attributes:x.attributeValues!==void 0&&x.attributeValues.length>0?pe(x.attributeValues):void 0})).sort((x,H)=>x.key.localeCompare(H.key))}:{},"privacy-actions":$.actionSettings.filter(({active:x})=>x).map(({type:x})=>x)})).sort(($,x)=>[..._nullishCoalesce($.path, () => ([])),$.key].join(".").localeCompare([..._nullishCoalesce(x.path, () => ([])),x.key].join(".")))}))}return G}async function xT(t,e){let{reportPromptRun:{promptRun:i}}=await p(t,Yr,{input:{...e,promptRunMessages:e.promptRunMessages.map(({content:r,...n})=>({...n,message:r}))}});return i.id}async function _T(t,e){await p(t,Ar,{requestEnricherId:e})}async function OT(t,e){await p(t,oo,{input:e})}var Cn=20;async function Da(t){let e=[],i=0,r=!1;do{let{softwareDevelopmentKits:{nodes:n}}=await p(t,or,{first:Cn,offset:i});e.push(...n),i+=Cn,r=n.length===Cn}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}var pc=100;async function lc(t,e){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:i}}=await p(t,ar,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created software development kit "${e.name}"!`)),i}async function cc(t,e){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:i}}=await p(t,sr,{input:{softwareDevelopmentKits:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} software development kits!`)),i}async function La(t,e,i=20){let r=!1,n=[];_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing software development kits..."));let s=await Da(t),o=_chunk44J2TVZUcjs.e.call(void 0, s,({name:m,codePackageType:g})=>JSON.stringify({name:m,codePackageType:g})),l=e.map(m=>[m,_optionalChain([o, 'access', _91 => _91[JSON.stringify({name:m.name,codePackageType:m.codePackageType})], 'optionalAccess', _92 => _92.id])]),u=l.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new software development kits...`)),await _bluebird.map.call(void 0, u,async m=>{let g=await lc(t,m);n.push(g)},{concurrency:i}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.length} software development kits!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create software development kits! - ${m.message}`))}let c=l.filter(m=>!!m[1]),d=_chunk44J2TVZUcjs.b.call(void 0, c,pc);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" software development kits...`)),await _bluebird.mapSeries.call(void 0, d,async m=>{try{let g=await cc(t,m.map(([{codePackageType:I,...A},V])=>({...A,id:V})));n.push(...g),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${c.length}" software development kits!`))}catch(g){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update software development kits! - ${g.message}`))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" software development kits!`))}),{softwareDevelopmentKits:n,success:!r}}var hn=20;async function ka(t){let e=[],i=0,r=!1;do{let{repositories:{nodes:n}}=await p(t,Vn,{first:hn,offset:i});e.push(...n),i+=hn,r=n.length===hn}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}var dc=100;async function fc(t,e){let{createRepository:{repository:i}}=await p(t,Yn,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created repository "${e.name}"!`)),i}async function gc(t,e){let{updateRepositories:{repositories:i}}=await p(t,jn,{input:{repositories:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} repositories!`)),i}async function _a(t,e,i=20){let r=!1,n=[],s=await ka(t),o=_chunk44J2TVZUcjs.e.call(void 0, s,"name"),l=e.map(m=>[m,_optionalChain([o, 'access', _93 => _93[m.name], 'optionalAccess', _94 => _94.id])]),u=l.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new repositories...`)),await _bluebird.map.call(void 0, u,async m=>{let g=await fc(t,m);n.push(g)},{concurrency:i}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.length} repositories!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create repositories! - ${m.message}`))}let c=l.filter(m=>!!m[1]),d=_chunk44J2TVZUcjs.b.call(void 0, c,dc);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" repositories...`)),await _bluebird.mapSeries.call(void 0, d,async m=>{try{let g=await gc(t,m.map(([I,A])=>({...I,id:A})));n.push(...g),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${c.length}" repositories!`))}catch(g){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update repositories! - ${g.message}`))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" repositories!`))}),{repositories:n,success:!r}}var In=20;async function Ga(t){let e=[],i=0,r=!1;do{let{codePackages:{nodes:n}}=await p(t,pr,{first:In,offset:i});e.push(...n),i+=In,r=n.length===In}while(r);return e.sort((n,s)=>n.name.localeCompare(s.name))}var hc=100,lt="%%%%";async function Ic(t,e){let{createCodePackage:{codePackage:i}}=await p(t,cr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created code package "${e.name}"!`)),i}async function Ac(t,e){let{updateCodePackages:{codePackages:i}}=await p(t,lr,{input:{codePackages:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} code packages!`)),i}async function SE(t,e,i=20){let r=!1,[n,{softwareDevelopmentKits:s}]=await Promise.all([Ga(t),La(t,_chunk44J2TVZUcjs.k.call(void 0, e.map(({type:g,softwareDevelopmentKits:I=[]})=>I.map(({name:A})=>({name:A,codePackageType:g}))).flat(),({name:g,codePackageType:I})=>`${g}${lt}${I}`),i),_a(t,_chunk44J2TVZUcjs.k.call(void 0, e,"repositoryName").map(({repositoryName:g})=>({name:g,url:`https://github.com/${g}`})))]),o=_chunk44J2TVZUcjs.e.call(void 0, s,({name:g,codePackageType:I})=>`${g}${lt}${I}`),l=_chunk44J2TVZUcjs.e.call(void 0, n,({name:g,type:I})=>`${g}${lt}${I}`),u=e.map(g=>[g,_optionalChain([l, 'access', _95 => _95[`${g.name}${lt}${g.type}`], 'optionalAccess', _96 => _96.id])]),c=u.filter(([,g])=>!g).map(([g])=>g);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new code packages...`)),await _bluebird.map.call(void 0, c,async({softwareDevelopmentKits:g,...I})=>{await Ic(t,{...I,...g?{softwareDevelopmentKitIds:_chunk44J2TVZUcjs.j.call(void 0, g.map(({name:A})=>{let V=o[`${A}${lt}${I.type}`];if(!V)throw new Error(`Failed to find SDK with name: "${A}"`);return V.id}))}:{}})},{concurrency:i}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${c.length} code packages!`))}catch(g){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create code packages! - ${g.message}`))}let d=u.filter(g=>!!g[1]);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" code packages...`));let m=_chunk44J2TVZUcjs.b.call(void 0, d,hc);return await _bluebird.mapSeries.call(void 0, m,async g=>{try{await Ac(t,g.map(([{softwareDevelopmentKits:I,repositoryName:A,...V},z])=>({...V,...I?{softwareDevelopmentKitIds:_chunk44J2TVZUcjs.j.call(void 0, I.map(({name:q})=>{let K=o[`${q}${lt}${V.type}`];if(!K)throw new Error(`Failed to find SDK with name: "${q}"`);return K.id}))}:{},id:z}))),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${g.length}" code packages!`))}catch(I){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update code packages! - ${I.message}`))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" code packages!`)),!r}var Sc=1e3;async function bE(t,e,i){let r=_chunk44J2TVZUcjs.b.call(void 0, i,Sc);await _bluebird.mapSeries.call(void 0, r,async n=>{await p(t,Jn,{pluginId:e,rawResults:n})})}exports.a = $n; exports.b = Ec; exports.c = wn; exports.d = Rc; exports.e = bn; exports.f = xn; exports.g = $c; exports.h = xc; exports.i = Dn; exports.j = kc; exports.k = Ln; exports.l = ni; exports.m = kn; exports.n = _n; exports.o = vc; exports.p = Gn; exports.q = vn; exports.r = qn; exports.s = On; exports.t = Nn; exports.u = Mn; exports.v = Un; exports.w = Fn; exports.x = Qn; exports.y = Bn; exports.z = Kn; exports.A = Vn; exports.B = jn; exports.C = Yn; exports.D = Zn; exports.E = Hn; exports.F = Wn; exports.G = Jn; exports.H = Xn; exports.I = tr; exports.J = ir; exports.K = nr; exports.L = rr; exports.M = or; exports.N = sr; exports.O = ar; exports.P = pr; exports.Q = lr; exports.R = cr; exports.S = mr; exports.T = dr; exports.U = fr; exports.V = gr; exports.W = cm; exports.X = mm; exports.Y = um; exports.Z = dm; exports._ = Cr; exports.$ = hr; exports.aa = Ir; exports.ba = Ar; exports.ca = hm; exports.da = li; exports.ea = Sr; exports.fa = Pm; exports.ga = Tr; exports.ha = Er; exports.ia = Rr; exports.ja = $r; exports.ka = wr; exports.la = br; exports.ma = xr; exports.na = Dr; exports.oa = Lr; exports.pa = kr; exports.qa = _r; exports.ra = Gr; exports.sa = vr; exports.ta = qr; exports.ua = _m; exports.va = Gm; exports.wa = Or; exports.xa = Nr; exports.ya = Mr; exports.za = Ur; exports.Aa = Mm; exports.Ba = Qr; exports.Ca = Br; exports.Da = Km; exports.Ea = Vr; exports.Fa = Yr; exports.Ga = Zr; exports.Ha = Hr; exports.Ia = Wr; exports.Ja = zr; exports.Ka = Jr; exports.La = Xr; exports.Ma = eo; exports.Na = to; exports.Oa = io; exports.Pa = no; exports.Qa = ro; exports.Ra = oo; exports.Sa = so; exports.Ta = ao; exports.Ua = po; exports.Va = lo; exports.Wa = co; exports.Xa = mo; exports.Ya = uo; exports.Za = fo; exports._a = go; exports.$a = yo; exports.ab = Co; exports.bb = ho; exports.cb = Io; exports.db = Ao; exports.eb = Po; exports.fb = So; exports.gb = To; exports.hb = Eo; exports.ib = Ro; exports.jb = $o; exports.kb = wo; exports.lb = bo; exports.mb = xo; exports.nb = Do; exports.ob = Lo; exports.pb = ko; exports.qb = _o; exports.rb = Go; exports.sb = vo; exports.tb = Oo; exports.ub = No; exports.vb = Mo; exports.wb = Uo; exports.xb = Fo; exports.yb = Qo; exports.zb = Bo; exports.Ab = Ko; exports.Bb = Vo; exports.Cb = gi; exports.Db = jo; exports.Eb = Yo; exports.Fb = du; exports.Gb = Zo; exports.Hb = Ho; exports.Ib = Wo; exports.Jb = zo; exports.Kb = Jo; exports.Lb = Xo; exports.Mb = es; exports.Nb = ts; exports.Ob = is; exports.Pb = ns; exports.Qb = rs; exports.Rb = os; exports.Sb = ss; exports.Tb = as; exports.Ub = ps; exports.Vb = ls; exports.Wb = cs; exports.Xb = ms; exports.Yb = us; exports.Zb = ds; exports._b = fs; exports.$b = gs; exports.ac = p; exports.bc = $i; exports.cc = ys; exports.dc = Cs; exports.ec = bi; exports.fc = Is; exports.gc = As; exports.hc = It; exports.ic = Ps; exports.jc = Ss; exports.kc = Ts; exports.lc = $s; exports.mc = yp; exports.nc = Cp; exports.oc = ws; exports.pc = bs; exports.qc = xs; exports.rc = Ds; exports.sc = oe; exports.tc = Lt; exports.uc = hp; exports.vc = Sf; exports.wc = Ls; exports.xc = Pp; exports.yc = ks; exports.zc = _t; exports.Ac = _s; exports.Bc = Tp; exports.Cc = Gt; exports.Dc = Ye; exports.Ec = jf; exports.Fc = Rp; exports.Gc = $p; exports.Hc = vs; exports.Ic = Pt; exports.Jc = Ze; exports.Kc = vt; exports.Lc = xp; exports.Mc = qs; exports.Nc = kp; exports.Oc = Os; exports.Pc = Ns; exports.Qc = St; exports.Rc = Us; exports.Sc = Nt; exports.Tc = Op; exports.Uc = Bs; exports.Vc = Np; exports.Wc = Mp; exports.Xc = We; exports.Yc = Mt; exports.Zc = Up; exports._c = Fp; exports.$c = Ys; exports.ad = Je; exports.bd = Qp; exports.cd = Bp; exports.dd = Js; exports.ed = Xs; exports.fd = Qi; exports.gd = ea; exports.hd = Ut; exports.id = Ft; exports.jd = Qt; exports.kd = Bt; exports.ld = Zp; exports.md = Hp; exports.nd = ta; exports.od = Wp; exports.pd = zp; exports.qd = na; exports.rd = Kt; exports.sd = Jp; exports.td = Xp; exports.ud = sa; exports.vd = Vt; exports.wd = il; exports.xd = nl; exports.yd = aa; exports.zd = jt; exports.Ad = ol; exports.Bd = sl; exports.Cd = pa; exports.Dd = Yt; exports.Ed = pl; exports.Fd = ll; exports.Gd = la; exports.Hd = Zt; exports.Id = ml; exports.Jd = ul; exports.Kd = ca; exports.Ld = Ht; exports.Md = fl; exports.Nd = gl; exports.Od = ma; exports.Pd = Wt; exports.Qd = ua; exports.Rd = uA; exports.Sd = yA; exports.Td = bl; exports.Ud = Ca; exports.Vd = $A; exports.Wd = DA; exports.Xd = GA; exports.Yd = vA; exports.Zd = UA; exports._d = ha; exports.$d = Ia; exports.ae = WA; exports.be = on; exports.ce = Aa; exports.de = Pa; exports.ee = Sa; exports.fe = Ta; exports.ge = PP; exports.he = RP; exports.ie = Ol; exports.je = kP; exports.ke = QP; exports.le = BP; exports.me = YP; exports.ne = Kl; exports.oe = zP; exports.pe = tS; exports.qe = Vl; exports.re = pS; exports.se = uS; exports.te = yS; exports.ue = AS; exports.ve = PS; exports.we = RS; exports.xe = $S; exports.ye = ba; exports.ze = Wl; exports.Ae = zl; exports.Be = fn; exports.Ce = tc; exports.De = gn; exports.Ee = oc; exports.Fe = RT; exports.Ge = xT; exports.He = _T; exports.Ie = OT; exports.Je = lc; exports.Ke = cc; exports.Le = La; exports.Me = fc; exports.Ne = gc; exports.Oe = _a; exports.Pe = Ic; exports.Qe = Ac; exports.Re = SE; exports.Se = bE;
|
|
2920
|
+
//# sourceMappingURL=chunk-UONUI4AB.cjs.map
|