Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3823 commits
Select commit Hold shift + click to select a range
963fb68
feat: Make all carrier settings field optional on types
danh91 Feb 22, 2024
cf71680
fix: allied express local with proper schema sample
danh91 Feb 23, 2024
5966680
fix(allied_express_local): shipment cancellation response parsing
danh91 Feb 23, 2024
e5ef353
feat: Add allied services to allied local service list
danh91 Feb 23, 2024
7577ea1
feat: Consolidate FedEx smart post support with unit tests
danh91 Feb 24, 2024
f6cf6ef
feat(FedEx): Consolidate FedEx REST API and SmartPost integrations wi…
danh91 Feb 25, 2024
9069bf9
feat(Auspos): Consolidate australia post integration with live tests
danh91 Feb 25, 2024
e1e6e14
feat(DHLParcelDE): Consolidate DHL Parcel DE integration with live tests
danh91 Feb 25, 2024
73a68f9
docs: Add FAQ for <No active carrier connection found...> issue
danh91 Feb 25, 2024
1f975a9
fix: dhl_parcel_de invalide settings access
danh91 Feb 25, 2024
70d911c
feat(dashboard): Add support for dynamic carrier specific options fields
danh91 Feb 26, 2024
0ba337c
fix(FedEx): smartpost options data types
danh91 Feb 26, 2024
c65d420
release: 2024.2.rc7
danh91 Feb 26, 2024
6a0a216
Merge pull request #520 from karrioapi/karrio-2024.2
danh91 Feb 26, 2024
023cb27
docs: Fix duplicated carrier capabilities listing.
danh91 Feb 29, 2024
22d9052
fix(allied_express*): min volume value
danh91 Mar 5, 2024
d37895e
fix(fedex*): rating package options issue
danh91 Mar 5, 2024
debfab7
fix(dhl_express): Missing mapping for customs declartion identifiers
danh91 Mar 6, 2024
10d62b2
release(hot-fix): patch 2024.2.rc8
danh91 Mar 6, 2024
4008ed9
Merge pull request #525 from karrioapi/hot-fix-2024.2rc
danh91 Mar 6, 2024
8afd9d4
chore: Remove codesee workflow
danh91 Mar 7, 2024
70f5d43
chore: Introduce automated build workflow
danh91 Mar 7, 2024
69cfd34
Merge pull request #526 from karrioapi/automated-build
danh91 Mar 7, 2024
a669ff7
chore(deps): bump jwcrypto from 1.5.4 to 1.5.6
dependabot[bot] Mar 7, 2024
009f278
Merge pull request #527 from karrioapi/dependabot/pip/jwcrypto-1.5.6
danh91 Mar 7, 2024
3093fe9
chore: debug docker build workflow
danh91 Mar 7, 2024
a960a73
chore: debug build version check changes
danh91 Mar 7, 2024
b37c121
chore: debug build version check changes with version update
danh91 Mar 7, 2024
f9d2ef1
Merge pull request #528 from karrioapi/automated-build
danh91 Mar 7, 2024
5dde5f4
fix: fedex smartpost options mapping
danh91 Mar 7, 2024
e73f1d6
feat: Add system carrier custom options to dynamic labels options sec…
danh91 Mar 7, 2024
b38d41e
release: patch 2024.2.rc9
danh91 Mar 7, 2024
220707f
Merge pull request #529 from karrioapi/hot-fix-fedex-smartpost-requests
danh91 Mar 7, 2024
6003314
chore(deps): bump weasyprint from 61.0 to 61.2
dependabot[bot] Mar 8, 2024
a184e9c
Merge pull request #530 from karrioapi/dependabot/pip/weasyprint-61.2
danh91 Mar 9, 2024
f866cdb
chore: Add discovery chat cal.com link
danh91 Mar 10, 2024
3a0f82f
chore: Update pricing module migrations
danh91 Feb 29, 2024
99335d3
feat: Remove deprecated suburb field from Address object
danh91 Feb 29, 2024
8fa5994
feat: Upgrade creating object by id reference to use dict with id fie…
danh91 Feb 29, 2024
d51b0d6
docs: document local development installation requirement for cloud VMs
danh91 Feb 29, 2024
49d3ce2
docs: Update user connections GraphQL query based on latest schema ch…
danh91 Feb 29, 2024
ff062e6
feat(WIP): Integrate bulk shipment creation
danh91 Mar 4, 2024
d21582a
fix: Cleanup suburb field left over usages
danh91 Mar 4, 2024
9e78a25
feat: Add DHL Parcel Post shipping options to metadata
danh91 Mar 8, 2024
911fd7d
feat: Reach minimal bulk shipment creation implementation
danh91 Mar 8, 2024
937c3b7
feat: Refactor and improve loading flow for create label forms
danh91 Mar 9, 2024
8011353
chore: Clean up bulk shipment modal remnant
danh91 Mar 9, 2024
8452eb6
feat: Improve commodity modal orders retrieval with full filter
danh91 Mar 9, 2024
275f557
feat: Introduce Workspace config object for with GrapQL API support
danh91 Mar 12, 2024
a15f511
feat: Introduce manifest interface to Karrio SDK
danh91 Mar 13, 2024
3399db5
feat: Separate profile from account settings and introduce workspace …
danh91 Mar 13, 2024
54828f2
feat: Preload customs declaration options using saved workspace configs
danh91 Mar 13, 2024
b00f11b
fix(refactor): form fields layout
danh91 Mar 13, 2024
a4f20e4
feat: Add missing zones column to rate sheet
danh91 Mar 14, 2024
4828d95
feat: Ensure extension names follow format convention
danh91 Mar 9, 2024
392be56
chore: Initialize TGE extension
danh91 Mar 9, 2024
1e87a1d
feat: Initial TGE extension implementation
danh91 Mar 9, 2024
88d4742
feat: Consolidate TGE integration with unit tests
danh91 Mar 14, 2024
d443e7a
chore: regenerate APIs schemas and carrier API usage references
danh91 Mar 15, 2024
5376342
chore: Update turbo
danh91 Mar 15, 2024
e43a7c9
release: 2024.2.rc10
danh91 Mar 15, 2024
79d3041
Merge pull request #522 from karrioapi/hot-fixes-pre-release
danh91 Mar 15, 2024
5b24af4
chore: Remove customs_ein field from workspace config
danh91 Mar 16, 2024
28df9f4
feat: Add VAT registration numbers for DHL Express shipment requests
danh91 Mar 16, 2024
9def204
fix: customs.invoice_date saving issue
danh91 Mar 16, 2024
f7a4ad3
refactor: label creation mutations with use mutations to allow scoped…
danh91 Mar 16, 2024
7ece6c8
chore: Introduce fedex sandbox sample request for override in test mode
danh91 Mar 16, 2024
6eee38e
feat: Update karrio CLI extensions commands and introduce manifest in…
danh91 Mar 16, 2024
f70f7b0
feat: Add support for australiapost manifest creation
danh91 Mar 16, 2024
8d59cc6
feat: Add support for canadapost manifest creation
danh91 Mar 16, 2024
8a539e3
feat: Add support for TGE manifest creation
danh91 Mar 16, 2024
3b5a7d8
fix: typing issues for australiapost manifest integrations
danh91 Mar 17, 2024
2cca497
feat: lift as primary field of manifest
danh91 Mar 17, 2024
9862134
feat: Introduce Manifest API endpoints
danh91 Mar 17, 2024
06035d2
feat: consolidate Manifest API and TGE integration with live tests
danh91 Mar 18, 2024
218a61a
feat: Consolidate manifest object creation for purchased shipments
danh91 Mar 18, 2024
bb9a216
chore: Update tests post data fixes for pickup and manifest testing
danh91 Mar 18, 2024
af17769
fix: OpenAPI generated types
danh91 Mar 18, 2024
d02aaa4
Merge pull request #533 from karrioapi/manifest-integration
danh91 Mar 18, 2024
0103674
release: karrio 2024.2
danh91 Mar 18, 2024
05c23ab
release: 2024.2
danh91 Mar 18, 2024
dde1d34
release: karrio 2024.2
danh91 Mar 18, 2024
4611da4
Merge pull request #537 from karrioapi/manifest-integration
danh91 Mar 18, 2024
9c24973
update: requirements.txt to latest version freeze
danh91 Mar 18, 2024
254a68f
fix password reset to use EMAIL_FROM_ADDRESS as sender
jacobshilitz Mar 18, 2024
a70296e
chore(deps): bump django from 4.2.10 to 4.2.11
dependabot[bot] Mar 18, 2024
d8759a9
Merge pull request #539 from karrioapi/dependabot/pip/django-4.2.11
danh91 Mar 19, 2024
115990d
fix: Invalid return in useEffect with hot patch
danh91 Mar 22, 2024
f874193
feat: Improve TGE pickup date default value as well as sscc and shipm…
danh91 Mar 21, 2024
bb18072
feat: Add support for overriding fedex sandbox label_type
danh91 Mar 22, 2024
58eb13f
fix: SSCC digit calculation
danh91 Mar 23, 2024
40f2366
feat: Separate Auth tags from API on open API definition and regenera…
danh91 Mar 23, 2024
2433170
feat: Remove lowercase styling on APP_NAME login page
danh91 Mar 23, 2024
933363f
Merge pull request #538 from jacobshilitz/fix_password_reset_sender_e…
danh91 Mar 23, 2024
56c54de
feat: Conceal sensitive email sending error from bubbling to frontend
danh91 Mar 23, 2024
3b1a981
docs: Update footer links to match website
danh91 Mar 23, 2024
413cf42
docs: Prepare advanced carrier integration documentation
danh91 Mar 23, 2024
c452f51
release: patch 2024.2.2
danh91 Mar 23, 2024
23fb367
Merge pull request #540 from karrioapi/patch-2024.2.1
danh91 Mar 23, 2024
8c52e38
docs(WIP): document custom carrier integration process
danh91 Mar 23, 2024
b725150
docs(WIP): update custom carrier integration process
danh91 Mar 23, 2024
8166ffe
docs(WIP): update custom carrier integration process with all steps
danh91 Mar 23, 2024
cb2fef9
feat: Add support for marking any shipment without tracker with manua…
danh91 Mar 23, 2024
c480e22
chore: Remove deprecated Customs CRUD APIs
danh91 Mar 23, 2024
7eb4d24
feat: Introduce manifest_required flag for carriers with manifest sup…
danh91 Mar 24, 2024
f0e9417
feat: Add Manifest GraphQL queries and manifest management page
danh91 Mar 24, 2024
49aa35f
feat: Add form for manifest creation based on selection
danh91 Mar 24, 2024
cfcbfda
chore: Apply transmit_shipment_by_default for all existing canadapost…
danh91 Mar 24, 2024
e13c8ad
release: 2024.2.3
danh91 Mar 24, 2024
16bf800
Merge pull request #541 from karrioapi/patch-2024.2.3
danh91 Mar 24, 2024
63e5c6d
fix: migration issue caused by null created_by
danh91 Mar 24, 2024
a01a6b7
rename: nightly build latest-rc
danh91 Mar 24, 2024
f5efc42
release: hot-fix 2024.2.4
danh91 Mar 24, 2024
d1deeeb
clean: Manifest modal info
danh91 Mar 24, 2024
379bf0f
fix: sscc calculation for TGE integration
danh91 Mar 24, 2024
ef252f7
release: patch 2024.2.5
danh91 Mar 24, 2024
6052bc5
Merge pull request #542 from karrioapi/patch-tge-sscc-calculation
danh91 Mar 24, 2024
7c55a70
Merge branch 'karrioapi:main' into main
Bensebabillal Mar 25, 2024
841ee30
hot-fix: set TGE default service amount to 10 AUD
danh91 Mar 25, 2024
5914d36
hot-fix(fedex): add validae subPackagingType Enums
danh91 Mar 25, 2024
9a6290a
release: patch 2024.2.6
danh91 Mar 25, 2024
07b5156
Merge branch 'karrioapi:main' into main
Bensebabillal Mar 26, 2024
094ff58
fix: Set a fallback value for TGE package description
danh91 Mar 26, 2024
4ab3740
feat: Add missing ACCOUNT to fedex rate types
danh91 Mar 26, 2024
3f0376e
feat: Make default fedex rate request types configurable
danh91 Mar 26, 2024
246a4c9
fix: responsiveness for shipments and orders page headers
danh91 Mar 27, 2024
160da59
release: patch 2024.2.7
danh91 Mar 27, 2024
4b9c65c
Merge pull request #547 from karrioapi/patch-2024.2.7
danh91 Mar 27, 2024
012fd16
fix(fedex): Signature option type
danh91 Mar 28, 2024
5de3d2d
release: patch 2024.2.8
danh91 Mar 28, 2024
8de8df9
Merge pull request #548 from karrioapi/patch-2024.2.8
danh91 Mar 28, 2024
dbcd4ca
patch(TGE): Manifest default description field
danh91 Mar 28, 2024
6e5bb50
hot-fix(fedex): Remove invalide shipper.accountNumber field and soldT…
danh91 Mar 29, 2024
95a8800
release: patch 2024.2.9
danh91 Mar 29, 2024
6452066
feat: Add customs declaration to Fedex rate request for international…
danh91 Mar 30, 2024
4d2cae8
release: patch 2024.2.10
danh91 Mar 30, 2024
5e6f596
feat: add required duty payment details for fedex intl rate request
danh91 Mar 30, 2024
fa83a15
chore: bump up fedex extension version
danh91 Mar 30, 2024
53b54f8
feat: Use PCS instead of EA for commodities measurement unit
danh91 Mar 30, 2024
ce61656
Merge pull request #550 from karrioapi/fedex-rate-customs-clearance
danh91 Mar 30, 2024
a6eb033
chore(deps): bump pillow from 10.2.0 to 10.3.0
dependabot[bot] Apr 3, 2024
6fcde31
chore(typing): Fix type signature for PIL related functions
danh91 Apr 3, 2024
f179706
Merge pull request #553 from karrioapi/dependabot/pip/pillow-10.3.0
danh91 Apr 3, 2024
fea8498
fix: Missing required NumberIssuerCountryCode for DHL express
danh91 Apr 3, 2024
2050648
fix(usps): shipment request invalid data formatting
danh91 Apr 3, 2024
36acaf2
release: patch 2024.2.11
danh91 Apr 3, 2024
8bef255
Merge pull request #554 from karrioapi/patch-2024.2.11
danh91 Apr 3, 2024
b1e8728
fix(USPS*): missing required PASSWORD request properties
danh91 Apr 3, 2024
1ab895d
release: patch 2024.2.12
danh91 Apr 3, 2024
6652d48
feat: Add support for custom app website URL for white labelled tenant
danh91 Apr 4, 2024
da9c4e1
fix(USPS): phone number parser to handle None values
danh91 Apr 4, 2024
f9c4c94
feat: Apply workspace config as default taxe ids to shipper address f…
danh91 Apr 4, 2024
87c3ef1
release: patch 2024.2.13
danh91 Apr 4, 2024
36328ac
Merge pull request #555 from karrioapi/patch-2024.2.13
danh91 Apr 4, 2024
a13a222
fix(#551): Invalid customs commodities assignment
danh91 Apr 5, 2024
57bc54f
feat(TGE): Add support for Multi-piece shipment
danh91 Apr 5, 2024
a66e2c5
release: patch 2024.2.14
danh91 Apr 5, 2024
f0744d4
Merge pull request #556 from karrioapi/patch-2024.2.14
danh91 Apr 5, 2024
c2a6f96
fix: background tracking potentially None value and save related trac…
danh91 Apr 9, 2024
fad46de
feat: Identified and ensure all required FedEx Intl data are provided…
danh91 Apr 9, 2024
1482574
release: patch 2024.2.15
danh91 Apr 9, 2024
92ed178
Merge pull request #558 from karrioapi/patch-2024.2.15
danh91 Apr 9, 2024
4df308a
chore: Add build action badge to README.md
danh91 Apr 9, 2024
08ed280
chore(deps): bump idna from 3.6 to 3.7
dependabot[bot] Apr 12, 2024
ad82154
Merge pull request #560 from karrioapi/dependabot/pip/idna-3.7
danh91 Apr 12, 2024
0573e07
chore(deps): bump sqlparse from 0.4.4 to 0.5.0
dependabot[bot] Apr 15, 2024
b9fb465
chore(deps): bump gunicorn from 21.2.0 to 22.0.0
dependabot[bot] Apr 17, 2024
84d869d
Merge pull request #562 from karrioapi/dependabot/pip/gunicorn-22.0.0
danh91 May 1, 2024
ac753b4
Merge pull request #561 from karrioapi/dependabot/pip/sqlparse-0.5.0
danh91 May 1, 2024
8b290e1
chore: update README.md for sponsorware shift
danh91 May 4, 2024
d801285
docs: introduce insiders details
May 6, 2024
7ca1b83
fix: doc build
May 6, 2024
7355580
chore: prepare insiders scripts
danh91 May 6, 2024
fb4ecbc
fix: markdown details tags in openapi docs
danh91 May 6, 2024
563d919
chore(deps): bump jinja2 from 3.1.3 to 3.1.4
dependabot[bot] May 6, 2024
de532a6
Merge pull request #563 from karrioapi/dependabot/pip/jinja2-3.1.4
danh91 May 6, 2024
52d488e
fix: invalide trackers document views name
danh91 May 10, 2024
076cc93
release: patch 2024.2.16
danh91 May 10, 2024
5097269
docs: Update carrier integration next step
danh91 May 10, 2024
a62cf8e
Merge pull request #566 from karrioapi/patch-2024.2.16
danh91 May 10, 2024
84427d2
chore: Add polar.sh for sponsorship
danh91 May 15, 2024
753778d
dependabot[bot] May 21, 2024
30e1b4e
Merge branch 'karrioapi:main' into main
Bensebabillal May 21, 2024
b7cb3bc
add some correction in price calculation
Bensebabillal May 21, 2024
ca309f0
Merge branch 'main' of https://github.com/Bensebabillal/karrio
Bensebabillal May 21, 2024
640bb5c
Merge pull request #584 from karrioapi/dependabot/pip/requests-2.32.0
danh91 May 24, 2024
3b952b5
fix: FedEx duplicate tracking issue trackReplys selection
danh91 May 24, 2024
769c841
Merge pull request #587 from karrioapi/hot-fix-fedex-duplicate-tracki…
danh91 May 24, 2024
bd3f2d4
feat: Add support for env config of Redis username and password
danh91 May 24, 2024
2895c54
Merge pull request #588 from karrioapi/feat-redis-auth
danh91 May 24, 2024
a67e712
chore: Apply minimal query optimization
danh91 May 25, 2024
7a2b05e
feat: Enhance Documents REST API with support for template management…
danh91 May 25, 2024
0caeee4
chore: Prevent backup file creation from sed command
danh91 May 25, 2024
b0d6f72
Merge pull request #591 from karrioapi/advanced-document-api
danh91 May 25, 2024
9d69e91
docs: update extension integration docs with tests and installation i…
danh91 May 27, 2024
95d7c67
chore: update Readme dashbaord illustration
danh91 May 25, 2024
2359701
docs: Introduce generated API docs powered by docusaurus-openapi-docs
danh91 May 26, 2024
3434bf2
feat: Consolidate Documents API templates CRUD
danh91 May 27, 2024
a80cb1d
docs: move manually prevously written API references to API guides
danh91 May 27, 2024
cebb0d8
Merge pull request #592 from karrioapi/update-docs-openapi-playground
danh91 May 27, 2024
e58dc9c
docs: Update generated API docs
danh91 May 27, 2024
d438539
feat: Rename legacy eshipper integration eshipper_xml
danh91 May 13, 2024
3421c33
feat: bootstrap new eShipper API extension
danh91 May 13, 2024
e47ec7f
feat: Make caching handle available to all carrier connections
danh91 May 20, 2024
bcc5f9b
chore: Make quicktype docker run remove after execution
danh91 May 20, 2024
7b6c6f4
feat(WIP): API integration
danh91 May 21, 2024
abe957d
chore: Disable eshipper WIP integration upgrade
danh91 May 27, 2024
cde746b
feat: Add sample request data for Rating and Shipment extension template
danh91 May 27, 2024
150454b
Merge pull request #583 from karrioapi/eshipper-new-api
danh91 May 27, 2024
bcb8f54
feat: add carrier_id to Proxy cancel request to ensure precise connec…
danh91 May 27, 2024
1aa97b4
feat: Update eShipper settings model name and GraphQL typings
danh91 May 27, 2024
8ba1416
release: 2024.6-rc1
danh91 May 27, 2024
a321be1
Merge pull request #594 from karrioapi/release-2024.6-rc
danh91 May 27, 2024
df19e35
chore: Fix typo in connections.mdx file
backendArchitect May 28, 2024
12792cf
Merge pull request #595 from codeArtisanry/fix-docs
danh91 May 29, 2024
0faafc8
fix(2 birds): cache declaration leftovers and tracing record saving f…
danh91 May 30, 2024
7a1d336
release: 2024.6-rc2
danh91 May 30, 2024
ff8ab8b
Merge pull request #597 from karrioapi/hot-fix-2024.6-rc
danh91 May 30, 2024
30753ec
Merge branch 'karrioapi:main' into main
Bensebabillal May 30, 2024
80c86e0
file touched by error
Bensebabillal May 30, 2024
57c9ca9
feat: Add django admin editor for document templates
danh91 May 31, 2024
84a16bd
fix: Fedex rate request invalid format
danh91 Jun 1, 2024
305d7d1
fix: staff edit modal Imput styling
danh91 Jun 1, 2024
fb18b34
release: 2024.6-r3
danh91 Jun 1, 2024
6f610ab
Merge pull request #599 from karrioapi/patch-2024.6-rc3
danh91 Jun 1, 2024
612649d
release: latest version freeze
danh91 Jun 1, 2024
ffa6554
fix: JSON type generator script template
danh91 Jun 1, 2024
903a823
feat: Introduce cli command to generate request class tree for data m…
danh91 Jun 2, 2024
0c27335
fix: inconsistent naming for document upload feature in extension tem…
danh91 Jun 2, 2024
0bb0175
docs: update API docs with new return_address support
danh91 Jun 5, 2024
236bc54
chore: update API tests with for new return_address field
danh91 Jun 5, 2024
4d6f115
chore: update unit tests for the new return_address field
danh91 Jun 5, 2024
e987d2e
release: 2024.6-rc4
danh91 Jun 5, 2024
6b19da5
Merge pull request #602 from karrioapi/add-shipfrom-field
danh91 Jun 5, 2024
04f8734
feat: expose return_address to GraphQL and API specs and generated cl…
danh91 Jun 5, 2024
1683a15
docs: update API docs to latest rc version
danh91 Jun 5, 2024
3d765e9
chore: update create_label component formatting
danh91 Jun 5, 2024
0e4e83d
fix: regression on FedEx shipping options parsing
danh91 Jun 6, 2024
2a4d3af
feat: Add return address to create labels forms across the dashboard
danh91 Jun 6, 2024
c1ce38b
release: 2024.6-rc5
danh91 Jun 6, 2024
70a1524
Merge pull request #603 from karrioapi/add-dashboard-support-for-retu…
danh91 Jun 6, 2024
f9e1af9
hot-fix: Redis connection invalide character issue
danh91 Jun 7, 2024
955a791
feat: Add standardized flag for all supported carriers
danh91 Jun 8, 2024
4247f7a
fix: UPS saturday delivery option flag mapping
danh91 Jun 8, 2024
2a87dd7
fix: FedEx variableOptions fallback value to None
danh91 Jun 8, 2024
3b80d17
release: 2024.6-rc7
danh91 Jun 8, 2024
de2415d
docs: Update API specs and generated API docs
danh91 Jun 8, 2024
3aabc20
Merge pull request #604 from karrioapi/fix-saturday-delivery
danh91 Jun 8, 2024
1bc63ed
Merge branch 'karrioapi:main' into main
Bensebabillal Jun 12, 2024
b4cbed3
add freightcom v2 support
Bensebabillal Jun 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# .coveragerc to control coverage.py
[run]
branch = True
omit =
*/sdk/extensions/dicom/*

[report]
include =
*/sdk/core/*
*/sdk/extensions/*
*/sdk/vendors/*
51 changes: 51 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# https://editorconfig.org/

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119

# Use 2 spaces for the HTML files
[*.html]
indent_size = 2

# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore

[**.{ts,json,js,tsx}]
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# Batch files use tabs for indentation
[*.bat]
indent_style = tab

[docs/**.txt]
max_line_length = 79

[*.yml]
indent_size = 2
29 changes: 29 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
DEBUG_MODE=True
ALLOWED_HOSTS=*
DATABASE_NAME=db.sqlite3
# DATABASE_ENGINE=postgresql
# DATABASE_USERNAME=postgres
# DATABASE_PASSWORD=postgres
# DATABASE_NAME=db
DETACHED_WORKER=True
ALLOW_SIGNUP=True
WORK_DIR=.karrio
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=demo
SECRET_KEY="n*s-ex6@ex_r1i%bk=3jd)p+lsick5bi*90!mbk7rc3iy_op1r"
OIDC_RSA_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nMIIJKQIBAAKCAgEA92+93Tyg6UvetkT0Li+RtjjeQX7mHMzvOL+HllDTfXAeh9GB\nlrgGrFR5ZTjtrmWiG3ditK3JoJGrVY4B0lFRi7d3nl8gPDR03bALEIfrB0TtiYGB\nTQ92sGBKmlRKAmAhTVXeWK+l5wdj7w8Lcoso3rpLFYSllcoJwDQ5qeP/wzJd0iYr\nyZpasx1huQZcOd/yP7Cvb9LAH8Nwqgk4WCbxHcmUVjUm1A5rNJYKCKM5uC6JvMGb\nm2mR/81SoPgU4qaW/v+L5chJoxnl7vWazKSjWcn2HkZIGshPFqpQpobIZhngC5/A\nXlXntf5CpYcauWPT3qvNJZxxJUPzziwy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QB8hL1vPAuL0K+0OePe8+ajcd8yRld2Oq40ZpMdgmzWj1s5Ctg1nwzH\n946EiX+fI/zfmDmVenySt3QqFXLFhR+TYJFSd3Q8WU2LlKtzsaiOV9H2LyuFDBu2\nlp0spsnrS0hAYw45zrgHtpU6wVpZpzNqxwMK7tv7nJ2fMyS+wPQt5uPHvrCXrxL7\nrFJMMCcN0JsoPsYzsshopQJKuFh2J8PzhOXlhJmj1OMmZfHQey4OsRRW+ZlqhYc0\nR6p0ZkjA+T9/aUeoOLWiuQkBKiwsXwMIM0B3krdDko5bx2PnobS7j+cDJk9qiKsF\nS1YVrA9Pq+gZ49OS9p2Gux/VO9tyzk43AoIBAQCxl3RcyaE0JWVByVhaA4Ej+zr4\nlD4UcJsjxPkW5a2k8d3xa63IDBU2yehZNGwQmmc1Y/DoQNMiO+Zagj4gawUWZRcf\nO6YSEHNhPzKMLIxFxpAXYTEcdpwgQ+eWrLP5EvAT2qyqC9Y1CnY6lyT8tLuZkrxv\nGc41na1aSr0FF2EIEzcDgxYWDSvfx2G/k23t7qIcLxYcyFhyvIyCN0JrtvcBB7zy\nALTL9QubmLGZaN+igOfDImdvDVO/BV4GV74OiGFJu1pAStiNmkmlK2J+wI9n3iHT\n3/1coqkpWG7gBcA/Exhh4oDjoaKEE00nPJ1m5Q0a65eb4kG4n2bx116hdZb4\n-----END RSA PRIVATE KEY-----"

# Worker config
# WORKER_IMMEDIATE_MODE=True
# TRACKING_PULSE=120

## Email auth
# EMAIL_PORT=1025
# EMAIL_USE_TLS=false
# EMAIL_HOST=maildev
# EMAIL_HOST_USER=admin@example.com

## Redis config
# REDIS_HOST=localhost
# REDIS_PORT=6379
# REDIS_PASSWORD=redis
5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: [karrioapi]
polar: karrioapi
custom: ['https://docs.karrio.io/insiders']
84 changes: 84 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: karrio-build

on:
push:
branches: [ "main" ]

jobs:
changes:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.changes.outputs.version }}
steps:
- uses: actions/checkout@v3

- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
version:
- 'apps/api/karrio/server/VERSION'

server-build:

needs: changes
if: ${{ needs.changes.outputs.version == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

steps:
- uses: actions/checkout@v3

- id: get_tag
run: |
cat ./apps/api/karrio/server/VERSION
echo "tag=$(cat ./apps/api/karrio/server/VERSION)" >> "$GITHUB_ENV"

- name: Build karrio server image
run: |
echo 'Building karrio server:${{ env.tag }}...'
./bin/build-server-image-from-source ${{ env.tag }}

- name: Push karrio server image
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

echo 'Pushing karrio server:${{ env.tag }}...'
docker push karrio/server:${{ env.tag }}
docker tag karrio/server:${{ env.tag }} karrio/server:latest-rc
docker push karrio/server:latest-rc

dashboard-build:

needs: changes
if: ${{ needs.changes.outputs.version == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

steps:
- uses: actions/checkout@v3

- id: get_tag
run: |
cat ./apps/api/karrio/server/VERSION
echo "tag=$(cat ./apps/api/karrio/server/VERSION)" >> "$GITHUB_ENV"

- name: Build karrio dashboard image
run: |
echo 'Building karrio dashboard:${{ env.tag }}...'
./bin/build-dashboard-image ${{ env.tag }}

- name: Push karrio dashboard image
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

echo 'Pushing karrio dashboard:${{ env.tag }}...'
docker push karrio/dashboard:${{ env.tag }}
docker tag karrio/dashboard:${{ env.tag }} karrio/dashboard:latest-rc
docker push karrio/dashboard:latest-rc
45 changes: 0 additions & 45 deletions .github/workflows/pythonpackage.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: karrio-tests

on: [push]

jobs:
sdk-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
./bin/setup-sdk-env &&
./bin/run-sdk-typecheck &&
./bin/run-sdk-tests

server-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
./bin/setup-server-env &&
./bin/migrate &&
./bin/run-server-tests

dashbaord-ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install
run: |
npm install
- name: Test Build
run: |
npm run build -w apps/dashboard
44 changes: 24 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -40,14 +38,12 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

Expand All @@ -59,7 +55,6 @@ coverage.xml
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
Expand All @@ -77,20 +72,9 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

Expand Down Expand Up @@ -118,10 +102,30 @@ venv.bak/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
# misc
*.DS_Store
*.pem

# node
node_modules

# turbo
.turbo

# vercel
.vercel

# karrio stuff:
!apps/dashboard/src/lib
!packages/lib

.bash_history

.idea/
staticfiles/*
apps/api/karrio/server/staticfiles/*

.karrio/
packages/karriojs/api/generated
!docker/.env
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = true
18 changes: 18 additions & 0 deletions .postman/api
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
id = d037504d-3941-4465-afdc-f297ec531e95

[relations]

[relations.collections]
rootDirectory = postman/collections
files[] = {"id":"25615403-a5323baf-bc0b-406d-bd75-74766f43fe4d","path":"Karrio API.json","metaData":{}}

[relations.collections.metaData]

[relations.apiDefinition]
rootDirectory = postman/schemas
files[] = {"path":"openapi.yml","metaData":{}}

[relations.apiDefinition.metaData]
type = openapi:3
rootFiles[] = openapi.yml
Loading