@wix/auto_sdk_consent-policy_cmp 1.0.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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.d.ts +6 -0
  11. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.js +10 -0
  12. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.js.map +1 -0
  13. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.d.ts +5 -0
  14. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.js +105 -0
  15. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.js.map +1 -0
  16. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +14 -0
  17. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js +66 -0
  18. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js.map +1 -0
  19. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.d.ts +23 -0
  20. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.js +20 -0
  21. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.js.map +1 -0
  22. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.d.ts +152 -0
  23. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.js +12 -0
  24. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.js.map +1 -0
  25. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +179 -0
  26. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js +111 -0
  27. package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/bu-legal-v2-cmp-config-cmp.context.d.ts +6 -0
  39. package/build/es/src/bu-legal-v2-cmp-config-cmp.context.js +6 -0
  40. package/build/es/src/bu-legal-v2-cmp-config-cmp.context.js.map +1 -0
  41. package/build/es/src/bu-legal-v2-cmp-config-cmp.http.d.ts +5 -0
  42. package/build/es/src/bu-legal-v2-cmp-config-cmp.http.js +100 -0
  43. package/build/es/src/bu-legal-v2-cmp-config-cmp.http.js.map +1 -0
  44. package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +14 -0
  45. package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.js +38 -0
  46. package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.js.map +1 -0
  47. package/build/es/src/bu-legal-v2-cmp-config-cmp.public.d.ts +23 -0
  48. package/build/es/src/bu-legal-v2-cmp-config-cmp.public.js +14 -0
  49. package/build/es/src/bu-legal-v2-cmp-config-cmp.public.js.map +1 -0
  50. package/build/es/src/bu-legal-v2-cmp-config-cmp.types.d.ts +152 -0
  51. package/build/es/src/bu-legal-v2-cmp-config-cmp.types.js +9 -0
  52. package/build/es/src/bu-legal-v2-cmp-config-cmp.types.js.map +1 -0
  53. package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +179 -0
  54. package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.js +83 -0
  55. package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.d.ts +6 -0
  66. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.js +10 -0
  67. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.js.map +1 -0
  68. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.d.ts +5 -0
  69. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.js +105 -0
  70. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.js.map +1 -0
  71. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +14 -0
  72. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js +66 -0
  73. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js.map +1 -0
  74. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.d.ts +23 -0
  75. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.js +20 -0
  76. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.js.map +1 -0
  77. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.d.ts +152 -0
  78. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.js +12 -0
  79. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.js.map +1 -0
  80. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +179 -0
  81. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js +111 -0
  82. package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.d.ts +6 -0
  93. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.js +6 -0
  94. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.js.map +1 -0
  95. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.d.ts +5 -0
  96. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.js +100 -0
  97. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.js.map +1 -0
  98. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +14 -0
  99. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.js +38 -0
  100. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.js.map +1 -0
  101. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.d.ts +23 -0
  102. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.js +14 -0
  103. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.js.map +1 -0
  104. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.d.ts +152 -0
  105. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.js +9 -0
  106. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.js.map +1 -0
  107. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +179 -0
  108. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.universal.js +83 -0
  109. package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,179 @@
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
+ /**
47
+ * Unique event ID.
48
+ * Allows clients to ignore duplicate webhooks.
49
+ */
50
+ _id?: string;
51
+ /**
52
+ * Assumes actions are also always typed to an entity_type
53
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
54
+ */
55
+ entityFqdn?: string;
56
+ /**
57
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
58
+ * This is although the created/updated/deleted notion is duplication of the oneof types
59
+ * Example: created/updated/deleted/started/completed/email_opened
60
+ */
61
+ slug?: string;
62
+ /** ID of the entity associated with the event. */
63
+ entityId?: string;
64
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
65
+ eventTime?: Date | null;
66
+ /**
67
+ * Whether the event was triggered as a result of a privacy regulation application
68
+ * (for example, GDPR).
69
+ */
70
+ triggeredByAnonymizeRequest?: boolean | null;
71
+ /** If present, indicates the action that triggered the event. */
72
+ originatedFrom?: string | null;
73
+ /**
74
+ * A sequence number defining the order of updates to the underlying entity.
75
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
76
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
77
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
78
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
79
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
80
+ */
81
+ entityEventSequence?: string | null;
82
+ }
83
+ /** @oneof */
84
+ export interface DomainEventBodyOneOf {
85
+ createdEvent?: EntityCreatedEvent;
86
+ updatedEvent?: EntityUpdatedEvent;
87
+ deletedEvent?: EntityDeletedEvent;
88
+ actionEvent?: ActionEvent;
89
+ }
90
+ export interface EntityCreatedEvent {
91
+ entity?: string;
92
+ }
93
+ export interface RestoreInfo {
94
+ deletedDate?: Date | null;
95
+ }
96
+ export interface EntityUpdatedEvent {
97
+ /**
98
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
99
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
100
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
101
+ */
102
+ currentEntity?: string;
103
+ }
104
+ export interface EntityDeletedEvent {
105
+ /** Entity that was deleted */
106
+ deletedEntity?: string | null;
107
+ }
108
+ export interface ActionEvent {
109
+ body?: string;
110
+ }
111
+ export interface MessageEnvelope {
112
+ /** App instance ID. */
113
+ instanceId?: string | null;
114
+ /** Event type. */
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
+ /** ID of a site visitor that has not logged in to the site. */
123
+ anonymousVisitorId?: string;
124
+ /** ID of a site visitor that has logged in to the site. */
125
+ memberId?: string;
126
+ /** ID of a Wix user (site owner, contributor, etc.). */
127
+ wixUserId?: string;
128
+ /** ID of an app. */
129
+ appId?: string;
130
+ /** @readonly */
131
+ identityType?: WebhookIdentityType;
132
+ }
133
+ /** @oneof */
134
+ export interface IdentificationDataIdOneOf {
135
+ /** ID of a site visitor that has not logged in to the site. */
136
+ anonymousVisitorId?: string;
137
+ /** ID of a site visitor that has logged in to the site. */
138
+ memberId?: string;
139
+ /** ID of a Wix user (site owner, contributor, etc.). */
140
+ wixUserId?: string;
141
+ /** ID of an app. */
142
+ appId?: string;
143
+ }
144
+ export declare enum WebhookIdentityType {
145
+ UNKNOWN = "UNKNOWN",
146
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
147
+ MEMBER = "MEMBER",
148
+ WIX_USER = "WIX_USER",
149
+ APP = "APP"
150
+ }
151
+ /**
152
+ * Retrieves a CMP config.
153
+ * @public
154
+ * @documentationMaturity preview
155
+ * @permissionId COOKIE_CONSENT.CMP_CONFIG_READ
156
+ * @permissionScope Manage CMP Configurations
157
+ * @permissionScopeId SCOPE.CMP_CONFIG.MANAGE
158
+ * @permissionScope Read CMP Configurations
159
+ * @permissionScopeId SCOPE.CMP_CONFIG.READ_ONLY
160
+ * @applicableIdentity APP
161
+ * @returns Requested CMP config.
162
+ * @fqn wix.bu.legal.v2.CmpConfigService.GetCmpConfig
163
+ */
164
+ export declare function getCmpConfig(): Promise<CmpConfig>;
165
+ /**
166
+ * Updates a CMP config.
167
+ * @param cmpConfig - CMP config to be updated.
168
+ * @public
169
+ * @documentationMaturity preview
170
+ * @requiredField cmpConfig
171
+ * @requiredField cmpConfig.revision
172
+ * @permissionId COOKIE_CONSENT.CMP_CONFIG_UPDATE
173
+ * @permissionScope Manage CMP Configurations
174
+ * @permissionScopeId SCOPE.CMP_CONFIG.MANAGE
175
+ * @applicableIdentity APP
176
+ * @returns Updated CMP config.
177
+ * @fqn wix.bu.legal.v2.CmpConfigService.UpdateCmpConfig
178
+ */
179
+ export declare function updateCmpConfig(cmpConfig: CmpConfig): Promise<CmpConfig>;
@@ -0,0 +1,111 @@
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
@@ -0,0 +1 @@
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;AA+JxF,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;AAED;;;;;;;;;;;;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,SAAoB;IAEpB,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"}
@@ -0,0 +1 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.context.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.context.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.universal.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.universal.js';
2
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.meta.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.meta.js';
2
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
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>;
@@ -0,0 +1,100 @@
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
@@ -0,0 +1 @@
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":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,sCAAsC,CAC7C,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,cAAc;gBACvB,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,kCAAkC,CAAC;AAExD,8BAA8B;AAC9B,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,SAAS,cAAc,CAAC,EAAE,IAAI,EAAO;QACnC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,KAAY;YACpB,SAAS,EAAE,+CAA+C;YAC1D,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,sCAAsC,CAAC;gBAC1C,SAAS,EAAE,iBAAiB;gBAC5B,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;wBACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;qBAClC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,4BAA4B;AAC5B,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,oCAAoC;gBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;aAC/B;YACD;gBACE,WAAW,EAAE,oCAAoC;gBACjD,KAAK,EAAE;oBACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;oBACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;iBAClC;aACF;SACF,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,OAAc;YACtB,SAAS,EAAE,kDAAkD;YAC7D,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,sCAAsC,CAAC;gBAC1C,SAAS,EAAE,iBAAiB;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;wBACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;qBAClC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
@@ -0,0 +1,14 @@
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>;
@@ -0,0 +1,38 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,23 @@
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';
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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,SAAoB,EAAE,EAAE,CAC9B,wBAAwB,CACtB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,OAAO,EAgBL,mBAAmB,GACpB,MAAM,2CAA2C,CAAC"}