@probo/n8n-nodes-probo 0.178.0 → 0.180.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nodes/Probo/Probo.node.js +20 -5
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/control/index.d.ts +1 -3
- package/dist/nodes/Probo/actions/control/index.js +1 -19
- package/dist/nodes/Probo/actions/control/index.js.map +1 -1
- package/dist/nodes/Probo/actions/cookieBanner/activate.operation.js +50 -0
- package/dist/nodes/Probo/actions/cookieBanner/activate.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieBanner/create.operation.js +164 -0
- package/dist/nodes/Probo/actions/cookieBanner/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieBanner/deactivate.operation.js +50 -0
- package/dist/nodes/Probo/actions/cookieBanner/deactivate.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{snapshot → cookieBanner}/delete.operation.js +9 -9
- package/dist/nodes/Probo/actions/cookieBanner/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieBanner/get.operation.js +50 -0
- package/dist/nodes/Probo/actions/cookieBanner/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{snapshot → cookieBanner}/getAll.operation.js +17 -10
- package/dist/nodes/Probo/actions/cookieBanner/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieBanner/index.d.ts +12 -0
- package/dist/nodes/Probo/actions/cookieBanner/index.js +134 -0
- package/dist/nodes/Probo/actions/cookieBanner/index.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieBanner/publish.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieBanner/publish.operation.js +51 -0
- package/dist/nodes/Probo/actions/cookieBanner/publish.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieBanner/translate.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieBanner/translate.operation.js +83 -0
- package/dist/nodes/Probo/actions/cookieBanner/translate.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieBanner/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieBanner/update.operation.js +171 -0
- package/dist/nodes/Probo/actions/cookieBanner/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieCategory/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieCategory/create.operation.js +116 -0
- package/dist/nodes/Probo/actions/cookieCategory/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieCategory/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieCategory/delete.operation.js +41 -0
- package/dist/nodes/Probo/actions/cookieCategory/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieCategory/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/{snapshot → cookieCategory}/get.operation.js +15 -13
- package/dist/nodes/Probo/actions/cookieCategory/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieCategory/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieCategory/getAll.operation.js +94 -0
- package/dist/nodes/Probo/actions/cookieCategory/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieCategory/index.d.ts +9 -0
- package/dist/nodes/Probo/actions/cookieCategory/index.js +107 -0
- package/dist/nodes/Probo/actions/cookieCategory/index.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieCategory/reorder.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieCategory/reorder.operation.js +57 -0
- package/dist/nodes/Probo/actions/cookieCategory/reorder.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieCategory/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieCategory/update.operation.js +151 -0
- package/dist/nodes/Probo/actions/cookieCategory/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieConsentRecord/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieConsentRecord/get.operation.js +46 -0
- package/dist/nodes/Probo/actions/cookieConsentRecord/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieConsentRecord/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookieConsentRecord/getAll.operation.js +170 -0
- package/dist/nodes/Probo/actions/cookieConsentRecord/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookieConsentRecord/index.d.ts +5 -0
- package/dist/nodes/Probo/actions/{snapshot → cookieConsentRecord}/index.js +7 -25
- package/dist/nodes/Probo/actions/cookieConsentRecord/index.js.map +1 -0
- package/dist/nodes/Probo/actions/cookiePattern/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookiePattern/create.operation.js +147 -0
- package/dist/nodes/Probo/actions/cookiePattern/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookiePattern/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookiePattern/delete.operation.js +41 -0
- package/dist/nodes/Probo/actions/cookiePattern/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookiePattern/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookiePattern/get.operation.js +48 -0
- package/dist/nodes/Probo/actions/cookiePattern/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookiePattern/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookiePattern/getAll.operation.js +94 -0
- package/dist/nodes/Probo/actions/cookiePattern/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{snapshot → cookiePattern}/index.d.ts +4 -2
- package/dist/nodes/Probo/actions/cookiePattern/index.js +107 -0
- package/dist/nodes/Probo/actions/cookiePattern/index.js.map +1 -0
- package/dist/nodes/Probo/actions/cookiePattern/move.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookiePattern/move.operation.js +69 -0
- package/dist/nodes/Probo/actions/cookiePattern/move.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/cookiePattern/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/cookiePattern/update.operation.js +144 -0
- package/dist/nodes/Probo/actions/cookiePattern/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/index.js +8 -2
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/risk/index.d.ts +2 -1
- package/dist/nodes/Probo/actions/risk/index.js +10 -1
- package/dist/nodes/Probo/actions/risk/index.js.map +1 -1
- package/dist/nodes/Probo/actions/risk/publish.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/publish.operation.js +81 -0
- package/dist/nodes/Probo/actions/risk/publish.operation.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/Probo/actions/control/linkSnapshot.operation.js +0 -63
- package/dist/nodes/Probo/actions/control/linkSnapshot.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/control/unlinkSnapshot.operation.js +0 -53
- package/dist/nodes/Probo/actions/control/unlinkSnapshot.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/snapshot/create.operation.js +0 -127
- package/dist/nodes/Probo/actions/snapshot/create.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/snapshot/delete.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/snapshot/get.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/snapshot/getAll.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/snapshot/index.js.map +0 -1
- /package/dist/nodes/Probo/actions/{control/linkSnapshot.operation.d.ts → cookieBanner/activate.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{snapshot → cookieBanner}/create.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{control/unlinkSnapshot.operation.d.ts → cookieBanner/deactivate.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{snapshot → cookieBanner}/delete.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{snapshot → cookieBanner}/get.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{snapshot → cookieBanner}/getAll.operation.d.ts +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.translate = exports.publish = exports.deactivate = exports.activate = exports.delete = exports.update = exports.getAll = exports.get = exports.create = exports.description = void 0;
|
|
37
|
+
const createOp = __importStar(require("./create.operation"));
|
|
38
|
+
exports.create = createOp;
|
|
39
|
+
const getOp = __importStar(require("./get.operation"));
|
|
40
|
+
exports.get = getOp;
|
|
41
|
+
const getAllOp = __importStar(require("./getAll.operation"));
|
|
42
|
+
exports.getAll = getAllOp;
|
|
43
|
+
const updateOp = __importStar(require("./update.operation"));
|
|
44
|
+
exports.update = updateOp;
|
|
45
|
+
const deleteOp = __importStar(require("./delete.operation"));
|
|
46
|
+
exports.delete = deleteOp;
|
|
47
|
+
const activateOp = __importStar(require("./activate.operation"));
|
|
48
|
+
exports.activate = activateOp;
|
|
49
|
+
const deactivateOp = __importStar(require("./deactivate.operation"));
|
|
50
|
+
exports.deactivate = deactivateOp;
|
|
51
|
+
const publishOp = __importStar(require("./publish.operation"));
|
|
52
|
+
exports.publish = publishOp;
|
|
53
|
+
const translateOp = __importStar(require("./translate.operation"));
|
|
54
|
+
exports.translate = translateOp;
|
|
55
|
+
exports.description = [
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Operation',
|
|
58
|
+
name: 'operation',
|
|
59
|
+
type: 'options',
|
|
60
|
+
noDataExpression: true,
|
|
61
|
+
displayOptions: {
|
|
62
|
+
show: {
|
|
63
|
+
resource: ['cookieBanner'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
options: [
|
|
67
|
+
{
|
|
68
|
+
name: 'Activate',
|
|
69
|
+
value: 'activate',
|
|
70
|
+
description: 'Activate a cookie banner',
|
|
71
|
+
action: 'Activate a cookie banner',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Create',
|
|
75
|
+
value: 'create',
|
|
76
|
+
description: 'Create a new cookie banner',
|
|
77
|
+
action: 'Create a cookie banner',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Deactivate',
|
|
81
|
+
value: 'deactivate',
|
|
82
|
+
description: 'Deactivate a cookie banner',
|
|
83
|
+
action: 'Deactivate a cookie banner',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Delete',
|
|
87
|
+
value: 'delete',
|
|
88
|
+
description: 'Delete a cookie banner',
|
|
89
|
+
action: 'Delete a cookie banner',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'Get',
|
|
93
|
+
value: 'get',
|
|
94
|
+
description: 'Get a cookie banner',
|
|
95
|
+
action: 'Get a cookie banner',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Get Many',
|
|
99
|
+
value: 'getAll',
|
|
100
|
+
description: 'Get many cookie banners',
|
|
101
|
+
action: 'Get many cookie banners',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'Publish',
|
|
105
|
+
value: 'publish',
|
|
106
|
+
description: 'Publish a new cookie banner version',
|
|
107
|
+
action: 'Publish a cookie banner version',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'Translate',
|
|
111
|
+
value: 'translate',
|
|
112
|
+
description: 'Upsert a cookie banner translation',
|
|
113
|
+
action: 'Translate a cookie banner',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'Update',
|
|
117
|
+
value: 'update',
|
|
118
|
+
description: 'Update an existing cookie banner',
|
|
119
|
+
action: 'Update a cookie banner',
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
default: 'create',
|
|
123
|
+
},
|
|
124
|
+
...createOp.description,
|
|
125
|
+
...getOp.description,
|
|
126
|
+
...getAllOp.description,
|
|
127
|
+
...updateOp.description,
|
|
128
|
+
...deleteOp.description,
|
|
129
|
+
...activateOp.description,
|
|
130
|
+
...deactivateOp.description,
|
|
131
|
+
...publishOp.description,
|
|
132
|
+
...translateOp.description,
|
|
133
|
+
];
|
|
134
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/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;gBACf,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,yBAAyB;aACjC;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,qCAAqC;gBAClD,MAAM,EAAE,iCAAiC;aACzC;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,2BAA2B;aACnC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,UAAU,CAAC,WAAW;IACzB,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,SAAS,CAAC,WAAW;IACxB,GAAG,WAAW,CAAC,WAAW;CAC1B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Cookie Banner ID',
|
|
9
|
+
name: 'cookieBannerId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['cookieBanner'],
|
|
14
|
+
operation: ['publish'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the cookie banner to publish a new version for',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const cookieBannerId = this.getNodeParameter('cookieBannerId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
mutation PublishCookieBannerVersion($input: PublishCookieBannerVersionInput!) {
|
|
26
|
+
publishCookieBannerVersion(input: $input) {
|
|
27
|
+
cookieBannerVersion {
|
|
28
|
+
id
|
|
29
|
+
version
|
|
30
|
+
state
|
|
31
|
+
createdAt
|
|
32
|
+
updatedAt
|
|
33
|
+
}
|
|
34
|
+
cookieBanner {
|
|
35
|
+
id
|
|
36
|
+
name
|
|
37
|
+
origin
|
|
38
|
+
state
|
|
39
|
+
createdAt
|
|
40
|
+
updatedAt
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { cookieBannerId } });
|
|
46
|
+
return {
|
|
47
|
+
json: responseData,
|
|
48
|
+
pairedItem: { item: itemIndex },
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=publish.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/cookieBanner/publish.operation.ts"],"names":[],"mappings":";;;AAkCA,0BAkCC;AArDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0DAA0D;QACvE,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAEpF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;EAoBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;IAE5F,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Cookie Banner ID',
|
|
9
|
+
name: 'cookieBannerId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['cookieBanner'],
|
|
14
|
+
operation: ['translate'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the cookie banner',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Language',
|
|
23
|
+
name: 'language',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['cookieBanner'],
|
|
28
|
+
operation: ['translate'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The language code for the translation (e.g. "fr", "de")',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Translations',
|
|
37
|
+
name: 'translations',
|
|
38
|
+
type: 'string',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['cookieBanner'],
|
|
42
|
+
operation: ['translate'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
default: '',
|
|
46
|
+
description: 'The translations as a JSON string',
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
async function execute(itemIndex) {
|
|
51
|
+
const cookieBannerId = this.getNodeParameter('cookieBannerId', itemIndex);
|
|
52
|
+
const language = this.getNodeParameter('language', itemIndex);
|
|
53
|
+
const translations = this.getNodeParameter('translations', itemIndex);
|
|
54
|
+
const query = `
|
|
55
|
+
mutation UpsertCookieBannerTranslation($input: UpsertCookieBannerTranslationInput!) {
|
|
56
|
+
upsertCookieBannerTranslation(input: $input) {
|
|
57
|
+
cookieBannerTranslation {
|
|
58
|
+
id
|
|
59
|
+
language
|
|
60
|
+
translations
|
|
61
|
+
createdAt
|
|
62
|
+
updatedAt
|
|
63
|
+
}
|
|
64
|
+
cookieBanner {
|
|
65
|
+
id
|
|
66
|
+
name
|
|
67
|
+
origin
|
|
68
|
+
state
|
|
69
|
+
createdAt
|
|
70
|
+
updatedAt
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, {
|
|
76
|
+
input: { cookieBannerId, language, translations },
|
|
77
|
+
});
|
|
78
|
+
return {
|
|
79
|
+
json: responseData,
|
|
80
|
+
pairedItem: { item: itemIndex },
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=translate.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/cookieBanner/translate.operation.ts"],"names":[],"mappings":";;;AA8DA,0BAsCC;AArFD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;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AAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAC5D,KAAK,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE;KACjD,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Cookie Banner ID',
|
|
9
|
+
name: 'cookieBannerId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['cookieBanner'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the cookie banner to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Name',
|
|
23
|
+
name: 'name',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['cookieBanner'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The name of the cookie banner',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Cookie Policy URL',
|
|
36
|
+
name: 'cookiePolicyUrl',
|
|
37
|
+
type: 'string',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['cookieBanner'],
|
|
41
|
+
operation: ['update'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The URL to the cookie policy',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Consent Expiry Days',
|
|
49
|
+
name: 'consentExpiryDays',
|
|
50
|
+
type: 'number',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['cookieBanner'],
|
|
54
|
+
operation: ['update'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: 0,
|
|
58
|
+
description: 'Number of days before consent expires (0 to leave unchanged)',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Consent Mode',
|
|
62
|
+
name: 'consentMode',
|
|
63
|
+
type: 'options',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['cookieBanner'],
|
|
67
|
+
operation: ['update'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
name: '(Unchanged)',
|
|
73
|
+
value: '',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Opt In',
|
|
77
|
+
value: 'OPT_IN',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Opt Out',
|
|
81
|
+
value: 'OPT_OUT',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
default: '',
|
|
85
|
+
description: 'The consent mode for the cookie banner',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Default Language',
|
|
89
|
+
name: 'defaultLanguage',
|
|
90
|
+
type: 'string',
|
|
91
|
+
displayOptions: {
|
|
92
|
+
show: {
|
|
93
|
+
resource: ['cookieBanner'],
|
|
94
|
+
operation: ['update'],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
default: '',
|
|
98
|
+
description: 'The default language for the cookie banner',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Additional Fields',
|
|
102
|
+
name: 'additionalFields',
|
|
103
|
+
type: 'collection',
|
|
104
|
+
placeholder: 'Add Field',
|
|
105
|
+
default: {},
|
|
106
|
+
displayOptions: {
|
|
107
|
+
show: {
|
|
108
|
+
resource: ['cookieBanner'],
|
|
109
|
+
operation: ['update'],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
options: [
|
|
113
|
+
{
|
|
114
|
+
displayName: 'Privacy Policy URL',
|
|
115
|
+
name: 'privacyPolicyUrl',
|
|
116
|
+
type: 'string',
|
|
117
|
+
default: '',
|
|
118
|
+
description: 'The URL to the privacy policy. Leave empty to clear the existing value.',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
];
|
|
123
|
+
async function execute(itemIndex) {
|
|
124
|
+
const cookieBannerId = this.getNodeParameter('cookieBannerId', itemIndex);
|
|
125
|
+
const name = this.getNodeParameter('name', itemIndex, '');
|
|
126
|
+
const cookiePolicyUrl = this.getNodeParameter('cookiePolicyUrl', itemIndex, '');
|
|
127
|
+
const consentExpiryDays = this.getNodeParameter('consentExpiryDays', itemIndex, 0);
|
|
128
|
+
const consentMode = this.getNodeParameter('consentMode', itemIndex, '');
|
|
129
|
+
const defaultLanguage = this.getNodeParameter('defaultLanguage', itemIndex, '');
|
|
130
|
+
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {});
|
|
131
|
+
const query = `
|
|
132
|
+
mutation UpdateCookieBanner($input: UpdateCookieBannerInput!) {
|
|
133
|
+
updateCookieBanner(input: $input) {
|
|
134
|
+
cookieBanner {
|
|
135
|
+
id
|
|
136
|
+
name
|
|
137
|
+
origin
|
|
138
|
+
state
|
|
139
|
+
privacyPolicyUrl
|
|
140
|
+
cookiePolicyUrl
|
|
141
|
+
consentExpiryDays
|
|
142
|
+
consentMode
|
|
143
|
+
showBranding
|
|
144
|
+
defaultLanguage
|
|
145
|
+
createdAt
|
|
146
|
+
updatedAt
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
`;
|
|
151
|
+
const input = { cookieBannerId };
|
|
152
|
+
if (name)
|
|
153
|
+
input.name = name;
|
|
154
|
+
if (cookiePolicyUrl)
|
|
155
|
+
input.cookiePolicyUrl = cookiePolicyUrl;
|
|
156
|
+
if (consentExpiryDays)
|
|
157
|
+
input.consentExpiryDays = consentExpiryDays;
|
|
158
|
+
if (consentMode)
|
|
159
|
+
input.consentMode = consentMode;
|
|
160
|
+
if (defaultLanguage)
|
|
161
|
+
input.defaultLanguage = defaultLanguage;
|
|
162
|
+
if (additionalFields.privacyPolicyUrl !== undefined) {
|
|
163
|
+
input.privacyPolicyUrl = additionalFields.privacyPolicyUrl === '' ? null : additionalFields.privacyPolicyUrl;
|
|
164
|
+
}
|
|
165
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
166
|
+
return {
|
|
167
|
+
json: responseData,
|
|
168
|
+
pairedItem: { item: itemIndex },
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/cookieBanner/update.operation.ts"],"names":[],"mappings":";;;AAuIA,0BAmDC;AA3KD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uCAAuC;QACpD,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,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,GAAG;;;;;;;;;;;;;;;;;;;EAmBb,CAAC;IAEF,MAAM,KAAK,GAA4B,EAAE,cAAc,EAAE,CAAC;IAC1D,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAC5B,IAAI,eAAe;QAAE,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;IAC7D,IAAI,iBAAiB;QAAE,KAAK,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IACnE,IAAI,WAAW;QAAE,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;IACjD,IAAI,eAAe;QAAE,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;IAC7D,IAAI,gBAAgB,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACrD,KAAK,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;IAC9G,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Cookie Banner ID',
|
|
9
|
+
name: 'cookieBannerId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['cookieCategory'],
|
|
14
|
+
operation: ['create'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the cookie banner',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Name',
|
|
23
|
+
name: 'name',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['cookieCategory'],
|
|
28
|
+
operation: ['create'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The name of the cookie category',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Slug',
|
|
37
|
+
name: 'slug',
|
|
38
|
+
type: 'string',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['cookieCategory'],
|
|
42
|
+
operation: ['create'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
default: '',
|
|
46
|
+
description: 'The slug of the cookie category',
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Description',
|
|
51
|
+
name: 'description',
|
|
52
|
+
type: 'string',
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['cookieCategory'],
|
|
56
|
+
operation: ['create'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
default: '',
|
|
60
|
+
description: 'The description of the cookie category',
|
|
61
|
+
required: true,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Rank',
|
|
65
|
+
name: 'rank',
|
|
66
|
+
type: 'number',
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: {
|
|
69
|
+
resource: ['cookieCategory'],
|
|
70
|
+
operation: ['create'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
default: 0,
|
|
74
|
+
description: 'The display order rank of the cookie category',
|
|
75
|
+
required: true,
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
async function execute(itemIndex) {
|
|
79
|
+
const cookieBannerId = this.getNodeParameter('cookieBannerId', itemIndex);
|
|
80
|
+
const name = this.getNodeParameter('name', itemIndex);
|
|
81
|
+
const slug = this.getNodeParameter('slug', itemIndex);
|
|
82
|
+
const description = this.getNodeParameter('description', itemIndex);
|
|
83
|
+
const rank = this.getNodeParameter('rank', itemIndex);
|
|
84
|
+
const query = `
|
|
85
|
+
mutation CreateCookieCategory($input: CreateCookieCategoryInput!) {
|
|
86
|
+
createCookieCategory(input: $input) {
|
|
87
|
+
cookieCategoryEdge {
|
|
88
|
+
node {
|
|
89
|
+
id
|
|
90
|
+
name
|
|
91
|
+
slug
|
|
92
|
+
description
|
|
93
|
+
kind
|
|
94
|
+
rank
|
|
95
|
+
gcmConsentTypes
|
|
96
|
+
posthogConsent
|
|
97
|
+
createdAt
|
|
98
|
+
updatedAt
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
cookieBanner {
|
|
102
|
+
id
|
|
103
|
+
name
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, {
|
|
109
|
+
input: { cookieBannerId, name, slug, description, rank },
|
|
110
|
+
});
|
|
111
|
+
return {
|
|
112
|
+
json: responseData,
|
|
113
|
+
pairedItem: { item: itemIndex },
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/cookieCategory/create.operation.ts"],"names":[],"mappings":";;;AA0FA,0BA2CC;AAtHD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL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V,WAAW,EAAE,+CAA+C;QAC5D,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IACpF,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;IAChE,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;IAChE,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,CAAW,CAAC;IAC9E,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;IAEhE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;EAuBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAC5D,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;KACxD,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Cookie Category ID',
|
|
9
|
+
name: 'cookieCategoryId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['cookieCategory'],
|
|
14
|
+
operation: ['delete'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the cookie category to delete',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const cookieCategoryId = this.getNodeParameter('cookieCategoryId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
mutation DeleteCookieCategory($input: DeleteCookieCategoryInput!) {
|
|
26
|
+
deleteCookieCategory(input: $input) {
|
|
27
|
+
deletedCookieCategoryId
|
|
28
|
+
cookieBanner {
|
|
29
|
+
id
|
|
30
|
+
name
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { cookieCategoryId } });
|
|
36
|
+
return {
|
|
37
|
+
json: responseData,
|
|
38
|
+
pairedItem: { item: itemIndex },
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/cookieCategory/delete.operation.ts"],"names":[],"mappings":";;;AAkCA,0BAwBC;AA3CD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,SAAS,CAAW,CAAC;IAExF,MAAM,KAAK,GAAG;;;;;;;;;;EAUb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAE9F,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|