Skip to content

Commit

Permalink
v2.0.65
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsvetanov committed Aug 16, 2021
1 parent dead1e7 commit d3d9214
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sentecacommerce/sdk",
"sideEffects": false,
"version": "2.0.64",
"version": "2.0.65",
"description": "OpenAPI client for sentecacommerce platform",
"author": "Stanislav Bogdanov",
"main": "dist/cjs/index.js",
Expand Down
7 changes: 4 additions & 3 deletions src/apis/fulfillment/MyOrdersAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { OrderDTO } from '../../models/OrderDTO';
import { ShippingModulesInfo } from '../../models/ShippingModulesInfo';
import { ShippingMethodsInfo } from '../../models/ShippingMethodsInfo';
import { StockLocationsInfo } from '../../models/StockLocationsInfo';
import { CSVParameters } from '../../models/CSVParameters';

export class MyOrdersAPI extends BaseAPI {
async filter (query?: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string, filter?: string, sort?: string, limit?: number, offset?: number }): Promise<OrderFilterResultDTO> {
Expand Down Expand Up @@ -79,14 +80,14 @@ export class MyOrdersAPI extends BaseAPI {
return (response as unknown) as OrderDTO;
}

async exportMyOrders (query?: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string }): Promise<any> {
async exportMyOrders (query: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string }, dto: CSVParameters): Promise<any> {
const response = await this._request({
path: `/fulfillment/my-orders/export`,
method: 'POST',
query: this._stringifyQuery(query),
body: dto,



contentType: 'application/json',
});
return (response as unknown) as any;
}
Expand Down
13 changes: 7 additions & 6 deletions src/apis/users/CustomersAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { PasswordTokenDTO } from '../../models/PasswordTokenDTO';
import { PasswordResetDTO } from '../../models/PasswordResetDTO';
import { SetCustomerGroupDTO } from '../../models/SetCustomerGroupDTO';
import { FilterQueryDTO } from '../../models/FilterQueryDTO';
import { CSVParameters } from '../../models/CSVParameters';

export class CustomersAPI extends BaseAPI {
async getMyProfile (query?: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string }): Promise<CustomerDTO> {
Expand Down Expand Up @@ -533,26 +534,26 @@ export class CustomersAPI extends BaseAPI {
return (response as unknown) as any;
}

async exportMyProfile (): Promise<any> {
async exportMyProfile (dto: CSVParameters): Promise<any> {
const response = await this._request({
path: `/users/customers/export/my-profile`,
method: 'POST',

body: dto,



contentType: 'application/json',
});
return (response as unknown) as any;
}

async exportMyAddresses (): Promise<any> {
async exportMyAddresses (dto: CSVParameters): Promise<any> {
const response = await this._request({
path: `/users/customers/export/my-addresses`,
method: 'POST',

body: dto,



contentType: 'application/json',
});
return (response as unknown) as any;
}
Expand Down
1 change: 1 addition & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export * from "./BulkLabelSetDTO";
export * from "./BulkLinkUpdateDTO";
export * from "./BulkOfferQuantityUpdateDTO";
export * from "./BulkStatusChangeDTO";
export * from "./CSVParameters";
export * from "./CartDiscountBulkDeleteDTO";
export * from "./CartDiscountDTO";
export * from "./CartDiscountDraftDTO";
Expand Down
7 changes: 4 additions & 3 deletions src/v2/apis/fulfillment/MyOrdersAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { OrderDTO } from '../../models/OrderDTO';
import { ShippingModulesInfo } from '../../models/ShippingModulesInfo';
import { ShippingMethodsInfo } from '../../models/ShippingMethodsInfo';
import { StockLocationsInfo } from '../../models/StockLocationsInfo';
import { CSVParameters } from '../../models/CSVParameters';

export const MyOrdersFilter = async (query?: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string, filter?: string, sort?: string, limit?: number, offset?: number }): Promise<OrderFilterResultDTO> => {
const response = await HttpClient.request({
Expand Down Expand Up @@ -80,14 +81,14 @@ export const MyOrdersGetById = async (id: string): Promise<OrderDTO> => {
return (response as unknown) as OrderDTO;
}

export const MyOrdersExportMyOrders = async (query?: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string }): Promise<any> => {
export const MyOrdersExportMyOrders = async (query: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string }, dto: CSVParameters): Promise<any> => {
const response = await HttpClient.request({
path: `/fulfillment/my-orders/export`,
method: 'POST',
query: toQueryString(query),
body: dto,



contentType: 'application/json',
});
return (response as unknown) as any;
}
Expand Down
13 changes: 7 additions & 6 deletions src/v2/apis/users/CustomersAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { PasswordTokenDTO } from '../../models/PasswordTokenDTO';
import { PasswordResetDTO } from '../../models/PasswordResetDTO';
import { SetCustomerGroupDTO } from '../../models/SetCustomerGroupDTO';
import { FilterQueryDTO } from '../../models/FilterQueryDTO';
import { CSVParameters } from '../../models/CSVParameters';

export const CustomersGetMyProfile = async (query?: { storeKey?: string, interfaceKey?: string, currencyCode?: string, languageCode?: string, priceListKey?: string, time?: number, merchantKey?: string, expand?: string, project?: string }): Promise<CustomerDTO> => {
const response = await HttpClient.request({
Expand Down Expand Up @@ -534,26 +535,26 @@ export const CustomersExportCSV = async (dto: FilterQueryDTO): Promise<any> => {
return (response as unknown) as any;
}

export const CustomersExportMyProfile = async (): Promise<any> => {
export const CustomersExportMyProfile = async (dto: CSVParameters): Promise<any> => {
const response = await HttpClient.request({
path: `/users/customers/export/my-profile`,
method: 'POST',

body: dto,



contentType: 'application/json',
});
return (response as unknown) as any;
}

export const CustomersExportMyAddresses = async (): Promise<any> => {
export const CustomersExportMyAddresses = async (dto: CSVParameters): Promise<any> => {
const response = await HttpClient.request({
path: `/users/customers/export/my-addresses`,
method: 'POST',

body: dto,



contentType: 'application/json',
});
return (response as unknown) as any;
}
Expand Down
1 change: 1 addition & 0 deletions src/v2/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export * from "./BulkLabelSetDTO";
export * from "./BulkLinkUpdateDTO";
export * from "./BulkOfferQuantityUpdateDTO";
export * from "./BulkStatusChangeDTO";
export * from "./CSVParameters";
export * from "./CartDiscountBulkDeleteDTO";
export * from "./CartDiscountDTO";
export * from "./CartDiscountDraftDTO";
Expand Down

0 comments on commit d3d9214

Please sign in to comment.