Skip to content

Commit

Permalink
version 13.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
klaviyo-sdk committed Oct 17, 2024
1 parent 9a6025a commit 1465b45
Show file tree
Hide file tree
Showing 179 changed files with 14,047 additions and 8,338 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [13.0.0] - 2024-10-15
### Added
- Sample Change

## [12.0.1] - revision 2024-07-15
### Fixed
- Fixed NPM package issue
Expand Down
1,907 changes: 1,278 additions & 629 deletions README.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions api/accountsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ export class AccountsApi {
* Retrieve a single account object by its account ID. You can only request the account by which the private API key was generated.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
* @summary Get Account
* @param id The ID of the account
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2024-07-15/reference/api-overview#sparse-fieldsets
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sparse-fieldsets
*/
public async getAccount (id: string, options: { fieldsAccount?: Array<'test_account' | 'contact_information' | 'contact_information.default_sender_name' | 'contact_information.default_sender_email' | 'contact_information.website_url' | 'contact_information.organization_name' | 'contact_information.street_address' | 'contact_information.street_address.address1' | 'contact_information.street_address.address2' | 'contact_information.street_address.city' | 'contact_information.street_address.region' | 'contact_information.street_address.country' | 'contact_information.street_address.zip' | 'industry' | 'timezone' | 'preferred_currency' | 'public_api_key' | 'locale'>, } = {}): Promise<{ response: AxiosResponse; body: GetAccountResponse; }> {

const localVarPath = this.basePath + '/api/accounts/{id}/'
const localVarPath = this.basePath + '/api/accounts/{id}'
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
const produces = ['application/vnd.api+json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
Expand Down Expand Up @@ -128,14 +128,14 @@ export class AccountsApi {
* Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
* @summary Get Accounts
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2024-07-15/reference/api-overview#sparse-fieldsets
* @param fieldsAccount For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sparse-fieldsets
*/
public async getAccounts (options: { fieldsAccount?: Array<'test_account' | 'contact_information' | 'contact_information.default_sender_name' | 'contact_information.default_sender_email' | 'contact_information.website_url' | 'contact_information.organization_name' | 'contact_information.street_address' | 'contact_information.street_address.address1' | 'contact_information.street_address.address2' | 'contact_information.street_address.city' | 'contact_information.street_address.region' | 'contact_information.street_address.country' | 'contact_information.street_address.zip' | 'industry' | 'timezone' | 'preferred_currency' | 'public_api_key' | 'locale'>, } = {}): Promise<{ response: AxiosResponse; body: GetAccountResponseCollection; }> {

const localVarPath = this.basePath + '/api/accounts/';
const localVarPath = this.basePath + '/api/accounts';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
const produces = ['application/vnd.api+json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
Expand Down
14 changes: 11 additions & 3 deletions api/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ export * from './profilesApi';
import { ProfilesApi } from './profilesApi';
export * from './reportingApi';
import { ReportingApi } from './reportingApi';
export * from './reviewsApi';
import { ReviewsApi } from './reviewsApi';
export * from './segmentsApi';
import { SegmentsApi } from './segmentsApi';
export * from './tagsApi';
import { TagsApi } from './tagsApi';
export * from './templatesApi';
import { TemplatesApi } from './templatesApi';
export * from './trackingSettingsApi';
import { TrackingSettingsApi } from './trackingSettingsApi';
export * from './webhooksApi';
import { WebhooksApi } from './webhooksApi';

Expand All @@ -39,8 +43,8 @@ import {AxiosRequestConfig, AxiosResponse, AxiosHeaders, isAxiosError} from "axi

export { RequestFile } from '../model/models';

const revision = "2024-07-15";
const userAgent = "klaviyo-api-node/12.0.1";
const revision = "2024-10-15";
const userAgent = "klaviyo-api-node/13.0.0";

export class RetryOptions {

Expand Down Expand Up @@ -508,12 +512,16 @@ export namespace Pkce {

export const Reporting = new ReportingApi(new GlobalApiKeySession())

export const Reviews = new ReviewsApi(new GlobalApiKeySession())

export const Segments = new SegmentsApi(new GlobalApiKeySession())

export const Tags = new TagsApi(new GlobalApiKeySession())

export const Templates = new TemplatesApi(new GlobalApiKeySession())

export const TrackingSettings = new TrackingSettingsApi(new GlobalApiKeySession())

export const Webhooks = new WebhooksApi(new GlobalApiKeySession())


Expand All @@ -528,4 +536,4 @@ export const Auth = {
Pkce,
}

export const Klaviyo = { Auth, AccountsApi, Accounts, CampaignsApi, Campaigns, CatalogsApi, Catalogs, CouponsApi, Coupons, DataPrivacyApi, DataPrivacy, EventsApi, Events, FlowsApi, Flows, FormsApi, Forms, ImagesApi, Images, ListsApi, Lists, MetricsApi, Metrics, ProfilesApi, Profiles, ReportingApi, Reporting, SegmentsApi, Segments, TagsApi, Tags, TemplatesApi, Templates, WebhooksApi, Webhooks };
export const Klaviyo = { Auth, AccountsApi, Accounts, CampaignsApi, Campaigns, CatalogsApi, Catalogs, CouponsApi, Coupons, DataPrivacyApi, DataPrivacy, EventsApi, Events, FlowsApi, Flows, FormsApi, Forms, ImagesApi, Images, ListsApi, Lists, MetricsApi, Metrics, ProfilesApi, Profiles, ReportingApi, Reporting, ReviewsApi, Reviews, SegmentsApi, Segments, TagsApi, Tags, TemplatesApi, Templates, TrackingSettingsApi, TrackingSettings, WebhooksApi, Webhooks };
Loading

0 comments on commit 1465b45

Please sign in to comment.