diff --git a/LICENSE b/LICENSE index 7e80107..12fdfb6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,109 @@ -MIT License - -Copyright (c) 2026 Aptlogica Technologies Private Limited - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Copyright 2026 Aptlogica Technologies Private Limited + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and +distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the +copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other +entities that control, are controlled by, or are under common control with +that entity. For the purposes of this definition, "control" means (i) the +power, direct or indirect, to cause the direction or management of such +entity, whether by contract or otherwise, or (ii) ownership of fifty +percent (50%) or more of the outstanding shares, or (iii) beneficial +ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising +permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, +including but not limited to software source code, documentation source, +and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation +or translation of a Source form, including but not limited to compiled +object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object +form, made available under the License, as indicated by a copyright notice +that is included in or attached to the work (an example is provided in the +Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, +that is based on (or derived from) the Work and for which the editorial +revisions, annotations, elaborations, or other modifications represent, +as a whole, an original work of authorship. For the purposes of this +License, Derivative Works shall not include works that remain separable +from, or merely link (or bind by name) to the interfaces of, the Work and +Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original +version of the Work and any modifications or additions to that Work or +Derivative Works thereof, that is intentionally submitted to Licensor for +inclusion in the Work by the copyright owner or by an individual or Legal +Entity authorized to submit on behalf of the copyright owner. + +2. Grant of Copyright License. Subject to the terms and conditions of this +License, each Contributor hereby grants to You a perpetual, worldwide, +non-exclusive, no-charge, royalty-free, irrevocable copyright license to +reproduce, prepare Derivative Works of, publicly display, publicly perform, +sublicense, and distribute the Work and such Derivative Works in Source or +Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this +License, each Contributor hereby grants to You a perpetual, worldwide, +non-exclusive, no-charge, royalty-free, irrevocable (except as stated in +this section) patent license to make, have made, use, offer to sell, sell, +import, and otherwise transfer the Work, where such license applies only to +those patent claims licensable by such Contributor that are necessarily +infringed by their Contribution(s) alone or by combination of their +Contribution(s) with the Work to which such Contribution(s) was submitted. + +4. Redistribution. You may reproduce and distribute copies of the Work or +Derivative Works thereof in any medium, with or without modifications, and +in Source or Object form, provided that You meet the following conditions: + +(a) You must give any other recipients of the Work or Derivative Works a +copy of this License; and + +(b) You must cause any modified files to carry prominent notices stating +that You changed the files; and + +(c) You must retain, in the Source form of any Derivative Works that You +distribute, all copyright, patent, trademark, and attribution notices +from the Source form of the Work, excluding those notices that do not +pertain to any part of the Derivative Works; and + +(d) If the Work includes a "NOTICE" text file as part of its distribution, +then any Derivative Works that You distribute must include a readable +copy of the attribution notices contained within such NOTICE file, in at +least one of the following places: within a NOTICE text file distributed +as part of the Derivative Works; within the Source form or documentation; +or within a display generated by the Derivative Works. + +5. Submission of Contributions. Unless You explicitly state otherwise, any +Contribution intentionally submitted for inclusion in the Work shall be +under the terms and conditions of this License. + +6. Trademarks. This License does not grant permission to use the trade +names, trademarks, service marks, or product names of the Licensor. + +7. Disclaimer of Warranty. The Work is provided "AS IS", WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND. + +8. Limitation of Liability. In no event shall any Contributor be liable +for damages arising from the use of the Work. + +9. Accepting Warranty or Additional Liability. You may offer support or +warranty, but only on your own behalf. + +END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/README.md b/README.md index 97b1f4c..de3a103 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guid [![Version](https://img.shields.io/badge/Version-1.0.0-blue.svg)](LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-3178C6?style=flat-square&logo=typescript)](https://www.typescriptlang.org/) -[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) [![CI](https://github.com/aptlogica/base-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/aptlogica/base-sdk/actions/workflows/ci.yml) [![Coverage](https://codecov.io/gh/aptlogica/base-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/aptlogica/base-sdk) @@ -147,4 +147,4 @@ See [SECURITY.md](SECURITY.md) for reporting vulnerabilities. ## License -MIT License. Copyright (c) 2026 Aptlogica Technologies. +This project is licensed under the Apache License 2.0. Copyright (c) 2026 Aptlogica Technologies. diff --git a/package.json b/package.json index 09de867..e2ce2b5 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "bugs": { "url": "https://github.com/aptlogica/base-sdk/issues" }, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { "axios": "^1.14.0", "eventemitter3": "^5.0.1", diff --git a/src/client/http-client.ts b/src/client/http-client.ts index f3d9432..247b1c1 100644 --- a/src/client/http-client.ts +++ b/src/client/http-client.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/index.ts b/src/index.ts index 8ea39eb..0e9860e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,19 +1,26 @@ /* -* Copyright (c) 2026 Aptlogica Technologies Private Limited -* -* This file is part of software developed by Aptlogica Technologies Private Limited. -* -* Licensed under the MIT License. See the LICENSE file in the project root -* for full license information. -* -* Websites: -* https://www.aptlogica.com -* https://www.serenibase.com -* -* Support: -* support@aptlogica.com -* support@serenibase.com -*/ + * Copyright 2026 Aptlogica Technologies Private Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Websites: + * https://www.aptlogica.com + * https://www.serenibase.com + * + * Support: + * support@aptlogica.com + * support@serenibase.com + */ import { HttpClient } from './client/http-client'; import { AuthService } from './services/auth-service'; diff --git a/src/services/asset-service.ts b/src/services/asset-service.ts index b4b10bd..6190258 100644 --- a/src/services/asset-service.ts +++ b/src/services/asset-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/auth-service.ts b/src/services/auth-service.ts index 9312620..038f838 100644 --- a/src/services/auth-service.ts +++ b/src/services/auth-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/base-service.ts b/src/services/base-service.ts index cec5371..d87d885 100644 --- a/src/services/base-service.ts +++ b/src/services/base-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/column-service.ts b/src/services/column-service.ts index 7bac158..0c32a30 100644 --- a/src/services/column-service.ts +++ b/src/services/column-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/organization-service.ts b/src/services/organization-service.ts index 6203b27..31d4f50 100644 --- a/src/services/organization-service.ts +++ b/src/services/organization-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/row-service.ts b/src/services/row-service.ts index 9ba0f2a..2465827 100644 --- a/src/services/row-service.ts +++ b/src/services/row-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/table-service.ts b/src/services/table-service.ts index d049a31..519b11d 100644 --- a/src/services/table-service.ts +++ b/src/services/table-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/user-service.ts b/src/services/user-service.ts index dbaeeed..7fb7ca6 100644 --- a/src/services/user-service.ts +++ b/src/services/user-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/view-service.ts b/src/services/view-service.ts index 11fd445..4efdc4f 100644 --- a/src/services/view-service.ts +++ b/src/services/view-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/services/workspace-service.ts b/src/services/workspace-service.ts index 23aebf3..7752bd6 100644 --- a/src/services/workspace-service.ts +++ b/src/services/workspace-service.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/asset.ts b/src/types/asset.ts index 5aaa1a0..582cc47 100644 --- a/src/types/asset.ts +++ b/src/types/asset.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/auth.ts b/src/types/auth.ts index 3b8393e..dd1f140 100644 --- a/src/types/auth.ts +++ b/src/types/auth.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/base.ts b/src/types/base.ts index 0d8f7d0..5c16c7b 100644 --- a/src/types/base.ts +++ b/src/types/base.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/index.ts b/src/types/index.ts index c375a19..f0441f5 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/organization.ts b/src/types/organization.ts index 736e1b7..70be8f4 100644 --- a/src/types/organization.ts +++ b/src/types/organization.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/table.ts b/src/types/table.ts index 94098ea..a6c9402 100644 --- a/src/types/table.ts +++ b/src/types/table.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/tenant.ts b/src/types/tenant.ts index cb815e1..c6d5797 100644 --- a/src/types/tenant.ts +++ b/src/types/tenant.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/types/user.ts b/src/types/user.ts index f8962a9..4f420a2 100644 --- a/src/types/user.ts +++ b/src/types/user.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com export interface UpdateUserProfileParams { diff --git a/src/types/workspace.ts b/src/types/workspace.ts index a575044..59d15cd 100644 --- a/src/types/workspace.ts +++ b/src/types/workspace.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com diff --git a/src/utils/form-data.ts b/src/utils/form-data.ts index d8172cd..d272b28 100644 --- a/src/utils/form-data.ts +++ b/src/utils/form-data.ts @@ -1,5 +1,5 @@ -// Copyright (c) 2026 Aptlogica Technologies Private Limited -// SPDX-License-Identifier: MIT +// Copyright 2026-2030 Aptlogica Technologies Pvt Ltd +// Licensed under the Apache License, Version 2.0 // Websites: https://www.aptlogica.com | https://www.serenibase.com // Support: support@aptlogica.com | support@serenibase.com