mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merge branch 'nx-workspace-migration' into develop
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1,5 +1,7 @@
|
|||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
.matomo
|
||||||
|
|
||||||
# compiled output
|
# compiled output
|
||||||
/dist
|
/dist
|
||||||
/tmp
|
/tmp
|
||||||
@@ -50,4 +52,9 @@ testem.log
|
|||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
libs/swagger/src/lib/*
|
libs/swagger/src/lib/*
|
||||||
*storybook.log
|
*storybook.log
|
||||||
|
|
||||||
|
|
||||||
|
.nx/cache
|
||||||
|
.nx/workspace-data
|
||||||
|
.angular
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
/dist
|
/dist
|
||||||
/coverage
|
/coverage
|
||||||
/helmvalues
|
/helmvalues
|
||||||
/apps/swagger
|
/generated
|
||||||
/ng-swagger-gen
|
|
||||||
|
|
||||||
*.json
|
*.json
|
||||||
*.yml
|
*.yml
|
||||||
|
|
||||||
|
.angular
|
||||||
|
|||||||
@@ -1,5 +1,34 @@
|
|||||||
{
|
{
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"printWidth": 140
|
"printWidth": 120,
|
||||||
}
|
"tabWidth": 2,
|
||||||
|
"useTabs": false,
|
||||||
|
"semi": true,
|
||||||
|
"trailingComma": "all",
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"arrowParens": "always",
|
||||||
|
"htmlWhitespaceSensitivity": "ignore",
|
||||||
|
"endOfLine": "lf",
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "*.html",
|
||||||
|
"options": {
|
||||||
|
"parser": "angular",
|
||||||
|
"printWidth": 140
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.ts", "*.tsx"],
|
||||||
|
"options": {
|
||||||
|
"parser": "typescript"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.scss", "*.css"],
|
||||||
|
"options": {
|
||||||
|
"parser": "scss",
|
||||||
|
"singleQuote": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
14
.vscode/extensions.json
vendored
14
.vscode/extensions.json
vendored
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"johnpapa.angular2",
|
"johnpapa.angular2",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"angular.ng-template",
|
"angular.ng-template",
|
||||||
]
|
"nrwl.angular-console",
|
||||||
}
|
"dbaeumer.vscode-eslint"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
164
angular.json
164
angular.json
@@ -1,164 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
||||||
"version": 1,
|
|
||||||
"newProjectRoot": "apps",
|
|
||||||
"projects": {
|
|
||||||
"isa-app": {
|
|
||||||
"projectType": "application",
|
|
||||||
"schematics": {
|
|
||||||
"@schematics/angular:component": {
|
|
||||||
"style": "scss"
|
|
||||||
},
|
|
||||||
"@schematics/angular:application": {
|
|
||||||
"strict": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "apps/isa-app",
|
|
||||||
"sourceRoot": "apps/isa-app/src",
|
|
||||||
"prefix": "app",
|
|
||||||
"architect": {
|
|
||||||
"build": {
|
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
|
||||||
"options": {
|
|
||||||
"allowedCommonJsDependencies": [
|
|
||||||
"lodash",
|
|
||||||
"moment",
|
|
||||||
"jsrsasign",
|
|
||||||
"pdfjs-dist/build/pdf",
|
|
||||||
"pdfjs-dist/web/pdf_viewer",
|
|
||||||
"pdfjs-dist/es5/build/pdf",
|
|
||||||
"pdfjs-dist/es5/web/pdf_viewer"
|
|
||||||
],
|
|
||||||
"outputPath": "dist/isa-app",
|
|
||||||
"index": "apps/isa-app/src/index.html",
|
|
||||||
"main": "apps/isa-app/src/main.ts",
|
|
||||||
"polyfills": "apps/isa-app/src/polyfills.ts",
|
|
||||||
"tsConfig": "apps/isa-app/tsconfig.app.json",
|
|
||||||
"inlineStyleLanguage": "scss",
|
|
||||||
"assets": [
|
|
||||||
"apps/isa-app/src/favicon.ico",
|
|
||||||
"apps/isa-app/src/assets",
|
|
||||||
"apps/isa-app/src/config",
|
|
||||||
"apps/isa-app/src/silent-refresh.html",
|
|
||||||
"apps/isa-app/src/manifest.webmanifest",
|
|
||||||
{
|
|
||||||
"glob": "**/*",
|
|
||||||
"input": "node_modules/scandit-web-datacapture-barcode/build/engine",
|
|
||||||
"output": "scandit"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"styles": [
|
|
||||||
"apps/isa-app/src/styles.scss"
|
|
||||||
],
|
|
||||||
"scripts": [],
|
|
||||||
"serviceWorker": true,
|
|
||||||
"ngswConfigPath": "apps/isa-app/ngsw-config.json"
|
|
||||||
},
|
|
||||||
"configurations": {
|
|
||||||
"production": {
|
|
||||||
"budgets": [
|
|
||||||
{
|
|
||||||
"type": "initial",
|
|
||||||
"maximumWarning": "2mb",
|
|
||||||
"maximumError": "5mb"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "anyComponentStyle",
|
|
||||||
"maximumWarning": "25kb"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"fileReplacements": [
|
|
||||||
{
|
|
||||||
"replace": "apps/isa-app/src/environments/environment.ts",
|
|
||||||
"with": "apps/isa-app/src/environments/environment.prod.ts"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputHashing": "all"
|
|
||||||
},
|
|
||||||
"development": {
|
|
||||||
"buildOptimizer": false,
|
|
||||||
"optimization": false,
|
|
||||||
"vendorChunk": true,
|
|
||||||
"extractLicenses": false,
|
|
||||||
"sourceMap": true,
|
|
||||||
"namedChunks": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultConfiguration": "production"
|
|
||||||
},
|
|
||||||
"serve": {
|
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
|
||||||
"configurations": {
|
|
||||||
"production": {
|
|
||||||
"buildTarget": "isa-app:build:production"
|
|
||||||
},
|
|
||||||
"development": {
|
|
||||||
"buildTarget": "isa-app:build:development"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultConfiguration": "development"
|
|
||||||
},
|
|
||||||
"extract-i18n": {
|
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
||||||
"options": {
|
|
||||||
"buildTarget": "isa-app:build"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"test": {
|
|
||||||
"builder": "@angular-devkit/build-angular:karma",
|
|
||||||
"options": {
|
|
||||||
"tsConfig": "apps/isa-app/tsconfig.spec.json",
|
|
||||||
"karmaConfig": "karma.conf.js",
|
|
||||||
"polyfills": [
|
|
||||||
"zone.js",
|
|
||||||
"zone.js/testing"
|
|
||||||
],
|
|
||||||
"inlineStyleLanguage": "scss",
|
|
||||||
"assets": [
|
|
||||||
"apps/isa-app/src/favicon.ico",
|
|
||||||
"apps/isa-app/src/assets",
|
|
||||||
"apps/isa-app/src/manifest.webmanifest"
|
|
||||||
],
|
|
||||||
"styles": [
|
|
||||||
"apps/isa-app/src/styles.scss"
|
|
||||||
],
|
|
||||||
"scripts": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"storybook": {
|
|
||||||
"builder": "@storybook/angular:start-storybook",
|
|
||||||
"options": {
|
|
||||||
"configDir": "apps/isa-app/.storybook",
|
|
||||||
"browserTarget": "isa-app:build",
|
|
||||||
"compodoc": true,
|
|
||||||
"compodocArgs": [
|
|
||||||
"-e",
|
|
||||||
"json",
|
|
||||||
"-d",
|
|
||||||
"apps/isa-app"
|
|
||||||
],
|
|
||||||
"port": 6006
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"build-storybook": {
|
|
||||||
"builder": "@storybook/angular:build-storybook",
|
|
||||||
"options": {
|
|
||||||
"configDir": "apps/isa-app/.storybook",
|
|
||||||
"browserTarget": "isa-app:build",
|
|
||||||
"compodoc": true,
|
|
||||||
"compodocArgs": [
|
|
||||||
"-e",
|
|
||||||
"json",
|
|
||||||
"-d",
|
|
||||||
"apps/isa-app"
|
|
||||||
],
|
|
||||||
"outputDir": "storybook-static"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cli": {
|
|
||||||
"analytics": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import type { StorybookConfig } from '@storybook/angular';
|
|
||||||
|
|
||||||
const config: StorybookConfig = {
|
|
||||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
||||||
addons: [
|
|
||||||
'@storybook/addon-onboarding',
|
|
||||||
'@storybook/addon-links',
|
|
||||||
'@storybook/addon-essentials',
|
|
||||||
'@chromatic-com/storybook',
|
|
||||||
'@storybook/addon-interactions',
|
|
||||||
],
|
|
||||||
framework: {
|
|
||||||
name: '@storybook/angular',
|
|
||||||
options: {},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
export default config;
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import type { Preview } from '@storybook/angular';
|
|
||||||
import { setCompodocJson } from '@storybook/addon-docs/angular';
|
|
||||||
import docJson from '../documentation.json';
|
|
||||||
setCompodocJson(docJson);
|
|
||||||
|
|
||||||
const preview: Preview = {
|
|
||||||
parameters: {
|
|
||||||
controls: {
|
|
||||||
matchers: {
|
|
||||||
color: /(background|color)$/i,
|
|
||||||
date: /Date$/i,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
export default preview;
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
// This tsconfig is used by Compodoc to generate the documentation for the project.
|
|
||||||
// If Compodoc is not used, this file can be deleted.
|
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
// Exclude all files that are not needed for documentation generation.
|
|
||||||
"exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../src/**/*.stories.ts"],
|
|
||||||
// Please make sure to include all files from which Compodoc should generate documentation.
|
|
||||||
"include": ["../src/**/*"],
|
|
||||||
"files": ["./typings.d.ts"]
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../tsconfig.app.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"types": ["node"],
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"resolveJsonModule": true
|
|
||||||
},
|
|
||||||
"exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
|
|
||||||
"include": ["../src/**/*.stories.*", "./preview.ts", "../src/polyfills.ts"],
|
|
||||||
"files": ["./typings.d.ts"]
|
|
||||||
}
|
|
||||||
4
apps/isa-app/.storybook/typings.d.ts
vendored
4
apps/isa-app/.storybook/typings.d.ts
vendored
@@ -1,4 +0,0 @@
|
|||||||
declare module '*.md' {
|
|
||||||
const content: string;
|
|
||||||
export default content;
|
|
||||||
}
|
|
||||||
158
apps/isa-app/project.json
Normal file
158
apps/isa-app/project.json
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||||
|
"name": "isa-app",
|
||||||
|
"projectType": "application",
|
||||||
|
"generators": {
|
||||||
|
"@schematics/angular:component": {
|
||||||
|
"style": "scss"
|
||||||
|
},
|
||||||
|
"@schematics/angular:application": {
|
||||||
|
"strict": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceRoot": "apps/isa-app/src",
|
||||||
|
"prefix": "app",
|
||||||
|
"targets": {
|
||||||
|
"build": {
|
||||||
|
"executor": "@angular-devkit/build-angular:browser",
|
||||||
|
"options": {
|
||||||
|
"allowedCommonJsDependencies": [
|
||||||
|
"lodash",
|
||||||
|
"moment",
|
||||||
|
"jsrsasign",
|
||||||
|
"pdfjs-dist/build/pdf",
|
||||||
|
"pdfjs-dist/web/pdf_viewer",
|
||||||
|
"pdfjs-dist/es5/build/pdf",
|
||||||
|
"pdfjs-dist/es5/web/pdf_viewer"
|
||||||
|
],
|
||||||
|
"outputPath": "dist/isa-app",
|
||||||
|
"index": "apps/isa-app/src/index.html",
|
||||||
|
"main": "apps/isa-app/src/main.ts",
|
||||||
|
"polyfills": "apps/isa-app/src/polyfills.ts",
|
||||||
|
"tsConfig": "apps/isa-app/tsconfig.app.json",
|
||||||
|
"inlineStyleLanguage": "scss",
|
||||||
|
"assets": [
|
||||||
|
"apps/isa-app/src/favicon.ico",
|
||||||
|
"apps/isa-app/src/assets",
|
||||||
|
"apps/isa-app/src/config",
|
||||||
|
"apps/isa-app/src/silent-refresh.html",
|
||||||
|
"apps/isa-app/src/manifest.webmanifest",
|
||||||
|
{
|
||||||
|
"glob": "**/*",
|
||||||
|
"input": "node_modules/scandit-web-datacapture-barcode/build/engine",
|
||||||
|
"output": "scandit"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"styles": [
|
||||||
|
"apps/isa-app/src/styles.scss"
|
||||||
|
],
|
||||||
|
"scripts": [],
|
||||||
|
"serviceWorker": true,
|
||||||
|
"ngswConfigPath": "apps/isa-app/ngsw-config.json"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "2mb",
|
||||||
|
"maximumError": "5mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "25kb"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "apps/isa-app/src/environments/environment.ts",
|
||||||
|
"with": "apps/isa-app/src/environments/environment.prod.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputHashing": "all"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"buildOptimizer": false,
|
||||||
|
"optimization": false,
|
||||||
|
"vendorChunk": true,
|
||||||
|
"extractLicenses": false,
|
||||||
|
"sourceMap": true,
|
||||||
|
"namedChunks": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfiguration": "production",
|
||||||
|
"outputs": [
|
||||||
|
"{options.outputPath}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serve": {
|
||||||
|
"executor": "@angular-devkit/build-angular:dev-server",
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"buildTarget": "isa-app:build:production"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"buildTarget": "isa-app:build:development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfiguration": "development"
|
||||||
|
},
|
||||||
|
"extract-i18n": {
|
||||||
|
"executor": "@angular-devkit/build-angular:extract-i18n",
|
||||||
|
"options": {
|
||||||
|
"buildTarget": "isa-app:build"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"executor": "@angular-devkit/build-angular:karma",
|
||||||
|
"options": {
|
||||||
|
"tsConfig": "apps/isa-app/tsconfig.spec.json",
|
||||||
|
"karmaConfig": "karma.conf.js",
|
||||||
|
"polyfills": [
|
||||||
|
"zone.js",
|
||||||
|
"zone.js/testing"
|
||||||
|
],
|
||||||
|
"inlineStyleLanguage": "scss",
|
||||||
|
"assets": [
|
||||||
|
"apps/isa-app/src/favicon.ico",
|
||||||
|
"apps/isa-app/src/assets",
|
||||||
|
"apps/isa-app/src/manifest.webmanifest"
|
||||||
|
],
|
||||||
|
"styles": [
|
||||||
|
"apps/isa-app/src/styles.scss"
|
||||||
|
],
|
||||||
|
"scripts": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"storybook": {
|
||||||
|
"executor": "@storybook/angular:start-storybook",
|
||||||
|
"options": {
|
||||||
|
"configDir": "apps/isa-app/.storybook",
|
||||||
|
"browserTarget": "isa-app:build",
|
||||||
|
"compodoc": true,
|
||||||
|
"compodocArgs": [
|
||||||
|
"-e",
|
||||||
|
"json",
|
||||||
|
"-d",
|
||||||
|
"apps/isa-app"
|
||||||
|
],
|
||||||
|
"port": 6006
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"build-storybook": {
|
||||||
|
"executor": "@storybook/angular:build-storybook",
|
||||||
|
"options": {
|
||||||
|
"configDir": "apps/isa-app/.storybook",
|
||||||
|
"browserTarget": "isa-app:build",
|
||||||
|
"compodoc": true,
|
||||||
|
"compodocArgs": [
|
||||||
|
"-e",
|
||||||
|
"json",
|
||||||
|
"-d",
|
||||||
|
"apps/isa-app"
|
||||||
|
],
|
||||||
|
"outputDir": "storybook-static"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,6 +7,7 @@ import { Camera, DataCaptureContext, DataCaptureView, FrameSourceState } from 's
|
|||||||
templateUrl: 'scandit-overlay.component.html',
|
templateUrl: 'scandit-overlay.component.html',
|
||||||
styleUrls: ['scandit-overlay.component.css'],
|
styleUrls: ['scandit-overlay.component.css'],
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class ScanditOverlayComponent implements AfterViewInit, OnDestroy {
|
export class ScanditOverlayComponent implements AfterViewInit, OnDestroy {
|
||||||
private dataCaptureContext: DataCaptureContext;
|
private dataCaptureContext: DataCaptureContext;
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import { BranchSectionResolver, CustomerSectionResolver, ProcessIdResolver } fro
|
|||||||
import { TokenLoginComponent, TokenLoginModule } from './token-login';
|
import { TokenLoginComponent, TokenLoginModule } from './token-login';
|
||||||
import { ProcessIdGuard } from './guards/process-id.guard';
|
import { ProcessIdGuard } from './guards/process-id.guard';
|
||||||
import { ActivateProcessIdGuard, ActivateProcessIdWithConfigKeyGuard } from './guards/activate-process-id.guard';
|
import { ActivateProcessIdGuard, ActivateProcessIdWithConfigKeyGuard } from './guards/activate-process-id.guard';
|
||||||
|
import { MatomoRouteData } from 'ngx-matomo-client';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
@@ -42,6 +43,11 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'dashboard',
|
path: 'dashboard',
|
||||||
loadChildren: () => import('@page/dashboard').then((m) => m.DashboardModule),
|
loadChildren: () => import('@page/dashboard').then((m) => m.DashboardModule),
|
||||||
|
data: {
|
||||||
|
matomo: {
|
||||||
|
title: 'Dashboard',
|
||||||
|
} as MatomoRouteData,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'product',
|
path: 'product',
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { NgModule } from '@angular/core';
|
|||||||
import { EffectsModule } from '@ngrx/effects';
|
import { EffectsModule } from '@ngrx/effects';
|
||||||
import { ActionReducer, MetaReducer, StoreModule } from '@ngrx/store';
|
import { ActionReducer, MetaReducer, StoreModule } from '@ngrx/store';
|
||||||
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
||||||
import { storeFreeze } from 'ngrx-store-freeze';
|
|
||||||
import packageInfo from 'packageJson';
|
import packageInfo from 'packageJson';
|
||||||
import { environment } from '../environments/environment';
|
import { environment } from '../environments/environment';
|
||||||
import { RootStateService } from './store/root-state.service';
|
import { RootStateService } from './store/root-state.service';
|
||||||
@@ -22,7 +21,9 @@ export function storeInLocalStorage(reducer: ActionReducer<any>): ActionReducer<
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const metaReducers: MetaReducer<RootState>[] = !environment.production ? [storeFreeze, storeInLocalStorage] : [storeInLocalStorage];
|
export const metaReducers: MetaReducer<RootState>[] = !environment.production
|
||||||
|
? [storeInLocalStorage]
|
||||||
|
: [storeInLocalStorage];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
import { HttpInterceptorFn, provideHttpClient, withInterceptors } from '@angular/common/http';
|
import { HttpInterceptorFn, provideHttpClient, withInterceptors } from '@angular/common/http';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Config } from '@core/config';
|
import { Config } from '@core/config';
|
||||||
import { AvConfiguration } from '@swagger/availability';
|
import { AvConfiguration } from '@generated/swagger/availability-api';
|
||||||
import { CatConfiguration } from '@swagger/cat';
|
import { CatConfiguration } from '@generated/swagger/cat-search-api';
|
||||||
import { CheckoutConfiguration } from '@swagger/checkout';
|
import { CheckoutConfiguration } from '@generated/swagger/checkout-api';
|
||||||
import { CrmConfiguration } from '@swagger/crm';
|
import { CrmConfiguration } from '@generated/swagger/crm-api';
|
||||||
import { EisConfiguration } from '@swagger/eis';
|
import { EisConfiguration } from '@generated/swagger/eis-api';
|
||||||
import { IsaConfiguration } from '@swagger/isa';
|
import { IsaConfiguration } from '@generated/swagger/isa-api';
|
||||||
import { OmsConfiguration } from '@swagger/oms';
|
import { OmsConfiguration } from '@generated/swagger/oms-api';
|
||||||
import { PrintConfiguration } from '@swagger/print';
|
import { PrintConfiguration } from '@generated/swagger/print-api';
|
||||||
import { RemiConfiguration } from '@swagger/remi';
|
import { RemiConfiguration } from '@generated/swagger/inventory-api';
|
||||||
import { WwsConfiguration } from '@swagger/wws';
|
import { WwsConfiguration } from '@generated/swagger/wws-api';
|
||||||
|
|
||||||
export function createConfigurationFactory(name: string) {
|
export function createConfigurationFactory(name: string) {
|
||||||
return function (config: Config): { rootUrl: string } {
|
return function (config: Config): { rootUrl: string } {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { Renderer2 } from '@angular/core';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { SwUpdate } from '@angular/service-worker';
|
import { SwUpdate } from '@angular/service-worker';
|
||||||
import { NotificationsHub } from '@hub/notifications';
|
import { NotificationsHub } from '@hub/notifications';
|
||||||
import { UserStateService } from '@swagger/isa';
|
import { UserStateService } from '@generated/swagger/isa-api';
|
||||||
import { UiModalService } from '@ui/modal';
|
import { UiModalService } from '@ui/modal';
|
||||||
import { AuthService } from '@core/auth';
|
import { AuthService } from '@core/auth';
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { Config } from '@core/config';
|
|||||||
import { NotificationsHub } from '@hub/notifications';
|
import { NotificationsHub } from '@hub/notifications';
|
||||||
import packageInfo from 'packageJson';
|
import packageInfo from 'packageJson';
|
||||||
import { asapScheduler, interval, Subscription } from 'rxjs';
|
import { asapScheduler, interval, Subscription } from 'rxjs';
|
||||||
import { UserStateService } from '@swagger/isa';
|
import { UserStateService } from '@generated/swagger/isa-api';
|
||||||
import { IsaLogProvider } from './providers';
|
import { IsaLogProvider } from './providers';
|
||||||
import { EnvironmentService } from '@core/environment';
|
import { EnvironmentService } from '@core/environment';
|
||||||
import { AuthService, LoginStrategy } from '@core/auth';
|
import { AuthService, LoginStrategy } from '@core/auth';
|
||||||
@@ -33,6 +33,7 @@ import { animate, style, transition, trigger } from '@angular/animations';
|
|||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class AppComponent implements OnInit {
|
export class AppComponent implements OnInit {
|
||||||
readonly injector = inject(Injector);
|
readonly injector = inject(Injector);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||||
import { APP_INITIALIZER, ErrorHandler, Injector, LOCALE_ID, NgModule } from '@angular/core';
|
import { ErrorHandler, Injector, LOCALE_ID, NgModule, inject, provideAppInitializer } from '@angular/core';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import { PlatformModule } from '@angular/cdk/platform';
|
import { PlatformModule } from '@angular/cdk/platform';
|
||||||
@@ -41,6 +41,8 @@ import { NgIconsModule } from '@ng-icons/core';
|
|||||||
import { matClose, matWifi, matWifiOff } from '@ng-icons/material-icons/baseline';
|
import { matClose, matWifi, matWifiOff } from '@ng-icons/material-icons/baseline';
|
||||||
import { NetworkStatusService } from './services/network-status.service';
|
import { NetworkStatusService } from './services/network-status.service';
|
||||||
import { firstValueFrom } from 'rxjs';
|
import { firstValueFrom } from 'rxjs';
|
||||||
|
import { provideMatomo } from 'ngx-matomo-client';
|
||||||
|
import { withRouter, withRouteData } from 'ngx-matomo-client';
|
||||||
|
|
||||||
registerLocaleData(localeDe, localeDeExtra);
|
registerLocaleData(localeDe, localeDeExtra);
|
||||||
registerLocaleData(localeDe, 'de', localeDeExtra);
|
registerLocaleData(localeDe, 'de', localeDeExtra);
|
||||||
@@ -159,12 +161,10 @@ export function _notificationsHubOptionsFactory(config: Config, auth: AuthServic
|
|||||||
NgIconsModule.withIcons({ matWifiOff, matClose, matWifi }),
|
NgIconsModule.withIcons({ matWifiOff, matClose, matWifi }),
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
provideAppInitializer(() => {
|
||||||
provide: APP_INITIALIZER,
|
const initializerFn = _appInitializerFactory(inject(Config), inject(Injector));
|
||||||
useFactory: _appInitializerFactory,
|
return initializerFn();
|
||||||
multi: true,
|
}),
|
||||||
deps: [Config, Injector],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
provide: NOTIFICATIONS_HUB_OPTIONS,
|
provide: NOTIFICATIONS_HUB_OPTIONS,
|
||||||
useFactory: _notificationsHubOptionsFactory,
|
useFactory: _notificationsHubOptionsFactory,
|
||||||
@@ -186,6 +186,7 @@ export function _notificationsHubOptionsFactory(config: Config, auth: AuthServic
|
|||||||
},
|
},
|
||||||
{ provide: LOCALE_ID, useValue: 'de-DE' },
|
{ provide: LOCALE_ID, useValue: 'de-DE' },
|
||||||
provideHttpClient(withInterceptorsFromDi()),
|
provideHttpClient(withInterceptorsFromDi()),
|
||||||
|
provideMatomo({ trackerUrl: 'https://matomo.paragon-data.net', siteId: '1' }, withRouter(), withRouteData()),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|||||||
@@ -3,11 +3,14 @@ import { Router } from '@angular/router';
|
|||||||
import { ApplicationService } from '@core/application';
|
import { ApplicationService } from '@core/application';
|
||||||
import { ActionHandler } from '@core/command';
|
import { ActionHandler } from '@core/command';
|
||||||
import { Result } from '@domain/defs';
|
import { Result } from '@domain/defs';
|
||||||
import { CustomerInfoDTO } from '@swagger/crm';
|
import { CustomerInfoDTO } from '@generated/swagger/crm-api';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CreateCustomerCommand extends ActionHandler<Result<CustomerInfoDTO[]>> {
|
export class CreateCustomerCommand extends ActionHandler<Result<CustomerInfoDTO[]>> {
|
||||||
constructor(private _router: Router, private _application: ApplicationService) {
|
constructor(
|
||||||
|
private _router: Router,
|
||||||
|
private _application: ApplicationService,
|
||||||
|
) {
|
||||||
super('CREATE_CUSTOMER');
|
super('CREATE_CUSTOMER');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { ApplicationService } from '@core/application';
|
|||||||
import { ActionHandler } from '@core/command';
|
import { ActionHandler } from '@core/command';
|
||||||
import { Result } from '@domain/defs';
|
import { Result } from '@domain/defs';
|
||||||
import { encodeFormData, mapCustomerInfoDtoToCustomerCreateFormData } from '@page/customer';
|
import { encodeFormData, mapCustomerInfoDtoToCustomerCreateFormData } from '@page/customer';
|
||||||
import { CustomerInfoDTO } from '@swagger/crm';
|
import { CustomerInfoDTO } from '@generated/swagger/crm-api';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CreateKubiCustomerCommand extends ActionHandler<Result<CustomerInfoDTO[]>> {
|
export class CreateKubiCustomerCommand extends ActionHandler<Result<CustomerInfoDTO[]>> {
|
||||||
|
|||||||
@@ -3,12 +3,15 @@ import { ActionHandler } from '@core/command';
|
|||||||
import { Result } from '@domain/defs';
|
import { Result } from '@domain/defs';
|
||||||
import { DomainPrinterService } from '@domain/printer';
|
import { DomainPrinterService } from '@domain/printer';
|
||||||
import { PrintModalComponent, PrintModalData } from '@modal/printer';
|
import { PrintModalComponent, PrintModalData } from '@modal/printer';
|
||||||
import { CustomerInfoDTO } from '@swagger/crm';
|
import { CustomerInfoDTO } from '@generated/swagger/crm-api';
|
||||||
import { UiModalService } from '@ui/modal';
|
import { UiModalService } from '@ui/modal';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class PrintKubiCustomerCommand extends ActionHandler<Result<CustomerInfoDTO[]>> {
|
export class PrintKubiCustomerCommand extends ActionHandler<Result<CustomerInfoDTO[]>> {
|
||||||
constructor(private _uiModal: UiModalService, private _printerService: DomainPrinterService) {
|
constructor(
|
||||||
|
private _uiModal: UiModalService,
|
||||||
|
private _printerService: DomainPrinterService,
|
||||||
|
) {
|
||||||
super('PRINT_KUBI_AGB');
|
super('PRINT_KUBI_AGB');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
|||||||
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';
|
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';
|
||||||
import { AuthService } from '@core/auth';
|
import { AuthService } from '@core/auth';
|
||||||
import { ScanAdapterService } from '@adapter/scan';
|
import { ScanAdapterService } from '@adapter/scan';
|
||||||
import { AuthService as IsaAuthService } from '@swagger/isa';
|
import { AuthService as IsaAuthService } from '@generated/swagger/isa-api';
|
||||||
import { UiConfirmModalComponent, UiErrorModalComponent, UiModalResult, UiModalService } from '@ui/modal';
|
import { UiConfirmModalComponent, UiErrorModalComponent, UiModalResult, UiModalService } from '@ui/modal';
|
||||||
import { EnvironmentService } from '@core/environment';
|
import { EnvironmentService } from '@core/environment';
|
||||||
import { injectNetworkStatus$ } from '../services/network-status.service';
|
import { injectNetworkStatus$ } from '../services/network-status.service';
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|||||||
selector: 'app-main',
|
selector: 'app-main',
|
||||||
templateUrl: 'main.component.html',
|
templateUrl: 'main.component.html',
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class MainComponent {
|
export class MainComponent {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Platform, PlatformModule } from '@angular/cdk/platform';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { BranchSelectorComponent } from '@shared/components/branch-selector';
|
import { BranchSelectorComponent } from '@shared/components/branch-selector';
|
||||||
import { BranchDTO } from '@swagger/checkout';
|
import { BranchDTO } from '@generated/swagger/checkout-api';
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -10,7 +10,6 @@ import { BehaviorSubject } from 'rxjs';
|
|||||||
templateUrl: 'preview.component.html',
|
templateUrl: 'preview.component.html',
|
||||||
styleUrls: ['preview.component.css'],
|
styleUrls: ['preview.component.css'],
|
||||||
imports: [CommonModule, BranchSelectorComponent, PlatformModule],
|
imports: [CommonModule, BranchSelectorComponent, PlatformModule],
|
||||||
standalone: true,
|
|
||||||
})
|
})
|
||||||
export class PreviewComponent implements OnInit {
|
export class PreviewComponent implements OnInit {
|
||||||
selectedBranch$ = new BehaviorSubject<BranchDTO>({});
|
selectedBranch$ = new BehaviorSubject<BranchDTO>({});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable, Injector } from '@angular/core';
|
import { Injectable, Injector } from '@angular/core';
|
||||||
import { LogLevel, LogProvider } from '@core/logger';
|
import { LogLevel, LogProvider } from '@core/logger';
|
||||||
import { UserStateService } from '@swagger/isa';
|
import { UserStateService } from '@generated/swagger/isa-api';
|
||||||
import { environment } from '../../environments/environment';
|
import { environment } from '../../environments/environment';
|
||||||
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Logger, LogLevel } from '@core/logger';
|
import { Logger, LogLevel } from '@core/logger';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { UserStateService } from '@swagger/isa';
|
import { UserStateService } from '@generated/swagger/isa-api';
|
||||||
import { debounceTime, switchMap, takeUntil } from 'rxjs/operators';
|
import { debounceTime, switchMap, takeUntil } from 'rxjs/operators';
|
||||||
import { RootState } from './root.state';
|
import { RootState } from './root.state';
|
||||||
import packageInfo from 'packageJson';
|
import packageInfo from 'packageJson';
|
||||||
|
|||||||
@@ -7,9 +7,14 @@ import { AuthService } from '@core/auth';
|
|||||||
templateUrl: 'token-login.component.html',
|
templateUrl: 'token-login.component.html',
|
||||||
styleUrls: ['token-login.component.scss'],
|
styleUrls: ['token-login.component.scss'],
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class TokenLoginComponent implements OnInit {
|
export class TokenLoginComponent implements OnInit {
|
||||||
constructor(private _route: ActivatedRoute, private _authService: AuthService, private _router: Router) {}
|
constructor(
|
||||||
|
private _route: ActivatedRoute,
|
||||||
|
private _authService: AuthService,
|
||||||
|
private _router: Router,
|
||||||
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
if (this._route.snapshot.params.token && !this._authService.isAuthenticated()) {
|
if (this._route.snapshot.params.token && !this._authService.isAuthenticated()) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { BranchDTO } from '@swagger/checkout';
|
import { BranchDTO } from '@generated/swagger/checkout-api';
|
||||||
import { isBoolean, isNumber } from '@utils/common';
|
import { isBoolean, isNumber } from '@utils/common';
|
||||||
import { BehaviorSubject, Observable } from 'rxjs';
|
import { BehaviorSubject, Observable } from 'rxjs';
|
||||||
import { first, map, switchMap } from 'rxjs/operators';
|
import { first, map, switchMap } from 'rxjs/operators';
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { AuthService } from './auth.service';
|
|||||||
|
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '[ifRole],[ifRoleElse],[ifNotRole],[ifNotRoleElse]',
|
selector: '[ifRole],[ifRoleElse],[ifNotRole],[ifNotRoleElse]',
|
||||||
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class IfRoleDirective implements OnChanges {
|
export class IfRoleDirective implements OnChanges {
|
||||||
@Input()
|
@Input()
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { EnvironmentService } from '@core/environment';
|
|||||||
import { UiConfirmModalComponent, UiModalResult, UiModalService } from '@ui/modal';
|
import { UiConfirmModalComponent, UiModalResult, UiModalService } from '@ui/modal';
|
||||||
import { injectNetworkStatus$ } from '../../app/services';
|
import { injectNetworkStatus$ } from '../../app/services';
|
||||||
import { AuthService } from './auth.service';
|
import { AuthService } from './auth.service';
|
||||||
import { AuthService as IsaAuthService } from '@swagger/isa';
|
import { AuthService as IsaAuthService } from '@generated/swagger/isa-api';
|
||||||
import { firstValueFrom, lastValueFrom } from 'rxjs';
|
import { firstValueFrom, lastValueFrom } from 'rxjs';
|
||||||
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { ItemDTO } from '@swagger/cat';
|
import { ItemDTO } from '@generated/swagger/cat-search-api';
|
||||||
import {
|
import {
|
||||||
AvailabilityDTO,
|
AvailabilityDTO,
|
||||||
BranchDTO,
|
BranchDTO,
|
||||||
@@ -7,20 +7,20 @@ import {
|
|||||||
StoreCheckoutBranchService,
|
StoreCheckoutBranchService,
|
||||||
StoreCheckoutSupplierService,
|
StoreCheckoutSupplierService,
|
||||||
SupplierDTO,
|
SupplierDTO,
|
||||||
} from '@swagger/checkout';
|
} from '@generated/swagger/checkout-api';
|
||||||
import { BehaviorSubject, combineLatest, Observable, of } from 'rxjs';
|
import { BehaviorSubject, combineLatest, Observable, of } from 'rxjs';
|
||||||
import {
|
import {
|
||||||
AvailabilityRequestDTO,
|
AvailabilityRequestDTO,
|
||||||
AvailabilityService,
|
AvailabilityService,
|
||||||
AvailabilityDTO as SwaggerAvailabilityDTO,
|
AvailabilityDTO as SwaggerAvailabilityDTO,
|
||||||
AvailabilityType,
|
AvailabilityType,
|
||||||
} from '@swagger/availability';
|
} from '@generated/swagger/availability-api';
|
||||||
import { AvailabilityDTO as CatAvailabilityDTO } from '@swagger/cat';
|
import { AvailabilityDTO as CatAvailabilityDTO } from '@generated/swagger/cat-search-api';
|
||||||
import { map, shareReplay, switchMap, withLatestFrom, mergeMap, timeout, first } from 'rxjs/operators';
|
import { map, shareReplay, switchMap, withLatestFrom, mergeMap, timeout, first } from 'rxjs/operators';
|
||||||
import { isArray, memorize } from '@utils/common';
|
import { isArray, memorize } from '@utils/common';
|
||||||
import { LogisticianDTO, LogisticianService } from '@swagger/oms';
|
import { LogisticianDTO, LogisticianService } from '@generated/swagger/oms-api';
|
||||||
import { ResponseArgsOfIEnumerableOfStockInfoDTO, StockDTO, StockInfoDTO, StockService } from '@swagger/remi';
|
import { ResponseArgsOfIEnumerableOfStockInfoDTO, StockDTO, StockInfoDTO, StockService } from '@generated/swagger/inventory-api';
|
||||||
import { PriceDTO } from '@swagger/availability';
|
import { PriceDTO } from '@generated/swagger/availability-api';
|
||||||
import { AvailabilityByBranchDTO, ItemData, Ssc } from './defs';
|
import { AvailabilityByBranchDTO, ItemData, Ssc } from './defs';
|
||||||
import { Availability } from './defs/availability';
|
import { Availability } from './defs/availability';
|
||||||
import { isEmpty } from 'lodash';
|
import { isEmpty } from 'lodash';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { AvailabilityDTO } from '@swagger/checkout';
|
import { AvailabilityDTO } from '@generated/swagger/checkout-api';
|
||||||
|
|
||||||
export interface AvailabilityByBranchDTO extends AvailabilityDTO {
|
export interface AvailabilityByBranchDTO extends AvailabilityDTO {
|
||||||
availableQuantity?: number;
|
availableQuantity?: number;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { PriceDTO } from '@swagger/availability';
|
import { PriceDTO } from '@generated/swagger/availability-api';
|
||||||
|
|
||||||
export interface ItemData {
|
export interface ItemData {
|
||||||
ean: string;
|
ean: string;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { StockInfoDTO } from '@swagger/remi';
|
import { StockInfoDTO } from '@generated/swagger/inventory-api';
|
||||||
import { groupBy, isEqual, uniqWith } from 'lodash';
|
import { groupBy, isEqual, uniqWith } from 'lodash';
|
||||||
import { BehaviorSubject, combineLatest, Observable, Subject } from 'rxjs';
|
import { BehaviorSubject, combineLatest, Observable, Subject } from 'rxjs';
|
||||||
import { buffer, debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
import { buffer, debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OLAAvailabilityDTO } from '@swagger/checkout';
|
import { OLAAvailabilityDTO } from '@generated/swagger/checkout-api';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { CartItem } from './defs/cart-item.model';
|
import { CartItem } from './defs/cart-item.model';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { AvailabilityDTO, BranchDTO, ItemDTO, Price, ProductDTO } from '@swagger/checkout';
|
import { AvailabilityDTO, BranchDTO, ItemDTO, Price, ProductDTO } from '@generated/swagger/checkout-api';
|
||||||
import { BranchInfoDTO } from '@swagger/isa';
|
import { BranchInfoDTO } from '@generated/swagger/isa-api';
|
||||||
|
|
||||||
export interface CartItem {
|
export interface CartItem {
|
||||||
// cartId: number;
|
// cartId: number;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { ApplicationService } from '@core/application';
|
import { ApplicationService } from '@core/application';
|
||||||
import { AutocompleteTokenDTO, PromotionService, QueryTokenDTO, SearchService } from '@swagger/cat';
|
import { AutocompleteTokenDTO, PromotionService, QueryTokenDTO, SearchService } from '@generated/swagger/cat-search-api';
|
||||||
import { memorize } from '@utils/common';
|
import { memorize } from '@utils/common';
|
||||||
import { map, share, shareReplay } from 'rxjs/operators';
|
import { map, share, shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { DomainCatalogThumbnailService } from './thumbnail.service';
|
|||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'thumbnailUrl',
|
name: 'thumbnailUrl',
|
||||||
pure: false,
|
pure: false,
|
||||||
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class ThumbnailUrlPipe implements PipeTransform, OnDestroy {
|
export class ThumbnailUrlPipe implements PipeTransform, OnDestroy {
|
||||||
private input$ = new BehaviorSubject<{ width?: number; height?: number; ean?: string }>(undefined);
|
private input$ = new BehaviorSubject<{ width?: number; height?: number; ean?: string }>(undefined);
|
||||||
|
|||||||
@@ -30,14 +30,14 @@ import {
|
|||||||
KulturPassService,
|
KulturPassService,
|
||||||
ProductDTO,
|
ProductDTO,
|
||||||
KulturPassResult,
|
KulturPassResult,
|
||||||
} from '@swagger/checkout';
|
} from '@generated/swagger/checkout-api';
|
||||||
import {
|
import {
|
||||||
DisplayOrderDTO,
|
DisplayOrderDTO,
|
||||||
DisplayOrderItemDTO,
|
DisplayOrderItemDTO,
|
||||||
OrderCheckoutService,
|
OrderCheckoutService,
|
||||||
ReorderValues,
|
ReorderValues,
|
||||||
ResponseArgsOfValueTupleOfIEnumerableOfDisplayOrderDTOAndIEnumerableOfKeyValueDTOOfStringAndString,
|
ResponseArgsOfValueTupleOfIEnumerableOfDisplayOrderDTOAndIEnumerableOfKeyValueDTOOfStringAndString,
|
||||||
} from '@swagger/oms';
|
} from '@generated/swagger/oms-api';
|
||||||
import { isNullOrUndefined, memorize } from '@utils/common';
|
import { isNullOrUndefined, memorize } from '@utils/common';
|
||||||
import { combineLatest, Observable, of, concat, isObservable, throwError, interval as rxjsInterval } from 'rxjs';
|
import { combineLatest, Observable, of, concat, isObservable, throwError, interval as rxjsInterval } from 'rxjs';
|
||||||
import {
|
import {
|
||||||
@@ -60,7 +60,7 @@ import * as DomainCheckoutActions from './store/domain-checkout.actions';
|
|||||||
import { DomainAvailabilityService, ItemData } from '@domain/availability';
|
import { DomainAvailabilityService, ItemData } from '@domain/availability';
|
||||||
import { HttpErrorResponse } from '@angular/common/http';
|
import { HttpErrorResponse } from '@angular/common/http';
|
||||||
import { ApplicationService } from '@core/application';
|
import { ApplicationService } from '@core/application';
|
||||||
import { CustomerDTO } from '@swagger/crm';
|
import { CustomerDTO } from '@generated/swagger/crm-api';
|
||||||
import { Config } from '@core/config';
|
import { Config } from '@core/config';
|
||||||
import parseDuration from 'parse-duration';
|
import parseDuration from 'parse-duration';
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import {
|
|||||||
PayerDTO,
|
PayerDTO,
|
||||||
ShippingAddressDTO,
|
ShippingAddressDTO,
|
||||||
ShoppingCartDTO,
|
ShoppingCartDTO,
|
||||||
} from '@swagger/checkout';
|
} from '@generated/swagger/checkout-api';
|
||||||
import { CustomerDTO } from '@swagger/crm';
|
import { CustomerDTO } from '@generated/swagger/crm-api';
|
||||||
import { DisplayOrderDTO } from '@swagger/oms';
|
import { DisplayOrderDTO } from '@generated/swagger/oms-api';
|
||||||
|
|
||||||
export interface CheckoutEntity {
|
export interface CheckoutEntity {
|
||||||
processId: number;
|
processId: number;
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import {
|
|||||||
BuyerDTO,
|
BuyerDTO,
|
||||||
PayerDTO,
|
PayerDTO,
|
||||||
AvailabilityDTO,
|
AvailabilityDTO,
|
||||||
} from '@swagger/checkout';
|
} from '@generated/swagger/checkout-api';
|
||||||
import { CustomerDTO } from '@swagger/crm';
|
import { CustomerDTO } from '@generated/swagger/crm-api';
|
||||||
import { DisplayOrderDTO, DisplayOrderItemDTO } from '@swagger/oms';
|
import { DisplayOrderDTO, DisplayOrderItemDTO } from '@generated/swagger/oms-api';
|
||||||
|
|
||||||
const prefix = '[DOMAIN-CHECKOUT]';
|
const prefix = '[DOMAIN-CHECKOUT]';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Dictionary } from '@ngrx/entity';
|
import { Dictionary } from '@ngrx/entity';
|
||||||
import { createSelector } from '@ngrx/store';
|
import { createSelector } from '@ngrx/store';
|
||||||
import { CustomerDTO } from '@swagger/crm';
|
import { CustomerDTO } from '@generated/swagger/crm-api';
|
||||||
import { CheckoutEntity } from './defs/checkout.entity';
|
import { CheckoutEntity } from './defs/checkout.entity';
|
||||||
import { storeCheckoutAdapter, storeFeatureSelector } from './domain-checkout.state';
|
import { storeCheckoutAdapter, storeFeatureSelector } from './domain-checkout.state';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { createFeatureSelector } from '@ngrx/store';
|
import { createFeatureSelector } from '@ngrx/store';
|
||||||
import { createEntityAdapter, EntityState } from '@ngrx/entity';
|
import { createEntityAdapter, EntityState } from '@ngrx/entity';
|
||||||
import { CheckoutEntity } from './defs/checkout.entity';
|
import { CheckoutEntity } from './defs/checkout.entity';
|
||||||
import { DisplayOrderDTO } from '@swagger/oms';
|
import { DisplayOrderDTO } from '@generated/swagger/oms-api';
|
||||||
|
|
||||||
export interface DomainCheckoutState extends EntityState<CheckoutEntity> {
|
export interface DomainCheckoutState extends EntityState<CheckoutEntity> {
|
||||||
orders: DisplayOrderDTO[];
|
orders: DisplayOrderDTO[];
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// import { TestBed } from '@angular/core/testing';
|
// import { TestBed } from '@angular/core/testing';
|
||||||
// import { CrmCustomerService } from '@domain/crm';
|
// import { CrmCustomerService } from '@domain/crm';
|
||||||
// import { Result } from '@domain/defs';
|
// import { Result } from '@domain/defs';
|
||||||
// import { AutocompleteDTO, CustomerInfoDTO, CustomerService, InputDTO, InputOptionsDTO, PayerService } from '@swagger/crm';
|
// import { AutocompleteDTO, CustomerInfoDTO, CustomerService, InputDTO, InputOptionsDTO, PayerService } from '@generated/swagger/crm-api';
|
||||||
// import { of } from 'rxjs';
|
// import { of } from 'rxjs';
|
||||||
// import { take } from 'rxjs/operators';
|
// import { take } from 'rxjs/operators';
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
ResponseArgsOfIEnumerableOfBonusCardInfoDTO,
|
ResponseArgsOfIEnumerableOfBonusCardInfoDTO,
|
||||||
ShippingAddressDTO,
|
ShippingAddressDTO,
|
||||||
ShippingAddressService,
|
ShippingAddressService,
|
||||||
} from '@swagger/crm';
|
} from '@generated/swagger/crm-api';
|
||||||
import { isArray, memorize } from '@utils/common';
|
import { isArray, memorize } from '@utils/common';
|
||||||
import { PagedResult, Result } from '@domain/defs';
|
import { PagedResult, Result } from '@domain/defs';
|
||||||
import { Observable, of, ReplaySubject } from 'rxjs';
|
import { Observable, of, ReplaySubject } from 'rxjs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { AddressDTO } from '@swagger/crm';
|
import { AddressDTO } from '@generated/swagger/crm-api';
|
||||||
|
|
||||||
function hasRequiredProperties(address: AddressDTO) {
|
function hasRequiredProperties(address: AddressDTO) {
|
||||||
return !!address?.street && !!address?.city && !!address?.zipCode && !!address?.country;
|
return !!address?.street && !!address?.city && !!address?.zipCode && !!address?.country;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { AssignedPayerDTO, EntityDTOContainerOfPayerDTO } from '@swagger/crm';
|
import { AssignedPayerDTO, EntityDTOContainerOfPayerDTO } from '@generated/swagger/crm-api';
|
||||||
import { AssignedPayerHelper } from './assigned-payer.helper';
|
import { AssignedPayerHelper } from './assigned-payer.helper';
|
||||||
|
|
||||||
describe('AssignedPayerHelper', () => {
|
describe('AssignedPayerHelper', () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { AssignedPayerDTO } from '@swagger/crm';
|
import { AssignedPayerDTO } from '@generated/swagger/crm-api';
|
||||||
|
|
||||||
function getDefaultAssignedPayer(payers: AssignedPayerDTO[]): AssignedPayerDTO {
|
function getDefaultAssignedPayer(payers: AssignedPayerDTO[]): AssignedPayerDTO {
|
||||||
if (Array.isArray(payers)) {
|
if (Array.isArray(payers)) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ShippingAddressDTO } from '@swagger/crm';
|
import { ShippingAddressDTO } from '@generated/swagger/crm-api';
|
||||||
import { ShippingAddressHelper } from './shipping-address.helper';
|
import { ShippingAddressHelper } from './shipping-address.helper';
|
||||||
|
|
||||||
describe('ShippingAddressHelper', () => {
|
describe('ShippingAddressHelper', () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ShippingAddressDTO } from '@swagger/crm';
|
import { ShippingAddressDTO } from '@generated/swagger/crm-api';
|
||||||
|
|
||||||
function getDefaultShippingAddress(shippingAddresses: ShippingAddressDTO[]): ShippingAddressDTO {
|
function getDefaultShippingAddress(shippingAddresses: ShippingAddressDTO[]): ShippingAddressDTO {
|
||||||
if (Array.isArray(shippingAddresses)) {
|
if (Array.isArray(shippingAddresses)) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { DialogOfString } from '@swagger/crm';
|
import { DialogOfString } from '@generated/swagger/crm-api';
|
||||||
|
|
||||||
export interface Result<T> {
|
export interface Result<T> {
|
||||||
/** Ergebnis */
|
/** Ergebnis */
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { InfoService } from '@swagger/isa';
|
import { InfoService } from '@generated/swagger/isa-api';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DomainDashboardService {
|
export class DomainDashboardService {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FeedDTO } from '@swagger/isa';
|
import { FeedDTO } from '@generated/swagger/isa-api';
|
||||||
import { InfoFeedItem } from './info-feed-item';
|
import { InfoFeedItem } from './info-feed-item';
|
||||||
|
|
||||||
export interface InfoFeed extends FeedDTO {
|
export interface InfoFeed extends FeedDTO {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FeedDTO } from '@swagger/isa';
|
import { FeedDTO } from '@generated/swagger/isa-api';
|
||||||
import { KpiFeedItem } from './kpi-feed-item';
|
import { KpiFeedItem } from './kpi-feed-item';
|
||||||
|
|
||||||
export interface KpiFeed extends FeedDTO {
|
export interface KpiFeed extends FeedDTO {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ItemDTO } from '@swagger/cat';
|
import { ItemDTO } from '@generated/swagger/cat-search-api';
|
||||||
import { FeedDTO } from '@swagger/isa';
|
import { FeedDTO } from '@generated/swagger/isa-api';
|
||||||
|
|
||||||
export interface ProductsFeed extends FeedDTO {
|
export interface ProductsFeed extends FeedDTO {
|
||||||
type: 'products';
|
type: 'products';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ActionHandler } from '@core/command';
|
import { ActionHandler } from '@core/command';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
export abstract class ChangeOrderItemStatusBaseActionHandler extends ActionHandler<OrderItemsContext> {
|
export abstract class ChangeOrderItemStatusBaseActionHandler extends ActionHandler<OrderItemsContext> {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { ActionHandler } from '@core/command';
|
import { ActionHandler } from '@core/command';
|
||||||
import { Dictionary } from '@ngrx/entity';
|
import { Dictionary } from '@ngrx/entity';
|
||||||
import { OrderService } from '@swagger/oms';
|
import { OrderService } from '@generated/swagger/oms-api';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { ActionHandler } from '@core/command';
|
import { ActionHandler } from '@core/command';
|
||||||
import { OrderService } from '@swagger/oms';
|
import { OrderService } from '@generated/swagger/oms-api';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { HttpErrorResponse } from '@angular/common/http';
|
|||||||
import { inject, Injectable } from '@angular/core';
|
import { inject, Injectable } from '@angular/core';
|
||||||
import { ActionHandler, CommandService } from '@core/command';
|
import { ActionHandler, CommandService } from '@core/command';
|
||||||
import { ReorderModalComponent, ReorderResult } from '@modal/reorder';
|
import { ReorderModalComponent, ReorderResult } from '@modal/reorder';
|
||||||
import { AvailabilityDTO2, OrderItemListItemDTO } from '@swagger/oms';
|
import { AvailabilityDTO2, OrderItemListItemDTO } from '@generated/swagger/oms-api';
|
||||||
import { UiModalService } from '@ui/modal';
|
import { UiModalService } from '@ui/modal';
|
||||||
import { isResponseArgs } from '@utils/object';
|
import { isResponseArgs } from '@utils/object';
|
||||||
import { first } from 'rxjs/operators';
|
import { first } from 'rxjs/operators';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { OrderItemListItemDTO, ReceiptDTO, OrderDTO } from '@swagger/oms';
|
import { OrderItemListItemDTO, ReceiptDTO, OrderDTO } from '@generated/swagger/oms-api';
|
||||||
|
|
||||||
export interface OrderItemsContext {
|
export interface OrderItemsContext {
|
||||||
items: OrderItemListItemDTO[];
|
items: OrderItemListItemDTO[];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { ActionHandler } from '@core/command';
|
|||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
import { DomainPrinterService } from '@domain/printer';
|
import { DomainPrinterService } from '@domain/printer';
|
||||||
import { ConfirmModalData, UiConfirmModalComponent, UiErrorModalComponent, UiModalService } from '@ui/modal';
|
import { ConfirmModalData, UiConfirmModalComponent, UiErrorModalComponent, UiModalService } from '@ui/modal';
|
||||||
import { PriceQRCodeDTO } from '@swagger/print';
|
import { PriceQRCodeDTO } from '@generated/swagger/print-api';
|
||||||
import { PrintModalComponent } from '@modal/printer';
|
import { PrintModalComponent } from '@modal/printer';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { DomainPrinterService, Printer } from '@domain/printer';
|
|||||||
import { UiModalService } from '@ui/modal';
|
import { UiModalService } from '@ui/modal';
|
||||||
import { PrintModalComponent, PrintModalData } from '@modal/printer';
|
import { PrintModalComponent, PrintModalData } from '@modal/printer';
|
||||||
import { groupBy } from '@ui/common';
|
import { groupBy } from '@ui/common';
|
||||||
import { ReceiptDTO } from '@swagger/oms';
|
import { ReceiptDTO } from '@generated/swagger/oms-api';
|
||||||
import { EnvironmentService } from '@core/environment';
|
import { EnvironmentService } from '@core/environment';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import { inject, Injectable } from '@angular/core';
|
import { inject, Injectable } from '@angular/core';
|
||||||
import { ActionHandler } from '@core/command';
|
import { ActionHandler } from '@core/command';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
import { OMSPrintService } from '@swagger/print';
|
import { OMSPrintService } from '@generated/swagger/print-api';
|
||||||
import { UiModalService } from '@ui/modal';
|
import { UiModalService } from '@ui/modal';
|
||||||
import { PrintModalComponent, PrintModalData } from '@modal/printer';
|
import { PrintModalComponent, PrintModalData } from '@modal/printer';
|
||||||
import { Group, groupBy } from '@ui/common';
|
import { Group, groupBy } from '@ui/common';
|
||||||
import { DomainPrinterService, Printer } from '@domain/printer';
|
import { DomainPrinterService, Printer } from '@domain/printer';
|
||||||
import { firstValueFrom } from 'rxjs';
|
import { firstValueFrom } from 'rxjs';
|
||||||
import { EnvironmentService } from '@core/environment';
|
import { EnvironmentService } from '@core/environment';
|
||||||
import { ReceiptDTO, ResponseArgs } from '@swagger/oms';
|
import { ReceiptDTO, ResponseArgs } from '@generated/swagger/oms-api';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class PrintSmallamountinvoiceActionHandler extends ActionHandler<OrderItemsContext> {
|
export class PrintSmallamountinvoiceActionHandler extends ActionHandler<OrderItemsContext> {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { OrderItemsContext } from './order-items.context';
|
|||||||
import { UiModalService } from '@ui/modal';
|
import { UiModalService } from '@ui/modal';
|
||||||
import { ReorderModalComponent, ReorderResult } from '@modal/reorder';
|
import { ReorderModalComponent, ReorderResult } from '@modal/reorder';
|
||||||
import { DomainCheckoutService } from '@domain/checkout';
|
import { DomainCheckoutService } from '@domain/checkout';
|
||||||
import { AvailabilityDTO2, OrderItemListItemDTO } from '@swagger/oms';
|
import { AvailabilityDTO2, OrderItemListItemDTO } from '@generated/swagger/oms-api';
|
||||||
import { ToasterService } from '@shared/shell';
|
import { ToasterService } from '@shared/shell';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
|||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
import { ActionHandler, CommandService } from '@core/command';
|
import { ActionHandler, CommandService } from '@core/command';
|
||||||
import { KulturpassOrderModalService } from '@modal/kulturpass-order';
|
import { KulturpassOrderModalService } from '@modal/kulturpass-order';
|
||||||
import { DisplayOrderItemSubsetDTO, OrderItemListItemDTO, ReceiptDTO } from '@swagger/oms';
|
import { DisplayOrderItemSubsetDTO, OrderItemListItemDTO, ReceiptDTO } from '@generated/swagger/oms-api';
|
||||||
import { DomainReceiptService } from '../receipt.service';
|
import { DomainReceiptService } from '../receipt.service';
|
||||||
import { DomainGoodsService } from '../goods.service';
|
import { DomainGoodsService } from '../goods.service';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { DomainOmsService } from '../oms.service';
|
import { DomainOmsService } from '../oms.service';
|
||||||
import { OrderItemListItemDTO, StatusValues } from '@swagger/oms';
|
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
|
||||||
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
|
||||||
import { OrderItemsContext } from './order-items.context';
|
import { OrderItemsContext } from './order-items.context';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { AutocompleteTokenDTO, OrderService, QueryTokenDTO } from '@swagger/oms';
|
import { AutocompleteTokenDTO, OrderService, QueryTokenDTO } from '@generated/swagger/oms-api';
|
||||||
import { memorize } from '@utils/common';
|
import { memorize } from '@utils/common';
|
||||||
import { map, shareReplay } from 'rxjs/operators';
|
import { map, shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// import { createServiceFactory, SpectatorService } from '@ngneat/spectator';
|
// import { createServiceFactory, SpectatorService } from '@ngneat/spectator';
|
||||||
// import { AbholfachService, AutocompleteTokenDTO, QueryTokenDTO } from '@swagger/oms';
|
// import { AbholfachService, AutocompleteTokenDTO, QueryTokenDTO } from '@generated/swagger/oms-api';
|
||||||
// import { DateAdapter } from '@ui/common';
|
// import { DateAdapter } from '@ui/common';
|
||||||
// import { cold, hot } from 'jasmine-marbles';
|
// import { cold, hot } from 'jasmine-marbles';
|
||||||
// import { DomainGoodsService } from './goods.service';
|
// import { DomainGoodsService } from './goods.service';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { AbholfachService, AutocompleteTokenDTO, QueryTokenDTO } from '@swagger/oms';
|
import { AbholfachService, AutocompleteTokenDTO, QueryTokenDTO } from '@generated/swagger/oms-api';
|
||||||
import { DateAdapter } from '@ui/common';
|
import { DateAdapter } from '@ui/common';
|
||||||
import { memorize } from '@utils/common';
|
import { memorize } from '@utils/common';
|
||||||
import { shareReplay } from 'rxjs/operators';
|
import { shareReplay } from 'rxjs/operators';
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
ValueTupleOfLongAndReceiptTypeAndEntityDTOContainerOfReceiptDTO,
|
ValueTupleOfLongAndReceiptTypeAndEntityDTOContainerOfReceiptDTO,
|
||||||
ValueTupleOfOrderItemSubsetDTOAndOrderItemSubsetDTO,
|
ValueTupleOfOrderItemSubsetDTOAndOrderItemSubsetDTO,
|
||||||
VATService,
|
VATService,
|
||||||
} from '@swagger/oms';
|
} from '@generated/swagger/oms-api';
|
||||||
import { memorize } from '@utils/common';
|
import { memorize } from '@utils/common';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map, shareReplay } from 'rxjs/operators';
|
import { map, shareReplay } from 'rxjs/operators';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { ReceiptOrderItemSubsetReferenceValues, ReceiptService } from '@swagger/oms';
|
import { ReceiptOrderItemSubsetReferenceValues, ReceiptService } from '@generated/swagger/oms-api';
|
||||||
import { memorize } from '@utils/common';
|
import { memorize } from '@utils/common';
|
||||||
import { shareReplay } from 'rxjs/operators';
|
import { shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user