@transcend-io/cli 6.9.0 → 6.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +88 -12
  2. package/build/cli-request-upload.js +1 -1
  3. package/build/cli-request-upload.js.map +1 -1
  4. package/build/cli-upload-consent-preferences.js +2 -2
  5. package/build/cli-upload-consent-preferences.js.map +1 -1
  6. package/build/cli-upload-preferences.d.ts +3 -0
  7. package/build/cli-upload-preferences.d.ts.map +1 -0
  8. package/build/cli-upload-preferences.js +79 -0
  9. package/build/cli-upload-preferences.js.map +1 -0
  10. package/build/consent-manager/index.d.ts +1 -0
  11. package/build/consent-manager/index.d.ts.map +1 -1
  12. package/build/consent-manager/index.js +1 -0
  13. package/build/consent-manager/index.js.map +1 -1
  14. package/build/consent-manager/{uploadConsentPreferences.d.ts → uploadConsents.d.ts} +2 -2
  15. package/build/consent-manager/uploadConsents.d.ts.map +1 -0
  16. package/build/consent-manager/{uploadConsentPreferences.js → uploadConsents.js} +4 -4
  17. package/build/consent-manager/uploadConsents.js.map +1 -0
  18. package/build/graphql/createSombraGotInstance.d.ts.map +1 -1
  19. package/build/graphql/createSombraGotInstance.js.map +1 -1
  20. package/build/graphql/fetchAllPreferenceTopics.d.ts +28 -0
  21. package/build/graphql/fetchAllPreferenceTopics.d.ts.map +1 -0
  22. package/build/graphql/fetchAllPreferenceTopics.js +32 -0
  23. package/build/graphql/fetchAllPreferenceTopics.js.map +1 -0
  24. package/build/graphql/fetchAllPurposes.d.ts +25 -0
  25. package/build/graphql/fetchAllPurposes.d.ts.map +1 -0
  26. package/build/graphql/fetchAllPurposes.js +36 -0
  27. package/build/graphql/fetchAllPurposes.js.map +1 -0
  28. package/build/graphql/fetchConsentManagerId.d.ts +0 -7
  29. package/build/graphql/fetchConsentManagerId.d.ts.map +1 -1
  30. package/build/graphql/fetchConsentManagerId.js +1 -12
  31. package/build/graphql/fetchConsentManagerId.js.map +1 -1
  32. package/build/graphql/gqls/consentManager.d.ts +0 -1
  33. package/build/graphql/gqls/consentManager.d.ts.map +1 -1
  34. package/build/graphql/gqls/consentManager.js +1 -12
  35. package/build/graphql/gqls/consentManager.js.map +1 -1
  36. package/build/graphql/gqls/index.d.ts +2 -0
  37. package/build/graphql/gqls/index.d.ts.map +1 -1
  38. package/build/graphql/gqls/index.js +2 -0
  39. package/build/graphql/gqls/index.js.map +1 -1
  40. package/build/graphql/gqls/preferenceTopic.d.ts +2 -0
  41. package/build/graphql/gqls/preferenceTopic.d.ts.map +1 -0
  42. package/build/graphql/gqls/preferenceTopic.js +33 -0
  43. package/build/graphql/gqls/preferenceTopic.js.map +1 -0
  44. package/build/graphql/gqls/purpose.d.ts +2 -0
  45. package/build/graphql/gqls/purpose.d.ts.map +1 -0
  46. package/build/graphql/gqls/purpose.js +35 -0
  47. package/build/graphql/gqls/purpose.js.map +1 -0
  48. package/build/graphql/index.d.ts +2 -0
  49. package/build/graphql/index.d.ts.map +1 -1
  50. package/build/graphql/index.js +2 -0
  51. package/build/graphql/index.js.map +1 -1
  52. package/build/graphql/syncConsentManager.js +2 -1
  53. package/build/graphql/syncConsentManager.js.map +1 -1
  54. package/build/graphql/syncCookies.js +1 -1
  55. package/build/graphql/syncCookies.js.map +1 -1
  56. package/build/graphql/syncDataFlows.js +2 -2
  57. package/build/graphql/syncDataFlows.js.map +1 -1
  58. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.d.ts +19 -0
  59. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.d.ts.map +1 -0
  60. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.js +56 -0
  61. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.js.map +1 -0
  62. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.d.ts +20 -0
  63. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.d.ts.map +1 -0
  64. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.js +58 -0
  65. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.js.map +1 -0
  66. package/build/preference-management/codecs.d.ts +369 -0
  67. package/build/preference-management/codecs.d.ts.map +1 -0
  68. package/build/preference-management/codecs.js +122 -0
  69. package/build/preference-management/codecs.js.map +1 -0
  70. package/build/preference-management/getPreferenceUpdatesFromRow.d.ts +37 -0
  71. package/build/preference-management/getPreferenceUpdatesFromRow.d.ts.map +1 -0
  72. package/build/preference-management/getPreferenceUpdatesFromRow.js +144 -0
  73. package/build/preference-management/getPreferenceUpdatesFromRow.js.map +1 -0
  74. package/build/preference-management/getPreferencesForIdentifiers.d.ts +21 -0
  75. package/build/preference-management/getPreferencesForIdentifiers.d.ts.map +1 -0
  76. package/build/preference-management/getPreferencesForIdentifiers.js +113 -0
  77. package/build/preference-management/getPreferencesForIdentifiers.js.map +1 -0
  78. package/build/preference-management/index.d.ts +12 -0
  79. package/build/preference-management/index.d.ts.map +1 -0
  80. package/build/preference-management/index.js +28 -0
  81. package/build/preference-management/index.js.map +1 -0
  82. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.d.ts +17 -0
  83. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.d.ts.map +1 -0
  84. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.js +86 -0
  85. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.js.map +1 -0
  86. package/build/preference-management/parsePreferenceIdentifiersFromCsv.d.ts +18 -0
  87. package/build/preference-management/parsePreferenceIdentifiersFromCsv.d.ts.map +1 -0
  88. package/build/preference-management/parsePreferenceIdentifiersFromCsv.js +97 -0
  89. package/build/preference-management/parsePreferenceIdentifiersFromCsv.js.map +1 -0
  90. package/build/preference-management/parsePreferenceManagementCsv.d.ts +25 -0
  91. package/build/preference-management/parsePreferenceManagementCsv.d.ts.map +1 -0
  92. package/build/preference-management/parsePreferenceManagementCsv.js +145 -0
  93. package/build/preference-management/parsePreferenceManagementCsv.js.map +1 -0
  94. package/build/preference-management/parsePreferenceTimestampsFromCsv.d.ts +16 -0
  95. package/build/preference-management/parsePreferenceTimestampsFromCsv.d.ts.map +1 -0
  96. package/build/preference-management/parsePreferenceTimestampsFromCsv.js +65 -0
  97. package/build/preference-management/parsePreferenceTimestampsFromCsv.js.map +1 -0
  98. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.d.ts +2 -0
  99. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.d.ts.map +1 -0
  100. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.js +408 -0
  101. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.js.map +1 -0
  102. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.d.ts +2 -0
  103. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.d.ts.map +1 -0
  104. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.js +428 -0
  105. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.js.map +1 -0
  106. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.d.ts +2 -0
  107. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.d.ts.map +1 -0
  108. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.js +549 -0
  109. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.js.map +1 -0
  110. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.d.ts +33 -0
  111. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.d.ts.map +1 -0
  112. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.js +166 -0
  113. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.js.map +1 -0
  114. package/build/requests/bulkRestartRequests.js +2 -2
  115. package/build/requests/bulkRestartRequests.js.map +1 -1
  116. package/build/requests/mapColumnsToAttributes.d.ts.map +1 -1
  117. package/build/requests/mapColumnsToAttributes.js +1 -3
  118. package/build/requests/mapColumnsToAttributes.js.map +1 -1
  119. package/build/requests/mapColumnsToIdentifiers.d.ts.map +1 -1
  120. package/build/requests/mapColumnsToIdentifiers.js +1 -3
  121. package/build/requests/mapColumnsToIdentifiers.js.map +1 -1
  122. package/build/requests/mapCsvColumnsToApi.d.ts.map +1 -1
  123. package/build/requests/mapCsvColumnsToApi.js +1 -3
  124. package/build/requests/mapCsvColumnsToApi.js.map +1 -1
  125. package/build/requests/mapRequestEnumValues.d.ts.map +1 -1
  126. package/build/requests/mapRequestEnumValues.js +6 -6
  127. package/build/requests/mapRequestEnumValues.js.map +1 -1
  128. package/build/requests/uploadPrivacyRequestsFromCsv.js +3 -3
  129. package/build/requests/uploadPrivacyRequestsFromCsv.js.map +1 -1
  130. package/build/tsbuildinfo +1 -1
  131. package/package.json +6 -3
  132. package/build/consent-manager/uploadConsentPreferences.d.ts.map +0 -1
  133. package/build/consent-manager/uploadConsentPreferences.js.map +0 -1
