{"id":51133761,"url":"https://github.com/maximcoding/shared-marketplace","last_synced_at":"2026-06-25T15:30:33.566Z","repository":{"id":363750296,"uuid":"1264315212","full_name":"maximcoding/shared-marketplace","owner":"maximcoding","description":"Multi-vertical marketplace shared TypeScript library (RealEstate, Marketplace, Services, Cars, …). I-prefix interfaces, enums, contracts.","archived":false,"fork":false,"pushed_at":"2026-06-10T07:37:11.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T08:21:08.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/maximcoding/shared-marketplace","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximcoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-09T19:13:54.000Z","updated_at":"2026-06-10T07:37:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maximcoding/shared-marketplace","commit_stats":null,"previous_names":["maximcoding/shared-marketplace"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/maximcoding/shared-marketplace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximcoding%2Fshared-marketplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximcoding%2Fshared-marketplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximcoding%2Fshared-marketplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximcoding%2Fshared-marketplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximcoding","download_url":"https://codeload.github.com/maximcoding/shared-marketplace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximcoding%2Fshared-marketplace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34781448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-25T15:30:32.786Z","updated_at":"2026-06-25T15:30:33.561Z","avatar_url":"https://github.com/maximcoding.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @maximcoding/shared-marketplace\n\nMulti-vertical marketplace shared library — TypeScript interfaces, enums, and contracts for any marketplace platform.\n\n**Verticals:**\n- **RealEstate** — `IProperty` (gagot's core entity, extends `IAsset`)\n- **Marketplace items** — `IMarketPlaceItem` (auctions, items with delivery)\n- **Services** — (planned, will extend `IAsset`)\n- **Cars** — (planned, will extend `IAsset`)\n\n**Consumers:**\n- [`gagot-api`](https://github.com/maximcoding/gagot-api) (NestJS backend)\n- [`ionic-gagot-app`](https://github.com/maximcoding/ionic-gagot-app) (Ionic + Angular mobile)\n- (planned) `gagot-web` (Next.js web client)\n- (planned) any colaido-family consumer\n\n## Install\n\n```bash\nnpm install @maximcoding/shared-marketplace\n```\n\nPre-publish (or for direct from main):\n```bash\nnpm install github:maximcoding/shared-marketplace#main\n```\n\n## Use\n\n```ts\nimport {\n  // base hierarchy\n  IAsset, IAssetStats, IMultimedia, IChildCategory,\n  // RealEstate vertical\n  IProperty, IPropertyPreview, IRoom, IVisit, IReview,\n  // marketplace vertical\n  IMarketPlaceItem, IAuction, IDimensions, IWeight,\n  // commerce primitives\n  ITag, IFavorite, IPaymentTransaction, ISavedPaymentMethod,\n  IOrder, IShippingAddress, IDeliveryOptions, ICarrier, ISupportTicket,\n  // user\n  IUser, IUserName,\n  // enums\n  MainCategory, CategoryEnum, PropertyState, PropertyStatus,\n  RoleEnum, CurrencyEnum, MeasurementEnum, Language, AddressType,\n  Condition, ListingType, CommonStatus, RealEstateStatus,\n  PaymentType, PaymentStatus, OrderStatus, CarrierServiceType,\n} from '@maximcoding/shared-marketplace';\n```\n\n## Naming convention\n\n- **Interfaces**: I-prefix (`IAsset`, `IProperty`, `ITag`)\n- **Enums**: no prefix (`CategoryEnum`, `MainCategory`, `Language`)\n- Pure structural types — no `class-validator` / framework runtime deps. API-side decorators stay in the API repo and decorate classes that `implements` these interfaces.\n\n## Layout\n\n```\nsrc/\n├── enums/                       22 files (16 gagot-specific + 6 cross-marketplace)\n└── interfaces/\n    ├── asset/                   IAsset + verticals\n    │   ├── asset.interface.ts          IAsset + IAssetStats + IMultimedia + IChildCategory\n    │   ├── real-estate-property.interface.ts  IRealEstateProperty extends IAsset (generic RE)\n    │   └── marketplace-item.interface.ts      IMarketPlaceItem extends IAsset\n    ├── commerce/                ITag, IFavorite, IPayment*, IOrder, IDelivery*, ICarrier, ISupportTicket\n    ├── property/                gagot RealEstate concrete: IProperty, IRoom, IVisit, IReview\n    └── (top-level)              IUser, IFile, ICategory, IComplain, IAddress, IArticle, IRecent\n```\n\n## Release\n\n```bash\n./release.sh\n```\n\nPatch bump → tsc → tag → GitHub release → CI publishes to npm. Major/minor: edit `package.json` version manually first.\n\n## Versioning\n\n- **Patch** (`1.0.x`): additive (new interfaces, optional fields, enum values).\n- **Minor** (`1.x.0`): additive across multiple namespaces.\n- **Major** (`x.0.0`): breaking (renames, type narrowing, removed fields).\n\nConsumers pin to caret (`^1.0.0`) for safe patch+minor updates; opt into majors deliberately.\n\n## Migration from older packages\n\nThis package supersedes:\n- `@gagot/shared` — archived\n- `@colaido/shared-library` — archived\n\nBoth old packages are equivalent in scope (gagot-shared already had the merged content as v2.0.0). The rename to `@maximcoding/*` reflects that the library is platform-generic, not project-specific.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximcoding%2Fshared-marketplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximcoding%2Fshared-marketplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximcoding%2Fshared-marketplace/lists"}