Skip to content

Commit 1c1f7be

Browse files
committed
feat(migrate): imports
1 parent a9c8834 commit 1c1f7be

22 files changed

+40
-93
lines changed

packages/sync-actions/test/attribute-groups-sync.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import attributeGroupSyncFn from '../src/attribute-groups'
22
import { baseActionsList } from '../src/attribute-groups-actions'
3-
import { AttributeGroupUpdateAction } from '@commercetools/platform-sdk/src'
4-
import { SyncAction } from '../src/types/update-actions'
53

64
describe('Exports', () => {
75
test('correctly define base actions list', () => {

packages/sync-actions/test/cart-discounts-sync.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import cartDiscountsSyncFn, { actionGroups } from '../src/cart-discounts'
22
import { baseActionsList } from '../src/cart-discounts-actions'
3-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
4-
import {
5-
CartDiscountDraft,
6-
CartDiscountUpdateAction,
7-
} from '@commercetools/platform-sdk/src'
3+
import { DeepPartial } from '../src/types/update-actions'
4+
import { CartDiscountDraft } from '@commercetools/platform-sdk/src'
85

96
describe('Cart Discounts Exports', () => {
107
test('action group list', () => {

packages/sync-actions/test/category-sync.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import categorySyncFn, { actionGroups } from '../src/categories'
2-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
2+
import { DeepPartial } from '../src/types/update-actions'
33
import {
44
baseActionsList,
55
metaActionsList,
66
referenceActionsList,
77
} from '../src/category-actions'
8-
import {
9-
CartDiscountDraft,
10-
CategoryDraft,
11-
CategoryUpdateAction,
12-
} from '@commercetools/platform-sdk/src'
8+
import { CategoryDraft } from '@commercetools/platform-sdk/src'
139

1410
describe('Exports', () => {
1511
test('action group list', () => {

packages/sync-actions/test/channels-sync-.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import createChannelsSync, { actionGroups } from '../src/channels'
22
import { baseActionsList } from '../src/channels-actions'
3-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
4-
import {
5-
CategoryDraft,
6-
ChannelDraft,
7-
ChannelUpdateAction,
8-
} from '@commercetools/platform-sdk/src'
3+
import { DeepPartial } from '../src/types/update-actions'
4+
import { ChannelDraft } from '@commercetools/platform-sdk/src'
95

106
describe('Exports', () => {
117
test('action group list', () => {

packages/sync-actions/test/customer-group-sync.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import customerGroupSyncFn, { actionGroups } from '../src/customer-group'
22
import { baseActionsList } from '../src/customer-group-actions'
3-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
3+
import { DeepPartial } from '../src/types/update-actions'
44
import {
55
CustomerGroup,
66
CustomerGroupDraft,
7-
CustomerGroupUpdateAction,
87
} from '@commercetools/platform-sdk/src'
98

109
describe('Customer Groups Exports', () => {

packages/sync-actions/test/inventory-sync.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import inventorySyncFn, { actionGroups } from '../src/inventories'
22
import { baseActionsList, referenceActionsList } from '../src/inventory-actions'
3-
import { SyncAction } from '../src/types/update-actions'
4-
import {
5-
InventoryEntryDraft,
6-
InventoryEntryUpdateAction,
7-
} from '@commercetools/platform-sdk/src'
3+
import { InventoryEntryDraft } from '@commercetools/platform-sdk/src'
84

95
describe('Exports', () => {
106
test('action group list', () => {

packages/sync-actions/test/order-sync.spec.ts

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { performance } from 'perf_hooks'
22
import orderSyncFn, { actionGroups, OrderSync } from '../src/orders'
33
import { baseActionsList } from '../src/order-actions'
4-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
5-
import {
6-
OrderEditDraft,
7-
OrderUpdateAction,
8-
} from '@commercetools/platform-sdk/src'
4+
import { DeepPartial } from '../src/types/update-actions'
95

106
describe('Exports', () => {
117
test('action group list', () => {
@@ -194,11 +190,11 @@ describe('Actions', () => {
194190
shippingInfo: {
195191
deliveries: Array(100)
196192
.fill(null)
197-
.map((a, index) => ({
193+
.map((_a, index) => ({
198194
parcels: [],
199195
items: Array(50)
200196
.fill(null)
201-
.map((b, index2) => {
197+
.map((_b, index2) => {
202198
return {
203199
id: `id-${index}-${index2}`,
204200
qty: 1,
@@ -211,11 +207,11 @@ describe('Actions', () => {
211207
shippingInfo: {
212208
deliveries: Array(100)
213209
.fill(null)
214-
.map((a, index) => ({
210+
.map((_a, index) => ({
215211
parcels: [],
216212
items: Array(50)
217213
.fill(null)
218-
.map((b, index2) => {
214+
.map((_b, index2) => {
219215
return {
220216
id: `id-${index}-${index2}`,
221217
qty: 2,
@@ -804,10 +800,10 @@ describe('Actions', () => {
804800
const before = {
805801
returnInfo: Array(100)
806802
.fill(null)
807-
.map((a, index) => ({
803+
.map((_a, index) => ({
808804
items: Array(50)
809805
.fill(null)
810-
.map((b, index2) => {
806+
.map((_b, index2) => {
811807
return {
812808
id: `id-${index}-${index2}`,
813809
shipmentState: 'Returned',
@@ -819,10 +815,10 @@ describe('Actions', () => {
819815
const now = {
820816
returnInfo: Array(100)
821817
.fill(null)
822-
.map((a, index) => ({
818+
.map((_a, index) => ({
823819
items: Array(50)
824820
.fill(null)
825-
.map((b, index2) => {
821+
.map((_b, index2) => {
826822
return {
827823
id: `id-${index}-${index2}`,
828824
shipmentState: 'Returned',

packages/sync-actions/test/product-selections-sync.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ import { baseActionsList } from '../src/product-selections-actions'
22
import productSelectionsSyncFn, {
33
actionGroups,
44
} from '../src/product-selections'
5-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
6-
import {
7-
ProductSelectionDraft,
8-
ProductSelectionUpdateAction,
9-
} from '@commercetools/platform-sdk/src'
5+
import { DeepPartial } from '../src/types/update-actions'
6+
import { ProductSelectionDraft } from '@commercetools/platform-sdk/src'
107

118
describe('Exports', () => {
129
test('action group list', () => {

packages/sync-actions/test/product-sync-base.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ import {
55
metaActionsList,
66
referenceActionsList,
77
} from '../src/product-actions'
8-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
9-
import {
10-
ProductData,
11-
ProductDraft,
12-
ProductUpdateAction,
13-
} from '@commercetools/platform-sdk/src'
8+
import { DeepPartial } from '../src/types/update-actions'
9+
import { ProductDraft } from '@commercetools/platform-sdk/src'
1410

1511
describe('Exports', () => {
1612
test('action group list', () => {

packages/sync-actions/test/product-sync-images.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DeepPartial, SyncAction } from '../src/types/update-actions'
1+
import { DeepPartial } from '../src/types/update-actions'
22
import productsSyncFn, { ProductSync } from '../src/products'
33

44
/* eslint-disable max-len */

0 commit comments

Comments
 (0)