@wix/auto_sdk_consent-policy_cmp 1.0.4 → 1.0.5

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 (125) hide show
  1. package/build/cjs/index.d.ts +28 -1
  2. package/build/cjs/index.js +212 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +209 -1
  5. package/build/cjs/index.typings.js +192 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +58 -1
  8. package/build/cjs/meta.js +166 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +28 -0
  11. package/build/es/index.mjs +189 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.d.ts → es/index.typings.d.mts} +30 -25
  14. package/build/es/index.typings.mjs +169 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +58 -0
  17. package/build/es/meta.mjs +141 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +28 -1
  20. package/build/internal/cjs/index.js +212 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +209 -1
  23. package/build/internal/cjs/index.typings.js +192 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +58 -1
  26. package/build/internal/cjs/meta.js +166 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +28 -0
  29. package/build/internal/es/index.mjs +189 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/es/{src/bu-legal-v2-cmp-config-cmp.universal.d.ts → index.typings.d.mts} +30 -25
  32. package/build/internal/es/index.typings.mjs +169 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/es/meta.d.mts +58 -0
  35. package/build/internal/es/meta.mjs +141 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +12 -10
  38. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
  39. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.js +0 -10
  40. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
  41. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
  42. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.js +0 -105
  43. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
  44. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
  45. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -66
  46. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
  47. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
  48. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.js +0 -20
  49. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
  50. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
  51. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.js +0 -12
  52. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
  53. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +0 -204
  54. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -111
  55. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
  66. package/build/es/src/bu-legal-v2-cmp-config-cmp.context.js +0 -6
  67. package/build/es/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
  68. package/build/es/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
  69. package/build/es/src/bu-legal-v2-cmp-config-cmp.http.js +0 -100
  70. package/build/es/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
  71. package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
  72. package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -38
  73. package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
  74. package/build/es/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
  75. package/build/es/src/bu-legal-v2-cmp-config-cmp.public.js +0 -14
  76. package/build/es/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
  77. package/build/es/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
  78. package/build/es/src/bu-legal-v2-cmp-config-cmp.types.js +0 -9
  79. package/build/es/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
  80. package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +0 -204
  81. package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -83
  82. package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
  83. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
  84. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.js +0 -10
  85. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
  86. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
  87. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.js +0 -105
  88. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
  89. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
  90. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -66
  91. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
  92. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
  93. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.js +0 -20
  94. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
  95. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
  96. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.js +0 -12
  97. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
  98. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -111
  99. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
  100. package/build/internal/es/index.d.ts +0 -1
  101. package/build/internal/es/index.js +0 -2
  102. package/build/internal/es/index.js.map +0 -1
  103. package/build/internal/es/index.typings.d.ts +0 -1
  104. package/build/internal/es/index.typings.js +0 -2
  105. package/build/internal/es/index.typings.js.map +0 -1
  106. package/build/internal/es/meta.d.ts +0 -1
  107. package/build/internal/es/meta.js +0 -2
  108. package/build/internal/es/meta.js.map +0 -1
  109. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
  110. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.js +0 -6
  111. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
  112. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
  113. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.js +0 -100
  114. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
  115. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
  116. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -38
  117. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
  118. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
  119. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.js +0 -14
  120. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
  121. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
  122. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.js +0 -9
  123. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
  124. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -83
  125. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
