Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
769 commits
Select commit Hold shift + click to select a range
c1b3ecf
Select created link ids to return full links in tests
FreePhoenix888 Sep 18, 2022
cb05a62
Select created link ids to return full links in tests
FreePhoenix888 Sep 18, 2022
7514e0a
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 18, 2022
a89dadd
Get ids from inserts and put them to the createdLinkIds and then remo…
FreePhoenix888 Sep 18, 2022
2e86c05
Get ids from inserts and put them to the createdLinkIds and then remo…
FreePhoenix888 Sep 18, 2022
2f2b57f
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 18, 2022
3bc5d05
Do not console log handlers
FreePhoenix888 Sep 18, 2022
5380a82
Do not console log handlers
FreePhoenix888 Sep 18, 2022
bbaa2d5
Fix typo
FreePhoenix888 Sep 18, 2022
c87b2a7
Fix typo
FreePhoenix888 Sep 18, 2022
37f94f3
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 18, 2022
38bcd18
Fix typo
FreePhoenix888 Sep 18, 2022
dd01e18
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 18, 2022
4b836c2
Fix typo
FreePhoenix888 Sep 18, 2022
db6c2a7
Fix typo
FreePhoenix888 Sep 18, 2022
c17dec4
Fix typo
FreePhoenix888 Sep 18, 2022
5fc6f6a
Fix typo
FreePhoenix888 Sep 18, 2022
02a51b8
Get id from insert query
FreePhoenix888 Sep 18, 2022
f019cd4
Fix typo
FreePhoenix888 Sep 18, 2022
2af46f7
Console log payedLinkId
FreePhoenix888 Sep 18, 2022
316c0db
Fix typo
FreePhoenix888 Sep 18, 2022
77d9377
Get id from insert query
FreePhoenix888 Sep 18, 2022
8f7f36f
Console log titleLinkId
FreePhoenix888 Sep 18, 2022
f803208
Console.log incomeLinkInsertQuery
FreePhoenix888 Sep 18, 2022
7b04960
Get and use storageBusinessLinkId
FreePhoenix888 Sep 18, 2022
04e0f9f
Get and use storageBusinessLinkId
FreePhoenix888 Sep 18, 2022
791eaf2
Fix typo
FreePhoenix888 Sep 18, 2022
3003d6c
Fix typo
FreePhoenix888 Sep 18, 2022
ca09bda
Change expect
FreePhoenix888 Sep 18, 2022
82bb1e5
Fix typo
FreePhoenix888 Sep 18, 2022
b262efb
Fix typo
FreePhoenix888 Sep 18, 2022
3ec7e1c
Format
FreePhoenix888 Sep 18, 2022
2794004
Fix typo
FreePhoenix888 Sep 18, 2022
3cd6ba3
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 18, 2022
5b07f7d
Fix typo
FreePhoenix888 Sep 18, 2022
34a9c93
Fix typo
FreePhoenix888 Sep 18, 2022
005e745
Fix typo
FreePhoenix888 Sep 18, 2022
668250f
Change expect
FreePhoenix888 Sep 18, 2022
c003807
Change expect
FreePhoenix888 Sep 18, 2022
f3e4dd4
Fix typo
FreePhoenix888 Sep 18, 2022
79323ec
Fix typo
FreePhoenix888 Sep 18, 2022
92692a2
Fix typo
FreePhoenix888 Sep 18, 2022
62c03fc
Fix typo
FreePhoenix888 Sep 18, 2022
e6139a4
Remove unused code
FreePhoenix888 Sep 18, 2022
69bc5f9
OrderLinkId -> OrderId
FreePhoenix888 Sep 18, 2022
ffc12ea
Fix typo
FreePhoenix888 Sep 18, 2022
ceac6b1
Return in status is not cancelled
FreePhoenix888 Sep 18, 2022
8a5c8ed
Log creaetd links
FreePhoenix888 Sep 18, 2022
2c5ca8b
Remove unused code
FreePhoenix888 Sep 18, 2022
0c9a48f
Add log
FreePhoenix888 Sep 18, 2022
b1ae629
Fix typo
FreePhoenix888 Sep 18, 2022
3aaae19
Push to createdLinkIds, not to createdLinks
FreePhoenix888 Sep 18, 2022
e05d65d
Get id from query
FreePhoenix888 Sep 18, 2022
c4c437b
Remove unused log
FreePhoenix888 Sep 18, 2022
33b09da
awaid -> await
FreePhoenix888 Sep 18, 2022
50b4f10
Fix typo
FreePhoenix888 Sep 19, 2022
cf7b452
Fix typos
FreePhoenix888 Sep 19, 2022
c11a7d8
CANCELLED -> CANCELED
FreePhoenix888 Sep 19, 2022
b509efb
Log mpUpCancellingPayment
FreePhoenix888 Sep 19, 2022
9570c81
Remove to_id restriction from Payed
FreePhoenix888 Sep 19, 2022
2b405e0
Fix typo
FreePhoenix888 Sep 19, 2022
b78e1ae
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 19, 2022
d4f1d3b
Select the payed link by using the payLinkId, not a mp
FreePhoenix888 Sep 19, 2022
1e971b9
Format
FreePhoenix888 Sep 19, 2022
fccad0e
Format
FreePhoenix888 Sep 19, 2022
fbe7495
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 19, 2022
86d1be5
Do not add contain links in handlers
FreePhoenix888 Sep 19, 2022
8b5fc3b
Do not add contain links in handlers
FreePhoenix888 Sep 19, 2022
276d3a6
Use spaces
FreePhoenix888 Sep 19, 2022
2b39fa0
Use spaces, format
FreePhoenix888 Sep 19, 2022
53e8b65
Update envs
FreePhoenix888 Sep 19, 2022
1df55bc
Update envs
FreePhoenix888 Sep 19, 2022
586c3c0
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 19, 2022
20e6f78
Insert storage client only if is not created
FreePhoenix888 Sep 19, 2022
2ea866e
Create Title only if is not created
FreePhoenix888 Sep 19, 2022
7b18f26
Use storageClientLinkId as from_id and to_id for title link
FreePhoenix888 Sep 19, 2022
81835d9
Do not log queries
FreePhoenix888 Sep 19, 2022
f7e340a
Do not log queries
FreePhoenix888 Sep 19, 2022
bdb4b14
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 19, 2022
ad7ff22
Remove created links if the package is not installed correctly
FreePhoenix888 Sep 20, 2022
aa6a2d2
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 20, 2022
d6cf986
Remove created links if the package is not installed correctly
FreePhoenix888 Sep 20, 2022
6ccedfd
Add try catch inside installPackage
FreePhoenix888 Sep 20, 2022
9983463
Add try catch inside installPackage
FreePhoenix888 Sep 20, 2022
d791663
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 20, 2022
dc4d204
Throw error in catch after deleting created links
FreePhoenix888 Sep 20, 2022
0cfb2ef
Throw error in catch after deleting created links
FreePhoenix888 Sep 20, 2022
319627b
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 20, 2022
ed17c63
Return if status is not AUTHORIZED or CONFIRMED in notification handlers
FreePhoenix888 Sep 20, 2022
19f722d
Return if status is not AUTHORIZED or CONFIRMED in notification handlers
FreePhoenix888 Sep 20, 2022
a6849d6
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 20, 2022
632d70a
Exit with code 1 if error
FreePhoenix888 Sep 20, 2022
8425769
Exit with code 1 if error
FreePhoenix888 Sep 20, 2022
72601dc
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 20, 2022
f5301f3
Temporarily do not inherit types and use Type as type_id and use Any …
FreePhoenix888 Sep 20, 2022
2779061
Use sumLink.value.value instead of hardcoded sumLink.value.value
FreePhoenix888 Sep 20, 2022
849ee6c
userLink -> fromLinkOfPayment
FreePhoenix888 Sep 20, 2022
6b9af34
userLink -> fromLinkOfPayment
FreePhoenix888 Sep 20, 2022
bb3bd11
Use the existing storage if already created or create
FreePhoenix888 Sep 20, 2022
f9df4ba
Add TODO
FreePhoenix888 Sep 20, 2022
546eda5
Get Url type right before using it
FreePhoenix888 Sep 20, 2022
5368972
Add and use callTest. Find error links and delete them too
FreePhoenix888 Sep 20, 2022
421e39f
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Sep 20, 2022
11db99a
Format
FreePhoenix888 Oct 18, 2022
3fe07bc
Separate code
FreePhoenix888 Oct 18, 2022
8b381ca
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 18, 2022
7ae1b05
Separate code
FreePhoenix888 Oct 18, 2022
3788cdb
Put PRICE in callTests
FreePhoenix888 Oct 18, 2022
978ba07
Add typeId to type id variable names
FreePhoenix888 Oct 19, 2022
3a5f9f3
Separate code, rename add typeId to names
FreePhoenix888 Oct 19, 2022
fe0a612
Fix typo
FreePhoenix888 Oct 19, 2022
002efa3
Add typeId to names
FreePhoenix888 Oct 19, 2022
98f1cbc
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 19, 2022
fbed981
Add typeId to names
FreePhoenix888 Oct 19, 2022
877436d
Separate code
FreePhoenix888 Oct 19, 2022
bee89ed
Use cjs import syntax
FreePhoenix888 Oct 19, 2022
d6b77d1
Pass args to insertPayInsertHandler
FreePhoenix888 Oct 19, 2022
f0b8a7c
Export
FreePhoenix888 Oct 19, 2022
5eec914
Add insertHandler
FreePhoenix888 Oct 19, 2022
31841ca
Add insertNotificationHandler
FreePhoenix888 Oct 19, 2022
bf630a5
Separate code
FreePhoenix888 Oct 19, 2022
db82682
Separate code
FreePhoenix888 Oct 19, 2022
f4fbf9c
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 19, 2022
59db625
Separate code
FreePhoenix888 Oct 19, 2022
1ff0891
Separate cdoe
FreePhoenix888 Oct 19, 2022
1efca84
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 19, 2022
92fba10
Separate code
FreePhoenix888 Oct 19, 2022
a86df16
Remove unused code
FreePhoenix888 Oct 19, 2022
5517081
Format code
FreePhoenix888 Oct 19, 2022
a888914
Separate code
FreePhoenix888 Oct 19, 2022
48812ca
Require sleep fn
FreePhoenix888 Oct 19, 2022
0fcaa7c
Comment unused code
FreePhoenix888 Oct 19, 2022
9bf2145
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 19, 2022
8daf7f8
Rename to deep-packages
FreePhoenix888 Oct 19, 2022
835b3e9
Install puppeteer dependencies
FreePhoenix888 Oct 19, 2022
496fb1a
Fix typo
FreePhoenix888 Oct 20, 2022
016062b
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 20, 2022
e524a34
Fix typo
FreePhoenix888 Oct 20, 2022
0834c17
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 20, 2022
5b7250c
Fix typo
FreePhoenix888 Oct 20, 2022
c102b25
Fix payments
FreePhoenix888 Oct 20, 2022
ba442d2
Fix payments
FreePhoenix888 Oct 21, 2022
9a36dc9
Pass packageName to `insertHandler.=`
FreePhoenix888 Oct 21, 2022
5b82f3b
Add onConfirmed
FreePhoenix888 Oct 21, 2022
8a6cf01
Fix payments
FreePhoenix888 Oct 21, 2022
dd152dd
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 21, 2022
5ecbf3c
Add packageName parameters
FreePhoenix888 Oct 21, 2022
647d0ff
Fix paths
FreePhoenix888 Oct 21, 2022
2fb6130
LinkId -> Id
FreePhoenix888 Oct 21, 2022
1895361
Rename handlers
FreePhoenix888 Oct 21, 2022
47bead6
Rename
FreePhoenix888 Oct 21, 2022
cc4d352
Rename
FreePhoenix888 Oct 21, 2022
46168fd
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 21, 2022
1f618de
Fix handlers
FreePhoenix888 Oct 21, 2022
d100910
Fix handlers
FreePhoenix888 Oct 23, 2022
6c75fa5
Install puppeteer
FreePhoenix888 Oct 30, 2022
3a0c465
Check if all the required env vars are set
FreePhoenix888 Oct 30, 2022
6782e0f
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 30, 2022
d9f846e
Check if all the required env vars set
FreePhoenix888 Oct 30, 2022
84267d8
Remove cancelling package nv vars
FreePhoenix888 Oct 30, 2022
892d7dd
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 30, 2022
54c039b
Remove unused code
FreePhoenix888 Oct 30, 2022
325b58a
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 30, 2022
b526e80
Merge branch 'main' into payments-tinkoff-c2b
FreePhoenix888 Oct 30, 2022
ee85bb4
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Oct 30, 2022
5d02152
Fix typo
FreePhoenix888 Nov 1, 2022
46ffc2a
Fix typo
FreePhoenix888 Nov 1, 2022
433d633
Merge branch 'payments-tinkoff-c2b' of https://github.com/FreePhoenix…
FreePhoenix888 Nov 1, 2022
7715f65
Renames
FreePhoenix888 Nov 1, 2022
d57508e
Put authorized code into if block
FreePhoenix888 Nov 1, 2022
13033c5
Support checked status
FreePhoenix888 Nov 1, 2022
de51593
Add onCheckedCode parameter
FreePhoenix888 Nov 1, 2022
1dd405b
Do not rename newLink arg
FreePhoenix888 Nov 1, 2022
f2c716e
Rename variables: `Type` -> `typeLinkId`
FreePhoenix888 Dec 4, 2022
eb3642f
Export directly
FreePhoenix888 Dec 4, 2022
512305c
Remove unused code
FreePhoenix888 Dec 4, 2022
beaf2ef
Remove checked if branch and parameter onChecked
FreePhoenix888 Dec 4, 2022
673e311
Fix typo
FreePhoenix888 Dec 4, 2022
59eb530
Fix typo
FreePhoenix888 Dec 4, 2022
b2bd880
Format
FreePhoenix888 Dec 4, 2022
afc50ba
Remove customer key from test parameters
FreePhoenix888 Dec 4, 2022
d067f60
Insert object with bankPaymentId field for payment link
FreePhoenix888 Dec 4, 2022
1a9ff9b
Revert "Remove customer key from test parameters"
FreePhoenix888 Dec 4, 2022
98c6fa3
Remove customer key from tests parameters
FreePhoenix888 Dec 4, 2022
dea4499
Do not create payment link with value
FreePhoenix888 Dec 4, 2022
3c4873c
Use timestamp + paymentLink.id to create order id
FreePhoenix888 Dec 4, 2022
c95bb4f
Fix typo
FreePhoenix888 Dec 4, 2022
ce14db7
Fix typo
FreePhoenix888 Dec 4, 2022
469863c
Fix typo
FreePhoenix888 Dec 4, 2022
10bca30
Fix typo
FreePhoenix888 Dec 4, 2022
9d7d6dc
Do not pass customer key to tests
FreePhoenix888 Dec 4, 2022
a072957
Fix typo
FreePhoenix888 Dec 4, 2022
3379050
Fix typo
FreePhoenix888 Dec 4, 2022
44bb3a0
Fix typos
FreePhoenix888 Dec 4, 2022
d69c884
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Dec 5, 2022
600670f
Rename: Type -> typeTypeLinkId
FreePhoenix888 Dec 5, 2022
69ae87a
Remove customer key parameter from tests
FreePhoenix888 Dec 5, 2022
50c63b5
Move realization tests to separate files
FreePhoenix888 Dec 5, 2022
bbc516f
Rename: typeTypeId -> typeTypeLinKId
FreePhoenix888 Dec 5, 2022
332aeac
Make Token link independent and add and use UsesToken link
FreePhoenix888 Dec 10, 2022
d0ea36d
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Dec 10, 2022
64cd158
TypeId -> TypeLinkId
FreePhoenix888 Dec 10, 2022
346206f
Create usesTokenTypeLinkId link
FreePhoenix888 Dec 11, 2022
71276b1
Install packages required for payments
FreePhoenix888 Feb 14, 2023
7dafa45
Do not use dotenv expand
FreePhoenix888 Feb 14, 2023
03f0ba0
Merge branch 'main' into payments-tinkoff-c2b
FreePhoenix888 Feb 15, 2023
ca5a51e
Merge branch 'main' into payments-tinkoff-c2b
FreePhoenix888 Feb 16, 2023
a957885
Update draft
FreePhoenix888 Feb 17, 2023
4554c5c
Update draft
FreePhoenix888 Feb 17, 2023
3a11e3f
Merge branch 'payments-tinkoff-c2b' of https://github.com/FreePhoenix…
FreePhoenix888 Feb 17, 2023
7549496
Update draft
FreePhoenix888 Feb 17, 2023
62048c6
Merge branch 'payments-tinkoff-c2b' of https://github.com/FreePhoenix…
FreePhoenix888 Feb 17, 2023
4a56925
Revert "Update draft"
FreePhoenix888 Feb 17, 2023
ff18207
Revert "Update draft"
FreePhoenix888 Feb 17, 2023
6eb715d
Revert "Update draft"
FreePhoenix888 Feb 17, 2023
cdd0a52
Contain tree in package
FreePhoenix888 Feb 17, 2023
20d37ab
update submit button selector
FreePhoenix888 Feb 17, 2023
b532003
Use triggeredByLinkId as customer key instead of deep.linkId
FreePhoenix888 Feb 17, 2023
a62d7d5
Make payments-tinkoff-c2b workable
FreePhoenix888 Feb 20, 2023
993c86f
Remove unused comments
FreePhoenix888 Feb 20, 2023
c586246
Use js handler, not ts
FreePhoenix888 Feb 20, 2023
078c488
Add contains
FreePhoenix888 Feb 20, 2023
bb430d3
Update draft
FreePhoenix888 Feb 20, 2023
f9d7b17
Fix typo
FreePhoenix888 Feb 20, 2023
2d192dd
Use link_id instead of parent_id to get linksUpToPayMp
FreePhoenix888 Feb 20, 2023
18a2663
Update payments-tinkoff-c2b draft
FreePhoenix888 Feb 21, 2023
38f6924
Move payments-tinkoff-c2b to deep-packages folder
FreePhoenix888 Feb 21, 2023
8faf647
Move and rename
FreePhoenix888 Feb 23, 2023
1c71055
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Feb 23, 2023
746f6de
Update draft
FreePhoenix888 Feb 23, 2023
7ddb8cf
Merge branch 'main' into payments-tinkoff-c2b
FreePhoenix888 Mar 16, 2023
e9c5131
callTest -> callTestAndCleanup
FreePhoenix888 Mar 16, 2023
23ed813
Fix typo
FreePhoenix888 Mar 16, 2023
99c9a44
Inherig baseUrlTypeLinkId
FreePhoenix888 Mar 16, 2023
2a6f413
Remove unused code
FreePhoenix888 Mar 16, 2023
585a5fb
Remove unused code
FreePhoenix888 Mar 16, 2023
cc47859
Remove error type
FreePhoenix888 Mar 16, 2023
fea84fb
Put terminal password in variable
FreePhoenix888 Mar 16, 2023
cb93dad
Put terminalKey in a variable
FreePhoenix888 Mar 16, 2023
1ca2a87
Insert storage client if is not inserted
FreePhoenix888 Mar 16, 2023
dd636ed
Add todo
FreePhoenix888 Mar 16, 2023
37f50e0
Merge branch 'payments-tinkoff-c2b' into payments-tinkoff-c2b-cancelling
FreePhoenix888 Mar 17, 2023
24a91f4
Add and use bankPaymentId variable
FreePhoenix888 Mar 17, 2023
749e622
Do not create error link
FreePhoenix888 Mar 17, 2023
e37cb55
Add contains
FreePhoenix888 Mar 17, 2023
9d597a7
Use links from cancelling package instead of c2b
FreePhoenix888 Mar 17, 2023
67a5814
Remove unused variable
FreePhoenix888 Mar 17, 2023
7a2b537
Add contain
FreePhoenix888 Mar 17, 2023
3d83adb
Remove unused files
FreePhoenix888 Mar 17, 2023
cf79a7b
Import confirm
FreePhoenix888 Mar 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ vscode:

