@oursprivacy/platform-sdk 1.45.0 → 1.46.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.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/personalization-properties.d.mts +547 -0
- package/resources/personalization-properties.d.mts.map +1 -0
- package/resources/personalization-properties.d.ts +547 -0
- package/resources/personalization-properties.d.ts.map +1 -0
- package/resources/personalization-properties.js +100 -0
- package/resources/personalization-properties.js.map +1 -0
- package/resources/personalization-properties.mjs +96 -0
- package/resources/personalization-properties.mjs.map +1 -0
- package/resources/versions.d.mts +52 -1
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +52 -1
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -0
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -0
- package/resources/versions.mjs.map +1 -1
- package/src/client.ts +31 -0
- package/src/resources/index.ts +14 -0
- package/src/resources/personalization-properties.ts +662 -0
- package/src/resources/versions.ts +95 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/versions.mjs
CHANGED
|
@@ -89,6 +89,26 @@ export class Versions extends APIResource {
|
|
|
89
89
|
diff(id, query = {}, options) {
|
|
90
90
|
return this._client.get(path `/rest/v1/versions/${id}/diff`, { query, ...options });
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Check whether one entity has unpublished changes, without fetching the org-wide
|
|
94
|
+
* draft diff.
|
|
95
|
+
* `GET /rest/v1/versions/draft/status?collection={collection}&entityId={id}`
|
|
96
|
+
* returns `status: "added" | "modified" | "removed" | null` for that entity, with
|
|
97
|
+
* the same semantics as `GET /rest/v1/versions/draft/diff` — it shares the diff's
|
|
98
|
+
* field blacklist, so passive fields (timestamps, sync bookkeeping) do not count
|
|
99
|
+
* as a change.
|
|
100
|
+
*
|
|
101
|
+
* `status` is `null` for every outcome other than a real pending change: the
|
|
102
|
+
* entity already matches the published version, the id is unknown, the id belongs
|
|
103
|
+
* to another account, or the account has never published anything. Use
|
|
104
|
+
* `GET /rest/v1/versions/draft/diff` when you need the full change set instead of
|
|
105
|
+
* one entity. (`draft` is a literal path segment identifying the live draft as the
|
|
106
|
+
* target, which is why the entity is passed as `entityId` rather than `id`.)
|
|
107
|
+
* Requires scope: version:find
|
|
108
|
+
*/
|
|
109
|
+
status(id, query, options) {
|
|
110
|
+
return this._client.get(path `/rest/v1/versions/${id}/status`, { query, ...options });
|
|
111
|
+
}
|
|
92
112
|
/**
|
|
93
113
|
* Revert one or more pending draft changes back to the latest published version
|
|
94
114
|
* (the "abandon a change" action). Send a body listing the entities to revert;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../src/resources/versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,MAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC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C3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -223,6 +223,18 @@ import {
|
|
|
223
223
|
MappingUpdateResponse,
|
|
224
224
|
Mappings,
|
|
225
225
|
} from './resources/mappings';
|
|
226
|
+
import {
|
|
227
|
+
PersonalizationProperties,
|
|
228
|
+
PersonalizationPropertyCreateParams,
|
|
229
|
+
PersonalizationPropertyCreateResponse,
|
|
230
|
+
PersonalizationPropertyDeleteResponse,
|
|
231
|
+
PersonalizationPropertyListParams,
|
|
232
|
+
PersonalizationPropertyListResponse,
|
|
233
|
+
PersonalizationPropertyListResponsesCursor,
|
|
234
|
+
PersonalizationPropertyRetrieveResponse,
|
|
235
|
+
PersonalizationPropertyUpdateParams,
|
|
236
|
+
PersonalizationPropertyUpdateResponse,
|
|
237
|
+
} from './resources/personalization-properties';
|
|
226
238
|
import {
|
|
227
239
|
ReplaySettingCreateParams,
|
|
228
240
|
ReplaySettingCreateResponse,
|
|
@@ -342,6 +354,8 @@ import {
|
|
|
342
354
|
VersionRevertParams,
|
|
343
355
|
VersionRevertResponse,
|
|
344
356
|
VersionSnapshotResponse,
|
|
357
|
+
VersionStatusParams,
|
|
358
|
+
VersionStatusResponse,
|
|
345
359
|
VersionUpdateParams,
|
|
346
360
|
VersionUpdateResponse,
|
|
347
361
|
Versions,
|
|
@@ -1186,6 +1200,7 @@ export class OursPrivacyPlatform {
|
|
|
1186
1200
|
videos: API.Videos = new API.Videos(this);
|
|
1187
1201
|
webScannerRules: API.WebScannerRules = new API.WebScannerRules(this);
|
|
1188
1202
|
webScanners: API.WebScanners = new API.WebScanners(this);
|
|
1203
|
+
personalizationProperties: API.PersonalizationProperties = new API.PersonalizationProperties(this);
|
|
1189
1204
|
}
|
|
1190
1205
|
|
|
1191
1206
|
OursPrivacyPlatform.AllowedEvents = AllowedEvents;
|
|
@@ -1218,6 +1233,7 @@ OursPrivacyPlatform.VideoChannels = VideoChannels;
|
|
|
1218
1233
|
OursPrivacyPlatform.Videos = Videos;
|
|
1219
1234
|
OursPrivacyPlatform.WebScannerRules = WebScannerRules;
|
|
1220
1235
|
OursPrivacyPlatform.WebScanners = WebScanners;
|
|
1236
|
+
OursPrivacyPlatform.PersonalizationProperties = PersonalizationProperties;
|
|
1221
1237
|
|
|
1222
1238
|
export declare namespace OursPrivacyPlatform {
|
|
1223
1239
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1568,6 +1584,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1568
1584
|
type VersionPublishResponse as VersionPublishResponse,
|
|
1569
1585
|
type VersionSnapshotResponse as VersionSnapshotResponse,
|
|
1570
1586
|
type VersionDiffResponse as VersionDiffResponse,
|
|
1587
|
+
type VersionStatusResponse as VersionStatusResponse,
|
|
1571
1588
|
type VersionRevertResponse as VersionRevertResponse,
|
|
1572
1589
|
type VersionAbandonResponse as VersionAbandonResponse,
|
|
1573
1590
|
type VersionListResponsesCursor as VersionListResponsesCursor,
|
|
@@ -1575,6 +1592,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1575
1592
|
type VersionCreateParams as VersionCreateParams,
|
|
1576
1593
|
type VersionUpdateParams as VersionUpdateParams,
|
|
1577
1594
|
type VersionDiffParams as VersionDiffParams,
|
|
1595
|
+
type VersionStatusParams as VersionStatusParams,
|
|
1578
1596
|
type VersionRevertParams as VersionRevertParams,
|
|
1579
1597
|
};
|
|
1580
1598
|
|
|
@@ -1647,4 +1665,17 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1647
1665
|
type WebScannerCookiesParams as WebScannerCookiesParams,
|
|
1648
1666
|
type WebScannerSummaryParams as WebScannerSummaryParams,
|
|
1649
1667
|
};
|
|
1668
|
+
|
|
1669
|
+
export {
|
|
1670
|
+
PersonalizationProperties as PersonalizationProperties,
|
|
1671
|
+
type PersonalizationPropertyListResponse as PersonalizationPropertyListResponse,
|
|
1672
|
+
type PersonalizationPropertyCreateResponse as PersonalizationPropertyCreateResponse,
|
|
1673
|
+
type PersonalizationPropertyRetrieveResponse as PersonalizationPropertyRetrieveResponse,
|
|
1674
|
+
type PersonalizationPropertyUpdateResponse as PersonalizationPropertyUpdateResponse,
|
|
1675
|
+
type PersonalizationPropertyDeleteResponse as PersonalizationPropertyDeleteResponse,
|
|
1676
|
+
type PersonalizationPropertyListResponsesCursor as PersonalizationPropertyListResponsesCursor,
|
|
1677
|
+
type PersonalizationPropertyListParams as PersonalizationPropertyListParams,
|
|
1678
|
+
type PersonalizationPropertyCreateParams as PersonalizationPropertyCreateParams,
|
|
1679
|
+
type PersonalizationPropertyUpdateParams as PersonalizationPropertyUpdateParams,
|
|
1680
|
+
};
|
|
1650
1681
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -204,6 +204,18 @@ export {
|
|
|
204
204
|
type MappingTemplatesParams,
|
|
205
205
|
type MappingListResponsesCursor,
|
|
206
206
|
} from './mappings';
|
|
207
|
+
export {
|
|
208
|
+
PersonalizationProperties,
|
|
209
|
+
type PersonalizationPropertyListResponse,
|
|
210
|
+
type PersonalizationPropertyCreateResponse,
|
|
211
|
+
type PersonalizationPropertyRetrieveResponse,
|
|
212
|
+
type PersonalizationPropertyUpdateResponse,
|
|
213
|
+
type PersonalizationPropertyDeleteResponse,
|
|
214
|
+
type PersonalizationPropertyListParams,
|
|
215
|
+
type PersonalizationPropertyCreateParams,
|
|
216
|
+
type PersonalizationPropertyUpdateParams,
|
|
217
|
+
type PersonalizationPropertyListResponsesCursor,
|
|
218
|
+
} from './personalization-properties';
|
|
207
219
|
export {
|
|
208
220
|
ReplaySettings,
|
|
209
221
|
type ReplaySettingListResponse,
|
|
@@ -318,12 +330,14 @@ export {
|
|
|
318
330
|
type VersionPublishResponse,
|
|
319
331
|
type VersionSnapshotResponse,
|
|
320
332
|
type VersionDiffResponse,
|
|
333
|
+
type VersionStatusResponse,
|
|
321
334
|
type VersionRevertResponse,
|
|
322
335
|
type VersionAbandonResponse,
|
|
323
336
|
type VersionListParams,
|
|
324
337
|
type VersionCreateParams,
|
|
325
338
|
type VersionUpdateParams,
|
|
326
339
|
type VersionDiffParams,
|
|
340
|
+
type VersionStatusParams,
|
|
327
341
|
type VersionRevertParams,
|
|
328
342
|
type VersionListResponsesCursor,
|
|
329
343
|
} from './versions';
|