@oursprivacy/platform-sdk 1.18.0 → 1.19.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/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- 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/destination-types.d.mts +138 -0
- package/resources/destination-types.d.mts.map +1 -0
- package/resources/destination-types.d.ts +138 -0
- package/resources/destination-types.d.ts.map +1 -0
- package/resources/destination-types.js +28 -0
- package/resources/destination-types.js.map +1 -0
- package/resources/destination-types.mjs +24 -0
- package/resources/destination-types.mjs.map +1 -0
- package/resources/destinations.d.mts +61 -9
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +61 -9
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +12 -4
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +12 -4
- package/resources/destinations.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- 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/src/client.ts +13 -0
- package/src/resources/destination-types.ts +458 -0
- package/src/resources/destinations.ts +68 -5
- package/src/resources/index.ts +5 -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
|
@@ -28,15 +28,23 @@ export class Destinations extends APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Partially update a destination. Only the fields you send are changed
|
|
32
|
-
*
|
|
31
|
+
* Partially update a destination. Only the fields you send are changed; omitted
|
|
32
|
+
* fields are unchanged. The `settings` object is deep-merged into the existing
|
|
33
|
+
* settings by default — keys you omit keep their current value. Pass
|
|
34
|
+
* `?settings_strategy=replace` to wipe and replace the settings blob entirely.
|
|
35
|
+
* Requires scope: destination:update
|
|
33
36
|
*/
|
|
34
37
|
update(
|
|
35
38
|
id: string,
|
|
36
|
-
|
|
39
|
+
params: DestinationUpdateParams,
|
|
37
40
|
options?: RequestOptions,
|
|
38
41
|
): APIPromise<DestinationUpdateResponse> {
|
|
39
|
-
|
|
42
|
+
const { settings_strategy, ...body } = params;
|
|
43
|
+
return this._client.patch(path`/rest/v1/destinations/${id}`, {
|
|
44
|
+
query: { settings_strategy },
|
|
45
|
+
body,
|
|
46
|
+
...options,
|
|
47
|
+
});
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
/**
|
|
@@ -75,6 +83,7 @@ export namespace DestinationListResponse {
|
|
|
75
83
|
| 'Audiohook'
|
|
76
84
|
| 'AzureBlob'
|
|
77
85
|
| 'BasisPostback'
|
|
86
|
+
| 'BeeswaxPostback'
|
|
78
87
|
| 'BingAds'
|
|
79
88
|
| 'BingAdsWeb'
|
|
80
89
|
| 'Braze'
|
|
@@ -189,6 +198,7 @@ export interface DestinationCreateResponse {
|
|
|
189
198
|
| 'Audiohook'
|
|
190
199
|
| 'AzureBlob'
|
|
191
200
|
| 'BasisPostback'
|
|
201
|
+
| 'BeeswaxPostback'
|
|
192
202
|
| 'BingAds'
|
|
193
203
|
| 'BingAdsWeb'
|
|
194
204
|
| 'Braze'
|
|
@@ -276,6 +286,7 @@ export interface DestinationRetrieveResponse {
|
|
|
276
286
|
| 'Audiohook'
|
|
277
287
|
| 'AzureBlob'
|
|
278
288
|
| 'BasisPostback'
|
|
289
|
+
| 'BeeswaxPostback'
|
|
279
290
|
| 'BingAds'
|
|
280
291
|
| 'BingAdsWeb'
|
|
281
292
|
| 'Braze'
|
|
@@ -389,6 +400,7 @@ export interface DestinationUpdateResponse {
|
|
|
389
400
|
| 'Audiohook'
|
|
390
401
|
| 'AzureBlob'
|
|
391
402
|
| 'BasisPostback'
|
|
403
|
+
| 'BeeswaxPostback'
|
|
392
404
|
| 'BingAds'
|
|
393
405
|
| 'BingAdsWeb'
|
|
394
406
|
| 'Braze'
|
|
@@ -472,6 +484,7 @@ export interface DestinationCreateParams {
|
|
|
472
484
|
| 'Audiohook'
|
|
473
485
|
| 'AzureBlob'
|
|
474
486
|
| 'BasisPostback'
|
|
487
|
+
| 'BeeswaxPostback'
|
|
475
488
|
| 'BingAds'
|
|
476
489
|
| 'BingAdsWeb'
|
|
477
490
|
| 'Braze'
|
|
@@ -535,35 +548,85 @@ export interface DestinationCreateParams {
|
|
|
535
548
|
}
|
|
536
549
|
|
|
537
550
|
export interface DestinationUpdateParams {
|
|
538
|
-
|
|
551
|
+
/**
|
|
552
|
+
* Query param
|
|
553
|
+
*/
|
|
554
|
+
settings_strategy?: 'merge' | 'replace';
|
|
539
555
|
|
|
556
|
+
/**
|
|
557
|
+
* Body param
|
|
558
|
+
*/
|
|
540
559
|
facebookConversionAPIKey?: string | null;
|
|
541
560
|
|
|
561
|
+
/**
|
|
562
|
+
* Body param
|
|
563
|
+
*/
|
|
542
564
|
facebookPixelId?: string | null;
|
|
543
565
|
|
|
566
|
+
/**
|
|
567
|
+
* Body param
|
|
568
|
+
*/
|
|
544
569
|
g4AnalyticsApiKey?: string | null;
|
|
545
570
|
|
|
571
|
+
/**
|
|
572
|
+
* Body param
|
|
573
|
+
*/
|
|
546
574
|
g4AnalyticsMeasurementId?: string | null;
|
|
547
575
|
|
|
576
|
+
/**
|
|
577
|
+
* Body param
|
|
578
|
+
*/
|
|
548
579
|
g4AnalyticsTrackOnPage?: boolean | null;
|
|
549
580
|
|
|
581
|
+
/**
|
|
582
|
+
* Body param
|
|
583
|
+
*/
|
|
550
584
|
hashingSalt?: string | null;
|
|
551
585
|
|
|
586
|
+
/**
|
|
587
|
+
* Body param
|
|
588
|
+
*/
|
|
552
589
|
httpDestinationUrl?: string | null;
|
|
553
590
|
|
|
591
|
+
/**
|
|
592
|
+
* Body param
|
|
593
|
+
*/
|
|
554
594
|
limitedToSourceIds?: Array<string> | null;
|
|
555
595
|
|
|
596
|
+
/**
|
|
597
|
+
* Body param
|
|
598
|
+
*/
|
|
556
599
|
managerGoogleCustomerId?: string | null;
|
|
557
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Body param
|
|
603
|
+
*/
|
|
558
604
|
name?: string | null;
|
|
559
605
|
|
|
606
|
+
/**
|
|
607
|
+
* Body param
|
|
608
|
+
*/
|
|
560
609
|
projectAPIKey?: string | null;
|
|
561
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Body param
|
|
613
|
+
*/
|
|
562
614
|
projectToken?: string | null;
|
|
563
615
|
|
|
616
|
+
/**
|
|
617
|
+
* Body param
|
|
618
|
+
*/
|
|
564
619
|
selectedAccountId?: string | null;
|
|
565
620
|
|
|
621
|
+
/**
|
|
622
|
+
* Body param
|
|
623
|
+
*/
|
|
566
624
|
settings?: unknown | null;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Body param
|
|
628
|
+
*/
|
|
629
|
+
status?: 'Disabled' | 'Enabled' | null;
|
|
567
630
|
}
|
|
568
631
|
|
|
569
632
|
export declare namespace Destinations {
|
package/src/resources/index.ts
CHANGED
|
@@ -19,6 +19,11 @@ export {
|
|
|
19
19
|
type ConsentSettingReplaceParams,
|
|
20
20
|
type ConsentSettingUpdateParams,
|
|
21
21
|
} from './consent-settings';
|
|
22
|
+
export {
|
|
23
|
+
DestinationTypes,
|
|
24
|
+
type DestinationTypeListResponse,
|
|
25
|
+
type DestinationTypeRetrieveResponse,
|
|
26
|
+
} from './destination-types';
|
|
22
27
|
export {
|
|
23
28
|
Destinations,
|
|
24
29
|
type DestinationListResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.19.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.19.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.19.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.19.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|