Skip to content

Commit

Permalink
feat(goodstore): update import order
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermorrisford committed Oct 3, 2023
1 parent 08640ad commit 0150c23
Show file tree
Hide file tree
Showing 127 changed files with 1,523 additions and 1,103 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { TInventoryEntryDraftBuilder } from '../../types';
import InventoryEntryDraft from '../builder';

const empty = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft()
.key(undefined)
.supplyChannel(undefined)
.restockableInDays(undefined)
.expectedDelivery(undefined)
const empty = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft()
.key(undefined)
.supplyChannel(undefined)
.restockableInDays(undefined)
.expectedDelivery(undefined);

export default empty;
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import empty from './empty';
import sampleDataGoodStore from './sample-data-goodstore';

const presets = {
empty,
sampleDataGoodStore,
empty,
sampleDataGoodStore,
};

export default presets;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import skuAAR34 from './sku-AAR34';
import skuADARM04 from './sku-ADARM04';
import skuADCT01 from './sku-ADCT01';
import skuADPC7 from './sku-ADPC7';
import skuADPC09 from './sku-ADPC09';
import skuADPC7 from './sku-ADPC7';
import skuALC01 from './sku-ALC01';
import skuAMR09 from './sku-AMR09';
import skuARG56 from './sku-ARG56';
Expand Down Expand Up @@ -55,8 +55,8 @@ import skuLBPC09 from './sku-LBPC09';
import skuLCO034 from './sku-LCO034';
import skuLCP01 from './sku-LCP01';
import skuLCP02 from './sku-LCP02';
import skuLPC09 from './sku-LPC09';
import skuLPC011 from './sku-LPC011';
import skuLPC09 from './sku-LPC09';
import skuLPQB084 from './sku-LPQB084';
import skuMB0973 from './sku-MB0973';
import skuMCP01 from './sku-MCP01';
Expand All @@ -77,10 +77,10 @@ import skuNR09 from './sku-NR09';
import skuNTSS01 from './sku-NTSS01';
import skuNTSS02 from './sku-NTSS02';
import skuNTSS03 from './sku-NTSS03';
import skuNTTS04 from './sku-NTTS04';
import skuNTSS05 from './sku-NTSS05';
import skuNTSS06 from './sku-NTSS06';
import skuNTSS07 from './sku-NTSS07';
import skuNTTS04 from './sku-NTTS04';
import skuOTB07 from './sku-OTB07';
import skuPAP01 from './sku-PAP01';
import skuPMAP01 from './sku-PMAP01';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const ariaRug01Preset = ProductVariantDraft.presets.sampleDataGoodStore.ariaRug01().build<TProductVariantDraft>();
const ariaRug01Preset = ProductVariantDraft.presets.sampleDataGoodStore
.ariaRug01()
.build<TProductVariantDraft>();

const skuAAR34 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(ariaRug01Preset.sku!)
.quantityOnStock(100);
const skuAAR34 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(ariaRug01Preset.sku!)
.quantityOnStock(100);

export default skuAAR34;

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { TInventoryEntryDraftBuilder } from '../../../types';
import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import * as InventoryEntryDraft from '../../index';

const artDecoChair01Preset = ProductVariantDraft.presets.sampleDataGoodStore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { TInventoryEntryDraftBuilder } from '../../../types';
import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import * as InventoryEntryDraft from '../../index';

const artDecoCoffeTable01Preset =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const patternedPillowCover01Preset = ProductVariantDraft.presets.sampleDataGoodStore.patternedPillowCover01().build<TProductVariantDraft>();
const patternedPillowCover01Preset =
ProductVariantDraft.presets.sampleDataGoodStore
.patternedPillowCover01()
.build<TProductVariantDraft>();

const skuADPC09 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(patternedPillowCover01Preset.sku!)
.quantityOnStock(100);
const skuADPC09 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(patternedPillowCover01Preset.sku!)
.quantityOnStock(100);

export default skuADPC09;

Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const patternedPillowCover02Preset = ProductVariantDraft.presets.sampleDataGoodStore.patternedPillowCover02().build<TProductVariantDraft>();
const patternedPillowCover02Preset =
ProductVariantDraft.presets.sampleDataGoodStore
.patternedPillowCover02()
.build<TProductVariantDraft>();

const skuADPC7 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(patternedPillowCover02Preset.sku!)
.quantityOnStock(100);
const skuADPC7 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(patternedPillowCover02Preset.sku!)
.quantityOnStock(100);

export default skuADPC7;

Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const abigailLoungeChair01Preset = ProductVariantDraft.presets.sampleDataGoodStore.abigailLoungeChair01().build<TProductVariantDraft>();
const abigailLoungeChair01Preset =
ProductVariantDraft.presets.sampleDataGoodStore
.abigailLoungeChair01()
.build<TProductVariantDraft>();

