Skip to content

Commit

Permalink
chore: generated code for commit 6624759e. [skip ci]
Browse files Browse the repository at this point in the history
algolia/api-clients-automation@6624759

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Damien Couchez <damien.couchez@gmail.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
3 people committed Feb 20, 2024
1 parent e09f810 commit 9527fdb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/ingestion/model/commercetoolsCustomFields.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

/**
* Custom fields from Commercetools to index in the records (see https://docs.commercetools.com/tutorials/custom-types).
*/
export type CommercetoolsCustomFields = {
/**
* Inventory custom fields.
*/
inventory?: string[];

/**
* Price custom fields.
*/
price?: string[];

/**
* Category custom fields.
*/
category?: string[];
};
1 change: 1 addition & 0 deletions packages/ingestion/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export * from './authenticationUpdateResponse';
export * from './bigCommerceChannel';
export * from './bigCommerceMetafield';
export * from './bigQueryDataType';
export * from './commercetoolsCustomFields';
export * from './deleteResponse';
export * from './destination';
export * from './destinationCreate';
Expand Down
4 changes: 4 additions & 0 deletions packages/ingestion/model/sourceCommercetools.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import type { CommercetoolsCustomFields } from './commercetoolsCustomFields';

export type SourceCommercetools = {
storeKeys?: string[];

Expand All @@ -16,4 +18,6 @@ export type SourceCommercetools = {
* Determines the value that will be stored in the Algolia record if there\'s no inventory information on the product.
*/
fallbackIsInStockValue?: boolean;

customFields?: CommercetoolsCustomFields;
};
4 changes: 4 additions & 0 deletions packages/ingestion/model/sourceUpdateCommercetools.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

import type { CommercetoolsCustomFields } from './commercetoolsCustomFields';

export type SourceUpdateCommercetools = {
/**
* Unique and immutable key of the referenced Store.
Expand All @@ -10,4 +12,6 @@ export type SourceUpdateCommercetools = {
* Array of locales that must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example [\"fr-FR\", \"en\"].
*/
locales?: string[];

customFields?: CommercetoolsCustomFields;
};

0 comments on commit 9527fdb

Please sign in to comment.