package/README.md CHANGED
@@ -118,30 +118,35 @@
118
118
  - [Authentication](#authentication-26)
119
119
  - [Arguments](#arguments-26)
120
120
  - [Usage](#usage-27)
121
- - [tr-upload-consent-preferences](#tr-upload-consent-preferences)
121
+ - [tr-upload-preferences](#tr-upload-preferences)
122
122
  - [Authentication](#authentication-27)
123
+ - [Authentication](#authentication-28)
123
124
  - [Arguments](#arguments-27)
124
125
  - [Usage](#usage-28)
125
- - [tr-pull-consent-preferences](#tr-pull-consent-preferences)
126
- - [Authentication](#authentication-28)
126
+ - [tr-upload-consent-preferences](#tr-upload-consent-preferences)
127
+ - [Authentication](#authentication-29)
127
128
  - [Arguments](#arguments-28)
128
129
  - [Usage](#usage-29)
129
- - [tr-upload-data-flows-from-csv](#tr-upload-data-flows-from-csv)
130
- - [Authentication](#authentication-29)
130
+ - [tr-pull-consent-preferences](#tr-pull-consent-preferences)
131
+ - [Authentication](#authentication-30)
131
132
  - [Arguments](#arguments-29)
132
133
  - [Usage](#usage-30)
133
- - [tr-upload-cookies-from-csv](#tr-upload-cookies-from-csv)
134
- - [Authentication](#authentication-30)
134
+ - [tr-upload-data-flows-from-csv](#tr-upload-data-flows-from-csv)
135
+ - [Authentication](#authentication-31)
135
136
  - [Arguments](#arguments-30)
136
137
  - [Usage](#usage-31)
137
- - [tr-generate-api-keys](#tr-generate-api-keys)
138
- - [Authentication](#authentication-31)
138
+ - [tr-upload-cookies-from-csv](#tr-upload-cookies-from-csv)
139
+ - [Authentication](#authentication-32)
139
140
  - [Arguments](#arguments-31)
140
141
  - [Usage](#usage-32)
141
- - [tr-build-xdi-sync-endpoint](#tr-build-xdi-sync-endpoint)
142
- - [Authentication](#authentication-32)
142
+ - [tr-generate-api-keys](#tr-generate-api-keys)
143
+ - [Authentication](#authentication-33)
143
144
  - [Arguments](#arguments-32)
144
145
  - [Usage](#usage-33)
146
+ - [tr-build-xdi-sync-endpoint](#tr-build-xdi-sync-endpoint)
147
+ - [Authentication](#authentication-34)
148
+ - [Arguments](#arguments-33)
149
+ - [Usage](#usage-34)
145
150
  - [Prompt Manager](#prompt-manager)
146
151
  - [Proxy usage](#proxy-usage)
147
152
 
@@ -262,7 +267,13 @@ You can find various examples for your `transcend.yml` file in the [examples/](.
262
267
 
263
268
  The API for this YAML file can be found in [./src/codecs.ts](./src/codecs.ts) under the variable named "TranscendInput". The shape of the YAML file will be type-checked every time a command is run.
264
269
 
265
- By default, your editor or IDE should recognize `transcend.yml` and validate it against our published [JSON schema](./transcend-yml-schema-v4.json). This is dependent on whether your editor uses [yaml-language-server](https://github.com/redhat-developer/yaml-language-server), such as through the [VS Code YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
270
+ By default, your editor or IDE should recognize `transcend.yml` and validate it against our latest published [JSON schema](./transcend-yml-schema-latest.json). This is dependent on whether your editor uses [yaml-language-server](https://github.com/redhat-developer/yaml-language-server), such as through the [VS Code YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
271
+
272
+ Your editor will use the latest version's schema. To pin the `transcend.yml` schema to a previous major version, include this at the top of your file (and change `v4` to your target major version):
273
+
274
+ ```yml
275
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/transcend-io/cli/main/transcend-yml-schema-v4.json
276
+ ```
266
277
 
267
278
  The structure of `transcend.yml` looks something like the following:
268
279
 
@@ -2290,6 +2301,71 @@ Specify the backend URL, needed for US hosted backend infrastructure:
2290
2301
  yarn tr-pull-datapoints --auth=$TRANSCEND_API_KEY --file=./datapoints.csv --transcendUrl=https://api.us.transcend.io
2291
2302
  ```
2292
2303
 
2304
+ ### tr-upload-preferences
2305
+
2306
+ This command allows for updating of preference management data to your Transcend Preference Store.
2307
+
2308
+ This command uses [inquirer](https://github.com/SBoudrias/Inquirer.js/) to prompt the user to
2309
+ map the shape of the CSV to the shape of the Transcend API. There is no requirement for the
2310
+ shape of the incoming CSV, as the script will handle the mapping process.
2311
+
2312
+ The script will also produce a JSON cache file, that allows for the mappings to be preserved between runs.
2313
+ This can be useful if you have the same CSV shape that needs to be imported multiple times.
2314
+ Once the mapping process is done once, it does not need to be done again.
2315
+
2316
+ Additionally, the JSON cache file will store the result of any preferences that fail to be uploaded so that the
2317
+ script can be run multiple times if an issue happens.
2318
+
2319
+ #### Authentication
2320
+
2321
+ In order to use this cli, you will first need to generate an API key on the Transcend Admin Dashboard (https://app.transcend.io/infrastructure/api-keys).
2322
+
2323
+ The API key needs the following scopes:
2324
+
2325
+ - Modify User Stored Preferences
2326
+ - View Managed Consent Database Admin API
2327
+ - View Preference Store Settings
2328
+
2329
+ #### Authentication
2330
+
2331
+ In order to use this cli, you will first need to follow [this guide](https://docs.transcend.io/docs/consent/reference/managed-consent-database#authenticate-a-user's-consent) in order
2332
+
2333
+ #### Arguments
2334
+
2335
+ | Argument | Description | Type | Default | Required |
2336
+ | -------------------- | ------------------------------------------------------------------------------------------------- | ------------------ | -------------------------------------------- | -------- |
2337
+ | auth | The Transcend API key with the scopes necessary for the command. | string | N/A | true |
2338
+ | partition | The partition key to download consent preferences to | string | N/A | true |
2339
+ | sombraAuth | The sombra internal key, use for additional authentication when self-hosting sombra. | string | N/A | false |
2340
+ | transcendUrl | URL of the Transcend backend. Use https://consent.us.transcend.io for US hosting. | string - URL | https://consent.transcend.io | false |
2341
+ | file | Path to the CSV file to load preferences from | string - file-path | ./preferences.csv | false |
2342
+ | dryRun | Whether to do a dry run only - will write results ti receiptFilepath without updating Transcend | boolean | false | false |
2343
+ | skipWorkflowTriggers | Whether to skip workflow triggers when uploading to preference store | boolean | false | false |
2344
+ | skipConflictUpdates | Whether to skip uploading of any records where the preference store and file have a hard conflict | boolean | false | false |
2345
+ | isSilent | Whether to skip sending emails in workflows | boolean | true | false |
2346
+ | attributes | Attributes to add to any DSR request if created | string | Tags:transcend-cli,Source:transcend-cli | false |
2347
+ | receiptFilepath | Store resulting, continuing where left off | string - file-path | ./preference-management-upload-receipts.json | false |
2348
+
2349
+ #### Usage
2350
+
2351
+ Upload consent preferences to partition key `4d1c5daa-90b7-4d18-aa40-f86a43d2c726`
2352
+
2353
+ ```sh
2354
+ yarn tr-upload-preferences --auth=$TRANSCEND_API_KEY --partition=4d1c5daa-90b7-4d18-aa40-f86a43d2c726
2355
+ ```
2356
+
2357
+ Upload consent preferences with additional options
2358
+
2359
+ ```sh
2360
+ yarn tr-upload-preferences --auth=$TRANSCEND_API_KEY --partition=4d1c5daa-90b7-4d18-aa40-f86a43d2c726 --file=./preferences.csv --dryRun=true --skipWorkflowTriggers=true --skipConflictUpdates=true --isSilent=false --attributes="Tags:transcend-cli,Source:transcend-cli" --receiptFilepath=./preference-management-upload-receipts.json
2361
+ ```
2362
+
2363
+ Specifying the backend URL, needed for US hosted backend infrastructure.
2364
+
2365
+ ```sh
2366
+ yarn tr-upload-preferences --auth=$TRANSCEND_API_KEY --partition=4d1c5daa-90b7-4d18-aa40-f86a43d2c726 --transcendUrl=https://consent.us.transcend.io
2367
+ ```
2368
+
2293
2369
  ### tr-upload-consent-preferences
2294
2370
 
2295
2371
  This command allows for updating of consent preferences to the [Managed Consent Database](https://docs.transcend.io/docs/consent/reference/managed-consent-database).
@@ -53,7 +53,7 @@ async function main() {
53
53
  skipSendingReceipt: skipSendingReceipt === 'true',
54
54
  emailIsVerified: emailIsVerified === 'true',
55
55
  isTest: isTest === 'true',
56
- dryRun: dryRun === 'true',
56
+ dryRun: dryRun !== 'false',
57
57
  });
58
58
  }
59
59
  main();
@@ -1 +1 @@
1
- {"version":3,"file":"cli-request-upload.js","sourceRoot":"","sources":["../src/cli-request-upload.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,yCAA0E;AAC1E,2CAAoD;AAEpD;;;;;;;;;;;;;;;;;GAiBG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,EACJ,IAAI,GAAG,gBAAgB,EACvB,YAAY,GAAG,iCAAqB,EACpC,aAAa,GAAG,yCAAyC,EACzD,oBAAoB,GAAG,mCAAmC,EAC1D,UAAU,EACV,WAAW,GAAG,IAAI,EAClB,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,MAAM,EACjB,kBAAkB,GAAG,OAAO,EAC5B,uBAAuB,GAAG,GAAG,EAAE,MAAM;IACrC,eAAe,GAAG,MAAM,EACxB,MAAM,GAAG,OAAO,EAChB,KAAK,GAAG,OAAO,EACf,cAAc,GAAG,OAAO,EACxB,UAAU,GAAG,oBAAoB,GAClC,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAA8B,CAAC;IAE9D,wBAAwB;IACxB,IAAI,CAAC,IAAI,EAAE;QACT,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,uFAAuF,CACxF,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,0BAA0B;IAC1B,MAAM,IAAA,uCAA4B,EAAC;QACjC,aAAa;QACb,oBAAoB;QACpB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,CAAC,IAAI,EAAE;QACT,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,uFAAuF,CACxF,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,0BAA0B;IAC1B,MAAM,IAAA,uCAA4B,EAAC;QACjC,aAAa;QACb,oBAAoB;QACpB,IAAI;QACJ,IAAI;QACJ,UAAU;QACV,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QACtC,YAAY;QACZ,uBAAuB;QACvB,UAAU,EAAE,IAAA,yBAAc,EAAC,UAAU,CAAC;QACtC,KAAK,EAAE,KAAK,KAAK,MAAM;QACvB,cAAc,EAAE,cAAc,KAAK,MAAM;QACzC,QAAQ,EAAE,QAAQ,KAAK,MAAM;QAC7B,kBAAkB,EAAE,kBAAkB,KAAK,MAAM;QACjD,eAAe,EAAE,eAAe,KAAK,MAAM;QAC3C,MAAM,EAAE,MAAM,KAAK,MAAM;QACzB,MAAM,EAAE,MAAM,KAAK,OAAO;KAC3B,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -8,7 +8,7 @@ const yargs_parser_1 = __importDefault(require("yargs-parser"));
8
8
  const colors_1 = __importDefault(require("colors"));
9
9
  const logger_1 = require("./logger");
10
10
  const constants_1 = require("./constants");
11
- const uploadConsentPreferences_1 = require("./consent-manager/uploadConsentPreferences");
11
+ const uploadConsents_1 = require("./consent-manager/uploadConsents");
12
12
  const types_1 = require("./consent-manager/types");
13
13
  const requests_1 = require("./requests");
14
14
  /**
@@ -60,7 +60,7 @@ async function main() {
60
60
  // Load in preferences from csv
61
61
  const preferences = (0, requests_1.readCsv)(file, types_1.ConsentPreferenceUpload);
62
62
  // Upload cookies
63
- await (0, uploadConsentPreferences_1.uploadConsentPreferences)({
63
+ await (0, uploadConsents_1.uploadConsents)({
64
64
  base64EncryptionKey,
65
65
  base64SigningKey,
66
66
  preferences,
@@ -1 +1 @@
1
- {"version":3,"file":"cli-upload-consent-preferences.js","sourceRoot":"","sources":["../src/cli-upload-consent-preferences.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,2CAA4D;AAC5D,yFAAsF;AACtF,mDAAkE;AAClE,yCAAqC;AAErC;;;;;;;;;;;;;GAaG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM;IACJ,oCAAoC;IACpC,IAAI,GAAG,iBAAiB;IACxB,oBAAoB;IACpB,YAAY,GAAG,yCAA6B;IAC5C,4BAA4B;IAC5B,mBAAmB;IACnB,yBAAyB;IACzB,gBAAgB;IAChB,iCAAiC;IACjC,SAAS;IACT,kBAAkB;IAClB,WAAW,GAAG,KAAK,GACpB,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAA8B,CAAC;IAE9D,wBAAwB;IACxB,IAAI,CAAC,mBAAmB,EAAE;QACxB,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,0CAA0C;YACxC,+EAA+E,CAClF,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IACD,IAAI,CAAC,gBAAgB,EAAE;QACrB,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,uCAAuC;YACrC,yEAAyE,CAC5E,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,mBAAmB;IACnB,IAAI,CAAC,SAAS,EAAE;QACd,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,gCAAgC;YAC9B,wEAAwE,CAC3E,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,+BAA+B;IAC/B,MAAM,WAAW,GAAG,IAAA,kBAAO,EAAC,IAAI,EAAE,+BAAuB,CAAC,CAAC;IAE3D,iBAAiB;IACjB,MAAM,IAAA,mDAAwB,EAAC;QAC7B,mBAAmB;QACnB,gBAAgB;QAChB,WAAW;QACX,SAAS;QACT,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QACtC,YAAY;KACb,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"cli-upload-consent-preferences.js","sourceRoot":"","sources":["../src/cli-upload-consent-preferences.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,2CAA4D;AAC5D,qEAAkE;AAClE,mDAAkE;AAClE,yCAAqC;AAErC;;;;;;;;;;;;;GAaG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM;IACJ,oCAAoC;IACpC,IAAI,GAAG,iBAAiB;IACxB,oBAAoB;IACpB,YAAY,GAAG,yCAA6B;IAC5C,4BAA4B;IAC5B,mBAAmB;IACnB,yBAAyB;IACzB,gBAAgB;IAChB,iCAAiC;IACjC,SAAS;IACT,kBAAkB;IAClB,WAAW,GAAG,KAAK,GACpB,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAA8B,CAAC;IAE9D,wBAAwB;IACxB,IAAI,CAAC,mBAAmB,EAAE;QACxB,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,0CAA0C;YACxC,+EAA+E,CAClF,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IACD,IAAI,CAAC,gBAAgB,EAAE;QACrB,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,uCAAuC;YACrC,yEAAyE,CAC5E,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,mBAAmB;IACnB,IAAI,CAAC,SAAS,EAAE;QACd,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,gCAAgC;YAC9B,wEAAwE,CAC3E,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,+BAA+B;IAC/B,MAAM,WAAW,GAAG,IAAA,kBAAO,EAAC,IAAI,EAAE,+BAAuB,CAAC,CAAC;IAE3D,iBAAiB;IACjB,MAAM,IAAA,+BAAc,EAAC;QACnB,mBAAmB;QACnB,gBAAgB;QAChB,WAAW;QACX,SAAS;QACT,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QACtC,YAAY;KACb,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli-upload-preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-upload-preferences.d.ts","sourceRoot":"","sources":["../src/cli-upload-preferences.ts"],"names":[],"mappings":""}
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const yargs_parser_1 = __importDefault(require("yargs-parser"));
8
+ const colors_1 = __importDefault(require("colors"));
9
+ const logger_1 = require("./logger");
10
+ const constants_1 = require("./constants");
11
+ const preference_management_1 = require("./preference-management");
12
+ const requests_1 = require("./requests");
13
+ /**
14
+ * Upload consent preferences to the managed consent database
15
+ *
16
+ * Requires following documentation found at:
17
+ * https://docs.transcend.io/docs/consent/reference/managed-consent-database
18
+ *
19
+ * Dev Usage:
20
+ * yarn ts-node ./src/cli-upload-consent-preferences-interactive --base64EncryptionKey=$TRANSCEND_CONSENT_ENCRYPTION_KEY \
21
+ * --base64SigningKey=$TRANSCEND_CONSENT_SIGNING_KEY --partition=4d1c5daa-90b7-4d18-aa40-f86a43d2c726
22
+ *
23
+ * Standard usage:
24
+ * yarn tr-upload-consent-preferences-interactive --base64EncryptionKey=$TRANSCEND_CONSENT_ENCRYPTION_KEY \
25
+ * --base64SigningKey=$TRANSCEND_CONSENT_SIGNING_KEY --partition=4d1c5daa-90b7-4d18-aa40-f86a43d2c726
26
+ */
27
+ async function main() {
28
+ // Parse command line arguments
29
+ const {
30
+ /** File to load preferences from */
31
+ file = './preferences.csv',
32
+ /** Transcend URL */
33
+ transcendUrl = constants_1.DEFAULT_TRANSCEND_API,
34
+ /** API key */
35
+ auth,
36
+ /** Sombra API key */
37
+ sombraAuth,
38
+ /** Partition key to load into */
39
+ partition,
40
+ /** Whether to do a dry run */
41
+ dryRun = 'false',
42
+ /** Whether to skip workflow triggers */
43
+ skipWorkflowTriggers = 'false',
44
+ /** Whether to skip conflict updates */
45
+ skipConflictUpdates = 'false',
46
+ /** Whether to skip sending emails */
47
+ isSilent = 'true',
48
+ /** Attributes to add to any DSR request if created */
49
+ attributes = 'Tags:transcend-cli,Source:transcend-cli',
50
+ /** Store resulting, continuing where left off */
51
+ receiptFilepath = './preference-management-upload-receipts.json', } = (0, yargs_parser_1.default)(process.argv.slice(2));
52
+ // Ensure auth is passed
53
+ if (!auth) {
54
+ logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
55
+ process.exit(1);
56
+ }
57
+ // Ensure partition
58
+ if (!partition) {
59
+ logger_1.logger.error(colors_1.default.red('A partition must be provided. ' +
60
+ 'You can specify using --partition=ee1a0845-694e-4820-9d51-50c7d0a23467'));
61
+ process.exit(1);
62
+ }
63
+ // Upload cookies
64
+ await (0, preference_management_1.uploadPreferenceManagementPreferencesInteractive)({
65
+ receiptFilepath,
66
+ auth,
67
+ sombraAuth,
68
+ file,
69
+ partition,
70
+ transcendUrl,
71
+ skipConflictUpdates: skipConflictUpdates !== 'false',
72
+ skipWorkflowTriggers: skipWorkflowTriggers !== 'false',
73
+ isSilent: isSilent !== 'false',
74
+ dryRun: dryRun !== 'false',
75
+ attributes: (0, requests_1.splitCsvToList)(attributes),
76
+ });
77
+ }
78
+ main();
79
+ //# sourceMappingURL=cli-upload-preferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-upload-preferences.js","sourceRoot":"","sources":["../src/cli-upload-preferences.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,2CAAoD;AACpD,mEAA2F;AAC3F,yCAA4C;AAE5C;;;;;;;;;;;;;GAaG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM;IACJ,oCAAoC;IACpC,IAAI,GAAG,mBAAmB;IAC1B,oBAAoB;IACpB,YAAY,GAAG,iCAAqB;IACpC,cAAc;IACd,IAAI;IACJ,qBAAqB;IACrB,UAAU;IACV,iCAAiC;IACjC,SAAS;IACT,8BAA8B;IAC9B,MAAM,GAAG,OAAO;IAChB,wCAAwC;IACxC,oBAAoB,GAAG,OAAO;IAC9B,uCAAuC;IACvC,mBAAmB,GAAG,OAAO;IAC7B,qCAAqC;IACrC,QAAQ,GAAG,MAAM;IACjB,sDAAsD;IACtD,UAAU,GAAG,yCAAyC;IACtD,kDAAkD;IAClD,eAAe,GAAG,8CAA8C,GACjE,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAA8B,CAAC;IAE9D,wBAAwB;IACxB,IAAI,CAAC,IAAI,EAAE;QACT,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,uFAAuF,CACxF,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,mBAAmB;IACnB,IAAI,CAAC,SAAS,EAAE;QACd,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,gCAAgC;YAC9B,wEAAwE,CAC3E,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,iBAAiB;IACjB,MAAM,IAAA,wEAAgD,EAAC;QACrD,eAAe;QACf,IAAI;QACJ,UAAU;QACV,IAAI;QACJ,SAAS;QACT,YAAY;QACZ,mBAAmB,EAAE,mBAAmB,KAAK,OAAO;QACpD,oBAAoB,EAAE,oBAAoB,KAAK,OAAO;QACtD,QAAQ,EAAE,QAAQ,KAAK,OAAO;QAC9B,MAAM,EAAE,MAAM,KAAK,OAAO;QAC1B,UAAU,EAAE,IAAA,yBAAc,EAAC,UAAU,CAAC;KACvC,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -7,4 +7,5 @@ export * from './consentManagersToBusinessEntities';
7
7
  export * from './domainToHost';
8
8
  export * from './createConsentToken';
9
9
  export * from './fetchConsentPreferences';
10
+ export * from './uploadConsents';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC"}
@@ -23,4 +23,5 @@ __exportStar(require("./consentManagersToBusinessEntities"), exports);
23
23
  __exportStar(require("./domainToHost"), exports);
24
24
  __exportStar(require("./createConsentToken"), exports);
25
25
  __exportStar(require("./fetchConsentPreferences"), exports);
26
+ __exportStar(require("./uploadConsents"), exports);
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/consent-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,2DAAyC;AACzC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,sEAAoD;AACpD,iDAA+B;AAC/B,uDAAqC;AACrC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/consent-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,2DAAyC;AACzC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,sEAAoD;AACpD,iDAA+B;AAC/B,uDAAqC;AACrC,4DAA0C;AAC1C,mDAAiC"}
@@ -7,7 +7,7 @@ export declare const PurposeMap: t.RecordC<t.StringC, t.UnionC<[t.BooleanC, t.Li
7
7
  *
8
8
  * @param options - Options
9
9
  */
10
- export declare function uploadConsentPreferences({ base64EncryptionKey, base64SigningKey, preferences, partition, concurrency, transcendUrl, }: {
10
+ export declare function uploadConsents({ base64EncryptionKey, base64SigningKey, preferences, partition, concurrency, transcendUrl, }: {
11
11
  /** base64 encryption key */
12
12
  base64EncryptionKey: string;
13
13
  /** base64 signing key */
@@ -21,4 +21,4 @@ export declare function uploadConsentPreferences({ base64EncryptionKey, base64Si
21
21
  /** Concurrency limit for approving */
22
22
  concurrency?: number;
23
23
  }): Promise<void>;
24
- //# sourceMappingURL=uploadConsentPreferences.d.ts.map
24
+ //# sourceMappingURL=uploadConsents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadConsents.d.ts","sourceRoot":"","sources":["../../src/consent-manager/uploadConsents.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAO3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGvD,eAAO,MAAM,gBAAgB,QAA6B,CAAC;AAE3D,eAAO,MAAM,UAAU,kEAGtB,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,EACnC,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,WAAiB,EACjB,YAA4C,GAC7C,EAAE;IACD,4BAA4B;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACvC,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwJhB"}
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.uploadConsentPreferences = exports.PurposeMap = exports.USP_STRING_REGEX = void 0;
29
+ exports.uploadConsents = exports.PurposeMap = exports.USP_STRING_REGEX = void 0;
30
30
  const graphql_1 = require("../graphql");
31
31
  const colors_1 = __importDefault(require("colors"));
32
32
  const t = __importStar(require("io-ts"));
@@ -43,7 +43,7 @@ exports.PurposeMap = t.record(t.string, t.union([t.boolean, t.literal('Auto')]))
43
43
  *
44
44
  * @param options - Options
45
45
  */
46
- async function uploadConsentPreferences({ base64EncryptionKey, base64SigningKey, preferences, partition, concurrency = 100, transcendUrl = constants_1.DEFAULT_TRANSCEND_CONSENT_API, }) {
46
+ async function uploadConsents({ base64EncryptionKey, base64SigningKey, preferences, partition, concurrency = 100, transcendUrl = constants_1.DEFAULT_TRANSCEND_CONSENT_API, }) {
47
47
  // Create connection to API
48
48
  const transcendConsentApi = (0, graphql_1.createTranscendConsentGotInstance)(transcendUrl);
49
49
  // Ensure usp strings are valid
@@ -132,5 +132,5 @@ async function uploadConsentPreferences({ base64EncryptionKey, base64SigningKey,
132
132
  const totalTime = t1 - t0;
133
133
  logger_1.logger.info(colors_1.default.green(`Successfully uploaded ${preferences.length} user preferences to partition ${partition} in "${totalTime / 1000}" seconds!`));
134
134
  }
135
- exports.uploadConsentPreferences = uploadConsentPreferences;
136
- //# sourceMappingURL=uploadConsentPreferences.js.map
135
+ exports.uploadConsents = uploadConsents;
136
+ //# sourceMappingURL=uploadConsents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadConsents.js","sourceRoot":"","sources":["../../src/consent-manager/uploadConsents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAA+D;AAC/D,oDAA4B;AAC5B,yCAA2B;AAC3B,4CAA6D;AAC7D,uCAA+B;AAC/B,6DAA0D;AAC1D,sCAAmC;AACnC,gEAAuC;AACvC,yDAAuD;AAI1C,QAAA,gBAAgB,GAAG,0BAA0B,CAAC;AAE9C,QAAA,UAAU,GAAG,CAAC,CAAC,MAAM,CAChC,CAAC,CAAC,MAAM,EACR,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CACxC,CAAC;AAEF;;;;GAIG;AACI,KAAK,UAAU,cAAc,CAAC,EACnC,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,WAAW,GAAG,GAAG,EACjB,YAAY,GAAG,yCAA6B,GAc7C;IACC,2BAA2B;IAC3B,MAAM,mBAAmB,GAAG,IAAA,2CAAiC,EAAC,YAAY,CAAC,CAAC;IAE5E,+BAA+B;IA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AE,GAAG,EAAE,CAAC;IAE1B,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,KAAK,CACV,yBACE,WAAW,CAAC,MACd,kCAAkC,SAAS,QACzC,SAAS,GAAG,IACd,YAAY,CACb,CACF,CAAC;AACJ,CAAC;AA5KD,wCA4KC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createSombraGotInstance.d.ts","sourceRoot":"","sources":["../../src/graphql/createSombraGotInstance.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAK/B;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,EACvB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,GAAG,CAAC,CA4Bd"}
1
+ {"version":3,"file":"createSombraGotInstance.d.ts","sourceRoot":"","sources":["../../src/graphql/createSombraGotInstance.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAK/B;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,EACvB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,GAAG,CAAC,CA0Bd"}
@@ -1 +1 @@
1
- {"version":3,"file":"createSombraGotInstance.js","sourceRoot":"","sources":["../../src/graphql/createSombraGotInstance.ts"],"names":[],"mappings":";;;;;;AAAA,8CAA+B;AAC/B,iCAAsC;AACtC,6DAA0D;AAC1D,+EAA4E;AAE5E;;;;;;;;GAQG;AACI,KAAK,UAAU,uBAAuB,CAC3C,YAAoB,EACpB,eAAuB,EACvB,YAAqB;IAErB,wDAAwD;IACxD,MAAM,MAAM,GAAG,IAAA,yDAA2B,EAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAE1E,kEAAkE;IAClE,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,uCAAkB,EAS9C,MAAM,EAAE,mBAAY,CAAC,CAAC;IAEzB,0CAA0C;IAC1C,OAAO,aAAG,CAAC,MAAM,CAAC;QAChB,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,WAAW;QAC1C,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,eAAe,EAAE;YAC1C,GAAG,CAAC,YAAY;gBACd,CAAC,CAAC;oBACE,wBAAwB,EAAE,UAAU,YAAY,EAAE;iBACnD;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;KACF,CAAC,CAAC;AACL,CAAC;AAhCD,0DAgCC"}
1
+ {"version":3,"file":"createSombraGotInstance.js","sourceRoot":"","sources":["../../src/graphql/createSombraGotInstance.ts"],"names":[],"mappings":";;;;;;AAAA,8CAA+B;AAC/B,iCAAsC;AACtC,6DAA0D;AAC1D,+EAA4E;AAE5E;;;;;;;;GAQG;AACI,KAAK,UAAU,uBAAuB,CAC3C,YAAoB,EACpB,eAAuB,EACvB,YAAqB;IAErB,wDAAwD;IACxD,MAAM,MAAM,GAAG,IAAA,yDAA2B,EAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAC1E,kEAAkE;IAClE,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,uCAAkB,EAS9C,MAAM,EAAE,mBAAY,CAAC,CAAC;IACzB,0CAA0C;IAC1C,OAAO,aAAG,CAAC,MAAM,CAAC;QAChB,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,WAAW;QAC1C,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,eAAe,EAAE;YAC1C,GAAG,CAAC,YAAY;gBACd,CAAC,CAAC;oBACE,wBAAwB,EAAE,UAAU,YAAY,EAAE;iBACnD;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;KACF,CAAC,CAAC;AACL,CAAC;AA9BD,0DA8BC"}
@@ -0,0 +1,28 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ import { PreferenceTopicType } from '@transcend-io/privacy-types';
3
+ export interface PreferenceTopic {
4
+ /** ID of preference topic */
5
+ id: string;
6
+ /** Slug of preference topic */
7
+ slug: string;
8
+ /** Type of preference topic */
9
+ type: PreferenceTopicType;
10
+ /** Option values */
11
+ preferenceOptionValues: {
12
+ /** Slug of value */
13
+ slug: string;
14
+ }[];
15
+ /** Related purpose */
16
+ purpose: {
17
+ /** Slug */
18
+ trackingType: string;
19
+ };
20
+ }
21
+ /**
22
+ * Fetch all preference topics in the organization
23
+ *
24
+ * @param client - GraphQL client
25
+ * @returns All preference topics in the organization
26
+ */
27
+ export declare function fetchAllPreferenceTopics(client: GraphQLClient): Promise<PreferenceTopic[]>;
28
+ //# sourceMappingURL=fetchAllPreferenceTopics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllPreferenceTopics.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllPreferenceTopics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,WAAW,eAAe;IAC9B,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,oBAAoB;IACpB,sBAAsB,EAAE;QACtB,oBAAoB;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,sBAAsB;IACtB,OAAO,EAAE;QACP,WAAW;QACX,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAID;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,eAAe,EAAE,CAAC,CA8B5B"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchAllPreferenceTopics = void 0;
4
+ const gqls_1 = require("./gqls");
5
+ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
6
+ const PAGE_SIZE = 20;
7
+ /**
8
+ * Fetch all preference topics in the organization
9
+ *
10
+ * @param client - GraphQL client
11
+ * @returns All preference topics in the organization
12
+ */
13
+ async function fetchAllPreferenceTopics(client) {
14
+ const preferenceTopics = [];
15
+ let offset = 0;
16
+ // Whether to continue looping
17
+ let shouldContinue = false;
18
+ do {
19
+ const { preferenceTopics: { nodes },
20
+ // eslint-disable-next-line no-await-in-loop
21
+ } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PREFERENCE_TOPICS, {
22
+ first: PAGE_SIZE,
23
+ offset,
24
+ });
25
+ preferenceTopics.push(...nodes);
26
+ offset += PAGE_SIZE;
27
+ shouldContinue = nodes.length === PAGE_SIZE;
28
+ } while (shouldContinue);
29
+ return preferenceTopics.sort((a, b) => `${a.slug}:${a.purpose.trackingType}`.localeCompare(`${b.slug}:${b.purpose.trackingType}`));
30
+ }
31
+ exports.fetchAllPreferenceTopics = fetchAllPreferenceTopics;
32
+ //# sourceMappingURL=fetchAllPreferenceTopics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllPreferenceTopics.js","sourceRoot":"","sources":["../../src/graphql/fetchAllPreferenceTopics.ts"],"names":[],"mappings":";;;AACA,iCAA2C;AAC3C,6DAA0D;AAsB1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,wBAAwB,CAC5C,MAAqB;IAErB,MAAM,gBAAgB,GAAsB,EAAE,CAAC;IAC/C,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,gBAAgB,EAAE,EAAE,KAAK,EAAE;QAC3B,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,wBAAiB,EAAE;YAC5B,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,gBAAgB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAChC,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACpC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,aAAa,CACjD,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CACtC,CACF,CAAC;AACJ,CAAC;AAhCD,4DAgCC"}
@@ -0,0 +1,25 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ export interface Purpose {
3
+ /** ID of purpose */
4
+ id: string;
5
+ /** Name of purpose */
6
+ name: string;
7
+ /** Slug of purpose */
8
+ trackingType: string;
9
+ /** Whether the purpose is active */
10
+ isActive: boolean;
11
+ /** Whether the purpose is deleted */
12
+ deletedAt?: string;
13
+ }
14
+ /**
15
+ * Fetch all purposes in the organization
16
+ *
17
+ * @param client - GraphQL client
18
+ * @param input - Input
19
+ * @returns All purposes in the organization
20
+ */
21
+ export declare function fetchAllPurposes(client: GraphQLClient, { includeDeleted, }?: {
22
+ /** Whether to include deleted purposes */
23
+ includeDeleted?: boolean;
24
+ }): Promise<Purpose[]>;
25
+ //# sourceMappingURL=fetchAllPurposes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllPurposes.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllPurposes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,WAAW,OAAO;IACtB,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,aAAa,EACrB,EACE,cAAsB,GACvB,GAAE;IACD,0CAA0C;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;CACrB,GACL,OAAO,CAAC,OAAO,EAAE,CAAC,CA6BpB"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchAllPurposes = void 0;
4
+ const gqls_1 = require("./gqls");
5
+ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
6
+ const PAGE_SIZE = 20;
7
+ /**
8
+ * Fetch all purposes in the organization
9
+ *
10
+ * @param client - GraphQL client
11
+ * @param input - Input
12
+ * @returns All purposes in the organization
13
+ */
14
+ async function fetchAllPurposes(client, { includeDeleted = false, } = {}) {
15
+ const purposes = [];
16
+ let offset = 0;
17
+ // Whether to continue looping
18
+ let shouldContinue = false;
19
+ do {
20
+ const { purposes: { nodes },
21
+ // eslint-disable-next-line no-await-in-loop
22
+ } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PURPOSES, {
23
+ first: PAGE_SIZE,
24
+ offset,
25
+ input: {
26
+ includeDeleted,
27
+ },
28
+ });
29
+ purposes.push(...nodes);
30
+ offset += PAGE_SIZE;
31
+ shouldContinue = nodes.length === PAGE_SIZE;
32
+ } while (shouldContinue);
33
+ return purposes.sort((a, b) => a.trackingType.localeCompare(b.trackingType));
34
+ }
35
+ exports.fetchAllPurposes = fetchAllPurposes;
36
+ //# sourceMappingURL=fetchAllPurposes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllPurposes.js","sourceRoot":"","sources":["../../src/graphql/fetchAllPurposes.ts"],"names":[],"mappings":";;;AACA,iCAAkC;AAClC,6DAA0D;AAe1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAAqB,EACrB,EACE,cAAc,GAAG,KAAK,MAIpB,EAAE;IAEN,MAAM,QAAQ,GAAc,EAAE,CAAC;IAC/B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,QAAQ,EAAE,EAAE,KAAK,EAAE;QACnB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,eAAQ,EAAE;YACnB,KAAK,EAAE,SAAS;YAChB,MAAM;YACN,KAAK,EAAE;gBACL,cAAc;aACf;SACF,CAAC,CAAC;QACH,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACxB,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;AAC/E,CAAC;AArCD,4CAqCC"}
@@ -60,13 +60,6 @@ export interface ConsentPurpose {
60
60
  /** Tracking type of purpose */
61
61
  trackingType: string;
62
62
  }
63
- /**
64
- * Fetch consent manager purposes
65
- *
66
- * @param client - GraphQL client
67
- * @returns Consent manager purposes in the organization
68
- */
69
- export declare function fetchPurposes(client: GraphQLClient): Promise<ConsentPurpose[]>;
70
63
  export interface ConsentExperience {
71
64
  /** ID of experience */
72
65
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fetchConsentManagerId.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":"AAAA,OAAO,EA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CAAC,CAa9B"}
1
+ {"version":3,"file":"fetchConsentManagerId.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,YAAY,EACZ,0BAA0B,EAC1B,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,eAAe,EACf,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,eAAe,EAChB,MAAM,+BAA+B,CAAC;AAUvC,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,aAAa,EAAE;QACb,kBAAkB;QAClB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,2CAA2C;QAC3C,iBAAiB,EAAE,uBAAuB,CAAC;QAC3C,6BAA6B;QAC7B,oBAAoB,EAAE,oBAAoB,CAAC;QAC3C,4BAA4B;QAC5B,mBAAmB,EAAE,oBAAoB,CAAC;QAC1C,oBAAoB;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,6BAA6B;QAC7B,qBAAqB,EAAE,0BAA0B,CAAC;QAClD,2BAA2B;QAC3B,kBAAkB,EAAE,wBAAwB,CAAC;QAC7C,sBAAsB;QACtB,MAAM,EAAE,YAAY,CAAC;QACrB,kBAAkB;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,0BAA0B;QAC1B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,iEAAiE;IACjE,SAAS,CAAC,EAAE;QACV,sBAAsB;QACtB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE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OAAO,CAAC,mBAAmB,CAAC,CAa9B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchConsentManagerTheme = exports.fetchConsentManagerAnalyticsData = exports.ConsentManagerMetricBin = exports.fetchConsentManagerExperiences = exports.fetchPurposes = exports.fetchConsentManagerId = exports.fetchConsentManager = void 0;
3
+ exports.fetchConsentManagerTheme = exports.fetchConsentManagerAnalyticsData = exports.ConsentManagerMetricBin = exports.fetchConsentManagerExperiences = exports.fetchConsentManagerId = exports.fetchConsentManager = void 0;
4
4
  const gqls_1 = require("./gqls");
5
5
  const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
6
6
  /**
@@ -26,17 +26,6 @@ async function fetchConsentManagerId(client, maxRequests) {
26
26
  return consentManager.id;
27
27
  }
28
28
  exports.fetchConsentManagerId = fetchConsentManagerId;
29
- /**
30
- * Fetch consent manager purposes
31
- *
32
- * @param client - GraphQL client
33
- * @returns Consent manager purposes in the organization
34
- */
35
- async function fetchPurposes(client) {
36
- const { purposes: { purposes }, } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PURPOSES);
37
- return purposes;
38
- }
39
- exports.fetchPurposes = fetchPurposes;
40
29
  const PAGE_SIZE = 50;
41
30
  /**
42
31
  * Fetch consent manager experiences
@@ -1 +1 @@
1
- {"version":3,"file":"fetchConsentManagerId.js","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":";;;AAiBA,iCAOgB;AAChB,6DAA0D;AAuC1D;;;;;GAKG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB;IAErB,MAAM,EACJ,cAAc,EAAE,EAAE,cAAc,EAAE,GACnC,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,4BAAqB,CAAC,CAAC;IAClC,OAAO,cAAc,CAAC;AACxB,CAAC;AAbD,kDAaC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,qBAAqB,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ED;;GAEG;AACH,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;IACb,uCAAY,CAAA;AACd,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC;AAcD;;;;;;GAMG;AACI,KAAK,UAAU,gCAAgC,CACpD,MAAqB,EACrB,KAkBC;IAED,MAAM,EACJ,aAAa,EAAE,EAAE,MAAM,EAAE,GAC1B,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,qCAA8B,EAAE;QACzC,KAAK;KACN,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAlCD,4EAkCC;AAaD;;;;;;GAMG;AACI,KAAK,UAAU,wBAAwB,CAC5C,MAAqB,EACrB,cAAsB;IAEtB,MAAM,EACJ,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAC/B,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,kCAA2B,EAAE;QACtC,cAAc;KACf,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC;AAhBD,4DAgBC"}
1
+ {"version":3,"file":"fetchConsentManagerId.js","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":";;;AAiBA,iCAMgB;AAChB,6DAA0D;AAuC1D;;;;;GAKG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB;IAErB,MAAM,EACJ,cAAc,EAAE,EAAE,cAAc,EAAE,GACnC,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,4BAAqB,CAAC,CAAC;IAClC,OAAO,cAAc,CAAC;AACxB,CAAC;AAbD,kDAaC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,qBAAqB,CACzC,MAAqB,EACrB,WAAoB;IAEpB,MAAM,EACJ,cAAc,EAAE,EAAE,cAAc,EAAE,GACnC,GAAG,MAAM,IAAA,uCAAkB,EASzB,MAAM,EAAE,+BAAwB,EAAE,EAAE,EAAE,EAAE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AC;AAChB,CAAC;AAlCD,4EAkCC;AAaD;;;;;;GAMG;AACI,KAAK,UAAU,wBAAwB,CAC5C,MAAqB,EACrB,cAAsB;IAEtB,MAAM,EACJ,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAC/B,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,kCAA2B,EAAE;QACtC,cAAc;KACf,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC;AAhBD,4DAgBC"}
@@ -1,4 +1,3 @@
1
- export declare const PURPOSES: string;
2
1
  export declare const EXPERIENCES: string;
3
2
  export declare const CONSENT_PARTITIONS: string;
4
3
  export declare const CREATE_DATA_FLOWS: string;
@@ -1 +1 @@
1
- {"version":3,"file":"consentManager.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/consentManager.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,QAUpB,CAAC;AAKF,eAAO,MAAM,WAAW,QA6BvB,CAAC;AAMF,eAAO,MAAM,kBAAkB,QAU9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAkB7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAkB7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAWpC,CAAC;AAIF,eAAO,MAAM,UAAU,QA6CtB,CAAC;AAIF,eAAO,MAAM,OAAO,QA4CnB,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAQpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAyBjC,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAWvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAQlC,CAAC;AAEF,eAAO,MAAM,8BAA8B,QAS1C,CAAC;AAEF,eAAO,MAAM,gCAAgC,QAY5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAYlC,CAAC;AAEF,eAAO,MAAM,8BAA8B,QAW1C,CAAC;AAEF,eAAO,MAAM,gCAAgC,QAW5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAM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