Skip to content

Commit 0b2f21e

Browse files
Merge pull request #111 from mollie/release/v1.2.0
[1.2.0] Custom application
2 parents 8055001 + 40400db commit 0b2f21e

File tree

117 files changed

+147951
-655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+147951
-655
lines changed

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,61 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## v1.2.0
8+
9+
Added
10+
11+
- Mollie custom application
12+
13+
Updated
14+
15+
- [getPaymentMethods](/docs/GetPaymentMethods.md) response has new returned format as follow
16+
17+
```Typescript
18+
{
19+
id: string,
20+
name: Record<string, string>
21+
description: Record<string, string>
22+
image: string;
23+
order: number;
24+
}
25+
26+
// e.g.
27+
{
28+
id: 'paypal',
29+
name: {
30+
'en-GB': 'PayPal',
31+
'de-DE': 'PayPal',
32+
},
33+
description: {
34+
'en-GB': '',
35+
'de-DE': '',
36+
},
37+
image: 'https://example.img/paypal.svg',
38+
order: 1
39+
}
40+
```
41+
42+
## v1.1.2
43+
44+
Added
45+
46+
- Add configuration to enable authorization mode
47+
- OAuth middleware for securing connector endpoint
48+
49+
## v1.1.1
50+
51+
Fixes
52+
53+
- Type converting issue in payment method listing endpoint
54+
55+
## v1.1.0
56+
57+
Added
58+
59+
- DockerImage for self hosting on AWS
60+
- Installation endpoint for required configurations
61+
762
## v1.0.4
863

964
Added
@@ -16,6 +71,7 @@ Added
1671
Added
1772

1873
- Add docs for status checking endpoint
74+
- Endpoints for checking connector statuses
1975

2076
## v1.0.2
2177

application/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ENABLE_NEW_JSX_TRANSFORM="true"
2+
FAST_REFRESH="true"

application/.env.dev

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ENABLE_NEW_JSX_TRANSFORM="true"
2+
FAST_REFRESH="true"
3+
4+
ENTRY_POINT_URI_PATH="mollie"
5+
PROJECT_KEY="your-project-key"
6+
CLOUD_IDENTIFIER="gcp-eu"
7+
CUSTOM_APPLICATION_ID="app-id"
8+
APPLICATION_URL="http://localhost:3001"

application/.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
process.env.ENABLE_NEW_JSX_TRANSFORM = 'true';
2+
3+
/**
4+
* @type {import("eslint").Linter.Config}
5+
*/
6+
module.exports = {
7+
extends: ['@commercetools-frontend/eslint-config-mc-app'],
8+
plugins: ['graphql', 'cypress'],
9+
overrides: [
10+
{
11+
files: ['**/*.ctp.graphql'],
12+
rules: {
13+
'graphql/template-strings': [
14+
'error',
15+
{
16+
env: 'literal',
17+
schemaJson: require('./schemas/ctp.json'),
18+
},
19+
],
20+
},
21+
},
22+
],
23+
};

application/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
public
3+
dist
4+
!.env
5+
6+
# Cypress
7+
cypress/.env
8+
cypress/screenshots/**
9+
cypress/videos/**

application/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

application/.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
i18n/data/*.json
2+
public
3+
.cache
4+
.yarn

application/.prettierrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"parser": "typescript",
5+
"overrides": [
6+
{
7+
"files": "*.json",
8+
"options": {
9+
"parser": "json"
10+
}
11+
},
12+
{
13+
"files": "*.graphql",
14+
"options": {
15+
"parser": "graphql"
16+
}
17+
}
18+
]
19+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/* THIS IS A GENERATED FILE */
2+
/* eslint-disable import/no-duplicates */
3+
4+
declare module '*/fetch-channel-details.ctp.graphql' {
5+
import { DocumentNode } from 'graphql';
6+
const defaultDocument: DocumentNode;
7+
export const FetchChannelDetails: DocumentNode;
8+
9+
export default defaultDocument;
10+
}
11+
12+
declare module '*/fetch-channels.ctp.graphql' {
13+
import { DocumentNode } from 'graphql';
14+
const defaultDocument: DocumentNode;
15+
export const FetchChannels: DocumentNode;
16+
17+
export default defaultDocument;
18+
}
19+
20+
declare module '*/update-channel-details.ctp.graphql' {
21+
import { DocumentNode } from 'graphql';
22+
const defaultDocument: DocumentNode;
23+
export const UpdateChannelDetails: DocumentNode;
24+
25+
export default defaultDocument;
26+
}
27+
28+
declare module '*/fetch-custom-objects.ctp.graphql' {
29+
import { DocumentNode } from 'graphql';
30+
const defaultDocument: DocumentNode;
31+
export const FetchCustomObjects: DocumentNode;
32+
33+
export default defaultDocument;
34+
}
35+
36+
declare module '*/fetch-custom-object-details.ctp.graphql' {
37+
import { DocumentNode } from 'graphql';
38+
const defaultDocument: DocumentNode;
39+
export const UpdateCustomObjects: DocumentNode;
40+
export default defaultDocument;
41+
}
42+
43+
declare module '*/update-custom-object-details.ctp.graphql' {
44+
import { DocumentNode } from 'graphql';
45+
const defaultDocument: DocumentNode;
46+
export const UpdateCustomObjectDetails: DocumentNode;
47+
export default defaultDocument;
48+
}
49+
50+
declare module '*/remove-custom-object-details.ctp.graphql' {
51+
import { DocumentNode } from 'graphql';
52+
const defaultDocument: DocumentNode;
53+
export const RemoveCustomObjectDetails: DocumentNode;
54+
export default defaultDocument;
55+
}
56+
57+
declare module '*/fetch-extension-destination.ctp.graphql' {
58+
import { DocumentNode } from 'graphql';
59+
const defaultDocument: DocumentNode;
60+
export const FetchExtensionDestination: DocumentNode;
61+
export default defaultDocument;
62+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
declare module '@commercetools/sync-actions' {
2+
export type SyncAction = { action: string; [x: string]: unknown };
3+
function buildActions<NextDraft, OriginalDraft>(
4+
nextDraft: NextDraft,
5+
originalDraft: OriginalDraft
6+
): SyncAction[];
7+
export type Syncer = {
8+
buildActions: typeof buildActions;
9+
};
10+
export function createSyncChannels(): Syncer;
11+
}

0 commit comments

Comments
 (0)