@transcend-io/cli 4.30.0 → 4.32.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/README.md +26 -14
- package/build/graphql/fetchIdentifiers.d.ts +1 -1
- package/build/graphql/fetchIdentifiers.d.ts.map +1 -1
- package/build/graphql/fetchIdentifiers.js +5 -4
- package/build/graphql/fetchIdentifiers.js.map +1 -1
- package/build/graphql/gqls/action.d.ts +1 -0
- package/build/graphql/gqls/action.d.ts.map +1 -1
- package/build/graphql/gqls/action.js +8 -1
- package/build/graphql/gqls/action.js.map +1 -1
- package/build/graphql/gqls/identifier.d.ts +1 -0
- package/build/graphql/gqls/identifier.d.ts.map +1 -1
- package/build/graphql/gqls/identifier.js +8 -1
- package/build/graphql/gqls/identifier.js.map +1 -1
- package/build/graphql/index.d.ts +3 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +3 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +6 -2
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/graphql/sleepPromise.d.ts +8 -0
- package/build/graphql/sleepPromise.d.ts.map +1 -0
- package/build/graphql/sleepPromise.js +16 -0
- package/build/graphql/sleepPromise.js.map +1 -0
- package/build/graphql/syncAction.d.ts +15 -0
- package/build/graphql/syncAction.d.ts.map +1 -0
- package/build/graphql/syncAction.js +27 -0
- package/build/graphql/syncAction.js.map +1 -0
- package/build/graphql/syncConfigurationToTranscend.d.ts.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.js +58 -3
- package/build/graphql/syncConfigurationToTranscend.js.map +1 -1
- package/build/graphql/syncIdentifier.d.ts +20 -0
- package/build/graphql/syncIdentifier.d.ts.map +1 -0
- package/build/graphql/syncIdentifier.js +33 -0
- package/build/graphql/syncIdentifier.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.syncIdentifier = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const sleepPromise_1 = require("./sleepPromise");
|
|
7
|
+
/**
|
|
8
|
+
* Sync the consent manager
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @param options - Options
|
|
12
|
+
*/
|
|
13
|
+
async function syncIdentifier(client, { identifier, dataSubjectsByName, identifierId, }) {
|
|
14
|
+
await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.UPDATE_IDENTIFIER, {
|
|
15
|
+
input: {
|
|
16
|
+
id: identifierId,
|
|
17
|
+
selectOptions: identifier.selectOptions,
|
|
18
|
+
isRequiredInForm: identifier.isRequiredInForm,
|
|
19
|
+
regex: identifier.regex,
|
|
20
|
+
placeholder: identifier.placeholder,
|
|
21
|
+
displayTitle: identifier.displayTitle,
|
|
22
|
+
displayDescription: identifier.displayDescription,
|
|
23
|
+
privacyCenterVisibility: identifier.privacyCenterVisibility,
|
|
24
|
+
dataSubjectIds: identifier.dataSubjects
|
|
25
|
+
? identifier.dataSubjects.map((type) => dataSubjectsByName[type].id)
|
|
26
|
+
: undefined,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
// TODO: https://transcend.height.app/T-23578 - bulk update with single invalidation
|
|
30
|
+
await (0, sleepPromise_1.sleepPromise)(1000 * 3);
|
|
31
|
+
}
|
|
32
|
+
exports.syncIdentifier = syncIdentifier;
|
|
33
|
+
//# sourceMappingURL=syncIdentifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncIdentifier.js","sourceRoot":"","sources":["../../src/graphql/syncIdentifier.ts"],"names":[],"mappings":";;;AAEA,iCAA2C;AAC3C,6DAA0D;AAE1D,iDAA8C;AAE9C;;;;;GAKG;AACI,KAAK,UAAU,cAAc,CAClC,MAAqB,EACrB,EACE,UAAU,EACV,kBAAkB,EAClB,YAAY,GAQb;IAED,MAAM,IAAA,uCAAkB,EAAC,MAAM,EAAE,wBAAiB,EAAE;QAClD,KAAK,EAAE;YACL,EAAE,EAAE,YAAY;YAChB,aAAa,EAAE,UAAU,CAAC,aAAa;YACvC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;YAC7C,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB;YACjD,uBAAuB,EAAE,UAAU,CAAC,uBAAuB;YAC3D,cAAc,EAAE,UAAU,CAAC,YAAY;gBACrC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;gBACpE,CAAC,CAAC,SAAS;SACd;KACF,CAAC,CAAC;IAEH,oFAAoF;IACpF,MAAM,IAAA,2BAAY,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC;AAC/B,CAAC;AAjCD,wCAiCC"}
|