tasks:
- init: npm run gitpod-init; docker pull deepf/deeplinks:main; docker run -v $(pwd)/packages/deeplinks:/deeplinks --rm --name links --entrypoint "sh" deepf/deeplinks:main -c "cp -r /snapshots/* /deeplinks/snapshots/"; (cd packages/deeplinks && npm run snapshot:last); npm install -g concurrently;
- command: (cd packages/deeplinks; if git merge-base --is-ancestor origin/main main; then echo ''; else ( echo 'NEED TO PULL DEEPLINKS!'; git checkout main; git pull; cd ../../; npm run apply-deeplinks); fi) && (cd packages/deepcase; if (git merge-base --is-ancestor origin/main main); then echo ''; else ( echo 'NEED TO PULL DEEPCASE!'; git checkout main; git pull; npm ci); fi) && npm run gitpod-start;

- command: (cd packages/deeplinks; if git merge-base --is-ancestor origin/main main; then echo ''; else ( echo 'NEED TO PULL DEEPLINKS!'; git checkout main; git pull; cd ../../; npm run apply-deeplinks); fi) && (cd packages/deepcase; if (git merge-base --is-ancestor origin/main main); then echo ''; else ( echo 'NEED TO PULL DEEPCASE!'; git checkout main; git pull; npm ci); fi) && |
npm run gitpod-start;
sudo apt update; sudo apt install -y libgbm-dev chromium-browser gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget; # For puppeteer


