first draft
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -26,6 +26,7 @@ yarn-error.log
|
|||||||
!.vscode/tasks.json
|
!.vscode/tasks.json
|
||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
|
!.vscode/sessions.json
|
||||||
.history/*
|
.history/*
|
||||||
|
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
@@ -40,3 +41,7 @@ testem.log
|
|||||||
# System files
|
# System files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
|
.npmrc
|
||||||
|
.yarnrc.yml
|
||||||
|
/src/environments/environment.development.ts
|
||||||
19
.vscode/launch.json
vendored
19
.vscode/launch.json
vendored
@@ -1,20 +1,23 @@
|
|||||||
{
|
{
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "ng serve",
|
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "npm: start",
|
"name": "Debug (standalone client)",
|
||||||
"url": "http://localhost:4200/"
|
"url": "http://localhost:4201/",
|
||||||
|
"webRoot": "${workspaceFolder}",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"skipFiles": ["<node_internals>/**", "**/node_modules/**"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ng test",
|
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "npm: test",
|
"name": "Debug (plugin loaded inside Phoenix)",
|
||||||
"url": "http://localhost:9876/debug.html"
|
"url": "https://localhost:4200/admin/customElements",
|
||||||
|
"webRoot": "${workspaceFolder}",
|
||||||
|
"sourceMaps": true,
|
||||||
|
"skipFiles": ["<node_internals>/**", "**/node_modules/**"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
27
.vscode/sessions.json
vendored
Normal file
27
.vscode/sessions.json
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://cdn.statically.io/gh/nguyenngoclongdev/cdn/main/schema/v11/terminal-keeper.json",
|
||||||
|
"theme": "tribe",
|
||||||
|
"active": "default",
|
||||||
|
"activateOnStartup": false,
|
||||||
|
"keepExistingTerminals": true,
|
||||||
|
"sessions": {
|
||||||
|
"default": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "plugin",
|
||||||
|
"commands": [
|
||||||
|
"clear && yarn plugin"
|
||||||
|
],
|
||||||
|
"autoExecuteCommands": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "client",
|
||||||
|
"commands": [
|
||||||
|
"clear && yarn client"
|
||||||
|
],
|
||||||
|
"autoExecuteCommands": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
10
.vscode/settings.json
vendored
Normal file
10
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"cSpell.words": [
|
||||||
|
"BASEMODEL",
|
||||||
|
"emptymessage",
|
||||||
|
"iconfield",
|
||||||
|
"inputicon",
|
||||||
|
"inputtext",
|
||||||
|
"selectbutton"
|
||||||
|
]
|
||||||
|
}
|
||||||
58
README.md
58
README.md
@@ -1,59 +1,3 @@
|
|||||||
# PhxFrontendPluginDemo
|
# PhxFrontendPluginDemo
|
||||||
|
|
||||||
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.2.
|
TODO
|
||||||
|
|
||||||
## Development server
|
|
||||||
|
|
||||||
To start a local development server, run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ng serve
|
|
||||||
```
|
|
||||||
|
|
||||||
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
|
|
||||||
|
|
||||||
## Code scaffolding
|
|
||||||
|
|
||||||
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ng generate component component-name
|
|
||||||
```
|
|
||||||
|
|
||||||
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ng generate --help
|
|
||||||
```
|
|
||||||
|
|
||||||
## Building
|
|
||||||
|
|
||||||
To build the project run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ng build
|
|
||||||
```
|
|
||||||
|
|
||||||
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
|
|
||||||
|
|
||||||
## Running unit tests
|
|
||||||
|
|
||||||
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ng test
|
|
||||||
```
|
|
||||||
|
|
||||||
## Running end-to-end tests
|
|
||||||
|
|
||||||
For end-to-end (e2e) testing, run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ng e2e
|
|
||||||
```
|
|
||||||
|
|
||||||
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
||||||
|
|
||||||
## Additional Resources
|
|
||||||
|
|
||||||
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
||||||
16
angular.json
16
angular.json
@@ -41,13 +41,13 @@
|
|||||||
"budgets": [
|
"budgets": [
|
||||||
{
|
{
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
"maximumWarning": "500kB",
|
"maximumWarning": "3500kB",
|
||||||
"maximumError": "1MB"
|
"maximumError": "4MB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "anyComponentStyle",
|
"type": "anyComponentStyle",
|
||||||
"maximumWarning": "4kB",
|
"maximumWarning": "40kB",
|
||||||
"maximumError": "8kB"
|
"maximumError": "80kB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputHashing": "all"
|
"outputHashing": "all"
|
||||||
@@ -55,7 +55,13 @@
|
|||||||
"development": {
|
"development": {
|
||||||
"optimization": false,
|
"optimization": false,
|
||||||
"extractLicenses": false,
|
"extractLicenses": false,
|
||||||
"sourceMap": true
|
"sourceMap": true,
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.development.ts"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "production"
|
"defaultConfiguration": "production"
|
||||||
|
|||||||
30
codegen.ts
Normal file
30
codegen.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import type { CodegenConfig } from '@graphql-codegen/cli'
|
||||||
|
|
||||||
|
const sharedConfig = {
|
||||||
|
scalars: {
|
||||||
|
DateTime: 'Date'
|
||||||
|
},
|
||||||
|
immutableTypes: false,
|
||||||
|
} as const
|
||||||
|
|
||||||
|
const config: CodegenConfig = {
|
||||||
|
overwrite: true,
|
||||||
|
schema: "http://localhost:3000/admin-api/schema.gql",
|
||||||
|
documents: "./src/graphql/*.ts",
|
||||||
|
ignoreNoDocuments: true,
|
||||||
|
generates: {
|
||||||
|
'./src/app/schema-types.ts': {
|
||||||
|
plugins: ["typescript"],
|
||||||
|
config: sharedConfig,
|
||||||
|
},
|
||||||
|
'./src/app/generated.ts': {
|
||||||
|
plugins: ["typescript-operations", "typed-document-node"],
|
||||||
|
config: {
|
||||||
|
...sharedConfig,
|
||||||
|
importSchemaTypesFrom: './src/app/schema-types.ts',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default config
|
||||||
32
package.json
32
package.json
@@ -4,9 +4,13 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
"build": "ng build",
|
"build": "ng build --watch --output-hashing none --configuration production",
|
||||||
"watch": "ng build --watch --configuration development",
|
"test": "ng test",
|
||||||
"test": "ng test"
|
"build:dev": "ng build --output-hashing none --watch --configuration development",
|
||||||
|
"serve": "node ./scripts/serve-dist.mjs",
|
||||||
|
"codegen": "graphql-codegen",
|
||||||
|
"client": "ng serve --port 4201 --watch --configuration development",
|
||||||
|
"plugin": "concurrently \"yarn build\" \"yarn serve\""
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
@@ -22,13 +26,25 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@angular/animations": "20",
|
||||||
"@angular/common": "^20.3.0",
|
"@angular/common": "^20.3.0",
|
||||||
"@angular/compiler": "^20.3.0",
|
"@angular/compiler": "^20.3.0",
|
||||||
"@angular/core": "^20.3.0",
|
"@angular/core": "^20.3.0",
|
||||||
|
"@angular/elements": "20",
|
||||||
"@angular/forms": "^20.3.0",
|
"@angular/forms": "^20.3.0",
|
||||||
"@angular/platform-browser": "^20.3.0",
|
"@angular/platform-browser": "^20.3.0",
|
||||||
"@angular/router": "^20.3.0",
|
"@angular/router": "^20.3.0",
|
||||||
|
"@apollo/client": "^4.0.1",
|
||||||
|
"@phx/shared": "^0.1.3",
|
||||||
|
"@phx/shared-ui": "^0.1.3-b",
|
||||||
|
"@primeng/themes": "20",
|
||||||
|
"apollo-angular": "14.0.0",
|
||||||
|
"graphql": "^16",
|
||||||
|
"postcss": "^8.5.15",
|
||||||
|
"primeng": "20",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.0",
|
||||||
|
"tailwindcss": "3",
|
||||||
|
"tailwindcss-primeui": "^0.6.1",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"zone.js": "~0.15.0"
|
"zone.js": "~0.15.0"
|
||||||
},
|
},
|
||||||
@@ -36,13 +52,19 @@
|
|||||||
"@angular/build": "^20.3.2",
|
"@angular/build": "^20.3.2",
|
||||||
"@angular/cli": "^20.3.2",
|
"@angular/cli": "^20.3.2",
|
||||||
"@angular/compiler-cli": "^20.3.0",
|
"@angular/compiler-cli": "^20.3.0",
|
||||||
|
"@graphql-codegen/cli": "^7.1.2",
|
||||||
|
"@graphql-codegen/typed-document-node": "^7.0.3",
|
||||||
|
"@graphql-codegen/typescript": "^6.0.2",
|
||||||
|
"@graphql-codegen/typescript-operations": "^6.0.3",
|
||||||
"@types/jasmine": "~5.1.0",
|
"@types/jasmine": "~5.1.0",
|
||||||
|
"concurrently": "^10.0.3",
|
||||||
"jasmine-core": "~5.9.0",
|
"jasmine-core": "~5.9.0",
|
||||||
"karma": "~6.4.0",
|
"karma": "~6.4.0",
|
||||||
"karma-chrome-launcher": "~3.2.0",
|
"karma-chrome-launcher": "~3.2.0",
|
||||||
"karma-coverage": "~2.2.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-jasmine": "~5.1.0",
|
"karma-jasmine": "~5.1.0",
|
||||||
"karma-jasmine-html-reporter": "~2.1.0",
|
"karma-jasmine-html-reporter": "~2.1.0",
|
||||||
"typescript": "~5.9.2"
|
"serve": "^14.2.6",
|
||||||
|
"typescript": "5.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
public/manifest.json
Normal file
8
public/manifest.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"path": "http://localhost:3223/main.js",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"tagName": "frontend-plugin-demo"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
scripts/serve-dist.mjs
Normal file
20
scripts/serve-dist.mjs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { spawn } from 'node:child_process';
|
||||||
|
import { dirname, join } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
|
const root = join(__dirname, '..');
|
||||||
|
const port = process.env.PORT ?? '3223';
|
||||||
|
|
||||||
|
// Serve from project root so root `serve.json` applies (no-store for *.js).
|
||||||
|
// Passing the dist path as the CLI directory makes `serve` look for serve.json
|
||||||
|
// inside dist, which is wiped on build — and default caching can leave a stale
|
||||||
|
// main.js pointing at old hashed chunk names after `yarn dev` rebuilds.
|
||||||
|
const serveBin = join(root, 'node_modules', '.bin', 'serve');
|
||||||
|
const child = spawn(serveBin, ['-l', port, '--cors', '--no-etag'], {
|
||||||
|
stdio: 'inherit',
|
||||||
|
shell: true,
|
||||||
|
cwd: root,
|
||||||
|
});
|
||||||
|
|
||||||
|
child.on('exit', (code) => process.exit(code ?? 0));
|
||||||
15
serve.json
Normal file
15
serve.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"public": "dist/phx-frontend-plugin-demo/browser",
|
||||||
|
"headers": [
|
||||||
|
{
|
||||||
|
"source": "**/*.{js,mjs}",
|
||||||
|
"headers": [
|
||||||
|
{
|
||||||
|
"key": "Cache-Control",
|
||||||
|
"value": "no-store, no-cache, must-revalidate"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
111
src/app/apollo.provider.ts
Normal file
111
src/app/apollo.provider.ts
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
import { Provider } from '@angular/core';
|
||||||
|
import { ApolloClient, ApolloLink, InMemoryCache, split } from '@apollo/client/core';
|
||||||
|
import { SetContextLink } from '@apollo/client/link/context';
|
||||||
|
import { GraphQLWsLink } from "@apollo/client/link/subscriptions";
|
||||||
|
import { getMainDefinition } from "@apollo/client/utilities";
|
||||||
|
import { Apollo, APOLLO_OPTIONS } from 'apollo-angular';
|
||||||
|
import { HttpLink } from 'apollo-angular/http';
|
||||||
|
import { createClient } from "graphql-ws";
|
||||||
|
import { map } from 'rxjs';
|
||||||
|
import { environment } from '../environments/environment';
|
||||||
|
|
||||||
|
const authTokenHeaderName = 'phoenix-auth-token';
|
||||||
|
|
||||||
|
export function apolloOptionsFactory(httpLink: HttpLink): ApolloClient.Options | undefined {
|
||||||
|
if (!environment.apiUrl || !environment.wsUrl) {
|
||||||
|
console.error('API URL or WS URL is not set');
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
const http = httpLink.create({ uri: environment.apiUrl });
|
||||||
|
|
||||||
|
const authLink = new SetContextLink(async (prevContext, _operation) => {
|
||||||
|
const token = environment.apiKey??localStorage.getItem('api-key');
|
||||||
|
if (!token)
|
||||||
|
return prevContext;
|
||||||
|
return {
|
||||||
|
...prevContext,
|
||||||
|
headers: {
|
||||||
|
...prevContext.headers,
|
||||||
|
authorization: `Bearer ${token}`,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
const wsLink = new GraphQLWsLink(createClient({
|
||||||
|
url: environment.wsUrl,
|
||||||
|
connectionParams: () => {
|
||||||
|
const token = environment.apiKey??localStorage.getItem('api-key');
|
||||||
|
return {
|
||||||
|
context: {
|
||||||
|
authorization: token ? `Bearer ${token}` : '',
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
|
const splitLink = split(
|
||||||
|
({ query }) => {
|
||||||
|
const definition = getMainDefinition(query);
|
||||||
|
return (
|
||||||
|
definition.kind === 'OperationDefinition' &&
|
||||||
|
definition.operation === 'subscription'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
wsLink,
|
||||||
|
authLink.concat(http),
|
||||||
|
);
|
||||||
|
|
||||||
|
const afterwareLink = new ApolloLink((operation, forward) => {
|
||||||
|
return forward(operation).pipe(map((response: any) => {
|
||||||
|
const context = operation.getContext();
|
||||||
|
const authHeader = context['response']?.headers.get(authTokenHeaderName);
|
||||||
|
|
||||||
|
if (authHeader?.length) {
|
||||||
|
environment.apiKey = authHeader;
|
||||||
|
localStorage.setItem('api-key', authHeader);
|
||||||
|
}
|
||||||
|
return response;
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
|
// this is how we combine middlewares in Apollo client
|
||||||
|
const link = afterwareLink.concat(splitLink);
|
||||||
|
|
||||||
|
return {
|
||||||
|
link: link,
|
||||||
|
cache: new InMemoryCache(
|
||||||
|
//{ resultCaching: false, }
|
||||||
|
),
|
||||||
|
defaultOptions: {
|
||||||
|
watchQuery: {
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
|
},
|
||||||
|
query: {
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
|
},
|
||||||
|
mutate: {
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const apolloProvider = (): Provider[] => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
provide: 'API_URI',
|
||||||
|
useValue: environment.apiUrl,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provide: 'WS_URI',
|
||||||
|
useValue: environment.wsUrl,
|
||||||
|
},
|
||||||
|
Apollo,
|
||||||
|
{
|
||||||
|
provide: APOLLO_OPTIONS,
|
||||||
|
useFactory: apolloOptionsFactory,
|
||||||
|
deps: [HttpLink, 'API_URI', 'WS_URI'],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,12 +1,25 @@
|
|||||||
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
|
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection, inject } from '@angular/core';
|
||||||
import { provideRouter } from '@angular/router';
|
import { provideRouter } from '@angular/router';
|
||||||
|
|
||||||
import { routes } from './app.routes';
|
import { routes } from './app.routes';
|
||||||
|
import { provideHttpClient } from '@angular/common/http';
|
||||||
|
import { providePhoenixPluginWithPrimeNG } from '@phx/shared-ui';
|
||||||
|
import { environment } from '../environments/environment';
|
||||||
|
import { apolloProvider } from './apollo.provider';
|
||||||
|
import { AuthGuard } from './auth-guard';
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
providers: [
|
providers: [
|
||||||
provideBrowserGlobalErrorListeners(),
|
provideBrowserGlobalErrorListeners(),
|
||||||
provideZoneChangeDetection({ eventCoalescing: true }),
|
provideZoneChangeDetection({ eventCoalescing: true }),
|
||||||
provideRouter(routes)
|
...providePhoenixPluginWithPrimeNG({ stripTrailingSegments: routes.map(route => route.path).filter(Boolean) as string[] }),
|
||||||
|
provideRouter(routes),
|
||||||
|
provideHttpClient(),
|
||||||
|
...(environment.production ? [] : [
|
||||||
|
...apolloProvider(),
|
||||||
|
{
|
||||||
|
provide: AuthGuard,
|
||||||
|
useFactory: () => new AuthGuard(),
|
||||||
|
},
|
||||||
|
])
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
342
src/app/app.html
342
src/app/app.html
@@ -1,342 +0,0 @@
|
|||||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * Delete the template below * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * to get started with your project! * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
||||||
|
|
||||||
<style>
|
|
||||||
:host {
|
|
||||||
--bright-blue: oklch(51.01% 0.274 263.83);
|
|
||||||
--electric-violet: oklch(53.18% 0.28 296.97);
|
|
||||||
--french-violet: oklch(47.66% 0.246 305.88);
|
|
||||||
--vivid-pink: oklch(69.02% 0.277 332.77);
|
|
||||||
--hot-red: oklch(61.42% 0.238 15.34);
|
|
||||||
--orange-red: oklch(63.32% 0.24 31.68);
|
|
||||||
|
|
||||||
--gray-900: oklch(19.37% 0.006 300.98);
|
|
||||||
--gray-700: oklch(36.98% 0.014 302.71);
|
|
||||||
--gray-400: oklch(70.9% 0.015 304.04);
|
|
||||||
|
|
||||||
--red-to-pink-to-purple-vertical-gradient: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
var(--orange-red) 0%,
|
|
||||||
var(--vivid-pink) 50%,
|
|
||||||
var(--electric-violet) 100%
|
|
||||||
);
|
|
||||||
|
|
||||||
--red-to-pink-to-purple-horizontal-gradient: linear-gradient(
|
|
||||||
90deg,
|
|
||||||
var(--orange-red) 0%,
|
|
||||||
var(--vivid-pink) 50%,
|
|
||||||
var(--electric-violet) 100%
|
|
||||||
);
|
|
||||||
|
|
||||||
--pill-accent: var(--bright-blue);
|
|
||||||
|
|
||||||
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
||||||
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
||||||
"Segoe UI Symbol";
|
|
||||||
box-sizing: border-box;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 3.125rem;
|
|
||||||
color: var(--gray-900);
|
|
||||||
font-weight: 500;
|
|
||||||
line-height: 100%;
|
|
||||||
letter-spacing: -0.125rem;
|
|
||||||
margin: 0;
|
|
||||||
font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
||||||
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
||||||
"Segoe UI Symbol";
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0;
|
|
||||||
color: var(--gray-700);
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
width: 100%;
|
|
||||||
min-height: 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
padding: 1rem;
|
|
||||||
box-sizing: inherit;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.angular-logo {
|
|
||||||
max-width: 9.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 700px;
|
|
||||||
margin-bottom: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content h1 {
|
|
||||||
margin-top: 1.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content p {
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.divider {
|
|
||||||
width: 1px;
|
|
||||||
background: var(--red-to-pink-to-purple-vertical-gradient);
|
|
||||||
margin-inline: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pill-group {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: start;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pill {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
--pill-accent: var(--bright-blue);
|
|
||||||
background: color-mix(in srgb, var(--pill-accent) 5%, transparent);
|
|
||||||
color: var(--pill-accent);
|
|
||||||
padding-inline: 0.75rem;
|
|
||||||
padding-block: 0.375rem;
|
|
||||||
border-radius: 2.75rem;
|
|
||||||
border: 0;
|
|
||||||
transition: background 0.3s ease;
|
|
||||||
font-family: var(--inter-font);
|
|
||||||
font-size: 0.875rem;
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 500;
|
|
||||||
line-height: 1.4rem;
|
|
||||||
letter-spacing: -0.00875rem;
|
|
||||||
text-decoration: none;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pill:hover {
|
|
||||||
background: color-mix(in srgb, var(--pill-accent) 15%, transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.pill-group .pill:nth-child(6n + 1) {
|
|
||||||
--pill-accent: var(--bright-blue);
|
|
||||||
}
|
|
||||||
.pill-group .pill:nth-child(6n + 2) {
|
|
||||||
--pill-accent: var(--electric-violet);
|
|
||||||
}
|
|
||||||
.pill-group .pill:nth-child(6n + 3) {
|
|
||||||
--pill-accent: var(--french-violet);
|
|
||||||
}
|
|
||||||
|
|
||||||
.pill-group .pill:nth-child(6n + 4),
|
|
||||||
.pill-group .pill:nth-child(6n + 5),
|
|
||||||
.pill-group .pill:nth-child(6n + 6) {
|
|
||||||
--pill-accent: var(--hot-red);
|
|
||||||
}
|
|
||||||
|
|
||||||
.pill-group svg {
|
|
||||||
margin-inline-start: 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-links {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.73rem;
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-links path {
|
|
||||||
transition: fill 0.3s ease;
|
|
||||||
fill: var(--gray-400);
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-links a:hover svg path {
|
|
||||||
fill: var(--gray-900);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 650px) {
|
|
||||||
.content {
|
|
||||||
flex-direction: column;
|
|
||||||
width: max-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
.divider {
|
|
||||||
height: 1px;
|
|
||||||
width: 100%;
|
|
||||||
background: var(--red-to-pink-to-purple-horizontal-gradient);
|
|
||||||
margin-block: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<main class="main">
|
|
||||||
<div class="content">
|
|
||||||
<div class="left-side">
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 982 239"
|
|
||||||
fill="none"
|
|
||||||
class="angular-logo"
|
|
||||||
>
|
|
||||||
<g clip-path="url(#a)">
|
|
||||||
<path
|
|
||||||
fill="url(#b)"
|
|
||||||
d="M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5.318 6.137 3.518 10.964 8.673 14.319 15.382 3.437 6.71 5.074 14.81 4.992 24.383v76.175h-28.23v-71.92c0-8.019-2.046-14.237-6.219-18.819-4.173-4.5-9.819-6.791-17.102-6.791-4.91 0-9.328 1.063-13.174 3.272-3.846 2.128-6.792 5.237-9.001 9.328-2.046 4.009-3.191 8.918-3.191 14.728ZM589.233 239c-10.147 0-18.82-1.391-26.103-4.091-7.282-2.7-13.092-6.382-17.511-10.964-4.418-4.582-7.528-9.655-9.164-15.219l25.448-6.136c1.145 2.372 2.782 4.663 4.991 6.954 2.209 2.291 5.155 4.255 8.837 5.81 3.683 1.554 8.428 2.291 14.074 2.291 8.019 0 14.647-1.964 19.884-5.81 5.237-3.845 7.856-10.227 7.856-19.064v-22.665h-1.391c-1.473 2.946-3.601 5.892-6.383 9.001-2.782 3.109-6.464 5.645-10.965 7.691-4.582 2.046-10.228 3.109-17.101 3.109-9.165 0-17.511-2.209-25.039-6.545-7.446-4.337-13.42-10.883-17.757-19.474-4.418-8.673-6.628-19.473-6.628-32.565 0-13.091 2.21-24.301 6.628-33.383 4.419-9.082 10.311-15.955 17.839-20.7 7.528-4.746 15.874-7.037 25.039-7.037 7.037 0 12.846 1.145 17.347 3.518 4.582 2.373 8.182 5.236 10.883 8.51 2.7 3.272 4.746 6.382 6.137 9.327h1.554v-19.8h27.821v121.749c0 10.228-2.454 18.737-7.364 25.447-4.91 6.709-11.538 11.7-20.048 15.055-8.509 3.355-18.165 4.991-28.884 4.991Zm.245-71.266c5.974 0 11.047-1.473 15.302-4.337 4.173-2.945 7.446-7.118 9.573-12.519 2.21-5.482 3.274-12.027 3.274-19.637 0-7.609-1.064-14.155-3.274-19.8-2.127-5.646-5.318-10.064-9.491-13.255-4.174-3.11-9.329-4.746-15.384-4.746s-11.537 1.636-15.792 4.91c-4.173 3.272-7.365 7.772-9.492 13.418-2.128 5.727-3.191 12.191-3.191 19.392 0 7.2 1.063 13.745 3.273 19.228 2.127 5.482 5.318 9.736 9.573 12.764 4.174 3.027 9.41 4.582 15.629 4.582Zm141.56-26.51V71.839h28.23v119.786h-27.412v-21.273h-1.227c-2.7 6.709-7.119 12.191-13.338 16.446-6.137 4.255-13.747 6.382-22.748 6.382-7.855 0-14.81-1.718-20.783-5.237-5.974-3.518-10.72-8.591-14.075-15.382-3.355-6.709-5.073-14.891-5.073-24.464V71.839h28.312v71.921c0 7.609 2.046 13.664 6.219 18.083 4.173 4.5 9.655 6.709 16.365 6.709 4.173 0 8.183-.982 12.111-3.028 3.927-2.045 7.118-5.072 9.655-9.082 2.537-4.091 3.764-9.164 3.764-15.218Zm65.707-109.395v159.796h-28.23V31.828h28.23Zm44.841 162.169c-7.61 0-14.402-1.391-20.457-4.091-6.055-2.7-10.883-6.791-14.32-12.109-3.518-5.319-5.237-11.946-5.237-19.801 0-6.791 1.228-12.355 3.765-16.773 2.536-4.419 5.891-7.937 10.228-10.637 4.337-2.618 9.164-4.664 14.647-6.055 5.4-1.391 11.046-2.373 16.856-3.027 7.037-.737 12.683-1.391 17.102-1.964 4.337-.573 7.528-1.555 9.574-2.782 1.963-1.309 3.027-3.273 3.027-5.973v-.491c0-5.891-1.718-10.391-5.237-13.664-3.518-3.191-8.51-4.828-15.056-4.828-6.955 0-12.356 1.473-16.447 4.5-4.009 3.028-6.71 6.546-8.183 10.719l-26.348-3.764c2.046-7.282 5.483-13.336 10.31-18.328 4.746-4.909 10.638-8.59 17.511-11.045 6.955-2.455 14.565-3.682 22.912-3.682 5.809 0 11.537.654 17.265 2.045s10.965 3.6 15.711 6.71c4.746 3.109 8.51 7.282 11.455 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2.373 1.391-4.5 2.046-2.128.654-4.419 1.145-7.037 1.636-2.619.491-5.155.9-7.692 1.227-2.537.328-4.746.655-6.628.901-4.173.572-8.019 1.472-11.292 2.781-3.355 1.31-5.973 3.11-7.855 5.401-1.964 2.291-2.864 5.318-2.864 8.918 0 5.237 1.882 9.164 5.728 11.782 3.682 2.782 8.51 4.091 14.401 4.091Zm64.643 18.328V71.839h27.412v19.965h1.227c2.21-6.955 5.974-12.274 11.292-16.038 5.319-3.763 11.456-5.645 18.329-5.645 1.555 0 3.355.082 5.237.163 1.964.164 3.601.328 4.91.573v25.938c-1.227-.41-3.109-.819-5.646-1.146a58.814 58.814 0 0 0-7.446-.49c-5.155 0-9.738 1.145-13.829 3.354-4.091 2.209-7.282 5.236-9.655 9.164-2.373 3.927-3.519 8.427-3.519 13.5v70.448h-28.312ZM222.077 39.192l-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
fill="url(#c)"
|
|
||||||
d="M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5.318 6.137 3.518 10.964 8.673 14.319 15.382 3.437 6.71 5.074 14.81 4.992 24.383v76.175h-28.23v-71.92c0-8.019-2.046-14.237-6.219-18.819-4.173-4.5-9.819-6.791-17.102-6.791-4.91 0-9.328 1.063-13.174 3.272-3.846 2.128-6.792 5.237-9.001 9.328-2.046 4.009-3.191 8.918-3.191 14.728ZM589.233 239c-10.147 0-18.82-1.391-26.103-4.091-7.282-2.7-13.092-6.382-17.511-10.964-4.418-4.582-7.528-9.655-9.164-15.219l25.448-6.136c1.145 2.372 2.782 4.663 4.991 6.954 2.209 2.291 5.155 4.255 8.837 5.81 3.683 1.554 8.428 2.291 14.074 2.291 8.019 0 14.647-1.964 19.884-5.81 5.237-3.845 7.856-10.227 7.856-19.064v-22.665h-1.391c-1.473 2.946-3.601 5.892-6.383 9.001-2.782 3.109-6.464 5.645-10.965 7.691-4.582 2.046-10.228 3.109-17.101 3.109-9.165 0-17.511-2.209-25.039-6.545-7.446-4.337-13.42-10.883-17.757-19.474-4.418-8.673-6.628-19.473-6.628-32.565 0-13.091 2.21-24.301 6.628-33.383 4.419-9.082 10.311-15.955 17.839-20.7 7.528-4.746 15.874-7.037 25.039-7.037 7.037 0 12.846 1.145 17.347 3.518 4.582 2.373 8.182 5.236 10.883 8.51 2.7 3.272 4.746 6.382 6.137 9.327h1.554v-19.8h27.821v121.749c0 10.228-2.454 18.737-7.364 25.447-4.91 6.709-11.538 11.7-20.048 15.055-8.509 3.355-18.165 4.991-28.884 4.991Zm.245-71.266c5.974 0 11.047-1.473 15.302-4.337 4.173-2.945 7.446-7.118 9.573-12.519 2.21-5.482 3.274-12.027 3.274-19.637 0-7.609-1.064-14.155-3.274-19.8-2.127-5.646-5.318-10.064-9.491-13.255-4.174-3.11-9.329-4.746-15.384-4.746s-11.537 1.636-15.792 4.91c-4.173 3.272-7.365 7.772-9.492 13.418-2.128 5.727-3.191 12.191-3.191 19.392 0 7.2 1.063 13.745 3.273 19.228 2.127 5.482 5.318 9.736 9.573 12.764 4.174 3.027 9.41 4.582 15.629 4.582Zm141.56-26.51V71.839h28.23v119.786h-27.412v-21.273h-1.227c-2.7 6.709-7.119 12.191-13.338 16.446-6.137 4.255-13.747 6.382-22.748 6.382-7.855 0-14.81-1.718-20.783-5.237-5.974-3.518-10.72-8.591-14.075-15.382-3.355-6.709-5.073-14.891-5.073-24.464V71.839h28.312v71.921c0 7.609 2.046 13.664 6.219 18.083 4.173 4.5 9.655 6.709 16.365 6.709 4.173 0 8.183-.982 12.111-3.028 3.927-2.045 7.118-5.072 9.655-9.082 2.537-4.091 3.764-9.164 3.764-15.218Zm65.707-109.395v159.796h-28.23V31.828h28.23Zm44.841 162.169c-7.61 0-14.402-1.391-20.457-4.091-6.055-2.7-10.883-6.791-14.32-12.109-3.518-5.319-5.237-11.946-5.237-19.801 0-6.791 1.228-12.355 3.765-16.773 2.536-4.419 5.891-7.937 10.228-10.637 4.337-2.618 9.164-4.664 14.647-6.055 5.4-1.391 11.046-2.373 16.856-3.027 7.037-.737 12.683-1.391 17.102-1.964 4.337-.573 7.528-1.555 9.574-2.782 1.963-1.309 3.027-3.273 3.027-5.973v-.491c0-5.891-1.718-10.391-5.237-13.664-3.518-3.191-8.51-4.828-15.056-4.828-6.955 0-12.356 1.473-16.447 4.5-4.009 3.028-6.71 6.546-8.183 10.719l-26.348-3.764c2.046-7.282 5.483-13.336 10.31-18.328 4.746-4.909 10.638-8.59 17.511-11.045 6.955-2.455 14.565-3.682 22.912-3.682 5.809 0 11.537.654 17.265 2.045s10.965 3.6 15.711 6.71c4.746 3.109 8.51 7.282 11.455 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2.373 1.391-4.5 2.046-2.128.654-4.419 1.145-7.037 1.636-2.619.491-5.155.9-7.692 1.227-2.537.328-4.746.655-6.628.901-4.173.572-8.019 1.472-11.292 2.781-3.355 1.31-5.973 3.11-7.855 5.401-1.964 2.291-2.864 5.318-2.864 8.918 0 5.237 1.882 9.164 5.728 11.782 3.682 2.782 8.51 4.091 14.401 4.091Zm64.643 18.328V71.839h27.412v19.965h1.227c2.21-6.955 5.974-12.274 11.292-16.038 5.319-3.763 11.456-5.645 18.329-5.645 1.555 0 3.355.082 5.237.163 1.964.164 3.601.328 4.91.573v25.938c-1.227-.41-3.109-.819-5.646-1.146a58.814 58.814 0 0 0-7.446-.49c-5.155 0-9.738 1.145-13.829 3.354-4.091 2.209-7.282 5.236-9.655 9.164-2.373 3.927-3.519 8.427-3.519 13.5v70.448h-28.312ZM222.077 39.192l-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z"
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<radialGradient
|
|
||||||
id="c"
|
|
||||||
cx="0"
|
|
||||||
cy="0"
|
|
||||||
r="1"
|
|
||||||
gradientTransform="rotate(118.122 171.182 60.81) scale(205.794)"
|
|
||||||
gradientUnits="userSpaceOnUse"
|
|
||||||
>
|
|
||||||
<stop stop-color="#FF41F8" />
|
|
||||||
<stop offset=".707" stop-color="#FF41F8" stop-opacity=".5" />
|
|
||||||
<stop offset="1" stop-color="#FF41F8" stop-opacity="0" />
|
|
||||||
</radialGradient>
|
|
||||||
<linearGradient
|
|
||||||
id="b"
|
|
||||||
x1="0"
|
|
||||||
x2="982"
|
|
||||||
y1="192"
|
|
||||||
y2="192"
|
|
||||||
gradientUnits="userSpaceOnUse"
|
|
||||||
>
|
|
||||||
<stop stop-color="#F0060B" />
|
|
||||||
<stop offset="0" stop-color="#F0070C" />
|
|
||||||
<stop offset=".526" stop-color="#CC26D5" />
|
|
||||||
<stop offset="1" stop-color="#7702FF" />
|
|
||||||
</linearGradient>
|
|
||||||
<clipPath id="a"><path fill="#fff" d="M0 0h982v239H0z" /></clipPath>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
<h1>Hello, {{ title() }}</h1>
|
|
||||||
<p>Congratulations! Your app is running. 🎉</p>
|
|
||||||
</div>
|
|
||||||
<div class="divider" role="separator" aria-label="Divider"></div>
|
|
||||||
<div class="right-side">
|
|
||||||
<div class="pill-group">
|
|
||||||
@for (item of [
|
|
||||||
{ title: 'Explore the Docs', link: 'https://angular.dev' },
|
|
||||||
{ title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' },
|
|
||||||
{ title: 'Prompt and best practices for AI', link: 'https://angular.dev/ai/develop-with-ai'},
|
|
||||||
{ title: 'CLI Docs', link: 'https://angular.dev/tools/cli' },
|
|
||||||
{ title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' },
|
|
||||||
{ title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' },
|
|
||||||
]; track item.title) {
|
|
||||||
<a
|
|
||||||
class="pill"
|
|
||||||
[href]="item.link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
|
||||||
>
|
|
||||||
<span>{{ item.title }}</span>
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="14"
|
|
||||||
viewBox="0 -960 960 960"
|
|
||||||
width="14"
|
|
||||||
fill="currentColor"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
<div class="social-links">
|
|
||||||
<a
|
|
||||||
href="https://github.com/angular/angular"
|
|
||||||
aria-label="Github"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
width="25"
|
|
||||||
height="24"
|
|
||||||
viewBox="0 0 25 24"
|
|
||||||
fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
alt="Github"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="https://twitter.com/angular"
|
|
||||||
aria-label="Twitter"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
width="24"
|
|
||||||
height="24"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
alt="Twitter"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="https://www.youtube.com/channel/UCbn1OgGei-DV7aSRo_HaAiw"
|
|
||||||
aria-label="Youtube"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
width="29"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 29 20"
|
|
||||||
fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
alt="Youtube"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
fill-rule="evenodd"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
d="M27.4896 1.52422C27.9301 1.96749 28.2463 2.51866 28.4068 3.12258C29.0004 5.35161 29.0004 10 29.0004 10C29.0004 10 29.0004 14.6484 28.4068 16.8774C28.2463 17.4813 27.9301 18.0325 27.4896 18.4758C27.0492 18.9191 26.5 19.2389 25.8972 19.4032C23.6778 20 14.8068 20 14.8068 20C14.8068 20 5.93586 20 3.71651 19.4032C3.11363 19.2389 2.56449 18.9191 2.12405 18.4758C1.68361 18.0325 1.36732 17.4813 1.20683 16.8774C0.613281 14.6484 0.613281 10 0.613281 10C0.613281 10 0.613281 5.35161 1.20683 3.12258C1.36732 2.51866 1.68361 1.96749 2.12405 1.52422C2.56449 1.08095 3.11363 0.76113 3.71651 0.596774C5.93586 0 14.8068 0 14.8068 0C14.8068 0 23.6778 0 25.8972 0.596774C26.5 0.76113 27.0492 1.08095 27.4896 1.52422ZM19.3229 10L11.9036 5.77905V14.221L19.3229 10Z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * * The content above * * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * * -->
|
|
||||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
||||||
|
|
||||||
|
|
||||||
<router-outlet />
|
|
||||||
@@ -1,3 +1,14 @@
|
|||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
|
import { HelloWorld } from './components/hello-world/hello-world';
|
||||||
|
import { ProductView } from './components/product-view/product-view';
|
||||||
|
import { Login } from './components/login/login';
|
||||||
|
import { AuthGuard } from './auth-guard';
|
||||||
|
import { environment } from '../environments/environment';
|
||||||
|
import { AddressList } from './components/address-list/address-list';
|
||||||
|
|
||||||
export const routes: Routes = [];
|
export const routes: Routes = [
|
||||||
|
{ path: '', canActivate: [environment.production ? () => true : AuthGuard], component: HelloWorld },
|
||||||
|
{ path: 'product-view', canActivate: [environment.production ? () => true : AuthGuard], component: ProductView, },
|
||||||
|
{ path: 'address-list', canActivate: [environment.production ? () => true : AuthGuard], component: AddressList, },
|
||||||
|
{ path: 'login', component: Login, },
|
||||||
|
];
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
|
||||||
import { App } from './app';
|
|
||||||
|
|
||||||
describe('App', () => {
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
imports: [App],
|
|
||||||
}).compileComponents();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create the app', () => {
|
|
||||||
const fixture = TestBed.createComponent(App);
|
|
||||||
const app = fixture.componentInstance;
|
|
||||||
expect(app).toBeTruthy();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should render title', () => {
|
|
||||||
const fixture = TestBed.createComponent(App);
|
|
||||||
fixture.detectChanges();
|
|
||||||
const compiled = fixture.nativeElement as HTMLElement;
|
|
||||||
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, phx-frontend-plugin-demo');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,12 +1,32 @@
|
|||||||
import { Component, signal } from '@angular/core';
|
import { Component, effect, inject, Injector, input } from '@angular/core';
|
||||||
import { RouterOutlet } from '@angular/router';
|
import { RouterOutlet } from '@angular/router';
|
||||||
|
import { PhoenixHostBridgeService } from './services/phoenix-host-bridge.service';
|
||||||
|
import { IPluginServices, syncPhoenixHostInjector } from '@phx/shared-ui';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
imports: [RouterOutlet],
|
imports: [RouterOutlet],
|
||||||
templateUrl: './app.html',
|
template: `<router-outlet />`,
|
||||||
styleUrl: './app.scss'
|
styles: [`
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
`]
|
||||||
})
|
})
|
||||||
export class App {
|
export class App {
|
||||||
protected readonly title = signal('phx-frontend-plugin-demo');
|
private readonly hostBridge = inject(PhoenixHostBridgeService);
|
||||||
|
|
||||||
|
readonly pluginServices = input<IPluginServices>({});
|
||||||
|
|
||||||
|
/** Set from Phoenix as `element.hostInjector = injector` (custom element property). */
|
||||||
|
readonly hostInjector = input<Injector | undefined>(undefined);
|
||||||
|
|
||||||
|
private readonly _syncHostInjector = syncPhoenixHostInjector(this.hostBridge, this.hostInjector);
|
||||||
|
|
||||||
|
private readonly _syncPluginServices = effect(
|
||||||
|
() => {
|
||||||
|
this.hostBridge.setPluginServices(this.pluginServices());
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
15
src/app/auth-guard.ts
Normal file
15
src/app/auth-guard.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { inject, Injectable } from '@angular/core';
|
||||||
|
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
|
||||||
|
import { environment } from '../environments/environment';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class AuthGuard implements CanActivate {
|
||||||
|
private readonly router = inject(Router);
|
||||||
|
|
||||||
|
canActivate(_route: ActivatedRouteSnapshot, _state: RouterStateSnapshot): boolean {
|
||||||
|
const token = environment.apiKey??localStorage.getItem('api-key');
|
||||||
|
if (!environment.production && !token)
|
||||||
|
this.router.navigate(['login'], { queryParams: { redirectTo: btoa(window.location.pathname + window.location.search) } });
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
46
src/app/components/address-list/address-list.html
Normal file
46
src/app/components/address-list/address-list.html
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<app-base title="Address List">
|
||||||
|
<p-table
|
||||||
|
[value]="addresses()"
|
||||||
|
lazy (onLazyLoad)="onLazyLoad($event)"
|
||||||
|
[(rows)]="rows"
|
||||||
|
paginator [totalRecords]="totalItems()"
|
||||||
|
[rowsPerPageOptions]="[10, 25, 50, 75, 100]"
|
||||||
|
>
|
||||||
|
<ng-template pTemplate="header">
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Email</th>
|
||||||
|
<th>Address</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template pTemplate="body" let-row>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
@if (row.featuredAsset?.preview) {
|
||||||
|
<div class="flex justify-center items-center">
|
||||||
|
<img [src]="getPhxUrl(row.featuredAsset?.preview)" [alt]="row.featuredAsset?.displayName" style="object-fit: contain; max-width: 100px; max-height: 70px;">
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<b>{{ row.name }}</b>
|
||||||
|
@if(row.addition && row.addition.length > 0) {
|
||||||
|
<br>
|
||||||
|
<div class="text-muted-color italic text-sm">{{ row.addition }}</div>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
<td><a class="text-blue-500 hover:text-blue-700 hover:underline" [href]="'mailto:' + row.defaultEmail">{{ row.defaultEmail }}</a></td>
|
||||||
|
<td>
|
||||||
|
{{ row.primaryPostalAddress?.street }}<br>
|
||||||
|
{{ row.primaryPostalAddress?.postalCode }} {{ row.primaryPostalAddress?.city }}<br>
|
||||||
|
{{ row.primaryPostalAddress?.countryName }}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p-button icon="fa fa-arrow-up-right-from-square" (click)="openAddress(row)" size="small" text rounded outlined />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</ng-template>
|
||||||
|
</p-table>
|
||||||
|
</app-base>
|
||||||
56
src/app/components/address-list/address-list.ts
Normal file
56
src/app/components/address-list/address-list.ts
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
import { Component, effect, inject, signal } from '@angular/core';
|
||||||
|
import { Base } from '../base/base';
|
||||||
|
import { TableLazyLoadEvent, TableModule } from 'primeng/table';
|
||||||
|
import { Address, AddressSearchInput, PaginatedAddressResponse } from '../../schema-types';
|
||||||
|
import { ApolloService } from '../../services/apollo.service';
|
||||||
|
import { lastValueFrom } from 'rxjs';
|
||||||
|
import { GET_ADDRESSES_FOR_LIST } from '../../../graphql/address-definitions';
|
||||||
|
import { GetAddressesForListQuery } from '../../generated';
|
||||||
|
import { getPhxUrl } from '../../helper';
|
||||||
|
import { Button } from 'primeng/button';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-address-list',
|
||||||
|
imports: [
|
||||||
|
Base,
|
||||||
|
TableModule,
|
||||||
|
Button,
|
||||||
|
],
|
||||||
|
templateUrl: './address-list.html',
|
||||||
|
})
|
||||||
|
export class AddressList {
|
||||||
|
readonly apollo = inject(ApolloService);
|
||||||
|
readonly addresses = signal<Address[]>([]);
|
||||||
|
readonly rows = signal<number>(localStorage.getItem('address-list-rows') ? parseInt(localStorage.getItem('address-list-rows')!) : 10);
|
||||||
|
readonly totalItems = signal<number>(0);
|
||||||
|
|
||||||
|
readonly getPhxUrl = getPhxUrl;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
effect(() => {
|
||||||
|
let rows = this.rows();
|
||||||
|
if(rows > 0 && rows !== parseInt(localStorage.getItem('address-list-rows') ?? '0')) {
|
||||||
|
localStorage.setItem('address-list-rows', rows.toString());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
getAddresses = async (searchInput: AddressSearchInput = {}) => (await lastValueFrom(this.apollo.apollo().query<GetAddressesForListQuery>({
|
||||||
|
query: GET_ADDRESSES_FOR_LIST,
|
||||||
|
variables: { input: searchInput },
|
||||||
|
})))?.data?.getAddresses as PaginatedAddressResponse | undefined;
|
||||||
|
|
||||||
|
async onLazyLoad(event?: TableLazyLoadEvent) {
|
||||||
|
const result = await this.getAddresses({
|
||||||
|
take: event?.rows ?? this.rows(),
|
||||||
|
skip: event?.first ?? 0,
|
||||||
|
});
|
||||||
|
this.addresses.set(result?.items ?? []);
|
||||||
|
this.totalItems.set(result?.totalItems ?? 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
openAddress(address: Address) {
|
||||||
|
window.open(getPhxUrl('/crm/address/edit/' + address.id), '_blank');
|
||||||
|
}
|
||||||
|
}
|
||||||
18
src/app/components/base/base.html
Normal file
18
src/app/components/base/base.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<div class="min-h-screen flex items-center justify-center p-4">
|
||||||
|
<div class="border-2 rounded-2xl bg-gray-100/50 drop-shadow-2xl w-full mx-auto p-4" style="max-width: 800px;">
|
||||||
|
<div class="flex justify-between items-center">
|
||||||
|
<div class="flex items-center gap-2 w-full">
|
||||||
|
<div class="text-2xl font-bold">{{ title() }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
@if (!noHomeButton()) {
|
||||||
|
<p-button icon="fa fa-home" (click)="router.navigate(['/'])" text rounded outlined pTooltip="Home" tooltipPosition="left" />
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr class="my-4" />
|
||||||
|
<div class="mt-4">
|
||||||
|
<ng-content />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
23
src/app/components/base/base.ts
Normal file
23
src/app/components/base/base.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import { Component, inject, input } from '@angular/core';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
import { Button } from 'primeng/button';
|
||||||
|
import { Tooltip } from 'primeng/tooltip';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-base',
|
||||||
|
imports: [
|
||||||
|
Button,
|
||||||
|
Tooltip
|
||||||
|
],
|
||||||
|
templateUrl: './base.html',
|
||||||
|
styles: [`
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
`],
|
||||||
|
})
|
||||||
|
export class Base {
|
||||||
|
title = input.required<string>();
|
||||||
|
readonly router = inject(Router);
|
||||||
|
noHomeButton = input<boolean>(false);
|
||||||
|
}
|
||||||
27
src/app/components/hello-world/hello-world.html
Normal file
27
src/app/components/hello-world/hello-world.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
@defer (when userName()) {
|
||||||
|
<app-base title="Hello {{ userName() }}!" [noHomeButton]="true">
|
||||||
|
<div class="text-muted-color text-center bg-white border-2 rounded-lg p-8 mb-4 drop-shadow-lg">
|
||||||
|
This is a demo of a PHX Frontend Plugin.
|
||||||
|
<br />
|
||||||
|
Click the buttons below to navigate to the different pages.
|
||||||
|
</div>
|
||||||
|
@if (!apolloProvided()) {
|
||||||
|
<div class="text-center text-white bg-red-500 border-2 rounded-lg p-4 mb-4">
|
||||||
|
Apollo not provided!
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
<div class="grid grid-cols-2 gap-2 pt-4">
|
||||||
|
@for (item of routeItems(); track item.title) {
|
||||||
|
<p-button
|
||||||
|
[label]="item.title"
|
||||||
|
[icon]="item.icon"
|
||||||
|
(click)="item.link ? router.navigate([item.link]) : null"
|
||||||
|
size="large"
|
||||||
|
[class]="'w-full drop-shadow-lg' + ($last && $index%2==0 ? ' col-span-2' : '')"
|
||||||
|
styleClass="w-full"
|
||||||
|
iconPos="top"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</app-base>
|
||||||
|
}
|
||||||
72
src/app/components/hello-world/hello-world.ts
Normal file
72
src/app/components/hello-world/hello-world.ts
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
import { Component, computed, inject, input, signal } from '@angular/core';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
import { Button } from 'primeng/button';
|
||||||
|
import { Base } from '../base/base';
|
||||||
|
import { ApolloService } from '../../services/apollo.service';
|
||||||
|
import { GET_USER } from '../../../graphql/user-definitions';
|
||||||
|
import { ME } from '../../../graphql/base-definitions';
|
||||||
|
import { lastValueFrom } from 'rxjs';
|
||||||
|
import { GetUserQuery, MeQuery } from '../../generated';
|
||||||
|
|
||||||
|
interface RouteItem {
|
||||||
|
title: string;
|
||||||
|
link: string;
|
||||||
|
icon: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-hello-world',
|
||||||
|
imports: [
|
||||||
|
Base,
|
||||||
|
Button,
|
||||||
|
],
|
||||||
|
templateUrl: './hello-world.html',
|
||||||
|
styles: [`
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
`],
|
||||||
|
})
|
||||||
|
export class HelloWorld {
|
||||||
|
readonly router = inject(Router);
|
||||||
|
|
||||||
|
readonly userName = signal<string | undefined>(undefined);
|
||||||
|
|
||||||
|
apolloProvided = computed(() => this.apollo.apollo() !== undefined);
|
||||||
|
|
||||||
|
routeItems = input<RouteItem[]>([
|
||||||
|
// { title: 'Home', link: '/', icon: 'fa fa-home' },
|
||||||
|
{ title: 'Product View', link: '/product-view', icon: 'fa fa-boxes-stacked' },
|
||||||
|
{ title: 'Address List', link: '/address-list', icon: 'fa fa-address-card' },
|
||||||
|
]);
|
||||||
|
|
||||||
|
constructor(private readonly apollo: ApolloService) {
|
||||||
|
this.init();
|
||||||
|
}
|
||||||
|
|
||||||
|
async init() {
|
||||||
|
let userName = 'World';
|
||||||
|
try {
|
||||||
|
const meResult = await lastValueFrom(this.apollo.apollo().query<MeQuery>({
|
||||||
|
query: ME,
|
||||||
|
}));
|
||||||
|
if (!meResult.data?.me)
|
||||||
|
return;
|
||||||
|
userName = meResult.data.me.identifier ?? 'World';
|
||||||
|
|
||||||
|
const userResult = await lastValueFrom(this.apollo.apollo().query<GetUserQuery>({
|
||||||
|
query: GET_USER,
|
||||||
|
variables: { id: meResult.data.me.id },
|
||||||
|
}));
|
||||||
|
if (userResult.data?.getUser?.activeEmployee) {
|
||||||
|
let parts = [userResult.data.getUser.activeEmployee.name, userResult.data.getUser.activeEmployee.lastName].filter(Boolean);
|
||||||
|
if(parts.length > 0)
|
||||||
|
userName = parts.join(' ');
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
} finally {
|
||||||
|
this.userName.set(userName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
17
src/app/components/login/login.html
Normal file
17
src/app/components/login/login.html
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<div class="min-h-screen flex items-center justify-center p-8">
|
||||||
|
<div class="border-2 rounded-2xl bg-gray-100/50 drop-shadow-2xl w-full mx-auto p-4" style="max-width: 300px;">
|
||||||
|
<form [formGroup]="loginForm" (ngSubmit)="onSubmit()">
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<label for="username">Username</label>
|
||||||
|
<input type="text" pInputText id="username" formControlName="username" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<label for="password">Password</label>
|
||||||
|
<input type="password" pInputText id="password" formControlName="password" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p-button type="submit" [loading]="loading()" label="Login" icon="fa fa-sign-in" class="w-full" styleClass="w-full mt-4" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
74
src/app/components/login/login.ts
Normal file
74
src/app/components/login/login.ts
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
import { Component, inject, signal } from '@angular/core';
|
||||||
|
import { FormBuilder, FormsModule, Validators } from '@angular/forms';
|
||||||
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { InputText } from 'primeng/inputtext';
|
||||||
|
import { Button } from 'primeng/button';
|
||||||
|
import { ApolloService } from '../../services/apollo.service';
|
||||||
|
import { LOGIN } from '../../../graphql/base-definitions';
|
||||||
|
import { LoginMutation } from '../../generated';
|
||||||
|
import { lastValueFrom } from 'rxjs';
|
||||||
|
import { AuthenticationResult } from '../../schema-types';
|
||||||
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-login',
|
||||||
|
imports: [
|
||||||
|
FormsModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
InputText,
|
||||||
|
Button,
|
||||||
|
],
|
||||||
|
templateUrl: './login.html',
|
||||||
|
styles: [`
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
input[pInputText] {
|
||||||
|
padding: 0.5rem !important;
|
||||||
|
border-width: 2px !important;
|
||||||
|
}
|
||||||
|
`],
|
||||||
|
})
|
||||||
|
export class Login {
|
||||||
|
readonly apollo = inject(ApolloService);
|
||||||
|
readonly fb = inject(FormBuilder);
|
||||||
|
readonly router = inject(Router);
|
||||||
|
readonly loginForm = this.fb.group({
|
||||||
|
username: ['', Validators.required],
|
||||||
|
password: ['', Validators.required],
|
||||||
|
});
|
||||||
|
|
||||||
|
redirectTo = '/';
|
||||||
|
loading = signal(false);
|
||||||
|
constructor(private readonly route: ActivatedRoute) {
|
||||||
|
this.route.queryParams.subscribe(params => {
|
||||||
|
if(params['redirectTo']) {
|
||||||
|
this.redirectTo = atob(params['redirectTo']);
|
||||||
|
console.log('redirectTo', this.redirectTo);
|
||||||
|
} else {
|
||||||
|
this.redirectTo = '/';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async onSubmit() {
|
||||||
|
this.loading.set(true);
|
||||||
|
try {
|
||||||
|
const result = await lastValueFrom(this.apollo.apollo().mutate<LoginMutation>({
|
||||||
|
mutation: LOGIN,
|
||||||
|
variables: {
|
||||||
|
username: this.loginForm.value.username,
|
||||||
|
password: this.loginForm.value.password,
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
const authResult = result.data?.login as AuthenticationResult;
|
||||||
|
if(authResult.__typename === 'CurrentUser') {
|
||||||
|
this.router.navigate([this.redirectTo]);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
} finally {
|
||||||
|
this.loading.set(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
84
src/app/components/product-view/product-view.html
Normal file
84
src/app/components/product-view/product-view.html
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<app-base title="Product View">
|
||||||
|
<p-dataView
|
||||||
|
#dt2
|
||||||
|
[value]="products()"
|
||||||
|
[paginator]="true"
|
||||||
|
[lazy]="true"
|
||||||
|
[totalRecords]="currentTotalProducts()"
|
||||||
|
[loading]="loading()"
|
||||||
|
[layout]="layout()"
|
||||||
|
lazy
|
||||||
|
(onLazyLoad)="onLazyLoad($event)"
|
||||||
|
[rowsPerPageOptions]="layout() === 'list' ? listPageOptions : gridPageOptions"
|
||||||
|
[rows]="rows()"
|
||||||
|
>
|
||||||
|
<ng-template #header>
|
||||||
|
<div class="flex justify-between items-center gap-4">
|
||||||
|
<div class="w-full">
|
||||||
|
<p-iconfield iconPosition="right" class="mr-auto drop-shadow">
|
||||||
|
<p-iconfield iconPosition="left" class="ml-auto">
|
||||||
|
<p-inputicon class="fa fa-search" />
|
||||||
|
<input #searchInput pInputText type="text" [(ngModel)]="filterValue" placeholder="Search..." fluid (input)="searchTrigger.next($event.target.value)" />
|
||||||
|
</p-iconfield>
|
||||||
|
@if (filterValue()) {
|
||||||
|
<p-inputicon class="fa fa-circle-xmark cursor-pointer" (click)="searchTrigger.next(''); filterValue.set(''); searchInput.focus();" />
|
||||||
|
}
|
||||||
|
</p-iconfield>
|
||||||
|
</div>
|
||||||
|
<p-selectbutton [(ngModel)]="layout" [options]="layoutOptions" [allowEmpty]="false" (ngModelChange)="onLayoutChange($event)" class="drop-shadow">
|
||||||
|
<ng-template #item let-item>
|
||||||
|
<i class="fa " [ngClass]="{ 'fa-bars': item === 'list', 'fa-table': item === 'grid' }"></i>
|
||||||
|
</ng-template>
|
||||||
|
</p-selectbutton>
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
|
<ng-template #list let-items>
|
||||||
|
<div class="flex flex-col gap-2 p-2">
|
||||||
|
@for (item of items; track $index) {
|
||||||
|
<div class="bg-white border rounded-lg p-4 drop-shadow-lg">
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
@if (item.featuredAsset?.source) {
|
||||||
|
<img [src]="getPhxUrl(item.featuredAsset?.source)" [alt]="item.featuredAsset?.name" class="w-16 h-16 p-1 rounded-lg border" style="object-fit: contain;" />
|
||||||
|
}
|
||||||
|
<div class="flex justify-between gap-2 w-full items-center">
|
||||||
|
<div>
|
||||||
|
<h3 class="text-lg font-bold truncate">{{ item.identifier }}</h3>
|
||||||
|
<p class="text-sm text-gray-500 line-clamp-2">{{ item.description }}</p>
|
||||||
|
</div>
|
||||||
|
<p-button icon="fa fa-arrow-up-right-from-square" (click)="openProduct(item)" size="large" text rounded outlined />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
|
<ng-template #grid let-items>
|
||||||
|
<div class="grid grid-cols-2 sm:grid-cols-3 gap-2 p-2">
|
||||||
|
@for (item of items; track $index) {
|
||||||
|
<div class="bg-white border rounded-lg p-4 drop-shadow-lg">
|
||||||
|
@if (item.featuredAsset?.source) {
|
||||||
|
<img [src]="getPhxUrl(item.featuredAsset?.source)" [alt]="item.featuredAsset?.name" class="w-32 h-32 p-1 mx-auto mb-4 rounded-lg border" style="object-fit: contain;" />
|
||||||
|
}
|
||||||
|
<div class="flex justify-between gap-2">
|
||||||
|
<div>
|
||||||
|
<h3 class="text-lg font-bold truncate">{{ item.identifier }}</h3>
|
||||||
|
<p class="text-sm text-gray-500 line-clamp-2">{{ item.description }}</p>
|
||||||
|
</div>
|
||||||
|
<p-button icon="fa fa-arrow-up-right-from-square" (click)="openProduct(item)" size="small" text rounded outlined />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
|
<ng-template #emptymessage>
|
||||||
|
@if (filterValue()) {
|
||||||
|
<div class="text-center p-8 italic text-muted-color">No results found</div>
|
||||||
|
} @else {
|
||||||
|
<div class="text-center p-8 italic text-muted-color">No products found</div>
|
||||||
|
}
|
||||||
|
</ng-template>
|
||||||
|
</p-dataView>
|
||||||
|
</app-base>
|
||||||
122
src/app/components/product-view/product-view.ts
Normal file
122
src/app/components/product-view/product-view.ts
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
import { Component, computed, inject, input, linkedSignal, signal, viewChild } from '@angular/core';
|
||||||
|
import { Base } from '../base/base';
|
||||||
|
import { DataView } from 'primeng/dataview';
|
||||||
|
import { ApolloService } from '../../services/apollo.service';
|
||||||
|
import { debounceTime, distinctUntilChanged, lastValueFrom } from 'rxjs';
|
||||||
|
import { GET_PRODUCTS_FOR_LIST } from '../../../graphql/product-definitions';
|
||||||
|
import { GetProductsForListQuery } from '../../generated';
|
||||||
|
import { PaginatedProductResponse, Product, ProductSearchInput } from '../../schema-types';
|
||||||
|
import { SelectButton } from 'primeng/selectbutton';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { NgClass } from '@angular/common';
|
||||||
|
import { LazyLoadEvent } from 'primeng/api';
|
||||||
|
import { getPhxUrl } from '../../helper';
|
||||||
|
import { Button } from 'primeng/button';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
import { InputText } from 'primeng/inputtext';
|
||||||
|
import { IconField } from 'primeng/iconfield';
|
||||||
|
import { InputIcon } from 'primeng/inputicon';
|
||||||
|
import { Subject } from 'rxjs';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-product-view',
|
||||||
|
imports: [
|
||||||
|
Base,
|
||||||
|
DataView,
|
||||||
|
SelectButton,
|
||||||
|
FormsModule,
|
||||||
|
NgClass,
|
||||||
|
Button,
|
||||||
|
InputText,
|
||||||
|
IconField,
|
||||||
|
InputIcon,
|
||||||
|
],
|
||||||
|
templateUrl: './product-view.html',
|
||||||
|
styles: [`
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
|
||||||
|
::ng-deep .p-dataview-content {
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
|
::ng-deep .p-dataview-header, ::ng-deep p-paginator {
|
||||||
|
border-width: 1px !important;
|
||||||
|
border-radius: 12px !important;
|
||||||
|
margin-left: .5rem !important;
|
||||||
|
margin-right: .5rem !important;
|
||||||
|
@apply drop-shadow-lg;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[pInputText] {
|
||||||
|
padding-top: 0.5rem !important;
|
||||||
|
padding-bottom: 0.5rem !important;
|
||||||
|
border-width: 1px !important;
|
||||||
|
}
|
||||||
|
`],
|
||||||
|
})
|
||||||
|
export class ProductView {
|
||||||
|
readonly router = inject(Router);
|
||||||
|
|
||||||
|
readonly dataViewComponent = viewChild<DataView>('dt2');
|
||||||
|
|
||||||
|
products = signal<Product[]>([]);
|
||||||
|
loading = input<boolean>(false);
|
||||||
|
layout = signal<"list" | "grid">(localStorage.getItem('product-view-layout') === 'list' ? 'list' : 'grid');
|
||||||
|
layoutOptions = ['list', 'grid'];
|
||||||
|
|
||||||
|
listPageOptions = [10, 25, 50, 75, 100];
|
||||||
|
gridPageOptions = [12, 24, 48, 72, 96];
|
||||||
|
listRows = signal<number>(localStorage.getItem('product-view-list-rows') ? parseInt(localStorage.getItem('product-view-list-rows')!) : 25);
|
||||||
|
gridRows = signal<number>(localStorage.getItem('product-view-grid-rows') ? parseInt(localStorage.getItem('product-view-grid-rows')!) : 12);
|
||||||
|
rows = computed(() => this.layout() === 'list' ? this.listRows() : this.gridRows());
|
||||||
|
|
||||||
|
currentTotalProducts = signal<number>(0);
|
||||||
|
filterValue = signal<string>('');
|
||||||
|
|
||||||
|
readonly getPhxUrl = getPhxUrl;
|
||||||
|
|
||||||
|
searchTrigger = new Subject<string>();
|
||||||
|
|
||||||
|
constructor(private readonly apollo: ApolloService) {
|
||||||
|
this.searchTrigger.pipe(debounceTime(800), distinctUntilChanged()).subscribe((_term) => {
|
||||||
|
this.onLazyLoad();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
getProducts = async (searchInput: ProductSearchInput = {}) => (await lastValueFrom(this.apollo.apollo().query<GetProductsForListQuery>({
|
||||||
|
query: GET_PRODUCTS_FOR_LIST,
|
||||||
|
variables: { input: searchInput },
|
||||||
|
})))?.data?.getProducts as PaginatedProductResponse | undefined;
|
||||||
|
|
||||||
|
async onLazyLoad(event?: LazyLoadEvent) {
|
||||||
|
const result = await this.getProducts({
|
||||||
|
take: event?.rows ?? this.rows(),
|
||||||
|
skip: event?.first ?? 0,
|
||||||
|
term: this.filterValue(),
|
||||||
|
});
|
||||||
|
if((event?.rows??-1) >= 0 && event!.rows != this.rows()) {
|
||||||
|
if(this.layout() === 'list') {
|
||||||
|
this.listRows.set(event!.rows!);
|
||||||
|
localStorage.setItem('product-view-list-rows', event!.rows!.toString());
|
||||||
|
} else {
|
||||||
|
this.gridRows.set(event!.rows!);
|
||||||
|
localStorage.setItem('product-view-grid-rows', event!.rows!.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.products.set(result?.items ?? []);
|
||||||
|
this.currentTotalProducts.set(result?.totalItems ?? 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
openProduct(product: Product) {
|
||||||
|
window.open(getPhxUrl('/products/edit/' + product.id), '_blank');
|
||||||
|
}
|
||||||
|
|
||||||
|
onLayoutChange(layout: "list" | "grid") {
|
||||||
|
this.layout.set(layout);
|
||||||
|
if(this.dataViewComponent())
|
||||||
|
this.dataViewComponent()!.first = 0;
|
||||||
|
localStorage.setItem('product-view-layout', layout);
|
||||||
|
this.onLazyLoad();
|
||||||
|
}
|
||||||
|
}
|
||||||
685
src/app/generated.ts
Normal file
685
src/app/generated.ts
Normal file
@@ -0,0 +1,685 @@
|
|||||||
|
/** Internal type. DO NOT USE DIRECTLY. */
|
||||||
|
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
||||||
|
/** Internal type. DO NOT USE DIRECTLY. */
|
||||||
|
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
|
||||||
|
import type * as Types from './schema-types';
|
||||||
|
|
||||||
|
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
||||||
|
export type GetAddressesForListQueryVariables = Exact<{
|
||||||
|
input?: Types.AddressSearchInput | null | undefined;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
export type GetAddressesForListQuery = { getAddresses: { isLastPage: boolean | null, totalItems: number, items: Array<{ id: string | null, name: string | null, addition: string | null, defaultEmail: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null, featuredAsset: { source: string | null, preview: string | null, width: number, height: number, displayName: string | null, name: string | null, id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null } | null, primaryPostalAddress: { street: string | null, city: string | null, postalCode: string | null, countryIso: string | null, countryName: string | null, id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null } | null }> } };
|
||||||
|
|
||||||
|
type BaseModel_AccessoryConfig_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AccessoryConfigProductLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ActivityStream_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Address_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressActivityCall_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressBankAccountLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressContactLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressDataProtectionLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressDocumentExchangeLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressDocumentExchangeTemplate_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressDocumentExport_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressPostalLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_AddressTranslation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Administrator_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Asset_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_BackupConfig_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_BackupExecution_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_BackupTarget_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_BalanceInfo_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_BalanceInfoToPaymentLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Bank_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_BankAccount_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Branch_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_BulkPriceListEntry_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Client_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ClientLog_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ColumnConfig_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ColumnDefinition_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CommodityCode_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Contact_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ContactDataProtectionLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CostCenter_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CostObject_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Country_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CountryTranslation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Credential_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CsvManager_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CsvManagerImportConfig_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CustomActionBarItem_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CustomElementManifest_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CustomEntityColumnSchema_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CustomEntitySchema_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CustomFieldSchema_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CustomerPriceList_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_CustomerPriceListAddressLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DangerousGoodsUnNumber_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Dashboard_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DataProtection_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DataProtectionNotification_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DebitorCreditorInstance_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DeliveryItem_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DeliveryItemToDocument_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DeliveryTerms_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Department_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupCustomerGroupRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupCustomerRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupDocumentLineItemRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupDocumentRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupProductGroupRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupProductRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupVendorGroupRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DiscountGroupVendorRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Document_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentAllowanceChargeLine_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentAsset_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentCandidateImportLog_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentDefinition_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentDefinitionTransferOption_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentEmployeeLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentExportCandidate_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentImportCandidate_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentLineDeliveryItemLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentLineItem_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentLineItemLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentLineItemSerialLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentProject_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentReportHistory_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentTaxLine_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_DocumentTransferFormat_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_EInvoicePaymentMeansCode_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_EmailSetting_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_EmailTemplate_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Employee_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_EmployeeQualification_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_EntityConfig_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_EntitySearchSettings_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ExchangeRate_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Facet_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_FacetTranslation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_FacetValue_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_FacetValueTranslation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_FormConfig_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_FormConfigPatch_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_GlobalSettings_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Grouping_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Harbour_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_IntegrationConnection_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_IntegrationDeliveryTermsMapping_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_IntegrationPaymentTermsMapping_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_IntegrationShippingMethodMapping_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ItemSalesTaxCategory_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ItemSalesTaxCategoryMapping_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_JobRecord_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Journal_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_JsoNataSchema_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Keyword_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_License_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Macro_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Material_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_MaterialGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Menu_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_MenuUserFavorites_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_NumberRange_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_OpenItemAccounting_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_OpenItemCredit_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Packaging_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PackingCode_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Payment_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PaymentRun_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PaymentRunAssignment_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PaymentRunPosition_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PaymentRunSummary_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PaymentTerms_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PostProductionDetail_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PostProductionReason_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PostalAddress_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PostalCode_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PriceList_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PriceListEntry_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PrintJob_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PrinterInstance_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessEventMarker_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessQualification_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessResource_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessResourceGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepDefinition_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepDetail_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepGroupRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepHistory_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepHistoryTypeReason_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepHistoryTypeReasonPlace_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepLineItemLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProcessStepPack_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Product_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductAddressLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductAssetShopIntegrationLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductECommerceConfig_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductPostProductionCost_Fragment = { id: string, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductProcessStepDefinitionCost_Fragment = { id: string, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductShopIntegrationLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductToStoragePlaceLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductUnitConversionLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductVariantToFacetValueLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductionStation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProductionStationResourceAssignment_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ProvisionGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_PublicReportConfiguration_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_RegexEntry_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Report_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ReportPermission_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ReportTrigger_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ResourceTimeCorrection_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_RestoreConfirmation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Role_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_SalesTaxCategory_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_SalesTaxCode_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_SalesTaxCodeDetail_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Salutation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ShippingMethod_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_ShippingMethodAddressLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_SimpleJsonEntry_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_SocialLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_StockInventory_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_StockInventoryItem_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_StockTransaction_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_StockTransactionsOperation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_StoragePlace_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Surcharge_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_SystemSettings_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_SystemTemplate_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Tag_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Task_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_TaxonomyCategory_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_TenantBankAccount_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_TenantBankAccountLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_TextTemplate_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_TradingSetRelation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Unit_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_UnitConversion_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_UnitGroup_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_UnitTranslation_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_User_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_UserEMail_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_UserEmailSettingPermission_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_UserSettings_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_VendorPriceList_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_VendorPriceListAddressLink_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_WebhookDeadLetter_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_WebhookDelivery_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_WebhookDeliveryAttempt_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_WebhookSubscription_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Widget_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_XmlManager_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
type BaseModel_Zone_Fragment = { id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null };
|
||||||
|
|
||||||
|
export type BaseModelFragment =
|
||||||
|
| BaseModel_AccessoryConfig_Fragment
|
||||||
|
| BaseModel_AccessoryConfigProductLink_Fragment
|
||||||
|
| BaseModel_ActivityStream_Fragment
|
||||||
|
| BaseModel_Address_Fragment
|
||||||
|
| BaseModel_AddressActivityCall_Fragment
|
||||||
|
| BaseModel_AddressBankAccountLink_Fragment
|
||||||
|
| BaseModel_AddressContactLink_Fragment
|
||||||
|
| BaseModel_AddressDataProtectionLink_Fragment
|
||||||
|
| BaseModel_AddressDocumentExchangeLink_Fragment
|
||||||
|
| BaseModel_AddressDocumentExchangeTemplate_Fragment
|
||||||
|
| BaseModel_AddressDocumentExport_Fragment
|
||||||
|
| BaseModel_AddressGroup_Fragment
|
||||||
|
| BaseModel_AddressLink_Fragment
|
||||||
|
| BaseModel_AddressPostalLink_Fragment
|
||||||
|
| BaseModel_AddressTranslation_Fragment
|
||||||
|
| BaseModel_Administrator_Fragment
|
||||||
|
| BaseModel_Asset_Fragment
|
||||||
|
| BaseModel_BackupConfig_Fragment
|
||||||
|
| BaseModel_BackupExecution_Fragment
|
||||||
|
| BaseModel_BackupTarget_Fragment
|
||||||
|
| BaseModel_BalanceInfo_Fragment
|
||||||
|
| BaseModel_BalanceInfoToPaymentLink_Fragment
|
||||||
|
| BaseModel_Bank_Fragment
|
||||||
|
| BaseModel_BankAccount_Fragment
|
||||||
|
| BaseModel_Branch_Fragment
|
||||||
|
| BaseModel_BulkPriceListEntry_Fragment
|
||||||
|
| BaseModel_Client_Fragment
|
||||||
|
| BaseModel_ClientLog_Fragment
|
||||||
|
| BaseModel_ColumnConfig_Fragment
|
||||||
|
| BaseModel_ColumnDefinition_Fragment
|
||||||
|
| BaseModel_CommodityCode_Fragment
|
||||||
|
| BaseModel_Contact_Fragment
|
||||||
|
| BaseModel_ContactDataProtectionLink_Fragment
|
||||||
|
| BaseModel_CostCenter_Fragment
|
||||||
|
| BaseModel_CostObject_Fragment
|
||||||
|
| BaseModel_Country_Fragment
|
||||||
|
| BaseModel_CountryTranslation_Fragment
|
||||||
|
| BaseModel_Credential_Fragment
|
||||||
|
| BaseModel_CsvManager_Fragment
|
||||||
|
| BaseModel_CsvManagerImportConfig_Fragment
|
||||||
|
| BaseModel_CustomActionBarItem_Fragment
|
||||||
|
| BaseModel_CustomElementManifest_Fragment
|
||||||
|
| BaseModel_CustomEntityColumnSchema_Fragment
|
||||||
|
| BaseModel_CustomEntitySchema_Fragment
|
||||||
|
| BaseModel_CustomFieldSchema_Fragment
|
||||||
|
| BaseModel_CustomerPriceList_Fragment
|
||||||
|
| BaseModel_CustomerPriceListAddressLink_Fragment
|
||||||
|
| BaseModel_DangerousGoodsUnNumber_Fragment
|
||||||
|
| BaseModel_Dashboard_Fragment
|
||||||
|
| BaseModel_DataProtection_Fragment
|
||||||
|
| BaseModel_DataProtectionNotification_Fragment
|
||||||
|
| BaseModel_DebitorCreditorInstance_Fragment
|
||||||
|
| BaseModel_DeliveryItem_Fragment
|
||||||
|
| BaseModel_DeliveryItemToDocument_Fragment
|
||||||
|
| BaseModel_DeliveryTerms_Fragment
|
||||||
|
| BaseModel_Department_Fragment
|
||||||
|
| BaseModel_DiscountGroup_Fragment
|
||||||
|
| BaseModel_DiscountGroupCustomerGroupRelation_Fragment
|
||||||
|
| BaseModel_DiscountGroupCustomerRelation_Fragment
|
||||||
|
| BaseModel_DiscountGroupDocumentLineItemRelation_Fragment
|
||||||
|
| BaseModel_DiscountGroupDocumentRelation_Fragment
|
||||||
|
| BaseModel_DiscountGroupProductGroupRelation_Fragment
|
||||||
|
| BaseModel_DiscountGroupProductRelation_Fragment
|
||||||
|
| BaseModel_DiscountGroupVendorGroupRelation_Fragment
|
||||||
|
| BaseModel_DiscountGroupVendorRelation_Fragment
|
||||||
|
| BaseModel_Document_Fragment
|
||||||
|
| BaseModel_DocumentAllowanceChargeLine_Fragment
|
||||||
|
| BaseModel_DocumentAsset_Fragment
|
||||||
|
| BaseModel_DocumentCandidateImportLog_Fragment
|
||||||
|
| BaseModel_DocumentDefinition_Fragment
|
||||||
|
| BaseModel_DocumentDefinitionTransferOption_Fragment
|
||||||
|
| BaseModel_DocumentEmployeeLink_Fragment
|
||||||
|
| BaseModel_DocumentExportCandidate_Fragment
|
||||||
|
| BaseModel_DocumentImportCandidate_Fragment
|
||||||
|
| BaseModel_DocumentLineDeliveryItemLink_Fragment
|
||||||
|
| BaseModel_DocumentLineItem_Fragment
|
||||||
|
| BaseModel_DocumentLineItemLink_Fragment
|
||||||
|
| BaseModel_DocumentLineItemSerialLink_Fragment
|
||||||
|
| BaseModel_DocumentLink_Fragment
|
||||||
|
| BaseModel_DocumentProject_Fragment
|
||||||
|
| BaseModel_DocumentReportHistory_Fragment
|
||||||
|
| BaseModel_DocumentTaxLine_Fragment
|
||||||
|
| BaseModel_DocumentTransferFormat_Fragment
|
||||||
|
| BaseModel_EInvoicePaymentMeansCode_Fragment
|
||||||
|
| BaseModel_EmailSetting_Fragment
|
||||||
|
| BaseModel_EmailTemplate_Fragment
|
||||||
|
| BaseModel_Employee_Fragment
|
||||||
|
| BaseModel_EmployeeQualification_Fragment
|
||||||
|
| BaseModel_EntityConfig_Fragment
|
||||||
|
| BaseModel_EntitySearchSettings_Fragment
|
||||||
|
| BaseModel_ExchangeRate_Fragment
|
||||||
|
| BaseModel_Facet_Fragment
|
||||||
|
| BaseModel_FacetTranslation_Fragment
|
||||||
|
| BaseModel_FacetValue_Fragment
|
||||||
|
| BaseModel_FacetValueTranslation_Fragment
|
||||||
|
| BaseModel_FormConfig_Fragment
|
||||||
|
| BaseModel_FormConfigPatch_Fragment
|
||||||
|
| BaseModel_GlobalSettings_Fragment
|
||||||
|
| BaseModel_Grouping_Fragment
|
||||||
|
| BaseModel_Harbour_Fragment
|
||||||
|
| BaseModel_IntegrationConnection_Fragment
|
||||||
|
| BaseModel_IntegrationDeliveryTermsMapping_Fragment
|
||||||
|
| BaseModel_IntegrationPaymentTermsMapping_Fragment
|
||||||
|
| BaseModel_IntegrationShippingMethodMapping_Fragment
|
||||||
|
| BaseModel_ItemSalesTaxCategory_Fragment
|
||||||
|
| BaseModel_ItemSalesTaxCategoryMapping_Fragment
|
||||||
|
| BaseModel_JobRecord_Fragment
|
||||||
|
| BaseModel_Journal_Fragment
|
||||||
|
| BaseModel_JsoNataSchema_Fragment
|
||||||
|
| BaseModel_Keyword_Fragment
|
||||||
|
| BaseModel_License_Fragment
|
||||||
|
| BaseModel_Macro_Fragment
|
||||||
|
| BaseModel_Material_Fragment
|
||||||
|
| BaseModel_MaterialGroup_Fragment
|
||||||
|
| BaseModel_Menu_Fragment
|
||||||
|
| BaseModel_MenuUserFavorites_Fragment
|
||||||
|
| BaseModel_NumberRange_Fragment
|
||||||
|
| BaseModel_OpenItemAccounting_Fragment
|
||||||
|
| BaseModel_OpenItemCredit_Fragment
|
||||||
|
| BaseModel_Packaging_Fragment
|
||||||
|
| BaseModel_PackingCode_Fragment
|
||||||
|
| BaseModel_Payment_Fragment
|
||||||
|
| BaseModel_PaymentRun_Fragment
|
||||||
|
| BaseModel_PaymentRunAssignment_Fragment
|
||||||
|
| BaseModel_PaymentRunPosition_Fragment
|
||||||
|
| BaseModel_PaymentRunSummary_Fragment
|
||||||
|
| BaseModel_PaymentTerms_Fragment
|
||||||
|
| BaseModel_PostProductionDetail_Fragment
|
||||||
|
| BaseModel_PostProductionReason_Fragment
|
||||||
|
| BaseModel_PostalAddress_Fragment
|
||||||
|
| BaseModel_PostalCode_Fragment
|
||||||
|
| BaseModel_PriceList_Fragment
|
||||||
|
| BaseModel_PriceListEntry_Fragment
|
||||||
|
| BaseModel_PrintJob_Fragment
|
||||||
|
| BaseModel_PrinterInstance_Fragment
|
||||||
|
| BaseModel_ProcessEventMarker_Fragment
|
||||||
|
| BaseModel_ProcessQualification_Fragment
|
||||||
|
| BaseModel_ProcessResource_Fragment
|
||||||
|
| BaseModel_ProcessResourceGroup_Fragment
|
||||||
|
| BaseModel_ProcessStepDefinition_Fragment
|
||||||
|
| BaseModel_ProcessStepDetail_Fragment
|
||||||
|
| BaseModel_ProcessStepGroup_Fragment
|
||||||
|
| BaseModel_ProcessStepGroupRelation_Fragment
|
||||||
|
| BaseModel_ProcessStepHistory_Fragment
|
||||||
|
| BaseModel_ProcessStepHistoryTypeReason_Fragment
|
||||||
|
| BaseModel_ProcessStepHistoryTypeReasonPlace_Fragment
|
||||||
|
| BaseModel_ProcessStepLineItemLink_Fragment
|
||||||
|
| BaseModel_ProcessStepPack_Fragment
|
||||||
|
| BaseModel_Product_Fragment
|
||||||
|
| BaseModel_ProductAddressLink_Fragment
|
||||||
|
| BaseModel_ProductAssetShopIntegrationLink_Fragment
|
||||||
|
| BaseModel_ProductECommerceConfig_Fragment
|
||||||
|
| BaseModel_ProductGroup_Fragment
|
||||||
|
| BaseModel_ProductPostProductionCost_Fragment
|
||||||
|
| BaseModel_ProductProcessStepDefinitionCost_Fragment
|
||||||
|
| BaseModel_ProductShopIntegrationLink_Fragment
|
||||||
|
| BaseModel_ProductToStoragePlaceLink_Fragment
|
||||||
|
| BaseModel_ProductUnitConversionLink_Fragment
|
||||||
|
| BaseModel_ProductVariantToFacetValueLink_Fragment
|
||||||
|
| BaseModel_ProductionStation_Fragment
|
||||||
|
| BaseModel_ProductionStationResourceAssignment_Fragment
|
||||||
|
| BaseModel_ProvisionGroup_Fragment
|
||||||
|
| BaseModel_PublicReportConfiguration_Fragment
|
||||||
|
| BaseModel_RegexEntry_Fragment
|
||||||
|
| BaseModel_Report_Fragment
|
||||||
|
| BaseModel_ReportPermission_Fragment
|
||||||
|
| BaseModel_ReportTrigger_Fragment
|
||||||
|
| BaseModel_ResourceTimeCorrection_Fragment
|
||||||
|
| BaseModel_RestoreConfirmation_Fragment
|
||||||
|
| BaseModel_Role_Fragment
|
||||||
|
| BaseModel_SalesTaxCategory_Fragment
|
||||||
|
| BaseModel_SalesTaxCode_Fragment
|
||||||
|
| BaseModel_SalesTaxCodeDetail_Fragment
|
||||||
|
| BaseModel_Salutation_Fragment
|
||||||
|
| BaseModel_ShippingMethod_Fragment
|
||||||
|
| BaseModel_ShippingMethodAddressLink_Fragment
|
||||||
|
| BaseModel_SimpleJsonEntry_Fragment
|
||||||
|
| BaseModel_SocialLink_Fragment
|
||||||
|
| BaseModel_StockInventory_Fragment
|
||||||
|
| BaseModel_StockInventoryItem_Fragment
|
||||||
|
| BaseModel_StockTransaction_Fragment
|
||||||
|
| BaseModel_StockTransactionsOperation_Fragment
|
||||||
|
| BaseModel_StoragePlace_Fragment
|
||||||
|
| BaseModel_Surcharge_Fragment
|
||||||
|
| BaseModel_SystemSettings_Fragment
|
||||||
|
| BaseModel_SystemTemplate_Fragment
|
||||||
|
| BaseModel_Tag_Fragment
|
||||||
|
| BaseModel_Task_Fragment
|
||||||
|
| BaseModel_TaxonomyCategory_Fragment
|
||||||
|
| BaseModel_TenantBankAccount_Fragment
|
||||||
|
| BaseModel_TenantBankAccountLink_Fragment
|
||||||
|
| BaseModel_TextTemplate_Fragment
|
||||||
|
| BaseModel_TradingSetRelation_Fragment
|
||||||
|
| BaseModel_Unit_Fragment
|
||||||
|
| BaseModel_UnitConversion_Fragment
|
||||||
|
| BaseModel_UnitGroup_Fragment
|
||||||
|
| BaseModel_UnitTranslation_Fragment
|
||||||
|
| BaseModel_User_Fragment
|
||||||
|
| BaseModel_UserEMail_Fragment
|
||||||
|
| BaseModel_UserEmailSettingPermission_Fragment
|
||||||
|
| BaseModel_UserSettings_Fragment
|
||||||
|
| BaseModel_VendorPriceList_Fragment
|
||||||
|
| BaseModel_VendorPriceListAddressLink_Fragment
|
||||||
|
| BaseModel_WebhookDeadLetter_Fragment
|
||||||
|
| BaseModel_WebhookDelivery_Fragment
|
||||||
|
| BaseModel_WebhookDeliveryAttempt_Fragment
|
||||||
|
| BaseModel_WebhookSubscription_Fragment
|
||||||
|
| BaseModel_Widget_Fragment
|
||||||
|
| BaseModel_XmlManager_Fragment
|
||||||
|
| BaseModel_Zone_Fragment
|
||||||
|
;
|
||||||
|
|
||||||
|
export type LoginMutationVariables = Exact<{
|
||||||
|
username: string;
|
||||||
|
password: string;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
export type LoginMutation = { login:
|
||||||
|
| { id: string | null, identifier: string | null, channels: Array<{ id: string | null, token: string | null }> | null }
|
||||||
|
| { errorCode: string, message: string }
|
||||||
|
| { errorCode: string, message: string }
|
||||||
|
| { errorCode: string, message: string }
|
||||||
|
| null };
|
||||||
|
|
||||||
|
export type MeQueryVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
|
export type MeQuery = { me: { id: string | null, identifier: string | null } | null };
|
||||||
|
|
||||||
|
export type GetProductsForListQueryVariables = Exact<{
|
||||||
|
input?: Types.ProductSearchInput | null | undefined;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
export type GetProductsForListQuery = { getProducts: { isLastPage: boolean | null, totalItems: number, items: Array<{ id: string | null, identifier: string | null, description: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null, primaryProductGroup: { identifier: string | null, description: string | null, id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null } | null, featuredAsset: { source: string | null, preview: string | null, name: string | null, displayName: string | null, height: number, width: number, id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null } | null }> } };
|
||||||
|
|
||||||
|
export type GetUserQueryVariables = Exact<{
|
||||||
|
id: string;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
export type GetUserQuery = { getUser: { identifier: string | null, id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null, activeEmployee: { name: string | null, lastName: string | null, id: string | null, createdById: string | null, createdAt: Date | null, updatedAt: Date | null, lastUpdatedById: string | null, version: number | null, deleted: boolean | null } | null } };
|
||||||
|
|
||||||
|
export const BaseModelFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BaseModel"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IBaseModel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdById"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedById"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]} as unknown as DocumentNode<BaseModelFragment, unknown>;
|
||||||
|
export const GetAddressesForListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAddressesForList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AddressSearchInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getAddresses"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isLastPage"}},{"kind":"Field","name":{"kind":"Name","value":"totalItems"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"addition"}},{"kind":"Field","name":{"kind":"Name","value":"defaultEmail"}},{"kind":"Field","name":{"kind":"Name","value":"featuredAsset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"preview"}},{"kind":"Field","name":{"kind":"Name","value":"width"}},{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"primaryPostalAddress"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"postalCode"}},{"kind":"Field","name":{"kind":"Name","value":"countryIso"}},{"kind":"Field","name":{"kind":"Name","value":"countryName"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BaseModel"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IBaseModel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdById"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedById"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]} as unknown as DocumentNode<GetAddressesForListQuery, GetAddressesForListQueryVariables>;
|
||||||
|
export const LoginDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Login"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"username"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"login"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"username"},"value":{"kind":"Variable","name":{"kind":"Name","value":"username"}}},{"kind":"Argument","name":{"kind":"Name","value":"password"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CurrentUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"identifier"}},{"kind":"Field","name":{"kind":"Name","value":"channels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"token"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"InvalidCredentialsError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NativeAuthStrategyError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailCodeAuthStrategyError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<LoginMutation, LoginMutationVariables>;
|
||||||
|
export const MeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"identifier"}}]}}]}}]} as unknown as DocumentNode<MeQuery, MeQueryVariables>;
|
||||||
|
export const GetProductsForListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetProductsForList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ProductSearchInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getProducts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isLastPage"}},{"kind":"Field","name":{"kind":"Name","value":"totalItems"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"identifier"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"primaryProductGroup"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"identifier"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featuredAsset"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"preview"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"width"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BaseModel"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IBaseModel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdById"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedById"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]} as unknown as DocumentNode<GetProductsForListQuery, GetProductsForListQueryVariables>;
|
||||||
|
export const GetUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"identifier"}},{"kind":"Field","name":{"kind":"Name","value":"activeEmployee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BaseModel"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BaseModel"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IBaseModel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdById"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdatedById"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]} as unknown as DocumentNode<GetUserQuery, GetUserQueryVariables>;
|
||||||
5
src/app/helper.ts
Normal file
5
src/app/helper.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { environment } from "../environments/environment";
|
||||||
|
|
||||||
|
export function getPhxUrl(path: string) {
|
||||||
|
return `${environment.serverUrl}${path}`;
|
||||||
|
}
|
||||||
25949
src/app/schema-types.ts
Normal file
25949
src/app/schema-types.ts
Normal file
File diff suppressed because it is too large
Load Diff
20
src/app/services/apollo.service.ts
Normal file
20
src/app/services/apollo.service.ts
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { Injectable, Injector, signal } from '@angular/core';
|
||||||
|
import { Apollo } from 'apollo-angular';
|
||||||
|
import { environment } from '../../environments/environment';
|
||||||
|
import { PhoenixHostBridgeService } from './phoenix-host-bridge.service';
|
||||||
|
|
||||||
|
@Injectable({ providedIn: 'root' })
|
||||||
|
export class ApolloService {
|
||||||
|
|
||||||
|
private readonly _apollo = signal<Apollo>(undefined!);
|
||||||
|
|
||||||
|
constructor(private readonly injector: Injector) {
|
||||||
|
if(environment.production) {
|
||||||
|
this._apollo.set(injector.get(PhoenixHostBridgeService)?.pluginServices()?.apollo!);
|
||||||
|
} else {
|
||||||
|
this._apollo.set(injector.get(PhoenixHostBridgeService)?.pluginServices()?.apollo ?? injector.get(Apollo));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apollo = () => this._apollo();
|
||||||
|
}
|
||||||
24
src/app/services/phoenix-host-bridge.service.ts
Normal file
24
src/app/services/phoenix-host-bridge.service.ts
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import { Injectable, Injector, signal } from '@angular/core';
|
||||||
|
import type { IPluginServices } from '@phx/shared-ui';
|
||||||
|
|
||||||
|
@Injectable({ providedIn: 'root' })
|
||||||
|
export class PhoenixHostBridgeService {
|
||||||
|
private readonly _hostInjector = signal<Injector | null>(null);
|
||||||
|
private readonly _pluginServices = signal<IPluginServices | null>(null);
|
||||||
|
|
||||||
|
hostInjector(): Injector | null {
|
||||||
|
return this._hostInjector();
|
||||||
|
}
|
||||||
|
|
||||||
|
setHostInjector(injector: Injector): void {
|
||||||
|
this._hostInjector.set(injector);
|
||||||
|
}
|
||||||
|
|
||||||
|
pluginServices(): IPluginServices | null {
|
||||||
|
return this._pluginServices();
|
||||||
|
}
|
||||||
|
|
||||||
|
setPluginServices(services: IPluginServices): void {
|
||||||
|
this._pluginServices.set(services);
|
||||||
|
}
|
||||||
|
}
|
||||||
9
src/environments/environment.example.ts
Normal file
9
src/environments/environment.example.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Environment } from './environment.interface';
|
||||||
|
|
||||||
|
export const environment: Environment = {
|
||||||
|
production: false,
|
||||||
|
apiUrl: 'http://localhost:3000/admin-api',
|
||||||
|
wsUrl: 'ws://localhost:3000/admin-api',
|
||||||
|
apiKey: undefined, //redirects to login if not set
|
||||||
|
serverUrl: 'https://localhost:4200',
|
||||||
|
};
|
||||||
12
src/environments/environment.interface.ts
Normal file
12
src/environments/environment.interface.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
export abstract class Environment {
|
||||||
|
/** Whether the environment is production */
|
||||||
|
production: boolean = false;
|
||||||
|
/** The PHX API URL */
|
||||||
|
apiUrl: string | undefined;
|
||||||
|
/** The PHX API WebSocket URL */
|
||||||
|
wsUrl: string | undefined;
|
||||||
|
/** The PHX API key */
|
||||||
|
apiKey: string | undefined;
|
||||||
|
/** The PHX UI URL */
|
||||||
|
serverUrl: string = "";
|
||||||
|
}
|
||||||
9
src/environments/environment.ts
Normal file
9
src/environments/environment.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { Environment } from "./environment.interface";
|
||||||
|
|
||||||
|
export const environment: Environment = {
|
||||||
|
production: true,
|
||||||
|
apiUrl: undefined,
|
||||||
|
wsUrl: undefined,
|
||||||
|
apiKey: undefined,
|
||||||
|
serverUrl: '',
|
||||||
|
};
|
||||||
36
src/graphql/address-definitions.ts
Normal file
36
src/graphql/address-definitions.ts
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
import { gql } from 'apollo-angular';
|
||||||
|
import { BASEMODEL } from './base-definitions';
|
||||||
|
|
||||||
|
export const GET_ADDRESSES_FOR_LIST = gql`
|
||||||
|
query GetAddressesForList($input: AddressSearchInput) {
|
||||||
|
getAddresses(input: $input) {
|
||||||
|
isLastPage
|
||||||
|
totalItems
|
||||||
|
items {
|
||||||
|
id
|
||||||
|
...BaseModel
|
||||||
|
name
|
||||||
|
addition
|
||||||
|
defaultEmail
|
||||||
|
featuredAsset {
|
||||||
|
...BaseModel
|
||||||
|
source
|
||||||
|
preview
|
||||||
|
width
|
||||||
|
height
|
||||||
|
displayName
|
||||||
|
name
|
||||||
|
}
|
||||||
|
primaryPostalAddress {
|
||||||
|
...BaseModel
|
||||||
|
street
|
||||||
|
city
|
||||||
|
postalCode
|
||||||
|
countryIso
|
||||||
|
countryName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${BASEMODEL}
|
||||||
|
`;
|
||||||
49
src/graphql/base-definitions.ts
Normal file
49
src/graphql/base-definitions.ts
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
import { gql } from 'apollo-angular';
|
||||||
|
|
||||||
|
export const BASEMODEL = gql`
|
||||||
|
fragment BaseModel on IBaseModel {
|
||||||
|
id
|
||||||
|
createdById
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
lastUpdatedById
|
||||||
|
version
|
||||||
|
deleted
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const LOGIN = gql`
|
||||||
|
mutation Login($username: String!, $password: String!) {
|
||||||
|
login(username: $username, password: $password) {
|
||||||
|
... on CurrentUser {
|
||||||
|
id
|
||||||
|
identifier
|
||||||
|
channels {
|
||||||
|
id
|
||||||
|
token
|
||||||
|
}
|
||||||
|
}
|
||||||
|
... on InvalidCredentialsError {
|
||||||
|
errorCode
|
||||||
|
message
|
||||||
|
}
|
||||||
|
... on NativeAuthStrategyError {
|
||||||
|
errorCode
|
||||||
|
message
|
||||||
|
}
|
||||||
|
... on EmailCodeAuthStrategyError {
|
||||||
|
errorCode
|
||||||
|
message
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const ME = gql`
|
||||||
|
query Me {
|
||||||
|
me {
|
||||||
|
id
|
||||||
|
identifier
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
32
src/graphql/product-definitions.ts
Normal file
32
src/graphql/product-definitions.ts
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import { gql } from 'apollo-angular';
|
||||||
|
import { BASEMODEL } from './base-definitions';
|
||||||
|
|
||||||
|
export const GET_PRODUCTS_FOR_LIST = gql`
|
||||||
|
query GetProductsForList($input: ProductSearchInput) {
|
||||||
|
getProducts(input: $input) {
|
||||||
|
isLastPage
|
||||||
|
totalItems
|
||||||
|
items {
|
||||||
|
id
|
||||||
|
...BaseModel
|
||||||
|
identifier
|
||||||
|
description
|
||||||
|
primaryProductGroup {
|
||||||
|
...BaseModel
|
||||||
|
identifier
|
||||||
|
description
|
||||||
|
}
|
||||||
|
featuredAsset {
|
||||||
|
...BaseModel
|
||||||
|
source
|
||||||
|
preview
|
||||||
|
name
|
||||||
|
displayName
|
||||||
|
height
|
||||||
|
width
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${BASEMODEL}
|
||||||
|
`;
|
||||||
17
src/graphql/user-definitions.ts
Normal file
17
src/graphql/user-definitions.ts
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import { gql } from 'apollo-angular';
|
||||||
|
import { BASEMODEL } from './base-definitions';
|
||||||
|
|
||||||
|
export const GET_USER = gql`
|
||||||
|
query GetUser($id: String!) {
|
||||||
|
getUser(id: $id) {
|
||||||
|
...BaseModel
|
||||||
|
identifier
|
||||||
|
activeEmployee {
|
||||||
|
...BaseModel
|
||||||
|
name
|
||||||
|
lastName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${BASEMODEL}
|
||||||
|
`;
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en" style="height: 100%; width: 100%;">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>PhxFrontendPluginDemo</title>
|
<title>PhxFrontendPluginDemo</title>
|
||||||
<base href="/">
|
<base href="/">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body style="height: 100%; width: 100%;">
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
20
src/main.ts
20
src/main.ts
@@ -1,6 +1,20 @@
|
|||||||
import { bootstrapApplication } from '@angular/platform-browser';
|
|
||||||
import { appConfig } from './app/app.config';
|
import { appConfig } from './app/app.config';
|
||||||
import { App } from './app/app';
|
import { App } from './app/app';
|
||||||
|
import { bootstrapPhoenixPluginCustomElement } from '@phx/shared-ui';
|
||||||
|
import { createApplication } from '@angular/platform-browser';
|
||||||
|
import { createCustomElement } from '@angular/elements';
|
||||||
|
import { environment } from './environments/environment';
|
||||||
|
|
||||||
bootstrapApplication(App, appConfig)
|
createApplication(appConfig).then((app) => {
|
||||||
.catch((err) => console.error(err));
|
const el = createCustomElement(App, { injector: app.injector });
|
||||||
|
customElements.define('frontend-plugin-demo', el);
|
||||||
|
return app;
|
||||||
|
})
|
||||||
|
// bootstrapPhoenixPluginCustomElement(App, 'frontend-plugin-demo', appConfig)
|
||||||
|
.then((app) => {
|
||||||
|
//if development:
|
||||||
|
if(!environment.production)
|
||||||
|
return app.bootstrap(App);
|
||||||
|
else
|
||||||
|
return app;
|
||||||
|
});
|
||||||
@@ -1 +1,4 @@
|
|||||||
/* You can add global styles to this file, and also import other style files */
|
/* You can add global styles to this file, and also import other style files */
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
49
tailwind.config.js
Normal file
49
tailwind.config.js
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
//copy from main project
|
||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
module.exports = {
|
||||||
|
darkMode: 'selector', // Enable class-based dark mode (you can also use 'media' for OS preference)
|
||||||
|
content: [
|
||||||
|
"./src/**/*.{html,ts,scss}"
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
extend: {
|
||||||
|
animation: {
|
||||||
|
'fadein': 'fadein 0.5s ease-in-out',
|
||||||
|
'fadeout': 'fadeout 0.5s ease-in-out',
|
||||||
|
'fadeinleft': 'fadeinleft 0.5s ease-in-out',
|
||||||
|
'fadeinright': 'fadeinright 0.5s ease-in-out',
|
||||||
|
'fadeintop': 'fadeintop 0.5s ease-in-out',
|
||||||
|
'fadeinbottom': 'fadeinbottom 0.5s ease-in-out',
|
||||||
|
},
|
||||||
|
keyframes: {
|
||||||
|
'fadein': {
|
||||||
|
'0%': { opacity: 0 },
|
||||||
|
'100%': { opacity: 1 },
|
||||||
|
},
|
||||||
|
'fadeout': {
|
||||||
|
'0%': { opacity: 1 },
|
||||||
|
'100%': { opacity: 0 },
|
||||||
|
},
|
||||||
|
'fadeinleft': {
|
||||||
|
'0%': { opacity: 0, transform: 'translateX(-100%)' },
|
||||||
|
'100%': { opacity: 1, transform: 'translateX(0)' },
|
||||||
|
},
|
||||||
|
'fadeinright': {
|
||||||
|
'0%': { opacity: 0, transform: 'translateX(100%)' },
|
||||||
|
'100%': { opacity: 1, transform: 'translateX(0)' },
|
||||||
|
},
|
||||||
|
'fadeintop': {
|
||||||
|
'0%': { opacity: 0, transform: 'translateY(-100%)' },
|
||||||
|
'100%': { opacity: 1, transform: 'translateY(0)' },
|
||||||
|
},
|
||||||
|
'fadeinbottom': {
|
||||||
|
'0%': { opacity: 0, transform: 'translateY(100%)' },
|
||||||
|
'100%': { opacity: 1, transform: 'translateY(0)' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
require('tailwindcss-primeui')
|
||||||
|
],
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user