Skip to content

Commit f4c03e2

Browse files
7.1.0 release (#47)
1 parent c52f854 commit f4c03e2

714 files changed

Lines changed: 1157 additions & 1308 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-beta.1] - 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-beta.1] - revision 2023-10-15
525

626
### Added

README.md

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

3-
- SDK version: 7.0.0-beta.1
3+
- SDK version: 7.1.0-beta.1
44

55
- Revision: 2023-10-15
66

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

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

50-
`npm install klaviyo-api@7.0.0-beta.1`
50+
`npm install klaviyo-api@7.1.0-beta.1`
5151

5252

5353
## source code

api/apis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {AxiosRequestConfig, AxiosResponse, AxiosHeaders, isAxiosError} from "axi
3434
export { RequestFile } from '../model/models';
3535

3636
const revision = "2023-10-15";
37-
const userAgent = "klaviyo-api-node/7.0.0-beta.1";
37+
const userAgent = "klaviyo-api-node/7.1.0-beta.1";
3838

3939
export class RetryOptions {
4040

model/aPIJobErrorPayload.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export class APIJobErrorPayload {
3131
'detail': string;
3232
'source': ErrorSource;
3333

34-
static discriminator: string | undefined = undefined;
3534

3635
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
3736
{

model/accountResponseObjectResource.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ import { AccountResponseObjectResourceAttributes } from './accountResponseObject
1515
import { ObjectLinks } from './objectLinks';
1616

1717
export class AccountResponseObjectResource {
18-
'type': AccountEnum;
18+
'type': AccountEnum | 'account';
1919
'id': string;
2020
'attributes': AccountResponseObjectResourceAttributes;
2121
'links': ObjectLinks;
2222

23-
static discriminator: string | undefined = undefined;
2423

2524
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2625
{

model/accountResponseObjectResourceAttributes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export class AccountResponseObjectResourceAttributes {
3131
*/
3232
'publicApiKey': string;
3333

34-
static discriminator: string | undefined = undefined;
3534

3635
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
3736
{

model/audiencesSubObject.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export class AudiencesSubObject {
2121
*/
2222
'excluded'?: Array<string>;
2323

24-
static discriminator: string | undefined = undefined;
2524

2625
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2726
{

model/campaignCloneQuery.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { CampaignCloneQueryResourceObject } from './campaignCloneQueryResourceOb
1515
export class CampaignCloneQuery {
1616
'data': CampaignCloneQueryResourceObject;
1717

18-
static discriminator: string | undefined = undefined;
1918

2019
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2120
{

model/campaignCloneQueryResourceObject.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ import { CampaignCloneQueryResourceObjectAttributes } from './campaignCloneQuery
1414
import { CampaignEnum } from './campaignEnum';
1515

1616
export class CampaignCloneQueryResourceObject {
17-
'type': CampaignEnum;
17+
'type': CampaignEnum | 'campaign';
1818
/**
1919
* The campaign ID to be cloned
2020
*/
2121
'id': string;
2222
'attributes': CampaignCloneQueryResourceObjectAttributes;
2323

24-
static discriminator: string | undefined = undefined;
2524

2625
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2726
{

model/campaignCloneQueryResourceObjectAttributes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export class CampaignCloneQueryResourceObjectAttributes {
1717
*/
1818
'newName'?: string;
1919

20-
static discriminator: string | undefined = undefined;
2120

2221
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2322
{

0 commit comments

Comments
 (0)