@wix/auto_sdk_consent-policy_cmp 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +28 -1
- package/build/cjs/index.js +218 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +209 -1
- package/build/cjs/index.typings.js +198 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +58 -1
- package/build/cjs/meta.js +172 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +28 -0
- package/build/es/index.mjs +195 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.d.ts → es/index.typings.d.mts} +30 -25
- package/build/es/index.typings.mjs +175 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +58 -0
- package/build/es/meta.mjs +147 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +28 -1
- package/build/internal/cjs/index.js +218 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +209 -1
- package/build/internal/cjs/index.typings.js +198 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +58 -1
- package/build/internal/cjs/meta.js +172 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +28 -0
- package/build/internal/es/index.mjs +195 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/{src/bu-legal-v2-cmp-config-cmp.universal.d.ts → index.typings.d.mts} +30 -25
- package/build/internal/es/index.typings.mjs +175 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +58 -0
- package/build/internal/es/meta.mjs +147 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +12 -10
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.js +0 -10
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.js +0 -105
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -66
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.js +0 -20
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.js +0 -12
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +0 -204
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -111
- package/build/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
- package/build/es/src/bu-legal-v2-cmp-config-cmp.context.js +0 -6
- package/build/es/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
- package/build/es/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
- package/build/es/src/bu-legal-v2-cmp-config-cmp.http.js +0 -100
- package/build/es/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
- package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
- package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -38
- package/build/es/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
- package/build/es/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
- package/build/es/src/bu-legal-v2-cmp-config-cmp.public.js +0 -14
- package/build/es/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
- package/build/es/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
- package/build/es/src/bu-legal-v2-cmp-config-cmp.types.js +0 -9
- package/build/es/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
- package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.d.ts +0 -204
- package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -83
- package/build/es/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.js +0 -10
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.js +0 -105
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -66
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.js +0 -20
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.js +0 -12
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -111
- package/build/internal/cjs/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.d.ts +0 -6
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.js +0 -6
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.context.js.map +0 -1
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.d.ts +0 -5
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.js +0 -100
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.http.js.map +0 -1
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.d.ts +0 -14
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.js +0 -38
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.meta.js.map +0 -1
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.d.ts +0 -23
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.js +0 -14
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.public.js.map +0 -1
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.d.ts +0 -176
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.js +0 -9
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.types.js.map +0 -1
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.universal.js +0 -83
- package/build/internal/es/src/bu-legal-v2-cmp-config-cmp.universal.js.map +0 -1
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
-
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
3
|
-
import * as ambassadorWixBuLegalV2CmpConfig from './bu-legal-v2-cmp-config-cmp.http.js';
|
|
4
|
-
export var WebhookIdentityType;
|
|
5
|
-
(function (WebhookIdentityType) {
|
|
6
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
7
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
8
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
9
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
10
|
-
WebhookIdentityType["APP"] = "APP";
|
|
11
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves a CMP config.
|
|
14
|
-
* @public
|
|
15
|
-
* @documentationMaturity preview
|
|
16
|
-
* @permissionId COOKIE_CONSENT.CMP_CONFIG_READ
|
|
17
|
-
* @permissionScope Manage CMP Configurations
|
|
18
|
-
* @permissionScopeId SCOPE.CMP_CONFIG.MANAGE
|
|
19
|
-
* @permissionScope Read CMP Configurations
|
|
20
|
-
* @permissionScopeId SCOPE.CMP_CONFIG.READ_ONLY
|
|
21
|
-
* @applicableIdentity APP
|
|
22
|
-
* @returns Requested CMP config.
|
|
23
|
-
* @fqn wix.bu.legal.v2.CmpConfigService.GetCmpConfig
|
|
24
|
-
*/
|
|
25
|
-
export async function getCmpConfig() {
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
28
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
29
|
-
const reqOpts = ambassadorWixBuLegalV2CmpConfig.getCmpConfig(payload);
|
|
30
|
-
sideEffects?.onSiteCall?.();
|
|
31
|
-
try {
|
|
32
|
-
const result = await httpClient.request(reqOpts);
|
|
33
|
-
sideEffects?.onSuccess?.(result);
|
|
34
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)?.cmpConfig;
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
const transformedError = sdkTransformError(err, {
|
|
38
|
-
spreadPathsToArguments: {},
|
|
39
|
-
explicitPathsToArguments: {},
|
|
40
|
-
singleArgumentUnchanged: false,
|
|
41
|
-
}, []);
|
|
42
|
-
sideEffects?.onError?.(err);
|
|
43
|
-
throw transformedError;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Updates a CMP config.
|
|
48
|
-
* @param cmpConfig - CMP config to be updated.
|
|
49
|
-
* @public
|
|
50
|
-
* @documentationMaturity preview
|
|
51
|
-
* @requiredField cmpConfig
|
|
52
|
-
* @requiredField cmpConfig.revision
|
|
53
|
-
* @permissionId COOKIE_CONSENT.CMP_CONFIG_UPDATE
|
|
54
|
-
* @permissionScope Manage CMP Configurations
|
|
55
|
-
* @permissionScopeId SCOPE.CMP_CONFIG.MANAGE
|
|
56
|
-
* @applicableIdentity APP
|
|
57
|
-
* @returns Updated CMP config.
|
|
58
|
-
* @fqn wix.bu.legal.v2.CmpConfigService.UpdateCmpConfig
|
|
59
|
-
*/
|
|
60
|
-
export async function updateCmpConfig(cmpConfig) {
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
63
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
64
|
-
cmpConfig: cmpConfig,
|
|
65
|
-
});
|
|
66
|
-
const reqOpts = ambassadorWixBuLegalV2CmpConfig.updateCmpConfig(payload);
|
|
67
|
-
sideEffects?.onSiteCall?.();
|
|
68
|
-
try {
|
|
69
|
-
const result = await httpClient.request(reqOpts);
|
|
70
|
-
sideEffects?.onSuccess?.(result);
|
|
71
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)?.cmpConfig;
|
|
72
|
-
}
|
|
73
|
-
catch (err) {
|
|
74
|
-
const transformedError = sdkTransformError(err, {
|
|
75
|
-
spreadPathsToArguments: {},
|
|
76
|
-
explicitPathsToArguments: { cmpConfig: '$[0]' },
|
|
77
|
-
singleArgumentUnchanged: false,
|
|
78
|
-
}, ['cmpConfig']);
|
|
79
|
-
sideEffects?.onError?.(err);
|
|
80
|
-
throw transformedError;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//# 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,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,+BAA+B,MAAM,sCAAsC,CAAC;AAqLxF,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;AAWD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY;IAChC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,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,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAU,CAAC;IAC1E,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,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;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,SAAkD;IAElD,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;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,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAU,CAAC;IAC1E,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,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"}
|
|
@@ -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,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.updateCmpConfig = exports.getCmpConfig = void 0;
|
|
4
|
-
const bu_legal_v2_cmp_config_cmp_public_js_1 = require("./bu-legal-v2-cmp-config-cmp.public.js");
|
|
5
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
-
exports.getCmpConfig = (0, rest_modules_1.createRESTModule)(bu_legal_v2_cmp_config_cmp_public_js_1.getCmpConfig);
|
|
7
|
-
exports.updateCmpConfig = (0, rest_modules_1.createRESTModule)(bu_legal_v2_cmp_config_cmp_public_js_1.updateCmpConfig);
|
|
8
|
-
var bu_legal_v2_cmp_config_cmp_universal_js_1 = require("./bu-legal-v2-cmp-config-cmp.universal.js");
|
|
9
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return bu_legal_v2_cmp_config_cmp_universal_js_1.WebhookIdentityType; } });
|
|
10
|
-
//# 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,iGAGgD;AAChD,gEAAiE;AAGpD,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,mDAAkB,CAAC,CAAC;AAC1C,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,sDAAqB,CAAC,CAAC;AAE1D,qGAAgF;AAAvE,8IAAA,mBAAmB,OAAA"}
|
|
@@ -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,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateCmpConfig = exports.getCmpConfig = void 0;
|
|
4
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
-
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
8
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
-
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
10
|
-
function resolveWixBuLegalV2CmpConfigServiceUrl(opts) {
|
|
11
|
-
const domainToMappings = {
|
|
12
|
-
'api._api_base_domain_': [
|
|
13
|
-
{
|
|
14
|
-
srcPath: '/cmp-config-v2',
|
|
15
|
-
destPath: '',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
'manage._base_domain_': [
|
|
19
|
-
{
|
|
20
|
-
srcPath: '/_api/cmp-config-v2',
|
|
21
|
-
destPath: '/api',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
'www.wixapis.com': [
|
|
25
|
-
{
|
|
26
|
-
srcPath: '/consent/cmp',
|
|
27
|
-
destPath: '',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
};
|
|
31
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
32
|
-
}
|
|
33
|
-
const PACKAGE_NAME = '@wix/auto_sdk_consent-policy_cmp';
|
|
34
|
-
/** Retrieves a CMP config. */
|
|
35
|
-
function getCmpConfig(payload) {
|
|
36
|
-
function __getCmpConfig({ host }) {
|
|
37
|
-
const metadata = {
|
|
38
|
-
entityFqdn: 'wix.bu.legal.v2.cmp_config',
|
|
39
|
-
method: 'GET',
|
|
40
|
-
methodFqn: 'wix.bu.legal.v2.CmpConfigService.GetCmpConfig',
|
|
41
|
-
packageName: PACKAGE_NAME,
|
|
42
|
-
url: resolveWixBuLegalV2CmpConfigServiceUrl({
|
|
43
|
-
protoPath: '/v2/cmp-configs',
|
|
44
|
-
data: payload,
|
|
45
|
-
host,
|
|
46
|
-
}),
|
|
47
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
48
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
49
|
-
{
|
|
50
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
51
|
-
paths: [
|
|
52
|
-
{ path: 'cmpConfig.createdDate' },
|
|
53
|
-
{ path: 'cmpConfig.updatedDate' },
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
]),
|
|
57
|
-
};
|
|
58
|
-
return metadata;
|
|
59
|
-
}
|
|
60
|
-
return __getCmpConfig;
|
|
61
|
-
}
|
|
62
|
-
exports.getCmpConfig = getCmpConfig;
|
|
63
|
-
/** Updates a CMP config. */
|
|
64
|
-
function updateCmpConfig(payload) {
|
|
65
|
-
function __updateCmpConfig({ host }) {
|
|
66
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
67
|
-
{
|
|
68
|
-
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
69
|
-
paths: [{ path: 'fieldMask' }],
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
73
|
-
paths: [
|
|
74
|
-
{ path: 'cmpConfig.createdDate' },
|
|
75
|
-
{ path: 'cmpConfig.updatedDate' },
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
]);
|
|
79
|
-
const metadata = {
|
|
80
|
-
entityFqdn: 'wix.bu.legal.v2.cmp_config',
|
|
81
|
-
method: 'PATCH',
|
|
82
|
-
methodFqn: 'wix.bu.legal.v2.CmpConfigService.UpdateCmpConfig',
|
|
83
|
-
packageName: PACKAGE_NAME,
|
|
84
|
-
url: resolveWixBuLegalV2CmpConfigServiceUrl({
|
|
85
|
-
protoPath: '/v2/cmp-configs',
|
|
86
|
-
data: serializedData,
|
|
87
|
-
host,
|
|
88
|
-
}),
|
|
89
|
-
data: serializedData,
|
|
90
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
91
|
-
{
|
|
92
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
93
|
-
paths: [
|
|
94
|
-
{ path: 'cmpConfig.createdDate' },
|
|
95
|
-
{ path: 'cmpConfig.updatedDate' },
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
]),
|
|
99
|
-
};
|
|
100
|
-
return metadata;
|
|
101
|
-
}
|
|
102
|
-
return __updateCmpConfig;
|
|
103
|
-
}
|
|
104
|
-
exports.updateCmpConfig = updateCmpConfig;
|
|
105
|
-
//# 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":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;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,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,kCAAkC,CAAC;AAExD,8BAA8B;AAC9B,SAAgB,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,IAAA,gCAAiB,EAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;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;AA7BD,oCA6BC;AAED,4BAA4B;AAC5B,SAAgB,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,cAAc,GAAG,IAAA,gCAAc,EAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,iDAAoC;gBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;aAC/B;YACD;gBACE,WAAW,EAAE,gDAAoC;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,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;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;AA1CD,0CA0CC"}
|
|
@@ -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,66 +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 = void 0;
|
|
27
|
-
const ambassadorWixBuLegalV2CmpConfig = __importStar(require("./bu-legal-v2-cmp-config-cmp.http.js"));
|
|
28
|
-
function getCmpConfig() {
|
|
29
|
-
const payload = {};
|
|
30
|
-
const getRequestOptions = ambassadorWixBuLegalV2CmpConfig.getCmpConfig(payload);
|
|
31
|
-
const getUrl = (context) => {
|
|
32
|
-
const { url } = getRequestOptions(context);
|
|
33
|
-
return url;
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
getUrl,
|
|
37
|
-
httpMethod: 'GET',
|
|
38
|
-
path: '/v2/cmp-configs',
|
|
39
|
-
pathParams: {},
|
|
40
|
-
__requestType: null,
|
|
41
|
-
__originalRequestType: null,
|
|
42
|
-
__responseType: null,
|
|
43
|
-
__originalResponseType: null,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.getCmpConfig = getCmpConfig;
|
|
47
|
-
function updateCmpConfig() {
|
|
48
|
-
const payload = {};
|
|
49
|
-
const getRequestOptions = ambassadorWixBuLegalV2CmpConfig.updateCmpConfig(payload);
|
|
50
|
-
const getUrl = (context) => {
|
|
51
|
-
const { url } = getRequestOptions(context);
|
|
52
|
-
return url;
|
|
53
|
-
};
|
|
54
|
-
return {
|
|
55
|
-
getUrl,
|
|
56
|
-
httpMethod: 'PATCH',
|
|
57
|
-
path: '/v2/cmp-configs',
|
|
58
|
-
pathParams: {},
|
|
59
|
-
__requestType: null,
|
|
60
|
-
__originalRequestType: null,
|
|
61
|
-
__responseType: null,
|
|
62
|
-
__originalResponseType: null,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
exports.updateCmpConfig = updateCmpConfig;
|
|
66
|
-
//# 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,sGAAwF;AAsBxF,SAAgB,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;AA5BD,oCA4BC;AAED,SAAgB,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;AA5BD,0CA4BC"}
|
|
@@ -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,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.updateCmpConfig = exports.getCmpConfig = exports.__metadata = void 0;
|
|
4
|
-
const bu_legal_v2_cmp_config_cmp_universal_js_1 = require("./bu-legal-v2-cmp-config-cmp.universal.js");
|
|
5
|
-
exports.__metadata = { PACKAGE_NAME: '@wix/consent-policy' };
|
|
6
|
-
function getCmpConfig(httpClient) {
|
|
7
|
-
return () => (0, bu_legal_v2_cmp_config_cmp_universal_js_1.getCmpConfig)(
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
{ httpClient });
|
|
10
|
-
}
|
|
11
|
-
exports.getCmpConfig = getCmpConfig;
|
|
12
|
-
function updateCmpConfig(httpClient) {
|
|
13
|
-
return (cmpConfig) => (0, bu_legal_v2_cmp_config_cmp_universal_js_1.updateCmpConfig)(cmpConfig,
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
{ httpClient });
|
|
16
|
-
}
|
|
17
|
-
exports.updateCmpConfig = updateCmpConfig;
|
|
18
|
-
var bu_legal_v2_cmp_config_cmp_universal_js_2 = require("./bu-legal-v2-cmp-config-cmp.universal.js");
|
|
19
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return bu_legal_v2_cmp_config_cmp_universal_js_2.WebhookIdentityType; } });
|
|
20
|
-
//# 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,uGAImD;AAEtC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,GAAG,EAAE,CACV,IAAA,sDAAqB;IACnB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,oCAMC;AAUD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,SAAkD,EAAE,EAAE,CAC5D,IAAA,yDAAwB,EACtB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAWD,qGAiBmD;AADjD,8IAAA,mBAAmB,OAAA"}
|
|
@@ -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,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = void 0;
|
|
4
|
-
var WebhookIdentityType;
|
|
5
|
-
(function (WebhookIdentityType) {
|
|
6
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
7
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
8
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
9
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
10
|
-
WebhookIdentityType["APP"] = "APP";
|
|
11
|
-
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
12
|
-
//# 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,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"}
|