const skuALC01 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(abigailLoungeChair01Preset.sku!)
.quantityOnStock(73);
const skuALC01 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(abigailLoungeChair01Preset.sku!)
.quantityOnStock(73);

export default skuALC01;

Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const amaliaRug01Preset = ProductVariantDraft.presets.sampleDataGoodStore.amaliaRug01().build<TProductVariantDraft>();
const amaliaRug01Preset = ProductVariantDraft.presets.sampleDataGoodStore
.amaliaRug01()
.build<TProductVariantDraft>();

const skuAMR09 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(amaliaRug01Preset.sku!)
.quantityOnStock(100);
const skuAMR09 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(amaliaRug01Preset.sku!)
.quantityOnStock(100);

export default skuAMR09;

Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const ashenRug01Preset = ProductVariantDraft.presets.sampleDataGoodStore.ashenRug01().build<TProductVariantDraft>();
const ashenRug01Preset = ProductVariantDraft.presets.sampleDataGoodStore
.ashenRug01()
.build<TProductVariantDraft>();

const skuARG56 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(ashenRug01Preset.sku!)
.quantityOnStock(100);
const skuARG56 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(ashenRug01Preset.sku!)
.quantityOnStock(100);

export default skuARG56;

Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const leatherWeaveChair01Preset = ProductVariantDraft.presets.sampleDataGoodStore.leatherWeaveChair01().build<TProductVariantDraft>();
const leatherWeaveChair01Preset =
ProductVariantDraft.presets.sampleDataGoodStore
.leatherWeaveChair01()
.build<TProductVariantDraft>();

const skuBA092 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(leatherWeaveChair01Preset.sku!)
.quantityOnStock(98);
const skuBA092 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(leatherWeaveChair01Preset.sku!)
.quantityOnStock(98);

export default skuBA092;

Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const squareBambooCoaster01Preset = ProductVariantDraft.presets.sampleDataGoodStore.squareBambooCoaster01().build<TProductVariantDraft>();
const squareBambooCoaster01Preset =
ProductVariantDraft.presets.sampleDataGoodStore
.squareBambooCoaster01()
.build<TProductVariantDraft>();

const skuBAMB084 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(squareBambooCoaster01Preset.sku!)
.quantityOnStock(100);
const skuBAMB084 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(squareBambooCoaster01Preset.sku!)
.quantityOnStock(100);

export default skuBAMB084;

Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const brunoChair01Preset = ProductVariantDraft.presets.sampleDataGoodStore.brunoChair01().build<TProductVariantDraft>();
const brunoChair01Preset = ProductVariantDraft.presets.sampleDataGoodStore
.brunoChair01()
.build<TProductVariantDraft>();

const skuBARM03 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(brunoChair01Preset.sku!)
.quantityOnStock(100);
const skuBARM03 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(brunoChair01Preset.sku!)
.quantityOnStock(100);

export default skuBARM03;

Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const modernBlackCoaster01Preset = ProductVariantDraft.presets.sampleDataGoodStore.modernBlackCoaster01().build<TProductVariantDraft>();
const modernBlackCoaster01Preset =
ProductVariantDraft.presets.sampleDataGoodStore
.modernBlackCoaster01()
.build<TProductVariantDraft>();

const skuBCOAS08 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(modernBlackCoaster01Preset.sku!)
.quantityOnStock(100);
const skuBCOAS08 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(modernBlackCoaster01Preset.sku!)
.quantityOnStock(100);

export default skuBCOAS08;

Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

import {
ProductVariantDraft,
type TProductVariantDraft,
} from '@commercetools-test-data/product';
import type { TInventoryEntryDraftBuilder } from '../../../types';
import { ProductVariantDraft, type TProductVariantDraft } from '@commercetools-test-data/product';
import * as InventoryEntryDraft from '../../index';

const purpleLandscapePainting01Preset = ProductVariantDraft.presets.sampleDataGoodStore.purpleLandscapePainting01().build<TProductVariantDraft>();
const purpleLandscapePainting01Preset =
ProductVariantDraft.presets.sampleDataGoodStore
.purpleLandscapePainting01()
.build<TProductVariantDraft>();

const skuBLP01 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(purpleLandscapePainting01Preset.sku!)
.quantityOnStock(80);
const skuBLP01 = (): TInventoryEntryDraftBuilder =>
InventoryEntryDraft.presets
.empty()
.sku(purpleLandscapePainting01Preset.sku!)
.quantityOnStock(80);

export default skuBLP01;

Loading

0 comments on commit 0150c23

Please sign in to comment.