Skip to content

Commit 666d837

Browse files
6.0.1 release (#38)
1 parent 1ca10cf commit 666d837

31 files changed

Lines changed: 91 additions & 2065 deletions

CHANGELOG.md

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

4+
## [6.0.1] - revision 2023-09-15
5+
### Fixed
6+
- `Relationship` and its child attributes were incorrectly marked as optional for the following endpoints
7+
- `createBackInStockSubscription`
8+
- `createCampaignMessageAssignTemplate`
9+
- `spawnCreateVariantsJob`
10+
- `createCatalogVariant`
11+
- `spawnCouponCodeBulkCreateJob`
12+
- `createCouponCode`
13+
- `mergeProfiles`
14+
- `subscribeProfiles`
15+
- Removed unused dependencies from `package.json` that were requiring a higher node version than necessary
16+
417
## [6.0.0] - revision 2023-09-15
518
### Added
619

@@ -12,7 +25,7 @@ All notable changes to this project will be documented in this file.
1225
- `get_image`
1326
- `get_images`
1427
- `update_image`
15-
- `upload_image_from_file` - You can se `fs.createReadStream` to pass the file into the function
28+
- `upload_image_from_file` - You can use `fs.createReadStream` to pass the file into the function
1629
- `upload_image_from_url`
1730
- `Coupons` API
1831
- We now support CRUD operations for both Coupons and Coupon Codes
@@ -147,4 +160,4 @@ In addition, you can [make client-side API calls](https://developers.klaviyo.com
147160
- Package name: klaviyo-sdk-beta → klaviyo-api
148161
- Some functions have changed name
149162
- New resources and endpoints:
150-
- See [API Changelog](https://developers.klaviyo.com/en/docs/changelog_) for full details
163+
- See [API Changelog](https://developers.klaviyo.com/en/docs/changelog_) for full details

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: 6.0.0
3+
- SDK version: 6.0.1
44

55
- Revision: 2023-09-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 [email protected].0`
50+
`npm install [email protected].1`
5151

5252

5353
## source code

api/accountsApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

@@ -19,8 +20,7 @@ import { GetAccountResponse } from '../model/getAccountResponse';
1920
import { GetAccountResponseCollection } from '../model/getAccountResponseCollection';
2021
import { GetAccounts4XXResponse } from '../model/getAccounts4XXResponse';
2122

22-
import { ObjectSerializer, Authentication } from '../model/models';
23-
import { ApiKeyAuth } from '../model/models';
23+
import { ObjectSerializer } from '../model/models';
2424

2525
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
2626

@@ -39,7 +39,7 @@ export class AccountsApi {
3939
protected _basePath = defaultBasePath;
4040
protected _defaultHeaders : any = {
4141
revision: "2023-09-15",
42-
"User-Agent": "klaviyo-api-node/6.0.0"
42+
"User-Agent": "klaviyo-api-node/6.0.1"
4343
};
4444
protected _useQuerystring : boolean = false;
4545

api/campaignsApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

@@ -45,8 +46,7 @@ import { PostCampaignRecipientEstimationJobResponse } from '../model/postCampaig
4546
import { PostCampaignResponse } from '../model/postCampaignResponse';
4647
import { PostCampaignSendJobResponse } from '../model/postCampaignSendJobResponse';
4748

48-
import { ObjectSerializer, Authentication } from '../model/models';
49-
import { ApiKeyAuth } from '../model/models';
49+
import { ObjectSerializer } from '../model/models';
5050

5151
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
5252

@@ -65,7 +65,7 @@ export class CampaignsApi {
6565
protected _basePath = defaultBasePath;
6666
protected _defaultHeaders : any = {
6767
revision: "2023-09-15",
68-
"User-Agent": "klaviyo-api-node/6.0.0"
68+
"User-Agent": "klaviyo-api-node/6.0.1"
6969
};
7070
protected _useQuerystring : boolean = false;
7171

api/catalogsApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

@@ -76,8 +77,7 @@ import { PostCatalogVariantResponse } from '../model/postCatalogVariantResponse'
7677
import { PostCatalogVariantUpdateJobResponse } from '../model/postCatalogVariantUpdateJobResponse';
7778
import { ServerBISSubscriptionCreateQuery } from '../model/serverBISSubscriptionCreateQuery';
7879

79-
import { ObjectSerializer, Authentication } from '../model/models';
80-
import { ApiKeyAuth } from '../model/models';
80+
import { ObjectSerializer } from '../model/models';
8181

8282
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
8383

@@ -96,7 +96,7 @@ export class CatalogsApi {
9696
protected _basePath = defaultBasePath;
9797
protected _defaultHeaders : any = {
9898
revision: "2023-09-15",
99-
"User-Agent": "klaviyo-api-node/6.0.0"
99+
"User-Agent": "klaviyo-api-node/6.0.1"
100100
};
101101
protected _useQuerystring : boolean = false;
102102

api/couponsApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

@@ -35,8 +36,7 @@ import { PostCouponCodeCreateJobResponse } from '../model/postCouponCodeCreateJo
3536
import { PostCouponCodeResponse } from '../model/postCouponCodeResponse';
3637
import { PostCouponResponse } from '../model/postCouponResponse';
3738

38-
import { ObjectSerializer, Authentication } from '../model/models';
39-
import { ApiKeyAuth } from '../model/models';
39+
import { ObjectSerializer } from '../model/models';
4040

4141
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
4242

@@ -55,7 +55,7 @@ export class CouponsApi {
5555
protected _basePath = defaultBasePath;
5656
protected _defaultHeaders : any = {
5757
revision: "2023-09-15",
58-
"User-Agent": "klaviyo-api-node/6.0.0"
58+
"User-Agent": "klaviyo-api-node/6.0.1"
5959
};
6060
protected _useQuerystring : boolean = false;
6161

api/dataPrivacyApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

1718
/* tslint:disable:no-unused-locals */
1819
import { DataPrivacyCreateDeletionJobQuery } from '../model/dataPrivacyCreateDeletionJobQuery';
1920
import { GetAccounts4XXResponse } from '../model/getAccounts4XXResponse';
2021

21-
import { ObjectSerializer, Authentication } from '../model/models';
22-
import { ApiKeyAuth } from '../model/models';
22+
import { ObjectSerializer } from '../model/models';
2323

2424
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
2525

@@ -38,7 +38,7 @@ export class DataPrivacyApi {
3838
protected _basePath = defaultBasePath;
3939
protected _defaultHeaders : any = {
4040
revision: "2023-09-15",
41-
"User-Agent": "klaviyo-api-node/6.0.0"
41+
"User-Agent": "klaviyo-api-node/6.0.1"
4242
};
4343
protected _useQuerystring : boolean = false;
4444

api/eventsApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

@@ -24,8 +25,7 @@ import { GetEventResponseCompoundDocument } from '../model/getEventResponseCompo
2425
import { GetMetricResponse } from '../model/getMetricResponse';
2526
import { GetProfileResponse } from '../model/getProfileResponse';
2627

27-
import { ObjectSerializer, Authentication } from '../model/models';
28-
import { ApiKeyAuth } from '../model/models';
28+
import { ObjectSerializer } from '../model/models';
2929

3030
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
3131

@@ -44,7 +44,7 @@ export class EventsApi {
4444
protected _basePath = defaultBasePath;
4545
protected _defaultHeaders : any = {
4646
revision: "2023-09-15",
47-
"User-Agent": "klaviyo-api-node/6.0.0"
47+
"User-Agent": "klaviyo-api-node/6.0.1"
4848
};
4949
protected _useQuerystring : boolean = false;
5050

api/flowsApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

@@ -35,8 +36,7 @@ import { GetTagResponseCollection } from '../model/getTagResponseCollection';
3536
import { GetTemplateResponse } from '../model/getTemplateResponse';
3637
import { PatchFlowResponse } from '../model/patchFlowResponse';
3738

38-
import { ObjectSerializer, Authentication } from '../model/models';
39-
import { ApiKeyAuth } from '../model/models';
39+
import { ObjectSerializer } from '../model/models';
4040

4141
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
4242

@@ -55,7 +55,7 @@ export class FlowsApi {
5555
protected _basePath = defaultBasePath;
5656
protected _defaultHeaders : any = {
5757
revision: "2023-09-15",
58-
"User-Agent": "klaviyo-api-node/6.0.0"
58+
"User-Agent": "klaviyo-api-node/6.0.1"
5959
};
6060
protected _useQuerystring : boolean = false;
6161

api/imagesApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212

13-
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
13+
const axios = require('axios');
14+
import {AxiosRequestConfig, AxiosResponse} from "axios";
1415
import { backOff, BackoffOptions } from 'exponential-backoff';
1516
import FormData from 'form-data'
1617

@@ -23,8 +24,7 @@ import { ImagePartialUpdateQuery } from '../model/imagePartialUpdateQuery';
2324
import { PatchImageResponse } from '../model/patchImageResponse';
2425
import { PostImageResponse } from '../model/postImageResponse';
2526

26-
import { ObjectSerializer, Authentication } from '../model/models';
27-
import { ApiKeyAuth } from '../model/models';
27+
import { ObjectSerializer } from '../model/models';
2828

2929
import {RequestFile, queryParamPreProcessor, RetryOptions, Session} from './apis';
3030

@@ -43,7 +43,7 @@ export class ImagesApi {
4343
protected _basePath = defaultBasePath;
4444
protected _defaultHeaders : any = {
4545
revision: "2023-09-15",
46-
"User-Agent": "klaviyo-api-node/6.0.0"
46+
"User-Agent": "klaviyo-api-node/6.0.1"
4747
};
4848
protected _useQuerystring : boolean = false;
4949

0 commit comments

Comments
 (0)