@@ -1,111 +0,0 @@
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.updateCmpConfig = exports.getCmpConfig = exports.WebhookIdentityType = void 0;
27
- const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
- const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
- const ambassadorWixBuLegalV2CmpConfig = __importStar(require("./bu-legal-v2-cmp-config-cmp.http.js"));
30
- var WebhookIdentityType;
31
- (function (WebhookIdentityType) {
32
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
33
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
34
- WebhookIdentityType["MEMBER"] = "MEMBER";
35
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
36
- WebhookIdentityType["APP"] = "APP";
37
- })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
38
- /**
39
- * Retrieves a CMP config.
40
- * @public
41
- * @documentationMaturity preview
42
- * @permissionId COOKIE_CONSENT.CMP_CONFIG_READ
43
- * @permissionScope Manage CMP Configurations
44
- * @permissionScopeId SCOPE.CMP_CONFIG.MANAGE
45
- * @permissionScope Read CMP Configurations
46
- * @permissionScopeId SCOPE.CMP_CONFIG.READ_ONLY
47
- * @applicableIdentity APP
48
- * @returns Requested CMP config.
49
- * @fqn wix.bu.legal.v2.CmpConfigService.GetCmpConfig
50
- */
51
- async function getCmpConfig() {
52
- // @ts-ignore
53
- const { httpClient, sideEffects } = arguments[0];
54
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
55
- const reqOpts = ambassadorWixBuLegalV2CmpConfig.getCmpConfig(payload);
56
- sideEffects?.onSiteCall?.();
57
- try {
58
- const result = await httpClient.request(reqOpts);
59
- sideEffects?.onSuccess?.(result);
60
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.cmpConfig;
61
- }
62
- catch (err) {
63
- const transformedError = (0, transform_error_1.transformError)(err, {
64
- spreadPathsToArguments: {},
65
- explicitPathsToArguments: {},
66
- singleArgumentUnchanged: false,
67
- }, []);
68
- sideEffects?.onError?.(err);
69
- throw transformedError;
70
- }
71
- }
72
- exports.getCmpConfig = getCmpConfig;
73
- /**
74
- * Updates a CMP config.
75
- * @param cmpConfig - CMP config to be updated.
76
- * @public
77
- * @documentationMaturity preview
78
- * @requiredField cmpConfig
79
- * @requiredField cmpConfig.revision
80
- * @permissionId COOKIE_CONSENT.CMP_CONFIG_UPDATE
81
- * @permissionScope Manage CMP Configurations
82
- * @permissionScopeId SCOPE.CMP_CONFIG.MANAGE
83
- * @applicableIdentity APP
84
- * @returns Updated CMP config.
85
- * @fqn wix.bu.legal.v2.CmpConfigService.UpdateCmpConfig
86
- */
87
- async function updateCmpConfig(cmpConfig) {
88
- // @ts-ignore
89
- const { httpClient, sideEffects } = arguments[1];
90
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
91
- cmpConfig: cmpConfig,
92
- });
93
- const reqOpts = ambassadorWixBuLegalV2CmpConfig.updateCmpConfig(payload);
94
- sideEffects?.onSiteCall?.();
95
- try {
96
- const result = await httpClient.request(reqOpts);
97
- sideEffects?.onSuccess?.(result);
98
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.cmpConfig;
99
- }
100
- catch (err) {
101
- const transformedError = (0, transform_error_1.transformError)(err, {
102
- spreadPathsToArguments: {},
103
- explicitPathsToArguments: { cmpConfig: '$[0]' },
104
- singleArgumentUnchanged: false,
105
- }, ['cmpConfig']);
106
- sideEffects?.onError?.(err);
107
- throw transformedError;
108
- }
109
- }
110
- exports.updateCmpConfig = updateCmpConfig;
111
- //# sourceMappingURL=bu-legal-v2-cmp-config-cmp.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bu-legal-v2-cmp-config-cmp.universal.js","sourceRoot":"","sources":["../../../../src/bu-legal-v2-cmp-config-cmp.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,sGAAwF;AAqLxF,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAWD;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,YAAY;IAChC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GAAG,+BAA+B,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAEtE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAU,CAAC;IAC1E,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA/BD,oCA+BC;AAED;;;;;;;;;;;;;GAaG;AACI,KAAK,UAAU,eAAe,CACnC,SAAkD;IAElD,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAEzE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAU,CAAC;IAC1E,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;YAC/C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,WAAW,CAAC,CACd,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAnCD,0CAmCC"}
@@ -1 +0,0 @@
1
- export * from './src/bu-legal-v2-cmp-config-cmp.context.js';
@@ -1,2 +0,0 @@
1
- export * from './src/bu-legal-v2-cmp-config-cmp.context.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/bu-legal-v2-cmp-config-cmp.universal.js';
@@ -1,2 +0,0 @@
1
- export * from './src/bu-legal-v2-cmp-config-cmp.universal.js';
2
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/bu-legal-v2-cmp-config-cmp.meta.js';
@@ -1,2 +0,0 @@
1
- export * from './src/bu-legal-v2-cmp-config-cmp.meta.js';
2
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
@@ -1,6 +0,0 @@
1
- import { getCmpConfig as publicGetCmpConfig, updateCmpConfig as publicUpdateCmpConfig } from './bu-legal-v2-cmp-config-cmp.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const getCmpConfig: MaybeContext<BuildRESTFunction<typeof publicGetCmpConfig> & typeof publicGetCmpConfig>;
4
- export declare const updateCmpConfig: MaybeContext<BuildRESTFunction<typeof publicUpdateCmpConfig> & typeof publicUpdateCmpConfig>;
5
- export { WebhookIdentityType } from './bu-legal-v2-cmp-config-cmp.universal.js';
6
- export { CmpConfig, GetCmpConfigRequest, GetCmpConfigResponse, UpdateCmpConfigRequest, UpdateCmpConfigResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, } from './bu-legal-v2-cmp-config-cmp.universal.js';
@@ -1,6 +0,0 @@
1
- import { getCmpConfig as publicGetCmpConfig, updateCmpConfig as publicUpdateCmpConfig, } from './bu-legal-v2-cmp-config-cmp.public.js';
2
- import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
- export const getCmpConfig = /*#__PURE__*/ createRESTModule(publicGetCmpConfig);
4
- export const updateCmpConfig = /*#__PURE__*/ createRESTModule(publicUpdateCmpConfig);
5
- export { WebhookIdentityType } from './bu-legal-v2-cmp-config-cmp.universal.js';
6
- //# sourceMappingURL=bu-legal-v2-cmp-config-cmp.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bu-legal-v2-cmp-config-cmp.context.js","sourceRoot":"","sources":["../../../../src/bu-legal-v2-cmp-config-cmp.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,eAAe,IAAI,qBAAqB,GACzC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,YAAY,GAErB,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,eAAe,GAExB,aAAa,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC"}
@@ -1,5 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /** Retrieves a CMP config. */
3
- export declare function getCmpConfig(payload: object): RequestOptionsFactory<any>;
4
- /** Updates a CMP config. */
5
- export declare function updateCmpConfig(payload: object): RequestOptionsFactory<any>;
@@ -1,100 +0,0 @@
1
- import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
- import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
4
- import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
5
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
6
- import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
7
- function resolveWixBuLegalV2CmpConfigServiceUrl(opts) {
8
- const domainToMappings = {
9
- 'api._api_base_domain_': [
10
- {
11
- srcPath: '/cmp-config-v2',
12
- destPath: '',
13
- },
14
- ],
15
- 'manage._base_domain_': [
16
- {
17
- srcPath: '/_api/cmp-config-v2',
18
- destPath: '/api',
19
- },
20
- ],
21
- 'www.wixapis.com': [
22
- {
23
- srcPath: '/consent/cmp',
24
- destPath: '',
25
- },
26
- ],
27
- };
28
- return resolveUrl(Object.assign(opts, { domainToMappings }));
29
- }
30
- const PACKAGE_NAME = '@wix/auto_sdk_consent-policy_cmp';
31
- /** Retrieves a CMP config. */
32
- export function getCmpConfig(payload) {
33
- function __getCmpConfig({ host }) {
34
- const metadata = {
35
- entityFqdn: 'wix.bu.legal.v2.cmp_config',
36
- method: 'GET',
37
- methodFqn: 'wix.bu.legal.v2.CmpConfigService.GetCmpConfig',
38
- packageName: PACKAGE_NAME,
39
- url: resolveWixBuLegalV2CmpConfigServiceUrl({
40
- protoPath: '/v2/cmp-configs',
41
- data: payload,
42
- host,
43
- }),
44
- params: toURLSearchParams(payload),
45
- transformResponse: (payload) => transformPaths(payload, [
46
- {
47
- transformFn: transformRESTTimestampToSDKTimestamp,
48
- paths: [
49
- { path: 'cmpConfig.createdDate' },
50
- { path: 'cmpConfig.updatedDate' },
51
- ],
52
- },
53
- ]),
54
- };
55
- return metadata;
56
- }
57
- return __getCmpConfig;
58
- }
59
- /** Updates a CMP config. */
60
- export function updateCmpConfig(payload) {
61
- function __updateCmpConfig({ host }) {
62
- const serializedData = transformPaths(payload, [
63
- {
64
- transformFn: transformSDKFieldMaskToRESTFieldMask,
65
- paths: [{ path: 'fieldMask' }],
66
- },
67
- {
68
- transformFn: transformSDKTimestampToRESTTimestamp,
69
- paths: [
70
- { path: 'cmpConfig.createdDate' },
71
- { path: 'cmpConfig.updatedDate' },
72
- ],
73
- },
74
- ]);
75
- const metadata = {
76
- entityFqdn: 'wix.bu.legal.v2.cmp_config',
77
- method: 'PATCH',
78
- methodFqn: 'wix.bu.legal.v2.CmpConfigService.UpdateCmpConfig',
79
- packageName: PACKAGE_NAME,
80
- url: resolveWixBuLegalV2CmpConfigServiceUrl({
81
- protoPath: '/v2/cmp-configs',
82
- data: serializedData,
83
- host,
84
- }),
85
- data: serializedData,
86
- transformResponse: (payload) => transformPaths(payload, [
87
- {
88
- transformFn: transformRESTTimestampToSDKTimestamp,
89
- paths: [
90
- { path: 'cmpConfig.createdDate' },
91
- { path: 'cmpConfig.updatedDate' },
92
- ],
93
- },
94
- ]),
95
- };
96
- return metadata;
97
- }
98
- return __updateCmpConfig;
99
- }
100
- //# sourceMappingURL=bu-legal-v2-cmp-config-cmp.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bu-legal-v2-cmp-config-cmp.http.js","sourceRoot":"","sources":["../../../../src/bu-legal-v2-cmp-config-cmp.http.ts"],"names":[],"mappings":"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"}
@@ -1,14 +0,0 @@
1
- import * as ambassadorWixBuLegalV2CmpConfigTypes from './bu-legal-v2-cmp-config-cmp.types.js';
2
- import * as ambassadorWixBuLegalV2CmpConfigUniversalTypes from './bu-legal-v2-cmp-config-cmp.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function getCmpConfig(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixBuLegalV2CmpConfigUniversalTypes.GetCmpConfigRequest, ambassadorWixBuLegalV2CmpConfigTypes.GetCmpConfigRequest, ambassadorWixBuLegalV2CmpConfigUniversalTypes.GetCmpConfigResponse, ambassadorWixBuLegalV2CmpConfigTypes.GetCmpConfigResponse>;
14
- export declare function updateCmpConfig(): __PublicMethodMetaInfo<'PATCH', {}, ambassadorWixBuLegalV2CmpConfigUniversalTypes.UpdateCmpConfigRequest, ambassadorWixBuLegalV2CmpConfigTypes.UpdateCmpConfigRequest, ambassadorWixBuLegalV2CmpConfigUniversalTypes.UpdateCmpConfigResponse, ambassadorWixBuLegalV2CmpConfigTypes.UpdateCmpConfigResponse>;
@@ -1,38 +0,0 @@
1
- import * as ambassadorWixBuLegalV2CmpConfig from './bu-legal-v2-cmp-config-cmp.http.js';
2
- export function getCmpConfig() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixBuLegalV2CmpConfig.getCmpConfig(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'GET',
12
- path: '/v2/cmp-configs',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- export function updateCmpConfig() {
21
- const payload = {};
22
- const getRequestOptions = ambassadorWixBuLegalV2CmpConfig.updateCmpConfig(payload);
23
- const getUrl = (context) => {
24
- const { url } = getRequestOptions(context);
25
- return url;
26
- };
27
- return {
28
- getUrl,
29
- httpMethod: 'PATCH',
30
- path: '/v2/cmp-configs',
31
- pathParams: {},
32
- __requestType: null,
33
- __originalRequestType: null,
34
- __responseType: null,
35
- __originalResponseType: null,
36
- };
37
- }
38
- //# sourceMappingURL=bu-legal-v2-cmp-config-cmp.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bu-legal-v2-cmp-config-cmp.meta.js","sourceRoot":"","sources":["../../../../src/bu-legal-v2-cmp-config-cmp.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,+BAA+B,MAAM,sCAAsC,CAAC;AAsBxF,MAAM,UAAU,YAAY;IAQ1B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAExD,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe;IAQ7B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAE3D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,23 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { CmpConfig } from './bu-legal-v2-cmp-config-cmp.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function getCmpConfig(httpClient: HttpClient): GetCmpConfigSignature;
7
- interface GetCmpConfigSignature {
8
- /**
9
- * Retrieves a CMP config.
10
- * @returns Requested CMP config.
11
- */
12
- (): Promise<CmpConfig>;
13
- }
14
- export declare function updateCmpConfig(httpClient: HttpClient): UpdateCmpConfigSignature;
15
- interface UpdateCmpConfigSignature {
16
- /**
17
- * Updates a CMP config.
18
- * @param - CMP config to be updated.
19
- * @returns Updated CMP config.
20
- */
21
- (cmpConfig: CmpConfig): Promise<CmpConfig>;
22
- }
23
- export { ActionEvent, CmpConfig, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetCmpConfigRequest, GetCmpConfigResponse, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, RestoreInfo, UpdateCmpConfigRequest, UpdateCmpConfigResponse, WebhookIdentityType, } from './bu-legal-v2-cmp-config-cmp.universal.js';
@@ -1,14 +0,0 @@
1
- import { getCmpConfig as universalGetCmpConfig, updateCmpConfig as universalUpdateCmpConfig, } from './bu-legal-v2-cmp-config-cmp.universal.js';
2
- export const __metadata = { PACKAGE_NAME: '@wix/consent-policy' };
3
- export function getCmpConfig(httpClient) {
4
- return () => universalGetCmpConfig(
5
- // @ts-ignore
6
- { httpClient });
7
- }
8
- export function updateCmpConfig(httpClient) {
9
- return (cmpConfig) => universalUpdateCmpConfig(cmpConfig,
10
- // @ts-ignore
11
- { httpClient });
12
- }
13
- export { WebhookIdentityType, } from './bu-legal-v2-cmp-config-cmp.universal.js';
14
- //# sourceMappingURL=bu-legal-v2-cmp-config-cmp.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bu-legal-v2-cmp-config-cmp.public.js","sourceRoot":"","sources":["../../../../src/bu-legal-v2-cmp-config-cmp.public.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,IAAI,qBAAqB,EACrC,eAAe,IAAI,wBAAwB,GAC5C,MAAM,2CAA2C,CAAC;AAEnD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,GAAG,EAAE,CACV,qBAAqB;IACnB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,MAAM,UAAU,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,SAAkD,EAAE,EAAE,CAC5D,wBAAwB,CACtB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,OAAO,EAgBL,mBAAmB,GACpB,MAAM,2CAA2C,CAAC"}
@@ -1,176 +0,0 @@
1
- /**
2
- * A CMP Config is a collection of settings and parameters defined within a consent management platform.
3
- *
4
- * Currently only contains a toggle to manage the visibility of social components until site visitors provide their consent.
5
- */
6
- export interface CmpConfig {
7
- /**
8
- * Revision number, which increments by 1 each time the CMP config is updated.
9
- * To prevent conflicting changes,
10
- * the current revision must be passed when updating the CMP config.
11
- * @readonly
12
- */
13
- revision?: string | null;
14
- /**
15
- * Date and time the CMP config was created.
16
- * @readonly
17
- */
18
- createdDate?: Date | null;
19
- /**
20
- * Date and time the CMP config was last updated.
21
- * @readonly
22
- */
23
- updatedDate?: Date | null;
24
- /** Whether elements are blocked until consent is given. */
25
- socialElementsBlocked?: boolean | null;
26
- }
27
- export interface GetCmpConfigRequest {
28
- }
29
- export interface GetCmpConfigResponse {
30
- /** Requested CMP config. */
31
- cmpConfig?: CmpConfig;
32
- }
33
- export interface UpdateCmpConfigRequest {
34
- /** CMP config to be updated. */
35
- cmpConfig: CmpConfig;
36
- }
37
- export interface UpdateCmpConfigResponse {
38
- /** Updated CMP config. */
39
- cmpConfig?: CmpConfig;
40
- }
41
- export interface DomainEvent extends DomainEventBodyOneOf {
42
- createdEvent?: EntityCreatedEvent;
43
- updatedEvent?: EntityUpdatedEvent;
44
- deletedEvent?: EntityDeletedEvent;
45
- actionEvent?: ActionEvent;
46
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
47
- id?: string;
48
- /**
49
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
50
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
51
- */
52
- entityFqdn?: string;
53
- /**
54
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
55
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
56
- */
57
- slug?: string;
58
- /** ID of the entity associated with the event. */
59
- entityId?: string;
60
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
61
- eventTime?: Date | null;
62
- /**
63
- * Whether the event was triggered as a result of a privacy regulation application
64
- * (for example, GDPR).
65
- */
66
- triggeredByAnonymizeRequest?: boolean | null;
67
- /** If present, indicates the action that triggered the event. */
68
- originatedFrom?: string | null;
69
- /**
70
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
71
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
72
- */
73
- entityEventSequence?: string | null;
74
- }
75
- /** @oneof */
76
- export interface DomainEventBodyOneOf {
77
- createdEvent?: EntityCreatedEvent;
78
- updatedEvent?: EntityUpdatedEvent;
79
- deletedEvent?: EntityDeletedEvent;
80
- actionEvent?: ActionEvent;
81
- }
82
- export interface EntityCreatedEvent {
83
- entityAsJson?: string;
84
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
85
- restoreInfo?: RestoreInfo;
86
- }
87
- export interface RestoreInfo {
88
- deletedDate?: Date | null;
89
- }
90
- export interface EntityUpdatedEvent {
91
- /**
92
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
93
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
94
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
95
- */
96
- currentEntityAsJson?: string;
97
- }
98
- export interface EntityDeletedEvent {
99
- /** Entity that was deleted. */
100
- deletedEntityAsJson?: string | null;
101
- }
102
- export interface ActionEvent {
103
- bodyAsJson?: string;
104
- }
105
- export interface MessageEnvelope {
106
- /**
107
- * App instance ID.
108
- * @format GUID
109
- */
110
- instanceId?: string | null;
111
- /**
112
- * Event type.
113
- * @maxLength 150
114
- */
115
- eventType?: string;
116
- /** The identification type and identity data. */
117
- identity?: IdentificationData;
118
- /** Stringify payload. */
119
- data?: string;
120
- }
121
- export interface IdentificationData extends IdentificationDataIdOneOf {
122
- /**
123
- * ID of a site visitor that has not logged in to the site.
124
- * @format GUID
125
- */
126
- anonymousVisitorId?: string;
127
- /**
128
- * ID of a site visitor that has logged in to the site.
129
- * @format GUID
130
- */
131
- memberId?: string;
132
- /**
133
- * ID of a Wix user (site owner, contributor, etc.).
134
- * @format GUID
135
- */
136
- wixUserId?: string;
137
- /**
138
- * ID of an app.
139
- * @format GUID
140
- */
141
- appId?: string;
142
- /** @readonly */
143
- identityType?: WebhookIdentityTypeWithLiterals;
144
- }
145
- /** @oneof */
146
- export interface IdentificationDataIdOneOf {
147
- /**
148
- * ID of a site visitor that has not logged in to the site.
149
- * @format GUID
150
- */
151
- anonymousVisitorId?: string;
152
- /**
153
- * ID of a site visitor that has logged in to the site.
154
- * @format GUID
155
- */
156
- memberId?: string;
157
- /**
158
- * ID of a Wix user (site owner, contributor, etc.).
159
- * @format GUID
160
- */
161
- wixUserId?: string;
162
- /**
163
- * ID of an app.
164
- * @format GUID
165
- */
166
- appId?: string;
167
- }
168
- export declare enum WebhookIdentityType {
169
- UNKNOWN = "UNKNOWN",
170
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
171
- MEMBER = "MEMBER",
172
- WIX_USER = "WIX_USER",
173
- APP = "APP"
174
- }
175
- /** @enumType */
176
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1,9 +0,0 @@
1
- export var WebhookIdentityType;
2
- (function (WebhookIdentityType) {
3
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
4
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
5
- WebhookIdentityType["MEMBER"] = "MEMBER";
6
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
7
- WebhookIdentityType["APP"] = "APP";
8
- })(WebhookIdentityType || (WebhookIdentityType = {}));
9
- //# sourceMappingURL=bu-legal-v2-cmp-config-cmp.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bu-legal-v2-cmp-config-cmp.types.js","sourceRoot":"","sources":["../../../../src/bu-legal-v2-cmp-config-cmp.types.ts"],"names":[],"mappings":"AAqLA,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}