@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,152 @@
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
+ entityAsJson?: string;
92
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
93
+ restoreInfo?: RestoreInfo;
94
+ }
95
+ export interface RestoreInfo {
96
+ deletedDate?: Date | null;
97
+ }
98
+ export interface EntityUpdatedEvent {
99
+ /**
100
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
101
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
102
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
103
+ */
104
+ currentEntityAsJson?: string;
105
+ }
106
+ export interface EntityDeletedEvent {
107
+ /** Entity that was deleted */
108
+ deletedEntityAsJson?: string | null;
109
+ }
110
+ export interface ActionEvent {
111
+ bodyAsJson?: string;
112
+ }
113
+ export interface MessageEnvelope {
114
+ /** App instance ID. */
115
+ instanceId?: string | null;
116
+ /** Event type. */
117
+ eventType?: string;
118
+ /** The identification type and identity data. */
119
+ identity?: IdentificationData;
120
+ /** Stringify payload. */
121
+ data?: string;
122
+ }
123
+ export interface IdentificationData extends IdentificationDataIdOneOf {
124
+ /** ID of a site visitor that has not logged in to the site. */
125
+ anonymousVisitorId?: string;
126
+ /** ID of a site visitor that has logged in to the site. */
127
+ memberId?: string;
128
+ /** ID of a Wix user (site owner, contributor, etc.). */
129
+ wixUserId?: string;
130
+ /** ID of an app. */
131
+ appId?: string;
132
+ /** @readonly */
133
+ identityType?: WebhookIdentityType;
134
+ }
135
+ /** @oneof */
136
+ export interface IdentificationDataIdOneOf {
137
+ /** ID of a site visitor that has not logged in to the site. */
138
+ anonymousVisitorId?: string;
139
+ /** ID of a site visitor that has logged in to the site. */
140
+ memberId?: string;
141
+ /** ID of a Wix user (site owner, contributor, etc.). */
142
+ wixUserId?: string;
143
+ /** ID of an app. */
144
+ appId?: string;
145
+ }
146
+ export declare enum WebhookIdentityType {
147
+ UNKNOWN = "UNKNOWN",
148
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
149
+ MEMBER = "MEMBER",
150
+ WIX_USER = "WIX_USER",
151
+ APP = "APP"
152
+ }
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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":"AA+JA,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"}
@@ -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,83 @@
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
@@ -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,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;AA+JxF,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;AAED;;;;;;;;;;;;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,CA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M,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.context.js';
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bu-legal-v2-cmp-config-cmp.context.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8EAA4D"}
@@ -0,0 +1 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.universal.js';
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bu-legal-v2-cmp-config-cmp.universal.js"), exports);
18
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAA8D"}
@@ -0,0 +1 @@
1
+ export * from './src/bu-legal-v2-cmp-config-cmp.meta.js';
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/bu-legal-v2-cmp-config-cmp.meta.js"), exports);
18
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD"}
@@ -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,10 @@
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
@@ -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,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"}
@@ -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,105 @@
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
@@ -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,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,IA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