11 changes: 0 additions & 11 deletions .vscode/settings.json

This file was deleted.

47 changes: 47 additions & 0 deletions deep-packages/insertHandler.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
exports.insertHandler = async ({deep,fileTypeLinkId, fileName, handlerName, handleName, triggerTypeLinkId, code, supportsId, handleOperationTypeLinkId, containTypeLinkId, packageId, handlerTypeLinkId}) => {
return await deep.insert({
type_id: fileTypeLinkId,
in: {
data: [
{
type_id: containTypeLinkId,
from_id: packageId, // before created package
string: { data: { value: fileName } },
},
{
from_id: supportsId,
type_id: handlerTypeLinkId,
in: {
data: [
{
type_id: containTypeLinkId,
from_id: packageId, // before created package
string: { data: { value: handlerName } },
},
{
type_id: handleOperationTypeLinkId,
from_id: triggerTypeLinkId,
in: {
data: [
{
type_id: containTypeLinkId,
from_id: packageId, // before created package
string: { data: { value: handleName } },
},
],
},
},
],
},
},
],
},
string: {
data: {
value: code,
},
},
});
};


128 changes: 128 additions & 0 deletions deep-packages/insertNotificationHandler.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
exports.insertNotificationHandler = async ({deep, packageId,notificationPort, notificationRoute, portTypeLinkId, routerListeningTypeLinkId, routerTypeLinkId, routerStringUseTypeLinkId, routeTypeLinkId, handleRouteTypeLinkId, handlerTypeLinkId, supportsId, containTypeLinkId, adminId, fileTypeLinkId, handlerName, code}) => {
return await deep.insert(
{
type_id: portTypeLinkId,
number: {
data: { value: notificationPort },
},
in: {
data: [
{
type_id: routerListeningTypeLinkId,
in: {
data: {
type_id: containTypeLinkId,
from_id: packageId,
},
},
from: {
data: {
type_id: routerTypeLinkId,
in: {
data: [
{
type_id: routerStringUseTypeLinkId,
in: {
data: {
type_id: containTypeLinkId,
from_id: packageId,
string: {
data: {
value: handlerName,
},
},
},
},
string: {
data: {
value:
notificationRoute,
},
},
from: {
data: {
type_id: routeTypeLinkId,
in: {
data: {
type_id: containTypeLinkId,
from_id: packageId,
},
},
out: {
data: {
type_id: handleRouteTypeLinkId,
in: {
data: [
{
type_id: containTypeLinkId,
from_id: packageId,
}
]
},
to: {
data: {
type_id: handlerTypeLinkId,
from_id: supportsId,
in: {
data: {
type_id: containTypeLinkId,
// from_id: deep.linkId,
from_id: packageId,
string: {
data: {
value: handlerName,
},
},
},
},
to: {
data: {
type_id: fileTypeLinkId,
string: {
data: {
value: code,
},
},
in: {
data: {
type_id: containTypeLinkId,
from_id: packageId,
string: {
data: {
value: handlerName,
},
},
},
},
},
},
},
},
},
},
},
},
},
{
type_id: containTypeLinkId,
from_id: packageId,
}
],
},
},
},
}
,
{
type_id: containTypeLinkId,
from_id: packageId,
}
],
},
},
{
name: 'INSERT_HANDLE_ROUTE_HIERARCHICAL',
}
)
}

