Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BRAIN-28 - Updated meteor-admin-sdk #8

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/src/component/base/sw-sales-channel-switch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<script lang="ts">
import { type PropType, defineComponent } from 'vue';
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import { SwSelect } from '@shopware-ag/meteor-component-library';

const Criteria = sw.data.Classes.Criteria;
Expand Down
2 changes: 1 addition & 1 deletion assets/src/component/sw-braintree-app-config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</template>

<script lang='ts'>
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import { defineComponent, type PropType } from 'vue';
import { SwTextField, SwSwitch } from '@shopware-ag/meteor-component-library';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import { defineComponent } from 'vue';
import SwBraintreeAppTable from '../base/sw-braintree-app-table.vue';
import SwBraintreeAppCurrencyMappingSelect from './sw-braintree-app-settings-currency-mapping-select.vue';
import { SwCard, SwBanner, SwExternalLink } from '@shopware-ag/meteor-component-library';
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import { DefaultCurrencyMappingEntity } from '@/resources/entities';
import { registerSaveHandler } from '@/resources/inject-keys';
import BraintreeCurrencies from '@/resources/braintree-currencies';
Expand Down
4 changes: 2 additions & 2 deletions assets/src/location/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as sw from '@shopware-ag/admin-extension-sdk';
import type { Entity } from '@shopware-ag/admin-extension-sdk/es/data/_internals/Entity';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import type { Entity } from '@shopware-ag/meteor-admin-sdk/es/data/_internals/Entity';
import type VueI18n from 'vue-i18n';

const addLocations = async (paymentMethod: Entity<'payment_method'>, i18n: VueI18n): Promise<void> => {
Expand Down
4 changes: 2 additions & 2 deletions assets/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import store from '@/store';
import Vue from 'vue';
import { DeviceHelperPlugin, TooltipDirective } from '@shopware-ag/meteor-component-library';
import VueI18n from 'vue-i18n';
import messages from '@/i18n';
import { Api } from '@/service/api';
import { addLocations } from '@/location';
import type { Entity } from '@shopware-ag/admin-extension-sdk/es/data/_internals/Entity';
import type { Entity } from '@shopware-ag/meteor-admin-sdk/es/data/_internals/Entity';
import { Notify } from './service/notify';

const Criteria = sw.data.Classes.Criteria;
Expand Down
2 changes: 1 addition & 1 deletion assets/src/service/notify.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import { type AxiosError, isAxiosError } from 'axios';
import type VueI18n from 'vue-i18n';
import type Messages from '../i18n/en-GB.json';
Expand Down
2 changes: 1 addition & 1 deletion assets/src/types/global.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@shopware-ag/entity-schema-types';
import type Entity from '@shopware-ag/admin-extension-sdk/es/data/_internals/Entity';
import type Entity from '@shopware-ag/meteor-admin-sdk/es/data/_internals/Entity';

declare global {
interface Entities extends EntitySchema.Entities {}
Expand Down
2 changes: 1 addition & 1 deletion assets/src/views/sw-braintree-app-config-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</template>

<script lang='ts'>
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import { defineComponent } from 'vue';
import SwBraintreeAppConfig from '@/component/sw-braintree-app-config.vue';
import SwBraintreeAppMerchantDetails from '@/component/sw-braintree-app-merchant-details.vue';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@

<script lang='ts'>
import { defineComponent } from 'vue';
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';
import { SwLoader, SwIcon } from '@shopware-ag/meteor-component-library';
import SwStatusIndicator from '@/component/base/sw-status-indicator.vue';

Expand Down Expand Up @@ -238,11 +238,9 @@ export default defineComponent({
void sw.data.subscribe(
'sw-order-detail-base__order',
async (response) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const data = response.data as any;
const data = response.data as { id: string };

const criteria = (new Criteria())
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access
.addFilter(Criteria.equals('orderId', data.id));

const result = await Repository.search(criteria);
Expand Down
2 changes: 1 addition & 1 deletion assets/src/views/sw-braintree-app-page-controller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script lang='ts'>
import type { AsyncComponent } from 'vue';
import { defineComponent } from 'vue';
import * as sw from '@shopware-ag/admin-extension-sdk';
import * as sw from '@shopware-ag/meteor-admin-sdk';

export default defineComponent({
name: 'sw-braintree-app-page-controller',
Expand Down
Loading