Skip to content

Commit 5888465

Browse files
7.1.0 release (#46)
* 7.1.0-release * don't remove OAuth beta readme info
1 parent 2a427ce commit 5888465

727 files changed

Lines changed: 1173 additions & 1324 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [7.1.0] - revision 2023-10-15
5+
6+
### Changed
7+
8+
- Creating objects can now take the type as a string as well as an enum
9+
```typescript
10+
let profile: ProfileCreateQuery = {
11+
data: {
12+
type: 'profile',
13+
attributes: {
14+
15+
}
16+
}
17+
}
18+
```
19+
- Endpoints with multiple included properties will now deserialize both included objects correctly
20+
- i.e. `eventsApi.getEvent("${EVENT_ID}", {include: ['metric', 'profile']})`
21+
- Models that were supposed to support two primitive types but were serializing incorrectly now support one but work correctly
22+
- i.e. `updateProfile`'s `unset` value now takes a list of strings and serializes correctly.
23+
424
## [7.0.0] - revision 2023-10-15
525

626
### Added

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaviyo Typescript SDK
22

3-
- SDK version: 7.0.0
3+
- SDK version: 7.1.0
44

55
- Revision: 2023-10-15
66

@@ -47,9 +47,8 @@ This SDK is organized into the following resources:
4747

4848
You can install this library using `npm`.
4949

50-
```bash
51-
npm install [email protected]
52-
```
50+
`npm install [email protected]`
51+
5352

5453
## source code
5554

@@ -73,6 +72,7 @@ If you want to test out the repo but don't have a consuming app, you can run our
7372
```
7473
npm run sample --pk=<YOUR PRIVATE KEY HERE>
7574
```
75+
7676
## OAuth Beta
7777

7878
To read about our OAuth beta for users who want to write multi-user integrations, check out this [help center article](https://help.klaviyo.com/hc/en-us/articles/18819413031067#h_01HACEKGF33GHFEH733YK2JKTT)
@@ -1930,4 +1930,4 @@ The parameters follow the same naming conventions as the resource groups and ope
19301930
We stick to the following convention for parameters/arguments
19311931
19321932
2. All query and path params that are tagged as `required` in the docs are passed as positional args.
1933-
3. There is no need to pass in your private `apiKey` for any operations, as it is defined upon api instantiation; public key is still required where its used.
1933+
3. There is no need to pass in your private `apiKey` for any operations, as it is defined upon api instantiation; public key is still required where its used.

api/accountsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class AccountsApi {
3939
protected _basePath = defaultBasePath;
4040
protected _defaultHeaders : any = {
4141
revision: "2023-10-15",
42-
"User-Agent": "klaviyo-api-node/7.0.0"
42+
"User-Agent": "klaviyo-api-node/7.1.0"
4343
};
4444
protected _useQuerystring : boolean = false;
4545

api/campaignsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class CampaignsApi {
6565
protected _basePath = defaultBasePath;
6666
protected _defaultHeaders : any = {
6767
revision: "2023-10-15",
68-
"User-Agent": "klaviyo-api-node/7.0.0"
68+
"User-Agent": "klaviyo-api-node/7.1.0"
6969
};
7070
protected _useQuerystring : boolean = false;
7171

api/catalogsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class CatalogsApi {
9696
protected _basePath = defaultBasePath;
9797
protected _defaultHeaders : any = {
9898
revision: "2023-10-15",
99-
"User-Agent": "klaviyo-api-node/7.0.0"
99+
"User-Agent": "klaviyo-api-node/7.1.0"
100100
};
101101
protected _useQuerystring : boolean = false;
102102

api/couponsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class CouponsApi {
5656
protected _basePath = defaultBasePath;
5757
protected _defaultHeaders : any = {
5858
revision: "2023-10-15",
59-
"User-Agent": "klaviyo-api-node/7.0.0"
59+
"User-Agent": "klaviyo-api-node/7.1.0"
6060
};
6161
protected _useQuerystring : boolean = false;
6262

api/dataPrivacyApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class DataPrivacyApi {
3838
protected _basePath = defaultBasePath;
3939
protected _defaultHeaders : any = {
4040
revision: "2023-10-15",
41-
"User-Agent": "klaviyo-api-node/7.0.0"
41+
"User-Agent": "klaviyo-api-node/7.1.0"
4242
};
4343
protected _useQuerystring : boolean = false;
4444

api/eventsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class EventsApi {
4444
protected _basePath = defaultBasePath;
4545
protected _defaultHeaders : any = {
4646
revision: "2023-10-15",
47-
"User-Agent": "klaviyo-api-node/7.0.0"
47+
"User-Agent": "klaviyo-api-node/7.1.0"
4848
};
4949
protected _useQuerystring : boolean = false;
5050

api/flowsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class FlowsApi {
5555
protected _basePath = defaultBasePath;
5656
protected _defaultHeaders : any = {
5757
revision: "2023-10-15",
58-
"User-Agent": "klaviyo-api-node/7.0.0"
58+
"User-Agent": "klaviyo-api-node/7.1.0"
5959
};
6060
protected _useQuerystring : boolean = false;
6161

api/imagesApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class ImagesApi {
4343
protected _basePath = defaultBasePath;
4444
protected _defaultHeaders : any = {
4545
revision: "2023-10-15",
46-
"User-Agent": "klaviyo-api-node/7.0.0"
46+
"User-Agent": "klaviyo-api-node/7.1.0"
4747
};
4848
protected _useQuerystring : boolean = false;
4949

0 commit comments

Comments
 (0)