@oursprivacy/platform-sdk 1.13.0 → 1.14.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 +8 -0
- package/README.md +12 -8
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/experiment-variants.d.mts +73 -79
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +73 -79
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +14 -7
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +14 -7
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +26 -24
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +26 -24
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +6 -2
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +6 -2
- package/resources/mappings.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/experiment-variants.ts +94 -96
- package/src/resources/index.ts +2 -0
- package/src/resources/mappings.ts +31 -25
- 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
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
5
6
|
import { RequestOptions } from '../internal/request-options';
|
|
6
7
|
import { path } from '../internal/utils/path';
|
|
7
8
|
|
|
8
9
|
export class Mappings extends APIResource {
|
|
9
10
|
/**
|
|
10
|
-
* List
|
|
11
|
+
* List mappings for an entity (a source or destination). Requires the `entityId`
|
|
12
|
+
* query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
|
|
13
|
+
* `priority` ascending, then by `id` for deterministic pagination. Requires scope:
|
|
14
|
+
* mapping:list
|
|
11
15
|
*/
|
|
12
|
-
list(
|
|
13
|
-
|
|
16
|
+
list(
|
|
17
|
+
query: MappingListParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): PagePromise<MappingListResponsesCursor, MappingListResponse> {
|
|
20
|
+
return this._client.getAPIList('/rest/v1/mappings', Cursor<MappingListResponse>, { query, ...options });
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
/**
|
|
@@ -43,41 +50,39 @@ export class Mappings extends APIResource {
|
|
|
43
50
|
}
|
|
44
51
|
}
|
|
45
52
|
|
|
46
|
-
export type
|
|
53
|
+
export type MappingListResponsesCursor = Cursor<MappingListResponse>;
|
|
47
54
|
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
id: string;
|
|
55
|
+
export interface MappingListResponse {
|
|
56
|
+
id: string;
|
|
51
57
|
|
|
52
|
-
|
|
58
|
+
isEnabled: boolean;
|
|
53
59
|
|
|
54
|
-
|
|
60
|
+
mappings: Array<MappingListResponse.Mapping>;
|
|
55
61
|
|
|
56
|
-
|
|
62
|
+
destinationId?: string | null;
|
|
57
63
|
|
|
58
|
-
|
|
64
|
+
isDefaultMapping?: boolean | null;
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
name?: string | null;
|
|
61
67
|
|
|
62
|
-
|
|
68
|
+
priority?: number | null;
|
|
63
69
|
|
|
64
|
-
|
|
70
|
+
sourceId?: string | null;
|
|
65
71
|
|
|
66
|
-
|
|
72
|
+
templateId?: string | null;
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
templateName?: string | null;
|
|
69
75
|
|
|
70
|
-
|
|
71
|
-
|
|
76
|
+
updatedAt?: string | null;
|
|
77
|
+
}
|
|
72
78
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
export namespace MappingListResponse {
|
|
80
|
+
export interface Mapping {
|
|
81
|
+
map: string;
|
|
76
82
|
|
|
77
|
-
|
|
83
|
+
property: string;
|
|
78
84
|
|
|
79
|
-
|
|
80
|
-
}
|
|
85
|
+
modification?: string | null;
|
|
81
86
|
}
|
|
82
87
|
}
|
|
83
88
|
|
|
@@ -185,7 +190,7 @@ export namespace MappingUpdateResponse {
|
|
|
185
190
|
|
|
186
191
|
export type MappingDeleteResponse = boolean;
|
|
187
192
|
|
|
188
|
-
export interface MappingListParams {
|
|
193
|
+
export interface MappingListParams extends CursorParams {
|
|
189
194
|
/**
|
|
190
195
|
* Filter mappings by their parent entity id (for example an allowed event id).
|
|
191
196
|
*/
|
|
@@ -223,6 +228,7 @@ export declare namespace Mappings {
|
|
|
223
228
|
type MappingRetrieveResponse as MappingRetrieveResponse,
|
|
224
229
|
type MappingUpdateResponse as MappingUpdateResponse,
|
|
225
230
|
type MappingDeleteResponse as MappingDeleteResponse,
|
|
231
|
+
type MappingListResponsesCursor as MappingListResponsesCursor,
|
|
226
232
|
type MappingListParams as MappingListParams,
|
|
227
233
|
type MappingCreateParams as MappingCreateParams,
|
|
228
234
|
type MappingUpdateParams as MappingUpdateParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.14.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.14.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|