33 changes: 33 additions & 0 deletions deep-packages/payments/tinkoff/addCustomer.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const axios = require('axios');
const { generateToken } = require("./generateToken.cjs");
const { getError } = require("./getError.cjs");
const { getUrl } = require("./getUrl.cjs");

exports.addCustomer = async (options) => {
try {
const response = await axios({
method: 'post',
url: getUrl('AddCustomer'),
headers: {
'Content-Type': 'application/json',
},
data: { ...options, Token: generateToken(options) },
});

const error = getError(response.data.ErrorCode);

return {
error,
request: options,
response: response.data,
};
} catch (error) {
return {
error,
request: options,
response: null,
};
}
};


30 changes: 30 additions & 0 deletions deep-packages/payments/tinkoff/cancel.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const axios = require('axios');
const { generateToken } = require("./generateToken.cjs");
const { getError } = require("./getError.cjs");
const { getUrl } = require("./getUrl.cjs");

const cancel = async (options) => {
try {
const response = await axios({
method: 'post',
url: getUrl('Cancel'),
data: { ...options, Token: generateToken(options) },
});

const error = getError(response.data.ErrorCode);

return {
error,
request: options,
response: response.data,
};
} catch (error) {
return {
error,
request: options,
response: null,
};
}
};

exports.cancel = cancel;
Loading